benchgo-plugin 0.0.0-stage → 0.0.3
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/DEEPSEEK-LICENSE +21 -0
- package/LICENSE +21 -0
- package/NOTICE +17 -0
- package/PASEO-LICENSE +211 -0
- package/README.md +256 -2
- package/TOOL-CONFIG.md +33 -0
- package/VERIFICATION.md +297 -0
- package/assets/fonts/README.md +13 -0
- package/assets/fonts/manifest.json +437 -0
- package/assets/fonts/web/fangyuan-latin-238bc49130b1.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u30-0fe8d99641c3.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u32-202a573131a1.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u4e-cc2f8b20be49.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u4f-9189b5f2d321.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u50-e2560e003872.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u51-a9c5e7a8c7c4.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u52-0cfd00b473c8.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u53-18122a07f60a.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u54-8ca41aa9cff2.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u55-7bd55e14647e.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u56-26f093e8a810.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u57-36bde83a8378.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u58-d1df14217098.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u59-4e41ab22c51a.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u5a-746a367174e6.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u5b-3d1dd404d70c.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u5c-fe0a273f69e7.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u5d-af1f0a1c8d2d.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u5e-598c65420e17.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u5f-a92eaaa5265a.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u60-48ee3d26462d.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u61-7a57f35bc077.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u62-d2d0b7b36631.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u63-cade7c6635e6.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u64-ed34e40d7f65.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u65-e13e83e69c38.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u66-1dbcfa5da147.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u67-6b0a26b82da6.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u68-1b8217cfceed.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u69-673e63627790.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u6a-3c94008a4640.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u6b-44572c410fa0.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u6c-1b323b366e88.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u6d-cbc376d6fe3f.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u6e-7f7e211e2fee.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u6f-ff280ce052fa.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u70-cb727eaf73b6.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u71-0bb1747439fe.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u72-cccd39590d69.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u73-e67705133584.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u74-03a4e7ac9df5.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u75-a2d30b327e65.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u76-c08fe029c988.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u77-76f03be1f4cb.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u78-5b721deaf582.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u79-db7713c2eda4.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u7a-3e40d3726a09.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u7b-a8204d1c9dba.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u7c-89bcdae046de.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u7d-bcc45fa6351a.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u7e-49fab96d9269.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u7f-dc110e1ecbf3.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u80-c5ce9be0335e.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u81-b026091b3779.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u82-a7c6960e875d.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u83-4b7d1c2c50d4.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u84-4119128100c8.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u85-ca43dd4c5411.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u86-54fc0e3158fb.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u87-b64f5eb55720.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u88-00feb1251f08.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u89-db419435b316.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u8a-06c11d45fb87.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u8b-5c2f6fda436a.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u8c-2b46d2d1f4cc.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u8d-1a67d064000d.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u8e-eb87baf0091c.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u8f-96c1f0632da6.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u90-86752dba8cbe.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u91-0573b8548552.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u92-f85ecf735974.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u93-e7e0451735db.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u94-f3957ff98bcd.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u95-b31129d29013.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u96-ca7f779c2c13.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u97-100a25198b2c.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u98-59e4b784a94f.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u99-d35af6e30868.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u9a-1eb6f7cdfcfe.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u9b-8f428d81dcbb.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u9c-e10f7f8f0274.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u9e-2be65003b759.woff2 +0 -0
- package/assets/fonts/web/fangyuan-u9f-02c3d5224fdb.woff2 +0 -0
- package/assets/fonts/web/fangyuan-ufb-3eaee54bc476.woff2 +0 -0
- package/assets/fonts/web/fangyuan-ufe-f64da8a3acce.woff2 +0 -0
- package/assets/fonts/web/fangyuan-uff-0a6dcfb689fd.woff2 +0 -0
- package/client/assets/iconsax/LICENSE +16 -0
- package/client/assets/iconsax/SOURCE.md +14 -0
- package/config/routergo-deepseek.example.yml +25 -0
- package/config.example.json +24 -0
- package/cordis.patch.yml +5 -0
- package/lib/LINK-THIRD-PARTY-LICENSES.txt +1197 -0
- package/lib/client.js +3577 -0
- package/lib/link-web/app.css +92 -0
- package/lib/link-web/app.js +599 -0
- package/lib/link-web/index.html +1 -0
- package/lib/link-web/workbench.js +118 -0
- package/lib/link.mjs +244 -0
- package/lib/relay/ip-certificate.mjs +559 -0
- package/lib/relay/relay.example.json +8 -0
- package/lib/relay/run-relay-server.cjs +4100 -0
- package/lib/server/bootstrap.mjs +147 -0
- package/lib/server/bootstrap.sh +39 -0
- package/lib/server/manifest.json +8 -0
- package/lib/server/server-seed.tar.gz +0 -0
- package/locale/en.json +6 -0
- package/locale/zh-CN.json +6 -0
- package/openapi.json +629 -0
- package/package.json +104 -4
- package/shared/plugin-install.mjs +198 -0
- package/shared/tool-quick-settings.mjs +70 -0
- package/shared/update-feed.mjs +191 -0
- package/shared/update-public-key.pem +3 -0
- package/src/cli.mjs +102 -0
- package/src/commands.mjs +17 -0
- package/src/delegation.mjs +47 -0
- package/src/fonts.mjs +17 -0
- package/src/harness-adapter.mjs +228 -0
- package/src/harness-commands.mjs +39 -0
- package/src/harness-selection.mjs +5 -0
- package/src/harness-usage.mjs +31 -0
- package/src/isolated-launch.mjs +22 -0
- package/src/line-process.mjs +114 -0
- package/src/link-plugin.mjs +21 -0
- package/src/mcp.mjs +21 -0
- package/src/model-providers.mjs +125 -0
- package/src/models.mjs +37 -0
- package/src/native-auth.mjs +32 -0
- package/src/picker-catalog.mjs +82 -0
- package/src/plugin.mjs +138 -0
- package/src/projects.mjs +96 -0
- package/src/provider-access.mjs +11 -0
- package/src/providers/acp.mjs +138 -0
- package/src/providers/claude.mjs +115 -0
- package/src/providers/codex.mjs +134 -0
- package/src/providers/opencode.mjs +138 -0
- package/src/providers/pi-permissions.ts +24 -0
- package/src/providers/pi.mjs +97 -0
- package/src/questions.mjs +34 -0
- package/src/recent-workspace.mjs +36 -0
- package/src/runtime.mjs +421 -0
- package/src/session-routes.mjs +89 -0
- package/src/store.mjs +98 -0
- package/src/tool-catalog.mjs +22 -0
- package/src/tool-config.mjs +94 -0
- package/src/tool-install.mjs +31 -0
- package/src/tool-profiles.mjs +114 -0
- package/src/tooling.mjs +90 -0
- package/src/updates.mjs +156 -0
- package/src/usage-import-parsers.mjs +37 -0
- package/src/usage-import.mjs +114 -0
- package/src/usage-timeline.mjs +36 -0
- package/src/usage.mjs +142 -0
- package/src/web.mjs +274 -0
- package/voice/README.md +49 -0
- package/voice/STREAMING.md +141 -0
- package/voice/VERIFICATION.md +36 -0
- package/voice/client/audio-worklet.js +35 -0
- package/voice/locale/en.json +1 -0
- package/voice/locale/zh-CN.json +1 -0
- package/voice/src/asr.mjs +44 -0
- package/voice/src/calls.mjs +37 -0
- package/voice/src/config.mjs +139 -0
- package/voice/src/media.mjs +70 -0
- package/voice/src/plugin.mjs +10 -0
- package/voice/src/realtime-protocols.mjs +30 -0
- package/voice/src/realtime-socket.mjs +86 -0
- package/voice/src/realtime.mjs +130 -0
- package/voice/src/tts.mjs +16 -0
- package/voice/src/web.mjs +171 -0
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
(()=>{var n0=Object.create;var sa=Object.defineProperty;var r0=Object.getOwnPropertyDescriptor;var i0=Object.getOwnPropertyNames;var o0=Object.getPrototypeOf,l0=Object.prototype.hasOwnProperty;var Y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a0=(e,t)=>{for(var n in t)sa(e,n,{get:t[n],enumerable:!0})},s0=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of i0(t))!l0.call(e,i)&&i!==n&&sa(e,i,{get:()=>t[i],enumerable:!(r=r0(t,i))||r.enumerable});return e};var $=(e,t,n)=>(n=e!=null?n0(o0(e)):{},s0(t||!e||!e.__esModule?sa(n,"default",{value:e,enumerable:!0}):n,e));var Ad=Y(G=>{"use strict";var ei=Symbol.for("react.element"),c0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),u0=Symbol.for("react.strict_mode"),p0=Symbol.for("react.profiler"),f0=Symbol.for("react.provider"),m0=Symbol.for("react.context"),h0=Symbol.for("react.forward_ref"),g0=Symbol.for("react.suspense"),v0=Symbol.for("react.memo"),k0=Symbol.for("react.lazy"),Nd=Symbol.iterator;function y0(e){return e===null||typeof e!="object"?null:(e=Nd&&e[Nd]||e["@@iterator"],typeof e=="function"?e:null)}var Pd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Td=Object.assign,_d={};function cr(e,t,n){this.props=e,this.context=t,this.refs=_d,this.updater=n||Pd}cr.prototype.isReactComponent={};cr.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")};cr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ld(){}Ld.prototype=cr.prototype;function da(e,t,n){this.props=e,this.context=t,this.refs=_d,this.updater=n||Pd}var ua=da.prototype=new Ld;ua.constructor=da;Td(ua,cr.prototype);ua.isPureReactComponent=!0;var zd=Array.isArray,Id=Object.prototype.hasOwnProperty,pa={current:null},Bd={key:!0,ref:!0,__self:!0,__source:!0};function Rd(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Id.call(t,r)&&!Bd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ei,type:e,key:o,ref:l,props:i,_owner:pa.current}}function w0(e,t){return{$$typeof:ei,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fa(e){return typeof e=="object"&&e!==null&&e.$$typeof===ei}function x0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Md=/\/+/g;function ca(e,t){return typeof e=="object"&&e!==null&&e.key!=null?x0(""+e.key):t.toString(36)}function uo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ei:case c0:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+ca(l,0):r,zd(i)?(n="",e!=null&&(n=e.replace(Md,"$&/")+"/"),uo(i,t,n,"",function(u){return u})):i!=null&&(fa(i)&&(i=w0(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Md,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",zd(e))for(var a=0;a<e.length;a++){o=e[a];var s=r+ca(o,a);l+=uo(o,t,n,s,i)}else if(s=y0(e),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=r+ca(o,a++),l+=uo(o,t,n,s,i);else if(o==="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 l}function co(e,t,n){if(e==null)return e;var r=[],i=0;return uo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function b0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},po={transition:null},C0={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:po,ReactCurrentOwner:pa};function Dd(){throw Error("act(...) is not supported in production builds of React.")}G.Children={map:co,forEach:function(e,t,n){co(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return co(e,function(){t++}),t},toArray:function(e){return co(e,function(t){return t})||[]},only:function(e){if(!fa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};G.Component=cr;G.Fragment=d0;G.Profiler=p0;G.PureComponent=da;G.StrictMode=u0;G.Suspense=g0;G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C0;G.act=Dd;G.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Td({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=pa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Id.call(t,s)&&!Bd.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ei,type:e.type,key:i,ref:o,props:r,_owner:l}};G.createContext=function(e){return e={$$typeof:m0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:f0,_context:e},e.Consumer=e};G.createElement=Rd;G.createFactory=function(e){var t=Rd.bind(null,e);return t.type=e,t};G.createRef=function(){return{current:null}};G.forwardRef=function(e){return{$$typeof:h0,render:e}};G.isValidElement=fa;G.lazy=function(e){return{$$typeof:k0,_payload:{_status:-1,_result:e},_init:b0}};G.memo=function(e,t){return{$$typeof:v0,type:e,compare:t===void 0?null:t}};G.startTransition=function(e){var t=po.transition;po.transition={};try{e()}finally{po.transition=t}};G.unstable_act=Dd;G.useCallback=function(e,t){return Xe.current.useCallback(e,t)};G.useContext=function(e){return Xe.current.useContext(e)};G.useDebugValue=function(){};G.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};G.useEffect=function(e,t){return Xe.current.useEffect(e,t)};G.useId=function(){return Xe.current.useId()};G.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};G.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};G.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};G.useMemo=function(e,t){return Xe.current.useMemo(e,t)};G.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};G.useRef=function(e){return Xe.current.useRef(e)};G.useState=function(e){return Xe.current.useState(e)};G.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};G.useTransition=function(){return Xe.current.useTransition()};G.version="18.3.1"});var We=Y((nv,jd)=>{"use strict";jd.exports=Ad()});var Qd=Y(ue=>{"use strict";function va(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<fo(i,t))e[r]=t,e[n]=i,n=r;else break e}}function _t(e){return e.length===0?null:e[0]}function ho(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var l=2*(r+1)-1,a=e[l],s=l+1,u=e[s];if(0>fo(a,n))s<i&&0>fo(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[l]=n,r=l);else if(s<i&&0>fo(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function fo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Fd=performance,ue.unstable_now=function(){return Fd.now()}):(ma=Date,Ud=ma.now(),ue.unstable_now=function(){return ma.now()-Ud});var Fd,ma,Ud,Ht=[],cn=[],S0=1,yt=null,Ke=3,go=!1,Fn=!1,ni=!1,Vd=typeof setTimeout=="function"?setTimeout:null,Zd=typeof clearTimeout=="function"?clearTimeout:null,Hd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ka(e){for(var t=_t(cn);t!==null;){if(t.callback===null)ho(cn);else if(t.startTime<=e)ho(cn),t.sortIndex=t.expirationTime,va(Ht,t);else break;t=_t(cn)}}function ya(e){if(ni=!1,ka(e),!Fn)if(_t(Ht)!==null)Fn=!0,xa(wa);else{var t=_t(cn);t!==null&&ba(ya,t.startTime-e)}}function wa(e,t){Fn=!1,ni&&(ni=!1,Zd(ri),ri=-1),go=!0;var n=Ke;try{for(ka(t),yt=_t(Ht);yt!==null&&(!(yt.expirationTime>t)||e&&!Kd());){var r=yt.callback;if(typeof r=="function"){yt.callback=null,Ke=yt.priorityLevel;var i=r(yt.expirationTime<=t);t=ue.unstable_now(),typeof i=="function"?yt.callback=i:yt===_t(Ht)&&ho(Ht),ka(t)}else ho(Ht);yt=_t(Ht)}if(yt!==null)var o=!0;else{var l=_t(cn);l!==null&&ba(ya,l.startTime-t),o=!1}return o}finally{yt=null,Ke=n,go=!1}}var vo=!1,mo=null,ri=-1,$d=5,Wd=-1;function Kd(){return!(ue.unstable_now()-Wd<$d)}function ha(){if(mo!==null){var e=ue.unstable_now();Wd=e;var t=!0;try{t=mo(!0,e)}finally{t?ti():(vo=!1,mo=null)}}else vo=!1}var ti;typeof Hd=="function"?ti=function(){Hd(ha)}:typeof MessageChannel<"u"?(ga=new MessageChannel,Od=ga.port2,ga.port1.onmessage=ha,ti=function(){Od.postMessage(null)}):ti=function(){Vd(ha,0)};var ga,Od;function xa(e){mo=e,vo||(vo=!0,ti())}function ba(e,t){ri=Vd(function(){e(ue.unstable_now())},t)}ue.unstable_IdlePriority=5;ue.unstable_ImmediatePriority=1;ue.unstable_LowPriority=4;ue.unstable_NormalPriority=3;ue.unstable_Profiling=null;ue.unstable_UserBlockingPriority=2;ue.unstable_cancelCallback=function(e){e.callback=null};ue.unstable_continueExecution=function(){Fn||go||(Fn=!0,xa(wa))};ue.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"):$d=0<e?Math.floor(1e3/e):5};ue.unstable_getCurrentPriorityLevel=function(){return Ke};ue.unstable_getFirstCallbackNode=function(){return _t(Ht)};ue.unstable_next=function(e){switch(Ke){case 1:case 2:case 3:var t=3;break;default:t=Ke}var n=Ke;Ke=t;try{return e()}finally{Ke=n}};ue.unstable_pauseExecution=function(){};ue.unstable_requestPaint=function(){};ue.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ke;Ke=e;try{return t()}finally{Ke=n}};ue.unstable_scheduleCallback=function(e,t,n){var r=ue.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:S0++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,va(cn,e),_t(Ht)===null&&e===_t(cn)&&(ni?(Zd(ri),ri=-1):ni=!0,ba(ya,n-r))):(e.sortIndex=i,va(Ht,e),Fn||go||(Fn=!0,xa(wa))),e};ue.unstable_shouldYield=Kd;ue.unstable_wrapCallback=function(e){var t=Ke;return function(){var n=Ke;Ke=t;try{return e.apply(this,arguments)}finally{Ke=n}}}});var Yd=Y((iv,qd)=>{"use strict";qd.exports=Qd()});var t1=Y(vt=>{"use strict";var E0=We(),ht=Yd();function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 rp=new Set,Ei={};function Jn(e,t){Tr(e,t),Tr(e+"Capture",t)}function Tr(e,t){for(Ei[e]=t,e=0;e<t.length;e++)rp.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$a=Object.prototype.hasOwnProperty,N0=/^[: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]*$/,Gd={},Jd={};function z0(e){return $a.call(Jd,e)?!0:$a.call(Gd,e)?!1:N0.test(e)?Jd[e]=!0:(Gd[e]=!0,!1)}function M0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P0(e,t,n,r){if(t===null||typeof t>"u"||M0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 nt(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(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){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var As=/[\-:]([a-z])/g;function js(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(As,js);Ve[t]=new nt(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(As,js);Ve[t]=new nt(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(As,js);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fs(e,t,n,r){var i=Ve.hasOwnProperty(t)?Ve[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P0(t,n,i,r)&&(n=null),r||i===null?z0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var on=E0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ko=Symbol.for("react.element"),pr=Symbol.for("react.portal"),fr=Symbol.for("react.fragment"),Us=Symbol.for("react.strict_mode"),Wa=Symbol.for("react.profiler"),ip=Symbol.for("react.provider"),op=Symbol.for("react.context"),Hs=Symbol.for("react.forward_ref"),Ka=Symbol.for("react.suspense"),Qa=Symbol.for("react.suspense_list"),Os=Symbol.for("react.memo"),un=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var lp=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Xd=Symbol.iterator;function ii(e){return e===null||typeof e!="object"?null:(e=Xd&&e[Xd]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,Ca;function pi(e){if(Ca===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ca=t&&t[1]||""}return`
|
|
2
|
+
`+Ca+e}var Sa=!1;function Ea(e,t){if(!e||Sa)return"";Sa=!0;var n=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 i=u.stack.split(`
|
|
3
|
+
`),o=r.stack.split(`
|
|
4
|
+
`),l=i.length-1,a=o.length-1;1<=l&&0<=a&&i[l]!==o[a];)a--;for(;1<=l&&0<=a;l--,a--)if(i[l]!==o[a]){if(l!==1||a!==1)do if(l--,a--,0>a||i[l]!==o[a]){var s=`
|
|
5
|
+
`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Sa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pi(e):""}function T0(e){switch(e.tag){case 5:return pi(e.type);case 16:return pi("Lazy");case 13:return pi("Suspense");case 19:return pi("SuspenseList");case 0:case 2:case 15:return e=Ea(e.type,!1),e;case 11:return e=Ea(e.type.render,!1),e;case 1:return e=Ea(e.type,!0),e;default:return""}}function qa(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 fr:return"Fragment";case pr:return"Portal";case Wa:return"Profiler";case Us:return"StrictMode";case Ka:return"Suspense";case Qa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case op:return(e.displayName||"Context")+".Consumer";case ip:return(e._context.displayName||"Context")+".Provider";case Hs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Os:return t=e.displayName||null,t!==null?t:qa(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return qa(e(t))}catch{}}return null}function _0(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 qa(t);case 8:return t===Us?"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 En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ap(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function L0(e){var t=ap(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yo(e){e._valueTracker||(e._valueTracker=L0(e))}function sp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ap(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ko(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 Ya(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=En(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cp(e,t){t=t.checked,t!=null&&Fs(e,"checked",t,!1)}function Ga(e,t){cp(e,t);var n=En(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ja(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ja(e,t.type,En(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tu(e,t,n){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,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ja(e,t,n){(t!=="number"||Ko(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fi=Array.isArray;function Sr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+En(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Xa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(fi(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:En(n)}}function dp(e,t){var n=En(t.value),r=En(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ru(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function up(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 es(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?up(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wo,pp=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wo=wo||document.createElement("div"),wo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gi={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},I0=["Webkit","ms","Moz","O"];Object.keys(gi).forEach(function(e){I0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gi[t]=gi[e]})});function fp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gi.hasOwnProperty(e)&&gi[e]?(""+t).trim():t+"px"}function mp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=fp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var B0=Ne({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 ts(e,t){if(t){if(B0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function ns(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 rs=null;function Vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var is=null,Er=null,Nr=null;function iu(e){if(e=Zi(e)){if(typeof is!="function")throw Error(N(280));var t=e.stateNode;t&&(t=xl(t),is(e.stateNode,e.type,t))}}function hp(e){Er?Nr?Nr.push(e):Nr=[e]:Er=e}function gp(){if(Er){var e=Er,t=Nr;if(Nr=Er=null,iu(e),t)for(e=0;e<t.length;e++)iu(t[e])}}function vp(e,t){return e(t)}function kp(){}var Na=!1;function yp(e,t,n){if(Na)return e(t,n);Na=!0;try{return vp(e,t,n)}finally{Na=!1,(Er!==null||Nr!==null)&&(kp(),gp())}}function zi(e,t){var n=e.stateNode;if(n===null)return null;var r=xl(n);if(r===null)return null;n=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(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var os=!1;if(en)try{dr={},Object.defineProperty(dr,"passive",{get:function(){os=!0}}),window.addEventListener("test",dr,dr),window.removeEventListener("test",dr,dr)}catch{os=!1}var dr;function R0(e,t,n,r,i,o,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var vi=!1,Qo=null,qo=!1,ls=null,D0={onError:function(e){vi=!0,Qo=e}};function A0(e,t,n,r,i,o,l,a,s){vi=!1,Qo=null,R0.apply(D0,arguments)}function j0(e,t,n,r,i,o,l,a,s){if(A0.apply(this,arguments),vi){if(vi){var u=Qo;vi=!1,Qo=null}else throw Error(N(198));qo||(qo=!0,ls=u)}}function Xn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function wp(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 ou(e){if(Xn(e)!==e)throw Error(N(188))}function F0(e){var t=e.alternate;if(!t){if(t=Xn(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ou(i),e;if(o===r)return ou(i),t;o=o.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l){for(a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function xp(e){return e=F0(e),e!==null?bp(e):null}function bp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bp(e);if(t!==null)return t;e=e.sibling}return null}var Cp=ht.unstable_scheduleCallback,lu=ht.unstable_cancelCallback,U0=ht.unstable_shouldYield,H0=ht.unstable_requestPaint,Pe=ht.unstable_now,O0=ht.unstable_getCurrentPriorityLevel,Zs=ht.unstable_ImmediatePriority,Sp=ht.unstable_UserBlockingPriority,Yo=ht.unstable_NormalPriority,V0=ht.unstable_LowPriority,Ep=ht.unstable_IdlePriority,vl=null,$t=null;function Z0(e){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(vl,e,void 0,(e.current.flags&128)===128)}catch{}}var Dt=Math.clz32?Math.clz32:K0,$0=Math.log,W0=Math.LN2;function K0(e){return e>>>=0,e===0?32:31-($0(e)/W0|0)|0}var xo=64,bo=4194304;function mi(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 Go(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=mi(a):(o&=l,o!==0&&(r=mi(o)))}else l=n&~i,l!==0?r=mi(l):o!==0&&(r=mi(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Dt(t),i=1<<n,r|=e[n],t&=~i;return r}function Q0(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 q0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Dt(o),a=1<<l,s=i[l];s===-1?((a&n)===0||(a&r)!==0)&&(i[l]=Q0(a,t)):s<=t&&(e.expiredLanes|=a),o&=~a}}function as(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Np(){var e=xo;return xo<<=1,(xo&4194240)===0&&(xo=64),e}function za(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function Y0(e,t){var n=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<n;){var i=31-Dt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function $s(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var le=0;function zp(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Mp,Ws,Pp,Tp,_p,ss=!1,Co=[],vn=null,kn=null,yn=null,Mi=new Map,Pi=new Map,fn=[],G0="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 au(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":Mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function oi(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Zi(t),t!==null&&Ws(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function J0(e,t,n,r,i){switch(t){case"focusin":return vn=oi(vn,e,t,n,r,i),!0;case"dragenter":return kn=oi(kn,e,t,n,r,i),!0;case"mouseover":return yn=oi(yn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Mi.set(o,oi(Mi.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pi.set(o,oi(Pi.get(o)||null,e,t,n,r,i)),!0}return!1}function Lp(e){var t=On(e.target);if(t!==null){var n=Xn(t);if(n!==null){if(t=n.tag,t===13){if(t=wp(n),t!==null){e.blockedOn=t,_p(e.priority,function(){Pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ao(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rs=r,n.target.dispatchEvent(r),rs=null}else return t=Zi(n),t!==null&&Ws(t),e.blockedOn=n,!1;t.shift()}return!0}function su(e,t,n){Ao(e)&&n.delete(t)}function X0(){ss=!1,vn!==null&&Ao(vn)&&(vn=null),kn!==null&&Ao(kn)&&(kn=null),yn!==null&&Ao(yn)&&(yn=null),Mi.forEach(su),Pi.forEach(su)}function li(e,t){e.blockedOn===t&&(e.blockedOn=null,ss||(ss=!0,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,X0)))}function Ti(e){function t(i){return li(i,e)}if(0<Co.length){li(Co[0],e);for(var n=1;n<Co.length;n++){var r=Co[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&li(vn,e),kn!==null&&li(kn,e),yn!==null&&li(yn,e),Mi.forEach(t),Pi.forEach(t),n=0;n<fn.length;n++)r=fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<fn.length&&(n=fn[0],n.blockedOn===null);)Lp(n),n.blockedOn===null&&fn.shift()}var zr=on.ReactCurrentBatchConfig,Jo=!0;function eh(e,t,n,r){var i=le,o=zr.transition;zr.transition=null;try{le=1,Ks(e,t,n,r)}finally{le=i,zr.transition=o}}function th(e,t,n,r){var i=le,o=zr.transition;zr.transition=null;try{le=4,Ks(e,t,n,r)}finally{le=i,zr.transition=o}}function Ks(e,t,n,r){if(Jo){var i=cs(e,t,n,r);if(i===null)Ba(e,t,r,Xo,n),au(e,r);else if(J0(i,e,t,n,r))r.stopPropagation();else if(au(e,r),t&4&&-1<G0.indexOf(e)){for(;i!==null;){var o=Zi(i);if(o!==null&&Mp(o),o=cs(e,t,n,r),o===null&&Ba(e,t,r,Xo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ba(e,t,r,null,n)}}var Xo=null;function cs(e,t,n,r){if(Xo=null,e=Vs(r),e=On(e),e!==null)if(t=Xn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xo=e,null}function Ip(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(O0()){case Zs:return 1;case Sp:return 4;case Yo:case V0:return 16;case Ep:return 536870912;default:return 16}default:return 16}}var hn=null,Qs=null,jo=null;function Bp(){if(jo)return jo;var e,t=Qs,n=t.length,r,i="value"in hn?hn.value:hn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return jo=i.slice(e,1<r?1-r:void 0)}function Fo(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 So(){return!0}function cu(){return!1}function gt(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?So:cu,this.isPropagationStopped=cu,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=So)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=So)},persist:function(){},isPersistent:So}),t}var Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=gt(Ar),Vi=Ne({},Ar,{view:0,detail:0}),nh=gt(Vi),Ma,Pa,ai,kl=Ne({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ys,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!==ai&&(ai&&e.type==="mousemove"?(Ma=e.screenX-ai.screenX,Pa=e.screenY-ai.screenY):Pa=Ma=0,ai=e),Ma)},movementY:function(e){return"movementY"in e?e.movementY:Pa}}),du=gt(kl),rh=Ne({},kl,{dataTransfer:0}),ih=gt(rh),oh=Ne({},Vi,{relatedTarget:0}),Ta=gt(oh),lh=Ne({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),ah=gt(lh),sh=Ne({},Ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ch=gt(sh),dh=Ne({},Ar,{data:0}),uu=gt(dh),uh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ph={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"},fh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fh[e])?!!t[e]:!1}function Ys(){return mh}var hh=Ne({},Vi,{key:function(e){if(e.key){var t=uh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ph[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ys,charCode:function(e){return e.type==="keypress"?Fo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gh=gt(hh),vh=Ne({},kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pu=gt(vh),kh=Ne({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ys}),yh=gt(kh),wh=Ne({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),xh=gt(wh),bh=Ne({},kl,{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}),Ch=gt(bh),Sh=[9,13,27,32],Gs=en&&"CompositionEvent"in window,ki=null;en&&"documentMode"in document&&(ki=document.documentMode);var Eh=en&&"TextEvent"in window&&!ki,Rp=en&&(!Gs||ki&&8<ki&&11>=ki),fu=" ",mu=!1;function Dp(e,t){switch(e){case"keyup":return Sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function Nh(e,t){switch(e){case"compositionend":return Ap(t);case"keypress":return t.which!==32?null:(mu=!0,fu);case"textInput":return e=t.data,e===fu&&mu?null:e;default:return null}}function zh(e,t){if(mr)return e==="compositionend"||!Gs&&Dp(e,t)?(e=Bp(),jo=Qs=hn=null,mr=!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 Rp&&t.locale!=="ko"?null:t.data;default:return null}}var Mh={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 hu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mh[e.type]:t==="textarea"}function jp(e,t,n,r){hp(r),t=el(t,"onChange"),0<t.length&&(n=new qs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yi=null,_i=null;function Ph(e){qp(e,0)}function yl(e){var t=vr(e);if(sp(t))return e}function Th(e,t){if(e==="change")return t}var Fp=!1;en&&(en?(No="oninput"in document,No||(_a=document.createElement("div"),_a.setAttribute("oninput","return;"),No=typeof _a.oninput=="function"),Eo=No):Eo=!1,Fp=Eo&&(!document.documentMode||9<document.documentMode));var Eo,No,_a;function gu(){yi&&(yi.detachEvent("onpropertychange",Up),_i=yi=null)}function Up(e){if(e.propertyName==="value"&&yl(_i)){var t=[];jp(t,_i,e,Vs(e)),yp(Ph,t)}}function _h(e,t,n){e==="focusin"?(gu(),yi=t,_i=n,yi.attachEvent("onpropertychange",Up)):e==="focusout"&&gu()}function Lh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(_i)}function Ih(e,t){if(e==="click")return yl(t)}function Bh(e,t){if(e==="input"||e==="change")return yl(t)}function Rh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Rh;function Li(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!$a.call(t,i)||!jt(e[i],t[i]))return!1}return!0}function vu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ku(e,t){var n=vu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vu(n)}}function Hp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=Ko();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ko(e.document)}return t}function Js(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 Dh(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hp(n.ownerDocument.documentElement,n)){if(r!==null&&Js(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ku(n,o);var l=ku(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ah=en&&"documentMode"in document&&11>=document.documentMode,hr=null,ds=null,wi=null,us=!1;function yu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;us||hr==null||hr!==Ko(r)||(r=hr,"selectionStart"in r&&Js(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}),wi&&Li(wi,r)||(wi=r,r=el(ds,"onSelect"),0<r.length&&(t=new qs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function zo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gr={animationend:zo("Animation","AnimationEnd"),animationiteration:zo("Animation","AnimationIteration"),animationstart:zo("Animation","AnimationStart"),transitionend:zo("Transition","TransitionEnd")},La={},Vp={};en&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete gr.animationend.animation,delete gr.animationiteration.animation,delete gr.animationstart.animation),"TransitionEvent"in window||delete gr.transitionend.transition);function wl(e){if(La[e])return La[e];if(!gr[e])return e;var t=gr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vp)return La[e]=t[n];return e}var Zp=wl("animationend"),$p=wl("animationiteration"),Wp=wl("animationstart"),Kp=wl("transitionend"),Qp=new Map,wu="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 zn(e,t){Qp.set(e,t),Jn(t,[e])}for(Mo=0;Mo<wu.length;Mo++)Po=wu[Mo],xu=Po.toLowerCase(),bu=Po[0].toUpperCase()+Po.slice(1),zn(xu,"on"+bu);var Po,xu,bu,Mo;zn(Zp,"onAnimationEnd");zn($p,"onAnimationIteration");zn(Wp,"onAnimationStart");zn("dblclick","onDoubleClick");zn("focusin","onFocus");zn("focusout","onBlur");zn(Kp,"onTransitionEnd");Tr("onMouseEnter",["mouseout","mouseover"]);Tr("onMouseLeave",["mouseout","mouseover"]);Tr("onPointerEnter",["pointerout","pointerover"]);Tr("onPointerLeave",["pointerout","pointerover"]);Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="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(" "),jh=new Set("cancel close invalid load scroll toggle".split(" ").concat(hi));function Cu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,j0(r,t,void 0,e),e.currentTarget=null}function qp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==o&&i.isPropagationStopped())break e;Cu(i,a,u),o=s}else for(l=0;l<r.length;l++){if(a=r[l],s=a.instance,u=a.currentTarget,a=a.listener,s!==o&&i.isPropagationStopped())break e;Cu(i,a,u),o=s}}}if(qo)throw e=ls,qo=!1,ls=null,e}function he(e,t){var n=t[gs];n===void 0&&(n=t[gs]=new Set);var r=e+"__bubble";n.has(r)||(Yp(t,e,2,!1),n.add(r))}function Ia(e,t,n){var r=0;t&&(r|=4),Yp(n,e,r,t)}var To="_reactListening"+Math.random().toString(36).slice(2);function Ii(e){if(!e[To]){e[To]=!0,rp.forEach(function(n){n!=="selectionchange"&&(jh.has(n)||Ia(n,!1,e),Ia(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[To]||(t[To]=!0,Ia("selectionchange",!1,t))}}function Yp(e,t,n,r){switch(Ip(t)){case 1:var i=eh;break;case 4:i=th;break;default:i=Ks}n=i.bind(null,t,n,e),i=void 0,!os||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ba(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;l=l.return}for(;a!==null;){if(l=On(a),l===null)return;if(s=l.tag,s===5||s===6){r=o=l;continue e}a=a.parentNode}}r=r.return}yp(function(){var u=o,m=Vs(n),h=[];e:{var g=Qp.get(e);if(g!==void 0){var v=qs,b=e;switch(e){case"keypress":if(Fo(n)===0)break e;case"keydown":case"keyup":v=gh;break;case"focusin":b="focus",v=Ta;break;case"focusout":b="blur",v=Ta;break;case"beforeblur":case"afterblur":v=Ta;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=ih;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=yh;break;case Zp:case $p:case Wp:v=ah;break;case Kp:v=xh;break;case"scroll":v=nh;break;case"wheel":v=Ch;break;case"copy":case"cut":case"paste":v=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=pu}var y=(t&4)!==0,B=!y&&e==="scroll",p=y?g!==null?g+"Capture":null:g;y=[];for(var d=u,f;d!==null;){f=d;var w=f.stateNode;if(f.tag===5&&w!==null&&(f=w,p!==null&&(w=zi(d,p),w!=null&&y.push(Bi(d,w,f)))),B)break;d=d.return}0<y.length&&(g=new v(g,b,null,n,m),h.push({event:g,listeners:y}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&n!==rs&&(b=n.relatedTarget||n.fromElement)&&(On(b)||b[tn]))break e;if((v||g)&&(g=m.window===m?m:(g=m.ownerDocument)?g.defaultView||g.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=u,b=b?On(b):null,b!==null&&(B=Xn(b),b!==B||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=u),v!==b)){if(y=du,w="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(y=pu,w="onPointerLeave",p="onPointerEnter",d="pointer"),B=v==null?g:vr(v),f=b==null?g:vr(b),g=new y(w,d+"leave",v,n,m),g.target=B,g.relatedTarget=f,w=null,On(m)===u&&(y=new y(p,d+"enter",b,n,m),y.target=f,y.relatedTarget=B,w=y),B=w,v&&b)t:{for(y=v,p=b,d=0,f=y;f;f=ur(f))d++;for(f=0,w=p;w;w=ur(w))f++;for(;0<d-f;)y=ur(y),d--;for(;0<f-d;)p=ur(p),f--;for(;d--;){if(y===p||p!==null&&y===p.alternate)break t;y=ur(y),p=ur(p)}y=null}else y=null;v!==null&&Su(h,g,v,y,!1),b!==null&&B!==null&&Su(h,B,b,y,!0)}}e:{if(g=u?vr(u):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var E=Th;else if(hu(g))if(Fp)E=Bh;else{E=Lh;var M=_h}else(v=g.nodeName)&&v.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(E=Ih);if(E&&(E=E(e,u))){jp(h,E,n,m);break e}M&&M(e,g,u),e==="focusout"&&(M=g._wrapperState)&&M.controlled&&g.type==="number"&&Ja(g,"number",g.value)}switch(M=u?vr(u):window,e){case"focusin":(hu(M)||M.contentEditable==="true")&&(hr=M,ds=u,wi=null);break;case"focusout":wi=ds=hr=null;break;case"mousedown":us=!0;break;case"contextmenu":case"mouseup":case"dragend":us=!1,yu(h,n,m);break;case"selectionchange":if(Ah)break;case"keydown":case"keyup":yu(h,n,m)}var P;if(Gs)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else mr?Dp(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Rp&&n.locale!=="ko"&&(mr||L!=="onCompositionStart"?L==="onCompositionEnd"&&mr&&(P=Bp()):(hn=m,Qs="value"in hn?hn.value:hn.textContent,mr=!0)),M=el(u,L),0<M.length&&(L=new uu(L,e,null,n,m),h.push({event:L,listeners:M}),P?L.data=P:(P=Ap(n),P!==null&&(L.data=P)))),(P=Eh?Nh(e,n):zh(e,n))&&(u=el(u,"onBeforeInput"),0<u.length&&(m=new uu("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:u}),m.data=P))}qp(h,t)})}function Bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function el(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=zi(e,n),o!=null&&r.unshift(Bi(e,o,i)),o=zi(e,t),o!=null&&r.push(Bi(e,o,i))),e=e.return}return r}function ur(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Su(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=zi(n,o),s!=null&&l.unshift(Bi(n,s,a))):i||(s=zi(n,o),s!=null&&l.push(Bi(n,s,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Fh=/\r\n?/g,Uh=/\u0000|\uFFFD/g;function Eu(e){return(typeof e=="string"?e:""+e).replace(Fh,`
|
|
6
|
+
`).replace(Uh,"")}function _o(e,t,n){if(t=Eu(t),Eu(e)!==t&&n)throw Error(N(425))}function tl(){}var ps=null,fs=null;function ms(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 hs=typeof setTimeout=="function"?setTimeout:void 0,Hh=typeof clearTimeout=="function"?clearTimeout:void 0,Nu=typeof Promise=="function"?Promise:void 0,Oh=typeof queueMicrotask=="function"?queueMicrotask:typeof Nu<"u"?function(e){return Nu.resolve(null).then(e).catch(Vh)}:hs;function Vh(e){setTimeout(function(){throw e})}function Ra(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ti(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ti(t)}function wn(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 zu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var jr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+jr,Ri="__reactProps$"+jr,tn="__reactContainer$"+jr,gs="__reactEvents$"+jr,Zh="__reactListeners$"+jr,$h="__reactHandles$"+jr;function On(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zu(e);e!==null;){if(n=e[Zt])return n;e=zu(e)}return t}e=n,n=e.parentNode}return null}function Zi(e){return e=e[Zt]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function xl(e){return e[Ri]||null}var vs=[],kr=-1;function Mn(e){return{current:e}}function ge(e){0>kr||(e.current=vs[kr],vs[kr]=null,kr--)}function pe(e,t){kr++,vs[kr]=e.current,e.current=t}var Nn={},Ge=Mn(Nn),lt=Mn(!1),Kn=Nn;function _r(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function at(e){return e=e.childContextTypes,e!=null}function nl(){ge(lt),ge(Ge)}function Mu(e,t,n){if(Ge.current!==Nn)throw Error(N(168));pe(Ge,t),pe(lt,n)}function Gp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,_0(e)||"Unknown",i));return Ne({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,Kn=Ge.current,pe(Ge,e),pe(lt,lt.current),!0}function Pu(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Gp(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,ge(lt),ge(Ge),pe(Ge,e)):ge(lt),pe(lt,n)}var Yt=null,bl=!1,Da=!1;function Jp(e){Yt===null?Yt=[e]:Yt.push(e)}function Wh(e){bl=!0,Jp(e)}function Pn(){if(!Da&&Yt!==null){Da=!0;var e=0,t=le;try{var n=Yt;for(le=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,bl=!1}catch(i){throw Yt!==null&&(Yt=Yt.slice(e+1)),Cp(Zs,Pn),i}finally{le=t,Da=!1}}return null}var yr=[],wr=0,il=null,ol=0,wt=[],xt=0,Qn=null,Gt=1,Jt="";function Un(e,t){yr[wr++]=ol,yr[wr++]=il,il=e,ol=t}function Xp(e,t,n){wt[xt++]=Gt,wt[xt++]=Jt,wt[xt++]=Qn,Qn=e;var r=Gt;e=Jt;var i=32-Dt(r)-1;r&=~(1<<i),n+=1;var o=32-Dt(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Gt=1<<32-Dt(t)+i|n<<i|r,Jt=o+e}else Gt=1<<o|n<<i|r,Jt=e}function Xs(e){e.return!==null&&(Un(e,1),Xp(e,1,0))}function ec(e){for(;e===il;)il=yr[--wr],yr[wr]=null,ol=yr[--wr],yr[wr]=null;for(;e===Qn;)Qn=wt[--xt],wt[xt]=null,Jt=wt[--xt],wt[xt]=null,Gt=wt[--xt],wt[xt]=null}var mt=null,ft=null,ve=!1,Rt=null;function ef(e,t){var n=bt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Tu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,ft=wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qn!==null?{id:Gt,overflow:Jt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,ft=null,!0):!1;default:return!1}}function ks(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ys(e){if(ve){var t=ft;if(t){var n=t;if(!Tu(e,t)){if(ks(e))throw Error(N(418));t=wn(n.nextSibling);var r=mt;t&&Tu(e,t)?ef(r,n):(e.flags=e.flags&-4097|2,ve=!1,mt=e)}}else{if(ks(e))throw Error(N(418));e.flags=e.flags&-4097|2,ve=!1,mt=e}}}function _u(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function Lo(e){if(e!==mt)return!1;if(!ve)return _u(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ms(e.type,e.memoizedProps)),t&&(t=ft)){if(ks(e))throw tf(),Error(N(418));for(;t;)ef(e,t),t=wn(t.nextSibling)}if(_u(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ft=wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ft=null}}else ft=mt?wn(e.stateNode.nextSibling):null;return!0}function tf(){for(var e=ft;e;)e=wn(e.nextSibling)}function Lr(){ft=mt=null,ve=!1}function tc(e){Rt===null?Rt=[e]:Rt.push(e)}var Kh=on.ReactCurrentBatchConfig;function si(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var a=i.refs;l===null?delete a[o]:a[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Io(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lu(e){var t=e._init;return t(e._payload)}function nf(e){function t(p,d){if(e){var f=p.deletions;f===null?(p.deletions=[d],p.flags|=16):f.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function i(p,d){return p=Sn(p,d),p.index=0,p.sibling=null,p}function o(p,d,f){return p.index=f,e?(f=p.alternate,f!==null?(f=f.index,f<d?(p.flags|=2,d):f):(p.flags|=2,d)):(p.flags|=1048576,d)}function l(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,d,f,w){return d===null||d.tag!==6?(d=Va(f,p.mode,w),d.return=p,d):(d=i(d,f),d.return=p,d)}function s(p,d,f,w){var E=f.type;return E===fr?m(p,d,f.props.children,w,f.key):d!==null&&(d.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===un&&Lu(E)===d.type)?(w=i(d,f.props),w.ref=si(p,d,f),w.return=p,w):(w=Wo(f.type,f.key,f.props,null,p.mode,w),w.ref=si(p,d,f),w.return=p,w)}function u(p,d,f,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==f.containerInfo||d.stateNode.implementation!==f.implementation?(d=Za(f,p.mode,w),d.return=p,d):(d=i(d,f.children||[]),d.return=p,d)}function m(p,d,f,w,E){return d===null||d.tag!==7?(d=Wn(f,p.mode,w,E),d.return=p,d):(d=i(d,f),d.return=p,d)}function h(p,d,f){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Va(""+d,p.mode,f),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ko:return f=Wo(d.type,d.key,d.props,null,p.mode,f),f.ref=si(p,null,d),f.return=p,f;case pr:return d=Za(d,p.mode,f),d.return=p,d;case un:var w=d._init;return h(p,w(d._payload),f)}if(fi(d)||ii(d))return d=Wn(d,p.mode,f,null),d.return=p,d;Io(p,d)}return null}function g(p,d,f,w){var E=d!==null?d.key:null;if(typeof f=="string"&&f!==""||typeof f=="number")return E!==null?null:a(p,d,""+f,w);if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ko:return f.key===E?s(p,d,f,w):null;case pr:return f.key===E?u(p,d,f,w):null;case un:return E=f._init,g(p,d,E(f._payload),w)}if(fi(f)||ii(f))return E!==null?null:m(p,d,f,w,null);Io(p,f)}return null}function v(p,d,f,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(f)||null,a(d,p,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ko:return p=p.get(w.key===null?f:w.key)||null,s(d,p,w,E);case pr:return p=p.get(w.key===null?f:w.key)||null,u(d,p,w,E);case un:var M=w._init;return v(p,d,f,M(w._payload),E)}if(fi(w)||ii(w))return p=p.get(f)||null,m(d,p,w,E,null);Io(d,w)}return null}function b(p,d,f,w){for(var E=null,M=null,P=d,L=d=0,A=null;P!==null&&L<f.length;L++){P.index>L?(A=P,P=null):A=P.sibling;var D=g(p,P,f[L],w);if(D===null){P===null&&(P=A);break}e&&P&&D.alternate===null&&t(p,P),d=o(D,d,L),M===null?E=D:M.sibling=D,M=D,P=A}if(L===f.length)return n(p,P),ve&&Un(p,L),E;if(P===null){for(;L<f.length;L++)P=h(p,f[L],w),P!==null&&(d=o(P,d,L),M===null?E=P:M.sibling=P,M=P);return ve&&Un(p,L),E}for(P=r(p,P);L<f.length;L++)A=v(P,p,L,f[L],w),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?L:A.key),d=o(A,d,L),M===null?E=A:M.sibling=A,M=A);return e&&P.forEach(function(_){return t(p,_)}),ve&&Un(p,L),E}function y(p,d,f,w){var E=ii(f);if(typeof E!="function")throw Error(N(150));if(f=E.call(f),f==null)throw Error(N(151));for(var M=E=null,P=d,L=d=0,A=null,D=f.next();P!==null&&!D.done;L++,D=f.next()){P.index>L?(A=P,P=null):A=P.sibling;var _=g(p,P,D.value,w);if(_===null){P===null&&(P=A);break}e&&P&&_.alternate===null&&t(p,P),d=o(_,d,L),M===null?E=_:M.sibling=_,M=_,P=A}if(D.done)return n(p,P),ve&&Un(p,L),E;if(P===null){for(;!D.done;L++,D=f.next())D=h(p,D.value,w),D!==null&&(d=o(D,d,L),M===null?E=D:M.sibling=D,M=D);return ve&&Un(p,L),E}for(P=r(p,P);!D.done;L++,D=f.next())D=v(P,p,L,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?L:D.key),d=o(D,d,L),M===null?E=D:M.sibling=D,M=D);return e&&P.forEach(function(J){return t(p,J)}),ve&&Un(p,L),E}function B(p,d,f,w){if(typeof f=="object"&&f!==null&&f.type===fr&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case ko:e:{for(var E=f.key,M=d;M!==null;){if(M.key===E){if(E=f.type,E===fr){if(M.tag===7){n(p,M.sibling),d=i(M,f.props.children),d.return=p,p=d;break e}}else if(M.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===un&&Lu(E)===M.type){n(p,M.sibling),d=i(M,f.props),d.ref=si(p,M,f),d.return=p,p=d;break e}n(p,M);break}else t(p,M);M=M.sibling}f.type===fr?(d=Wn(f.props.children,p.mode,w,f.key),d.return=p,p=d):(w=Wo(f.type,f.key,f.props,null,p.mode,w),w.ref=si(p,d,f),w.return=p,p=w)}return l(p);case pr:e:{for(M=f.key;d!==null;){if(d.key===M)if(d.tag===4&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){n(p,d.sibling),d=i(d,f.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Za(f,p.mode,w),d.return=p,p=d}return l(p);case un:return M=f._init,B(p,d,M(f._payload),w)}if(fi(f))return b(p,d,f,w);if(ii(f))return y(p,d,f,w);Io(p,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,d!==null&&d.tag===6?(n(p,d.sibling),d=i(d,f),d.return=p,p=d):(n(p,d),d=Va(f,p.mode,w),d.return=p,p=d),l(p)):n(p,d)}return B}var Ir=nf(!0),rf=nf(!1),ll=Mn(null),al=null,xr=null,nc=null;function rc(){nc=xr=al=null}function ic(e){var t=ll.current;ge(ll),e._currentValue=t}function ws(e,t,n){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===n)break;e=e.return}}function Mr(e,t){al=e,nc=xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ot=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(nc!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(al===null)throw Error(N(308));xr=e,al.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Vn=null;function oc(e){Vn===null?Vn=[e]:Vn.push(e)}function of(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,oc(t)):(n.next=i.next,i.next=n),t.interleaved=n,nn(e,r)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pn=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lf(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 Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ne&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,nn(e,n)}return i=r.interleaved,i===null?(t.next=t,oc(r)):(t.next=i.next,i.next=t),r.interleaved=t,nn(e,n)}function Uo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}function Iu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sl(e,t,n,r){var i=e.updateQueue;pn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==l&&(a===null?m.firstBaseUpdate=u:a.next=u,m.lastBaseUpdate=s))}if(o!==null){var h=i.baseState;l=0,m=u=s=null,a=o;do{var g=a.lane,v=a.eventTime;if((r&g)===g){m!==null&&(m=m.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,y=a;switch(g=t,v=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){h=b.call(v,h,g);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,g=typeof b=="function"?b.call(v,h,g):b,g==null)break e;h=Ne({},h,g);break e;case 2:pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else v={eventTime:v,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(u=m=v,s=h):m=m.next=v,l|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(m===null&&(s=h),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=m,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Yn|=l,e.lanes=l,e.memoizedState=h}}function Bu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(N(191,i));i.call(r)}}}var $i={},Wt=Mn($i),Di=Mn($i),Ai=Mn($i);function Zn(e){if(e===$i)throw Error(N(174));return e}function ac(e,t){switch(pe(Ai,t),pe(Di,e),pe(Wt,$i),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:es(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=es(t,e)}ge(Wt),pe(Wt,t)}function Br(){ge(Wt),ge(Di),ge(Ai)}function af(e){Zn(Ai.current);var t=Zn(Wt.current),n=es(t,e.type);t!==n&&(pe(Di,e),pe(Wt,n))}function sc(e){Di.current===e&&(ge(Wt),ge(Di))}var Se=Mn(0);function cl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Aa=[];function cc(){for(var e=0;e<Aa.length;e++)Aa[e]._workInProgressVersionPrimary=null;Aa.length=0}var Ho=on.ReactCurrentDispatcher,ja=on.ReactCurrentBatchConfig,qn=0,Ee=null,Re=null,Fe=null,dl=!1,xi=!1,ji=0,Qh=0;function Qe(){throw Error(N(321))}function dc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function uc(e,t,n,r,i,o){if(qn=o,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ho.current=e===null||e.memoizedState===null?Jh:Xh,e=n(r,i),xi){o=0;do{if(xi=!1,ji=0,25<=o)throw Error(N(301));o+=1,Fe=Re=null,t.updateQueue=null,Ho.current=eg,e=n(r,i)}while(xi)}if(Ho.current=ul,t=Re!==null&&Re.next!==null,qn=0,Fe=Re=Ee=null,dl=!1,t)throw Error(N(300));return e}function pc(){var e=ji!==0;return ji=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Ee.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Et(){if(Re===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Fe===null?Ee.memoizedState:Fe.next;if(t!==null)Fe=t,Re=e;else{if(e===null)throw Error(N(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Fe===null?Ee.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Fi(e,t){return typeof t=="function"?t(e):t}function Fa(e){var t=Et(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Re,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=l=null,s=null,u=o;do{var m=u.lane;if((qn&m)===m)s!==null&&(s=s.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 h={lane:m,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=h,l=r):s=s.next=h,Ee.lanes|=m,Yn|=m}u=u.next}while(u!==null&&u!==o);s===null?l=r:s.next=a,jt(r,t.memoizedState)||(ot=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ee.lanes|=o,Yn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ua(e){var t=Et(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);jt(o,t.memoizedState)||(ot=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sf(){}function cf(e,t){var n=Ee,r=Et(),i=t(),o=!jt(r.memoizedState,i);if(o&&(r.memoizedState=i,ot=!0),r=r.queue,fc(pf.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Ui(9,uf.bind(null,n,r,i,t),void 0,null),Ue===null)throw Error(N(349));(qn&30)!==0||df(n,t,i)}return i}function df(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function uf(e,t,n,r){t.value=n,t.getSnapshot=r,ff(t)&&mf(e)}function pf(e,t,n){return n(function(){ff(t)&&mf(e)})}function ff(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function mf(e){var t=nn(e,1);t!==null&&At(t,e,1,-1)}function Ru(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:e},t.queue=e,e=e.dispatch=Gh.bind(null,Ee,e),[t.memoizedState,e]}function Ui(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function hf(){return Et().memoizedState}function Oo(e,t,n,r){var i=Vt();Ee.flags|=e,i.memoizedState=Ui(1|t,n,void 0,r===void 0?null:r)}function Cl(e,t,n,r){var i=Et();r=r===void 0?null:r;var o=void 0;if(Re!==null){var l=Re.memoizedState;if(o=l.destroy,r!==null&&dc(r,l.deps)){i.memoizedState=Ui(t,n,o,r);return}}Ee.flags|=e,i.memoizedState=Ui(1|t,n,o,r)}function Du(e,t){return Oo(8390656,8,e,t)}function fc(e,t){return Cl(2048,8,e,t)}function gf(e,t){return Cl(4,2,e,t)}function vf(e,t){return Cl(4,4,e,t)}function kf(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 yf(e,t,n){return n=n!=null?n.concat([e]):null,Cl(4,4,kf.bind(null,t,e),n)}function mc(){}function wf(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xf(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bf(e,t,n){return(qn&21)===0?(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=n):(jt(n,t)||(n=Np(),Ee.lanes|=n,Yn|=n,e.baseState=!0),t)}function qh(e,t){var n=le;le=n!==0&&4>n?n:4,e(!0);var r=ja.transition;ja.transition={};try{e(!1),t()}finally{le=n,ja.transition=r}}function Cf(){return Et().memoizedState}function Yh(e,t,n){var r=Cn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Sf(e))Ef(t,n);else if(n=of(e,t,n,r),n!==null){var i=tt();At(n,e,r,i),Nf(n,t,r)}}function Gh(e,t,n){var r=Cn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sf(e))Ef(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,jt(a,l)){var s=t.interleaved;s===null?(i.next=i,oc(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=of(e,t,i,r),n!==null&&(i=tt(),At(n,e,r,i),Nf(n,t,r))}}function Sf(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Ef(e,t){xi=dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nf(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}var ul={readContext:St,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Jh={readContext:St,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Oo(4194308,4,kf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oo(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();return t=n!==void 0?n(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=Yh.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:Ru,useDebugValue:mc,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=Ru(!1),t=e[0];return e=qh.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,i=Vt();if(ve){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ue===null)throw Error(N(349));(qn&30)!==0||df(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Du(pf.bind(null,r,o,e),[e]),r.flags|=2048,Ui(9,uf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Vt(),t=Ue.identifierPrefix;if(ve){var n=Jt,r=Gt;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ji++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Qh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xh={readContext:St,useCallback:wf,useContext:St,useEffect:fc,useImperativeHandle:yf,useInsertionEffect:gf,useLayoutEffect:vf,useMemo:xf,useReducer:Fa,useRef:hf,useState:function(){return Fa(Fi)},useDebugValue:mc,useDeferredValue:function(e){var t=Et();return bf(t,Re.memoizedState,e)},useTransition:function(){var e=Fa(Fi)[0],t=Et().memoizedState;return[e,t]},useMutableSource:sf,useSyncExternalStore:cf,useId:Cf,unstable_isNewReconciler:!1},eg={readContext:St,useCallback:wf,useContext:St,useEffect:fc,useImperativeHandle:yf,useInsertionEffect:gf,useLayoutEffect:vf,useMemo:xf,useReducer:Ua,useRef:hf,useState:function(){return Ua(Fi)},useDebugValue:mc,useDeferredValue:function(e){var t=Et();return Re===null?t.memoizedState=e:bf(t,Re.memoizedState,e)},useTransition:function(){var e=Ua(Fi)[0],t=Et().memoizedState;return[e,t]},useMutableSource:sf,useSyncExternalStore:cf,useId:Cf,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return(e=e._reactInternals)?Xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),i=Cn(e),o=Xt(r,i);o.payload=t,n!=null&&(o.callback=n),t=xn(e,o,i),t!==null&&(At(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),i=Cn(e),o=Xt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=xn(e,o,i),t!==null&&(At(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=Cn(e),i=Xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=xn(e,i,r),t!==null&&(At(t,e,r,n),Uo(t,e,r))}};function Au(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Li(n,r)||!Li(i,o):!0}function zf(e,t,n){var r=!1,i=Nn,o=t.contextType;return typeof o=="object"&&o!==null?o=St(o):(i=at(t)?Kn:Ge.current,r=t.contextTypes,o=(r=r!=null)?_r(e,i):Nn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ju(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function bs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},lc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=St(o):(o=at(t)?Kn:Ge.current,i.context=_r(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xs(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Sl.enqueueReplaceState(i,i.state,null),sl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,t){try{var n="",r=t;do n+=T0(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ha(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tg=typeof WeakMap=="function"?WeakMap:Map;function Mf(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,Is=r),Cs(e,t)},n}function Pf(e,t,n){n=Xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Cs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Cs(e,t),typeof r!="function"&&(bn===null?bn=new Set([this]):bn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Fu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hg.bind(null,e,t,n),t.then(e,e))}function Uu(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 Hu(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,xn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ng=on.ReactCurrentOwner,ot=!1;function et(e,t,n,r){t.child=e===null?rf(t,null,n,r):Ir(t,e.child,n,r)}function Ou(e,t,n,r,i){n=n.render;var o=t.ref;return Mr(t,i),r=uc(e,t,n,r,o,i),n=pc(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(ve&&n&&Xs(t),t.flags|=1,et(e,t,r,i),t.child)}function Vu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!bc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Tf(e,t,o,r,i)):(e=Wo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Li,n(l,r)&&e.ref===t.ref)return rn(e,t,i)}return t.flags|=1,e=Sn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Tf(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Li(o,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,rn(e,t,i)}return Ss(e,t,n,r,i)}function _f(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(Cr,pt),pt|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(Cr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,pe(Cr,pt),pt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,pe(Cr,pt),pt|=r;return et(e,t,i,n),t.child}function Lf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=at(n)?Kn:Ge.current;return o=_r(t,o),Mr(t,i),n=uc(e,t,n,r,o,i),r=pc(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rn(e,t,i)):(ve&&r&&Xs(t),t.flags|=1,et(e,t,n,i),t.child)}function Zu(e,t,n,r,i){if(at(n)){var o=!0;rl(t)}else o=!1;if(Mr(t,i),t.stateNode===null)Vo(e,t),zf(t,n,r),bs(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=St(u):(u=at(n)?Kn:Ge.current,u=_r(t,u));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&ju(t,l,r,u),pn=!1;var g=t.memoizedState;l.state=g,sl(t,r,l,i),s=t.memoizedState,a!==r||g!==s||lt.current||pn?(typeof m=="function"&&(xs(t,n,m,r),s=t.memoizedState),(a=pn||Au(t,n,a,r,g,s,u))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,lf(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:It(t.type,a),l.props=u,h=t.pendingProps,g=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=St(s):(s=at(n)?Kn:Ge.current,s=_r(t,s));var v=n.getDerivedStateFromProps;(m=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==h||g!==s)&&ju(t,l,r,s),pn=!1,g=t.memoizedState,l.state=g,sl(t,r,l,i);var b=t.memoizedState;a!==h||g!==b||lt.current||pn?(typeof v=="function"&&(xs(t,n,v,r),b=t.memoizedState),(u=pn||Au(t,n,u,r,g,b,s)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,b,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,b,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),l.props=r,l.state=b,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Es(e,t,n,r,o,i)}function Es(e,t,n,r,i,o){Lf(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Pu(t,n,!1),rn(e,t,o);r=t.stateNode,ng.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ir(t,e.child,null,o),t.child=Ir(t,null,a,o)):et(e,t,a,o),t.memoizedState=r.state,i&&Pu(t,n,!0),t.child}function If(e){var t=e.stateNode;t.pendingContext?Mu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mu(e,t.context,!1),ac(e,t.containerInfo)}function $u(e,t,n,r,i){return Lr(),tc(i),t.flags|=256,et(e,t,n,r),t.child}var Ns={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bf(e,t,n){var r=t.pendingProps,i=Se.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),pe(Se,i&1),e===null)return ys(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):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=l):o=zl(l,r,0,null),e=Wn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=zs(n),t.memoizedState=Ns,e):hc(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return rg(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return(l&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Sn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Sn(a,o):(o=Wn(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?zs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Ns,r}return o=e.child,e=o.sibling,r=Sn(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function hc(e,t){return t=zl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bo(e,t,n,r){return r!==null&&tc(r),Ir(t,e.child,null,n),e=hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rg(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Ha(Error(N(422))),Bo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=zl({mode:"visible",children:r.children},i,0,null),o=Wn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&Ir(t,e.child,null,l),t.child.memoizedState=zs(l),t.memoizedState=Ns,o);if((t.mode&1)===0)return Bo(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(N(419)),r=Ha(o,r,void 0),Bo(e,t,l,r)}if(a=(l&e.childLanes)!==0,ot||a){if(r=Ue,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|l))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,nn(e,i),At(r,e,i,-1))}return xc(),r=Ha(Error(N(421))),Bo(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=gg.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ft=wn(i.nextSibling),mt=t,ve=!0,Rt=null,e!==null&&(wt[xt++]=Gt,wt[xt++]=Jt,wt[xt++]=Qn,Gt=e.id,Jt=e.overflow,Qn=t),t=hc(t,r.children),t.flags|=4096,t)}function Wu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ws(e.return,t,n)}function Oa(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Rf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(et(e,t,r.children,n),r=Se.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&&Wu(e,n,t);else if(e.tag===19)Wu(e,n,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(pe(Se,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&cl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oa(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&cl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oa(t,!0,n,null,o);break;case"together":Oa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ig(e,t,n){switch(t.tag){case 3:If(t),Lr();break;case 5:af(t);break;case 1:at(t.type)&&rl(t);break;case 4:ac(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;pe(ll,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(Se,Se.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Bf(e,t,n):(pe(Se,Se.current&1),e=rn(e,t,n),e!==null?e.sibling:null);pe(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Rf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,_f(e,t,n)}return rn(e,t,n)}var Df,Ms,Af,jf;Df=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ms=function(){};Af=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zn(Wt.current);var o=null;switch(n){case"input":i=Ya(e,i),r=Ya(e,r),o=[];break;case"select":i=Ne({},i,{value:void 0}),r=Ne({},r,{value:void 0}),o=[];break;case"textarea":i=Xa(e,i),r=Xa(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tl)}ts(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ei.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=i?.[u],r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ei.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&he("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};jf=function(e,t,n,r){n!==r&&(t.flags|=4)};function ci(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function og(e,t,n){var r=t.pendingProps;switch(ec(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return at(t.type)&&nl(),qe(t),null;case 3:return r=t.stateNode,Br(),ge(lt),ge(Ge),cc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rt!==null&&(Ds(Rt),Rt=null))),Ms(e,t),qe(t),null;case 5:sc(t);var i=Zn(Ai.current);if(n=t.type,e!==null&&t.stateNode!=null)Af(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return qe(t),null}if(e=Zn(Wt.current),Lo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Zt]=t,r[Ri]=o,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(i=0;i<hi.length;i++)he(hi[i],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":eu(r,o),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},he("invalid",r);break;case"textarea":nu(r,o),he("invalid",r)}ts(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var a=o[l];l==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&_o(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&_o(r.textContent,a,e),i=["children",""+a]):Ei.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&he("scroll",r)}switch(n){case"input":yo(r),tu(r,o,!0);break;case"textarea":yo(r),ru(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=tl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=up(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Zt]=t,e[Ri]=r,Df(e,t,!1,!1),t.stateNode=e;e:{switch(l=ns(n,r),n){case"dialog":he("cancel",e),he("close",e),i=r;break;case"iframe":case"object":case"embed":he("load",e),i=r;break;case"video":case"audio":for(i=0;i<hi.length;i++)he(hi[i],e);i=r;break;case"source":he("error",e),i=r;break;case"img":case"image":case"link":he("error",e),he("load",e),i=r;break;case"details":he("toggle",e),i=r;break;case"input":eu(e,r),i=Ya(e,r),he("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ne({},r,{value:void 0}),he("invalid",e);break;case"textarea":nu(e,r),i=Xa(e,r),he("invalid",e);break;default:i=r}ts(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="style"?mp(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&pp(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Ni(e,s):typeof s=="number"&&Ni(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ei.hasOwnProperty(o)?s!=null&&o==="onScroll"&&he("scroll",e):s!=null&&Fs(e,o,s,l))}switch(n){case"input":yo(e),tu(e,r,!1);break;case"textarea":yo(e),ru(e);break;case"option":r.value!=null&&e.setAttribute("value",""+En(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Sr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Sr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=tl)}switch(n){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 qe(t),null;case 6:if(e&&t.stateNode!=null)jf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=Zn(Ai.current),Zn(Wt.current),Lo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(o=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:_o(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_o(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return qe(t),null;case 13:if(ge(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)tf(),Lr(),t.flags|=98560,o=!1;else if(o=Lo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(N(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(N(317));o[Zt]=t}else Lr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else Rt!==null&&(Ds(Rt),Rt=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Se.current&1)!==0?De===0&&(De=3):xc())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Br(),Ms(e,t),e===null&&Ii(t.stateNode.containerInfo),qe(t),null;case 10:return ic(t.type._context),qe(t),null;case 17:return at(t.type)&&nl(),qe(t),null;case 19:if(ge(Se),o=t.memoizedState,o===null)return qe(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)ci(o,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=cl(e),l!==null){for(t.flags|=128,ci(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(Se,Se.current&1|2),t.child}e=e.sibling}o.tail!==null&&Pe()>Dr&&(t.flags|=128,r=!0,ci(o,!1),t.lanes=4194304)}else{if(!r)if(e=cl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ci(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ve)return qe(t),null}else 2*Pe()-o.renderingStartTime>Dr&&n!==1073741824&&(t.flags|=128,r=!0,ci(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Pe(),t.sibling=null,n=Se.current,pe(Se,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return wc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(pt&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function lg(e,t){switch(ec(t),t.tag){case 1:return at(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),ge(lt),ge(Ge),cc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return sc(t),null;case 13:if(ge(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Lr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(Se),null;case 4:return Br(),null;case 10:return ic(t.type._context),null;case 22:case 23:return wc(),null;case 24:return null;default:return null}}var Ro=!1,Ye=!1,ag=typeof WeakSet=="function"?WeakSet:Set,R=null;function br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(e,t,r)}else n.current=null}function Ps(e,t,n){try{n()}catch(r){Me(e,t,r)}}var Ku=!1;function sg(e,t){if(ps=Jo,e=Op(),Js(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,m=0,h=e,g=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(a=l+i),h!==o||r!==0&&h.nodeType!==3||(s=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(v=h.firstChild)!==null;)g=h,h=v;for(;;){if(h===e)break t;if(g===n&&++u===i&&(a=l),g===o&&++m===r&&(s=l),(v=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=v}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(fs={focusedElem:e,selectionRange:n},Jo=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,B=b.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:It(t.type,y),B);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){Me(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return b=Ku,Ku=!1,b}function bi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ps(t,n,o)}i=i.next}while(i!==r)}}function El(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ts(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ff(e){var t=e.alternate;t!==null&&(e.alternate=null,Ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[Ri],delete t[gs],delete t[Zh],delete t[$h])),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 Uf(e){return e.tag===5||e.tag===3||e.tag===4}function Qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uf(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 _s(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(_s(e,t,n),e=e.sibling;e!==null;)_s(e,t,n),e=e.sibling}function Ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}var He=null,Bt=!1;function dn(e,t,n){for(n=n.child;n!==null;)Hf(e,t,n),n=n.sibling}function Hf(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(vl,n)}catch{}switch(n.tag){case 5:Ye||br(n,t);case 6:var r=He,i=Bt;He=null,dn(e,t,n),He=r,Bt=i,He!==null&&(Bt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Bt?(e=He,n=n.stateNode,e.nodeType===8?Ra(e.parentNode,n):e.nodeType===1&&Ra(e,n),Ti(e)):Ra(He,n.stateNode));break;case 4:r=He,i=Bt,He=n.stateNode.containerInfo,Bt=!0,dn(e,t,n),He=r,Bt=i;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&((o&2)!==0||(o&4)!==0)&&Ps(n,t,l),i=i.next}while(i!==r)}dn(e,t,n);break;case 1:if(!Ye&&(br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Me(n,t,a)}dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,dn(e,t,n),Ye=r):dn(e,t,n);break;default:dn(e,t,n)}}function qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ag),t.forEach(function(r){var i=vg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:He=a.stateNode,Bt=!1;break e;case 3:He=a.stateNode.containerInfo,Bt=!0;break e;case 4:He=a.stateNode.containerInfo,Bt=!0;break e}a=a.return}if(He===null)throw Error(N(160));Hf(o,l,i),He=null,Bt=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Me(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Of(t,e),t=t.sibling}function Of(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Lt(t,e),Ot(e),r&4){try{bi(3,e,e.return),El(3,e)}catch(y){Me(e,e.return,y)}try{bi(5,e,e.return)}catch(y){Me(e,e.return,y)}}break;case 1:Lt(t,e),Ot(e),r&512&&n!==null&&br(n,n.return);break;case 5:if(Lt(t,e),Ot(e),r&512&&n!==null&&br(n,n.return),e.flags&32){var i=e.stateNode;try{Ni(i,"")}catch(y){Me(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&cp(i,o),ns(a,l);var u=ns(a,o);for(l=0;l<s.length;l+=2){var m=s[l],h=s[l+1];m==="style"?mp(i,h):m==="dangerouslySetInnerHTML"?pp(i,h):m==="children"?Ni(i,h):Fs(i,m,h,u)}switch(a){case"input":Ga(i,o);break;case"textarea":dp(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Sr(i,!!o.multiple,v,!1):g!==!!o.multiple&&(o.defaultValue!=null?Sr(i,!!o.multiple,o.defaultValue,!0):Sr(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ri]=o}catch(y){Me(e,e.return,y)}}break;case 6:if(Lt(t,e),Ot(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Me(e,e.return,y)}}break;case 3:if(Lt(t,e),Ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ti(t.containerInfo)}catch(y){Me(e,e.return,y)}break;case 4:Lt(t,e),Ot(e);break;case 13:Lt(t,e),Ot(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(kc=Pe())),r&4&&qu(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(u=Ye)||m,Lt(t,e),Ye=u):Lt(t,e),Ot(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&(e.mode&1)!==0)for(R=e,m=e.child;m!==null;){for(h=R=m;R!==null;){switch(g=R,v=g.child,g.tag){case 0:case 11:case 14:case 15:bi(4,g,g.return);break;case 1:br(g,g.return);var b=g.stateNode;if(typeof b.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(y){Me(r,n,y)}}break;case 5:br(g,g.return);break;case 22:if(g.memoizedState!==null){Gu(h);continue}}v!==null?(v.return=g,R=v):Gu(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{i=h.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,s=h.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=fp("display",l))}catch(y){Me(e,e.return,y)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(y){Me(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Lt(t,e),Ot(e),r&4&&qu(e);break;case 21:break;default:Lt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Uf(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ni(i,""),r.flags&=-33);var o=Qu(e);Ls(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,a=Qu(e);_s(e,a,l);break;default:throw Error(N(161))}}catch(s){Me(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cg(e,t,n){R=e,Vf(e,t,n)}function Vf(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var i=R,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Ro;if(!l){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Ye;a=Ro;var u=Ye;if(Ro=l,(Ye=s)&&!u)for(R=i;R!==null;)l=R,s=l.child,l.tag===22&&l.memoizedState!==null?Ju(i):s!==null?(s.return=l,R=s):Ju(i);for(;o!==null;)R=o,Vf(o,t,n),o=o.sibling;R=i,Ro=a,Ye=u}Yu(e,t,n)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,R=o):Yu(e,t,n)}}function Yu(e){for(;R!==null;){var t=R;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||El(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Bu(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Bu(t,l,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.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 m=u.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Ti(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Ye||t.flags&512&&Ts(t)}catch(g){Me(t,t.return,g)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Gu(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Ju(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{El(4,t)}catch(s){Me(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Me(t,i,s)}}var o=t.return;try{Ts(t)}catch(s){Me(t,o,s)}break;case 5:var l=t.return;try{Ts(t)}catch(s){Me(t,l,s)}}}catch(s){Me(t,t.return,s)}if(t===e){R=null;break}var a=t.sibling;if(a!==null){a.return=t.return,R=a;break}R=t.return}}var dg=Math.ceil,pl=on.ReactCurrentDispatcher,gc=on.ReactCurrentOwner,Ct=on.ReactCurrentBatchConfig,ne=0,Ue=null,Le=null,Oe=0,pt=0,Cr=Mn(0),De=0,Hi=null,Yn=0,Nl=0,vc=0,Ci=null,it=null,kc=0,Dr=1/0,qt=null,fl=!1,Is=null,bn=null,Do=!1,gn=null,ml=0,Si=0,Bs=null,Zo=-1,$o=0;function tt(){return(ne&6)!==0?Pe():Zo!==-1?Zo:Zo=Pe()}function Cn(e){return(e.mode&1)===0?1:(ne&2)!==0&&Oe!==0?Oe&-Oe:Kh.transition!==null?($o===0&&($o=Np()),$o):(e=le,e!==0||(e=window.event,e=e===void 0?16:Ip(e.type)),e)}function At(e,t,n,r){if(50<Si)throw Si=0,Bs=null,Error(N(185));Oi(e,n,r),((ne&2)===0||e!==Ue)&&(e===Ue&&((ne&2)===0&&(Nl|=n),De===4&&mn(e,Oe)),st(e,r),n===1&&ne===0&&(t.mode&1)===0&&(Dr=Pe()+500,bl&&Pn()))}function st(e,t){var n=e.callbackNode;q0(e,t);var r=Go(e,e===Ue?Oe:0);if(r===0)n!==null&&lu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lu(n),t===1)e.tag===0?Wh(Xu.bind(null,e)):Jp(Xu.bind(null,e)),Oh(function(){(ne&6)===0&&Pn()}),n=null;else{switch(zp(r)){case 1:n=Zs;break;case 4:n=Sp;break;case 16:n=Yo;break;case 536870912:n=Ep;break;default:n=Yo}n=Gf(n,Zf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zf(e,t){if(Zo=-1,$o=0,(ne&6)!==0)throw Error(N(327));var n=e.callbackNode;if(Pr()&&e.callbackNode!==n)return null;var r=Go(e,e===Ue?Oe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=hl(e,r);else{t=r;var i=ne;ne|=2;var o=Wf();(Ue!==e||Oe!==t)&&(qt=null,Dr=Pe()+500,$n(e,t));do try{fg();break}catch(a){$f(e,a)}while(!0);rc(),pl.current=o,ne=i,Le!==null?t=0:(Ue=null,Oe=0,t=De)}if(t!==0){if(t===2&&(i=as(e),i!==0&&(r=i,t=Rs(e,i))),t===1)throw n=Hi,$n(e,0),mn(e,r),st(e,Pe()),n;if(t===6)mn(e,r);else{if(i=e.current.alternate,(r&30)===0&&!ug(i)&&(t=hl(e,r),t===2&&(o=as(e),o!==0&&(r=o,t=Rs(e,o))),t===1))throw n=Hi,$n(e,0),mn(e,r),st(e,Pe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:Hn(e,it,qt);break;case 3:if(mn(e,r),(r&130023424)===r&&(t=kc+500-Pe(),10<t)){if(Go(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hs(Hn.bind(null,e,it,qt),t);break}Hn(e,it,qt);break;case 4:if(mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Dt(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dg(r/1960))-r,10<r){e.timeoutHandle=hs(Hn.bind(null,e,it,qt),r);break}Hn(e,it,qt);break;case 5:Hn(e,it,qt);break;default:throw Error(N(329))}}}return st(e,Pe()),e.callbackNode===n?Zf.bind(null,e):null}function Rs(e,t){var n=Ci;return e.current.memoizedState.isDehydrated&&($n(e,t).flags|=256),e=hl(e,t),e!==2&&(t=it,it=n,t!==null&&Ds(t)),e}function Ds(e){it===null?it=e:it.push.apply(it,e)}function ug(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!jt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 mn(e,t){for(t&=~vc,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function Xu(e){if((ne&6)!==0)throw Error(N(327));Pr();var t=Go(e,0);if((t&1)===0)return st(e,Pe()),null;var n=hl(e,t);if(e.tag!==0&&n===2){var r=as(e);r!==0&&(t=r,n=Rs(e,r))}if(n===1)throw n=Hi,$n(e,0),mn(e,t),st(e,Pe()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,it,qt),st(e,Pe()),null}function yc(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(Dr=Pe()+500,bl&&Pn())}}function Gn(e){gn!==null&&gn.tag===0&&(ne&6)===0&&Pr();var t=ne;ne|=1;var n=Ct.transition,r=le;try{if(Ct.transition=null,le=1,e)return e()}finally{le=r,Ct.transition=n,ne=t,(ne&6)===0&&Pn()}}function wc(){pt=Cr.current,ge(Cr)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hh(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(ec(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&nl();break;case 3:Br(),ge(lt),ge(Ge),cc();break;case 5:sc(r);break;case 4:Br();break;case 13:ge(Se);break;case 19:ge(Se);break;case 10:ic(r.type._context);break;case 22:case 23:wc()}n=n.return}if(Ue=e,Le=e=Sn(e.current,null),Oe=pt=t,De=0,Hi=null,vc=Nl=Yn=0,it=Ci=null,Vn!==null){for(t=0;t<Vn.length;t++)if(n=Vn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}Vn=null}return e}function $f(e,t){do{var n=Le;try{if(rc(),Ho.current=ul,dl){for(var r=Ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}dl=!1}if(qn=0,Fe=Re=Ee=null,xi=!1,ji=0,gc.current=null,n===null||n.return===null){De=1,Hi=t,Le=null;break}e:{var o=e,l=n.return,a=n,s=t;if(t=Oe,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,m=a,h=m.tag;if((m.mode&1)===0&&(h===0||h===11||h===15)){var g=m.alternate;g?(m.updateQueue=g.updateQueue,m.memoizedState=g.memoizedState,m.lanes=g.lanes):(m.updateQueue=null,m.memoizedState=null)}var v=Uu(l);if(v!==null){v.flags&=-257,Hu(v,l,a,o,t),v.mode&1&&Fu(o,u,t),t=v,s=u;var b=t.updateQueue;if(b===null){var y=new Set;y.add(s),t.updateQueue=y}else b.add(s);break e}else{if((t&1)===0){Fu(o,u,t),xc();break e}s=Error(N(426))}}else if(ve&&a.mode&1){var B=Uu(l);if(B!==null){(B.flags&65536)===0&&(B.flags|=256),Hu(B,l,a,o,t),tc(Rr(s,a));break e}}o=s=Rr(s,a),De!==4&&(De=2),Ci===null?Ci=[o]:Ci.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Mf(o,s,t);Iu(o,p);break e;case 1:a=s;var d=o.type,f=o.stateNode;if((o.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(bn===null||!bn.has(f)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Pf(o,a,t);Iu(o,w);break e}}o=o.return}while(o!==null)}Qf(n)}catch(E){t=E,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function Wf(){var e=pl.current;return pl.current=ul,e===null?ul:e}function xc(){(De===0||De===3||De===2)&&(De=4),Ue===null||(Yn&268435455)===0&&(Nl&268435455)===0||mn(Ue,Oe)}function hl(e,t){var n=ne;ne|=2;var r=Wf();(Ue!==e||Oe!==t)&&(qt=null,$n(e,t));do try{pg();break}catch(i){$f(e,i)}while(!0);if(rc(),ne=n,pl.current=r,Le!==null)throw Error(N(261));return Ue=null,Oe=0,De}function pg(){for(;Le!==null;)Kf(Le)}function fg(){for(;Le!==null&&!U0();)Kf(Le)}function Kf(e){var t=Yf(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Qf(e):Le=t,gc.current=null}function Qf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=og(n,t,pt),n!==null){Le=n;return}}else{if(n=lg(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Le=null;return}}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);De===0&&(De=5)}function Hn(e,t,n){var r=le,i=Ct.transition;try{Ct.transition=null,le=1,mg(e,t,n,r)}finally{Ct.transition=i,le=r}return null}function mg(e,t,n,r){do Pr();while(gn!==null);if((ne&6)!==0)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Y0(e,o),e===Ue&&(Le=Ue=null,Oe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Do||(Do=!0,Gf(Yo,function(){return Pr(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=Ct.transition,Ct.transition=null;var l=le;le=1;var a=ne;ne|=4,gc.current=null,sg(e,n),Of(n,e),Dh(fs),Jo=!!ps,fs=ps=null,e.current=n,cg(n,e,i),H0(),ne=a,le=l,Ct.transition=o}else e.current=n;if(Do&&(Do=!1,gn=e,ml=i),o=e.pendingLanes,o===0&&(bn=null),Z0(n.stateNode,r),st(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(fl)throw fl=!1,e=Is,Is=null,e;return(ml&1)!==0&&e.tag!==0&&Pr(),o=e.pendingLanes,(o&1)!==0?e===Bs?Si++:(Si=0,Bs=e):Si=0,Pn(),null}function Pr(){if(gn!==null){var e=zp(ml),t=Ct.transition,n=le;try{if(Ct.transition=null,le=16>e?16:e,gn===null)var r=!1;else{if(e=gn,gn=null,ml=0,(ne&6)!==0)throw Error(N(331));var i=ne;for(ne|=4,R=e.current;R!==null;){var o=R,l=o.child;if((R.flags&16)!==0){var a=o.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(R=u;R!==null;){var m=R;switch(m.tag){case 0:case 11:case 15:bi(8,m,o)}var h=m.child;if(h!==null)h.return=m,R=h;else for(;R!==null;){m=R;var g=m.sibling,v=m.return;if(Ff(m),m===u){R=null;break}if(g!==null){g.return=v,R=g;break}R=v}}}var b=o.alternate;if(b!==null){var y=b.child;if(y!==null){b.child=null;do{var B=y.sibling;y.sibling=null,y=B}while(y!==null)}}R=o}}if((o.subtreeFlags&2064)!==0&&l!==null)l.return=o,R=l;else e:for(;R!==null;){if(o=R,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:bi(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,R=p;break e}R=o.return}}var d=e.current;for(R=d;R!==null;){l=R;var f=l.child;if((l.subtreeFlags&2064)!==0&&f!==null)f.return=l,R=f;else e:for(l=d;R!==null;){if(a=R,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:El(9,a)}}catch(E){Me(a,a.return,E)}if(a===l){R=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,R=w;break e}R=a.return}}if(ne=i,Pn(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(vl,e)}catch{}r=!0}return r}finally{le=n,Ct.transition=t}}return!1}function ep(e,t,n){t=Rr(n,t),t=Mf(e,t,1),e=xn(e,t,1),t=tt(),e!==null&&(Oi(e,1,t),st(e,t))}function Me(e,t,n){if(e.tag===3)ep(e,e,n);else for(;t!==null;){if(t.tag===3){ep(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bn===null||!bn.has(r))){e=Rr(n,e),e=Pf(t,e,1),t=xn(t,e,1),e=tt(),t!==null&&(Oi(t,1,e),st(t,e));break}}t=t.return}}function hg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Oe&n)===n&&(De===4||De===3&&(Oe&130023424)===Oe&&500>Pe()-kc?$n(e,0):vc|=n),st(e,t)}function qf(e,t){t===0&&((e.mode&1)===0?t=1:(t=bo,bo<<=1,(bo&130023424)===0&&(bo=4194304)));var n=tt();e=nn(e,t),e!==null&&(Oi(e,t,n),st(e,n))}function gg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qf(e,n)}function vg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),qf(e,n)}var Yf;Yf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ot=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ot=!1,ig(e,t,n);ot=(e.flags&131072)!==0}else ot=!1,ve&&(t.flags&1048576)!==0&&Xp(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vo(e,t),e=t.pendingProps;var i=_r(t,Ge.current);Mr(t,n),i=uc(null,t,r,e,i,n);var o=pc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(o=!0,rl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lc(t),i.updater=Sl,t.stateNode=i,i._reactInternals=t,bs(t,r,e,n),t=Es(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&Xs(t),et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yg(r),e=It(r,e),i){case 0:t=Ss(null,t,r,e,n);break e;case 1:t=Zu(null,t,r,e,n);break e;case 11:t=Ou(null,t,r,e,n);break e;case 14:t=Vu(null,t,r,It(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Ss(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Zu(e,t,r,i,n);case 3:e:{if(If(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lf(e,t),sl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rr(Error(N(423)),t),t=$u(e,t,r,n,i);break e}else if(r!==i){i=Rr(Error(N(424)),t),t=$u(e,t,r,n,i);break e}else for(ft=wn(t.stateNode.containerInfo.firstChild),mt=t,ve=!0,Rt=null,n=rf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lr(),r===i){t=rn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return af(t),e===null&&ys(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,ms(r,i)?l=null:o!==null&&ms(r,o)&&(t.flags|=32),Lf(e,t),et(e,t,l,n),t.child;case 6:return e===null&&ys(t),null;case 13:return Bf(e,t,n);case 4:return ac(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ir(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Ou(e,t,r,i,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,pe(ll,r._currentValue),r._currentValue=l,o!==null)if(jt(o.value,l)){if(o.children===i.children&&!lt.current){t=rn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Xt(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?s.next=s:(s.next=m.next,m.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ws(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(N(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ws(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=St(i),r=r(i),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,i=It(r,t.pendingProps),i=It(r.type,i),Vu(e,t,r,i,n);case 15:return Tf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:It(r,i),Vo(e,t),t.tag=1,at(r)?(e=!0,rl(t)):e=!1,Mr(t,n),zf(t,r,i),bs(t,r,i,n),Es(null,t,r,!0,e,n);case 19:return Rf(e,t,n);case 22:return _f(e,t,n)}throw Error(N(156,t.tag))};function Gf(e,t){return Cp(e,t)}function kg(e,t,n,r){this.tag=e,this.key=n,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 bt(e,t,n,r){return new kg(e,t,n,r)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yg(e){if(typeof e=="function")return bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hs)return 11;if(e===Os)return 14}return 2}function Sn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")bc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fr:return Wn(n.children,i,o,t);case Us:l=8,i|=8;break;case Wa:return e=bt(12,n,t,i|2),e.elementType=Wa,e.lanes=o,e;case Ka:return e=bt(13,n,t,i),e.elementType=Ka,e.lanes=o,e;case Qa:return e=bt(19,n,t,i),e.elementType=Qa,e.lanes=o,e;case lp:return zl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ip:l=10;break e;case op:l=9;break e;case Hs:l=11;break e;case Os:l=14;break e;case un:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=bt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Wn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function zl(e,t,n,r){return e=bt(22,e,r,t),e.elementType=lp,e.lanes=n,e.stateNode={isHidden:!1},e}function Va(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function Za(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wg(e,t,n,r,i){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=za(0),this.expirationTimes=za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cc(e,t,n,r,i,o,l,a,s){return e=new wg(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lc(o),e}function xg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Jf(e){if(!e)return Nn;e=e._reactInternals;e:{if(Xn(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(at(n))return Gp(e,n,t)}return t}function Xf(e,t,n,r,i,o,l,a,s){return e=Cc(n,r,!0,e,i,o,l,a,s),e.context=Jf(null),n=e.current,r=tt(),i=Cn(n),o=Xt(r,i),o.callback=t??null,xn(n,o,i),e.current.lanes=i,Oi(e,i,r),st(e,r),e}function Ml(e,t,n,r){var i=t.current,o=tt(),l=Cn(i);return n=Jf(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xn(i,t,l),e!==null&&(At(e,i,l,o),Uo(e,i,l)),l}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sc(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function bg(){return null}var e1=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ec(e){this._internalRoot=e}Pl.prototype.render=Ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Ml(e,t,null,null)};Pl.prototype.unmount=Ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gn(function(){Ml(null,e,null,null)}),t[tn]=null}};function Pl(e){this._internalRoot=e}Pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fn.length&&t!==0&&t<fn[n].priority;n++);fn.splice(n,0,e),n===0&&Lp(e)}};function Nc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function np(){}function Cg(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=gl(l);o.call(u)}}var l=Xf(t,r,e,0,null,!1,!1,"",np);return e._reactRootContainer=l,e[tn]=l.current,Ii(e.nodeType===8?e.parentNode:e),Gn(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=gl(s);a.call(u)}}var s=Cc(e,0,!1,null,null,!1,!1,"",np);return e._reactRootContainer=s,e[tn]=s.current,Ii(e.nodeType===8?e.parentNode:e),Gn(function(){Ml(t,s,n,r)}),s}function _l(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var a=i;i=function(){var s=gl(l);a.call(s)}}Ml(t,l,e,i)}else l=Cg(n,t,e,i,r);return gl(l)}Mp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=mi(t.pendingLanes);n!==0&&($s(t,n|1),st(t,Pe()),(ne&6)===0&&(Dr=Pe()+500,Pn()))}break;case 13:Gn(function(){var r=nn(e,1);if(r!==null){var i=tt();At(r,e,1,i)}}),Sc(e,1)}};Ws=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=tt();At(t,e,134217728,n)}Sc(e,134217728)}};Pp=function(e){if(e.tag===13){var t=Cn(e),n=nn(e,t);if(n!==null){var r=tt();At(n,e,t,r)}Sc(e,t)}};Tp=function(){return le};_p=function(e,t){var n=le;try{return le=e,t()}finally{le=n}};is=function(e,t,n){switch(t){case"input":if(Ga(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xl(r);if(!i)throw Error(N(90));sp(r),Ga(r,i)}}}break;case"textarea":dp(e,n);break;case"select":t=n.value,t!=null&&Sr(e,!!n.multiple,t,!1)}};vp=yc;kp=Gn;var Sg={usingClientEntryPoint:!1,Events:[Zi,vr,xl,hp,gp,yc]},di={findFiberByHostInstance:On,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Eg={bundleType:di.bundleType,version:di.version,rendererPackageName:di.rendererPackageName,rendererConfig:di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xp(e),e===null?null:e.stateNode},findFiberByHostInstance:di.findFiberByHostInstance||bg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ui=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ui.isDisabled&&ui.supportsFiber))try{vl=ui.inject(Eg),$t=ui}catch{}var ui;vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sg;vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nc(t))throw Error(N(200));return xg(e,t,null,n)};vt.createRoot=function(e,t){if(!Nc(e))throw Error(N(299));var n=!1,r="",i=e1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cc(e,1,!1,null,null,n,!1,r,i),e[tn]=t.current,Ii(e.nodeType===8?e.parentNode:e),new Ec(t)};vt.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=xp(t),e=e===null?null:e.stateNode,e};vt.flushSync=function(e){return Gn(e)};vt.hydrate=function(e,t,n){if(!Tl(t))throw Error(N(200));return _l(null,e,t,!0,n)};vt.hydrateRoot=function(e,t,n){if(!Nc(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=e1;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Xf(t,null,e,1,n??null,i,!1,o,l),e[tn]=t.current,Ii(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Pl(t)};vt.render=function(e,t,n){if(!Tl(t))throw Error(N(200));return _l(null,e,t,!1,n)};vt.unmountComponentAtNode=function(e){if(!Tl(e))throw Error(N(40));return e._reactRootContainer?(Gn(function(){_l(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};vt.unstable_batchedUpdates=yc;vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Tl(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return _l(e,t,n,!1,r)};vt.version="18.3.1-next-f1338f8080-20240426"});var Ll=Y((lv,r1)=>{"use strict";function n1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n1)}catch(e){console.error(e)}}n1(),r1.exports=t1()});var o1=Y(zc=>{"use strict";var i1=Ll();zc.createRoot=i1.createRoot,zc.hydrateRoot=i1.hydrateRoot;var av});var u1=Y(Rl=>{"use strict";var Lg=We(),Ig=Symbol.for("react.element"),Bg=Symbol.for("react.fragment"),Rg=Object.prototype.hasOwnProperty,Dg=Lg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ag={key:!0,ref:!0,__self:!0,__source:!0};function d1(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Rg.call(t,r)&&!Ag.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Ig,type:e,key:o,ref:l,props:i,_owner:Dg.current}}Rl.Fragment=Bg;Rl.jsx=d1;Rl.jsxs=d1});var ce=Y((uv,p1)=>{"use strict";p1.exports=u1()});var k1=Y((Cv,v1)=>{v1.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var _n=Y(tr=>{var Dc,Ug=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];tr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};tr.getSymbolTotalCodewords=function(t){return Ug[t]};tr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};tr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Dc=t};tr.isKanjiModeEnabled=function(){return typeof Dc<"u"};tr.toSJIS=function(t){return Dc(t)}});var Al=Y(zt=>{zt.L={bit:1};zt.M={bit:0};zt.Q={bit:3};zt.H={bit:2};function Hg(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return zt.L;case"m":case"medium":return zt.M;case"q":case"quartile":return zt.Q;case"h":case"high":return zt.H;default:throw new Error("Unknown EC Level: "+e)}}zt.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};zt.from=function(t,n){if(zt.isValid(t))return t;try{return Hg(t)}catch{return n}}});var x1=Y((Nv,w1)=>{function y1(){this.buffer=[],this.length=0}y1.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};w1.exports=y1});var C1=Y((zv,b1)=>{function Ki(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Ki.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};Ki.prototype.get=function(e,t){return this.data[e*this.size+t]};Ki.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Ki.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};b1.exports=Ki});var S1=Y(jl=>{var Og=_n().getSymbolSize;jl.getRowColCoords=function(t){if(t===1)return[];let n=Math.floor(t/7)+2,r=Og(t),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,o=[r-7];for(let l=1;l<n-1;l++)o[l]=o[l-1]-i;return o.push(6),o.reverse()};jl.getPositions=function(t){let n=[],r=jl.getRowColCoords(t),i=r.length;for(let o=0;o<i;o++)for(let l=0;l<i;l++)o===0&&l===0||o===0&&l===i-1||o===i-1&&l===0||n.push([r[o],r[l]]);return n}});var z1=Y(N1=>{var Vg=_n().getSymbolSize,E1=7;N1.getPositions=function(t){let n=Vg(t);return[[0,0],[n-E1,0],[0,n-E1]]}});var M1=Y(fe=>{fe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var nr={N1:3,N2:3,N3:40,N4:10};fe.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};fe.from=function(t){return fe.isValid(t)?parseInt(t,10):void 0};fe.getPenaltyN1=function(t){let n=t.size,r=0,i=0,o=0,l=null,a=null;for(let s=0;s<n;s++){i=o=0,l=a=null;for(let u=0;u<n;u++){let m=t.get(s,u);m===l?i++:(i>=5&&(r+=nr.N1+(i-5)),l=m,i=1),m=t.get(u,s),m===a?o++:(o>=5&&(r+=nr.N1+(o-5)),a=m,o=1)}i>=5&&(r+=nr.N1+(i-5)),o>=5&&(r+=nr.N1+(o-5))}return r};fe.getPenaltyN2=function(t){let n=t.size,r=0;for(let i=0;i<n-1;i++)for(let o=0;o<n-1;o++){let l=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(l===4||l===0)&&r++}return r*nr.N2};fe.getPenaltyN3=function(t){let n=t.size,r=0,i=0,o=0;for(let l=0;l<n;l++){i=o=0;for(let a=0;a<n;a++)i=i<<1&2047|t.get(l,a),a>=10&&(i===1488||i===93)&&r++,o=o<<1&2047|t.get(a,l),a>=10&&(o===1488||o===93)&&r++}return r*nr.N3};fe.getPenaltyN4=function(t){let n=0,r=t.data.length;for(let o=0;o<r;o++)n+=t.data[o];return Math.abs(Math.ceil(n*100/r/5)-10)*nr.N4};function Zg(e,t,n){switch(e){case fe.Patterns.PATTERN000:return(t+n)%2===0;case fe.Patterns.PATTERN001:return t%2===0;case fe.Patterns.PATTERN010:return n%3===0;case fe.Patterns.PATTERN011:return(t+n)%3===0;case fe.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case fe.Patterns.PATTERN101:return t*n%2+t*n%3===0;case fe.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case fe.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}fe.applyMask=function(t,n){let r=n.size;for(let i=0;i<r;i++)for(let o=0;o<r;o++)n.isReserved(o,i)||n.xor(o,i,Zg(t,o,i))};fe.getBestMask=function(t,n){let r=Object.keys(fe.Patterns).length,i=0,o=1/0;for(let l=0;l<r;l++){n(l),fe.applyMask(l,t);let a=fe.getPenaltyN1(t)+fe.getPenaltyN2(t)+fe.getPenaltyN3(t)+fe.getPenaltyN4(t);fe.applyMask(l,t),a<o&&(o=a,i=l)}return i}});var jc=Y(Ac=>{var Ln=Al(),Fl=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ul=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Ac.getBlocksCount=function(t,n){switch(n){case Ln.L:return Fl[(t-1)*4+0];case Ln.M:return Fl[(t-1)*4+1];case Ln.Q:return Fl[(t-1)*4+2];case Ln.H:return Fl[(t-1)*4+3];default:return}};Ac.getTotalCodewordsCount=function(t,n){switch(n){case Ln.L:return Ul[(t-1)*4+0];case Ln.M:return Ul[(t-1)*4+1];case Ln.Q:return Ul[(t-1)*4+2];case Ln.H:return Ul[(t-1)*4+3];default:return}}});var P1=Y(Ol=>{var Qi=new Uint8Array(512),Hl=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Qi[n]=t,Hl[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Qi[n]=Qi[n-255]})();Ol.log=function(t){if(t<1)throw new Error("log("+t+")");return Hl[t]};Ol.exp=function(t){return Qi[t]};Ol.mul=function(t,n){return t===0||n===0?0:Qi[Hl[t]+Hl[n]]}});var T1=Y(qi=>{var Fc=P1();qi.mul=function(t,n){let r=new Uint8Array(t.length+n.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<n.length;o++)r[i+o]^=Fc.mul(t[i],n[o]);return r};qi.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){let i=r[0];for(let l=0;l<n.length;l++)r[l]^=Fc.mul(n[l],i);let o=0;for(;o<r.length&&r[o]===0;)o++;r=r.slice(o)}return r};qi.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=qi.mul(n,new Uint8Array([1,Fc.exp(r)]));return n}});var I1=Y((Bv,L1)=>{var _1=T1();function Uc(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Uc.prototype.initialize=function(t){this.degree=t,this.genPoly=_1.generateECPolynomial(this.degree)};Uc.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let n=new Uint8Array(t.length+this.degree);n.set(t);let r=_1.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(r,i),o}return r};L1.exports=Uc});var Hc=Y(B1=>{B1.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Oc=Y(sn=>{var R1="[0-9]+",$g="[A-Z $%*+\\-./:]+",Yi="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Yi=Yi.replace(/u/g,"\\u");var Wg="(?:(?![A-Z0-9 $%*+\\-./:]|"+Yi+`)(?:.|[\r
|
|
9
|
+
]))+`;sn.KANJI=new RegExp(Yi,"g");sn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");sn.BYTE=new RegExp(Wg,"g");sn.NUMERIC=new RegExp(R1,"g");sn.ALPHANUMERIC=new RegExp($g,"g");var Kg=new RegExp("^"+Yi+"$"),Qg=new RegExp("^"+R1+"$"),qg=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");sn.testKanji=function(t){return Kg.test(t)};sn.testNumeric=function(t){return Qg.test(t)};sn.testAlphanumeric=function(t){return qg.test(t)}});var In=Y(Ie=>{var Yg=Hc(),Vc=Oc();Ie.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Ie.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Ie.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Ie.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Ie.MIXED={bit:-1};Ie.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Yg.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]};Ie.getBestModeForData=function(t){return Vc.testNumeric(t)?Ie.NUMERIC:Vc.testAlphanumeric(t)?Ie.ALPHANUMERIC:Vc.testKanji(t)?Ie.KANJI:Ie.BYTE};Ie.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Ie.isValid=function(t){return t&&t.bit&&t.ccBits};function Gg(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Ie.NUMERIC;case"alphanumeric":return Ie.ALPHANUMERIC;case"kanji":return Ie.KANJI;case"byte":return Ie.BYTE;default:throw new Error("Unknown mode: "+e)}}Ie.from=function(t,n){if(Ie.isValid(t))return t;try{return Gg(t)}catch{return n}}});var U1=Y(rr=>{var Vl=_n(),Jg=jc(),D1=Al(),Bn=In(),Zc=Hc(),j1=7973,A1=Vl.getBCHDigit(j1);function Xg(e,t,n){for(let r=1;r<=40;r++)if(t<=rr.getCapacity(r,n,e))return r}function F1(e,t){return Bn.getCharCountIndicator(e,t)+4}function e2(e,t){let n=0;return e.forEach(function(r){let i=F1(r.mode,t);n+=i+r.getBitsLength()}),n}function t2(e,t){for(let n=1;n<=40;n++)if(e2(e,n)<=rr.getCapacity(n,t,Bn.MIXED))return n}rr.from=function(t,n){return Zc.isValid(t)?parseInt(t,10):n};rr.getCapacity=function(t,n,r){if(!Zc.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=Bn.BYTE);let i=Vl.getSymbolTotalCodewords(t),o=Jg.getTotalCodewordsCount(t,n),l=(i-o)*8;if(r===Bn.MIXED)return l;let a=l-F1(r,t);switch(r){case Bn.NUMERIC:return Math.floor(a/10*3);case Bn.ALPHANUMERIC:return Math.floor(a/11*2);case Bn.KANJI:return Math.floor(a/13);case Bn.BYTE:default:return Math.floor(a/8)}};rr.getBestVersionForData=function(t,n){let r,i=D1.from(n,D1.M);if(Array.isArray(t)){if(t.length>1)return t2(t,i);if(t.length===0)return 1;r=t[0]}else r=t;return Xg(r.mode,r.getLength(),i)};rr.getEncodedBits=function(t){if(!Zc.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;Vl.getBCHDigit(n)-A1>=0;)n^=j1<<Vl.getBCHDigit(n)-A1;return t<<12|n}});var Z1=Y(V1=>{var $c=_n(),O1=1335,n2=21522,H1=$c.getBCHDigit(O1);V1.getEncodedBits=function(t,n){let r=t.bit<<3|n,i=r<<10;for(;$c.getBCHDigit(i)-H1>=0;)i^=O1<<$c.getBCHDigit(i)-H1;return(r<<10|i)^n2}});var W1=Y((Uv,$1)=>{var r2=In();function Fr(e){this.mode=r2.NUMERIC,this.data=e.toString()}Fr.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Fr.prototype.getLength=function(){return this.data.length};Fr.prototype.getBitsLength=function(){return Fr.getBitsLength(this.data.length)};Fr.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);let o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,o*3+1))};$1.exports=Fr});var Q1=Y((Hv,K1)=>{var i2=In(),Wc=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ur(e){this.mode=i2.ALPHANUMERIC,this.data=e}Ur.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Ur.prototype.getLength=function(){return this.data.length};Ur.prototype.getBitsLength=function(){return Ur.getBitsLength(this.data.length)};Ur.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Wc.indexOf(this.data[n])*45;r+=Wc.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Wc.indexOf(this.data[n]),6)};K1.exports=Ur});var Y1=Y((Ov,q1)=>{var o2=In();function Hr(e){this.mode=o2.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Hr.getBitsLength=function(t){return t*8};Hr.prototype.getLength=function(){return this.data.length};Hr.prototype.getBitsLength=function(){return Hr.getBitsLength(this.data.length)};Hr.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};q1.exports=Hr});var J1=Y((Vv,G1)=>{var l2=In(),a2=_n();function Or(e){this.mode=l2.KANJI,this.data=e}Or.getBitsLength=function(t){return t*13};Or.prototype.getLength=function(){return this.data.length};Or.prototype.getBitsLength=function(){return Or.getBitsLength(this.data.length)};Or.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=a2.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
10
|
+
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};G1.exports=Or});var X1=Y((Zv,Kc)=>{"use strict";var Gi={single_source_shortest_paths:function(e,t,n){var r={},i={};i[t]=0;var o=Gi.PriorityQueue.make();o.push(t,0);for(var l,a,s,u,m,h,g,v,b;!o.empty();){l=o.pop(),a=l.value,u=l.cost,m=e[a]||{};for(s in m)m.hasOwnProperty(s)&&(h=m[s],g=u+h,v=i[s],b=typeof i[s]>"u",(b||v>g)&&(i[s]=g,o.push(s,g),r[s]=a))}if(typeof n<"u"&&typeof i[n]>"u"){var y=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(y)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t,i;r;)n.push(r),i=e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var r=Gi.single_source_shortest_paths(e,t,n);return Gi.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t=Gi.PriorityQueue,n={},r;e=e||{};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n.queue=[],n.sorter=e.sorter||t.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Kc<"u"&&(Kc.exports=Gi)});var am=Y(Vr=>{var oe=In(),nm=W1(),rm=Q1(),im=Y1(),om=J1(),Ji=Oc(),Zl=_n(),s2=X1();function em(e){return unescape(encodeURIComponent(e)).length}function Xi(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function lm(e){let t=Xi(Ji.NUMERIC,oe.NUMERIC,e),n=Xi(Ji.ALPHANUMERIC,oe.ALPHANUMERIC,e),r,i;return Zl.isKanjiModeEnabled()?(r=Xi(Ji.BYTE,oe.BYTE,e),i=Xi(Ji.KANJI,oe.KANJI,e)):(r=Xi(Ji.BYTE_KANJI,oe.BYTE,e),i=[]),t.concat(n,r,i).sort(function(l,a){return l.index-a.index}).map(function(l){return{data:l.data,mode:l.mode,length:l.length}})}function Qc(e,t){switch(t){case oe.NUMERIC:return nm.getBitsLength(e);case oe.ALPHANUMERIC:return rm.getBitsLength(e);case oe.KANJI:return om.getBitsLength(e);case oe.BYTE:return im.getBitsLength(e)}}function c2(e){return e.reduce(function(t,n){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function d2(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];switch(r.mode){case oe.NUMERIC:t.push([r,{data:r.data,mode:oe.ALPHANUMERIC,length:r.length},{data:r.data,mode:oe.BYTE,length:r.length}]);break;case oe.ALPHANUMERIC:t.push([r,{data:r.data,mode:oe.BYTE,length:r.length}]);break;case oe.KANJI:t.push([r,{data:r.data,mode:oe.BYTE,length:em(r.data)}]);break;case oe.BYTE:t.push([{data:r.data,mode:oe.BYTE,length:em(r.data)}])}}return t}function u2(e,t){let n={},r={start:{}},i=["start"];for(let o=0;o<e.length;o++){let l=e[o],a=[];for(let s=0;s<l.length;s++){let u=l[s],m=""+o+s;a.push(m),n[m]={node:u,lastCount:0},r[m]={};for(let h=0;h<i.length;h++){let g=i[h];n[g]&&n[g].node.mode===u.mode?(r[g][m]=Qc(n[g].lastCount+u.length,u.mode)-Qc(n[g].lastCount,u.mode),n[g].lastCount+=u.length):(n[g]&&(n[g].lastCount=u.length),r[g][m]=Qc(u.length,u.mode)+4+oe.getCharCountIndicator(u.mode,t))}}i=a}for(let o=0;o<i.length;o++)r[i[o]].end=0;return{map:r,table:n}}function tm(e,t){let n,r=oe.getBestModeForData(e);if(n=oe.from(t,r),n!==oe.BYTE&&n.bit<r.bit)throw new Error('"'+e+'" cannot be encoded with mode '+oe.toString(n)+`.
|
|
11
|
+
Suggested mode is: `+oe.toString(r));switch(n===oe.KANJI&&!Zl.isKanjiModeEnabled()&&(n=oe.BYTE),n){case oe.NUMERIC:return new nm(e);case oe.ALPHANUMERIC:return new rm(e);case oe.KANJI:return new om(e);case oe.BYTE:return new im(e)}}Vr.fromArray=function(t){return t.reduce(function(n,r){return typeof r=="string"?n.push(tm(r,null)):r.data&&n.push(tm(r.data,r.mode)),n},[])};Vr.fromString=function(t,n){let r=lm(t,Zl.isKanjiModeEnabled()),i=d2(r),o=u2(i,n),l=s2.find_path(o.map,"start","end"),a=[];for(let s=1;s<l.length-1;s++)a.push(o.table[l[s]].node);return Vr.fromArray(c2(a))};Vr.rawSplit=function(t){return Vr.fromArray(lm(t,Zl.isKanjiModeEnabled()))}});var cm=Y(sm=>{var Wl=_n(),qc=Al(),p2=x1(),f2=C1(),m2=S1(),h2=z1(),Jc=M1(),Xc=jc(),g2=I1(),$l=U1(),v2=Z1(),k2=In(),Yc=am();function y2(e,t){let n=e.size,r=h2.getPositions(t);for(let i=0;i<r.length;i++){let o=r[i][0],l=r[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||n<=o+a))for(let s=-1;s<=7;s++)l+s<=-1||n<=l+s||(a>=0&&a<=6&&(s===0||s===6)||s>=0&&s<=6&&(a===0||a===6)||a>=2&&a<=4&&s>=2&&s<=4?e.set(o+a,l+s,!0,!0):e.set(o+a,l+s,!1,!0))}}function w2(e){let t=e.size;for(let n=8;n<t-8;n++){let r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function x2(e,t){let n=m2.getPositions(t);for(let r=0;r<n.length;r++){let i=n[r][0],o=n[r][1];for(let l=-2;l<=2;l++)for(let a=-2;a<=2;a++)l===-2||l===2||a===-2||a===2||l===0&&a===0?e.set(i+l,o+a,!0,!0):e.set(i+l,o+a,!1,!0)}}function b2(e,t){let n=e.size,r=$l.getEncodedBits(t),i,o,l;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+n-8-3,l=(r>>a&1)===1,e.set(i,o,l,!0),e.set(o,i,l,!0)}function Gc(e,t,n){let r=e.size,i=v2.getEncodedBits(t,n),o,l;for(o=0;o<15;o++)l=(i>>o&1)===1,o<6?e.set(o,8,l,!0):o<8?e.set(o+1,8,l,!0):e.set(r-15+o,8,l,!0),o<8?e.set(8,r-o-1,l,!0):o<9?e.set(8,15-o-1+1,l,!0):e.set(8,15-o-1,l,!0);e.set(r-8,8,1,!0)}function C2(e,t){let n=e.size,r=-1,i=n-1,o=7,l=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let s=0;s<2;s++)if(!e.isReserved(i,a-s)){let u=!1;l<t.length&&(u=(t[l]>>>o&1)===1),e.set(i,a-s,u),o--,o===-1&&(l++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function S2(e,t,n){let r=new p2;n.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),k2.getCharCountIndicator(s.mode,e)),s.write(r)});let i=Wl.getSymbolTotalCodewords(e),o=Xc.getTotalCodewordsCount(e,t),l=(i-o)*8;for(r.getLengthInBits()+4<=l&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let a=(l-r.getLengthInBits())/8;for(let s=0;s<a;s++)r.put(s%2?17:236,8);return E2(r,e,t)}function E2(e,t,n){let r=Wl.getSymbolTotalCodewords(t),i=Xc.getTotalCodewordsCount(t,n),o=r-i,l=Xc.getBlocksCount(t,n),a=r%l,s=l-a,u=Math.floor(r/l),m=Math.floor(o/l),h=m+1,g=u-m,v=new g2(g),b=0,y=new Array(l),B=new Array(l),p=0,d=new Uint8Array(e.buffer);for(let P=0;P<l;P++){let L=P<s?m:h;y[P]=d.slice(b,b+L),B[P]=v.encode(y[P]),b+=L,p=Math.max(p,L)}let f=new Uint8Array(r),w=0,E,M;for(E=0;E<p;E++)for(M=0;M<l;M++)E<y[M].length&&(f[w++]=y[M][E]);for(E=0;E<g;E++)for(M=0;M<l;M++)f[w++]=B[M][E];return f}function N2(e,t,n,r){let i;if(Array.isArray(e))i=Yc.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let m=Yc.rawSplit(e);u=$l.getBestVersionForData(m,n)}i=Yc.fromString(e,u||40)}else throw new Error("Invalid data");let o=$l.getBestVersionForData(i,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
|
|
12
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
13
|
+
Minimum version required to store current data is: `+o+`.
|
|
14
|
+
`);let l=S2(t,n,i),a=Wl.getSymbolSize(t),s=new f2(a);return y2(s,t),w2(s),x2(s,t),Gc(s,n,0),t>=7&&b2(s,t),C2(s,l),isNaN(r)&&(r=Jc.getBestMask(s,Gc.bind(null,s,n))),Jc.applyMask(r,s),Gc(s,n,r),{modules:s,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}sm.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=qc.M,i,o;return typeof n<"u"&&(r=qc.from(n.errorCorrectionLevel,qc.M),i=$l.from(n.version),o=Jc.from(n.maskPattern),n.toSJISFunc&&Wl.setToSJISFunction(n.toSJISFunc)),N2(t,i,r,o)}});var ed=Y(ir=>{function dm(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+t.slice(0,6).join("")}}ir.getOptions=function(t){t||(t={}),t.color||(t.color={});let n=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:dm(t.color.dark||"#000000ff"),light:dm(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};ir.getScale=function(t,n){return n.width&&n.width>=t+n.margin*2?n.width/(t+n.margin*2):n.scale};ir.getImageWidth=function(t,n){let r=ir.getScale(t,n);return Math.floor((t+n.margin*2)*r)};ir.qrToImageData=function(t,n,r){let i=n.modules.size,o=n.modules.data,l=ir.getScale(i,r),a=Math.floor((i+r.margin*2)*l),s=r.margin*l,u=[r.color.light,r.color.dark];for(let m=0;m<a;m++)for(let h=0;h<a;h++){let g=(m*a+h)*4,v=r.color.light;if(m>=s&&h>=s&&m<a-s&&h<a-s){let b=Math.floor((m-s)/l),y=Math.floor((h-s)/l);v=u[o[b*i+y]?1:0]}t[g++]=v.r,t[g++]=v.g,t[g++]=v.b,t[g]=v.a}}});var um=Y(Kl=>{var td=ed();function z2(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}function M2(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Kl.render=function(t,n,r){let i=r,o=n;typeof i>"u"&&(!n||!n.getContext)&&(i=n,n=void 0),n||(o=M2()),i=td.getOptions(i);let l=td.getImageWidth(t.modules.size,i),a=o.getContext("2d"),s=a.createImageData(l,l);return td.qrToImageData(s.data,t,i),z2(a,o,l),a.putImageData(s,0,0),o};Kl.renderToDataURL=function(t,n,r){let i=r;typeof i>"u"&&(!n||!n.getContext)&&(i=n,n=void 0),i||(i={});let o=Kl.render(t,n,i),l=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(l,a.quality)}});var mm=Y(fm=>{var P2=ed();function pm(e,t){let n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function nd(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function T2(e,t,n){let r="",i=0,o=!1,l=0;for(let a=0;a<e.length;a++){let s=Math.floor(a%t),u=Math.floor(a/t);!s&&!o&&(o=!0),e[a]?(l++,a>0&&s>0&&e[a-1]||(r+=o?nd("M",s+n,.5+u+n):nd("m",i,0),i=0,o=!1),s+1<t&&e[a+1]||(r+=nd("h",l),l=0)):i++}return r}fm.render=function(t,n,r){let i=P2.getOptions(n),o=t.modules.size,l=t.modules.data,a=o+i.margin*2,s=i.color.light.a?"<path "+pm(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+pm(i.color.dark,"stroke")+' d="'+T2(l,o,i.margin)+'"/>',m='viewBox="0 0 '+a+" "+a+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+m+' shape-rendering="crispEdges">'+s+u+`</svg>
|
|
15
|
+
`;return typeof r=="function"&&r(null,g),g}});var gm=Y(eo=>{var _2=k1(),rd=cm(),hm=um(),L2=mm();function id(e,t,n,r,i){let o=[].slice.call(arguments,1),l=o.length,a=typeof o[l-1]=="function";if(!a&&!_2())throw new Error("Callback required as last argument");if(a){if(l<2)throw new Error("Too few arguments provided");l===2?(i=n,n=t,t=r=void 0):l===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(l<1)throw new Error("Too few arguments provided");return l===1?(n=t,t=r=void 0):l===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(s,u){try{let m=rd.create(n,r);s(e(m,t,r))}catch(m){u(m)}})}try{let s=rd.create(n,r);i(null,e(s,t,r))}catch(s){i(s)}}eo.create=rd.create;eo.toCanvas=id.bind(null,hm.render);eo.toDataURL=id.bind(null,hm.renderToDataURL);eo.toString=id.bind(null,function(e,t,n){return L2.render(e,n)})});var hy=$(We(),1),Vm=$(o1(),1);var Rn=$(We(),1);var Bl={};a0(Bl,{bootstrap:()=>an,call:()=>Mg,clearIdentity:()=>Mc,contextUri:()=>Bc,isLocalIdentitySave:()=>zg,isNative:()=>Nt,managementCall:()=>Ic,nativeCall:()=>s1,nativeDeviceCall:()=>_c,openWorkbench:()=>Tc,pairingContext:()=>Pg,requestId:()=>Tg,saveIdentity:()=>Ng,scan:()=>Pc});var ln=()=>typeof window<"u"&&window.LinkNative,l1=0,Tn=new Map,Il,er=new Map,a1=e=>JSON.stringify([String(e?.url||"").trim().replace(/\/+$/,""),String(e?.pin||"").trim().replace(/^sha256\//,""),String(e?.code||"").trim(),String(e?.name||"").slice(0,128),String(e?.token||"").trim()]);typeof window<"u"&&(window.__linkNativeResult=(e,t)=>{let n=Tn.get(e);if(n){Tn.delete(e),clearTimeout(n.timer);try{let r=typeof t=="string"?JSON.parse(t):t;if(r&&"ok"in r&&r.ok===!1)throw new Error(r.error||"\u8BBE\u5907\u64CD\u4F5C\u5931\u8D25");if(r&&"body"in r){let i=r;if(r=typeof i.body=="string"?JSON.parse(i.body):i.body,!i.ok||i.status>=400)throw new Error(r?.error||`\u8FDE\u63A5\u670D\u52A1\u8FD4\u56DE HTTP ${i.status}`)}r?.error?n.reject(new Error(r.error)):n.resolve(r)}catch(r){n.reject(r)}}});var Nt=()=>!!ln();function an(){try{let e=ln()?.bootstrap?.();return e?typeof e=="string"?JSON.parse(e):e:Il||JSON.parse(sessionStorage.getItem("dsh.link.identity")||"null")}catch{return Il||null}}function Ng(e){if(Nt()){let t=ln().saveIdentity(JSON.stringify(e)),n=typeof t=="string"&&t?JSON.parse(t):t;if(n?.error)throw new Error(n.error);let r=a1(e);er.set(r,{count:(er.get(r)?.count||0)+1,expiresAt:Date.now()+15e3})}else{Il=e;try{sessionStorage.setItem("dsh.link.identity",JSON.stringify(e))}catch{}}window.dispatchEvent(new Event("link:identity-updated"))}function zg(e){for(let[r,i]of er)i.expiresAt<=Date.now()&&er.delete(r);let t=a1(e),n=er.get(t);return n?(n.count===1?er.delete(t):n.count--,!0):!1}function Mc(){if(er.clear(),Nt())ln().clearIdentity();else{Il=null;try{sessionStorage.removeItem("dsh.link.identity")}catch{}}}function Pc(){ln()?.scan?.()}async function Tc(){if(Nt()){if(!ln().openWorkbench)throw new Error("\u8BF7\u66F4\u65B0 Android \u5BA2\u6237\u7AEF\u4EE5\u6253\u5F00\u5B8C\u6574\u5DE5\u4F5C\u53F0");let t=ln().openWorkbench(),n=typeof t=="string"?JSON.parse(t):t;if(n?.error)throw new Error(n.error);return}let e=await Lc(new URL("/link/api/workbench",location.origin),{},void 0,an()?.token);if(e.url!=="/link/workbench/")throw new Error("\u5DE5\u4F5C\u53F0\u5730\u5740\u65E0\u6548\uFF0C\u8BF7\u91CD\u65B0\u8FDE\u63A5");location.assign(e.url)}function s1(e,t,n){let r=ln();if(!r?.request)return Promise.reject(new Error("\u5F53\u524D\u5BA2\u6237\u7AEF\u4E0D\u652F\u6301\u539F\u751F\u8FDE\u63A5"));let i=`link-${Date.now()}-${++l1}`;return new Promise((o,l)=>{let a=setTimeout(()=>{Tn.delete(i),l(new Error("\u8FDE\u63A5\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5"))},25e3);Tn.set(i,{resolve:o,reject:l,timer:a});try{r.request(JSON.stringify({id:i,method:e,path:t,body:n}))}catch(s){Tn.delete(i),clearTimeout(a),l(s)}})}function _c(e,t={}){let n=ln();if(!n?.deviceCall)return Promise.reject(new Error("\u8BF7\u66F4\u65B0\u5BA2\u6237\u7AEF\u4EE5\u7BA1\u7406\u591A\u53F0\u8BBE\u5907"));let r=`device-${Date.now()}-${++l1}`;return new Promise((i,o)=>{let l=setTimeout(()=>{Tn.delete(r),o(new Error("\u8BBE\u5907\u64CD\u4F5C\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5"))},3e4);Tn.set(r,{resolve:i,reject:o,timer:l});try{n.deviceCall(JSON.stringify({...t,action:e,id:r}))}catch(a){Tn.delete(r),clearTimeout(l),o(a)}})}async function Lc(e,t,n,r){let i=await fetch(e,{method:"POST",credentials:"same-origin",signal:n,headers:{"content-type":"application/json",...r?{authorization:`Bearer ${r}`}:{}},body:JSON.stringify(t)}),o;try{o=await i.json()}catch(l){if(i.ok){let a=new Error("\u63A5\u53E3\u8FD4\u56DE\u683C\u5F0F\u5F02\u5E38",{cause:l});throw a.status=i.status,a}o={}}if(i.ok&&(!o||typeof o!="object"||Array.isArray(o))){let l=new Error("\u63A5\u53E3\u8FD4\u56DE\u683C\u5F0F\u5F02\u5E38");throw l.status=i.status,l}if(!i.ok||o?.error){let l=new Error(o?.error||`\u8FDE\u63A5\u670D\u52A1\u8FD4\u56DE HTTP ${i.status}`);throw l.status=i.status,l}return o}async function Ic(e,t={},n){let r=new URL("api/commander-link",document.baseURI),i=AbortSignal.timeout(1e4);try{let o=await Lc(r,{action:e,...t},n?AbortSignal.any([n,i]):i);if(e!=="pairing"&&typeof o.enabled!="boolean")throw new Error("\u63A5\u53E3\u8FD4\u56DE\u72B6\u6001\u4E0D\u5B8C\u6574");return o}catch(o){if(n?.aborted)throw o;let l=o.status===404,a=i.aborted,s=new Error(l?"\u670D\u52A1\u5F85\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5":a?"\u8FDE\u63A5\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5":"\u6682\u65F6\u65E0\u6CD5\u8FDE\u63A5\uFF0C\u8BF7\u91CD\u8BD5",{cause:o});throw s.detail=`${o.message} \xB7 ${r.pathname}`,s.status=o.status,s}}function Mg(e,t={},n){let r=e==="pair"?"/link/api/pair":e==="pair/status"?"/link/api/pair/status":"/link/api/rpc",i=r.endsWith("/rpc")?{action:e,...t}:t;return Nt()?s1("POST",r,i):Lc(new URL(r,location.origin),i,n,an()?.token)}function Pg(e){let t=e.trim();if(!t)throw new Error("\u8BF7\u5148\u626B\u63CF\u6216\u7C98\u8D34\u914D\u5BF9\u5730\u5740");if(!t.includes("://")){if(Nt())throw new Error("\u8BF7\u626B\u63CF\u4E8C\u7EF4\u7801\u6216\u7C98\u8D34\u5305\u542B\u4E3B\u673A\u5730\u5740\u7684\u5B8C\u6574\u914D\u5BF9\u94FE\u63A5");return{url:location.origin,code:t}}let n=new URL(t);if(n.protocol==="dshlink:"){let r=n.searchParams.get("url");if(!r||new URL(r).protocol!=="https:")throw new Error("\u914D\u5BF9\u4E3B\u673A\u5FC5\u987B\u4F7F\u7528 HTTPS");return{url:r,code:n.searchParams.get("code")||"",pin:n.searchParams.get("pin")||""}}if(n.protocol!=="https:"||!Nt()&&n.origin!==location.origin)throw new Error("\u8BF7\u5728\u4E3B\u673A\u63D0\u4F9B\u7684 HTTPS \u9875\u9762\u4E2D\u914D\u5BF9");return{url:n.origin,code:new URLSearchParams(n.hash.slice(1)).get("code")||n.searchParams.get("code")||""}}function Bc(e){return!e?.url||!e?.code?"":`dshlink://pair?${new URLSearchParams({url:e.url,pin:e.pin||"",code:e.code})}`}function Tg(){return globalThis.crypto?.randomUUID?.()||`link-${Date.now()}-${Math.random().toString(36).slice(2)}`}var Dl=$(We(),1);var Ae=$(We(),1),f1=$(Ll(),1);var c1=`.dowork-select,.dowork-select-popup{--picker-paper:var(--dc-paper,var(--link-paper,var(--dsw-alias-bg-base,#fff)));--picker-ink:var(--dc-ink,var(--link-ink,var(--dsw-alias-label-primary,#222)));--picker-muted:var(--dc-muted,var(--link-muted,var(--dsw-alias-label-tertiary,#777)));--picker-border:var(--dc-line,var(--link-faint,var(--dsw-alias-border-l1,#8883)));--picker-hover:var(--dc-panel,var(--link-hover,var(--dsw-alias-interactive-bg-hover,#8881)));--picker-accent:var(--dc-accent,var(--link-accent,var(--dsw-alias-state-business-primary,#4d6bfe)));box-sizing:border-box;font:inherit;font-size:13px;color:var(--picker-ink)}
|
|
16
|
+
.dowork-select{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:38px;padding:9px 11px;border:1px solid var(--picker-border);border-radius:9px;background:var(--picker-paper);text-align:left;cursor:pointer;transition:border-color 140ms,background 140ms}
|
|
17
|
+
.dowork-select:hover:not(:disabled),.dowork-select[aria-expanded=true]{border-color:color-mix(in srgb,var(--picker-accent) 55%,var(--picker-border))}
|
|
18
|
+
.dowork-select:focus-visible{outline:2px solid color-mix(in srgb,var(--picker-accent) 65%,transparent);outline-offset:2px}
|
|
19
|
+
.dowork-select:disabled{cursor:default;opacity:.45}
|
|
20
|
+
.dowork-select-value{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
|
|
21
|
+
.dowork-select-value[data-placeholder]{color:var(--picker-muted)}
|
|
22
|
+
.dowork-select-chevron{flex:none;width:6px;height:6px;margin:0 2px 3px 0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);opacity:.55;transition:transform 140ms}
|
|
23
|
+
.dowork-select[aria-expanded=true] .dowork-select-chevron{transform:translateY(3px) rotate(225deg)}
|
|
24
|
+
.dowork-select-popup{z-index:10000;display:flex;flex-direction:column;padding:5px;border:1px solid var(--picker-border);border-radius:11px;background:var(--picker-paper);box-shadow:0 12px 32px #0002,0 2px 8px #0000000d;outline:none;overscroll-behavior:contain}
|
|
25
|
+
.dowork-select-options{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
|
|
26
|
+
.dowork-select-option{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 9px;box-sizing:border-box;border-radius:6px;cursor:pointer;line-height:1.4;user-select:none}
|
|
27
|
+
.dowork-select-option>span:not(.dowork-select-check){flex:1;min-width:0;overflow-wrap:anywhere}
|
|
28
|
+
.dowork-select-option[data-active]{background:var(--picker-hover)}
|
|
29
|
+
.dowork-select-option[aria-selected=true]{color:var(--picker-accent);background:color-mix(in srgb,var(--picker-accent) 9%,var(--picker-paper))}
|
|
30
|
+
.dowork-select-option[aria-disabled=true]{opacity:.4;cursor:default}
|
|
31
|
+
.dowork-select-check{flex:none;width:8px;height:4px;margin-right:2px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}
|
|
32
|
+
.dowork-select-popup input.dowork-select-search{flex:none;width:100%;box-sizing:border-box;min-height:35px;margin:0 0 4px;padding:7px 9px;border:0;border-bottom:1px solid var(--picker-border);border-radius:0;background:transparent;color:var(--picker-ink);outline:none;box-shadow:none;font:inherit;font-size:12px}
|
|
33
|
+
.dowork-select-empty{margin:0;padding:12px 9px;color:var(--picker-muted);font-size:12px}
|
|
34
|
+
@media(pointer:coarse){.dowork-select,.dowork-select-option{min-height:44px}}
|
|
35
|
+
@media(prefers-reduced-motion:reduce){.dowork-select,.dowork-select-chevron{transition:none}}
|
|
36
|
+
`;var Je=$(ce(),1);function m1({value:e,options:t=[],onChange:n,disabled:r=!1,placeholder:i="\u8BF7\u9009\u62E9",searchable:o=!1,className:l="",id:a,name:s,...u}){let m=(0,Ae.useId)(),h=(0,Ae.useRef)(null),g=(0,Ae.useRef)(null),v=(0,Ae.useRef)(null),b=(0,Ae.useRef)({text:"",time:0}),[y,B]=(0,Ae.useState)(!1),[p,d]=(0,Ae.useState)(""),[f,w]=(0,Ae.useState)(-1),[E,M]=(0,Ae.useState)(null),P=t.find(z=>z.value===e),L=t.filter(z=>!p||String(z.searchText??z.label??z.value).toLocaleLowerCase().includes(p.toLocaleLowerCase())),A=L.map((z,ie)=>z.disabled?-1:ie).filter(z=>z>=0),D=(z=!1)=>{B(!1),d(""),z&&h.current?.focus({preventScroll:!0})},_=z=>{!z||z.disabled||(n?.(z.value),D(!0))},J=(z=!1)=>{if(r)return;d("");let ie=t.findIndex(X=>X.value===e&&!X.disabled),q=t.map((X,ae)=>X.disabled?-1:ae).filter(X=>X>=0);w(ie>=0?ie:z?q.at(-1)??-1:q[0]??-1),B(!0)};(0,Ae.useEffect)(()=>{if(document.getElementById("dowork-custom-select-style"))return;let z=document.createElement("style");z.id="dowork-custom-select-style",z.textContent=c1,document.head.append(z)},[]),(0,Ae.useEffect)(()=>{r&&D()},[r]),(0,Ae.useLayoutEffect)(()=>{if(!y)return;let z=()=>{let q=h.current;if(!q)return;let X=q.getBoundingClientRect(),ae=window.visualViewport,I=ae?.offsetLeft||0,K=ae?.offsetTop||0,me=ae?.width||window.innerWidth,x=ae?.height||window.innerHeight,O=K+x-X.bottom-14,W=X.top-K-14,we=O<220&&W>O,U=Math.min(Math.max(X.width,180),me-24),Z=getComputedStyle(q),Te={};for(let je=0;je<Z.length;je++){let xe=Z[je];(xe.startsWith("--link-")||xe.startsWith("--dsw-")||xe.startsWith("--dc-"))&&(Te[xe]=Z.getPropertyValue(xe))}M({...Te,position:"fixed",width:U,maxHeight:Math.max(80,Math.min(360,we?W:O)),left:Math.max(I+12,Math.min(X.left,I+me-U-12)),...we?{bottom:window.innerHeight-X.top+6}:{top:X.bottom+6},fontFamily:Z.fontFamily})};z();let ie=q=>{!h.current?.contains(q.target)&&!g.current?.contains(q.target)&&D()};return document.addEventListener("pointerdown",ie,!0),document.addEventListener("focusin",ie),window.addEventListener("resize",z),window.addEventListener("scroll",z,!0),window.visualViewport?.addEventListener("resize",z),window.visualViewport?.addEventListener("scroll",z),()=>{document.removeEventListener("pointerdown",ie,!0),document.removeEventListener("focusin",ie),window.removeEventListener("resize",z),window.removeEventListener("scroll",z,!0),window.visualViewport?.removeEventListener("resize",z),window.visualViewport?.removeEventListener("scroll",z)}},[y]),(0,Ae.useEffect)(()=>{y&&E&&(o?v.current:g.current)?.focus({preventScroll:!0})},[y,!!E,o]),(0,Ae.useEffect)(()=>{y&&document.getElementById(m+"-"+f)?.scrollIntoView({block:"nearest"})},[f,y,m]);let re=z=>{if(z.key==="Escape"){z.preventDefault(),z.stopPropagation(),D(!0);return}if(z.key==="Tab"){D(!0);return}if(z.key==="Enter"||z.key===" "&&z.target!==v.current){z.preventDefault(),_(L[f]);return}if(["ArrowDown","ArrowUp","Home","End"].includes(z.key)){z.preventDefault(),z.stopPropagation();let ie=A.indexOf(f);w(z.key==="Home"?A[0]??-1:z.key==="End"?A.at(-1)??-1:A[(ie+(z.key==="ArrowDown"?1:-1)+A.length)%A.length]??-1);return}if(!o&&z.key.length===1&&!z.ctrlKey&&!z.metaKey&&!z.altKey){z.preventDefault();let ie=Date.now(),q=b.current,X=ie-q.time<700?q.text+z.key:z.key;b.current={text:X,time:ie};let ae=L.findIndex(I=>!I.disabled&&String(I.label??I.value).toLocaleLowerCase().startsWith(X.toLocaleLowerCase()));ae>=0&&w(ae)}},$e=h.current?.closest("[role=dialog], dialog, .link-dialog, .dc-dialog")||(typeof document<"u"?document.body:null);return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("button",{...u,type:"button",id:a,ref:h,className:"dowork-select "+l,disabled:r,"aria-haspopup":"listbox","aria-expanded":y&&!r,"aria-controls":y?m:void 0,onClick:()=>y?D():J(),onKeyDown:z=>{["ArrowDown","ArrowUp","Home","End"].includes(z.key)&&(z.preventDefault(),J(z.key==="ArrowUp"||z.key==="End"))},children:[(0,Je.jsxs)("span",{className:"dowork-select-value","data-placeholder":!P||void 0,children:[P?.icon,P?.label??i]}),(0,Je.jsx)("span",{className:"dowork-select-chevron","aria-hidden":"true"})]}),s&&(0,Je.jsx)("input",{type:"hidden",name:s,value:e??"",disabled:r}),y&&!r&&$e&&(0,f1.createPortal)((0,Je.jsxs)("div",{ref:g,className:"dowork-select-popup",style:E??{visibility:"hidden",position:"fixed"},onKeyDown:re,tabIndex:o?void 0:-1,role:o?void 0:"listbox",id:o?void 0:m,"aria-label":o?void 0:u["aria-label"]||"\u9009\u9879","aria-labelledby":o?void 0:u["aria-labelledby"],"aria-activedescendant":!o&&f>=0?m+"-"+f:void 0,children:[o&&(0,Je.jsx)("input",{ref:v,className:"dowork-select-search",role:"combobox","aria-label":"\u641C\u7D22"+(u["aria-label"]||"\u9009\u9879"),"aria-autocomplete":"list","aria-expanded":"true","aria-controls":m,"aria-activedescendant":f>=0?m+"-"+f:void 0,placeholder:"\u641C\u7D22\u2026",value:p,onChange:z=>{let ie=z.target.value;d(ie),w(t.filter(q=>!ie||String(q.searchText??q.label??q.value).toLocaleLowerCase().includes(ie.toLocaleLowerCase())).findIndex(q=>!q.disabled))}}),(0,Je.jsxs)("div",{className:"dowork-select-options",role:o?"listbox":"presentation",id:o?m:void 0,"aria-label":o?u["aria-label"]||"\u9009\u9879":void 0,children:[L.map((z,ie)=>(0,Je.jsxs)("div",{id:m+"-"+ie,role:"option","aria-selected":z.value===e,"aria-disabled":z.disabled||void 0,"data-active":ie===f||void 0,className:"dowork-select-option",onPointerMove:()=>{z.disabled||w(ie)},onPointerDown:q=>q.preventDefault(),onClick:()=>_(z),children:[z.icon,(0,Je.jsx)("span",{children:z.label}),z.value===e&&(0,Je.jsx)("span",{className:"dowork-select-check","aria-hidden":"true"})]},z.value)),!L.length&&(0,Je.jsx)("p",{className:"dowork-select-empty",children:"\u6CA1\u6709\u53EF\u9009\u9879"})]})]}),$e)]})}var h1=$(ce(),1);function Ft({children:e,onChange:t,...n}){let r=[],i=o=>Dl.default.Children.forEach(o,l=>{Dl.default.isValidElement(l)&&(l.type==="option"?r.push({value:l.props.value,label:l.props.children,disabled:l.props.disabled}):(l.type===Dl.default.Fragment||l.type==="optgroup")&&i(l.props.children))});return i(e),(0,h1.jsx)(m1,{...n,options:r,onChange:o=>t?.({target:{value:o}})})}var H=$(We(),1);var kv=$(We(),1);var Rc={edit:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16.04 3.02 8.16 10.9c-.3.3-.6.89-.66 1.32l-.43 3.01c-.16 1.09.61 1.85 1.7 1.7l3.01-.43c.42-.06 1.01-.36 1.32-.66l7.88-7.88c1.36-1.36 2-2.94 0-4.94-2-2-3.58-1.36-4.94 0Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.91 4.15a7.144 7.144 0 0 0 4.94 4.94" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2Zm-5.24 15.51c-.29.29-.84.57-1.24.63l-2.46.35c-.09.01-.18.02-.27.02-.41 0-.79-.14-1.06-.41-.33-.33-.47-.81-.39-1.34l.35-2.46c.06-.41.33-.95.63-1.24l4.46-4.46a7.546 7.546 0 0 0 .6 1.29c.1.17.21.33.3.45.11.17.24.33.32.42.05.07.09.12.11.14.25.3.54.58.79.79.07.07.11.11.13.12.15.12.3.24.43.33.16.12.32.23.49.32.2.12.42.23.64.34.23.1.44.19.65.26l-4.48 4.45Zm6.42-6.42-.92.93a.31.31 0 0 1-.22.09c-.03 0-.07 0-.09-.01a6.202 6.202 0 0 1-4.23-4.23c-.03-.11 0-.23.08-.3l.93-.93c1.52-1.52 2.97-1.49 4.46 0 .76.76 1.13 1.49 1.13 2.25-.01.72-.38 1.44-1.14 2.2Z" fill="currentColor"></path></svg>'},search:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM21.3 21.999c-.18 0-.36-.07-.49-.2l-1.86-1.86a.706.706 0 0 1 0-.99c.27-.27.71-.27.99 0l1.86 1.86c.27.27.27.71 0 .99-.14.13-.32.2-.5.2Z" fill="currentColor"></path></svg>'},folder:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10"></path><path d="M8 2h9c2 0 3 1 3 3v1.38" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M19.434 4.034c.133.208-.094.45-.334.396-.47-.14-.99-.21-1.52-.21h-3.3a.5.5 0 0 1-.4-.2l-1.15-1.53c-.141-.2-.008-.49.236-.49h2.754c1.56 0 2.936.81 3.714 2.034Z" fill="currentColor"></path><path d="M20.14 6.54a4.18 4.18 0 0 0-1.45-.67c-.36-.1-.73-.15-1.11-.15h-3.72c-.58 0-.62-.05-.93-.46l-1.4-1.86C10.88 2.53 10.37 2 8.74 2H6.42C3.98 2 2 3.98 2 6.42v11.16C2 20.02 3.98 22 6.42 22h11.16c2.44 0 4.42-1.98 4.42-4.42v-7.44c0-1.49-.73-2.8-1.86-3.6Zm-5.75 9.8H9.6c-.39 0-.69-.31-.69-.7 0-.38.3-.7.69-.7h4.79c.39 0 .7.32.7.7 0 .39-.31.7-.7.7Z" fill="currentColor"></path></svg>'},folderOpen:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="m21.67 14.3-.4 5c-.15 1.53-.27 2.7-2.98 2.7H5.71C3 22 2.88 20.83 2.73 19.3l-.4-5c-.08-.83.18-1.6.65-2.19l.02-.02C3.55 11.42 4.38 11 5.31 11h13.38c.93 0 1.75.42 2.29 1.07.01.01.02.02.02.03.49.59.76 1.36.67 2.2Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10"></path><path d="M3.5 11.43V6.28c0-3.4.85-4.25 4.25-4.25h1.27c1.27 0 1.56.38 2.04 1.02l1.27 1.7c.32.42.51.68 1.36.68h2.55c3.4 0 4.25.85 4.25 4.25v1.79M9.43 17h5.14" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="m21.058 11.822-.16-.22c-.28-.34-.61-.61-.99-.81-.51-.29-1.09-.44-1.69-.44H5.768c-.6 0-1.17.15-1.69.44-.39.21-.74.5-1.03.86-.57.73-.84 1.63-.75 2.53l.37 4.67c.13 1.41.3 3.15 3.47 3.15h11.72c3.17 0 3.33-1.74 3.47-3.16l.37-4.65c.09-.84-.13-1.68-.64-2.37Zm-6.67 5.52h-4.79c-.39 0-.7-.32-.7-.7 0-.38.31-.7.7-.7h4.79c.39 0 .7.32.7.7 0 .39-.31.7-.7.7ZM20.56 8.596c.038.383-.378.64-.742.517a4.979 4.979 0 0 0-1.59-.253H5.769c-.556 0-1.104.09-1.616.262-.36.121-.773-.127-.773-.507V6.66c0-3.57 1.09-4.66 4.66-4.66h1.18c1.43 0 1.88.46 2.46 1.21l1.2 1.6c.25.34.26.36.7.36h2.38c3.126 0 4.347.837 4.601 3.426Z" fill="currentColor"></path></svg>'},plus:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6 12h12M12 18V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2ZM18 12.75h-5.25V18c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-5.25H6c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5.25V6c0-.41.34-.75.75-.75s.75.34.75.75v5.25H18c.41 0 .75.34.75.75s-.34.75-.75.75Z" fill="currentColor"></path></svg>'},chevronDown:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.5" d="M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill="currentColor" d="M17.919 8.18H6.079c-.96 0-1.44 1.16-.76 1.84l5.18 5.18c.83.83 2.18.83 3.01 0l1.97-1.97 3.21-3.21c.67-.68.19-1.84-.77-1.84z"></path></svg>'},chevronLeft:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.5" d="M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill="currentColor" d="M13.978 5.319l-3.21 3.21-1.97 1.96a2.13 2.13 0 000 3.01l5.18 5.18c.68.68 1.84.19 1.84-.76V6.079c0-.96-1.16-1.44-1.84-.76z"></path></svg>'},archive:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M19.5 10.22V19c0 2-.5 3-3 3h-9c-2.5 0-3-1-3-3v-8.78M5 2h14c2 0 3 1 3 3v2c0 2-1 3-3 3H5c-2 0-3-1-3-3V5c0-2 1-3 3-3ZM10.18 14h3.64" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 5v2c0 1.83-.83 2.82-2.5 2.97-.16.02-.33.03-.5.03H5c-.17 0-.34-.01-.5-.03C2.83 9.82 2 8.83 2 7V5c0-2 1-3 3-3h14c2 0 3 1 3 3ZM5.5 11.25c-.55 0-1 .45-1 1V19c0 2 .5 3 3 3h9c2.5 0 3-1 3-3v-6.75c0-.55-.45-1-1-1h-13Zm8.32 4.5h-3.64c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3.64c.41 0 .75.34.75.75s-.34.75-.75.75Z" fill="currentColor"></path></svg>'},settings:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path><path d="M2 12.88v-1.76c0-1.04.85-1.9 1.9-1.9 1.81 0 2.55-1.28 1.64-2.85-.52-.9-.21-2.07.7-2.59l1.73-.99c.79-.47 1.81-.19 2.28.6l.11.19c.9 1.57 2.38 1.57 3.29 0l.11-.19c.47-.79 1.49-1.07 2.28-.6l1.73.99c.91.52 1.22 1.69.7 2.59-.91 1.57-.17 2.85 1.64 2.85 1.04 0 1.9.85 1.9 1.9v1.76c0 1.04-.85 1.9-1.9 1.9-1.81 0-2.55 1.28-1.64 2.85.52.91.21 2.07-.7 2.59l-1.73.99c-.79.47-1.81.19-2.28-.6l-.11-.19c-.9-1.57-2.38-1.57-3.29 0l-.11.19c-.47.79-1.49 1.07-2.28.6l-1.73-.99a1.899 1.899 0 0 1-.7-2.59c.91-1.57.17-2.85-1.64-2.85-1.05 0-1.9-.86-1.9-1.9Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M20.1 9.221c-1.81 0-2.55-1.28-1.65-2.85.52-.91.21-2.07-.7-2.59l-1.73-.99c-.79-.47-1.81-.19-2.28.6l-.11.19c-.9 1.57-2.38 1.57-3.29 0l-.11-.19a1.641 1.641 0 0 0-2.26-.6l-1.73.99c-.91.52-1.22 1.69-.7 2.6.91 1.56.17 2.84-1.64 2.84-1.04 0-1.9.85-1.9 1.9v1.76c0 1.04.85 1.9 1.9 1.9 1.81 0 2.55 1.28 1.64 2.85-.52.91-.21 2.07.7 2.59l1.73.99c.79.47 1.81.19 2.28-.6l.11-.19c.9-1.57 2.38-1.57 3.29 0l.11.19c.47.79 1.49 1.07 2.28.6l1.73-.99c.91-.52 1.22-1.69.7-2.59-.91-1.57-.17-2.85 1.64-2.85 1.04 0 1.9-.85 1.9-1.9v-1.76a1.92 1.92 0 0 0-1.91-1.9Zm-8.1 6.03c-1.79 0-3.25-1.46-3.25-3.25s1.46-3.25 3.25-3.25 3.25 1.46 3.25 3.25-1.46 3.25-3.25 3.25Z" fill="currentColor"></path></svg>'},more:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z" stroke="currentColor" stroke-width="1.5"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2ZM7 13.31c-.72 0-1.31-.59-1.31-1.31 0-.72.59-1.31 1.31-1.31.72 0 1.31.59 1.31 1.31 0 .72-.59 1.31-1.31 1.31Zm5 0c-.72 0-1.31-.59-1.31-1.31 0-.72.59-1.31 1.31-1.31.72 0 1.31.59 1.31 1.31 0 .72-.59 1.31-1.31 1.31Zm5 0c-.72 0-1.31-.59-1.31-1.31 0-.72.59-1.31 1.31-1.31.72 0 1.31.59 1.31 1.31 0 .72-.59 1.31-1.31 1.31Z" fill="currentColor"></path></svg>'},trash:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M21 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3L3 5.98M8.5 4.97l.22-1.31C8.88 2.71 9 2 10.69 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M18.85 9.14l-.65 10.07C18.09 20.78 18 22 15.21 22H8.79C6 22 5.91 20.78 5.8 19.21L5.15 9.14M10.33 16.5h3.33M9.5 12.5h5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M21.07 5.23c-1.61-.16-3.22-.28-4.84-.37v-.01l-.22-1.3c-.15-.92-.37-2.3-2.71-2.3h-2.62c-2.33 0-2.55 1.32-2.71 2.29l-.21 1.28c-.93.06-1.86.12-2.79.21l-2.04.2c-.42.04-.72.41-.68.82.04.41.4.71.82.67l2.04-.2c5.24-.52 10.52-.32 15.82.21h.08c.38 0 .71-.29.75-.68a.766.766 0 0 0-.69-.82ZM19.23 8.14c-.24-.25-.57-.39-.91-.39H5.68c-.34 0-.68.14-.91.39-.23.25-.36.59-.34.94l.62 10.26c.11 1.52.25 3.42 3.74 3.42h6.42c3.49 0 3.63-1.89 3.74-3.42l.62-10.25c.02-.36-.11-.7-.34-.95Zm-5.57 9.61h-3.33c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3.33c.41 0 .75.34.75.75s-.34.75-.75.75Zm.84-4h-5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5c.41 0 .75.34.75.75s-.34.75-.75.75Z" fill="currentColor"></path></svg>'},plugins:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z" fill="currentColor"></path></svg>'},schedules:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16.75 3.56V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-6.5V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.56c-2.7.25-4.01 1.86-4.21 4.25-.02.29.22.53.5.53h16.92c.29 0 .53-.25.5-.53-.2-2.39-1.51-4-4.21-4.25ZM20 9.84H4c-.55 0-1 .45-1 1V17c0 3 1.5 5 5 5h8c3.5 0 5-2 5-5v-6.16c0-.55-.45-1-1-1ZM9.21 18.21c-.05.04-.1.09-.15.12-.06.04-.12.07-.18.09-.06.03-.12.05-.18.06-.07.01-.13.02-.2.02-.13 0-.26-.03-.38-.08-.13-.05-.23-.12-.33-.21-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71.1-.09.2-.16.33-.21.18-.08.38-.1.58-.06.06.01.12.03.18.06.06.02.12.05.18.09l.15.12c.18.19.29.45.29.71 0 .26-.11.52-.29.71Zm0-3.5c-.19.18-.45.29-.71.29-.26 0-.52-.11-.71-.29-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71.28-.28.72-.37 1.09-.21.13.05.24.12.33.21.18.19.29.45.29.71 0 .26-.11.52-.29.71Zm3.5 3.5c-.19.18-.45.29-.71.29-.26 0-.52-.11-.71-.29-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71.37-.37 1.05-.37 1.42 0 .18.19.29.45.29.71 0 .26-.11.52-.29.71Zm0-3.5-.15.12c-.06.04-.12.07-.18.09-.06.03-.12.05-.18.06-.07.01-.13.02-.2.02-.26 0-.52-.11-.71-.29-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71.09-.09.2-.16.33-.21.37-.16.81-.07 1.09.21.18.19.29.45.29.71 0 .26-.11.52-.29.71Zm3.5 3.5c-.19.18-.45.29-.71.29-.26 0-.52-.11-.71-.29-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71.37-.37 1.05-.37 1.42 0 .18.19.29.45.29.71 0 .26-.11.52-.29.71Zm0-3.5-.15.12c-.06.04-.12.07-.18.09-.06.03-.12.05-.18.06-.07.01-.14.02-.2.02-.26 0-.52-.11-.71-.29-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71.1-.09.2-.16.33-.21.18-.08.38-.1.58-.06.06.01.12.03.18.06.06.02.12.05.18.09l.15.12c.18.19.29.45.29.71 0 .26-.11.52-.29.71Z" fill="currentColor"></path></svg>'},check:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="m7.75 12 2.83 2.83 5.67-5.66" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm4.78 7.7-5.67 5.67a.75.75 0 0 1-1.06 0l-2.83-2.83a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.3 2.3 5.14-5.14c.29-.29.77-.29 1.06 0 .29.29.29.76 0 1.06Z" fill="currentColor"></path></svg>'},collapse:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M21.97 15V9c0-5-2-7-7-7h-6c-5 0-7 2-7 7v6c0 5 2 7 7 7h6c5 0 7-2 7-7ZM7.97 2v20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.97 9.44 12.41 12l2.56 2.56" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M2 7.811v8.38c0 1.49.36 2.73 1.05 3.68.29.42.66.79 1.08 1.08.82.6 1.86.95 3.09 1.03V2.031C3.94 2.241 2 4.371 2 7.811ZM20.95 4.13c-.29-.42-.66-.79-1.08-1.08C18.92 2.36 17.68 2 16.19 2H8.72v20h7.47c3.64 0 5.81-2.17 5.81-5.81V7.81c0-1.49-.36-2.73-1.05-3.68Zm-5.45 9.9c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.56-2.56a.754.754 0 0 1 0-1.06l2.56-2.56c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L13.48 12l2.02 2.03Z" fill="currentColor"></path></svg>'},link:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M13.06 10.94a5.74 5.74 0 0 1 0 8.13c-2.25 2.24-5.89 2.25-8.13 0-2.24-2.25-2.25-5.89 0-8.13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.59 13.41c-2.34-2.34-2.34-6.14 0-8.49 2.34-2.35 6.14-2.34 8.49 0 2.35 2.34 2.34 6.14 0 8.49" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M19.071 14.242c-.29.29-.75.29-1.03 0a.718.718 0 0 1 0-1.03c2-2 2-5.25 0-7.24-2-1.99-5.25-2-7.24 0-1.99 2-2 5.25 0 7.24.29.29.29.75 0 1.03-.29.29-.75.29-1.03 0-2.57-2.57-2.57-6.75 0-9.31 2.57-2.56 6.75-2.57 9.31 0a6.594 6.594 0 0 1-.01 9.31Z" fill="currentColor"></path><path d="M4.929 9.76c.29-.29.75-.29 1.03 0 .29.29.29.75 0 1.03-2 2-2 5.25 0 7.24 2 1.99 5.25 2 7.24 0 1.99-2 2-5.25 0-7.24a.718.718 0 0 1 0-1.03c.29-.29.75-.29 1.03 0 2.57 2.57 2.57 6.75 0 9.31-2.57 2.56-6.75 2.57-9.31 0a6.594 6.594 0 0 1 .01-9.31Z" fill="currentColor"></path></svg>'},external:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 11l8.2-8.2M22 6.8V2h-4.8M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill="currentColor" d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2zm1.06 10.33c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9.31l-7.72 7.72c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 010-1.06l7.72-7.72h-3.02c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4.83c.41 0 .75.34.75.75v4.83z"></path></svg>'},scan:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M2 9V6.5C2 4.01 4.01 2 6.5 2H9M15 2h2.5C19.99 2 22 4.01 22 6.5V9M22 16v1.5c0 2.49-2.01 4.5-4.5 4.5H16M9 22H6.5C4.01 22 2 19.99 2 17.5V15M17 9.5v5c0 2-1 3-3 3h-4c-2 0-3-1-3-3v-5c0-2 1-3 3-3h4c2 0 3 1 3 3ZM19 12H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M2.77 10C2.34 10 2 9.66 2 9.23V6.92A4.93 4.93 0 0 1 6.92 2h2.31c.43 0 .77.34.77.77s-.34.77-.77.77H6.92c-1.87 0-3.38 1.52-3.38 3.38v2.31c0 .43-.35.77-.77.77ZM21.23 10a.77.77 0 0 1-.77-.77V6.92c0-1.87-1.52-3.38-3.38-3.38h-2.31a.77.77 0 0 1 0-1.54h2.31A4.93 4.93 0 0 1 22 6.92v2.31c0 .43-.34.77-.77.77ZM17.082 22h-1.39a.77.77 0 0 1 0-1.54h1.39c1.87 0 3.38-1.52 3.38-3.38V15.7a.77.77 0 0 1 1.54 0v1.38a4.93 4.93 0 0 1-4.92 4.92ZM9.23 22H6.92A4.93 4.93 0 0 1 2 17.08v-2.31c0-.43.34-.77.77-.77s.77.34.77.77v2.31c0 1.87 1.52 3.38 3.38 3.38h2.31a.77.77 0 0 1 0 1.54ZM18.46 11.23H5.54a.77.77 0 0 0 0 1.54H18.46a.77.77 0 0 0 0-1.54ZM6.898 13.94v.33c0 1.66 1.34 3 3 3h4.2c1.66 0 3-1.34 3-3v-.33c0-.12-.09-.21-.21-.21h-9.78c-.12 0-.21.09-.21.21ZM6.898 10.06v-.33c0-1.66 1.34-3 3-3h4.2c1.66 0 3 1.34 3 3v.33c0 .12-.09.21-.21.21h-9.78c-.12 0-.21-.09-.21-.21Z" fill="currentColor"></path></svg>'},refresh:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path fill="currentColor" d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2zM12 18.25c-1.79 0-3.19-.89-4.14-1.77v.71c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-2.75c0-.41.34-.75.75-.75h2.48c.41 0 .75.34.75.75s-.34.75-.75.75h-.9c.74.74 1.89 1.56 3.31 1.56 2.62 0 4.75-2.13 4.75-4.75 0-.41.34-.75.75-.75s.75.34.75.75c0 3.45-2.8 6.25-6.25 6.25zm6.25-8.71v.08a.75.75 0 01-.3.54c-.07.05-.15.09-.24.12-.07.02-.14.03-.21.03h-2.43c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h.83c-.8-.74-2.09-1.56-3.88-1.56-2.62 0-4.75 2.13-4.75 4.75 0 .41-.34.75-.75.75s-.77-.34-.77-.75c0-3.45 2.8-6.25 6.25-6.25 2.15 0 3.73.93 4.75 1.82v-.76c0-.41.34-.75.75-.75s.75.34.75.75v2.73z"></path></svg>'},copy:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16 12.9v4.2c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M22 6.9v4.2c0 3.5-1.4 4.9-4.9 4.9H16v-3.1C16 9.4 14.6 8 11.1 8H8V6.9C8 3.4 9.4 2 12.9 2h4.2C20.6 2 22 3.4 22 6.9z"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16 12.9v4.2c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9Z" fill="currentColor"></path><path d="M17.1 2h-4.2C9.817 2 8.37 3.094 8.07 5.739c-.064.553.395 1.011.952 1.011H11.1c4.2 0 6.15 1.95 6.15 6.15v2.078c0 .557.457 1.015 1.01.952C20.907 15.63 22 14.183 22 11.1V6.9C22 3.4 20.6 2 17.1 2Z" fill="currentColor"></path></svg>'},close:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM9.17 14.83l5.66-5.66M14.83 14.83 9.17 9.17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm3.36 12.3c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.3-2.3-2.3 2.3c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l2.3-2.3-2.3-2.3a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.3 2.3 2.3-2.3c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.3 2.3 2.3 2.3Z" fill="currentColor"></path></svg>'},computer:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M17.56 2H6.41C3.98 2 2 3.98 2 6.41v6.7a4.41 4.41 0 0 0 4.41 4.41h3.84c.55 0 1 .45 1 1v.97c0 .55-.45 1-1 1H7.83a.755.755 0 0 0 0 1.51h8.35c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.42c-.55 0-1-.45-1-1v-.97c0-.55.45-1 1-1h3.81a4.41 4.41 0 0 0 4.41-4.41v-6.7C21.97 3.98 19.99 2 17.56 2Z" fill="currentColor"></path></svg>'},mobile:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M17 6v10c0 4-1 5-5 5H6c-4 0-5-1-5-5V6c0-4 1-5 5-5h6c4 0 5 1 5 5ZM11 4.5H7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 18.1A1.55 1.55 0 1 0 9 15a1.55 1.55 0 0 0 0 3.1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M16.24 2H7.76C5 2 4 3 4 5.81v12.38C4 21 5 22 7.76 22h8.47C19 22 20 21 20 18.19V5.81C20 3 19 2 16.24 2ZM12 19.3c-.96 0-1.75-.79-1.75-1.75s.79-1.75 1.75-1.75 1.75.79 1.75 1.75-.79 1.75-1.75 1.75Zm2-13.05h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75Z" fill="currentColor"></path></svg>'},server:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M19.32 2H4.68C3.21 2 2 3.21 2 4.68v2.63C2 8.79 3.21 10 4.68 10h14.63C20.79 10 22 8.79 22 7.32V4.68C22 3.21 20.79 2 19.32 2ZM6.75 7c0 .41-.34.75-.75.75s-.75-.34-.75-.75V5c0-.41.34-.75.75-.75s.75.34.75.75v2Zm4 0c0 .41-.34.75-.75.75s-.75-.34-.75-.75V5c0-.41.34-.75.75-.75s.75.34.75.75v2ZM18 6.75h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75ZM19.32 14H4.68C3.21 14 2 15.21 2 16.68v2.63C2 20.79 3.21 22 4.68 22h14.63c1.48 0 2.68-1.21 2.68-2.68v-2.63A2.68 2.68 0 0 0 19.32 14ZM6.75 19c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2Zm4 0c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2Zm7.25-.25h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c.41 0 .75.34.75.75s-.34.75-.75.75Z" fill="currentColor"></path></svg>'},devices:{linear:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M17.01 12.73a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 6v1.79c-.25-.03-.54-.05-.85-.05h-4.28c-2.14 0-2.85.71-2.85 2.85v5.11H6c-3.2 0-4-.8-4-4V6c0-3.2.8-4 4-4h10c3.2 0 4 .8 4 4ZM9 15.7V20M2 11.9h10M5.95 20H12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.01 12.73a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 7.79c-.25-.03-.54-.05-.85-.05h-4.28c-2.14 0-2.85.71-2.85 2.85v8.56c0 2.14.71 2.85 2.85 2.85h4.28c2.14 0 2.85-.71 2.85-2.85v-8.56c0-1.83-.52-2.61-2-2.8Zm-2.99 2.8a1.071 1.071 0 0 1 0 2.14 1.071 1.071 0 0 1 0-2.14Zm0 8.56c-1.18 0-2.14-.96-2.14-2.14a2.142 2.142 0 0 1 3.54-1.62c.45.4.74.98.74 1.62 0 1.18-.96 2.14-2.14 2.14Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19.15 17.01c0 1.18-.96 2.14-2.14 2.14-1.18 0-2.14-.96-2.14-2.14a2.142 2.142 0 0 1 3.54-1.62c.45.4.74.98.74 1.62ZM17.01 12.73a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M20 6v.24h-5.13c-2.97 0-4.35 1.38-4.35 4.35v5.11h-.77v3.55h.77v1.5H4.95c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3.3V15.7H6c-3.13 0-3.97-.77-4-3.8V6c0-3.2.8-4 4-4h10c3.2 0 4 .8 4 4Z" fill="currentColor"></path><path d="M20 7.788c-.25-.03-.54-.05-.85-.05h-4.28c-2.14 0-2.85.71-2.85 2.85v8.66c.01.62.08 1.11.23 1.5.35.91 1.14 1.25 2.62 1.25h4.28c2.14 0 2.85-.71 2.85-2.85v-8.56c0-1.83-.52-2.61-2-2.8Zm-2.99 2.3c.87 0 1.57.7 1.57 1.57 0 .87-.7 1.57-1.57 1.57-.87 0-1.57-.7-1.57-1.57 0-.87.7-1.57 1.57-1.57Zm0 9.06c-1.18 0-2.14-.96-2.14-2.14a2.142 2.142 0 0 1 3.54-1.62c.45.4.74.98.74 1.62 0 1.18-.96 2.14-2.14 2.14Z" fill="currentColor"></path><path d="M20 7.788c-.25-.03-.54-.05-.85-.05h-4.28c-2.14 0-2.85.71-2.85 2.85v8.66c.01.62.08 1.11.23 1.5.35.91 1.14 1.25 2.62 1.25h4.28c2.14 0 2.85-.71 2.85-2.85v-8.56c0-1.83-.52-2.61-2-2.8Zm-2.99 2.3c.87 0 1.57.7 1.57 1.57 0 .87-.7 1.57-1.57 1.57-.87 0-1.57-.7-1.57-1.57 0-.87.7-1.57 1.57-1.57Zm0 9.06c-1.18 0-2.14-.96-2.14-2.14a2.142 2.142 0 0 1 3.54-1.62c.45.4.74.98.74 1.62 0 1.18-.96 2.14-2.14 2.14Z" fill="currentColor"></path></svg>'}};var Wi=$(ce(),1);function Q({name:e,size:t=20,selected:n=!1,className:r=""}){let i=Rc[e]??Rc.plugins;return(0,Wi.jsxs)("span",{className:`cmd-ui-icon ${n?"is-selected":""} ${r}`,style:{width:t,height:t},"aria-hidden":"true",children:[(0,Wi.jsx)("span",{className:"cmd-ui-linear",dangerouslySetInnerHTML:{__html:i.linear}}),(0,Wi.jsx)("span",{className:"cmd-ui-bold",dangerouslySetInnerHTML:{__html:i.bold}})]})}var g1=`/* Shared Android / HTTPS / preview interface. Commander neutrals and Paseo's compact hierarchy. */
|
|
37
|
+
.link-mobile-v3 {
|
|
38
|
+
--link-paper: #fff; --link-panel: #f6f6f6; --link-sidebar: #f7f7f7; --link-hover: #ededed;
|
|
39
|
+
--link-faint: #e8e8e8; --link-ink: #202020; --link-muted: #707070; --link-accent: #252525;
|
|
40
|
+
--link-accent-ink: #fff; --link-accent-soft: #efefef; --link-danger: #b74b45; --link-radius: 12px;
|
|
41
|
+
position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; height: calc(100dvh - var(--link-keyboard-inset, 0px)); min-height: 0;
|
|
42
|
+
margin: 0 auto; padding: 0; overflow: hidden; color: var(--link-ink); background: var(--link-paper);
|
|
43
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
44
|
+
font-size: 14px; line-height: 1.5; color-scheme: light; -webkit-tap-highlight-color: transparent;
|
|
45
|
+
}
|
|
46
|
+
.link-mobile-v3, .link-mobile-v3 *, .link-mobile-preview, .link-mobile-preview * { box-sizing: border-box; }
|
|
47
|
+
.link-mobile-v3 :is(button, input, .dowork-select, textarea) { font: inherit; }
|
|
48
|
+
.link-mobile-v3 :is(input, .dowork-select, textarea) { font-size: 16px; }
|
|
49
|
+
.link-mobile-v3 button { touch-action: manipulation; cursor: pointer; }
|
|
50
|
+
.link-mobile-v3 :is(button, input, .dowork-select, textarea, summary, a):focus-visible { outline: 2px solid var(--link-ink); outline-offset: 3px; }
|
|
51
|
+
.link-mobile-v3 :is(button, input, .dowork-select, textarea):disabled { cursor: default; opacity: .42; }
|
|
52
|
+
.link-mobile-v3 :is(h1, h2, h3, p) { overflow-wrap: anywhere; }
|
|
53
|
+
.link-mobile-v3 h1 { margin: 0; font-size: 29px; line-height: 1.25; font-weight: 650; letter-spacing: -.045em; }
|
|
54
|
+
.link-mobile-v3 h2 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
|
|
55
|
+
.link-mobile-v3 .link-button { min-height: 44px; padding: 10px 15px; border: 1px solid var(--link-faint); border-radius: 10px; background: var(--link-paper); color: var(--link-ink); font-size: 13px; font-weight: 550; }
|
|
56
|
+
.link-mobile-v3 .link-button:hover:not(:disabled) { transform: none; border-color: var(--link-faint); background: var(--link-hover); }
|
|
57
|
+
.link-mobile-v3 .link-button-primary { border-color: var(--link-accent); background: var(--link-accent); color: var(--link-accent-ink); }
|
|
58
|
+
.link-mobile-v3 .link-button-primary:hover:not(:disabled) { border-color: var(--link-accent); background: var(--link-accent); opacity: .86; }
|
|
59
|
+
.link-mobile-v3 .link-error { margin: 0; color: var(--link-danger); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
|
|
60
|
+
.link-mobile-v3 .link-status-dot { width: 6px; height: 6px; }
|
|
61
|
+
.link-mobile-v3 .link-status-running { box-shadow: none; }
|
|
62
|
+
.link-mobile-v3 .link-mobile-brand { display: flex; align-items: center; gap: 10px; color: var(--link-ink); font-size: 16px; font-weight: 650; letter-spacing: -.035em; }
|
|
63
|
+
.link-mobile-v3 .link-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--link-accent); color: var(--link-accent-ink); }
|
|
64
|
+
.link-mobile-icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; color: var(--link-ink); background: transparent; }
|
|
65
|
+
.link-sidebar-open-icon { transform: scaleX(-1); }
|
|
66
|
+
.link-mobile-v3 .cmd-ui-icon { pointer-events: none; }
|
|
67
|
+
.link-mobile-icon-button:hover { background: var(--link-hover); }
|
|
68
|
+
.link-mobile-icon-button:active { background: var(--link-faint); }
|
|
69
|
+
|
|
70
|
+
/* Stable application header; one scrolling content surface. */
|
|
71
|
+
.link-app-content { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
|
|
72
|
+
.link-app-header { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex: none; min-height: 66px; padding: calc(9px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left)); background: var(--link-paper); border-bottom: 1px solid var(--link-faint); }
|
|
73
|
+
.link-app-heading { display: grid; gap: 2px; flex: 1; min-width: 0; }
|
|
74
|
+
.link-app-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
|
|
75
|
+
.link-app-heading small { display: flex; align-items: center; gap: 6px; color: var(--link-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
76
|
+
.link-app-body { flex: 1; min-width: 0; min-height: 0; width: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
|
|
77
|
+
.link-app-body > :is(.link-recents, .link-new-session, .link-connection-page) { width: 100%; max-width: 780px; margin: 0 auto; padding: 30px max(22px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
|
|
78
|
+
.link-page-title { margin-bottom: 27px; }
|
|
79
|
+
.link-page-title p { margin: 9px 0 0; color: var(--link-muted); font-size: 13px; line-height: 1.7; }
|
|
80
|
+
.link-page-title > .link-primary-action { margin-top: 20px; }
|
|
81
|
+
.link-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border: 1px solid var(--link-accent); border-radius: 11px; color: var(--link-accent-ink); background: var(--link-accent); font-size: 13px; font-weight: 600; }
|
|
82
|
+
.link-primary-action:hover:not(:disabled) { opacity: .88; }
|
|
83
|
+
.link-primary-action:active:not(:disabled) { transform: scale(.985); }
|
|
84
|
+
.link-session-search { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: var(--link-panel); color: var(--link-muted); }
|
|
85
|
+
.link-session-search:focus-within { border-color: var(--link-muted); }
|
|
86
|
+
.link-session-search input { flex: 1; min-width: 0; width: 0; min-height: 42px; margin: 0; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--link-ink); font-size: 16px; }
|
|
87
|
+
.link-session-search input:focus-visible { outline: none; }
|
|
88
|
+
.link-session-search input::placeholder { color: var(--link-muted); opacity: .85; }
|
|
89
|
+
.link-recent-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 58px; padding: 9px 0; color: var(--link-muted); font-size: 12px; }
|
|
90
|
+
.link-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--link-muted); font-size: 12px; }
|
|
91
|
+
.link-filter[aria-pressed="true"] { color: var(--link-ink); border-color: var(--link-faint); background: var(--link-panel); }
|
|
92
|
+
.link-session-group { margin-top: 20px; }
|
|
93
|
+
.link-session-group:first-of-type { margin-top: 10px; }
|
|
94
|
+
.link-session-group > h2 { padding: 0 0 9px 1px; color: var(--link-muted); font-size: 11px; font-weight: 550; }
|
|
95
|
+
.link-session-list { display: grid; gap: 2px; margin: 0 -10px; }
|
|
96
|
+
.link-recent-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 73px; padding: 13px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--link-ink); text-align: left; transition: background 130ms ease; }
|
|
97
|
+
.link-recent-row:hover, .link-recent-row[aria-current="page"] { background: var(--link-panel); }
|
|
98
|
+
.link-recent-row:active { background: var(--link-hover); }
|
|
99
|
+
.link-recent-glyph { display: grid; place-items: center; position: relative; flex: none; width: 34px; height: 38px; color: var(--link-muted); }
|
|
100
|
+
.link-recent-glyph > .link-status-dot { position: absolute; right: 1px; bottom: 5px; border: 2px solid var(--link-paper); box-sizing: content-box; }
|
|
101
|
+
.link-recent-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
|
|
102
|
+
.link-recent-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 550; line-height: 1.45; }
|
|
103
|
+
.link-recent-copy small { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--link-muted); font-size: 11px; }
|
|
104
|
+
.link-recent-row > time, .link-row-meta { flex: none; max-width: 86px; color: var(--link-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
105
|
+
.link-recent-row > time { align-self: flex-start; padding-top: 4px; }
|
|
106
|
+
.link-row-meta { display: flex; align-items: center; gap: 6px; }
|
|
107
|
+
.link-mobile-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 230px; padding: 30px 5px; color: var(--link-muted); }
|
|
108
|
+
.link-mobile-empty > .cmd-ui-icon { margin-bottom: 6px; color: var(--link-muted); }
|
|
109
|
+
.link-mobile-empty h2, .link-mobile-empty strong { margin: 0; color: var(--link-ink); font-size: 17px; font-weight: 600; }
|
|
110
|
+
.link-mobile-empty p { max-width: 35ch; margin: 0; font-size: 13px; line-height: 1.8; }
|
|
111
|
+
.link-mobile-empty .link-primary-action { margin-top: 7px; }
|
|
112
|
+
.link-list-skeleton { display: grid; gap: 24px; margin-top: 24px; padding: 9px 0; }
|
|
113
|
+
.link-list-skeleton > span { display: block; height: 42px; border-radius: 7px; background: var(--link-panel); animation: link-skeleton 1.4s ease-in-out infinite alternate; }
|
|
114
|
+
.link-list-skeleton > span:nth-child(2) { width: 87%; }
|
|
115
|
+
.link-list-skeleton > span:nth-child(3) { width: 94%; }
|
|
116
|
+
|
|
117
|
+
/* Overlay drawer remains overlay at every width. Camera is a higher layer. */
|
|
118
|
+
.link-drawer-layer { position: absolute; z-index: 60; inset: 0; display: flex; isolation: isolate; }
|
|
119
|
+
.link-drawer-scrim { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(0 0 0 / .34); animation: link-scrim-in 150ms ease both; }
|
|
120
|
+
.link-sidebar { position: relative; display: flex; flex-direction: column; width: min(320px, 86vw); height: 100%; min-height: 0; padding: env(safe-area-inset-top) 0 0; border-right: 1px solid var(--link-faint); color: var(--link-ink); background: var(--link-sidebar); animation: link-drawer-in 170ms cubic-bezier(.2, .7, .2, 1) both; }
|
|
121
|
+
.link-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; min-height: 66px; padding: 10px 12px 10px max(20px, env(safe-area-inset-left)); }
|
|
122
|
+
.link-sidebar-header .link-mark { width: 29px; height: 29px; border-radius: 8px; }
|
|
123
|
+
.link-sidebar-header .link-mobile-brand { font-size: 15px; }
|
|
124
|
+
.link-sidebar-new { display: flex; align-items: center; gap: 11px; flex: none; min-height: 45px; margin: 5px 14px 13px; padding: 10px 13px; border: 1px solid var(--link-faint); border-radius: 10px; color: var(--link-ink); background: var(--link-paper); font-size: 13px; font-weight: 550; text-align: left; }
|
|
125
|
+
.link-sidebar-new:hover { background: var(--link-hover); }
|
|
126
|
+
.link-sidebar-new > .cmd-ui-icon:last-child { margin-left: auto; color: var(--link-muted); }
|
|
127
|
+
.link-sidebar-nav { display: grid; gap: 3px; flex: none; padding: 0 12px 15px; }
|
|
128
|
+
.link-sidebar-nav > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 10px 13px; border: 0; border-radius: 9px; color: var(--link-muted); background: transparent; text-align: left; font-size: 13px; }
|
|
129
|
+
.link-sidebar-nav > button[aria-current="page"], .link-sidebar-nav > button:hover { color: var(--link-ink); background: var(--link-hover); }
|
|
130
|
+
.link-sidebar-nav > button > span:last-child:not(:first-child) { margin-left: auto; color: var(--link-muted); font-size: 11px; }
|
|
131
|
+
.link-sidebar > .link-session-search { flex: none; margin: 0 16px 10px; background: var(--link-hover); }
|
|
132
|
+
.link-sidebar-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 12px 18px; overscroll-behavior-y: contain; }
|
|
133
|
+
.link-sidebar-scroll .link-session-list { margin-left: 0; margin-right: 0; }
|
|
134
|
+
.link-sidebar-scroll > .link-empty { padding: 10px 12px; font-size: 12px; line-height: 1.8; }
|
|
135
|
+
.link-sidebar-group { margin-top: 18px; }
|
|
136
|
+
.link-sidebar-group > h2 { margin: 0 12px 8px; color: var(--link-muted); font-size: 11px; font-weight: 550; }
|
|
137
|
+
.link-sidebar-session { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 57px; padding: 10px 12px; border: 0; border-radius: 9px; color: var(--link-ink); background: transparent; text-align: left; }
|
|
138
|
+
.link-sidebar-session:hover, .link-sidebar-session[aria-current="page"] { background: var(--link-hover); }
|
|
139
|
+
.link-sidebar-session strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
|
|
140
|
+
.link-sidebar-session small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--link-muted); font-size: 10px; }
|
|
141
|
+
.link-sidebar-session .link-row-meta { max-width: 63px; font-size: 10px; }
|
|
142
|
+
.link-sidebar-scroll > .link-mobile-empty { min-height: 150px; padding: 20px 12px; }
|
|
143
|
+
.link-sidebar-scroll > .link-mobile-empty p { font-size: 12px; }
|
|
144
|
+
.link-sidebar-footer { display: flex; align-items: center; gap: 5px; flex: none; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--link-faint); background: var(--link-sidebar); }
|
|
145
|
+
.link-sidebar-host { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 46px; padding: 7px 8px; border: 0; border-radius: 9px; color: var(--link-ink); background: transparent; text-align: left; }
|
|
146
|
+
.link-sidebar-host:hover { background: var(--link-hover); }
|
|
147
|
+
.link-sidebar-host > .cmd-ui-icon { color: var(--link-muted); }
|
|
148
|
+
.link-sidebar-host > span:not(.cmd-ui-icon) { display: grid; gap: 3px; min-width: 0; }
|
|
149
|
+
.link-sidebar-host strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
|
|
150
|
+
.link-sidebar-host small { display: flex; align-items: center; gap: 5px; color: var(--link-muted); font-size: 10px; }
|
|
151
|
+
|
|
152
|
+
/* Project is context for a new task rather than a gate before recent sessions. */
|
|
153
|
+
.link-new-session .link-page-title { margin-bottom: 33px; }
|
|
154
|
+
.link-new-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 23px; border-radius: 13px; color: var(--link-ink); background: var(--link-panel); }
|
|
155
|
+
.link-new-form { display: grid; gap: 22px; min-width: 0; }
|
|
156
|
+
.link-mobile-field { display: grid; gap: 9px; width: 100%; min-width: 0; margin: 0; }
|
|
157
|
+
.link-mobile-field > span { color: var(--link-muted); font-size: 12px; font-weight: 500; }
|
|
158
|
+
.link-mobile-field :is(input, .dowork-select, textarea) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 47px; margin: 0; padding: 12px; border: 1px solid var(--link-faint); border-radius: 10px; outline: none; color: var(--link-ink); background: var(--link-panel); font-family: inherit; font-size: 16px; line-height: 1.5; }
|
|
159
|
+
.link-mobile-field :is(input, .dowork-select, textarea):focus { border-color: var(--link-muted); }
|
|
160
|
+
.link-mobile-field .dowork-select { text-overflow: ellipsis; }
|
|
161
|
+
.link-mobile-field textarea { min-height: 100px; resize: vertical; overflow-wrap: anywhere; }
|
|
162
|
+
.link-new-form > .link-mobile-footnote { margin: -5px 0 0; }
|
|
163
|
+
.link-new-form > .link-primary-action { justify-self: start; min-width: 133px; }
|
|
164
|
+
.link-composer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
|
|
165
|
+
.link-composer-footer > small { flex: 1; min-width: 0; color: var(--link-muted); font-size: 10px; line-height: 1.5; }
|
|
166
|
+
.link-send-button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; color: var(--link-accent-ink); background: var(--link-accent); }
|
|
167
|
+
.link-send-button:hover:not(:disabled) { opacity: .85; }
|
|
168
|
+
.link-send-button:active:not(:disabled) { transform: scale(.96); }
|
|
169
|
+
.link-send-arrow { transform: rotate(90deg); }
|
|
170
|
+
|
|
171
|
+
/* Conversation stays on the canvas; only the user's turn is contained. */
|
|
172
|
+
.link-chat-body { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
|
|
173
|
+
.link-mobile-v3 .link-messages { display: flex; flex-direction: column; gap: 26px; flex: 1; min-height: 0; width: 100%; max-width: 780px; margin: 0 auto; padding: 27px max(22px, env(safe-area-inset-right)) 30px max(22px, env(safe-area-inset-left)); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
|
|
174
|
+
.link-mobile-v3 .link-message { width: 100%; min-width: 0; }
|
|
175
|
+
.link-mobile-v3 .link-message > span { display: block; color: var(--link-muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
|
|
176
|
+
.link-mobile-v3 .link-message p { margin: 7px 0 0; color: var(--link-ink); font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
|
|
177
|
+
.link-mobile-v3 .link-message-user { align-self: flex-end; width: fit-content; max-width: 88%; padding: 12px 15px; border: 0; border-radius: 17px 17px 5px 17px; background: var(--link-panel); }
|
|
178
|
+
.link-mobile-v3 .link-message-user p { margin-top: 5px; }
|
|
179
|
+
.link-mobile-v3 .link-message-assistant { padding-right: 5px; }
|
|
180
|
+
.link-chat-working { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--link-muted); font-size: 12px; }
|
|
181
|
+
.link-mobile-v3 .link-composer { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: none; width: calc(100% - 36px); max-width: 736px; min-width: 0; margin: 0 auto calc(14px + env(safe-area-inset-bottom)); padding: 12px 12px 10px; border: 1px solid var(--link-faint); border-radius: 19px; background: var(--link-panel); }
|
|
182
|
+
.link-mobile-v3 .link-composer:focus-within { border-color: color-mix(in srgb, var(--link-muted) 45%, var(--link-faint)); }
|
|
183
|
+
.link-mobile-v3 .link-composer textarea { width: 100%; min-width: 0; min-height: 52px; max-height: 170px; margin: 0; padding: 3px 3px 0; resize: none; border: 0; border-radius: 0; outline: none; color: var(--link-ink); background: transparent; font-family: inherit; font-size: 16px; line-height: 1.65; }
|
|
184
|
+
.link-mobile-v3 .link-composer textarea:focus-visible { outline: none; }
|
|
185
|
+
.link-mobile-v3 .link-composer textarea::placeholder { color: var(--link-muted); }
|
|
186
|
+
.link-composer .link-send-button { width: 40px; height: 40px; border-radius: 11px; }
|
|
187
|
+
.link-composer-footer .link-button { flex: none; min-height: 40px; padding: 8px 11px; background: transparent; font-size: 11px; }
|
|
188
|
+
.link-send-pending-text { display: block; max-width: 40ch; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
189
|
+
.link-mobile-v3 .link-send-pending { flex: none; width: calc(100% - 44px); max-width: 736px; margin: 0 auto 12px; color: var(--link-muted); font-size: 12px; }
|
|
190
|
+
.link-mobile-recovery { width: 100%; min-width: 0; margin: 20px 0 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--link-danger) 25%, var(--link-faint)); border-radius: 11px; background: var(--link-paper); }
|
|
191
|
+
.link-mobile-recovery .link-error { margin-bottom: 10px; }
|
|
192
|
+
.link-chat-body > .link-mobile-recovery { flex: none; width: calc(100% - 44px); max-width: 736px; margin: 0 auto 12px; }
|
|
193
|
+
.link-mobile-v3 .link-interaction { min-width: 0; padding: 17px; border: 1px solid var(--link-faint); border-radius: 13px; background: var(--link-paper); }
|
|
194
|
+
.link-mobile-v3 .link-interaction h3 { margin: 8px 0 15px; font-size: 15px; }
|
|
195
|
+
.link-mobile-v3 .link-interaction textarea { padding: 10px; min-height: 80px; font-size: 16px; }
|
|
196
|
+
.link-mobile-v3 .link-interaction-options { gap: 8px; }
|
|
197
|
+
.link-mobile-v3 .link-question label { min-height: 40px; align-items: center; }
|
|
198
|
+
.link-mobile-v3 .link-question input { flex: none; }
|
|
199
|
+
|
|
200
|
+
/* Flat connection detail hierarchy. */
|
|
201
|
+
.link-mobile-host-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 21px 0; border-top: 1px solid var(--link-faint); border-bottom: 1px solid var(--link-faint); }
|
|
202
|
+
.link-mobile-card-icon { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 12px; color: var(--link-ink); background: var(--link-panel); }
|
|
203
|
+
.link-mobile-host-card > div:last-child { min-width: 0; }
|
|
204
|
+
.link-mobile-host-card > .cmd-ui-icon { margin: 0 8px 0 4px; color: var(--link-muted); }
|
|
205
|
+
.link-mobile-host-card h2 { overflow-wrap: anywhere; }
|
|
206
|
+
.link-mobile-host-card > div > span { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--link-muted); font-size: 11px; }
|
|
207
|
+
.link-mobile-connection-details { margin: 12px 0 25px; }
|
|
208
|
+
.link-mobile-connection-details > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--link-faint); font-size: 12px; }
|
|
209
|
+
.link-mobile-connection-details dt { flex: none; color: var(--link-muted); }
|
|
210
|
+
.link-mobile-connection-details dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; }
|
|
211
|
+
.link-mobile-connection-actions { display: flex; gap: 9px; flex-wrap: wrap; }
|
|
212
|
+
.link-mobile-footnote { max-width: 48ch; margin: 16px 0 0; color: var(--link-muted); font-size: 11px; line-height: 1.8; }
|
|
213
|
+
|
|
214
|
+
/* Pairing retains the existing controls with one explicit primary next step. */
|
|
215
|
+
.link-mobile-v3.link-mobile-pair { height: auto; min-height: 100dvh; overflow-y: auto; padding-bottom: calc(25px + env(safe-area-inset-bottom)); }
|
|
216
|
+
.link-mobile-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 75px; padding: calc(17px + env(safe-area-inset-top)) 22px 17px; border-bottom: 1px solid var(--link-faint); background: var(--link-paper); }
|
|
217
|
+
.link-mobile-connection { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--link-muted); font-size: 10px; }
|
|
218
|
+
.link-mobile-section { margin: 0; padding: 30px 0 25px; }
|
|
219
|
+
.link-mobile-section > p { margin: 10px 0 0; color: var(--link-muted); font-size: 13px; line-height: 1.7; }
|
|
220
|
+
.link-mobile-pair-intro, .link-mobile-pair-card, .link-mobile-backup, .link-mobile-network-note { margin-left: 22px; margin-right: 22px; }
|
|
221
|
+
.link-mobile-pair-card { display: flex; flex-direction: column; align-items: stretch; gap: 15px; padding: 23px 20px 20px; border: 1px solid var(--link-faint); border-radius: 17px; background: var(--link-paper); }
|
|
222
|
+
.link-mobile-pair-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 2px; border-radius: 13px; color: var(--link-ink); background: var(--link-panel); }
|
|
223
|
+
.link-mobile-pair-card > h2 { font-size: 18px; font-weight: 600; }
|
|
224
|
+
.link-mobile-pair-card > p { margin: -7px 0 5px; color: var(--link-muted); font-size: 12px; line-height: 1.8; }
|
|
225
|
+
.link-mobile-pair-details { display: grid; gap: 8px; min-width: 0; padding: 13px; border-radius: 10px; background: var(--link-panel); }
|
|
226
|
+
.link-mobile-pair-details > span { color: var(--link-muted); font-size: 11px; }
|
|
227
|
+
.link-mobile-pair-details > strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
|
|
228
|
+
.link-mobile-pair-details input[readonly] { min-width: 0; font-family: monospace; font-size: 12px; user-select: all; }
|
|
229
|
+
.link-mobile-scan-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 12px 16px; border: 0; border-radius: 11px; color: var(--link-accent-ink); background: var(--link-accent); font-size: 13px !important; font-weight: 600 !important; }
|
|
230
|
+
.link-mobile-backup { min-width: 0; margin-top: 15px; overflow: hidden; border: 1px solid var(--link-faint); border-radius: 12px; background: var(--link-paper); }
|
|
231
|
+
.link-mobile-backup > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; padding: 14px 16px; color: var(--link-muted); font-size: 12px; list-style: none; cursor: pointer; }
|
|
232
|
+
.link-mobile-backup > summary::-webkit-details-marker { display: none; }
|
|
233
|
+
.link-mobile-backup[open] > summary > .cmd-ui-icon { transform: rotate(180deg); }
|
|
234
|
+
.link-mobile-backup form { display: grid; gap: 13px; padding: 0 16px 16px; }
|
|
235
|
+
.link-mobile-backup textarea { font-size: 16px; word-break: break-all; }
|
|
236
|
+
.link-mobile-network-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; color: var(--link-muted); }
|
|
237
|
+
.link-mobile-network-note > .cmd-ui-icon { margin-top: 3px; }
|
|
238
|
+
.link-mobile-network-note p { margin: 0; font-size: 11px; line-height: 1.85; }
|
|
239
|
+
.link-mobile-pair-feedback { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 10px; color: var(--link-ink); background: var(--link-panel); font-size: 12px; }
|
|
240
|
+
.link-mobile-pair-feedback > .link-status-dot { margin-top: 6px; }
|
|
241
|
+
.link-mobile-pair-feedback strong { font-weight: 600; }
|
|
242
|
+
.link-mobile-pair-feedback p { margin: 6px 0 0; color: var(--link-muted); font-size: 12px; line-height: 1.75; }
|
|
243
|
+
.link-mobile-pair-feedback.is-warning { background: color-mix(in srgb, var(--link-danger) 7%, var(--link-paper)); }
|
|
244
|
+
|
|
245
|
+
/* Preview tools occupy their wrapped height, never the app canvas. */
|
|
246
|
+
.link-mobile-preview { display: flex; flex-direction: column; height: 100dvh; min-height: 0; overflow: hidden; background: #ebebeb; }
|
|
247
|
+
.link-mobile-preview-toolbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; flex: none; padding: 9px 14px; border-bottom: 1px solid #dedede; color: #5c5c5c; background: #f3f3f3; font: 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
|
|
248
|
+
.link-mobile-preview-toolbar > span { font-weight: 550; }
|
|
249
|
+
.link-mobile-preview-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
|
|
250
|
+
.link-mobile-preview-toolbar :is(button, a) { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 8px 10px; border: 1px solid #d8d8d8; border-radius: 8px; color: #424242; background: #fff; font: inherit; text-decoration: none; cursor: pointer; }
|
|
251
|
+
.link-mobile-preview-toolbar :is(button, a):hover { background: #e9e9e9; }
|
|
252
|
+
.link-mobile-preview-toolbar :is(button, a):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
253
|
+
.link-mobile-preview > .link-mobile-v3 { margin-bottom: var(--link-keyboard-inset, 0px); flex: 1; width: 100%; min-height: 0; height: auto; }
|
|
254
|
+
.link-mobile-preview > .link-mobile-pair { overflow-y: auto; }
|
|
255
|
+
.link-mobile-preview-camera { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); color: #fff; background: #171717; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
|
|
256
|
+
.link-mobile-preview-camera header { display: flex; align-items: center; gap: 10px; }
|
|
257
|
+
.link-mobile-preview-camera header button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff30; border-radius: 11px; color: #fff; background: transparent; cursor: pointer; }
|
|
258
|
+
.link-mobile-preview-camera header strong { font-size: 15px; font-weight: 550; }
|
|
259
|
+
.link-mobile-preview-camera > p { max-width: 310px; margin: 30px auto 0; color: #bfbfbf; font-size: 13px; line-height: 1.8; text-align: center; }
|
|
260
|
+
.link-mobile-preview-viewfinder { position: relative; display: grid; place-items: center; width: min(76vw, 280px); aspect-ratio: 1; margin: auto; border: 2px solid #dadada; border-radius: 22px; color: #a2a2a2; background: #202020; }
|
|
261
|
+
.link-mobile-preview-viewfinder::after { position: absolute; content: ''; top: 46%; left: 18px; right: 18px; height: 1px; background: #d0d0d0; }
|
|
262
|
+
.link-mobile-preview-camera > button { width: 100%; max-width: 360px; min-height: 49px; margin: 0 auto; padding: 12px; border: 0; border-radius: 11px; color: #202020; background: #f0f0f0; font: inherit; font-weight: 600; cursor: pointer; }
|
|
263
|
+
.link-mobile-preview-camera > small { margin: 15px auto 0; color: #a2a2a2; font-size: 11px; line-height: 1.7; text-align: center; }
|
|
264
|
+
.link-mobile-preview-camera :is(button, a):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
|
|
265
|
+
.link-mobile-preview-camera .cmd-ui-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 0; }
|
|
266
|
+
.link-mobile-preview-camera .cmd-ui-linear { display: inline-flex !important; width: 100%; height: 100%; }
|
|
267
|
+
.link-mobile-preview-camera .cmd-ui-bold { display: none !important; }
|
|
268
|
+
.link-mobile-preview-camera .cmd-ui-icon svg { display: block; width: 100%; height: 100%; }
|
|
269
|
+
|
|
270
|
+
@media (prefers-color-scheme: dark) {
|
|
271
|
+
.link-mobile-v3:not([data-theme="light"]) { --link-paper: #1b1b1b; --link-panel: #262626; --link-sidebar: #161616; --link-hover: #303030; --link-faint: #343434; --link-ink: #ededed; --link-muted: #a0a0a0; --link-accent: #e9e9e9; --link-accent-ink: #202020; --link-accent-soft: #303030; --link-danger: #ef9890; color-scheme: dark; }
|
|
272
|
+
}
|
|
273
|
+
.link-mobile-v3[data-theme="light"], .link-mobile-preview[data-theme="light"] .link-mobile-v3 { --link-paper: #fff; --link-panel: #f6f6f6; --link-sidebar: #f7f7f7; --link-hover: #ededed; --link-faint: #e8e8e8; --link-ink: #202020; --link-muted: #707070; --link-accent: #252525; --link-accent-ink: #fff; --link-accent-soft: #efefef; --link-danger: #b74b45; color-scheme: light; }
|
|
274
|
+
.link-mobile-v3[data-theme="dark"], .link-mobile-preview[data-theme="dark"] .link-mobile-v3 { --link-paper: #1b1b1b; --link-panel: #262626; --link-sidebar: #161616; --link-hover: #303030; --link-faint: #343434; --link-ink: #ededed; --link-muted: #a0a0a0; --link-accent: #e9e9e9; --link-accent-ink: #202020; --link-accent-soft: #303030; --link-danger: #ef9890; color-scheme: dark; }
|
|
275
|
+
.link-mobile-preview[data-theme="dark"] { background: #111; }
|
|
276
|
+
.link-mobile-preview[data-theme="dark"] .link-mobile-preview-toolbar { color: #b6b6b6; background: #202020; border-color: #373737; }
|
|
277
|
+
.link-mobile-preview[data-theme="dark"] .link-mobile-preview-toolbar :is(button, a) { color: #ddd; background: #292929; border-color: #454545; }
|
|
278
|
+
.link-mobile-preview[data-theme="dark"] .link-mobile-preview-toolbar :is(button, a):hover { background: #363636; }
|
|
279
|
+
|
|
280
|
+
@keyframes link-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
|
|
281
|
+
@keyframes link-scrim-in { from { opacity: 0; } to { opacity: 1; } }
|
|
282
|
+
@keyframes link-skeleton { from { opacity: .5; } to { opacity: 1; } }
|
|
283
|
+
@media (min-width: 700px) {
|
|
284
|
+
.link-mobile-v3.link-mobile-pair { max-width: 520px; border-left: 1px solid var(--link-faint); border-right: 1px solid var(--link-faint); }
|
|
285
|
+
.link-mobile-pair-intro, .link-mobile-pair-card, .link-mobile-backup, .link-mobile-network-note { margin-left: 30px; margin-right: 30px; }
|
|
286
|
+
.link-mobile-preview > .link-mobile-v3 { max-width: 480px; border-left: 1px solid var(--link-faint); border-right: 1px solid var(--link-faint); }
|
|
287
|
+
.link-app-header { padding-left: 18px; padding-right: 18px; }
|
|
288
|
+
.link-app-body > :is(.link-recents, .link-new-session, .link-connection-page) { padding-top: 38px; padding-left: 30px; padding-right: 30px; }
|
|
289
|
+
.link-mobile-preview .link-app-body > :is(.link-recents, .link-new-session, .link-connection-page) { padding-top: 30px; padding-left: 22px; padding-right: 22px; }
|
|
290
|
+
}
|
|
291
|
+
@media (max-width: 350px) {
|
|
292
|
+
.link-app-header { gap: 6px; padding-left: 8px; padding-right: 8px; }
|
|
293
|
+
.link-app-body > :is(.link-recents, .link-new-session, .link-connection-page) { padding-left: 17px; padding-right: 17px; }
|
|
294
|
+
.link-mobile-topbar { padding-left: 16px; padding-right: 16px; }
|
|
295
|
+
.link-mobile-pair-intro, .link-mobile-pair-card, .link-mobile-backup, .link-mobile-network-note { margin-left: 16px; margin-right: 16px; }
|
|
296
|
+
.link-mobile-pair-card { padding: 20px 16px; }
|
|
297
|
+
.link-mobile-v3 .link-messages { padding-left: 17px; padding-right: 17px; }
|
|
298
|
+
.link-recent-row { gap: 8px; }
|
|
299
|
+
.link-recent-glyph { width: 27px; }
|
|
300
|
+
.link-recent-row > time, .link-row-meta { max-width: 62px; font-size: 10px; }
|
|
301
|
+
.link-composer-footer > small { max-width: 130px; }
|
|
302
|
+
}
|
|
303
|
+
@media (prefers-reduced-motion: reduce) {
|
|
304
|
+
.link-mobile-v3 *, .link-mobile-v3 *::before, .link-mobile-v3 *::after, .link-mobile-preview-camera * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
|
|
305
|
+
}
|
|
306
|
+
`;var de=$(We(),1),bm=$(Ll(),1);var Zr=$(We(),1),to=$(ce(),1);function vm({value:e,size:t=224}){let n=(0,Zr.useRef)(null),[r,i]=(0,Zr.useState)("");return(0,Zr.useEffect)(()=>{let o=!1;return i(""),Promise.resolve().then(()=>$(gm(),1)).then(async({default:l})=>{if(!o&&n.current){if(await l.toCanvas(n.current,e,{width:t*Math.min(globalThis.devicePixelRatio||1,2),margin:4,errorCorrectionLevel:"M",color:{dark:"#142029",light:"#fffdf8"}}),o||!n.current)return;n.current.style.width=t+"px",n.current.style.height=t+"px"}}).catch(()=>{o||i("\u4E8C\u7EF4\u7801\u751F\u6210\u5931\u8D25\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u65B9\u5907\u7528\u914D\u5BF9\u65B9\u5F0F\u3002")}),()=>{o=!0}},[e,t]),(0,to.jsxs)("div",{className:"link-qr-surface",children:[(0,to.jsx)("canvas",{ref:n,className:"link-qr",style:{width:t,height:t},width:t,height:t,role:"img","aria-label":"\u626B\u7801\u914D\u5BF9\u4E8C\u7EF4\u7801",hidden:!!r}),r&&(0,to.jsx)("p",{className:"link-qr-error",role:"alert",children:r})]})}function km(e){let t=String(e?.hostname||"").toLowerCase().replace(/^\[|\]$/g,""),n=t.split(".").map(Number),r=n.length===4&&n.every(l=>Number.isInteger(l)&&l>=0&&l<=255)&&(n[0]===0||n[0]===10||n[0]===127||n[0]===172&&n[1]>=16&&n[1]<=31||n[0]===192&&n[1]===168||n[0]===169&&n[1]===254),i=!t||t==="localhost"||t.endsWith(".localhost")||t.endsWith(".local")||t==="::1"||t==="::"||/^(?:fc|fd|fe[89ab])[0-9a-f]*:/i.test(t)||r,o=e?.protocol==="https:"&&!i?String(e.origin||""):"";return{mode:o?"public":"lan",publicUrl:o}}var ym=`.link-settings, .link-mobile, .link-dialog-backdrop {
|
|
307
|
+
--link-ink: #142029;
|
|
308
|
+
--link-muted: #677177;
|
|
309
|
+
--link-faint: #edf0ed;
|
|
310
|
+
--link-paper: #fffdf8;
|
|
311
|
+
--link-panel: #f6f7f3;
|
|
312
|
+
--link-accent: #2c6ee8;
|
|
313
|
+
--link-accent-soft: #e7efff;
|
|
314
|
+
--link-danger: #b34845;
|
|
315
|
+
--link-radius: 14px;
|
|
316
|
+
}
|
|
317
|
+
@media (prefers-color-scheme: dark) {
|
|
318
|
+
.link-mobile { --link-ink: #edf2f0; --link-muted: #9da9aa; --link-faint: #2c3436; --link-paper: #171b1d; --link-panel: #202628; --link-accent: #8bb3ff; --link-accent-soft: #243653; --link-danger: #f0928d; }
|
|
319
|
+
}
|
|
320
|
+
body[data-ds-dark-theme] :is(.link-settings, .link-dialog-backdrop) { --link-ink: #edf2f0; --link-muted: #9da9aa; --link-faint: #2c3436; --link-paper: #171b1d; --link-panel: #202628; --link-accent: #8bb3ff; --link-accent-soft: #243653; --link-danger: #f0928d; }
|
|
321
|
+
body[data-ds-dark-theme] :is(.link-settings, .link-dialog-backdrop) .link-button-primary { color: #10213e; }
|
|
322
|
+
.link-settings, .link-mobile, .link-dialog-backdrop { font-family: inherit; color: var(--link-ink); }
|
|
323
|
+
.link-settings { width: 100%; max-width: 760px; min-width: 0; box-sizing: border-box; padding: 12px 0 36px; }
|
|
324
|
+
.link-settings .link-heading h2 { margin: 8px 0 10px; font-size: 25px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
|
|
325
|
+
.link-settings .link-heading p { font-size: 13px; }
|
|
326
|
+
.link-heading, .link-mobile-copy { max-width: 600px; }
|
|
327
|
+
.link-kicker { display: block; color: var(--link-muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.3; }
|
|
328
|
+
.link-heading h2, .link-mobile-copy h1 { margin: 13px 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
|
|
329
|
+
.link-heading h2 em, .link-mobile-copy h1 em { color: var(--link-accent); font-style: normal; }
|
|
330
|
+
.link-heading p, .link-mobile-copy p { max-width: 48ch; margin: 0; color: var(--link-muted); line-height: 1.65; }
|
|
331
|
+
.link-form { display: grid; grid-template-columns: 1fr 145px; gap: 1px; margin-top: 44px; overflow: hidden; border: 1px solid var(--link-faint); border-radius: var(--link-radius); background: var(--link-faint); }
|
|
332
|
+
.link-field { display: grid; gap: 8px; padding: 19px 18px; background: var(--link-paper); font-size: 13px; }
|
|
333
|
+
.link-field span, .link-toggle-field label { font-weight: 650; }
|
|
334
|
+
.link-field small, .link-toggle-field small { display: block; margin-top: 4px; color: var(--link-muted); font-size: 11px; font-weight: 400; }
|
|
335
|
+
.link-field input { width: 100%; box-sizing: border-box; border: 0; outline: none; background: transparent; color: var(--link-ink); font: inherit; font-size: 15px; }
|
|
336
|
+
.link-field-wide { grid-column: 1 / -1; }
|
|
337
|
+
.link-toggle-field { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; }
|
|
338
|
+
.link-toggle-field input { appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: var(--link-faint); cursor: pointer; transition: background .2s ease; }
|
|
339
|
+
.link-toggle-field input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--link-paper); box-shadow: 0 1px 3px #0002; transition: transform .2s ease; }
|
|
340
|
+
.link-toggle-field input:checked { background: var(--link-accent); }.link-toggle-field input:checked::after { transform: translateX(16px); }
|
|
341
|
+
.link-form-actions { display: flex; grid-column: 1 / -1; gap: 9px; padding: 14px; background: var(--link-paper); }
|
|
342
|
+
.link-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 13px; border: 1px solid var(--link-faint); border-radius: 9px; background: transparent; color: var(--link-ink); cursor: pointer; font: inherit; font-size: 12px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
|
|
343
|
+
.link-button:hover:not(:disabled) { border-color: var(--link-accent); transform: translateY(-1px); }.link-button:disabled { cursor: wait; opacity: .45; }.link-button-primary { border-color: var(--link-accent); background: var(--link-accent); color: white; }.link-button-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--link-accent), black 10%); }
|
|
344
|
+
.link-error { margin: 14px 0; color: var(--link-danger); font-size: 12px; }
|
|
345
|
+
.link-status-panel, .link-device-list { margin-top: 30px; padding: 22px; border: 1px solid var(--link-faint); border-radius: var(--link-radius); background: var(--link-panel); }
|
|
346
|
+
.link-panel-head, .link-pair-row { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.link-panel-head h3, .link-pair-row h3 { margin: 7px 0 5px; font-size: 17px; letter-spacing: -.025em; }.link-panel-head > span { color: var(--link-muted); font-size: 12px; }
|
|
347
|
+
.link-online { display: flex; align-items: center; gap: 7px; padding-top: 2px; color: var(--link-muted); font-size: 12px; }.link-status-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--link-muted); }.link-status-running { background: #39ab7d; box-shadow: 0 0 0 3px #39ab7d22; }.link-status-waiting { background: #d89a3d; }.link-status-failed { background: var(--link-danger); }
|
|
348
|
+
.link-addresses { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }.link-addresses code, .link-pair-code { padding: 7px 9px; border-radius: 7px; background: var(--link-paper); color: var(--link-muted); font: 11px ui-monospace, SFMono-Regular, monospace; }
|
|
349
|
+
.link-pair-row { align-items: center; margin-top: 40px; padding: 2px 2px 22px; border-bottom: 1px solid var(--link-faint); }.link-pair-row p { max-width: 44ch; margin: 0; color: var(--link-muted); font-size: 12px; line-height: 1.6; }
|
|
350
|
+
.link-device-list { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }.link-device { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-top: 1px solid var(--link-faint); }.link-device > div:nth-child(2) { min-width: 0; flex: 1; }.link-device strong, .link-device small { display: block; }.link-device strong { font-size: 13px; }.link-device small { margin-top: 3px; color: var(--link-muted); font-size: 11px; }.link-empty { color: var(--link-muted); font-size: 12px; }
|
|
351
|
+
.link-dialog-backdrop { position: fixed; z-index: 2100; inset: 0; display: grid; place-items: center; padding: 20px; background: #0c151899; backdrop-filter: blur(8px); }.link-dialog { position: relative; width: min(420px, 100%); min-width: 0; box-sizing: border-box; padding: 28px; border-radius: 18px; background: var(--link-paper); box-shadow: 0 25px 80px #0004; text-align: center; }.link-dialog h3 { margin: 10px 0 5px; font-size: 24px; letter-spacing: -.04em; }.link-dialog p { margin: 0 auto 19px; color: var(--link-muted); font-size: 12px; line-height: 1.6; }.link-dialog-close { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 9px; background: none; color: var(--link-muted); cursor: pointer; }.link-qr-surface { display: grid; place-items: center; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 auto 16px; padding: 10px; border: 1px solid #e6e9e7; border-radius: 16px; background: #fffdf8; }
|
|
352
|
+
.link-qr { display: block; max-width: 100%; height: auto !important; aspect-ratio: 1; border-radius: 6px; }
|
|
353
|
+
.link-qr-error { max-width: 220px; padding: 24px 8px; color: #b34845 !important; }.link-pair-code { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; margin: 12px 0 0; padding: 12px; color: var(--link-ink); background: var(--link-panel); font-size: 12px; line-height: 1.5; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; text-align: left; }.link-expiry { display: block; margin-top: 8px; color: var(--link-muted); font-size: 11px; }.link-pending-list { margin-top: 20px; text-align: left; }.link-pending-list .link-device { padding: 11px 0; }.link-pending-list .link-device > div:last-child { display: flex; gap: 5px; }
|
|
354
|
+
.link-mobile { min-height: 100dvh; box-sizing: border-box; padding: 28px clamp(20px, 7vw, 64px); background: var(--link-paper); }.link-mobile-pair, .link-mobile-home { display: flex; flex-direction: column; }.link-mobile-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }.link-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--link-ink); color: var(--link-paper); font-size: 17px; }.link-mobile-copy { margin: auto 0 32px; }.link-mobile-copy h1 { font-size: clamp(42px, 11vw, 74px); }.link-mobile-actions { display: flex; flex-wrap: wrap; gap: 9px; }.link-pair-input { display: grid; gap: 8px; max-width: 500px; margin-bottom: 18px; }.link-pair-input label { margin-top: 7px; color: var(--link-muted); font-size: 11px; }.link-pair-input input, .link-pair-input textarea, .link-composer textarea { width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid var(--link-faint); border-radius: 9px; outline: none; padding: 11px; background: var(--link-panel); color: var(--link-ink); font: 13px ui-monospace, monospace; }.link-pair-input input:focus, .link-pair-input textarea:focus, .link-composer textarea:focus { border-color: var(--link-accent); }.link-pair-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--link-muted); font-size: 12px; }
|
|
355
|
+
.link-mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.link-mobile-header > div:nth-child(2) { display: grid; flex: 1; text-align: center; }.link-mobile-header small { margin-top: 3px; color: var(--link-muted); font-size: 10px; }.link-mobile-home .link-mobile-copy { margin-top: clamp(80px, 18vh, 180px); }.link-projects { display: grid; gap: 7px; max-width: 650px; }.link-project, .link-session { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 15px; border: 1px solid var(--link-faint); border-radius: 10px; background: transparent; color: var(--link-ink); text-align: left; cursor: pointer; }.link-project:hover, .link-project.is-active { border-color: var(--link-accent); background: var(--link-accent-soft); }.link-project small { margin-left: auto; color: var(--link-muted); font: 10px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; }.link-session-actions { display: grid; gap: 8px; max-width: 650px; margin-top: 26px; }.link-session { border: 0; border-top: 1px solid var(--link-faint); border-radius: 0; }.link-session small { margin-left: auto; color: var(--link-muted); }.link-mobile-chat { display: flex; flex-direction: column; }.link-messages { display: grid; align-content: start; gap: 20px; flex: 1; max-width: 720px; margin: 45px auto 25px; width: 100%; }.link-message span { color: var(--link-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }.link-message p { margin: 5px 0 0; white-space: pre-wrap; line-height: 1.65; }.link-message-user p { color: var(--link-accent); }.link-composer { display: flex; align-items: end; gap: 8px; max-width: 720px; width: 100%; margin: 0 auto; }.link-composer textarea { min-height: 40px; max-height: 150px; resize: none; }
|
|
356
|
+
@media (prefers-reduced-motion: reduce) { .link-button, .link-toggle-field input, .link-toggle-field input::after { transition: none; } }
|
|
357
|
+
@media (max-width: 580px) { .link-settings { padding: 26px 0 60px; }.link-form { grid-template-columns: 1fr; }.link-field-wide, .link-toggle-field, .link-form-actions { grid-column: auto; }.link-pair-row { align-items: flex-start; flex-direction: column; }.link-heading h2 { font-size: 38px; }.link-panel-head { gap: 10px; }.link-project small { display: none; } }
|
|
358
|
+
|
|
359
|
+
.link-mobile { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding-top: max(28px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }.link-mobile button, .link-mobile input, .link-mobile textarea, .link-mobile .dowork-select { font-family: inherit; }:is(.link-settings, .link-mobile, .link-dialog-backdrop) .cmd-ui-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; color: inherit; line-height: 0; vertical-align: middle; }
|
|
360
|
+
:is(.link-settings, .link-mobile, .link-dialog-backdrop) .cmd-ui-icon > .cmd-ui-linear { display: inline-flex !important; width: 100%; height: 100%; }
|
|
361
|
+
:is(.link-settings, .link-mobile, .link-dialog-backdrop) .cmd-ui-icon svg { display: block; width: 100%; height: 100%; }
|
|
362
|
+
:is(.link-settings, .link-mobile, .link-dialog-backdrop) .cmd-ui-bold { display: none !important; }.link-mode-actions { display: grid; gap: 8px; min-width: 175px; }.link-mode-actions .dowork-select, .link-model-select .dowork-select { width: 100%; padding: 9px; background: var(--link-paper); border: 1px solid var(--link-faint); border-radius: 9px; color: var(--link-ink); font-size: 12px; }.link-pair-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; color: var(--link-accent); font-size: 12px; }.link-pair-form { max-width: 500px; }.link-model-select { display: grid; gap: 7px; margin-bottom: 7px; font-size: 11px; color: var(--link-muted); }.link-composer-actions { display: flex; gap: 6px; }.link-send-pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 720px; margin: 0 auto 12px; color: var(--link-muted); font-size: 12px; }.link-interaction { padding: 17px; border: 1px solid var(--link-faint); border-radius: 12px; background: var(--link-panel); }.link-interaction h3 { margin: 9px 0 14px; font-size: 15px; }.link-interaction textarea { width: 100%; min-height: 60px; margin-bottom: 9px; border: 1px solid var(--link-faint); border-radius: 8px; background: var(--link-paper); color: var(--link-ink); }.link-interaction-options { display: flex; flex-wrap: wrap; gap: 7px; }.link-mobile-pair .link-mobile-copy { margin-top: max(70px, 13vh); }.link-mobile button:focus-visible, .link-settings button:focus-visible, .link-mobile .dowork-select:focus-visible, .link-settings .dowork-select:focus-visible { outline: 2px solid var(--link-accent); outline-offset: 3px; }
|
|
363
|
+
@media (prefers-color-scheme: dark) { .link-mobile .link-button-primary { color: #10213e; } }
|
|
364
|
+
@media (max-width: 580px) { .link-composer { align-items: stretch; flex-direction: column; }.link-composer-actions { justify-content: flex-end; }.link-heading h2 { line-height: 1.16; }.link-mobile-copy h1 { line-height: 1.1; } }
|
|
365
|
+
.link-question { display: grid; gap: 9px; min-width: 0; padding: 14px 0; border: 0; }.link-question legend { padding: 0; font-size: 14px; }.link-question label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }.link-question label small { display: block; margin-top: 4px; color: var(--link-muted); font-size: 11px; }.link-question input { accent-color: var(--link-accent); }.link-question textarea { box-sizing: border-box; padding: 9px; }
|
|
366
|
+
.link-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
367
|
+
.link-settings .link-status-panel { margin-top: 30px; }.link-settings .link-toggle-field { flex: none; padding-top: 5px; }.link-toggle-field input:disabled { cursor: wait; opacity: .45; }.link-status-note { margin: 15px 0 0; color: var(--link-muted); font-size: 12px; line-height: 1.6; }.link-connect-steps { margin: 12px 0; padding-left: 19px; color: var(--link-ink); font-size: 12px; line-height: 1.8; }.link-pair-row > .link-button { flex: none; min-width: 112px; }
|
|
368
|
+
.link-advanced { margin: 24px 0; border: 1px solid var(--link-faint); border-radius: var(--link-radius); background: var(--link-paper); }.link-advanced > summary { padding: 17px 20px; font-size: 13px; font-weight: 650; cursor: pointer; }.link-advanced[open] > summary { border-bottom: 1px solid var(--link-faint); }.link-advanced-note, .link-mode-notice { margin: 16px 20px; color: var(--link-muted); font-size: 12px; line-height: 1.65; }.link-advanced .link-form { margin: 0 16px 16px; }.link-advanced-controls { display: grid; gap: 1px; margin: 0 16px 16px; overflow: hidden; border: 1px solid var(--link-faint); border-radius: 10px; background: var(--link-faint); }.link-advanced-controls .link-field { min-width: 0; }.link-advanced-controls .dowork-select { width: 100%; box-sizing: border-box; padding: 9px; border: 1px solid var(--link-faint); border-radius: 8px; background: var(--link-paper); color: var(--link-ink); font: inherit; font-size: 12px; }.link-diagnostics { padding: 0 20px 20px; }.link-diagnostics .link-panel-head { align-items: center; }.link-diagnostics h4 { margin: 0; font-size: 12px; }.link-diagnostics p, .link-diagnostics .link-addresses > span { margin: 12px 0 0; color: var(--link-muted); font-size: 11px; line-height: 1.7; }.link-addresses code { max-width: 100%; overflow-wrap: anywhere; }.link-settings .link-device-list { margin-top: 24px; border-radius: var(--link-radius); }
|
|
369
|
+
.link-dialog { max-height: calc(100dvh - 40px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }.link-dialog .link-pair-warning { margin: 14px 0; font-size: 11px; }.link-pair-backup { min-width: 0; padding-top: 12px; border-top: 1px solid var(--link-faint); }.link-pair-backup summary { color: var(--link-muted); font-size: 11px; cursor: pointer; }.link-pair-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
|
|
370
|
+
.link-pair-backup-actions .link-button { flex: 1 1 auto; margin: 0; white-space: nowrap; }
|
|
371
|
+
.link-dialog .link-pair-backup-note { margin: 12px 0 0; font-size: 11px; text-align: left; }
|
|
372
|
+
.link-dialog .link-copy-feedback { margin: 10px 0 0; font-size: 11px; }
|
|
373
|
+
.link-dialog .link-copy-feedback.link-error { color: var(--link-danger); }.link-settings summary:focus-visible, .link-toggle-field input:focus-visible { outline: 2px solid var(--link-accent); outline-offset: 3px; }
|
|
374
|
+
|
|
375
|
+
.link-dialog-symbol { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 4px 0 8px; border-radius: 13px; color: var(--link-accent); background: var(--link-accent-soft); }
|
|
376
|
+
.link-dialog-close:hover { background: var(--link-panel); color: var(--link-ink); }
|
|
377
|
+
.link-dialog :is(button, a, summary):focus-visible { outline: 2px solid var(--link-accent); outline-offset: 3px; }
|
|
378
|
+
.link-dialog .link-device { flex-wrap: wrap; text-align: left; }
|
|
379
|
+
.link-dialog .link-device-info { flex: 1 1 110px; min-width: 0; }
|
|
380
|
+
.link-dialog .link-device-actions { display: flex; flex: none; gap: 6px; }
|
|
381
|
+
.link-dialog .link-device-actions .link-button { box-sizing: border-box; flex: none; min-width: 76px; white-space: nowrap; }
|
|
382
|
+
.link-device strong { overflow-wrap: anywhere; }
|
|
383
|
+
.link-settings :is(.link-panel-head, .link-pair-row) > div { min-width: 0; }
|
|
384
|
+
.link-settings .link-button { white-space: nowrap; }
|
|
385
|
+
@media (max-width: 580px) { .link-settings { padding: 8px 0 28px; }.link-settings .link-heading h2 { font-size: 24px; }.link-status-panel, .link-device-list { padding: 18px; }.link-settings .link-device { flex-wrap: wrap; }.link-settings .link-device > div { min-width: 0; } }
|
|
386
|
+
@media (max-width: 380px) { .link-dialog-backdrop { padding: 12px; }.link-dialog { max-height: calc(100dvh - 24px); padding: 24px 18px; }.link-dialog h3 { font-size: 22px; }.link-qr-surface { padding: 6px; }.link-pair-backup-actions { flex-direction: column; } }
|
|
387
|
+
.link-settings .link-status-panel { margin-top: 20px; }
|
|
388
|
+
.link-settings .link-pair-row { margin-top: 22px; padding-bottom: 20px; }
|
|
389
|
+
.link-host-actions { display: flex; align-items: center; gap: 10px; }
|
|
390
|
+
.link-error-detail { margin: 10px 0; color: var(--link-muted); font-size: 11px; overflow-wrap: anywhere; }
|
|
391
|
+
.link-error-detail summary { cursor: pointer; }
|
|
392
|
+
.link-settings .link-toggle-field input:disabled { cursor: default; }
|
|
393
|
+
|
|
394
|
+
@media (any-pointer: coarse) {
|
|
395
|
+
html { -webkit-tap-highlight-color: transparent; }
|
|
396
|
+
:is(button, a, summary, [role="button"], [tabindex]):not(input, textarea, .dowork-select, [contenteditable]):focus:not(:focus-visible) { outline: none; }
|
|
397
|
+
}
|
|
398
|
+
`;var B2={online:"\u53EF\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",offline:"\u79BB\u7EBF",connecting:"\u8FDE\u63A5\u4E2D",failed:"\u8FDE\u63A5\u5931\u8D25",disconnected:"\u672A\u8FDE\u63A5",unknown:"\u672A\u68C0\u6D4B"};function od(e){return B2[e?.status]||"\u672A\u68C0\u6D4B"}function no(e){let t=e?.deviceType||e?.kind;return["mobile","phone","android","ios","tablet"].includes(t)?"mobile":["ssh","server"].includes(t)?"server":["local","computer","desktop","laptop"].includes(t)?"computer":"devices"}function ld(e){return e?.kind==="local"?"\u672C\u673A":{computer:"\u7535\u8111",mobile:"\u79FB\u52A8\u8BBE\u5907",server:"\u670D\u52A1\u5668",devices:"\u8BBE\u5907"}[no(e)]}function rt(e){return["ready","done","completed","succeeded","success","failed","error"].includes(e?.state)}function $r(e){return["failed","error"].includes(e?.state)}function ad(e){let t=Number(e.port);if(!e.host.trim()||!e.username.trim())throw new Error("\u8BF7\u586B\u5199\u670D\u52A1\u5668\u5730\u5740\u548C\u7528\u6237\u540D");if(!Number.isInteger(t)||t<1||t>65535)throw new Error("SSH \u7AEF\u53E3\u5E94\u4E3A 1\u201365535");return{host:e.host.trim(),port:t,username:e.username.trim(),name:e.name.trim()||e.host.trim(),source:e.source,...e.auth==="key"?{privateKey:e.privateKey,passphrase:e.passphrase}:{password:e.password}}}function wm(e,t){let n=new URL(e,t);if(n.username||n.password||n.protocol!=="https:"&&!(n.protocol==="http:"&&["127.0.0.1","localhost","[::1]"].includes(n.hostname)))throw new Error("\u5DE5\u4F5C\u53F0\u5730\u5740\u65E0\u6548");return n.href}var rk=$(We(),1);var xm=`.dc-loading-state{display:grid;justify-items:center;align-content:center;gap:20px;min-height:240px;padding:28px;color:inherit;box-sizing:border-box}
|
|
399
|
+
.dc-loading-state strong{font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;opacity:.65}
|
|
400
|
+
.dc-loading-mark{display:flex;align-items:center;gap:7px;height:32px;color:var(--dc-accent,var(--link-accent,#2c6ee8))}
|
|
401
|
+
.dc-loading-mark i{width:6px;height:22px;border-radius:3px;background:currentColor;animation:dc-loading-wave 1.1s ease-in-out infinite}
|
|
402
|
+
.dc-loading-mark i:nth-child(2){animation-delay:.15s}.dc-loading-mark i:nth-child(3){animation-delay:.3s}
|
|
403
|
+
.dc-loading-preview{display:grid;gap:12px;width:min(360px,100%)}
|
|
404
|
+
.dc-loading-preview span{height:12px;border-radius:4px;background:currentColor;opacity:.06;animation:dc-loading-fade 1.6s ease-in-out infinite}
|
|
405
|
+
.dc-loading-preview span:nth-child(2){width:80%;animation-delay:.15s}.dc-loading-preview span:nth-child(3){width:58%;animation-delay:.3s}
|
|
406
|
+
@keyframes dc-loading-wave{0%,100%{transform:scaleY(.45);opacity:.45}50%{transform:scaleY(1);opacity:1}}
|
|
407
|
+
@keyframes dc-loading-fade{50%{opacity:.12}}
|
|
408
|
+
@media(prefers-reduced-motion:reduce){.dc-loading-mark i,.dc-loading-preview span{animation:none}}
|
|
409
|
+
`;var kt=$(ce(),1);function Ql({label:e="\u6B63\u5728\u52A0\u8F7D\u2026",skeleton:t=!1}){return(0,kt.jsxs)("div",{className:"dc-loading-state",role:"status","aria-live":"polite","aria-busy":"true",children:[(0,kt.jsx)("style",{children:xm}),(0,kt.jsxs)("span",{className:"dc-loading-mark","aria-hidden":"true",children:[(0,kt.jsx)("i",{}),(0,kt.jsx)("i",{}),(0,kt.jsx)("i",{})]}),(0,kt.jsx)("strong",{children:e}),t&&(0,kt.jsxs)("div",{className:"dc-loading-preview","aria-hidden":"true",children:[(0,kt.jsx)("span",{}),(0,kt.jsx)("span",{}),(0,kt.jsx)("span",{})]})]})}var S=$(ce(),1);function ro(){(0,de.useEffect)(()=>{if(document.getElementById("dsh-link-style"))return;let e=document.createElement("style");return e.id="dsh-link-style",e.textContent=ym,document.head.append(e),()=>e.remove()},[])}function ke({children:e,icon:t,onClick:n,disabled:r,kind:i="quiet",type:o="button"}){return(0,S.jsxs)("button",{type:o,className:`link-button link-button-${i}`,onClick:n,disabled:r,children:[t&&(0,S.jsx)(Q,{name:t,size:16}),e]})}function Ut({state:e}){return(0,S.jsx)("span",{className:`link-status-dot link-status-${e}`,"aria-hidden":"true"})}function ql({children:e}){return e?(0,S.jsx)("p",{className:"link-error",role:"alert",children:e}):null}function Cm({ctx:e,management:t=Ic,embedded:n=!1}){ro();let r=(0,de.useRef)(km(globalThis.location)).current,[i,o]=(0,de.useState)(null),[l,a]=(0,de.useState)(""),[s,u]=(0,de.useState)(null),[m,h]=(0,de.useState)({host:"0.0.0.0",port:48721,publicUrl:r.publicUrl}),[g,v]=(0,de.useState)(""),[b,y]=(0,de.useState)(r.mode),[B,p]=(0,de.useState)(""),[d,f]=(0,de.useState)(""),[w,E]=(0,de.useState)(!0),[M,P]=(0,de.useState)(""),L=(0,de.useRef)(0),A=(0,de.useRef)(!1),D=(0,de.useRef)(null),_=(I,K=!1)=>{o(I),I.enabled||u(null),(K||!A.current)&&(h({host:I.host||"0.0.0.0",port:I.port??48721,publicUrl:I.publicUrl||r.publicUrl}),A.current=!0)},J=async(I=!1,K)=>{let me=++L.current,x=await t("status",{},K);return me===L.current&&(_(x,I),f(""),P(""),E(!1)),x};(0,de.useEffect)(()=>{let I=new AbortController,K,me=async()=>{let O=!1;try{await J(!1,I.signal),O=!0}catch(W){I.signal.aborted||(f(W.message),P(W.detail||""),E(!1),u(null))}finally{!I.signal.aborted&&O&&(K=setTimeout(me,1e4))}},x=async()=>{clearTimeout(K),await me()};return D.current=x,me(),()=>{D.current=null,I.abort(),clearTimeout(K)}},[]),(0,de.useEffect)(()=>{B&&!i?.addresses?.includes(B)&&p("")},[i?.addresses,B]);let re=async(I,K=!1)=>{u(null);let me=await t("configure",I);return++L.current,_(me,K),me},$e=async I=>{I.preventDefault(),v("saving"),a("");try{await re({...m,port:Number(m.port)},!0)}catch(K){a(K.message)}finally{v("")}},z=async I=>{v("toggle"),a("");try{await re({enabled:I})}catch(K){a(K.message)}finally{v("")}},ie=async()=>{if(!(w||!i||d)){v("pairing"),a(""),u(null);try{let I=i.publicUrl||r.publicUrl,K=!i.enabled||b==="public"&&!i.publicUrl&&I?await re({enabled:!0,...b==="public"&&I?{publicUrl:I}:{}}):i,me=b==="lan"&&K.addresses?.includes(B)?B:"";u(await t("pairing",{mode:b,...me?{address:me}:{}}))}catch(I){a(I.message)}finally{v("")}}},q=async(I,K)=>{v(K),a("");try{let me=await t(K,{id:I});++L.current,_(me)}catch(me){a(me.message)}finally{v("")}},X=async()=>{v("refresh"),E(!0),a("");try{D.current?await D.current():await J()}catch(I){f(I.message),P(I.detail||""),u(null)}finally{v(""),E(!1)}},ae=!!g||w||!i||!!d;return w&&!i&&!d?(0,S.jsx)("section",{className:"link-settings",children:(0,S.jsx)(Ql,{label:"\u6B63\u5728\u8BFB\u53D6\u8FDE\u63A5\u72B6\u6001\u2026",skeleton:!0})}):(0,S.jsxs)("section",{className:"link-settings","aria-label":"Link \u8FDC\u7A0B\u8FDE\u63A5",children:[!n&&(0,S.jsx)("div",{className:"link-heading",children:(0,S.jsx)("h2",{children:"\u5141\u8BB8\u5176\u4ED6\u8BBE\u5907\u8FDE\u63A5"})}),(0,S.jsx)("div",{className:"link-status-panel",children:(0,S.jsxs)("div",{className:"link-panel-head",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h3",{children:i?.hostName||globalThis.location?.hostname||"\u672C\u673A\u5DE5\u4F5C\u53F0"}),(0,S.jsxs)("span",{className:"link-online",role:"status",children:[(0,S.jsx)(Ut,{state:d||i?.error?"failed":i?.enabled?"running":"idle"}),w?"\u6B63\u5728\u8FDE\u63A5\u2026":d?"\u670D\u52A1\u5F85\u5C31\u7EEA":i?.error?"\u6682\u4E0D\u53EF\u7528":i?.enabled?"\u5DF2\u542F\u7528":"\u672A\u542F\u7528"]})]}),(0,S.jsxs)("div",{className:"link-host-actions",children:[d&&(0,S.jsx)(ke,{icon:"refresh",onClick:X,disabled:!!g,children:w?"\u91CD\u8BD5\u4E2D\u2026":"\u91CD\u8BD5"}),(0,S.jsxs)("div",{className:"link-toggle-field",children:[(0,S.jsx)("label",{className:"link-sr-only",htmlFor:"link-enabled",children:"\u542F\u7528 Link"}),(0,S.jsx)("input",{id:"link-enabled",type:"checkbox",checked:!!i?.enabled,disabled:ae,onChange:I=>z(I.target.checked)})]})]})]})}),(0,S.jsxs)("div",{className:"link-pair-row",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h3",{children:"\u5141\u8BB8\u5176\u4ED6\u8BBE\u5907\u8FDE\u63A5"}),(0,S.jsx)("p",{children:b!=="lan"?"\u5176\u4ED6\u8BBE\u5907\u626B\u7801\u6216\u7C98\u8D34\u8FDE\u63A5\u4FE1\u606F\uFF0C\u56DE\u5230\u8FD9\u91CC\u6279\u51C6\u3002":"\u540C\u4E00\u7F51\u7EDC\u5185\u626B\u7801\u6216\u7C98\u8D34\u8FDE\u63A5\u4FE1\u606F\uFF0C\u56DE\u5230\u8FD9\u91CC\u6279\u51C6\u3002"})]}),(0,S.jsx)(ke,{kind:"primary",icon:"scan",onClick:ie,disabled:ae||b==="public"&&!i.publicUrl&&!r.publicUrl||b==="relay"&&!i?.relay?.connected,children:g==="pairing"?"\u6B63\u5728\u51C6\u5907\u2026":"\u751F\u6210\u8FDE\u63A5\u4FE1\u606F"})]}),(0,S.jsx)(ql,{children:l||d||i?.error}),M&&(0,S.jsxs)("details",{className:"link-error-detail",children:[(0,S.jsx)("summary",{children:"\u67E5\u770B\u8BE6\u60C5"}),(0,S.jsx)("p",{children:M})]}),(0,S.jsxs)("details",{className:"link-advanced",children:[(0,S.jsx)("summary",{children:"\u9AD8\u7EA7\u8BBE\u7F6E"}),(0,S.jsx)("p",{className:"link-advanced-note",children:r.mode==="public"?"\u5DF2\u6839\u636E\u5F53\u524D\u5DE5\u4F5C\u53F0\u57DF\u540D\u4F18\u5148\u4F7F\u7528 HTTPS \u8FDE\u63A5\u3002\u4E5F\u53EF\u624B\u52A8\u6539\u4E3A\u540C\u7F51\u7EDC\u8FDE\u63A5\u3002":"\u9ED8\u8BA4\u4F7F\u7528\u540C\u7F51\u7EDC Android App \u626B\u7801\uFF0C\u65E0\u9700\u516C\u7F51\u6216\u624B\u52A8\u9009\u62E9\u5730\u5740\u3002\u6D4F\u89C8\u5668\u8FDE\u63A5\u9700\u53EF\u8FBE\u7684 HTTPS \u5730\u5740\u3002"}),(0,S.jsxs)("form",{className:"link-form",onSubmit:$e,children:[(0,S.jsxs)("label",{className:"link-field",children:[(0,S.jsx)("span",{children:"\u76D1\u542C\u5730\u5740"}),(0,S.jsx)("input",{value:m.host,onChange:I=>h(K=>({...K,host:I.target.value})),placeholder:"0.0.0.0",disabled:ae})]}),(0,S.jsxs)("label",{className:"link-field",children:[(0,S.jsx)("span",{children:"\u7AEF\u53E3"}),(0,S.jsx)("input",{inputMode:"numeric",value:m.port,onChange:I=>h(K=>({...K,port:I.target.value})),disabled:ae})]}),(0,S.jsxs)("label",{className:"link-field link-field-wide",children:[(0,S.jsxs)("span",{children:["\u516C\u7F51 HTTPS \u5730\u5740 ",(0,S.jsx)("small",{children:"\u53EF\u9009\uFF0C\u9700\u81EA\u884C\u914D\u7F6E\u6709\u6548\u8BC1\u4E66\uFF0C\u5E76\u786E\u4FDD\u624B\u673A\u53EF\u4EE5\u8BBF\u95EE\u3002"})]}),(0,S.jsx)("input",{value:m.publicUrl,onChange:I=>h(K=>({...K,publicUrl:I.target.value})),placeholder:"https://desk.example.com",disabled:ae})]}),(0,S.jsx)("div",{className:"link-form-actions",children:(0,S.jsx)(ke,{kind:"primary",icon:"check",disabled:ae,type:"submit",children:g==="saving"?"\u6B63\u5728\u4FDD\u5B58\u2026":"\u4FDD\u5B58\u9AD8\u7EA7\u8BBE\u7F6E"})})]}),(0,S.jsxs)("div",{className:"link-advanced-controls",children:[(0,S.jsxs)("label",{className:"link-field",children:[(0,S.jsx)("span",{children:"\u8FDE\u63A5\u65B9\u5F0F"}),(0,S.jsxs)(Ft,{"aria-label":"\u8FDE\u63A5\u65B9\u5F0F",value:b,disabled:ae,onChange:I=>{y(I.target.value),u(null)},children:[(0,S.jsx)("option",{value:"lan",children:"\u540C\u7F51\u7EDC \xB7 Android Link App"}),(0,S.jsx)("option",{value:"public",disabled:!i?.publicUrl&&!r.publicUrl,children:"\u516C\u7F51 \xB7 HTTPS \u6D4F\u89C8\u5668"}),i?.relay?.configured&&(0,S.jsx)("option",{value:"relay",disabled:!i.relay.connected,children:"\u81EA\u6709\u4E2D\u7EE7 \xB7 HTTPS \u6D4F\u89C8\u5668"})]})]}),b==="lan"&&i?.addresses?.length>1&&(0,S.jsxs)("label",{className:"link-field",children:[(0,S.jsxs)("span",{children:["\u624B\u52A8\u6307\u5B9A\u8FDE\u63A5\u5730\u5740 ",(0,S.jsx)("small",{children:"\u901A\u5E38\u4FDD\u6301\u81EA\u52A8\u5373\u53EF\uFF1B\u8FDE\u63A5\u5931\u8D25\u65F6\u518D\u5C1D\u8BD5\u5176\u4ED6\u5730\u5740\u3002"})]}),(0,S.jsxs)(Ft,{"aria-label":"\u5C40\u57DF\u7F51\u5730\u5740",value:B,disabled:ae,onChange:I=>{p(I.target.value),u(null)},children:[(0,S.jsx)("option",{value:"",children:"\u81EA\u52A8\u9009\u62E9\u5730\u5740"}),i.addresses.map(I=>(0,S.jsx)("option",{value:I,children:I},I))]})]})]}),(0,S.jsxs)("div",{className:"link-diagnostics",children:[(0,S.jsxs)("div",{className:"link-panel-head",children:[(0,S.jsx)("h4",{children:"\u8FDE\u63A5\u8BCA\u65AD"}),(0,S.jsx)(ke,{icon:"refresh",onClick:X,disabled:!!g,children:g==="refresh"?"\u6B63\u5728\u5237\u65B0\u2026":"\u5237\u65B0\u72B6\u6001"})]}),(0,S.jsx)("p",{children:"Link \u8FD0\u884C\u5728\u54EA\u53F0\u7535\u8111\uFF0C\u5C31\u8FDE\u63A5\u54EA\u53F0\u7535\u8111\u3002\u4E91\u670D\u52A1\u5668\u4E0D\u5C5E\u4E8E\u624B\u673A\u672C\u5730\u5C40\u57DF\u7F51\uFF0C\u8BF7\u4F7F\u7528\u53D7\u4FE1\u4EFB\u7684 HTTPS \u5730\u5740\uFF1B\u672C\u5730\u8FDE\u63A5\u5931\u8D25\u65F6\uFF0C\u68C0\u67E5\u540C\u4E00 Wi-Fi\u3001\u7F51\u7EDC\u9694\u79BB\u548C\u7535\u8111\u9632\u706B\u5899\u3002"}),i?.relay?.configured&&(0,S.jsxs)("p",{role:"status",children:["\u81EA\u6709\u4E2D\u7EE7\uFF1A",i.relay.connected?"\u4E3B\u673A\u901A\u9053\u5DF2\u8FDE\u63A5\uFF08\u9700\u4ECE\u8BBF\u95EE\u7AEF\u9A8C\u8BC1\u53EF\u8FBE\u6027\uFF09":i.relay.lastError||"\u6B63\u5728\u8FDE\u63A5\u2026"]}),(0,S.jsxs)("div",{className:"link-addresses",children:[(i?.addresses||[]).map(I=>(0,S.jsx)("code",{children:I},I)),i?.publicUrl&&(0,S.jsx)("code",{children:i.publicUrl}),i&&!i.addresses?.length&&(0,S.jsx)("span",{children:"\u672A\u53D1\u73B0\u53EF\u7528\u8FDE\u63A5\u5730\u5740\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u6307\u5B9A\u76D1\u542C\u5730\u5740\u3002"})]})]})]}),s&&(0,S.jsx)(D2,{pairing:s,pending:i?.pending||[],onClose:()=>u(null),onConfirm:q,busy:g}),!!i?.pending?.length&&!s&&(0,S.jsx)("div",{className:"link-pending-list",children:i.pending.map(I=>(0,S.jsxs)("div",{className:"link-device",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("strong",{children:I.name||"\u65B0\u8BBE\u5907"}),(0,S.jsx)("small",{children:"\u8BF7\u6C42\u8FDE\u63A5\u5DE5\u4F5C\u53F0"})]}),(0,S.jsx)(ke,{kind:"primary",icon:"check",onClick:()=>q(I.id,"confirm"),disabled:ae,children:"\u5141\u8BB8"}),(0,S.jsx)(ke,{icon:"close",onClick:()=>q(I.id,"reject"),disabled:ae,children:"\u62D2\u7EDD"})]},I.id))}),(0,S.jsxs)("div",{className:"link-device-list",children:[(0,S.jsxs)("div",{className:"link-panel-head",children:[(0,S.jsx)("div",{children:(0,S.jsx)("h3",{children:"\u5DF2\u6388\u6743\u8BBF\u95EE\u6B64\u8BBE\u5907"})}),(0,S.jsx)("span",{children:i?`${i.devices?.length||0} \u53F0`:"\u2014"})]}),i?.devices?.length?i.devices.map(I=>(0,S.jsxs)("div",{className:"link-device",children:[(0,S.jsx)(Q,{name:no(I),size:18}),(0,S.jsxs)("div",{children:[(0,S.jsx)("strong",{children:I.name||"\u672A\u547D\u540D\u8BBE\u5907"}),(0,S.jsxs)("small",{children:["\u6700\u8FD1\u8FDE\u63A5 ",Sm(I.lastSeenAt)]})]}),(0,S.jsx)(ke,{icon:"trash",onClick:()=>q(I.id,"revoke"),disabled:ae,children:"\u64A4\u9500"})]},I.id)):(0,S.jsx)("p",{className:"link-empty",children:w?"\u6B63\u5728\u8FDE\u63A5\u2026":d?"\u6682\u4E0D\u53EF\u7528":"\u8FD8\u6CA1\u6709\u914D\u5BF9\u8BBE\u5907"})]})]})}function D2({pairing:e,pending:t,onClose:n,onConfirm:r,busy:i}){let o=(0,de.useRef)(null),l=(0,de.useRef)(n);l.current=n;let a=(0,de.useId)(),s=(0,de.useId)(),[u,m]=(0,de.useState)(null);(0,de.useEffect)(()=>{let v=document.activeElement;o.current?.querySelector("button")?.focus();let b=y=>{if(!(y.isComposing||y.defaultPrevented||y.ctrlKey||y.altKey||y.metaKey)&&(y.key==="Escape"&&(y.preventDefault(),y.stopPropagation(),y.repeat||l.current()),y.key==="Tab"&&o.current)){y.stopPropagation();let B=[...o.current.querySelectorAll('button:not(:disabled), a[href], summary, [tabindex="0"]')].filter(f=>!f.closest("details:not([open])")||f.tagName==="SUMMARY"),p=B[0]||o.current,d=B.at(-1)||p;(!o.current.contains(document.activeElement)||(y.shiftKey?document.activeElement===p:document.activeElement===d))&&(y.preventDefault(),(y.shiftKey?d:p).focus())}};return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0),v?.isConnected&&v.focus()}},[]);let h=e.mode==="public"||e.mode==="relay",g=async(v,b)=>{try{if(!navigator.clipboard?.writeText)throw new Error("clipboard unavailable");await navigator.clipboard.writeText(v),m({ok:!0,text:b+"\u5DF2\u590D\u5236"})}catch{m({ok:!1,text:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6D4F\u89C8\u5668\u526A\u8D34\u677F\u6743\u9650\u540E\u91CD\u8BD5\u3002"})}};return(0,bm.createPortal)((0,S.jsx)("div",{className:"link-dialog-backdrop",role:"presentation",onClick:v=>{v.target===v.currentTarget&&n()},children:(0,S.jsxs)("div",{ref:o,className:"link-dialog",role:"dialog","aria-modal":"true","aria-labelledby":a,"aria-describedby":s,tabIndex:-1,children:[(0,S.jsx)("button",{type:"button",className:"link-dialog-close",onClick:n,"aria-label":"\u5173\u95ED\u914D\u5BF9\u7A97\u53E3",children:(0,S.jsx)(Q,{name:"close",size:20})}),(0,S.jsx)("span",{className:"link-dialog-symbol",children:(0,S.jsx)(Q,{name:"scan",size:24})}),(0,S.jsx)("h3",{id:a,children:"\u8FDE\u63A5\u6B64\u8BBE\u5907"}),(0,S.jsx)("p",{id:s,children:h?"\u5728\u5176\u4ED6\u8BBE\u5907\u626B\u7801\u6253\u5F00\uFF0C\u6216\u7C98\u8D34\u8FDE\u63A5\u4FE1\u606F\uFF0C\u518D\u56DE\u5230\u8FD9\u91CC\u5141\u8BB8\u8FDE\u63A5\u3002":"\u5728\u540C\u4E00\u7F51\u7EDC\u7684\u8BBE\u5907\u4E0A\u626B\u7801\uFF0C\u6216\u590D\u5236\u8FDE\u63A5\u4FE1\u606F\u5230\u8BBE\u5907\u4E2D\u5FC3\uFF0C\u518D\u56DE\u5230\u8FD9\u91CC\u5141\u8BB8\u8FDE\u63A5\u3002"}),(0,S.jsx)(vm,{value:h?e.webUrl:e.uri,size:224}),h&&e.webUrl&&(0,S.jsxs)("a",{className:"link-pair-open",href:e.webUrl,target:"_blank",rel:"noreferrer",children:["\u6253\u5F00\u914D\u5BF9\u9875\u9762 ",(0,S.jsx)(Q,{name:"external",size:14})]}),(0,S.jsxs)("small",{className:"link-expiry",children:["\u6709\u6548\u671F\u81F3 ",Sm(e.expiresAt)]}),(0,S.jsx)("p",{className:"link-pair-warning",children:"\u4EC5\u6388\u6743\u4F60\u4FE1\u4EFB\u7684\u8BBE\u5907\uFF0C\u4E0D\u8981\u5206\u4EAB\u6B64\u4E8C\u7EF4\u7801\u3002"}),(0,S.jsxs)("div",{className:"link-pair-backup",children:[(0,S.jsx)("p",{className:"link-pair-backup-note",children:"\u5728\u5176\u4ED6\u8BBE\u5907\u7684\u201C\u6DFB\u52A0\u8BBE\u5907\u201D\u4E2D\u7C98\u8D34\u8FDE\u63A5\u4FE1\u606F\u3002\u77ED\u7801\u9700\u7ED3\u5408\u4E3B\u673A\u5730\u5740\u4F7F\u7528\u3002"}),(0,S.jsx)("code",{className:"link-pair-code","aria-label":"\u914D\u5BF9\u7801\u9884\u89C8",children:e.code}),(0,S.jsxs)("div",{className:"link-pair-backup-actions",children:[(0,S.jsx)(ke,{icon:"copy",onClick:()=>g(e.code,"\u5B8C\u6574\u914D\u5BF9\u7801"),children:"\u590D\u5236\u5B8C\u6574\u914D\u5BF9\u7801"}),(0,S.jsx)(ke,{icon:"link",onClick:()=>g(h&&e.webUrl||e.uri,"\u8FDE\u63A5\u4FE1\u606F"),children:"\u590D\u5236\u8FDE\u63A5\u4FE1\u606F"})]}),(0,S.jsx)("p",{className:u?.ok===!1?"link-copy-feedback link-error":"link-copy-feedback",role:"status","aria-live":"polite",children:u?.text||"\u914D\u5BF9\u7801\u4EC5\u5728\u672C\u6B21\u6709\u6548\u671F\u5185\u53EF\u7528\u3002"})]}),!!t.length&&(0,S.jsx)("div",{className:"link-pending-list",children:t.map(v=>(0,S.jsxs)("div",{className:"link-device",children:[(0,S.jsxs)("div",{className:"link-device-info",children:[(0,S.jsx)("strong",{children:v.name||"\u65B0\u8BBE\u5907"}),(0,S.jsx)("small",{children:"\u7B49\u5F85\u6B64\u8BBE\u5907\u786E\u8BA4"})]}),(0,S.jsxs)("div",{className:"link-device-actions",children:[(0,S.jsx)(ke,{kind:"primary",icon:"check",onClick:()=>r(v.id,"confirm"),disabled:!!i,children:"\u5141\u8BB8"}),(0,S.jsx)(ke,{icon:"close",onClick:()=>r(v.id,"reject"),disabled:!!i,children:"\u62D2\u7EDD"})]})]},v.id))})]})}),document.body)}function Sm(e){if(!e)return"\u521A\u521A";let t=new Date(e);return Number.isNaN(t.valueOf())?String(e):t.toLocaleString("zh-CN",{month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"})}var Em=$(We(),1);var Ze=$(ce(),1);function Nm({interaction:e,disabled:t,onRespond:n}){let[r,i]=(0,Em.useState)({}),o=e.kind==="permission"||e.kind==="approval",l=(s,u)=>i(m=>({...m,[s]:{selected:[],custom:"",...m[s],...u}})),a=e.questions||[];return(0,Ze.jsxs)("section",{className:"link-interaction",children:[(0,Ze.jsx)("span",{className:"link-kicker",children:o?"\u7B49\u5F85\u4F60\u7684\u786E\u8BA4":"\u9700\u8981\u4F60\u7684\u56DE\u7B54"}),(0,Ze.jsx)("h3",{children:e.title||"\u8BF7\u5904\u7406\u6B64\u8BF7\u6C42"}),e.toolName&&(0,Ze.jsx)("p",{className:"link-empty",children:e.toolName}),o?(0,Ze.jsx)("div",{className:"link-interaction-options",children:(e.options?.length?e.options:[{id:"allow",label:"\u5141\u8BB8\u4E00\u6B21"},{id:"reject",label:"\u62D2\u7EDD"}]).map(s=>(0,Ze.jsx)(ke,{kind:s.id==="allow"?"primary":"quiet",disabled:t,onClick:()=>n({allow:s.id==="allow"}),children:s.label},s.id))}):(0,Ze.jsxs)("form",{onSubmit:s=>{s.preventDefault(),n({answers:a.map(u=>({id:u.id,selected:r[u.id]?.selected||[],custom:r[u.id]?.custom||""}))})},children:[a.map(s=>{let u=r[s.id]||{selected:[],custom:""};return(0,Ze.jsxs)("fieldset",{className:"link-question",children:[(0,Ze.jsx)("legend",{children:s.question||s.title}),s.options?.map(m=>(0,Ze.jsxs)("label",{children:[(0,Ze.jsx)("input",{type:s.multiSelect?"checkbox":"radio",name:`question-${e.id}-${s.id}`,checked:u.selected.includes(m.label),onChange:h=>l(s.id,{selected:s.multiSelect?h.target.checked?[...u.selected,m.label]:u.selected.filter(g=>g!==m.label):[m.label]}),disabled:t}),(0,Ze.jsxs)("span",{children:[m.label,m.description&&(0,Ze.jsx)("small",{children:m.description})]})]},m.label)),(0,Ze.jsx)("textarea",{"aria-label":`${s.question||"\u95EE\u9898"}\u7684\u8865\u5145\u56DE\u7B54`,value:u.custom,placeholder:"\u8865\u5145\u56DE\u7B54\uFF08\u53EF\u9009\uFF09",onChange:m=>l(s.id,{custom:m.target.value}),disabled:t})]},s.id)}),(0,Ze.jsx)(ke,{type:"submit",kind:"primary",disabled:t||a.some(s=>!r[s.id]?.selected?.length&&!r[s.id]?.custom?.trim()),children:"\u63D0\u4EA4\u56DE\u7B54"})]})]})}function sd(e){if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e!="string"||!e.trim())return null;let t=e.trim(),n=/^-?\d+(?:\.\d+)?$/.test(t)?Number(t):Date.parse(t);return Number.isFinite(n)?n:null}function zm(e){return sd(e?.updatedAt)??sd(e?.createdAt)}function Wr(e,t,n=""){let r=new Map((t||[]).map(o=>[o.id,[o.name,o.path].filter(Boolean).join(" ")])),i=String(n||"").trim().toLocaleLowerCase();return(e||[]).map((o,l)=>({session:o,index:l,time:zm(o)})).filter(({session:o})=>!i||[o.title,r.get(o.projectId)].filter(Boolean).join(" ").toLocaleLowerCase().includes(i)).sort((o,l)=>o.time===null?l.time===null?o.index-l.index:1:l.time===null?-1:l.time-o.time||o.index-l.index).map(({session:o})=>o)}function Mm(e,t=Date.now()){let n=new Date(sd(t)??Date.now());n.setHours(0,0,0,0);let r=new Date(n);r.setDate(r.getDate()-1);let i=new Date(n);i.setDate(i.getDate()-7);let o=["\u4ECA\u5929","\u6628\u5929","\u8FC7\u53BB7\u5929","\u66F4\u65E9","\u672A\u6807\u6CE8\u65F6\u95F4"].map(l=>({label:l,items:[]}));for(let l of Wr(e,[])){let a=zm(l),s=a===null?4:a>=n.getTime()?0:a>=r.getTime()?1:a>=i.getTime()?2:3;o[s].items.push(l)}return o.filter(l=>l.items.length)}function cd(e,t,n=""){let r=new Set((e||[]).map(o=>o.id).filter(Boolean));return r.has(n)?n:Wr(t,[]).find(o=>r.has(o.projectId))?.projectId||e?.[0]?.id||""}var Qr=$(We(),1);var Ck=$(We(),1);var Pm=`<?xml version="1.0" encoding="UTF-8"?>
|
|
410
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" role="img" aria-label="BenchGo">
|
|
411
|
+
<g transform="translate(122,274.4) scale(1.3)">
|
|
412
|
+
|
|
413
|
+
<!-- Corner rule (master construction, geometry.json): the cut is a 45-degree
|
|
414
|
+
diagonal from (410,380) to (600,190); the corner piece keeps the body's
|
|
415
|
+
R95 rounded bottom-right corner - never a sharp point. Glyph must stay
|
|
416
|
+
fully inside the piece: clear of the diagonal (line x+y=790) and of the
|
|
417
|
+
R95 arc (center 505,285). Current glyph: mini window at (543,324),
|
|
418
|
+
scale 0.9, max radius ~32. If the corner changes, recompute from the
|
|
419
|
+
master geometry, not from absolute pixels. -->
|
|
420
|
+
<defs>
|
|
421
|
+
<clipPath id="bodyClip">
|
|
422
|
+
<path d="M95,0 H505 A95,95 0 0 1 600,95 V190 L410,380 H95 A95,95 0 0 1 0,285 V95 A95,95 0 0 1 95,0 Z"/>
|
|
423
|
+
</clipPath>
|
|
424
|
+
<pattern id="winprint" width="150" height="118" patternUnits="userSpaceOnUse">
|
|
425
|
+
<g fill="none" stroke="#D9CCAF" stroke-width="2.5" opacity="0.6">
|
|
426
|
+
<rect x="12" y="14" width="32" height="22" rx="5"/>
|
|
427
|
+
<rect x="84" y="66" width="32" height="22" rx="5"/>
|
|
428
|
+
</g>
|
|
429
|
+
<g fill="#D9CCAF" opacity="0.6">
|
|
430
|
+
<circle cx="21" cy="22" r="2.8"/><circle cx="31" cy="22" r="2.8"/>
|
|
431
|
+
<circle cx="93" cy="74" r="2.8"/><circle cx="103" cy="74" r="2.8"/>
|
|
432
|
+
</g>
|
|
433
|
+
</pattern>
|
|
434
|
+
</defs>
|
|
435
|
+
|
|
436
|
+
<!-- body -->
|
|
437
|
+
<path d="M95,0 H505 A95,95 0 0 1 600,95 V190 L410,380 H95 A95,95 0 0 1 0,285 V95 A95,95 0 0 1 95,0 Z" fill="#F1E8DB"/>
|
|
438
|
+
<rect x="0" y="0" width="600" height="380" fill="url(#winprint)" clip-path="url(#bodyClip)"/>
|
|
439
|
+
|
|
440
|
+
<!-- terminal motif >_ -->
|
|
441
|
+
<g stroke="#EE5A33" stroke-width="17" stroke-linecap="round" stroke-linejoin="round" fill="none">
|
|
442
|
+
<polyline points="472,50 512,79 472,108"/>
|
|
443
|
+
</g>
|
|
444
|
+
<rect x="528" y="93" width="42" height="17" rx="8.5" fill="#EE5A33"/>
|
|
445
|
+
|
|
446
|
+
<!-- eyes: bean + < (right eye at 88% scale, user-approved 2026-10-26, baked coords) -->
|
|
447
|
+
<rect x="123" y="125" width="90" height="130" rx="45" fill="#222321"/>
|
|
448
|
+
<polyline points="342.6,150.1 293.4,195 342.6,239.9" stroke="#222321" stroke-width="30" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
449
|
+
|
|
450
|
+
<!-- orange cut corner -->
|
|
451
|
+
<path d="M410,380 H505 A95,95 0 0 0 600,285 V190 Z" fill="#EE5A33"/>
|
|
452
|
+
<!-- mini window glyph: centered on corner incenter, max radius ~36 < inradius 51 -->
|
|
453
|
+
<g transform="translate(543 324) scale(0.9)">
|
|
454
|
+
<rect x="-26" y="-18" width="52" height="36" rx="9" fill="none" stroke="#F7F1E5" stroke-width="8"/>
|
|
455
|
+
<circle cx="-9" cy="0" r="4" fill="#F7F1E5"/>
|
|
456
|
+
<circle cx="9" cy="0" r="4" fill="#F7F1E5"/>
|
|
457
|
+
</g>
|
|
458
|
+
|
|
459
|
+
</g>
|
|
460
|
+
</svg>
|
|
461
|
+
`;var Tm=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 380" role="img" aria-label="BenchGo">
|
|
462
|
+
<!-- Corner rule (master construction, geometry.json): the cut is a 45-degree
|
|
463
|
+
diagonal from (410,380) to (600,190); the corner piece keeps the body's
|
|
464
|
+
R95 rounded bottom-right corner - never a sharp point. Glyph must stay
|
|
465
|
+
fully inside the piece: clear of the diagonal (line x+y=790) and of the
|
|
466
|
+
R95 arc (center 505,285). Current glyph: mini window at (543,324),
|
|
467
|
+
scale 0.9, max radius ~32. If the corner changes, recompute from the
|
|
468
|
+
master geometry, not from absolute pixels. -->
|
|
469
|
+
<defs>
|
|
470
|
+
<clipPath id="bodyClip">
|
|
471
|
+
<path d="M95,0 H505 A95,95 0 0 1 600,95 V190 L410,380 H95 A95,95 0 0 1 0,285 V95 A95,95 0 0 1 95,0 Z"/>
|
|
472
|
+
</clipPath>
|
|
473
|
+
<pattern id="winprint" width="150" height="118" patternUnits="userSpaceOnUse">
|
|
474
|
+
<g fill="none" stroke="#D9CCAF" stroke-width="2.5" opacity="0.6">
|
|
475
|
+
<rect x="12" y="14" width="32" height="22" rx="5"/>
|
|
476
|
+
<rect x="84" y="66" width="32" height="22" rx="5"/>
|
|
477
|
+
</g>
|
|
478
|
+
<g fill="#D9CCAF" opacity="0.6">
|
|
479
|
+
<circle cx="21" cy="22" r="2.8"/><circle cx="31" cy="22" r="2.8"/>
|
|
480
|
+
<circle cx="93" cy="74" r="2.8"/><circle cx="103" cy="74" r="2.8"/>
|
|
481
|
+
</g>
|
|
482
|
+
</pattern>
|
|
483
|
+
</defs>
|
|
484
|
+
|
|
485
|
+
<!-- body -->
|
|
486
|
+
<path d="M95,0 H505 A95,95 0 0 1 600,95 V190 L410,380 H95 A95,95 0 0 1 0,285 V95 A95,95 0 0 1 95,0 Z" fill="#F1E8DB"/>
|
|
487
|
+
<rect x="0" y="0" width="600" height="380" fill="url(#winprint)" clip-path="url(#bodyClip)"/>
|
|
488
|
+
|
|
489
|
+
<!-- terminal motif >_ -->
|
|
490
|
+
<g stroke="#EE5A33" stroke-width="17" stroke-linecap="round" stroke-linejoin="round" fill="none">
|
|
491
|
+
<polyline points="472,50 512,79 472,108"/>
|
|
492
|
+
</g>
|
|
493
|
+
<rect x="528" y="93" width="42" height="17" rx="8.5" fill="#EE5A33"/>
|
|
494
|
+
|
|
495
|
+
<!-- eyes: bean + < (right eye at 88% scale, user-approved 2026-10-26, baked coords) -->
|
|
496
|
+
<rect x="123" y="125" width="90" height="130" rx="45" fill="#222321"/>
|
|
497
|
+
<polyline points="342.6,150.1 293.4,195 342.6,239.9" stroke="#222321" stroke-width="30" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
498
|
+
|
|
499
|
+
<!-- orange cut corner -->
|
|
500
|
+
<path d="M410,380 H505 A95,95 0 0 0 600,285 V190 Z" fill="#EE5A33"/>
|
|
501
|
+
<!-- mini window glyph: centered on corner incenter, max radius ~36 < inradius 51 -->
|
|
502
|
+
<g transform="translate(543 324) scale(0.9)">
|
|
503
|
+
<rect x="-26" y="-18" width="52" height="36" rx="9" fill="none" stroke="#F7F1E5" stroke-width="8"/>
|
|
504
|
+
<circle cx="-9" cy="0" r="4" fill="#F7F1E5"/>
|
|
505
|
+
<circle cx="9" cy="0" r="4" fill="#F7F1E5"/>
|
|
506
|
+
</g>
|
|
507
|
+
</svg>
|
|
508
|
+
`;var _m=$(ce(),1),F2=`data:image/svg+xml,${encodeURIComponent(Pm)}`,zk=`data:image/svg+xml,${encodeURIComponent(Tm)}`;function Kr({size:e=32,className:t="",decorative:n=!1}){return(0,_m.jsx)("img",{src:F2,width:e,height:e,className:t,alt:n?"":"BenchGo",style:{display:"block",flex:"none"}})}var F=$(ce(),1);function dd({value:e,onChange:t,label:n="\u641C\u7D22\u4F1A\u8BDD\u6216\u9879\u76EE"}){return(0,F.jsxs)("label",{className:"link-session-search",children:[(0,F.jsx)(Q,{name:"search",size:18}),(0,F.jsx)("input",{type:"search","aria-label":n,placeholder:"\u641C\u7D22\u4F1A\u8BDD\u6216\u9879\u76EE",value:e,onChange:r=>t(r.target.value),autoComplete:"off"}),e&&(0,F.jsx)("button",{type:"button","aria-label":"\u6E05\u9664\u641C\u7D22",onClick:()=>t(""),children:(0,F.jsx)(Q,{name:"close",size:16})})]})}function ud({title:e,children:t}){return(0,F.jsxs)("div",{className:"link-mobile-empty",children:[(0,F.jsx)(Q,{name:"archive",size:26}),(0,F.jsx)("h2",{children:e}),(0,F.jsx)("p",{children:t})]})}function pd({sessions:e,projects:t,selectedId:n,onChoose:r,compact:i=!1,disabled:o=!1}){let l=new Map((t||[]).map(a=>[a.id,a.name]));return Mm(e).map(a=>(0,F.jsxs)("section",{className:i?"link-sidebar-group":"link-session-group",children:[(0,F.jsx)("h2",{children:a.label}),(0,F.jsx)("div",{className:"link-session-list",children:a.items.map(s=>(0,F.jsxs)("button",{type:"button",className:i?"link-sidebar-session":"link-recent-row","aria-current":n===s.id?"page":void 0,onClick:()=>r(s),disabled:o,children:[!i&&(0,F.jsx)("span",{className:"link-recent-glyph",children:(0,F.jsx)(Q,{name:"archive",size:19})}),(0,F.jsxs)("span",{className:"link-recent-copy",children:[(0,F.jsx)("strong",{children:s.title||"\u65B0\u4F1A\u8BDD"}),(0,F.jsxs)("small",{children:[l.get(s.projectId)||"\u5DE5\u4F5C\u533A",s.running?" \xB7 \u8FD0\u884C\u4E2D":""]})]}),(0,F.jsx)("span",{className:"link-row-meta",children:s.running?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ut,{state:"running"}),!i&&"\u8FDB\u884C\u4E2D"]}):U2(s.updatedAt||s.createdAt)})]},s.id))})]},a.label))}function Lm({state:e,screen:t,selectedId:n,onChoose:r,onNavigate:i,onNew:o,onClose:l,connectionLabel:a,connectionState:s,theme:u,onTheme:m,disabled:h}){let g=(0,Qr.useRef)(null),[v,b]=Qr.default.useState("");(0,Qr.useEffect)(()=>{let B=document.activeElement,p=B?.matches('input, textarea, [contenteditable="true"]')?g.current?.closest(".link-mobile")?.querySelector('[aria-controls="link-mobile-sidebar"]'):B;g.current?.querySelector("button")?.focus({preventScroll:!0});let d=f=>{if(f.isComposing||f.keyCode===229||f.defaultPrevented)return;if(f.key==="Escape"){f.preventDefault(),f.stopPropagation(),l();return}if(f.key!=="Tab")return;let w=[...g.current?.querySelectorAll("button:not(:disabled), input:not(:disabled), a[href]")||[]].filter(P=>P.getClientRects().length),E=w[0],M=w.at(-1);f.shiftKey&&(document.activeElement===E||!g.current?.contains(document.activeElement))?(f.preventDefault(),M?.focus()):!f.shiftKey&&(document.activeElement===M||!g.current?.contains(document.activeElement))&&(f.preventDefault(),E?.focus())};return document.addEventListener("keydown",d,!0),()=>{document.removeEventListener("keydown",d,!0),p?.isConnected&&p.focus({preventScroll:!0})}},[l]);let y=Wr(e?.sessions||[],e?.projects||[],v);return(0,F.jsxs)("div",{className:"link-drawer-layer",children:[(0,F.jsx)("button",{className:"link-drawer-scrim",tabIndex:-1,"aria-label":"\u5173\u95ED\u4FA7\u8FB9\u680F\u906E\u7F69",onClick:l}),(0,F.jsxs)("aside",{id:"link-mobile-sidebar",className:"link-sidebar",role:"dialog","aria-modal":"true","aria-label":"\u4F1A\u8BDD\u5BFC\u822A",ref:g,children:[(0,F.jsxs)("header",{className:"link-sidebar-header",children:[(0,F.jsxs)("span",{className:"link-mobile-brand",children:[(0,F.jsx)(Kr,{size:28,decorative:!0}),(0,F.jsx)("span",{children:"BenchGo"})]}),(0,F.jsx)("button",{type:"button",className:"link-mobile-icon-button","aria-label":"\u5173\u95ED\u4FA7\u8FB9\u680F","aria-controls":"link-mobile-sidebar","aria-expanded":"true",onClick:l,children:(0,F.jsx)(Q,{name:"collapse",size:22})})]}),(0,F.jsxs)("button",{className:"link-sidebar-new",onClick:o,disabled:h,children:[(0,F.jsx)(Q,{name:"edit",size:19}),"\u65B0\u4F1A\u8BDD",(0,F.jsx)(Q,{name:"plus",size:17})]}),(0,F.jsx)("nav",{className:"link-sidebar-nav","aria-label":"\u4E3B\u5BFC\u822A",children:(0,F.jsxs)("button",{onClick:()=>i("recent"),"aria-current":t==="recent"?"page":void 0,children:[(0,F.jsx)(Q,{name:"archive",size:19}),"\u6700\u8FD1",(0,F.jsx)("span",{children:e?.sessions?.length||0})]})}),(0,F.jsx)(dd,{value:v,onChange:b,label:"\u641C\u7D22\u4FA7\u8FB9\u680F\u4F1A\u8BDD"}),(0,F.jsx)("div",{className:"link-sidebar-scroll",children:y.length?(0,F.jsx)(pd,{sessions:y,projects:e?.projects,selectedId:n,onChoose:r,compact:!0,disabled:h}):(0,F.jsx)("p",{className:"link-empty",children:v?"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u4F1A\u8BDD":"\u65B0\u4F1A\u8BDD\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC"})}),(0,F.jsxs)("footer",{className:"link-sidebar-footer",children:[(0,F.jsxs)("button",{className:"link-sidebar-host",onClick:()=>i("connection"),"aria-label":"\u8FDE\u63A5\u7BA1\u7406",children:[(0,F.jsx)(Q,{name:"link",size:19}),(0,F.jsxs)("span",{children:[(0,F.jsx)("strong",{children:e?.host?.name||"\u6211\u7684\u5DE5\u4F5C\u53F0"}),(0,F.jsxs)("small",{children:[(0,F.jsx)(Ut,{state:s}),a]})]})]}),(0,F.jsx)("button",{className:"link-mobile-icon-button","aria-label":u==="dark"?"\u5207\u6362\u6D45\u8272\u4E3B\u9898":"\u5207\u6362\u6DF1\u8272\u4E3B\u9898",onClick:m,children:(0,F.jsx)(Q,{name:"settings",size:19})})]})]})]})}function U2(e){if(!e)return"";let t=typeof e=="number"||/^-?\d+(?:\.\d+)?$/.test(e)?Number(e):Date.parse(e);if(!Number.isFinite(t))return"";let n=Math.max(0,Date.now()-t);return n<6e4?"\u521A\u521A":n<36e5?Math.floor(n/6e4)+" \u5206\u949F":n<864e5?Math.floor(n/36e5)+" \u5C0F\u65F6":new Date(t).toLocaleDateString("zh-CN",{month:"numeric",day:"numeric"})}var Im="dsh.link.device-name";function io(e="",{persist:t=!0}={}){let n="";if(t)try{n=globalThis.localStorage?.getItem(Im)||""}catch{}let r=String(e||n).trim();if(r)return r.slice(0,100);let i=new Uint8Array(5);if(globalThis.crypto?.getRandomValues)globalThis.crypto.getRandomValues(i);else for(let o=0;o<i.length;o++)i[o]=Math.floor(Math.random()*256);return"\u6211\u7684\u624B\u673A-"+Array.from(i,o=>String.fromCharCode(65+o%26)).join("")}function Bm(e){let t=String(e||"").trim().slice(0,100);if(t)try{globalThis.localStorage?.setItem(Im,t)}catch{}}var k=$(ce(),1);function H2(){ro(),(0,H.useEffect)(()=>{if(document.getElementById("dsh-link-mobile-style"))return;let e=document.createElement("style");return e.id="dsh-link-mobile-style",e.textContent=g1,document.head.append(e),()=>e.remove()},[])}function Rm({runtime:e=Bl,theme:t,onThemeChange:n}){H2();let{bootstrap:r,call:i,clearIdentity:o,contextUri:l,isLocalIdentitySave:a,isNative:s,pairingContext:u,requestId:m,saveIdentity:h,scan:g}=e,[v]=(0,H.useState)(()=>r()),[b,y]=(0,H.useState)([]),[B,p]=(0,H.useState)(null),d=(0,H.useRef)(null),f=(0,H.useRef)(null),w=(0,H.useRef)(null),E=(0,H.useRef)(!1),M=(0,H.useRef)(0),P=(0,H.useRef)(!1),L=(0,H.useRef)(""),[A,D]=(0,H.useState)(v),[_,J]=(0,H.useState)(v?.token?"recent":"pair"),[re,$e]=(0,H.useState)(!1),[z,ie]=(0,H.useState)(""),[q,X]=(0,H.useState)(!1),[ae,I]=(0,H.useState)(()=>globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"),K=t||ae,me=C=>{let j=typeof C=="function"?C(K):C;n?n(j):I(j)},[x,O]=(0,H.useState)(""),[W,we]=(0,H.useState)(""),[U,Z]=(0,H.useState)(!1),Te=(0,H.useCallback)(()=>$e(!1),[]),je=(0,H.useRef)(new Map),xe=(0,H.useRef)(!0),[ze,or]=(0,H.useState)(()=>l(v)||(e.isPreview?"":new URLSearchParams(location.hash.slice(1)).get("code"))||""),[qr,Gl]=(0,H.useState)(()=>v?.token?"":ze),[Yr,Jl]=(0,H.useState)(()=>io(v?.name,{persist:!e.isPreview})),[Mt,Dn]=(0,H.useState)(null),[Pt,An]=(0,H.useState)(""),[be,Xl]=(0,H.useState)(null),[lr,ea]=(0,H.useState)(""),[_e,oo]=(0,H.useState)(null),[Tt,ta]=(0,H.useState)({messages:[],interactions:[],running:!1}),[Gr,ar]=(0,H.useState)(""),[lo,Ce]=(0,H.useState)(""),[se,dt]=(0,H.useState)(!1),[ut,ao]=(0,H.useState)(null),[kd,$m]=(0,H.useState)(0),[na,Wm]=(0,H.useState)(""),[jn,Km]=(0,H.useState)(()=>navigator.onLine!==!1),Jr=(0,H.useCallback)(()=>$m(C=>C+1),[]);(0,H.useEffect)(()=>{let C=()=>{let j=r();a(j)||!j?.token&&l(j)&&l(j)===L.current||(M.current++,P.current=!1,D(j),or(l(j)),J(j?.token?"recent":"pair"),Gl(j?.token?"":l(j)),Xl(null),oo(null),$e(!1),ao(null),ar(""),O(""),we(""),je.current.clear(),d.current=null,Dn(null),An(""),Ce(""),dt(!1),j?.name&&Jl(j.name))};return e.subscribe?e.subscribe(C):(window.addEventListener("link:bootstrap",C),()=>window.removeEventListener("link:bootstrap",C))},[e]),(0,H.useEffect)(()=>{e.isPreview||Bm(Yr)},[Yr,e.isPreview]),(0,H.useEffect)(()=>{let C=window.visualViewport;if(!C)return;let j=()=>{let ee=w.current;if(!ee)return;let te=C.scale===1&&window.innerHeight-C.height>120;ee.style.setProperty("--link-keyboard-inset",te?Math.max(0,window.innerHeight-C.height-C.offsetTop)+"px":"0px")};return j(),C.addEventListener("resize",j),C.addEventListener("scroll",j),()=>{C.removeEventListener("resize",j),C.removeEventListener("scroll",j)}},[_==="pair"]),(0,H.useEffect)(()=>{let C=()=>Km(navigator.onLine!==!1);return window.addEventListener("online",C),window.addEventListener("offline",C),()=>{window.removeEventListener("online",C),window.removeEventListener("offline",C)}},[]),(0,H.useEffect)(()=>{if(!A?.token)return;let C=!1,j,ee=new AbortController,te=async()=>{try{let Be=await i("state",{},ee.signal);C||(Xl(Be),ea(aa=>cd(Be.projects||[],Be.sessions||[],aa)),O(""))}catch(Be){C||O(Be.message)}finally{C||(j=setTimeout(te,_==="chat"?6e3:1600))}};return te(),()=>{C=!0,ee.abort(),clearTimeout(j)}},[e,A?.token,kd,_]),(0,H.useEffect)(()=>{if(_!=="chat"||!_e){we("");return}let C=!1,j,ee=new AbortController,te=async()=>{try{let Be=await i("history",{id:_e.id},ee.signal);C||(ta(Be),Z(!0),we(""))}catch(Be){C||we(Be.message)}finally{C||(j=setTimeout(te,1600))}};return te(),()=>{C=!0,ee.abort(),clearTimeout(j)}},[e,_,_e?.id,kd]),(0,H.useEffect)(()=>{if(!Mt)return;let C=!1,j,ee=async()=>{if(!(C||Mt.generation!==M.current)){if(Mt.expiresAt&&Date.now()>=Mt.expiresAt){An("expired"),Dn(null);return}try{let te=await i("pair/status",{requestId:Mt.requestId,pollToken:Mt.pollToken});if(C||Mt.generation!==M.current)return;if(An(te.status),Ce(""),te.status==="approved"&&te.token){let Be={...Mt.context,token:te.token,deviceId:te.deviceId};h(Be),D(Be),Dn(null),J("recent"),Ce("");return}if(te.status==="rejected"||te.status==="expired")return}catch(te){!C&&Mt.generation===M.current&&Ce(te.message)}C||(j=setTimeout(ee,1300))}};return ee(),()=>{C=!0,clearTimeout(j)}},[e,Mt]),(0,H.useEffect)(()=>{_==="chat"&&f.current&&xe.current&&(f.current.scrollTop=f.current.scrollHeight)},[_,_e?.id,Tt.messages]);let ra=async(C,j=ze)=>{if(C?.preventDefault(),P.current||Mt||Pt==="pending"||Pt==="rejected"||Pt==="expired")return;P.current=!0;let ee=++M.current;dt(!0),Ce(""),Dn(null),An("");try{let te={...u(j),name:Yr.trim()||io("",{persist:!e.isPreview})};if(!te.code)throw new Error("\u914D\u5BF9\u5730\u5740\u7F3A\u5C11\u4E00\u6B21\u6027\u914D\u5BF9\u7801");if(!s()&&new URL(te.url).origin!==location.origin)throw new Error("\u8BF7\u6253\u5F00\u8BE5\u4E3B\u673A\u7684 HTTPS \u914D\u5BF9\u9875\u9762");Jl(te.name),h(te);let Be=await i("pair",{code:te.code,name:te.name});if(ee!==M.current)return;Dn({...Be,context:te,generation:ee}),An("pending"),!e.isPreview&&location.hash&&window.history.replaceState(null,"",location.pathname+location.search)}catch(te){ee===M.current&&Ce(te.message)}finally{ee===M.current&&(P.current=!1,dt(!1))}};(0,H.useEffect)(()=>{_!=="pair"||A?.token||!qr||L.current===qr||(L.current=qr,ra(void 0,qr))},[qr,_,A?.token]);let yd=C=>{if(se||ut&&ut.id!==C.id){Ce("\u8BF7\u5148\u91CD\u8BD5\u786E\u8BA4\u4E0A\u4E00\u6761\u6D88\u606F\u7684\u53D1\u9001\u7ED3\u679C\u3002");return}_e&&je.current.set(_e.id,Gr),_e?.id!==C.id&&(y([]),p(null),oo(C),Z(!1),ta({messages:[],interactions:[],running:!1}),ar(je.current.get(C.id)||"")),xe.current=!0,J("chat"),$e(!1),Ce("")},wd=()=>{if(se||ut){Ce("\u8BF7\u5148\u91CD\u8BD5\u786E\u8BA4\u4E0A\u4E00\u6761\u6D88\u606F\u7684\u53D1\u9001\u7ED3\u679C\u3002");return}_e&&je.current.set(_e.id,Gr),ea(cd(be?.projects||[],be?.sessions||[],_e?.projectId)),J("new"),$e(!1),Ce("")},Qm=async C=>{if(C?.preventDefault(),!(!lr||se)){dt(!0),Ce("");try{let j=be?.models?.find(Be=>`${Be.provider}:${Be.model}`===na),ee=`${lr}:${na}`;d.current?.key!==ee&&(d.current={key:ee,requestId:m()});let te=await i("create",{projectId:lr,provider:j?.provider,model:j?.model,requestId:d.current.requestId});d.current=null,oo(te),y([]),p(null),Z(!0),ta({messages:[],interactions:[],running:!1}),ar(""),J("chat"),xe.current=!0,Jr()}catch(j){Ce(j.message)}finally{dt(!1)}}},ia=async(C,j=!1)=>{if(C?.preventDefault(),se||!_e||E.current||!j&&ut)return;let ee=j?ut:{id:_e.id,text:Gr.trim(),requestId:m()};if(ee?.text){dt(!0),Ce(""),ao(ee),j||(ar(""),je.current.delete(ee.id));try{await i("send",ee),ao(null),xe.current=!0,Jr()}catch(te){Ce(`${te.message}\u3002\u53D1\u9001\u7ED3\u679C\u672A\u786E\u8BA4\uFF0C\u91CD\u8BD5\u5C06\u4F7F\u7528\u540C\u4E00\u8BF7\u6C42\u7F16\u53F7\u3002`)}finally{dt(!1)}}},xd=async(C,j={})=>{dt(!0),Ce("");try{await i(C,{id:_e.id,...j}),Jr()}catch(ee){Ce(ee.message)}finally{dt(!1)}},qm=async()=>{dt(!0),Ce(""),xe.current=!1;let C=f.current?.scrollHeight||0,j=f.current?.scrollTop||0;try{let ee=await i("history",{id:_e.id,before:B?.cursor??Tt.cursor});y(te=>[...ee.messages,...te.filter(Be=>!ee.messages.some(aa=>aa.id===Be.id))]),p({cursor:ee.cursor,hasMore:ee.hasMore}),requestAnimationFrame(()=>{f.current&&(f.current.scrollTop=j+f.current.scrollHeight-C)})}catch(ee){Ce(ee.message)}finally{dt(!1)}},Ym=()=>{M.current++,P.current=!1,L.current="",Gl(""),o(),D(null),Dn(null),An(""),or(""),Xl(null),oo(null),d.current=null,ao(null),J("pair"),$e(!1),ar(""),je.current.clear(),Ce(""),dt(!1)},bd=be?.projects?.find(C=>C.id===(_==="chat"?_e?.projectId:lr)),oa=Wr(be?.sessions||[],be?.projects||[],z).filter(C=>!q||C.running),Xr=lo||x||W,la=!jn||x||W?"failed":be?"running":"waiting",Cd=jn?x||W?"\u8FDE\u63A5\u4E2D\u65AD":be?"\u5DF2\u8FDE\u63A5":"\u6B63\u5728\u8FDE\u63A5":"\u7F51\u7EDC\u5DF2\u65AD\u5F00",Sd=(0,k.jsxs)("div",{className:"link-mobile-recovery",children:[(0,k.jsx)(ql,{children:Xr||(jn?"":"\u7F51\u7EDC\u5DF2\u65AD\u5F00\uFF0C\u8BF7\u68C0\u67E5 Wi-Fi \u6216\u79FB\u52A8\u7F51\u7EDC\u3002")}),(0,k.jsx)(ke,{onClick:()=>{Ce(""),Jr()},disabled:se,children:"\u91CD\u65B0\u8FDE\u63A5"})]}),Gm=C=>{M.current++,P.current=!1,Gl(""),Dn(null),An(""),dt(!1),Ce(""),or(C)},Qt=Pt==="pending"||Pt==="approving",sr=se||Qt,Ed=Pt==="rejected"||Pt==="expired",so;try{ze&&(so=u(ze))}catch{}if(_==="pair")return(0,k.jsxs)("main",{ref:w,className:"link-mobile link-mobile-v3 link-mobile-pair","data-theme":K,children:[(0,k.jsxs)("header",{className:"link-mobile-topbar",children:[(0,k.jsx)(O2,{}),(0,k.jsxs)("span",{className:"link-mobile-connection",children:[(0,k.jsx)(Ut,{state:jn?sr?"waiting":"idle":"failed"}),jn?Qt?"\u7B49\u5F85\u7535\u8111\u5141\u8BB8":se?"\u6B63\u5728\u8FDE\u63A5":"\u5C1A\u672A\u8FDE\u63A5":"\u7F51\u7EDC\u5DF2\u65AD\u5F00"]})]}),(0,k.jsxs)("section",{className:"link-mobile-section link-mobile-pair-intro",children:[(0,k.jsx)("h1",{children:"\u8FDE\u63A5\u4F60\u7684\u7535\u8111"}),(0,k.jsx)("p",{children:"\u628A\u684C\u9762\u7684\u9879\u76EE\u548C\u4F1A\u8BDD\uFF0C\u63A5\u5230\u624B\u673A\u4E0A\u3002"})]}),(0,k.jsxs)("section",{className:"link-mobile-pair-card",children:[(0,k.jsx)("div",{className:"link-mobile-pair-symbol",children:(0,k.jsx)(Q,{name:"link",size:28})}),(0,k.jsx)("h2",{children:Qt?"\u8BF7\u5728\u7535\u8111\u4E0A\u5141\u8BB8\u8FDE\u63A5":se?"\u6B63\u5728\u53D1\u9001\u8FDE\u63A5\u8BF7\u6C42\u2026":ze?"\u8FDE\u63A5\u5DE5\u4F5C\u53F0":s()?"\u626B\u7801\u8FDE\u63A5\u5DE5\u4F5C\u53F0":"\u8FDE\u63A5\u684C\u9762\u5DE5\u4F5C\u53F0"}),(0,k.jsx)("p",{children:Qt?"\u8BF7\u6C42\u5DF2\u53D1\u9001\uFF0C\u65E0\u9700\u518D\u6B21\u626B\u7801\u6216\u70B9\u51FB\u8FDE\u63A5\u3002":se?"\u6B63\u5728\u8FDE\u63A5\u7535\u8111\uFF0C\u8BF7\u7A0D\u5019\u3002":ze?"\u626B\u7801\u540E\u81EA\u52A8\u8FDE\u63A5\uFF0C\u4EC5\u9700\u7535\u8111\u786E\u8BA4\u3002":s()?"\u5728\u7535\u8111\u300C\u8FDC\u7A0B\u8FDE\u63A5\u300D\u4E2D\u70B9\u51FB\u300C\u8FDE\u63A5\u624B\u673A\u300D\uFF0C\u518D\u626B\u63CF\u7535\u8111\u4E0A\u7684\u4E8C\u7EF4\u7801\u3002":"\u5728\u7535\u8111\u300C\u8FDC\u7A0B\u8FDE\u63A5\u300D\u4E2D\u70B9\u51FB\u300C\u8FDE\u63A5\u624B\u673A\u300D\uFF0C\u5728\u4E0B\u65B9\u7C98\u8D34\u914D\u5BF9\u7801\u3002"}),(0,k.jsxs)("label",{className:"link-mobile-field",htmlFor:"pair-name",children:[(0,k.jsx)("span",{children:"\u8FD9\u53F0\u8BBE\u5907\u7684\u540D\u79F0"}),(0,k.jsx)("input",{id:"pair-name",autoComplete:"off",maxLength:100,value:Yr,disabled:sr,onChange:C=>Jl(C.target.value),placeholder:"\u6211\u7684\u624B\u673A"})]}),so?.code&&(0,k.jsxs)("div",{className:"link-mobile-pair-details",children:[(0,k.jsx)("span",{children:"\u8FDE\u63A5\u7535\u8111"}),(0,k.jsx)("strong",{children:new URL(so.url).host}),(0,k.jsxs)("label",{className:"link-mobile-field",htmlFor:"pair-code",children:[(0,k.jsx)("span",{children:"\u5DF2\u8BC6\u522B\u914D\u5BF9\u7801"}),(0,k.jsx)("input",{id:"pair-code","aria-label":"\u5DF2\u8BC6\u522B\u914D\u5BF9\u7801",value:so.code,readOnly:!0,onFocus:C=>C.target.select()})]})]}),s()&&!ze&&(0,k.jsxs)("button",{className:"link-mobile-scan-button",onClick:g,disabled:se,children:[(0,k.jsx)(Q,{name:"scan",size:21}),"\u626B\u63CF\u684C\u9762\u4E8C\u7EF4\u7801"]}),(ze||!s())&&!Ed&&(0,k.jsx)(ke,{kind:"primary",onClick:ra,disabled:!ze.trim()||sr,children:se?"\u6B63\u5728\u8FDE\u63A5\u2026":Qt?"\u7B49\u5F85\u7535\u8111\u5141\u8BB8\u2026":lo?"\u91CD\u8BD5\u8FDE\u63A5":"\u8FDE\u63A5\u5DE5\u4F5C\u53F0"}),s()&&ze&&!sr&&(0,k.jsx)(ke,{icon:"scan",onClick:g,children:"\u91CD\u65B0\u626B\u7801"}),Pt&&(0,k.jsxs)("div",{className:"link-mobile-pair-feedback "+(Qt?"":"is-warning"),role:"status",children:[(0,k.jsx)(Ut,{state:Qt?"waiting":Pt==="approved"?"running":"failed"}),(0,k.jsxs)("div",{children:[(0,k.jsx)("strong",{children:Qt?e.isPreview?"\u6A21\u62DF\u8FDE\u63A5\uFF1A\u7B49\u5F85\u6F14\u793A\u6388\u6743":"\u8BF7\u5728\u7535\u8111\u4E0A\u5141\u8BB8\u8FDE\u63A5":Pt==="rejected"?"\u7535\u8111\u672A\u5141\u8BB8\u8FD9\u6B21\u8FDE\u63A5":Pt==="expired"?"\u914D\u5BF9\u7801\u5DF2\u8FC7\u671F":"\u5DF2\u786E\u8BA4"}),(0,k.jsx)("p",{children:Qt?e.isPreview?"\u70B9\u51FB\u672C\u9875\u9876\u90E8\u300C\u6A21\u62DF\u7535\u8111\u5141\u8BB8\u300D\u7EE7\u7EED\uFF0C\u771F\u5B9E\u7535\u8111\u4E0D\u4F1A\u51FA\u73B0\u8BF7\u6C42\u3002":"\u6253\u5F00\u7535\u8111\u7684\u300C\u8FDC\u7A0B\u8FDE\u63A5\u300D\uFF0C\u786E\u8BA4\u8BBE\u5907\u540D\u79F0\u540E\u70B9\u51FB\u300C\u5141\u8BB8\u300D\u3002":"\u8BF7\u5728\u7535\u8111\u4E0A\u751F\u6210\u65B0\u7684\u4E8C\u7EF4\u7801\uFF0C\u518D\u91CD\u65B0\u626B\u7801\u3002"})]})]}),lo&&(0,k.jsx)("div",{className:"link-mobile-pair-feedback is-warning",children:(0,k.jsx)(ql,{children:V2(lo,s()&&!!A?.pin)})})]}),(0,k.jsxs)("details",{className:"link-mobile-backup",open:!s()||void 0,children:[(0,k.jsxs)("summary",{children:["\u4F7F\u7528\u914D\u5BF9\u5730\u5740",(0,k.jsx)(Q,{name:"chevronDown",size:16})]}),(0,k.jsxs)("form",{onSubmit:ra,children:[(0,k.jsxs)("label",{className:"link-mobile-field",htmlFor:"pair-uri",children:[(0,k.jsx)("span",{children:s()?"\u5B8C\u6574\u914D\u5BF9\u5730\u5740":"\u4E00\u6B21\u6027\u914D\u5BF9\u7801\u6216\u5B8C\u6574\u914D\u5BF9\u5730\u5740"}),(0,k.jsx)("textarea",{id:"pair-uri",value:ze,disabled:sr,onChange:C=>Gm(C.target.value),placeholder:s()?"\u7C98\u8D34\u7535\u8111\u590D\u5236\u7684 dshlink://pair?\u2026":"\u7C98\u8D34\u7535\u8111\u63D0\u4F9B\u7684\u914D\u5BF9\u7801\u6216\u94FE\u63A5",rows:"3",spellCheck:"false"})]}),(0,k.jsx)(ke,{type:"submit",disabled:!ze.trim()||sr||Ed,children:"\u4F7F\u7528\u5730\u5740\u8FDE\u63A5"})]})]}),(0,k.jsxs)("div",{className:"link-mobile-network-note",children:[(0,k.jsx)(Q,{name:"check",size:17}),(0,k.jsx)("p",{children:s()?"\u624B\u673A\u4E0E\u7535\u8111\u5728\u540C\u4E00 Wi-Fi \u4E0B\u53EF\u76F4\u63A5\u8FDE\u63A5\uFF0C\u65E0\u9700\u516C\u7F51\u3002\u4E0D\u540C\u7F51\u7EDC\u9700\u4F7F\u7528\u53EF\u8BBF\u95EE\u7684 HTTPS \u5730\u5740\u3002":"\u5F53\u524D\u901A\u8FC7 HTTPS \u8FDE\u63A5\u5DE5\u4F5C\u53F0\u3002\u6D4F\u89C8\u5668\u4F7F\u7528\u7535\u8111\u63D0\u4F9B\u7684\u540C\u6E90\u914D\u5BF9\u9875\uFF1BAndroid App \u4E5F\u53EF\u5728\u540C\u4E00 Wi-Fi \u5185\u76F4\u8FDE\u3002"})]})]});let Jm=C=>{if($e(!1),!se){if(ut){Ce("\u8BF7\u5148\u91CD\u8BD5\u786E\u8BA4\u4E0A\u4E00\u6761\u6D88\u606F\u7684\u53D1\u9001\u7ED3\u679C\uFF0C\u518D\u5207\u6362\u9875\u9762\u3002");return}J(C)}},Xm=be?.sessions?.find(C=>C.id===_e?.id)||_e,e0=_==="chat"?Xm?.title||"\u65B0\u4F1A\u8BDD":_==="new"?"\u65B0\u4F1A\u8BDD":_==="connection"?"\u8FDE\u63A5\u7BA1\u7406":"\u6700\u8FD1",t0=_==="chat"?(bd?.name||"\u5DE5\u4F5C\u533A")+(Tt.running?" \xB7 \u6B63\u5728\u5904\u7406":""):be?.host?.name||"BenchGo";return(0,k.jsxs)("main",{ref:w,className:"link-mobile link-mobile-v3 link-mobile-shell"+(_==="chat"?" link-mobile-chat":""),"data-theme":K,children:[(0,k.jsxs)("div",{className:"link-app-content",inert:re?"":void 0,"aria-hidden":re||void 0,children:[(0,k.jsxs)("header",{className:"link-app-header",children:[(0,k.jsx)("button",{className:"link-mobile-icon-button","aria-label":"\u6253\u5F00\u4FA7\u8FB9\u680F","aria-controls":"link-mobile-sidebar","aria-expanded":re,onClick:()=>$e(!0),children:(0,k.jsx)(Q,{name:"collapse",className:"link-sidebar-open-icon",size:22})}),(0,k.jsxs)("div",{className:"link-app-heading",children:[(0,k.jsx)("strong",{children:e0}),(0,k.jsxs)("small",{children:[(0,k.jsx)(Ut,{state:la}),t0]})]}),(0,k.jsx)("button",{className:"link-mobile-icon-button","aria-label":"\u65B0\u5EFA\u4F1A\u8BDD",onClick:wd,disabled:se||!!ut,children:(0,k.jsx)(Q,{name:"edit",size:21})})]}),_==="chat"&&_e?(0,k.jsxs)("div",{className:"link-chat-body",children:[(0,k.jsxs)("div",{className:"link-messages",ref:f,"aria-live":"polite",onScroll:C=>{let j=C.currentTarget;xe.current=j.scrollHeight-j.scrollTop-j.clientHeight<90},children:[Tt.truncated&&(0,k.jsx)("p",{className:"link-empty",children:"\u8FD9\u91CC\u53EA\u4FDD\u7559\u6700\u8FD1\u7684\u539F\u751F\u4E8B\u4EF6\uFF0C\u5B8C\u6574\u8BB0\u5F55\u8BF7\u5728\u7535\u8111\u4E2D\u67E5\u770B\u3002"}),(B?.hasMore??Tt.hasMore)&&(0,k.jsx)(ke,{disabled:se,onClick:qm,children:"\u52A0\u8F7D\u66F4\u65E9\u7684\u6D88\u606F"}),!U&&!Xr&&(0,k.jsxs)("div",{className:"link-list-skeleton",role:"status","aria-label":"\u6B63\u5728\u8BFB\u53D6\u4F1A\u8BDD",children:[(0,k.jsx)("span",{}),(0,k.jsx)("span",{})]}),U&&!Tt.messages?.length&&(0,k.jsx)(ud,{title:"\u4ECE\u4E00\u4E2A\u60F3\u6CD5\u5F00\u59CB",children:"\u63CF\u8FF0\u4F60\u7684\u76EE\u6807\uFF0C\u7535\u8111\u4F1A\u63A5\u7740\u5904\u7406\u3002"}),[...b.filter(C=>!Tt.messages?.some(j=>j.id===C.id)),...Tt.messages||[]].map((C,j)=>(0,k.jsxs)("article",{className:"link-message link-message-"+C.role,children:[(0,k.jsx)("span",{children:C.role==="user"?"\u4F60":C.role==="assistant"?"Harness":C.role}),(0,k.jsx)("p",{children:C.text})]},C.id||j)),Tt.interactions?.map(C=>(0,k.jsx)(Nm,{interaction:C,disabled:se,onRespond:j=>xd("respond",{interactionId:C.id,answer:j})},C.id)),Tt.running&&(0,k.jsxs)("p",{className:"link-chat-working",role:"status",children:[(0,k.jsx)(Ut,{state:"running"}),"\u7535\u8111\u6B63\u5728\u5904\u7406\u2026"]})]}),ut&&!se&&(0,k.jsxs)("div",{className:"link-send-pending",role:"status",children:[(0,k.jsxs)("span",{children:["\u4E0A\u4E00\u6761\u6D88\u606F\u7684\u53D1\u9001\u7ED3\u679C\u672A\u786E\u8BA4\u3002",(0,k.jsx)("small",{className:"link-send-pending-text",children:ut.text})]}),(0,k.jsx)(ke,{disabled:se,onClick:()=>ia(null,!0),children:"\u91CD\u8BD5\u539F\u8BF7\u6C42"})]}),(Xr||!jn)&&Sd,(0,k.jsxs)("form",{className:"link-composer",onSubmit:ia,children:[(0,k.jsx)("textarea",{"aria-label":"\u6D88\u606F\u5185\u5BB9",value:Gr,onChange:C=>ar(C.target.value),placeholder:"\u7EE7\u7EED\u4F60\u7684\u60F3\u6CD5\u2026",rows:"2",onCompositionStart:()=>{E.current=!0},onCompositionEnd:()=>{E.current=!1},onBlur:()=>{E.current=!1},onKeyDown:C=>{C.key==="Enter"&&(C.ctrlKey||C.metaKey)&&!C.nativeEvent.isComposing&&C.keyCode!==229&&ia(C)}}),(0,k.jsxs)("div",{className:"link-composer-footer",children:[(0,k.jsx)("small",{children:e.isPreview?"\u6F14\u793A\u56DE\u590D \xB7 \u4E0D\u8C03\u7528\u6A21\u578B":bd?.name||"\u5728\u7535\u8111\u4E0A\u6267\u884C"}),Tt.running&&(0,k.jsx)(ke,{disabled:se,onClick:()=>xd("cancel"),children:"\u505C\u6B62"}),(0,k.jsx)("button",{className:"link-send-button","aria-label":se?"\u6B63\u5728\u53D1\u9001":"\u53D1\u9001\u6D88\u606F",type:"submit",disabled:se||!!ut||!Gr.trim(),children:(0,k.jsx)(Q,{name:"chevronLeft",className:"link-send-arrow",size:20})})]})]})]}):(0,k.jsxs)("div",{className:"link-app-body",children:[_==="connection"?(0,k.jsxs)("section",{className:"link-connection-page",children:[(0,k.jsxs)("div",{className:"link-page-title",children:[(0,k.jsx)("h1",{children:"\u8FDE\u63A5\u7BA1\u7406"}),(0,k.jsx)("p",{children:"\u67E5\u770B\u8FD9\u53F0\u624B\u673A\u8FDE\u63A5\u7684\u5DE5\u4F5C\u53F0\u3002"})]}),(0,k.jsxs)("section",{className:"link-mobile-host-card",children:[(0,k.jsx)(Q,{name:"link",size:23}),(0,k.jsxs)("div",{children:[(0,k.jsx)("h2",{children:be?.host?.name||"\u6211\u7684\u5DE5\u4F5C\u53F0"}),(0,k.jsxs)("span",{children:[(0,k.jsx)(Ut,{state:la}),Cd]})]})]}),(0,k.jsxs)("dl",{className:"link-mobile-connection-details",children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("dt",{children:"\u8BBE\u5907\u540D\u79F0"}),(0,k.jsx)("dd",{children:A?.name||Yr||"\u6211\u7684\u624B\u673A"})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("dt",{children:"\u8FDE\u63A5\u5730\u5740"}),(0,k.jsx)("dd",{children:e.isPreview?"\u6F14\u793A\u5DE5\u4F5C\u53F0 \xB7 \u672C\u5730\u6A21\u62DF":A?.url||"\u5F53\u524D\u5DE5\u4F5C\u53F0"})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("dt",{children:"\u8FDE\u63A5\u65B9\u5F0F"}),(0,k.jsx)("dd",{children:e.isPreview?"\u754C\u9762\u9884\u89C8":s()?"Android Link App":"HTTPS \u6D4F\u89C8\u5668"})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)("dt",{children:"\u5916\u89C2"}),(0,k.jsx)("dd",{children:(0,k.jsx)("button",{className:"link-filter",onClick:()=>me(C=>C==="light"?"dark":"light"),children:K==="dark"?"\u6DF1\u8272 \xB7 \u5207\u6362\u6D45\u8272":"\u6D45\u8272 \xB7 \u5207\u6362\u6DF1\u8272"})})]})]}),(0,k.jsxs)("div",{className:"link-mobile-connection-actions",children:[(0,k.jsx)(ke,{icon:"refresh",onClick:()=>{Ce(""),Jr()},disabled:se,children:"\u5237\u65B0\u8FDE\u63A5"}),(0,k.jsx)(ke,{onClick:Ym,disabled:se||!!ut,children:"\u65AD\u5F00\u5E76\u91CD\u65B0\u914D\u5BF9"})]}),(0,k.jsx)("p",{className:"link-mobile-footnote",children:"\u65AD\u5F00\u53EA\u6E05\u9664\u8FD9\u53F0\u624B\u673A\u7684\u8FDE\u63A5\u4FE1\u606F\uFF0C\u7535\u8111\u4E2D\u7684\u9879\u76EE\u548C\u4F1A\u8BDD\u4F1A\u4FDD\u7559\u3002"})]}):_==="new"?(0,k.jsxs)("section",{className:"link-new-session",children:[(0,k.jsxs)("div",{className:"link-page-title",children:[(0,k.jsx)("span",{className:"link-new-mark",children:(0,k.jsx)(Q,{name:"edit",size:27})}),(0,k.jsx)("h1",{children:"\u63A5\u4E0B\u6765\uFF0C\u505A\u70B9\u4EC0\u4E48\uFF1F"}),(0,k.jsx)("p",{children:"\u9009\u597D\u5DE5\u4F5C\u4F4D\u7F6E\uFF0C\u5C31\u53EF\u4EE5\u5F00\u59CB\u65B0\u7684\u4F1A\u8BDD\u3002"})]}),(0,k.jsxs)("form",{className:"link-new-form",onSubmit:Qm,children:[(0,k.jsxs)("label",{className:"link-mobile-field",children:[(0,k.jsx)("span",{children:"\u5DE5\u4F5C\u4F4D\u7F6E"}),(0,k.jsxs)(Ft,{"aria-label":"\u5DE5\u4F5C\u4F4D\u7F6E",value:lr,onChange:C=>{d.current=null,ea(C.target.value)},disabled:se||!be?.projects?.length,children:[!be?.projects?.length&&(0,k.jsx)("option",{value:"",children:"\u6682\u65E0\u53EF\u7528\u9879\u76EE"}),be?.projects?.map(C=>(0,k.jsx)("option",{value:C.id,children:C.name},C.id))]})]}),(0,k.jsxs)("label",{className:"link-mobile-field",children:[(0,k.jsx)("span",{children:"\u6A21\u578B"}),(0,k.jsxs)(Ft,{"aria-label":"\u9009\u62E9\u6A21\u578B",value:na,onChange:C=>{d.current=null,Wm(C.target.value)},disabled:se,children:[(0,k.jsx)("option",{value:"",children:"\u4F7F\u7528\u7535\u8111\u9ED8\u8BA4\u6A21\u578B"}),be?.models?.map(C=>(0,k.jsx)("option",{value:C.provider+":"+C.model,children:C.label||C.model},C.provider+":"+C.model))]})]}),be&&!be.projects?.length&&(0,k.jsx)("p",{className:"link-empty",children:"\u5148\u5728\u7535\u8111\u6DFB\u52A0\u4E00\u4E2A\u9879\u76EE\uFF0C\u9879\u76EE\u4F1A\u81EA\u52A8\u51FA\u73B0\u5728\u8FD9\u91CC\u3002"}),(0,k.jsx)("p",{className:"link-mobile-footnote",children:"\u81EA\u52A8\u4F7F\u7528\u6700\u8FD1\u7684\u5DE5\u4F5C\u4F4D\u7F6E\u3002\u6D88\u606F\u4E0E\u4EFB\u52A1\u4ECD\u7531\u7535\u8111\u6267\u884C\u3002"}),(0,k.jsxs)("button",{className:"link-primary-action",type:"submit",disabled:se||!lr,children:[se?"\u6B63\u5728\u521B\u5EFA\u2026":"\u5F00\u59CB\u4F1A\u8BDD",(0,k.jsx)(Q,{name:"plus",size:18})]})]})]}):(0,k.jsxs)("section",{className:"link-recents",children:[(0,k.jsxs)("div",{className:"link-page-title",children:[(0,k.jsx)("h1",{children:"\u6700\u8FD1"}),(0,k.jsx)("p",{children:"\u63A5\u7740\u4E0A\u6B21\u7684\u60F3\u6CD5\uFF0C\u7EE7\u7EED\u5F80\u524D\u3002"})]}),(0,k.jsx)(dd,{value:z,onChange:ie}),(0,k.jsxs)("div",{className:"link-recent-summary",children:[(0,k.jsx)("span",{children:z?oa.length+" \u4E2A\u641C\u7D22\u7ED3\u679C":"\u6240\u6709\u9879\u76EE\u7684\u4F1A\u8BDD"}),(0,k.jsxs)("button",{className:"link-filter","aria-pressed":q,onClick:()=>X(C=>!C),children:[(0,k.jsx)(Ut,{state:q?"running":"idle"}),"\u8FD0\u884C\u4E2D",be?.sessions?.some(C=>C.running)?" "+be.sessions.filter(C=>C.running).length:""]})]}),!be&&!Xr?(0,k.jsxs)("div",{className:"link-list-skeleton",role:"status","aria-label":"\u6B63\u5728\u8BFB\u53D6\u6700\u8FD1\u4F1A\u8BDD",children:[(0,k.jsx)("span",{}),(0,k.jsx)("span",{}),(0,k.jsx)("span",{})]}):oa.length?(0,k.jsx)(pd,{sessions:oa,projects:be?.projects,selectedId:_e?.id,onChoose:yd,disabled:se||!!ut}):be?(0,k.jsx)(ud,{title:z?"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u4F1A\u8BDD":q?"\u6682\u65F6\u6CA1\u6709\u8FD0\u884C\u4E2D\u7684\u4F1A\u8BDD":"\u4ECE\u8FD9\u91CC\u5F00\u59CB\u65B0\u7684\u60F3\u6CD5",children:z?"\u6362\u4E2A\u5173\u952E\u8BCD\uFF0C\u6216\u641C\u7D22\u9879\u76EE\u540D\u79F0\u3002":q?"\u7535\u8111\u6B63\u5728\u5904\u7406\u7684\u4F1A\u8BDD\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002":"\u53F3\u4E0A\u89D2\u65B0\u5EFA\u4F1A\u8BDD\uFF0C\u968F\u65F6\u4ECE\u624B\u673A\u63A5\u4E0A\u8FDB\u5EA6\u3002"}):null]}),(Xr||!jn)&&Sd]})]}),re&&(0,k.jsx)(Lm,{state:be,screen:_,selectedId:_e?.id,onChoose:yd,onNavigate:Jm,onNew:wd,onClose:Te,connectionLabel:Cd,connectionState:la,theme:K,onTheme:()=>me(C=>C==="light"?"dark":"light"),disabled:se||!!ut})]})}function O2(){return(0,k.jsxs)("div",{className:"link-mobile-brand",children:[(0,k.jsx)(Kr,{size:28,decorative:!0}),(0,k.jsx)("span",{children:"BenchGo"})]})}function V2(e,t){return/[\u3400-\u9fff]/.test(e)||!/failed to connect|timeout|timed out|unreachable/i.test(e)?e:t?"\u6682\u65F6\u65E0\u6CD5\u8FDE\u63A5\u7535\u8111\u3002\u8BF7\u786E\u8BA4\u624B\u673A\u548C\u7535\u8111\u5728\u540C\u4E00 Wi-Fi\uFF0C\u7535\u8111\u5DF2\u5F00\u542F Link\uFF1B\u68C0\u67E5\u9632\u706B\u5899\u540E\u53EF\u91CD\u65B0\u8FDE\u63A5\u3002":"\u6682\u65F6\u65E0\u6CD5\u8FDE\u63A5\u5DE5\u4F5C\u53F0\u3002\u8BF7\u786E\u8BA4 HTTPS \u5730\u5740\u53EF\u4ECE\u624B\u673A\u8BBF\u95EE\uFF0C\u5E76\u68C0\u67E5\u670D\u52A1\u72B6\u6001\u3001\u57DF\u540D\u8BC1\u4E66\u4E0E\u7F51\u7EDC\u8F6C\u53D1\u540E\u91CD\u8BD5\u3002"}var T=$(We(),1);var Dm=()=>!!(globalThis.__DSH_DEVICE_CENTER__||Nt()&&an()?.capabilities?.devices),fd={bootstrap:an,isNative:Nt,scan:Pc,contextUri:Bc,hostCall(e,t={}){let n={relayConfigure:"hostRelayConfigure",relayPoolConfigure:"hostRelayPoolConfigure",hostRelayPoolConfigure:"hostRelayPoolConfigure",status:"hostStatus",hostStatus:"hostStatus",configure:"hostConfigure",pairing:"hostPairing",confirm:"hostConfirm",reject:"hostReject",revoke:"hostRevoke"};return n[e]?fd.call(n[e],t):Promise.reject(new Error("\u5F53\u524D\u8BBE\u5907\u4E2D\u5FC3\u4E0D\u652F\u6301\u6B64\u9AD8\u7EA7\u8BBE\u7F6E\uFF0C\u8BF7\u5728\u4E3B\u673A\u8BBE\u7F6E\u4E2D\u64CD\u4F5C"))},clientName:()=>Nt()?io():"\u8FD9\u53F0\u7535\u8111",async call(e,t={}){if(Nt())return _c(e,t);let n=await fetch(new URL("api/devices",document.baseURI),{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({...t,action:e})}),r=await n.json().catch(()=>({}));if(!n.ok||r.error)throw new Error(r.error||`\u8BBE\u5907\u670D\u52A1\u8FD4\u56DE HTTP ${n.status}`);return r}};function Am(e,t){if(!["dsh-devices:ready","dsh-devices:show","dsh-devices:unready"].includes(e.data?.type))return null;let n=t.find(r=>r.window===e.source&&new URL(r.url).origin===e.origin);return n?{id:n.id,type:e.data.type}:null}var jm=`.dc-root{--dc-paper:#fafbfc;--dc-panel:#f0f2f5;--dc-line:#e3e7ed;--dc-ink:#202936;--dc-muted:#75808e;--dc-accent:#2c6ee8;--dc-soft:#eaf0fc;--dc-error:#b34845;display:flex;flex-direction:column;min-height:100dvh;height:100dvh;background:var(--dc-paper);color:var(--dc-ink);font:14px/1.5 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden;color-scheme:light dark}
|
|
509
|
+
.dc-root *{box-sizing:border-box;scrollbar-width:none}.dc-root *::-webkit-scrollbar{display:none}.dc-root [hidden]{display:none!important}.dc-root :is(button,input,textarea,.dowork-select){font:inherit}.dc-root :is(button,input,textarea,.dowork-select):focus-visible{outline:none;box-shadow:none}
|
|
510
|
+
html .dc-root{--dc-paper:var(--dsh-conversation-background,#fff)}
|
|
511
|
+
html[data-dsh-device-theme=dark] .dc-root{--dc-paper:var(--dsh-conversation-background,#151517)}
|
|
512
|
+
.dc-root .dc-field .dowork-select{display:flex;align-items:center;justify-content:space-between}
|
|
513
|
+
.dc-root .dowork-select-value{flex:1;min-width:0}.dc-root .dowork-select-chevron{display:block;flex:none}
|
|
514
|
+
html[data-dsh-device-theme] .link-dialog-backdrop{--link-paper:var(--dsh-conversation-background,#fff)}
|
|
515
|
+
html[data-dsh-device-theme=dark] .link-dialog-backdrop{--link-paper:var(--dsh-conversation-background,#151517)}
|
|
516
|
+
html[data-dsh-device-theme] :is(.dowork-select-options,.link-dialog){scrollbar-width:none}
|
|
517
|
+
html[data-dsh-device-theme] :is(.dowork-select-options,.link-dialog)::-webkit-scrollbar{display:none}
|
|
518
|
+
.dc-root .cmd-ui-icon{display:inline-flex;flex:none;line-height:0;vertical-align:middle}.dc-root .cmd-ui-linear{display:inline-flex;width:100%;height:100%}.dc-root .cmd-ui-bold{display:none}.dc-root .cmd-ui-icon svg{display:block;width:100%;height:100%}
|
|
519
|
+
.dc-topbar{display:flex;align-items:center;justify-content:space-between;flex:none;flex-wrap:nowrap;gap:12px;min-height:52px;padding:8px max(20px,env(safe-area-inset-right)) 8px max(20px,env(safe-area-inset-left));border-bottom:1px solid var(--dc-line);background:var(--dc-paper)}.dc-topbar-main{display:flex;align-items:center;flex:none;flex-wrap:nowrap;gap:6px;min-width:0}.dc-back{gap:0;min-height:30px;padding:6px;border-color:transparent;background:transparent}.dc-back:hover:not(:disabled){background:var(--dc-panel)}
|
|
520
|
+
.dc-segment{display:inline-grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none;gap:2px;padding:2px;border:1px solid var(--dc-line);border-radius:9px;background:var(--dc-panel)}.dc-segment-tab{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:68px;min-height:28px;padding:4px 10px;border:0;border-radius:7px;background:transparent;color:var(--dc-muted);font-size:12px;font-weight:550;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}.dc-segment-tab:hover{color:var(--dc-ink)}.dc-segment-tab.is-active{color:var(--dc-ink);background:var(--dc-paper);box-shadow:0 1px 3px #0000000d}.dc-topbar-workbench{display:flex;align-items:center;gap:6px;min-width:0;margin-left:auto;max-width:46%}.dc-topbar-workbench>.dc-button:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dc-topbar-workbench>.dc-button:last-child{padding:8px;border-color:transparent;background:transparent}
|
|
521
|
+
|
|
522
|
+
.dc-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid var(--dc-line);border-radius:9px;background:var(--dc-paper);color:var(--dc-ink);font-size:12px!important;line-height:1.25;cursor:pointer;transition:background .15s,border-color .15s}.dc-button:hover:not(:disabled){background:var(--dc-panel);border-color:color-mix(in srgb,var(--dc-muted),transparent 50%)}.dc-button:disabled{opacity:.5;cursor:default}.dc-primary{border-color:var(--dc-accent);background:var(--dc-accent);color:white}.dc-primary:hover:not(:disabled){border-color:var(--dc-accent);background:color-mix(in srgb,var(--dc-accent),black 9%)}.dc-danger{color:var(--dc-error)}
|
|
523
|
+
.dc-surface{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.dc-content{width:min(820px,100%);padding:52px 32px max(36px,env(safe-area-inset-bottom));margin:0 auto}.dc-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:38px}.dc-eyebrow{display:block;margin-bottom:11px;color:var(--dc-muted);font-size:10px;font-weight:600;letter-spacing:.12em}.dc-heading h1{margin:0 0 9px;font-size:30px;font-weight:600;letter-spacing:-.045em;line-height:1.2}.dc-heading p,.dc-note{margin:0;color:var(--dc-muted);font-size:12px;line-height:1.7}.dc-heading-actions{display:flex;align-items:center;gap:8px;flex:none}.dc-heading-actions>.dc-button:first-child{padding:9px}.dc-heading-actions>.dc-primary{padding:10px 14px}.dc-add-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.dc-loading{display:flex;align-items:center;gap:8px;margin:20px 0}.dc-tab-panel{min-width:0}.dc-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:5px;padding:0 6px;border-radius:6px;background:var(--dc-panel);color:var(--dc-muted);font-size:10px;font-weight:500;vertical-align:middle}
|
|
524
|
+
|
|
525
|
+
.dc-device-list{display:grid;gap:10px}.dc-device{display:flex;align-items:center;gap:4px;padding-right:10px;border:1px solid var(--dc-line);border-radius:14px;background:var(--dc-paper);transition:border-color .15s,background .15s}.dc-device:hover{border-color:color-mix(in srgb,var(--dc-muted),transparent 45%)}.dc-device.dc-selected{border-color:var(--dc-accent);background:var(--dc-soft)}.dc-device-open{display:flex;align-items:center;gap:13px;min-width:0;flex:1;align-self:stretch;padding:20px 18px;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left;cursor:pointer}.dc-device-open:disabled{cursor:wait;opacity:.6}.dc-device-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--dc-line);border-radius:12px;background:var(--dc-panel);color:var(--dc-muted)}.dc-device-copy{display:grid;gap:4px;min-width:0;flex:1}.dc-device-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}.dc-device-copy small{color:var(--dc-muted);font-size:11px}.dc-device-open>.cmd-ui-icon{color:var(--dc-muted)}.dc-device>.dc-button{padding:8px;border:0;background:transparent}.dc-device-error{font-size:11px;color:var(--dc-error);overflow-wrap:anywhere}.dc-device [data-status=online],.dc-device [data-status=connected]{color:#288665}
|
|
526
|
+
.dc-empty{display:grid;justify-items:center;gap:12px;padding:48px 20px;border:1px dashed var(--dc-line);border-radius:16px;text-align:center}.dc-empty-symbol{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--dc-line);border-radius:19px;background:var(--dc-paper);color:var(--dc-muted);box-shadow:0 5px 16px #00000004}.dc-empty>.dc-button{margin-top:8px}.dc-empty h2{margin:10px 0 0;font-size:18px;font-weight:550}.dc-empty p{margin:0;color:var(--dc-muted);font-size:12px}.dc-footnote{margin:14px 0 0;color:var(--dc-muted);font-size:11px;line-height:1.65}.dc-bottom-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:32px 0 0;font-size:11px}.dc-error{margin:14px 0;color:var(--dc-error);font-size:12px;line-height:1.65;overflow-wrap:anywhere}
|
|
527
|
+
.dc-workbenches{position:relative;min-height:0;flex:1}.dc-workbenches iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:var(--dc-paper)}.dc-workbench-error{padding:12px 20px;border-top:1px solid var(--dc-line)}
|
|
528
|
+
.dc-backdrop{position:fixed;z-index:100;inset:0;display:flex;align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#111b2870;backdrop-filter:blur(5px)}.dc-sheet{width:min(480px,100%);max-height:100%;min-width:0;overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid var(--dc-line);border-radius:18px;background:var(--dc-paper);box-shadow:0 18px 70px #0002}.dc-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.dc-sheet h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.03em;overflow-wrap:anywhere}.dc-sheet>header>.dc-button{min-height:30px;padding:6px;border:0}.dc-sheet>.dc-note{margin-bottom:18px}
|
|
529
|
+
.dc-field{display:grid;gap:7px;min-width:0;color:var(--dc-ink);font-size:12px}.dc-field>span{font-weight:550}.dc-field :is(input,textarea,.dowork-select){display:block;width:100%;min-width:0;padding:10px 11px;border:1px solid var(--dc-line);border-radius:8px;outline:none;background:var(--dc-panel);color:var(--dc-ink);font-size:13px;line-height:1.5}.dc-field textarea{resize:vertical;min-height:82px;max-height:220px}.dc-field :is(input,textarea,.dowork-select):focus{border-color:var(--dc-accent)}.dc-form-grid{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:14px 12px}.dc-field-full{grid-column:1/-1}.dc-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:18px}
|
|
530
|
+
.dc-fingerprint,.dc-confirm{margin-top:18px;padding:14px;border:1px solid var(--dc-line);border-radius:10px;background:var(--dc-panel);font-size:12px}.dc-fingerprint code{display:block;margin:9px 0;font:11px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;color:var(--dc-accent)}.dc-fingerprint p,.dc-confirm p{margin:0;color:var(--dc-muted);line-height:1.65}.dc-confirm .dc-button{margin:12px 6px 0 0}
|
|
531
|
+
.dc-job ol{display:grid;gap:15px;list-style:none;padding:0;margin:22px 0}.dc-job li{display:flex;align-items:flex-start;gap:10px;color:var(--dc-muted);font-size:12px}.dc-step-icon{display:grid;place-items:center;flex:none;width:23px;height:23px;border:1px solid var(--dc-line);border-radius:50%;font-size:10px}.dc-job li[data-state=running],.dc-job li[data-state=active]{color:var(--dc-accent)}.dc-job li[data-state=done],.dc-job li[data-state=completed],.dc-job li[data-state=success]{color:#288665}.dc-job li[data-state=failed],.dc-job li[data-state=error]{color:var(--dc-error)}.dc-job li small{display:block;margin-top:4px;color:var(--dc-muted);font-size:11px;overflow-wrap:anywhere}
|
|
532
|
+
.dc-progress-message{display:flex;align-items:center;gap:8px;margin:18px 0 0;color:var(--dc-muted);font-size:12px}.dc-spinner{display:inline-block;flex:none;width:14px;height:14px;border:1.5px solid var(--dc-line);border-top-color:var(--dc-accent);border-radius:50%;animation:dc-spin .8s linear infinite}.dc-relay-edit{display:flex;flex:1;flex-wrap:wrap;gap:7px;align-items:center;padding:12px}.dc-relay-edit input{min-width:240px;flex:1}.dc-management,.dc-remove{margin-top:22px;padding-top:18px;border-top:1px solid var(--dc-line)}.dc-sheet h3{margin:0 0 12px;font-size:13px;font-weight:600}.dc-service-actions{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}.dc-management>form{margin-top:16px}.dc-remove>.dc-note{margin-bottom:12px}.dc-result{max-height:240px;padding:12px;overflow:auto;border:1px solid var(--dc-line);border-radius:9px;background:var(--dc-panel);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dc-ink);font:11px/1.6 ui-monospace,monospace}
|
|
533
|
+
@keyframes dc-spin{to{transform:rotate(360deg)}}
|
|
534
|
+
html[data-dsh-device-theme=dark] .dc-root{--dc-paper:var(--dsh-conversation-background,#151517);--dc-panel:#202628;--dc-line:#30383b;--dc-ink:#edf2f0;--dc-muted:#a0abab;--dc-accent:#8bb3ff;--dc-soft:#243653;--dc-error:#f0928d;color-scheme:dark}
|
|
535
|
+
html[data-dsh-device-theme=dark] .dc-primary{color:#10213e}html[data-dsh-device-theme=dark] :is(.dc-device [data-status=online],.dc-device [data-status=connected],.dc-job li[data-state=done],.dc-job li[data-state=completed],.dc-job li[data-state=success]){color:#7dc9a6}
|
|
536
|
+
html[data-dsh-device-theme=light] .dc-root{color-scheme:light}
|
|
537
|
+
@media(prefers-color-scheme:dark){html:not([data-dsh-device-theme]) .dc-root{--dc-paper:var(--dsh-conversation-background,#151517);--dc-panel:#202628;--dc-line:#30383b;--dc-ink:#edf2f0;--dc-muted:#a0abab;--dc-accent:#8bb3ff;--dc-soft:#243653;--dc-error:#f0928d;color-scheme:dark}html:not([data-dsh-device-theme]) .dc-primary{color:#10213e}html:not([data-dsh-device-theme]) :is(.dc-device [data-status=online],.dc-device [data-status=connected],.dc-job li[data-state=done],.dc-job li[data-state=completed],.dc-job li[data-state=success]){color:#7dc9a6}}
|
|
538
|
+
|
|
539
|
+
@media(max-width:580px){.dc-topbar{flex-wrap:nowrap;min-height:48px;padding:max(8px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left));gap:8px}.dc-topbar-main{flex-wrap:nowrap}.dc-segment-tab{min-width:60px;padding:4px 8px}.dc-content{padding:32px 20px max(28px,env(safe-area-inset-bottom))}.dc-heading{align-items:flex-start;flex-wrap:wrap;gap:18px;margin-bottom:30px}.dc-heading h1{font-size:28px}.dc-heading-actions{margin-left:auto;align-self:flex-end}.dc-heading-actions>.dc-button{min-height:36px}.dc-device-open{padding:17px 13px;gap:11px}.dc-device-symbol{width:40px;height:40px}.dc-sheet{padding:20px;border-radius:17px;max-height:calc(100dvh - 32px)}.dc-backdrop{align-items:flex-end}.dc-topbar-workbench{max-width:42%}.dc-topbar-workbench>.dc-button:first-child{max-width:100%;font-size:11px!important}.dc-empty{padding:34px 14px}}
|
|
540
|
+
@media(max-width:380px){.dc-topbar{padding-right:12px;padding-left:12px}.dc-segment-tab{min-width:52px;padding-right:7px;padding-left:7px;gap:4px}.dc-topbar-workbench>.dc-button:first-child{max-width:96px}.dc-topbar-workbench>.dc-button:last-child{padding:4px}.dc-content{padding-right:16px;padding-left:16px}.dc-heading-actions{margin-left:0}}
|
|
541
|
+
|
|
542
|
+
@media(prefers-reduced-motion:reduce){.dc-spinner{animation:none}.dc-root *{transition:none!important}}
|
|
543
|
+
|
|
544
|
+
@media(max-width:767px){.dc-topbar.dc-topbar-integrated{display:none}}
|
|
545
|
+
.dc-current-device,.dc-connection-panel{margin-bottom:32px}.dc-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 13px}.dc-section-heading h2{margin:0;font-size:12px;font-weight:600}.dc-section-heading>span{color:var(--dc-muted);font-size:11px}.dc-root .dc-tab-panel>.link-settings{--link-paper:var(--dc-paper);--link-panel:var(--dc-panel);--link-ink:var(--dc-ink);--link-muted:var(--dc-muted);--link-faint:var(--dc-line);--link-accent:var(--dc-accent);--link-accent-soft:var(--dc-soft);--link-danger:var(--dc-error);max-width:none;padding:0}.dc-tab-panel>.link-settings .link-status-panel{margin-top:0;padding:23px 24px;background:var(--dc-paper)}.dc-tab-panel>.link-settings .link-panel-head h3{margin:0 0 8px;font-size:15px;font-weight:600}.dc-tab-panel>.link-settings .link-pair-row{margin-top:30px;padding:0 2px 26px}.dc-tab-panel>.link-settings .link-pair-row h3{font-size:16px;font-weight:600}.dc-tab-panel>.link-settings .link-advanced{margin:28px 0}.dc-tab-panel>.link-settings .link-device-list{padding:23px 24px;background:var(--dc-paper)}.dc-other-devices{margin-top:0}
|
|
546
|
+
@media(max-width:580px){.dc-section-heading{align-items:baseline;gap:8px}.dc-section-heading>span{font-size:10px}.dc-current-device,.dc-connection-panel{margin-bottom:28px}.dc-tab-panel>.link-settings .link-status-panel,.dc-tab-panel>.link-settings .link-device-list{padding:19px}.dc-tab-panel>.link-settings .link-pair-row{gap:15px;margin-top:25px}.dc-tab-panel>.link-settings .link-pair-row>.link-button{width:100%}}
|
|
547
|
+
|
|
548
|
+
.dc-relay-success{padding:16px;border:1px solid var(--dc-line);border-radius:10px;background:var(--dc-panel);font-size:13px}.dc-relay-success>code{display:block;margin:10px 0;overflow-wrap:anywhere;color:var(--dc-accent);font-size:12px}.dc-relay-pairing{margin-top:20px;padding-top:16px;border-top:1px solid var(--dc-line)}
|
|
549
|
+
.dc-relay-tabs{display:flex;gap:8px;margin:0 0 20px;padding-bottom:14px;border-bottom:1px solid var(--dc-line)}.dc-relay-tabs .dc-button{min-width:76px}.dc-manual-deploy code{display:block;margin-top:10px;color:var(--dc-accent);font:11px/1.5 ui-monospace,monospace}
|
|
550
|
+
.dc-advanced-toggle{display:inline-flex;margin-top:18px;padding:0;border:0;background:transparent;color:var(--dc-accent);font:12px/1.5 inherit;cursor:pointer}.dc-advanced-toggle:hover{text-decoration:underline}.dc-advanced-fields{margin-top:14px;padding:14px;border:1px solid var(--dc-line);border-radius:10px;background:color-mix(in srgb,var(--dc-panel),transparent 35%)}
|
|
551
|
+
.dc-section-subtitle{margin:4px 0 0;color:var(--dc-muted);font-size:12px}.dc-device-copy em{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:var(--dc-soft);color:var(--dc-accent);font-size:10px;font-style:normal;font-weight:600}.dc-relay-modal-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px;background:rgba(10,16,22,.42);backdrop-filter:blur(8px)}.dc-relay-modal{width:min(430px,100%);padding:24px;border:1px solid color-mix(in srgb,var(--dc-line),transparent 15%);border-radius:20px;background:var(--dc-paper);box-shadow:0 24px 70px rgba(0,0,0,.22)}.dc-relay-modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.dc-relay-modal h3{margin:4px 0 0;font-size:20px;letter-spacing:-.02em}.dc-relay-modal-close{width:30px;height:30px;border:0;border-radius:50%;background:var(--dc-panel);color:var(--dc-muted);font-size:22px;line-height:1;cursor:pointer}.dc-relay-modal-field{display:grid;gap:8px;margin-top:15px;color:var(--dc-muted);font-size:12px;font-weight:600}.dc-relay-modal-field input{width:100%;box-sizing:border-box}.dc-relay-modal-hint{margin:12px 0 0;color:var(--dc-muted);font-size:11px;line-height:1.5}.dc-relay-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}
|
|
552
|
+
.dc-relay-modal :is(input,button):focus-visible{outline:none;box-shadow:none}
|
|
553
|
+
`;var c=$(ce(),1);function V({children:e,icon:t,primary:n,danger:r,className:i="",...o}){return(0,c.jsxs)("button",{type:"button",className:`dc-button ${n?"dc-primary":""} ${r?"dc-danger":""} ${i}`.trim(),...o,children:[t&&(0,c.jsx)(Q,{name:t,size:16}),e]})}function Kt({error:e}){return e?(0,c.jsx)("p",{className:"dc-error",role:"alert",children:e}):null}function ye({label:e,children:t,full:n}){return(0,c.jsxs)("label",{className:`dc-field ${n?"dc-field-full":""}`,children:[(0,c.jsx)("span",{children:e}),t]})}function $2({title:e,children:t,onClose:n,busy:r}){let i=(0,T.useRef)(null);return(0,T.useEffect)(()=>{let o=document.activeElement;i.current?.querySelector("input,button,textarea,select")?.focus();let l=a=>{if(a.key==="Escape"&&!r&&(a.preventDefault(),n()),a.key!=="Tab")return;let s=[...i.current.querySelectorAll("button,input,textarea,select,a[href]")].filter(h=>!h.disabled&&h.getClientRects().length),u=s[0],m=s[s.length-1];if(!u){a.preventDefault();return}a.shiftKey&&document.activeElement===u?(a.preventDefault(),m.focus()):!a.shiftKey&&document.activeElement===m&&(a.preventDefault(),u.focus())};return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),o?.focus?.()}},[n,r]),(0,c.jsx)("div",{className:"dc-backdrop",onClick:o=>{o.target===o.currentTarget&&!r&&n()},children:(0,c.jsxs)("section",{className:"dc-sheet",role:"dialog","aria-modal":"true","aria-labelledby":"dc-dialog-title",ref:i,children:[(0,c.jsxs)("header",{children:[(0,c.jsx)("h2",{id:"dc-dialog-title",children:e}),(0,c.jsx)(V,{icon:"close","aria-label":"\u5173\u95ED",onClick:n,disabled:r})]}),t]})})}function W2({runtime:e,onAdded:t}){let[n,r]=(0,T.useState)(""),[i,o]=(0,T.useState)(""),[l,a]=(0,T.useState)("idle"),s=(0,T.useRef)(0),u=(0,T.useRef)(),m=(0,T.useRef)(!0),h=(0,T.useRef)(""),g=(0,T.useRef)(""),v=(0,T.useCallback)(async y=>{if(!y.trim()){o("\u8BF7\u7C98\u8D34\u76EE\u6807\u8BBE\u5907\u7684\u8FDE\u63A5\u4FE1\u606F");return}if(g.current===y.trim())return;g.current=y.trim();let B=++s.current;clearTimeout(u.current),o(""),a("sending"),r(y);try{let p=await e.call("pair",{uri:y.trim(),name:e.clientName()});if(!m.current||s.current!==B)return;a("pending");let d=async()=>{try{let f=await e.call("pairStatus",{requestId:p.requestId});if(!m.current||s.current!==B)return;if(f.status==="approved"){a("approved"),await t(f.device);return}if(["rejected","expired","revoked"].includes(f.status))throw new Error(f.status==="rejected"?"\u76EE\u6807\u8BBE\u5907\u672A\u5141\u8BB8\u8FDE\u63A5\uFF0C\u8BF7\u751F\u6210\u65B0\u7684\u8FDE\u63A5\u4FE1\u606F":"\u914D\u5BF9\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u626B\u7801\u6216\u7C98\u8D34\u5730\u5740");u.current=setTimeout(d,1500)}catch(f){m.current&&s.current===B&&(g.current="",o(f.message),a("failed"))}};u.current=setTimeout(d,700)}catch(p){m.current&&s.current===B&&(g.current="",o(p.message),a("failed"))}},[e,t]);(0,T.useEffect)(()=>{m.current=!0;let y=()=>{let B=e.bootstrap?.();if(!B?.code||B.token)return;let p=e.contextUri(B);!p||h.current===p||(h.current=p,v(p))};return window.addEventListener("link:bootstrap",y),y(),()=>{m.current=!1,s.current++,clearTimeout(u.current),window.removeEventListener("link:bootstrap",y)}},[v,e]);let b=["sending","pending","approved"].includes(l);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"dc-note",children:"\u5728\u76EE\u6807\u8BBE\u5907\u7684\u8BBE\u5907\u4E2D\u5FC3\u5207\u6362\u5230\u201C\u8FDE\u63A5\u201D\uFF0C\u751F\u6210\u8FDE\u63A5\u4FE1\u606F\u3002\u8FDE\u63A5\u9700\u7531\u5BF9\u65B9\u6279\u51C6\u3002"}),(0,c.jsxs)("form",{onSubmit:y=>{y.preventDefault(),b||v(n)},children:[(0,c.jsx)(ye,{label:"\u8FDE\u63A5\u4FE1\u606F",children:(0,c.jsx)("textarea",{autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,rows:3,placeholder:"dshlink://pair?\u2026",value:n,disabled:b,onChange:y=>{r(y.target.value),o("")}})}),(0,c.jsx)(Kt,{error:i}),b&&(0,c.jsxs)("p",{className:"dc-progress-message",role:"status",children:[(0,c.jsx)("i",{className:"dc-spinner"}),l==="sending"?"\u6B63\u5728\u53D1\u9001\u8FDE\u63A5\u8BF7\u6C42\u2026":l==="approved"?"\u5DF2\u5141\u8BB8\uFF0C\u6B63\u5728\u6253\u5F00\u2026":"\u8BF7\u5728\u76EE\u6807\u8BBE\u5907\u4E0A\u5141\u8BB8\u8FDE\u63A5"]}),(0,c.jsxs)("div",{className:"dc-actions",children:[e.isNative()&&(0,c.jsx)(V,{icon:"scan",onClick:()=>e.scan(),disabled:l==="sending",children:"\u626B\u7801\u8FDE\u63A5"}),(0,c.jsx)(V,{type:"submit",primary:!0,disabled:b||!n.trim(),children:l==="failed"?"\u91CD\u8BD5\u8FDE\u63A5":"\u8FDE\u63A5\u8BBE\u5907"})]})]})]})}var Yl=()=>({name:"",host:"",port:"22",username:"",auth:"password",password:"",privateKey:"",passphrase:"",source:"mirror"});function md({form:e,setForm:t,disabled:n}){let r=i=>({value:e[i],disabled:n,onChange:o=>t(l=>({...l,[i]:o.target.value}))});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ye,{label:"\u8BA4\u8BC1\u65B9\u5F0F",full:!0,children:(0,c.jsxs)(Ft,{...r("auth"),children:[(0,c.jsx)("option",{value:"password",children:"\u5BC6\u7801"}),(0,c.jsx)("option",{value:"key",children:"SSH \u79C1\u94A5"})]})}),e.auth==="password"?(0,c.jsx)(ye,{label:"\u5BC6\u7801",full:!0,children:(0,c.jsx)("input",{type:"password",autoComplete:"off",...r("password")})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ye,{label:"SSH \u79C1\u94A5",full:!0,children:(0,c.jsx)("textarea",{rows:4,autoComplete:"off",autoCorrect:"off",spellCheck:!1,placeholder:"-----BEGIN OPENSSH PRIVATE KEY-----",...r("privateKey")})}),(0,c.jsx)(ye,{label:"\u79C1\u94A5\u53E3\u4EE4\uFF08\u53EF\u9009\uFF09",full:!0,children:(0,c.jsx)("input",{type:"password",autoComplete:"off",...r("passphrase")})})]})]})}function hd({job:e,label:t="\u6B63\u5728\u51C6\u5907\u670D\u52A1\u5668\u5DE5\u4F5C\u53F0\u2026",pollingError:n=""}){return(0,c.jsxs)("div",{className:"dc-job","aria-live":"polite",children:[(0,c.jsx)("ol",{children:(e.steps||[]).map((r,i)=>{let o=typeof r=="string"?{label:r}:r;return(0,c.jsxs)("li",{"data-state":o.state||o.status||"pending",children:[(0,c.jsx)("span",{className:"dc-step-icon",children:["done","completed","success"].includes(o.state||o.status)?(0,c.jsx)(Q,{name:"check",size:14}):i+1}),(0,c.jsxs)("div",{children:[o.label||o.name||o.title||o.id,o.message&&(0,c.jsx)("small",{children:o.message})]})]},o.id||i)})}),!rt(e)&&!n&&(0,c.jsxs)("p",{className:"dc-progress-message",children:[(0,c.jsx)("i",{className:"dc-spinner"}),t]}),n&&(0,c.jsx)("p",{className:"dc-progress-message",role:"status",children:"\u6682\u65F6\u65E0\u6CD5\u83B7\u53D6\u540E\u53F0\u8FDB\u5EA6"}),(0,c.jsx)(Kt,{error:e.error})]})}function gd(e,t,n,r,i=0){(0,T.useEffect)(()=>{if(!t?.id||rt(t))return;let o=!1,l,a=async()=>{try{let s=await e.call("job",{jobId:t.id});o||(r(""),n({...t,...s,id:s.id||t.id}),rt(s)||(l=setTimeout(a,1e3)))}catch(s){o||r(s.message)}};return l=setTimeout(a,400),()=>{o=!0,clearTimeout(l)}},[e,t?.id,t?.state,n,r,i])}function K2({runtime:e,onAdded:t,sshAvailable:n}){let[r,i]=(0,T.useState)("existing");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"dc-add-actions",role:"group","aria-label":"\u6DFB\u52A0\u65B9\u5F0F",children:[(0,c.jsx)(V,{primary:r==="existing",onClick:()=>i("existing"),children:"\u8FDE\u63A5\u5DF2\u6709\u8BBE\u5907"}),(0,c.jsx)(V,{primary:r==="server",disabled:!n,onClick:()=>i("server"),children:"\u5B89\u88C5\u5230\u670D\u52A1\u5668"})]}),!n&&(0,c.jsx)("p",{className:"dc-footnote",children:"\u6B64\u5BA2\u6237\u7AEF\u6682\u4E0D\u652F\u6301 SSH \u5B89\u88C5\uFF0C\u8BF7\u4F7F\u7528\u684C\u9762\u5BA2\u6237\u7AEF\u3002"}),r==="existing"?(0,c.jsx)(W2,{runtime:e,onAdded:t}):(0,c.jsx)(Q2,{runtime:e,onAdded:t})]})}function Q2({runtime:e,onAdded:t}){let[n,r]=(0,T.useState)(Yl),[i,o]=(0,T.useState)(""),[l,a]=(0,T.useState)(null),[s,u]=(0,T.useState)(!1),[m,h]=(0,T.useState)(""),g=(0,T.useRef)(!1),v=(0,T.useRef)(!0),[b,y]=(0,T.useState)(0);(0,T.useEffect)(()=>()=>{v.current=!1},[]),gd(e,l,a,h,b);let B=async()=>{if(!g.current){g.current=!0,u(!0),h("");try{let d=ad(n);if(i){let f=await e.call("sshConnect",{...d,fingerprint:i});v.current&&(a({id:f.jobId,state:"running",steps:[]}),r(w=>({...w,password:"",privateKey:"",passphrase:""})))}else{let f=await e.call("sshProbe",{host:d.host,port:d.port,username:d.username});v.current&&o(f.fingerprint)}}catch(d){v.current&&h(d.message)}finally{g.current=!1,v.current&&u(!1)}}},p=d=>({value:n[d],disabled:s,onChange:f=>{r(w=>({...w,[d]:f.target.value})),o(""),h("")}});return l?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("p",{className:"dc-note",children:[n.name||n.host," \xB7 SSH \u52A0\u5BC6\u96A7\u9053"]}),(0,c.jsx)(hd,{job:l}),l.device?.warning&&(0,c.jsx)("p",{className:"dc-note",role:"status",children:l.device.warning}),(0,c.jsx)(Kt,{error:m}),(0,c.jsx)("p",{className:"dc-footnote",children:"\u5173\u95ED\u6B64\u9762\u677F\u4E0D\u4F1A\u4E2D\u65AD\u5B89\u88C5\u3002"}),(0,c.jsx)("div",{className:"dc-actions",children:$r(l)?(0,c.jsx)(V,{onClick:()=>{a(null),o(""),h("")},children:"\u8FD4\u56DE\u91CD\u8BD5"}):rt(l)?(0,c.jsx)(V,{primary:!0,onClick:()=>t(l.device),children:"\u6253\u5F00\u5DE5\u4F5C\u53F0"}):m?(0,c.jsx)(V,{onClick:()=>{h(""),y(d=>d+1)},children:"\u91CD\u65B0\u68C0\u67E5\u8FDB\u5EA6"}):null})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"dc-note",children:"\u901A\u8FC7 SSH \u5B89\u88C5\u6216\u8FDE\u63A5BenchGo\u3002\u9ED8\u8BA4\u4F7F\u7528\u52A0\u5BC6\u96A7\u9053\uFF0C\u65E0\u9700\u5F00\u653E\u5DE5\u4F5C\u53F0\u7AEF\u53E3\u3002"}),(0,c.jsxs)("form",{onSubmit:d=>{d.preventDefault(),B()},children:[(0,c.jsxs)("div",{className:"dc-form-grid",children:[(0,c.jsx)(ye,{label:"\u540D\u79F0\uFF08\u53EF\u9009\uFF09",full:!0,children:(0,c.jsx)("input",{placeholder:"\u4F8B\u5982\uFF1A\u5F00\u53D1\u670D\u52A1\u5668",maxLength:100,...p("name")})}),(0,c.jsx)(ye,{label:"\u670D\u52A1\u5668\u5730\u5740",children:(0,c.jsx)("input",{required:!0,placeholder:"IP \u6216\u57DF\u540D",autoCapitalize:"off",autoCorrect:"off",...p("host")})}),(0,c.jsx)(ye,{label:"SSH \u7AEF\u53E3",children:(0,c.jsx)("input",{required:!0,inputMode:"numeric",type:"number",min:"1",max:"65535",...p("port")})}),(0,c.jsx)(ye,{label:"\u7528\u6237\u540D",full:!0,children:(0,c.jsx)("input",{required:!0,placeholder:"\u4F8B\u5982\uFF1Aubuntu",autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",...p("username")})}),(0,c.jsx)(md,{form:n,setForm:r,disabled:s}),(0,c.jsx)(ye,{label:"\u4E0B\u8F7D\u6E90",full:!0,children:(0,c.jsxs)(Ft,{...p("source"),children:[(0,c.jsx)("option",{value:"mirror",children:"\u56FD\u5185\u52A0\u901F\uFF08\u9ED8\u8BA4\uFF09"}),(0,c.jsx)("option",{value:"github",children:"\u5B98\u65B9\u76F4\u8FDE"})]})})]}),(0,c.jsx)("p",{className:"dc-footnote",children:"\u5BC6\u7801\u4E0E\u79C1\u94A5\u4EC5\u7528\u4E8E\u672C\u6B21\u8FDE\u63A5\uFF0C\u4E0D\u4FDD\u5B58\u5728\u8BBE\u5907\u5217\u8868\u3002"}),i&&(0,c.jsxs)("div",{className:"dc-fingerprint",children:[(0,c.jsx)("strong",{children:"\u786E\u8BA4\u670D\u52A1\u5668\u8EAB\u4EFD"}),(0,c.jsx)("code",{children:i}),(0,c.jsx)("p",{children:"\u8BF7\u6838\u5BF9\u670D\u52A1\u5668\u7684 SSH \u4E3B\u673A\u6307\u7EB9\u3002\u786E\u8BA4\u540E\u624D\u4F1A\u8BA4\u8BC1\u548C\u5B89\u88C5\u3002"})]}),(0,c.jsx)(Kt,{error:m}),(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{primary:!0,type:"submit",disabled:s,children:s?"\u5904\u7406\u4E2D\u2026":i?"\u786E\u8BA4\u6307\u7EB9\u5E76\u8FDE\u63A5":"\u68C0\u67E5\u670D\u52A1\u5668"})})]})]})}function q2({runtime:e,onChanged:t,onClose:n,job:r,setJob:i}){let[o,l]=(0,T.useState)("deploy"),[a,s]=(0,T.useState)(!1),[u,m]=(0,T.useState)(null),h=i?r:u,g=i||m,[v,b]=(0,T.useState)(()=>({...Yl(),username:"root",sslMode:"ip",domain:"",publicIp:"",email:"",relayPort:"24680",challengeMode:"standalone",webroot:""})),[y,B]=(0,T.useState)(""),[p,d]=(0,T.useState)(""),[f,w]=(0,T.useState)(!1),[E,M]=(0,T.useState)(0),[P,L]=(0,T.useState)(""),[A,D]=(0,T.useState)(""),_=(0,T.useRef)(!0),J=(0,T.useRef)(!1);(0,T.useEffect)(()=>(_.current=!0,()=>{_.current=!1}),[]),gd(e,h,g,d,E);let re=f||!!(h&&!rt(h)),$e=async()=>{let U=h;if(g(null),B(""),d(""),U?.id)try{await e.call("relayJobDismiss",{jobId:U.id})}catch(Z){_.current&&d(Z.message)}},z=U=>({value:v[U],disabled:re,onChange:Z=>{b(Te=>({...Te,[U]:Z.target.value})),["host","port","username"].includes(U)&&B(""),d("")}}),ie=async(U="deploy")=>{if(!J.current){J.current=!0,w(!0),d(""),L("");try{let Z=v.domain.trim();if(v.sslMode==="domain"&&(!Z||Z.length>253||Z.includes("://")||Z.includes("/")||!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$/i.test(Z)))throw new Error("\u8BF7\u8F93\u5165\u6709\u6548\u57DF\u540D\uFF0C\u4F8B\u5982 relay.example.com");let Te=v.sslMode==="domain"?"webroot":v.challengeMode,je={...ad(v),sslMode:v.sslMode,domain:v.sslMode==="domain"?v.domain.trim():"",publicIp:v.publicIp.trim()||v.host.trim(),email:v.email.trim(),relayPort:Number(v.relayPort),challengeMode:Te,...Te==="webroot"?{webroot:v.webroot.trim()}:{}},xe=y;xe||(xe=(await e.call("relayProbe",{host:je.host,port:je.port,username:je.username})).fingerprint,_.current&&B(xe));let ze=await e.call(U==="deploy"?"relayDeploy":"relayAction",{...je,fingerprint:xe,...U!=="deploy"?{operation:U}:{}});if(!_.current){ze.jobId&&i&&i({id:ze.jobId,operation:U,state:"running",steps:[]});return}D(""),b(or=>({...or,password:"",privateKey:"",passphrase:""})),ze.jobId?g({id:ze.jobId,operation:U,state:"running",steps:[]}):L(ze.logs||ze.output||ze.message||(ze.status?`\u670D\u52A1\u72B6\u6001\uFF1A${ze.status}`:"\u64CD\u4F5C\u5DF2\u5B8C\u6210"))}catch(Z){_.current&&d(Z.message)}finally{J.current=!1,_.current&&w(!1)}}},q=(!h?.operation||h.operation==="deploy")&&h&&rt(h)&&!$r(h),[X,ae]=(0,T.useState)(null),[I,K]=(0,T.useState)(null),[me,x]=(0,T.useState)(0);(0,T.useEffect)(()=>{if(!q)return;let U=!1,Z,Te=0,je=async()=>{Te++;try{let xe=await e.call("hostStatus");U||(ae(xe),d(""),!xe.relay?.connected&&xe.relay?.enabled!==!1&&Te<20&&(Z=setTimeout(je,1500)))}catch(xe){U||d(xe.message)}};return je(),()=>{U=!0,clearTimeout(Z)}},[e,q,me]);let O=async()=>{if(!J.current){J.current=!0,w(!0),d("");try{let U=await e.call("hostRelayConfigure",{enabled:X?.relay?.enabled===!1});_.current&&(ae(U),K(null),D(""),x(Z=>Z+1))}catch(U){_.current&&d(U.message)}finally{J.current=!1,_.current&&w(!1)}}},W=async()=>{if(!J.current){J.current=!0,w(!0),d("");try{let U=await e.call("hostPairing",{mode:"relay"});_.current&&K(U)}catch(U){_.current&&d(U.message)}finally{J.current=!1,_.current&&w(!1)}}};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"dc-relay-tabs",role:"tablist","aria-label":"\u4E2D\u7EE7\u6DFB\u52A0\u65B9\u5F0F",children:[(0,c.jsx)(V,{primary:o==="connect",disabled:re,onClick:()=>{l("connect"),d("")},children:"\u8FDE\u63A5"}),(0,c.jsx)(V,{primary:o==="deploy",disabled:re,onClick:()=>{l("deploy"),d("")},children:"\u90E8\u7F72"})]}),o==="connect"?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"dc-note",children:"\u5DF2\u6709\u4E2D\u7EE7\u670D\u52A1\uFF1F\u586B\u5199\u4E2D\u7EE7\u5730\u5740\u548C\u4E3B\u673A\u5BC6\u94A5\uFF0C\u8BA9\u672C\u673A\u76F4\u63A5\u63A5\u5165\u3002"}),(0,c.jsxs)("form",{onSubmit:async U=>{if(U.preventDefault(),!J.current){J.current=!0,w(!0),d("");try{let Z=new FormData(U.currentTarget),Te=await e.hostCall("relayConfigure",{url:String(Z.get("url")||"").trim(),token:String(Z.get("token")||"").trim(),enabled:!0});_.current&&(L(Te?.relay?.url?`\u5DF2\u8FDE\u63A5\uFF1A${Te.relay.url}`:"\u4E2D\u7EE7\u914D\u7F6E\u5DF2\u4FDD\u5B58"),await t())}catch(Z){_.current&&d(Z.message)}finally{J.current=!1,_.current&&w(!1)}}},children:[(0,c.jsxs)("div",{className:"dc-form-grid",children:[(0,c.jsx)(ye,{label:"\u4E2D\u7EE7 HTTPS \u5730\u5740",full:!0,children:(0,c.jsx)("input",{name:"url",required:!0,type:"url",placeholder:"https://relay.example.com:24680",autoCapitalize:"off",autoCorrect:"off"})}),(0,c.jsx)(ye,{label:"\u4E2D\u7EE7\u4E3B\u673A\u5BC6\u94A5",full:!0,children:(0,c.jsx)("input",{name:"token",required:!0,type:"password",autoComplete:"off",placeholder:"\u7C98\u8D34\u4E2D\u7EE7\u670D\u52A1\u751F\u6210\u7684\u5BC6\u94A5"})})]}),(0,c.jsx)("p",{className:"dc-footnote",children:"\u4E3B\u673A\u5BC6\u94A5\u53EA\u7528\u4E8E\u672C\u673A\u63A5\u5165\uFF0C\u4E0D\u4F1A\u663E\u793A\u5728\u4E2D\u7EE7\u5217\u8868\u4E2D\u3002"}),(0,c.jsx)(Kt,{error:p}),(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{primary:!0,type:"submit",disabled:f,children:f?"\u4FDD\u5B58\u4E2D\u2026":"\u8FDE\u63A5\u4E2D\u7EE7"})})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"dc-note",children:"\u5728\u4F60\u4FE1\u4EFB\u7684 Linux \u670D\u52A1\u5668\u5B89\u88C5\u8FDE\u63A5\u4E2D\u7EE7\uFF0C\u8BA9\u5F53\u524D\u4E3B\u673A\u4E3B\u52A8\u63A5\u5165\u3002\u4E2D\u7EE7\u53EF\u8BFB\u53D6\u8F6C\u53D1\u7684\u5DE5\u4F5C\u53F0\u5185\u5BB9\uFF0C\u8BF7\u4EC5\u4F7F\u7528\u81EA\u5DF1\u7684\u670D\u52A1\u5668\u3002"}),h&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(hd,{job:h,pollingError:rt(h)?"":p,label:h.operation&&h.operation!=="deploy"?"\u6B63\u5728\u7BA1\u7406\u4E2D\u7EE7\u670D\u52A1\u2026":"\u6B63\u5728\u540E\u53F0\u90E8\u7F72\uFF0C\u901A\u5E38\u9700\u8981 2\u201310 \u5206\u949F\u2026"}),(0,c.jsx)("p",{className:"dc-footnote",children:"\u53EF\u4EE5\u5173\u95ED\u6B64\u7A97\u53E3\uFF0C\u4EFB\u52A1\u4F1A\u5728\u540E\u53F0\u7EE7\u7EED\uFF1B\u91CD\u65B0\u6253\u5F00\u5373\u53EF\u67E5\u770B\u8FDB\u5EA6\u3002SSH \u51ED\u636E\u4E0D\u4F1A\u4FDD\u5B58\u3002"}),(0,c.jsxs)("div",{className:"dc-actions",children:[!rt(h)&&p&&(0,c.jsx)(V,{onClick:()=>{d(""),M(U=>U+1)},children:"\u91CD\u65B0\u68C0\u67E5\u8FDB\u5EA6"}),!rt(h)&&n&&(0,c.jsx)(V,{onClick:n,children:"\u540E\u53F0\u6267\u884C"}),$r(h)&&(0,c.jsx)(V,{primary:!0,onClick:()=>void $e(),children:"\u8FD4\u56DE\u4FEE\u6539"})]})]}),q&&(0,c.jsxs)("div",{className:"dc-relay-success",children:[(0,c.jsx)("strong",{children:"\u4E2D\u7EE7 HTTPS \u5DF2\u9A8C\u8BC1"}),(0,c.jsx)("code",{children:h.relay?.url}),(0,c.jsx)("p",{className:"dc-note",children:"\u5F53\u524D\u4E3B\u673A\u5DF2\u81EA\u52A8\u542F\u7528\u4E2D\u7EE7\u63A5\u5165\u3002\u4ECE\u5176\u4ED6\u8BBE\u5907\u5B8C\u6210\u914D\u5BF9\u548C\u5DE5\u4F5C\u53F0\u9A8C\u8BC1\u540E\uFF0C\u624D\u786E\u8BA4\u8DE8\u7F51\u8BBF\u95EE\u53EF\u7528\u3002"}),(0,c.jsx)("p",{className:"dc-progress-message",role:"status",children:X?.relay?.enabled===!1?"\u5F53\u524D\u4E3B\u673A\u4E2D\u7EE7\u5DF2\u505C\u7528":X?.relay?.connected?"\u5F53\u524D\u4E3B\u673A\u901A\u9053\u5DF2\u8FDE\u63A5":X?.relay?.lastError||"\u5F53\u524D\u4E3B\u673A\u5C1A\u672A\u63A5\u5165\uFF0C\u53EF\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5"}),(0,c.jsxs)("div",{className:"dc-actions",children:[(0,c.jsx)(V,{disabled:f,onClick:()=>x(U=>U+1),children:"\u68C0\u67E5\u63A5\u5165\u72B6\u6001"}),(0,c.jsx)(V,{primary:!0,disabled:f||!X?.relay?.connected,onClick:W,children:"\u751F\u6210\u4E2D\u7EE7\u8FDE\u63A5\u4FE1\u606F"}),(0,c.jsx)(V,{disabled:f,onClick:()=>X?.relay?.enabled===!1?void O():D("disconnect"),children:X?.relay?.enabled===!1?"\u542F\u7528\u5F53\u524D\u4E3B\u673A\u4E2D\u7EE7":"\u505C\u7528\u5F53\u524D\u4E3B\u673A\u4E2D\u7EE7"}),(0,c.jsx)(V,{onClick:()=>{g(null),K(null)},children:"\u7BA1\u7406\u670D\u52A1\u5668"})]}),A==="disconnect"&&(0,c.jsxs)("div",{className:"dc-confirm",children:[(0,c.jsx)("p",{children:"\u505C\u7528\u540E\u7ECF\u6B64\u4E2D\u7EE7\u8BBF\u95EE\u5F53\u524D\u4E3B\u673A\u7684\u8FDE\u63A5\u5C06\u65AD\u5F00\uFF0C\u670D\u52A1\u5668\u4E2D\u7EE7\u670D\u52A1\u4FDD\u7559\u3002"}),(0,c.jsxs)("div",{className:"dc-actions",children:[(0,c.jsx)(V,{disabled:f,onClick:()=>D(""),children:"\u53D6\u6D88"}),(0,c.jsx)(V,{danger:!0,disabled:f,onClick:O,children:"\u786E\u8BA4\u505C\u7528"})]})]}),I&&(0,c.jsxs)("div",{className:"dc-relay-pairing",children:[(0,c.jsx)(ye,{label:"\u5728\u5176\u4ED6\u8BBE\u5907\u7684\u8BBE\u5907\u4E2D\u5FC3\u7C98\u8D34\u8FDE\u63A5\u4FE1\u606F",children:(0,c.jsx)("textarea",{readOnly:!0,rows:3,value:I.uri,onFocus:U=>U.target.select()})}),(0,c.jsx)("p",{className:"dc-footnote",children:"\u6B64\u8FDE\u63A5\u4FE1\u606F\u77ED\u65F6\u6709\u6548\u3001\u4EC5\u4F9B\u4E00\u6B21\u914D\u5BF9\u3002\u53D1\u9001\u8BF7\u6C42\u540E\u56DE\u5230\u201C\u8FDE\u63A5\u201D\u9875\u9762\u6279\u51C6\u3002"}),(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{onClick:()=>{t()},children:"\u8FD4\u56DE\u6279\u51C6\u8FDE\u63A5\u8BF7\u6C42"})})]})]}),!h&&(0,c.jsxs)("form",{onSubmit:U=>{U.preventDefault(),ie()},children:[(0,c.jsxs)("div",{className:"dc-form-grid",children:[(0,c.jsx)(ye,{label:"\u670D\u52A1\u5668\u5730\u5740",children:(0,c.jsx)("input",{required:!0,placeholder:"\u516C\u7F51 IP \u6216\u57DF\u540D",autoCapitalize:"off",autoCorrect:"off",...z("host")})}),(0,c.jsx)(ye,{label:"SSH \u7AEF\u53E3",children:(0,c.jsx)("input",{required:!0,type:"number",min:"1",max:"65535",...z("port")})}),(0,c.jsx)(ye,{label:"SSH \u7528\u6237\u540D",full:!0,children:(0,c.jsx)("input",{required:!0,placeholder:"\u4F8B\u5982 root \u6216 ubuntu",autoCapitalize:"off",autoComplete:"off",...z("username")})}),(0,c.jsx)(md,{form:v,setForm:b,disabled:re})]}),(0,c.jsxs)("div",{className:"dc-form-grid",children:[(0,c.jsx)(ye,{label:"\u8BC1\u4E66\u6A21\u5F0F",full:!0,children:(0,c.jsxs)(Ft,{value:v.sslMode,disabled:re,onChange:U=>{let Z=U.target.value;b(Te=>({...Te,sslMode:Z,...Z==="domain"?{challengeMode:"webroot",webroot:Te.webroot||(Te.domain.trim()?`/www/wwwroot/${Te.domain.trim()}`:"")}:{challengeMode:"standalone"}})),d("")},children:[(0,c.jsx)("option",{value:"ip",children:"IP SSL"}),(0,c.jsx)("option",{value:"domain",children:"\u57DF\u540D SSL"})]})}),v.sslMode==="domain"&&(0,c.jsxs)(ye,{label:"\u4E2D\u7EE7\u57DF\u540D",full:!0,children:[(0,c.jsx)("input",{required:!0,placeholder:"relay.example.com",autoCapitalize:"off",...z("domain")}),(0,c.jsx)("small",{className:"dc-field-hint",children:"\u90E8\u7F72\u65F6\u4F1A\u81EA\u52A8\u68C0\u67E5\u7F51\u7EDC\u5E76\u5B8C\u6210\u8BC1\u4E66\u9A8C\u8BC1\u3002"})]})]}),(0,c.jsx)("button",{type:"button",className:"dc-advanced-toggle",onClick:()=>s(U=>!U),"aria-expanded":a,children:a?"\u6536\u8D77\u9AD8\u7EA7\u8BBE\u7F6E":"\u9AD8\u7EA7\u8BBE\u7F6E\uFF08\u516C\u7F51 IP\u3001\u7AEF\u53E3\u3001\u8BC1\u4E66\uFF09"}),a&&(0,c.jsxs)("div",{className:"dc-form-grid dc-advanced-fields",children:[(0,c.jsx)(ye,{label:"\u670D\u52A1\u5668\u516C\u7F51 IP",children:(0,c.jsx)("input",{placeholder:"\u9ED8\u8BA4\u4F7F\u7528\u670D\u52A1\u5668\u5730\u5740",autoCapitalize:"off",...z("publicIp")})}),(0,c.jsx)(ye,{label:"\u4E2D\u7EE7\u4E1A\u52A1\u7AEF\u53E3",children:(0,c.jsx)("input",{required:!0,type:"number",min:"20000",max:"49151",...z("relayPort")})}),(0,c.jsx)(ye,{label:"\u8BC1\u4E66\u901A\u77E5\u90AE\u7BB1\uFF08\u9009\u586B\uFF09",full:!0,children:(0,c.jsx)("input",{type:"email",autoComplete:"email",placeholder:"\u7528\u4E8E\u63A5\u6536\u8BC1\u4E66\u7EED\u671F\u901A\u77E5",...z("email")})}),v.sslMode==="ip"&&(0,c.jsx)(ye,{label:"\u8BC1\u4E66\u9A8C\u8BC1\u65B9\u5F0F",full:!0,children:(0,c.jsxs)(Ft,{...z("challengeMode"),children:[(0,c.jsx)("option",{value:"standalone",children:"\u81EA\u52A8\u9A8C\u8BC1"}),(0,c.jsx)("option",{value:"webroot",children:"\u4F7F\u7528\u5DF2\u6709\u7AD9\u70B9\u76EE\u5F55"})]})}),v.challengeMode==="webroot"&&(0,c.jsx)(ye,{label:"challenge webroot \u7EDD\u5BF9\u8DEF\u5F84",full:!0,children:(0,c.jsx)("input",{required:v.sslMode!=="domain",placeholder:v.sslMode==="domain"?`/www/wwwroot/${v.domain||"relay.example.com"}`:"/var/www/acme",...z("webroot")})})]}),(0,c.jsxs)("p",{className:"dc-footnote",children:[v.sslMode==="domain"?"\u90E8\u7F72\u524D\u4F1A\u6821\u9A8C\u57DF\u540D\u89E3\u6790\uFF0C\u5E76\u81EA\u52A8\u5B8C\u6210\u8BC1\u4E66\u9A8C\u8BC1\u3002":"IP SSL \u9700\u8981\u516C\u7F51 80 \u7AEF\u53E3\u53EF\u8FBE\u3002","\u4E2D\u7EE7\u4E1A\u52A1\u7AEF\u53E3\u4F7F\u7528 24680\u3002"]}),(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{primary:!0,type:"submit",disabled:re,children:f?"\u6B63\u5728\u8FDE\u63A5\u2026":"\u4E00\u952E\u90E8\u7F72"})})]}),P&&(0,c.jsx)("pre",{className:"dc-result",role:"status",children:String(P)}),!h&&(0,c.jsxs)("section",{className:"dc-management dc-manual-deploy",children:[(0,c.jsx)("h3",{children:"\u624B\u52A8\u90E8\u7F72"}),(0,c.jsx)("p",{className:"dc-note",children:"\u5982\u679C\u4F60\u5E0C\u671B\u81EA\u884C\u63A7\u5236\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u53EF\u6309\u5B98\u65B9\u6587\u6863\u624B\u52A8\u5B89\u88C5\u4E2D\u7EE7\u670D\u52A1\u3002GitHub \u4E00\u952E\u90E8\u7F72\u811A\u672C\u4E0A\u7EBF\u540E\uFF0C\u4F1A\u5728\u8FD9\u91CC\u63D0\u4F9B\u590D\u5236\u547D\u4EE4\u3002"}),(0,c.jsx)("code",{children:"GitHub \u90E8\u7F72\u811A\u672C\u5373\u5C06\u63D0\u4F9B"})]}),(0,c.jsx)(Kt,{error:p})]})]})}function Y2({runtime:e}){let[t,n]=(0,T.useState)(null),[r,i]=(0,T.useState)(""),[o,l]=(0,T.useState)(!1),[a,s]=(0,T.useState)(null),u=(0,T.useCallback)(async()=>{try{i(""),n(await e.hostCall("hostStatus"))}catch(p){i(p.message)}},[e]);(0,T.useEffect)(()=>{u()},[u]);let m=t?.relay?.nodes||[],h=async p=>{l(!0);try{await e.hostCall("hostRelayPoolConfigure",{nodes:p.map((d,f)=>({id:d.id,url:d.url,token:"",priority:f,enabled:d.enabled!==!1}))}),await u()}catch(d){i(d.message)}finally{l(!1)}},g=async p=>{await h([p,...m.filter(d=>d.id!==p.id)])},v=p=>void h(m.map(d=>d.id===p.id?{...d,enabled:d.enabled===!1}:d)),b=p=>{if(m.length===1){i("\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u4E2D\u7EE7\uFF1B\u5982\u9700\u505C\u7528\uFF0C\u8BF7\u4F7F\u7528\u201C\u505C\u7528\u201D");return}h(m.filter(d=>d.id!==p.id))},y=p=>s({id:p.id,url:p.url,token:""}),B=p=>{p.preventDefault();let d=a?.url.trim();if(!d)return;let f=a;s(null),h(m.map(w=>w.id===f.id?{...w,url:d,token:f.token.trim()}:w))};return(0,c.jsxs)("section",{className:"dc-relay-pool",children:[(0,c.jsxs)("div",{className:"dc-section-heading",children:[(0,c.jsxs)("div",{children:[(0,c.jsxs)("h2",{children:["\u4E2D\u7EE7\u6C60\u8282\u70B9 ",(0,c.jsx)("span",{className:"dc-count",children:m.length})]}),(0,c.jsx)("p",{className:"dc-section-subtitle",children:"\u7BA1\u7406\u8FDE\u63A5\u5730\u5740\u3001\u542F\u7528\u72B6\u6001\u548C\u4E3B\u5907\u987A\u5E8F"})]}),(0,c.jsx)(V,{icon:"refresh",disabled:o,onClick:()=>void u(),children:"\u5237\u65B0"})]}),r&&(0,c.jsx)(Kt,{error:r}),m.length?(0,c.jsx)("div",{className:"dc-device-list",children:m.map((p,d)=>(0,c.jsxs)("article",{className:"dc-device",children:[(0,c.jsxs)("div",{className:"dc-device-open",children:[(0,c.jsx)("span",{className:"dc-device-symbol",children:(0,c.jsx)(Q,{name:"server",size:22})}),(0,c.jsxs)("span",{className:"dc-device-copy",children:[(0,c.jsxs)("strong",{children:[p.id||`\u4E2D\u7EE7 ${d+1}`," ",d===0&&(0,c.jsx)("em",{children:"\u4E3B\u4E2D\u7EE7"})]}),(0,c.jsxs)("small",{"data-status":p.connected?"connected":"offline",children:[p.enabled===!1?"\u5DF2\u505C\u7528":p.connected?"\u5728\u7EBF":p.lastError||"\u672A\u8FDE\u63A5"," \xB7 ",p.url]})]})]}),(0,c.jsxs)("div",{className:"dc-service-actions",children:[(0,c.jsx)(V,{disabled:o,onClick:()=>y(p),children:"\u7F16\u8F91"}),(0,c.jsx)(V,{disabled:o,onClick:()=>v(p),children:p.enabled===!1?"\u542F\u7528":"\u505C\u7528"}),d>0&&(0,c.jsx)(V,{disabled:o,onClick:()=>void g(p),children:"\u8BBE\u4E3A\u4E3B\u4E2D\u7EE7"}),(0,c.jsx)(V,{danger:!0,disabled:o,onClick:()=>b(p),children:"\u5220\u9664"})]})]},p.id))}):(0,c.jsxs)("div",{className:"dc-empty",children:[(0,c.jsx)("span",{className:"dc-empty-symbol",children:(0,c.jsx)(Q,{name:"server",size:30})}),(0,c.jsx)("h2",{children:"\u8FD8\u6CA1\u6709\u914D\u7F6E\u4E2D\u7EE7\u8282\u70B9"}),(0,c.jsx)("p",{children:"\u4F7F\u7528\u9875\u9762\u53F3\u4E0A\u89D2\u201C\u6DFB\u52A0\u4E2D\u7EE7\u201D\u5F00\u59CB\u914D\u7F6E\u3002"})]}),a&&(0,c.jsx)("div",{className:"dc-relay-modal-backdrop",role:"presentation",onMouseDown:p=>{p.target===p.currentTarget&&s(null)},children:(0,c.jsxs)("form",{className:"dc-relay-modal",role:"dialog","aria-modal":"true","aria-labelledby":"dc-relay-edit-title",onSubmit:B,children:[(0,c.jsxs)("div",{className:"dc-relay-modal-head",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("span",{className:"dc-eyebrow",children:"\u4E2D\u7EE7\u8BBE\u7F6E"}),(0,c.jsx)("h3",{id:"dc-relay-edit-title",children:"\u7F16\u8F91\u4E2D\u7EE7"})]}),(0,c.jsx)("button",{type:"button",className:"dc-relay-modal-close","aria-label":"\u5173\u95ED",onClick:()=>s(null),children:"\xD7"})]}),(0,c.jsxs)("label",{className:"dc-relay-modal-field",children:[(0,c.jsx)("span",{children:"\u4E2D\u7EE7 HTTPS \u5730\u5740"}),(0,c.jsx)("input",{type:"url",required:!0,value:a.url,onChange:p=>s(d=>({...d,url:p.target.value})),autoFocus:!0})]}),(0,c.jsxs)("label",{className:"dc-relay-modal-field",children:[(0,c.jsx)("span",{children:"\u4E3B\u673A\u5BC6\u94A5"}),(0,c.jsx)("input",{type:"password",value:a.token,onChange:p=>s(d=>({...d,token:p.target.value})),placeholder:"\u7559\u7A7A\u4EE5\u4FDD\u7559\u5F53\u524D\u5BC6\u94A5",autoComplete:"new-password"})]}),(0,c.jsx)("p",{className:"dc-relay-modal-hint",children:"\u5BC6\u94A5\u4E0D\u4F1A\u56DE\u663E\uFF1B\u53EA\u6709\u586B\u5199\u65B0\u503C\u65F6\u624D\u4F1A\u66FF\u6362\u3002"}),(0,c.jsxs)("div",{className:"dc-relay-modal-actions",children:[(0,c.jsx)(V,{type:"button",disabled:o,onClick:()=>s(null),children:"\u53D6\u6D88"}),(0,c.jsx)(V,{primary:!0,type:"submit",disabled:o,children:"\u4FDD\u5B58\u66F4\u6539"})]})]})})]})}function G2({device:e,runtime:t,onChanged:n,onRemoved:r,onCloseWorkbench:i,onOpenWorkbench:o}){let[l,a]=(0,T.useState)(e.name),[s,u]=(0,T.useState)(!1),[m,h]=(0,T.useState)(""),[g,v]=(0,T.useState)(""),[b,y]=(0,T.useState)(""),[B,p]=(0,T.useState)(Yl),[d,f]=(0,T.useState)(!1),w=(0,T.useRef)(!1),[E,M]=(0,T.useState)(null),[P,L]=(0,T.useState)(0);gd(t,E,M,h,P);let A=s||!!(E&&!rt(E));(0,T.useEffect)(()=>{E&&rt(E)&&!$r(E)&&Promise.resolve(n()).catch(_=>h(_.message))},[E?.state,n]);let D=async(_,J={})=>{if(!w.current){w.current=!0,u(!0),h(""),v("");try{let re=await t.call(_,{deviceId:e.id,...J});if(_==="remove"){r(e.id);return}if(re.jobId){M({id:re.jobId,state:"running",steps:[]}),y(""),v("");return}v(typeof re=="string"?re:re.logs||re.output||re.message||(re.status?`\u670D\u52A1\u72B6\u6001\uFF1A${re.status}`:"\u64CD\u4F5C\u5DF2\u5B8C\u6210")),y(""),await n()}catch(re){h(re.message)}finally{w.current=!1,u(!1)}}};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("p",{className:"dc-note",children:[ld(e)," \xB7 ",od(e)]}),(0,c.jsxs)("form",{onSubmit:_=>{_.preventDefault(),D("rename",{name:l.trim()})},children:[(0,c.jsx)(ye,{label:"\u8BBE\u5907\u540D\u79F0",children:(0,c.jsx)("input",{value:l,maxLength:100,onChange:_=>a(_.target.value),disabled:A||e.kind==="local"})}),e.kind!=="local"&&(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{type:"submit",disabled:A||!l.trim()||l.trim()===e.name,children:"\u4FDD\u5B58\u540D\u79F0"})})]}),e.kind==="ssh"&&(0,c.jsxs)("section",{className:"dc-management",children:[(0,c.jsx)("h3",{children:"\u670D\u52A1\u5668"}),(0,c.jsx)("div",{className:"dc-service-actions",children:[["status","\u72B6\u6001"],["start","\u542F\u52A8"],["restart","\u91CD\u542F"],["stop","\u505C\u6B62"],["logs","\u65E5\u5FD7"],["update","\u66F4\u65B0\u63D2\u4EF6"]].map(([_,J])=>(0,c.jsx)(V,{disabled:A,onClick:()=>["stop","restart","update"].includes(_)?y(_):void D("serverAction",{operation:_}),children:J},_))}),(0,c.jsx)(V,{icon:"refresh",disabled:A,onClick:()=>f(_=>!_),children:"\u91CD\u65B0\u8FDE\u63A5\u96A7\u9053"}),d&&(0,c.jsxs)("form",{onSubmit:_=>{_.preventDefault(),D("reconnect",B.auth==="key"?{privateKey:B.privateKey,passphrase:B.passphrase}:{password:B.password}),p(Yl())},children:[(0,c.jsx)("div",{className:"dc-form-grid",children:(0,c.jsx)(md,{form:B,setForm:p,disabled:A})}),(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{primary:!0,type:"submit",disabled:A,children:"\u8FDE\u63A5"})})]})]}),b&&b!=="remove"&&(0,c.jsxs)("div",{className:"dc-confirm",children:[(0,c.jsx)("p",{children:b==="stop"?"\u505C\u6B62\u670D\u52A1\u5668\u670D\u52A1\u4F1A\u4E2D\u65AD\u8FDC\u7A0B\u5DE5\u4F5C\u53F0\u3002":b==="restart"?"\u91CD\u542F\u65F6\u5DE5\u4F5C\u53F0\u4F1A\u77ED\u6682\u65AD\u5F00\u3002":"\u66F4\u65B0\u670D\u52A1\u5668\u63D2\u4EF6\u65F6\u5DE5\u4F5C\u53F0\u53EF\u80FD\u77ED\u6682\u65AD\u5F00\u3002"}),(0,c.jsx)(V,{disabled:A,onClick:()=>y(""),children:"\u53D6\u6D88"}),(0,c.jsxs)(V,{primary:!0,disabled:A,onClick:()=>D("serverAction",{operation:b}),children:["\u786E\u8BA4",b==="stop"?"\u505C\u6B62":b==="restart"?"\u91CD\u542F":"\u66F4\u65B0"]})]}),g&&(0,c.jsx)("pre",{className:"dc-result",role:"status",children:String(g)}),(0,c.jsx)(Kt,{error:m}),E&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(hd,{job:E}),rt(E)&&!$r(E)&&o&&(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{primary:!0,onClick:()=>o(E.device||e),children:"\u91CD\u65B0\u6253\u5F00\u5DE5\u4F5C\u53F0"})}),m&&!rt(E)&&(0,c.jsx)(V,{onClick:()=>{h(""),L(_=>_+1)},children:"\u91CD\u65B0\u68C0\u67E5\u8FDB\u5EA6"})]}),i&&(0,c.jsxs)("section",{className:"dc-management",children:[(0,c.jsx)("h3",{children:"\u5DE5\u4F5C\u53F0"}),(0,c.jsx)("p",{className:"dc-note",children:"\u5173\u95ED\u9875\u9762\u4F1A\u6E05\u9664\u8BE5\u9875\u9762\u5C1A\u672A\u53D1\u9001\u7684\u5185\u5BB9\uFF0C\u4E3B\u673A\u4EFB\u52A1\u7EE7\u7EED\u8FD0\u884C\u3002"}),(0,c.jsx)("div",{className:"dc-actions",children:(0,c.jsx)(V,{onClick:i,children:"\u5173\u95ED\u5DE5\u4F5C\u53F0\u9875\u9762"})})]}),e.kind!=="local"&&(0,c.jsxs)("section",{className:"dc-remove",children:[(0,c.jsx)("h3",{children:"\u79FB\u9664\u4FDD\u5B58\u8FDE\u63A5"}),(0,c.jsx)("p",{className:"dc-note",children:"\u4EC5\u4ECE\u6B64\u8BBE\u5907\u79FB\u9664\uFF0C\u4E0D\u64A4\u9500\u6388\u6743\uFF0C\u4E5F\u4E0D\u5378\u8F7D\u6216\u505C\u6B62\u670D\u52A1\u5668\u3002"}),b==="remove"?(0,c.jsxs)("div",{className:"dc-actions",children:[(0,c.jsx)(V,{disabled:A,onClick:()=>y(""),children:"\u53D6\u6D88"}),(0,c.jsx)(V,{danger:!0,disabled:A,onClick:()=>D("remove"),children:"\u786E\u8BA4\u79FB\u9664"})]}):(0,c.jsx)(V,{danger:!0,icon:"trash",disabled:A,onClick:()=>y("remove"),children:"\u79FB\u9664\u8FDE\u63A5"})]})]})}function Fm({runtime:e=fd}){ro();let[t,n]=(0,T.useState)({devices:[],capabilities:{}}),[r,i]=(0,T.useState)(!1),[o,l]=(0,T.useState)(""),[a,s]=(0,T.useState)(""),[u,m]=(0,T.useState)(null),[h,g]=(0,T.useState)(!0),[v,b]=(0,T.useState)([]),[y,B]=(0,T.useState)(null),p=(0,T.useRef)(!1),d=(0,T.useRef)(new Map),[f,w]=(0,T.useState)([]),[E,M]=(0,T.useState)("devices"),[P,L]=(0,T.useState)(null);(0,T.useEffect)(()=>{let x=O=>{let W=Am(O,v.map(we=>({...we,window:d.current.get(we.id)?.contentWindow})));if(W)if(W.type==="dsh-devices:ready"){let we=v.find(Z=>Z.id===W.id),U=t.devices.find(Z=>Z.id===W.id)?.name||we.name;O.source.postMessage({type:"dsh-devices:init",name:U},new URL(we.url).origin),w(Z=>Z.includes(W.id)?Z:[...Z,W.id])}else W.type==="dsh-devices:unready"?w(we=>we.filter(U=>U!==W.id)):W.id===y&&f.includes(W.id)&&(g(!0),l(""))};return window.addEventListener("message",x),()=>window.removeEventListener("message",x)},[v,t.devices,y,f]);let A=!h&&!u&&!o&&f.includes(y);(0,T.useEffect)(()=>{let x=globalThis.__DSH_DEVICE_PARENT_ORIGIN__;return x&&parent!==window&&parent.postMessage({type:"dsh-devices:workbench-navigation",ready:A},x),()=>{x&&parent!==window&&parent.postMessage({type:"dsh-devices:workbench-navigation",ready:!1},x)}},[A]);let D=x=>{w(O=>O.filter(W=>W!==x.id)),d.current.get(x.id)?.contentWindow?.postMessage({type:"dsh-devices:probe"},new URL(x.url).origin)};(0,T.useEffect)(()=>{let x=document.createElement("style");return x.textContent=jm,document.head.append(x),()=>x.remove()},[]);let _=(0,T.useCallback)(async()=>{let x=await e.call("list");return n(x),x.relayJob&&L(x.relayJob),i(!0),x},[e]);(0,T.useEffect)(()=>{let x=()=>{let O=e.bootstrap?.();O?.code&&!O.token&&m({type:"add"})};return window.addEventListener("link:bootstrap",x),x(),()=>window.removeEventListener("link:bootstrap",x)},[e]),(0,T.useEffect)(()=>{let x=!1;return e.call("list").then(O=>{x||(n(O),O.relayJob&&L(O.relayJob),i(!0))}).catch(O=>{x||(l(O.message),i(!0))}),()=>{x=!0}},[e]);let J=(0,T.useCallback)(()=>m(null),[]),re=h&&!u&&!!(globalThis.__DSH_DEVICE_PARENT_ORIGIN__||new URLSearchParams(location.search).get("parentOrigin")),$e=(0,T.useCallback)(()=>{let x=globalThis.__DSH_DEVICE_PARENT_ORIGIN__||new URLSearchParams(location.search).get("parentOrigin");x&&parent!==window&&parent.postMessage({type:"dsh-devices:return-local"},x)},[]),z=(0,T.useCallback)(async x=>{if(!x?.id||p.current)return;if(!e.isNative()&&x.kind!=="local"&&!v.some(W=>W.id===x.id)&&v.length>=4){l("\u5DF2\u4FDD\u7559 4 \u4E2A\u5DE5\u4F5C\u53F0\u3002\u8BF7\u5728\u8BBE\u5907\u8BBE\u7F6E\u4E2D\u5173\u95ED\u6682\u4E0D\u7528\u7684\u5DE5\u4F5C\u53F0\u9875\u9762\uFF0C\u518D\u6253\u5F00\u65B0\u8BBE\u5907\u3002");return}p.current=!0,s(x.id),l("");let O=!e.isNative()&&x.kind!=="local"&&!v.some(W=>W.id===x.id);O&&g(!1);try{let W=await e.call("select",{deviceId:x.id});if(!e.isNative())if(W.device?.kind==="local"){let we=globalThis.__DSH_DEVICE_PARENT_ORIGIN__||new URLSearchParams(location.search).get("parentOrigin");we&&parent!==window&&parent.postMessage({type:"dsh-devices:return-local"},we),B(null),g(!0)}else{if(!W.url)throw new Error("\u8BBE\u5907\u672A\u8FD4\u56DE\u5DE5\u4F5C\u53F0\u5730\u5740\uFF0C\u8BF7\u91CD\u65B0\u8FDE\u63A5");let we=wm(W.url,location.origin);b(U=>U.some(Z=>Z.id===x.id)?U.map(Z=>Z.id===x.id&&new URL(Z.url).origin!==new URL(we).origin?{...Z,name:x.name,url:we}:Z):[...U,{id:x.id,name:x.name,url:we}]),B(x.id),g(!1)}m(null),await _()}catch(W){l(W.message),m(null),O&&g(!0)}finally{p.current=!1,s("")}},[e,_,v]),ie=(0,T.useCallback)(async x=>{let O=await _();x?.id?await z(x):(m(null),g(!0),n(O))},[_,z]),q=t.devices.find(x=>x.id===y),X=[...t.devices].sort((x,O)=>+(O.kind==="local")-+(x.kind==="local")),ae=x=>y===x.id?"\u5F53\u524D\u6253\u5F00\u7684\u5DE5\u4F5C\u53F0":x.kind==="local"?"\u672C\u673A\u5DE5\u4F5C\u53F0":od(x),I=x=>(0,c.jsxs)("article",{className:`dc-device ${y===x.id?"dc-selected":""}`,children:[(0,c.jsxs)("button",{className:"dc-device-open",disabled:!!a,onClick:()=>z(x),children:[(0,c.jsx)("span",{className:"dc-device-symbol",children:(0,c.jsx)(Q,{name:no(x),size:22})}),(0,c.jsxs)("span",{className:"dc-device-copy",children:[(0,c.jsx)("strong",{title:x.name,children:x.name}),(0,c.jsxs)("small",{children:[ld(x),(0,c.jsx)("span",{"aria-hidden":"true",children:" \xB7 "}),(0,c.jsx)("span",{"data-status":x.status,children:a===x.id?"\u6B63\u5728\u6253\u5F00\u2026":ae(x)})]}),x.currentPath&&(0,c.jsx)("span",{className:"dc-footnote",children:x.currentPath==="relay"?"\u7ECF\u6211\u7684\u4E2D\u7EE7":"\u76F4\u8FDE"}),x.warning&&(0,c.jsx)("span",{className:"dc-device-error",children:x.warning}),x.lastError&&(0,c.jsx)("span",{className:"dc-device-error",children:x.lastError})]}),(0,c.jsx)(Q,{name:"external",size:16})]}),(0,c.jsx)(V,{icon:"more","aria-label":`${x.name}\u8BBE\u7F6E`,onClick:()=>m({type:"manage",device:x}),disabled:!!a})]},x.id),K=x=>{M(x),g(!0),l("")},me=x=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(x.key))return;x.preventDefault();let O=["devices","connection","relay"],W=x.key==="Home"?O[0]:x.key==="End"?O.at(-1):O[(O.indexOf(E)+(x.key==="ArrowRight"?1:O.length-1))%O.length];K(W),x.currentTarget.parentElement.querySelector("#dc-tab-"+W)?.focus()};return(0,c.jsxs)("main",{className:"dc-root",children:[(0,c.jsxs)("header",{className:"dc-topbar"+(A?" dc-topbar-integrated":""),children:[(0,c.jsxs)("div",{className:"dc-topbar-main",children:[re&&(0,c.jsx)(V,{className:"dc-back",icon:"chevronLeft","aria-label":"\u8FD4\u56DE\u5DE5\u4F5C\u53F0",onClick:$e}),(0,c.jsx)("div",{className:"dc-segment",role:"tablist","aria-label":"\u8BBE\u5907\u4E2D\u5FC3",children:[["devices","devices","\u8BBE\u5907"],["connection","link","\u8FDE\u63A5"],["relay","server","\u4E2D\u7EE7"]].map(([x,O,W])=>(0,c.jsxs)("button",{type:"button",id:"dc-tab-"+x,role:"tab","aria-selected":E===x&&h,"aria-controls":"dc-panel-"+x,tabIndex:E===x?0:-1,className:"dc-segment-tab"+(E===x&&h?" is-active":""),onClick:()=>K(x),onKeyDown:me,children:[(0,c.jsx)(Q,{name:O,size:14}),W]},x))})]}),y&&(0,c.jsxs)("div",{className:"dc-topbar-workbench",children:[(0,c.jsx)(V,{icon:"external",onClick:()=>{g(!1),l("")},"aria-label":"\u8FD4\u56DE"+(q?.name||"\u5F53\u524D")+"\u5DE5\u4F5C\u53F0",children:q?.name||"\u5DE5\u4F5C\u53F0"}),(0,c.jsx)(V,{icon:"more","aria-label":"\u5F53\u524D\u8BBE\u5907\u8BBE\u7F6E",onClick:()=>m({type:"manage",device:q})})]})]}),(0,c.jsx)("div",{className:"dc-surface",hidden:!h,children:(0,c.jsxs)("section",{className:"dc-content",children:[(0,c.jsxs)("div",{className:"dc-heading",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("span",{className:"dc-eyebrow",children:"\u8BBE\u5907\u4E2D\u5FC3"}),(0,c.jsx)("h1",{children:E==="relay"?"\u6211\u7684\u4E2D\u7EE7":E==="connection"?"\u8FDE\u63A5\u8BBE\u7F6E":"\u6211\u7684\u8BBE\u5907"}),(0,c.jsx)("p",{children:E==="relay"?"\u76F4\u8FDE\u5931\u8D25\u65F6\uFF0C\u6309\u4E3B\u5907\u987A\u5E8F\u81EA\u52A8\u8F6C\u53D1\u3002":E==="connection"?"\u7BA1\u7406\u672C\u673A\u5982\u4F55\u88AB\u5176\u4ED6\u8BBE\u5907\u53D1\u73B0\u548C\u8FDE\u63A5\u3002":"\u672C\u673A\u548C\u5176\u4ED6\u8BBE\u5907\u90FD\u5728\u8FD9\u91CC\uFF0C\u9009\u62E9\u8BBE\u5907\u5373\u53EF\u6253\u5F00\u5DE5\u4F5C\u53F0\u3002"})]}),(0,c.jsxs)("div",{className:"dc-heading-actions",children:[E==="devices"&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(V,{icon:"refresh","aria-label":"\u5237\u65B0\u8BBE\u5907",disabled:!!a,onClick:()=>{l(""),_().catch(x=>l(x.message))}}),(0,c.jsx)(V,{primary:!0,onClick:()=>m({type:"add"}),children:"\u6DFB\u52A0\u8BBE\u5907"})]}),E==="relay"&&t.capabilities?.relayDeploy&&(0,c.jsx)(V,{primary:!0,onClick:()=>m({type:"relay"}),children:P&&!rt(P)?"\u67E5\u770B\u90E8\u7F72\u8FDB\u5EA6":"\u6DFB\u52A0\u4E2D\u7EE7"})]})]}),(0,c.jsx)(Kt,{error:o}),!r&&(0,c.jsx)(Ql,{label:"\u6B63\u5728\u8BFB\u53D6\u8BBE\u5907\u2026",skeleton:!0}),(0,c.jsxs)("div",{id:"dc-panel-devices",className:"dc-tab-panel",role:"tabpanel","aria-labelledby":"dc-tab-devices",hidden:!r||E!=="devices",children:[(0,c.jsxs)("section",{className:"dc-device-directory","aria-label":"\u8BBE\u5907\u5217\u8868",children:[(0,c.jsx)("div",{className:"dc-section-heading",children:(0,c.jsxs)("h2",{children:["\u5168\u90E8\u8BBE\u5907 ",(0,c.jsx)("span",{className:"dc-count",children:X.length})]})}),(0,c.jsx)("div",{className:"dc-device-list",children:X.map(I)}),r&&!X.length&&!o&&(0,c.jsxs)("div",{className:"dc-empty",children:[(0,c.jsx)("span",{className:"dc-empty-symbol",children:(0,c.jsx)(Q,{name:"devices",size:30})}),(0,c.jsx)("h2",{children:"\u628A\u5DE5\u4F5C\u53F0\u5E26\u5230\u8EAB\u8FB9"}),(0,c.jsxs)("p",{children:["\u6DFB\u52A0\u4E00\u53F0\u5DF2\u6709\u8BBE\u5907\uFF0C",(0,c.jsx)("br",{}),"\u6216\u901A\u8FC7 SSH \u8FDE\u63A5\u81EA\u5DF1\u7684\u670D\u52A1\u5668\u3002"]})]})]}),t.capabilities?.ssh===!1&&(0,c.jsx)("p",{className:"dc-footnote",children:"\u6B64\u5BA2\u6237\u7AEF\u652F\u6301\u8FDE\u63A5\u5DF2\u6709\u8BBE\u5907\u3002SSH \u5B89\u88C5\u8BF7\u4F7F\u7528\u65B0\u7248\u684C\u9762\u6216 Android \u5BA2\u6237\u7AEF\u3002"}),(0,c.jsxs)("p",{className:"dc-footnote dc-bottom-note",children:[(0,c.jsx)(Q,{name:"check",size:14}),"\u5207\u6362\u8BBE\u5907\u4E0D\u4F1A\u505C\u6B62\u4E3B\u673A\u4E0A\u8FD0\u884C\u7684\u4EFB\u52A1"]})]}),(0,c.jsx)("div",{id:"dc-panel-connection",className:"dc-tab-panel",role:"tabpanel","aria-labelledby":"dc-tab-connection",hidden:!r||E!=="connection",children:t.capabilities?.hostAdmin?(0,c.jsxs)("section",{className:"dc-connection-panel",children:[(0,c.jsxs)("div",{className:"dc-section-heading",children:[(0,c.jsx)("h2",{children:"\u672C\u673A\u8FDE\u63A5"}),(0,c.jsx)("span",{children:"\u5141\u8BB8\u5176\u4ED6\u8BBE\u5907\u8BBF\u95EE\u6B64\u5DE5\u4F5C\u53F0"})]}),(0,c.jsx)(Cm,{embedded:!0,management:e.hostCall})]}):(0,c.jsxs)("div",{className:"dc-empty",children:[(0,c.jsx)("span",{className:"dc-empty-symbol",children:(0,c.jsx)(Q,{name:"link",size:30})}),(0,c.jsx)("h2",{children:"\u5F53\u524D\u5BA2\u6237\u7AEF\u4E0D\u652F\u6301\u672C\u673A\u8FDE\u63A5\u7BA1\u7406"}),(0,c.jsx)("p",{children:"\u8BF7\u4F7F\u7528\u684C\u9762\u5BA2\u6237\u7AEF\uFF0C\u6216\u4ECE\u672C\u673A\u5DE5\u4F5C\u53F0\u8BBE\u7F6E\u4E2D\u64CD\u4F5C\u3002"})]})}),(0,c.jsx)("div",{id:"dc-panel-relay",className:"dc-tab-panel",role:"tabpanel","aria-labelledby":"dc-tab-relay",hidden:!r||E!=="relay",children:t.capabilities?.relayDeploy?(0,c.jsx)(Y2,{runtime:e}):(0,c.jsxs)("div",{className:"dc-empty",children:[(0,c.jsx)("span",{className:"dc-empty-symbol",children:(0,c.jsx)(Q,{name:"server",size:30})}),(0,c.jsx)("h2",{children:"\u5F53\u524D\u5BA2\u6237\u7AEF\u4E0D\u652F\u6301\u4E2D\u7EE7\u90E8\u7F72"}),(0,c.jsxs)("p",{children:["\u8BF7\u4F7F\u7528\u684C\u9762\u5BA2\u6237\u7AEF\uFF0C\u6216\u5728\u4E2D\u7EE7\u670D\u52A1\u5668\u4E0A\u8FD0\u884C ",(0,c.jsx)("code",{children:"benchgo-relay install"}),"\u3002"]})]})})]})}),(0,c.jsx)("div",{className:"dc-workbenches",hidden:h,children:v.map(x=>(0,c.jsx)("iframe",{ref:O=>{O?d.current.set(x.id,O):d.current.delete(x.id)},onLoad:()=>D(x),src:x.url,title:x.name+"\u5DE5\u4F5C\u53F0",hidden:y!==x.id,allow:"clipboard-read; clipboard-write; microphone",referrerPolicy:"no-referrer"},x.id))}),!h&&o&&(0,c.jsxs)("div",{className:"dc-workbench-error",children:[(0,c.jsx)(Kt,{error:o}),(0,c.jsx)(V,{onClick:()=>g(!0),children:"\u8FD4\u56DE\u8BBE\u5907"})]}),u&&(0,c.jsx)($2,{title:u.type==="add"?"\u6DFB\u52A0\u8BBE\u5907":u.type==="relay"?"\u6DFB\u52A0\u4E2D\u7EE7":u.device.name,onClose:J,busy:!!a,children:u.type==="relay"?(0,c.jsx)(q2,{runtime:e,onClose:J,job:P,setJob:L,onChanged:async()=>{await _(),m(null),M("relay")}}):u.type==="add"?(0,c.jsx)(K2,{runtime:e,onAdded:ie,sshAvailable:t.capabilities?.ssh!==!1}):(0,c.jsx)(G2,{device:u.device,runtime:e,onChanged:_,onOpenWorkbench:z,onCloseWorkbench:(e.isNative()||v.some(x=>x.id===u.device.id))&&u.device.kind!=="local"?()=>{e.isNative()&&e.call("closeWorkbench",{deviceId:u.device.id}).catch(x=>l(x.message)),b(x=>x.filter(O=>O.id!==u.device.id)),y===u.device.id&&(B(null),g(!0)),m(null)}:void 0,onRemoved:x=>{b(O=>O.filter(W=>W.id!==x)),y===x&&(B(null),g(!0)),m(null),_().catch(O=>l(O.message))}})})]})}var vd=e=>e==="light"||e==="dark"?e:"",Um=e=>e.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";function J2(e=globalThis){return vd(new URLSearchParams(e.location?.search||"").get("theme"))||Um(e)}function Hm(e=()=>{},t=globalThis){let n=new URLSearchParams(t.location?.search||""),r=t.__DSH_DEVICE_PARENT_ORIGIN__||n.get("parentOrigin"),i=t.parent&&t.parent!==t,o=i&&!!vd(n.get("theme")),l,a=h=>{if(h===l)return;l=h;let g=t.document?.documentElement,v=t.document?.body;g?.style&&(g.style.colorScheme=h),g?.setAttribute?.("data-dsh-device-theme",h),v?.toggleAttribute?.("data-ds-dark-theme",h==="dark"),e(h)},s=t.matchMedia?.("(prefers-color-scheme: dark)"),u=()=>{o||a(Um(t))},m=h=>{if(!i||!r||h.source!==t.parent||h.origin!==r||h.data?.type!=="dsh-devices:theme")return;let g=vd(h.data.theme);if(!g)return;let v=h.data.background;typeof v=="string"&&/^(#[\da-f]{3,8}|rgba?\([\d.,%\s]+\))$/i.test(v)&&t.document?.documentElement?.style?.setProperty?.("--dsh-conversation-background",v),o=!0,a(g)};return t.addEventListener("message",m),s?.addEventListener?s.addEventListener("change",u):s?.addListener?.(u),a(J2(t)),i&&r&&t.parent.postMessage({type:"dsh-devices:theme-ready"},r),()=>{t.removeEventListener("message",m),s?.removeEventListener?s.removeEventListener("change",u):s?.removeListener?.(u)}}var ct=$(ce(),1);function Om(){let e=Dm();return(0,Rn.useEffect)(()=>{if(e)return Hm()},[e]),e?(0,ct.jsx)(Fm,{}):(0,ct.jsx)(X2,{})}function X2(){let[e,t]=(0,Rn.useState)(()=>an()),[n,r]=(0,Rn.useState)(""),[i,o]=(0,Rn.useState)(0);return(0,Rn.useEffect)(()=>{let l=()=>t(an()),a=s=>r(s.detail||"\u5DE5\u4F5C\u53F0\u6682\u65F6\u65E0\u6CD5\u6253\u5F00\uFF0C\u8BF7\u91CD\u8BD5");return window.addEventListener("link:identity-updated",l),window.addEventListener("link:bootstrap",l),window.addEventListener("link:workbench-error",a),()=>{window.removeEventListener("link:identity-updated",l),window.removeEventListener("link:bootstrap",l),window.removeEventListener("link:workbench-error",a)}},[]),(0,Rn.useEffect)(()=>{if(!e?.token)return;let l=!1;return r(""),Tc().catch(a=>{l||r(a.message)}),()=>{l=!0}},[e?.token,i]),e?.token?(0,ct.jsxs)("main",{className:"link-workbench-loading",style:{minHeight:"100dvh",display:"grid",placeContent:"center",justifyItems:"center",gap:16,padding:24,boxSizing:"border-box",fontFamily:"system-ui",colorScheme:"light dark"},children:[(0,ct.jsx)(Kr,{size:64}),(0,ct.jsx)("h1",{style:{margin:0,fontSize:22},children:"BenchGo"}),(0,ct.jsx)("p",{role:n?"alert":"status",style:{maxWidth:360,overflowWrap:"anywhere"},children:n||"\u6B63\u5728\u6253\u5F00\u5DE5\u4F5C\u53F0\u2026"}),n&&(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)("button",{type:"button",onClick:()=>o(l=>l+1),children:"\u91CD\u65B0\u6253\u5F00\u5DE5\u4F5C\u53F0"}),(0,ct.jsx)("button",{type:"button",onClick:()=>{Mc(),t(null)},children:"\u91CD\u65B0\u914D\u5BF9"})]})]}):(0,ct.jsx)(Rm,{})}var Zm=$(ce(),1);(0,Vm.createRoot)(document.getElementById("root")).render((0,Zm.jsx)(Om,{}));})();
|
|
554
|
+
/*! Bundled license information:
|
|
555
|
+
|
|
556
|
+
react/cjs/react.production.min.js:
|
|
557
|
+
(**
|
|
558
|
+
* @license React
|
|
559
|
+
* react.production.min.js
|
|
560
|
+
*
|
|
561
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
562
|
+
*
|
|
563
|
+
* This source code is licensed under the MIT license found in the
|
|
564
|
+
* LICENSE file in the root directory of this source tree.
|
|
565
|
+
*)
|
|
566
|
+
|
|
567
|
+
scheduler/cjs/scheduler.production.min.js:
|
|
568
|
+
(**
|
|
569
|
+
* @license React
|
|
570
|
+
* scheduler.production.min.js
|
|
571
|
+
*
|
|
572
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
573
|
+
*
|
|
574
|
+
* This source code is licensed under the MIT license found in the
|
|
575
|
+
* LICENSE file in the root directory of this source tree.
|
|
576
|
+
*)
|
|
577
|
+
|
|
578
|
+
react-dom/cjs/react-dom.production.min.js:
|
|
579
|
+
(**
|
|
580
|
+
* @license React
|
|
581
|
+
* react-dom.production.min.js
|
|
582
|
+
*
|
|
583
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
584
|
+
*
|
|
585
|
+
* This source code is licensed under the MIT license found in the
|
|
586
|
+
* LICENSE file in the root directory of this source tree.
|
|
587
|
+
*)
|
|
588
|
+
|
|
589
|
+
react/cjs/react-jsx-runtime.production.min.js:
|
|
590
|
+
(**
|
|
591
|
+
* @license React
|
|
592
|
+
* react-jsx-runtime.production.min.js
|
|
593
|
+
*
|
|
594
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
595
|
+
*
|
|
596
|
+
* This source code is licensed under the MIT license found in the
|
|
597
|
+
* LICENSE file in the root directory of this source tree.
|
|
598
|
+
*)
|
|
599
|
+
*/
|