march-cli 0.1.35 → 0.1.37
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/package.json +1 -1
- package/src/agent/code-search/cache.mjs +133 -0
- package/src/agent/code-search/chunk-rules.mjs +107 -0
- package/src/agent/code-search/chunker.mjs +125 -0
- package/src/agent/code-search/engine.mjs +109 -0
- package/src/agent/code-search/languages.mjs +25 -0
- package/src/agent/code-search/parser-pool.mjs +29 -0
- package/src/agent/code-search/rerank.mjs +43 -0
- package/src/agent/code-search/retrieval/bm25.mjs +47 -0
- package/src/agent/code-search/retrieval/fusion.mjs +18 -0
- package/src/agent/code-search/retrieval/model2vec.mjs +96 -0
- package/src/agent/code-search/retrieval/safetensors.mjs +49 -0
- package/src/agent/code-search/retrieval/vector.mjs +107 -0
- package/src/agent/code-search/retrieval/wordpiece.mjs +82 -0
- package/src/agent/code-search/scanner.mjs +84 -0
- package/src/agent/code-search/tokenize.mjs +16 -0
- package/src/agent/code-search/tool.mjs +75 -0
- package/src/agent/runner/provider-quota-runtime.mjs +38 -0
- package/src/agent/runner.mjs +14 -10
- package/src/agent/runtime/remote-runner-client.mjs +2 -0
- package/src/agent/runtime/runner-ipc-target.mjs +7 -0
- package/src/agent/runtime/runner-process-client.mjs +5 -0
- package/src/agent/runtime/runner-process-factory.mjs +5 -0
- package/src/agent/runtime/runner-runtime-host.mjs +2 -0
- package/src/agent/runtime/state/runner-state.mjs +1 -0
- package/src/agent/runtime/ui-event-bridge.mjs +2 -0
- package/src/agent/session/session-options.mjs +2 -1
- package/src/agent/tools.mjs +7 -1
- package/src/agent/turn/turn-events.mjs +41 -0
- package/src/agent/turn/turn-runner.mjs +5 -2
- package/src/cli/commands/registry/slash-command-registry.mjs +10 -7
- package/src/cli/commands/status-command.mjs +61 -35
- package/src/cli/input/history-store.mjs +65 -3
- package/src/cli/repl-loop.mjs +8 -6
- package/src/cli/startup/app-runtime.mjs +5 -29
- package/src/cli/startup/create-runtime-runner.mjs +4 -46
- package/src/cli/tui/input/history-navigation-controller.mjs +56 -0
- package/src/cli/turn/turn-input-preparer.mjs +0 -1
- package/src/cli/ui.mjs +9 -0
- package/src/context/engine.mjs +4 -2
- package/src/context/system-core/base.md +9 -1
- package/src/history/runner.mjs +11 -0
- package/src/history/store.mjs +129 -0
- package/src/history/tool.mjs +39 -0
- package/src/lsp/client.mjs +12 -5
- package/src/lsp/service.mjs +15 -3
- package/src/main.mjs +1 -2
- package/src/provider/quota/codex.mjs +278 -0
- package/src/provider/quota/index.mjs +46 -0
- package/src/provider/quota/transport-observer.mjs +99 -0
- package/src/web-ui/command.mjs +2 -2
- package/src/web-ui/runtime-host.mjs +7 -23
- package/src/web-ui/server.mjs +1 -0
- package/src/web-ui/session-manager.mjs +4 -2
- package/src/web-ui/src/components/AppShell.tsx +1 -0
- package/src/web-ui/src/components/RightSidebar.tsx +47 -2
- package/src/web-ui/src/model.ts +20 -0
- package/src/web-ui/src/runtime/client.ts +8 -1
- package/src/web-ui/src/runtime/useWebRuntime.ts +13 -1
- package/src/web-ui/src/styles/shell.css +10 -0
- package/src/web-ui/dist/assets/index-BUmhnID4.css +0 -1
- package/src/web-ui/dist/assets/index-CtuqTjcB.js +0 -1845
- package/src/web-ui/dist/index.html +0 -13
|
@@ -1,1845 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.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`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function k(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+te(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(O,`$&/`)+`/`),k(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+te(s,l);c+=k(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+te(s,l++),c+=k(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return k(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function j(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var M={current:null},N={transition:null},ne={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:N,ReactCurrentOwner:C};function re(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,e.act=re,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:j}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},e.unstable_act=re,e.useCallback=function(e,t){return M.current.useCallback(e,t)},e.useContext=function(e){return M.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return M.current.useDeferredValue(e)},e.useEffect=function(e,t){return M.current.useEffect(e,t)},e.useId=function(){return M.current.useId()},e.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return M.current.useMemo(e,t)},e.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},e.useRef=function(e){return M.current.useRef(e)},e.useState=function(e){return M.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return M.current.useTransition()},e.version=`18.3.1`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,A(x);else{var t=n(l);t!==null&&j(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&j(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function ee(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?O():(S=!1,C=null)}}else S=!1}var O;if(typeof v==`function`)O=function(){v(ee)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,k=te.port2;te.port1.onmessage=ee,O=function(){k.postMessage(null)}}else O=function(){g(ee,0)};function A(e){C=e,S||(S=!0,O())}function j(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,A(x))},e.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`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,j(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,A(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u(),n=f();function r(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 i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},m={};function h(e){return l.call(m,e)?!0:l.call(p,e)?!1:d.test(e)?m[e]=!0:(p[e]=!0,!1)}function g(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?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){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=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(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){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(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(b,x);y[t]=new v(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(b,x);y[t]=new v(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(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(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&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),O=Symbol.for(`react.provider`),te=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),j=Symbol.for(`react.suspense_list`),M=Symbol.for(`react.memo`),N=Symbol.for(`react.lazy`),ne=Symbol.for(`react.offscreen`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var P=Object.assign,ae;function oe(e){if(ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ae=t&&t[1]||``}return`
|
|
2
|
-
`+ae+e}var se=!1;function ce(e,t){if(!e||se)return``;se=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
|
|
3
|
-
`),a=r.stack.split(`
|
|
4
|
-
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
|
|
5
|
-
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?oe(e):``}function le(e){switch(e.tag){case 5:return oe(e.type);case 16:return oe(`Lazy`);case 13:return oe(`Suspense`);case 19:return oe(`SuspenseList`);case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return``}}function ue(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 E:return`Fragment`;case T:return`Portal`;case ee:return`Profiler`;case D:return`StrictMode`;case A:return`Suspense`;case j:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case te:return(e.displayName||`Context`)+`.Consumer`;case O:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case N:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function de(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`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ue(t);case 8:return t===D?`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 fe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function me(e){var t=pe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function he(e){e._valueTracker||=me(e)}function ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=pe(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function _e(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ve(e,t){var n=t.checked;return P({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ye(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=fe(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function be(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function xe(e,t){be(e,t);var n=fe(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`)?Ce(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ce(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Se(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 Ce(e,t,n){(t!==`number`||_e(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var we=Array.isArray;function Te(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=``+fe(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 Ee(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return P({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(we(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:fe(n)}}function Oe(e,t){var n=fe(t.value),r=fe(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 F(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function ke(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 Ae(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?ke(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var je,Me=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(je||=document.createElement(`div`),je.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ne(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pe={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},Fe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Pe).forEach(function(e){Fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pe[t]=Pe[e]})});function Ie(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Pe.hasOwnProperty(e)&&Pe[e]?(``+t).trim():t+`px`}function Le(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ie(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Re=P({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 ze(e,t){if(t){if(Re[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Be(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 Ve=null;function He(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ue=null,We=null,Ge=null;function Ke(e){if(e=Ri(e)){if(typeof Ue!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Bi(t),Ue(e.stateNode,e.type,t))}}function qe(e){We?Ge?Ge.push(e):Ge=[e]:We=e}function Je(){if(We){var e=We,t=Ge;if(Ge=We=null,Ke(e),t)for(e=0;e<t.length;e++)Ke(t[e])}}function Ye(e,t){return e(t)}function Xe(){}var Ze=!1;function Qe(e,t,n){if(Ze)return e(t,n);Ze=!0;try{return Ye(e,t,n)}finally{Ze=!1,(We!==null||Ge!==null)&&(Xe(),Je())}}function $e(e,t){var n=e.stateNode;if(n===null)return null;var i=Bi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var et=!1;if(c)try{var tt={};Object.defineProperty(tt,"passive",{get:function(){et=!0}}),window.addEventListener(`test`,tt,tt),window.removeEventListener(`test`,tt,tt)}catch{et=!1}function nt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var rt=!1,it=null,at=!1,ot=null,st={onError:function(e){rt=!0,it=e}};function ct(e,t,n,r,i,a,o,s,c){rt=!1,it=null,nt.apply(st,arguments)}function lt(e,t,n,i,a,o,s,c,l){if(ct.apply(this,arguments),rt){if(rt){var u=it;rt=!1,it=null}else throw Error(r(198));at||(at=!0,ot=u)}}function ut(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function I(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 L(e){if(ut(e)!==e)throw Error(r(188))}function dt(e){var t=e.alternate;if(!t){if(t=ut(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return L(a),e;if(o===i)return L(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ft(e){return e=dt(e),e===null?null:pt(e)}function pt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pt(e);if(t!==null)return t;e=e.sibling}return null}var mt=n.unstable_scheduleCallback,ht=n.unstable_cancelCallback,gt=n.unstable_shouldYield,_t=n.unstable_requestPaint,vt=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,bt=n.unstable_ImmediatePriority,xt=n.unstable_UserBlockingPriority,St=n.unstable_NormalPriority,Ct=n.unstable_LowPriority,wt=n.unstable_IdlePriority,Tt=null,Et=null;function Dt(e){if(Et&&typeof Et.onCommitFiberRoot==`function`)try{Et.onCommitFiberRoot(Tt,e,void 0,(e.current.flags&128)==128)}catch{}}var Ot=Math.clz32?Math.clz32:jt,kt=Math.log,At=Math.LN2;function jt(e){return e>>>=0,e===0?32:31-(kt(e)/At|0)|0}var Mt=64,Nt=4194304;function Pt(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 Ft(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Pt(a))):r=Pt(s)}else o=n&~i,o===0?a!==0&&(r=Pt(a)):r=Pt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ot(t),i=1<<n,r|=e[n],t&=~i;return r}function It(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 Lt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ot(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=It(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Rt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function zt(){var e=Mt;return Mt<<=1,!(Mt&4194240)&&(Mt=64),e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function Ht(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-Ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var R=0;function Wt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Gt,Kt,qt,Jt,z,Yt=!1,B=[],Xt=null,Zt=null,Qt=null,$t=new Map,en=new Map,V=[],tn=`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 nn(e,t){switch(e){case`focusin`:case`focusout`:Xt=null;break;case`dragenter`:case`dragleave`:Zt=null;break;case`mouseover`:case`mouseout`:Qt=null;break;case`pointerover`:case`pointerout`:$t.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:en.delete(t.pointerId)}}function rn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ri(t),t!==null&&Kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function an(e,t,n,r,i){switch(t){case`focusin`:return Xt=rn(Xt,e,t,n,r,i),!0;case`dragenter`:return Zt=rn(Zt,e,t,n,r,i),!0;case`mouseover`:return Qt=rn(Qt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return $t.set(a,rn($t.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,en.set(a,rn(en.get(a)||null,e,t,n,r,i)),!0}return!1}function on(e){var t=Li(e.target);if(t!==null){var n=ut(t);if(n!==null){if(t=n.tag,t===13){if(t=I(n),t!==null){e.blockedOn=t,z(e.priority,function(){qt(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 sn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ve=r,n.target.dispatchEvent(r),Ve=null}else return t=Ri(n),t!==null&&Kt(t),e.blockedOn=n,!1;t.shift()}return!0}function cn(e,t,n){sn(e)&&n.delete(t)}function ln(){Yt=!1,Xt!==null&&sn(Xt)&&(Xt=null),Zt!==null&&sn(Zt)&&(Zt=null),Qt!==null&&sn(Qt)&&(Qt=null),$t.forEach(cn),en.forEach(cn)}function un(e,t){e.blockedOn===t&&(e.blockedOn=null,Yt||(Yt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ln)))}function dn(e){function t(t){return un(t,e)}if(0<B.length){un(B[0],e);for(var n=1;n<B.length;n++){var r=B[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xt!==null&&un(Xt,e),Zt!==null&&un(Zt,e),Qt!==null&&un(Qt,e),$t.forEach(t),en.forEach(t),n=0;n<V.length;n++)r=V[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<V.length&&(n=V[0],n.blockedOn===null);)on(n),n.blockedOn===null&&V.shift()}var fn=C.ReactCurrentBatchConfig,pn=!0;function mn(e,t,n,r){var i=R,a=fn.transition;fn.transition=null;try{R=1,gn(e,t,n,r)}finally{R=i,fn.transition=a}}function hn(e,t,n,r){var i=R,a=fn.transition;fn.transition=null;try{R=4,gn(e,t,n,r)}finally{R=i,fn.transition=a}}function gn(e,t,n,r){if(pn){var i=vn(e,t,n,r);if(i===null)li(e,t,r,_n,n),nn(e,r);else if(an(i,e,t,n,r))r.stopPropagation();else if(nn(e,r),t&4&&-1<tn.indexOf(e)){for(;i!==null;){var a=Ri(i);if(a!==null&&Gt(a),a=vn(e,t,n,r),a===null&&li(e,t,r,_n,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else li(e,t,r,null,n)}}var _n=null;function vn(e,t,n,r){if(_n=null,e=He(r),e=Li(e),e!==null)if(t=ut(e),t===null)e=null;else if(n=t.tag,n===13){if(e=I(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 _n=e,null}function yn(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(yt()){case bt:return 1;case xt:return 4;case St:case Ct:return 16;case wt:return 536870912;default:return 16}default:return 16}}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Sn=i.slice(e,1<r?1-r:void 0)}function wn(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 Tn(){return!0}function En(){return!1}function Dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Tn:En,this.isPropagationStopped=En,this}return P(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Tn)},persist:function(){},isPersistent:Tn}),t}var On={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=Dn(On),An=P({},On,{view:0,detail:0}),jn=Dn(An),Mn,Nn,Pn,Fn=P({},An,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kn,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!==Pn&&(Pn&&e.type===`mousemove`?(Mn=e.screenX-Pn.screenX,Nn=e.screenY-Pn.screenY):Nn=Mn=0,Pn=e),Mn)},movementY:function(e){return`movementY`in e?e.movementY:Nn}}),In=Dn(Fn),Ln=Dn(P({},Fn,{dataTransfer:0})),Rn=Dn(P({},An,{relatedTarget:0})),zn=Dn(P({},On,{animationName:0,elapsedTime:0,pseudoElement:0})),Bn=Dn(P({},On,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Vn=Dn(P({},On,{data:0})),Hn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Un={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`},Wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wn[e])?!!t[e]:!1}function Kn(){return Gn}var qn=Dn(P({},An,{key:function(e){if(e.key){var t=Hn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=wn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Un[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kn,charCode:function(e){return e.type===`keypress`?wn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?wn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Jn=Dn(P({},Fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Yn=Dn(P({},An,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kn})),Xn=Dn(P({},On,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zn=Dn(P({},Fn,{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})),Qn=[9,13,27,32],$n=c&&`CompositionEvent`in window,er=null;c&&`documentMode`in document&&(er=document.documentMode);var tr=c&&`TextEvent`in window&&!er,nr=c&&(!$n||er&&8<er&&11>=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var sr=!1;function cr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function lr(e,t){if(sr)return e===`compositionend`||!$n&&ar(e,t)?(e=Cn(),Sn=xn=bn=null,sr=!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 nr&&t.locale!==`ko`?null:t.data;default:return null}}var ur={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 dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ur[e.type]:t===`textarea`}function fr(e,t,n,r){qe(r),t=di(t,`onChange`),0<t.length&&(n=new kn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var pr=null,mr=null;function hr(e){ri(e,0)}function gr(e){if(ge(zi(e)))return e}function _r(e,t){if(e===`change`)return t}var vr=!1;if(c){var yr;if(c){var br=`oninput`in document;if(!br){var xr=document.createElement(`div`);xr.setAttribute(`oninput`,`return;`),br=typeof xr.oninput==`function`}yr=br}else yr=!1;vr=yr&&(!document.documentMode||9<document.documentMode)}function Sr(){pr&&(pr.detachEvent(`onpropertychange`,Cr),mr=pr=null)}function Cr(e){if(e.propertyName===`value`&&gr(mr)){var t=[];fr(t,mr,e,He(e)),Qe(hr,t)}}function wr(e,t,n){e===`focusin`?(Sr(),pr=t,mr=n,pr.attachEvent(`onpropertychange`,Cr)):e===`focusout`&&Sr()}function Tr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return gr(mr)}function Er(e,t){if(e===`click`)return gr(t)}function Dr(e,t){if(e===`input`||e===`change`)return gr(t)}function Or(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var kr=typeof Object.is==`function`?Object.is:Or;function Ar(e,t){if(kr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)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(!l.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mr(e,t){var n=jr(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function H(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nr(){for(var e=window,t=_e();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=_e(e.document)}return t}function Pr(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 Fr(e){var t=Nr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H(n.ownerDocument.documentElement,n)){if(r!==null&&Pr(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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Mr(n,a);var o=Mr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 Ir=c&&`documentMode`in document&&11>=document.documentMode,Lr=null,U=null,W=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Lr==null||Lr!==_e(r)||(r=Lr,`selectionStart`in r&&Pr(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}),W&&Ar(W,r)||(W=r,r=di(U,`onSelect`),0<r.length&&(t=new kn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Lr)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Vr={animationend:Br(`Animation`,`AnimationEnd`),animationiteration:Br(`Animation`,`AnimationIteration`),animationstart:Br(`Animation`,`AnimationStart`),transitionend:Br(`Transition`,`TransitionEnd`)},Hr={},Ur={};c&&(Ur=document.createElement(`div`).style,`AnimationEvent`in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),`TransitionEvent`in window||delete Vr.transitionend.transition);function Wr(e){if(Hr[e])return Hr[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ur)return Hr[e]=t[n];return e}var Gr=Wr(`animationend`),Kr=Wr(`animationiteration`),qr=Wr(`animationstart`),Jr=Wr(`transitionend`),Yr=new Map,Xr=`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 Zr(e,t){Yr.set(e,t),o(t,[e])}for(var Qr=0;Qr<Xr.length;Qr++){var $r=Xr[Qr];Zr($r.toLowerCase(),`on`+($r[0].toUpperCase()+$r.slice(1)))}Zr(Gr,`onAnimationEnd`),Zr(Kr,`onAnimationIteration`),Zr(qr,`onAnimationStart`),Zr(`dblclick`,`onDoubleClick`),Zr(`focusin`,`onFocus`),Zr(`focusout`,`onBlur`),Zr(Jr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ei=`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(` `),ti=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ei));function ni(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,lt(r,t,void 0,e),e.currentTarget=null}function ri(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ni(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ni(i,s,l),a=c}}}if(at)throw e=ot,at=!1,ot=null,e}function ii(e,t){var n=t[Pi];n===void 0&&(n=t[Pi]=new Set);var r=e+`__bubble`;n.has(r)||(ci(t,e,2,!1),n.add(r))}function ai(e,t,n){var r=0;t&&(r|=4),ci(n,e,r,t)}var oi=`_reactListening`+Math.random().toString(36).slice(2);function si(e){if(!e[oi]){e[oi]=!0,i.forEach(function(t){t!==`selectionchange`&&(ti.has(t)||ai(t,!1,e),ai(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oi]||(t[oi]=!0,ai(`selectionchange`,!1,t))}}function ci(e,t,n,r){switch(yn(t)){case 1:var i=mn;break;case 4:i=hn;break;default:i=gn}n=i.bind(null,t,n,e),i=void 0,!et||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function li(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Li(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Qe(function(){var r=a,i=He(n),o=[];a:{var s=Yr.get(e);if(s!==void 0){var c=kn,l=e;switch(e){case`keypress`:if(wn(n)===0)break a;case`keydown`:case`keyup`:c=qn;break;case`focusin`:l=`focus`,c=Rn;break;case`focusout`:l=`blur`,c=Rn;break;case`beforeblur`:case`afterblur`:c=Rn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=In;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Ln;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Yn;break;case Gr:case Kr:case qr:c=zn;break;case Jr:c=Xn;break;case`scroll`:c=jn;break;case`wheel`:c=Zn;break;case`copy`:case`cut`:case`paste`:c=Bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Jn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=$e(p,f),h!=null&&u.push(ui(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ve&&(l=n.relatedTarget||n.fromElement)&&(Li(l)||l[Ni]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Li(l):null,l!==null&&(d=ut(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=In,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Jn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:zi(c),m=l==null?s:zi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Li(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=fi(m))p++;for(m=0,h=f;h;h=fi(h))m++;for(;0<p-m;)u=fi(u),p--;for(;0<m-p;)f=fi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=fi(u),f=fi(f)}u=null}else u=null;c!==null&&pi(o,s,c,u,!1),l!==null&&d!==null&&pi(o,d,l,u,!0)}}a:{if(s=r?zi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=_r;else if(dr(s))if(vr)g=Dr;else{g=Tr;var _=wr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Er);if(g&&=g(e,r)){fr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ce(s,`number`,s.value)}switch(_=r?zi(r):window,e){case`focusin`:(dr(_)||_.contentEditable===`true`)&&(Lr=_,U=r,W=null);break;case`focusout`:W=U=Lr=null;break;case`mousedown`:Rr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Rr=!1,zr(o,n,i);break;case`selectionchange`:if(Ir)break;case`keydown`:case`keyup`:zr(o,n,i)}var v;if($n)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else sr?ar(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(nr&&n.locale!==`ko`&&(sr||y!==`onCompositionStart`?y===`onCompositionEnd`&&sr&&(v=Cn()):(bn=i,xn=`value`in bn?bn.value:bn.textContent,sr=!0)),_=di(r,y),0<_.length&&(y=new Vn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=or(n),v!==null&&(y.data=v)))),(v=tr?cr(e,n):lr(e,n))&&(r=di(r,`onBeforeInput`),0<r.length&&(i=new Vn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ri(o,t)})}function ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function di(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=$e(e,n),a!=null&&r.unshift(ui(e,a,i)),a=$e(e,t),a!=null&&r.push(ui(e,a,i))),e=e.return}return r}function fi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=$e(n,a),c!=null&&o.unshift(ui(n,c,s))):i||(c=$e(n,a),c!=null&&o.push(ui(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var mi=/\r\n?/g,hi=/\u0000|\uFFFD/g;function gi(e){return(typeof e==`string`?e:``+e).replace(mi,`
|
|
6
|
-
`).replace(hi,``)}function _i(e,t,n){if(t=gi(t),gi(e)!==t&&n)throw Error(r(425))}function vi(){}var yi=null,bi=null;function xi(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 Si=typeof setTimeout==`function`?setTimeout:void 0,Ci=typeof clearTimeout==`function`?clearTimeout:void 0,wi=typeof Promise==`function`?Promise:void 0,Ti=typeof queueMicrotask==`function`?queueMicrotask:wi===void 0?Si:function(e){return wi.resolve(null).then(e).catch(Ei)};function Ei(e){setTimeout(function(){throw e})}function Di(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),dn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);dn(t)}function Oi(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 ki(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 Ai=Math.random().toString(36).slice(2),ji=`__reactFiber$`+Ai,Mi=`__reactProps$`+Ai,Ni=`__reactContainer$`+Ai,Pi=`__reactEvents$`+Ai,Fi=`__reactListeners$`+Ai,Ii=`__reactHandles$`+Ai;function Li(e){var t=e[ji];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ni]||n[ji]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ki(e);e!==null;){if(n=e[ji])return n;e=ki(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[ji]||e[Ni],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Bi(e){return e[Mi]||null}var Vi=[],Hi=-1;function Ui(e){return{current:e}}function G(e){0>Hi||(e.current=Vi[Hi],Vi[Hi]=null,Hi--)}function K(e,t){Hi++,Vi[Hi]=e.current,e.current=t}var Wi={},Gi=Ui(Wi),Ki=Ui(!1),qi=Wi;function Ji(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yi(e){return e=e.childContextTypes,e!=null}function Xi(){G(Ki),G(Gi)}function Zi(e,t,n){if(Gi.current!==Wi)throw Error(r(168));K(Gi,t),K(Ki,n)}function Qi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,de(e)||`Unknown`,a));return P({},n,i)}function $i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,qi=Gi.current,K(Gi,e),K(Ki,Ki.current),!0}function ea(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Qi(e,t,qi),i.__reactInternalMemoizedMergedChildContext=e,G(Ki),G(Gi),K(Gi,e)):G(Ki),K(Ki,n)}var ta=null,na=!1,ra=!1;function ia(e){ta===null?ta=[e]:ta.push(e)}function aa(e){na=!0,ia(e)}function oa(){if(!ra&&ta!==null){ra=!0;var e=0,t=R;try{var n=ta;for(R=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ta=null,na=!1}catch(t){throw ta!==null&&(ta=ta.slice(e+1)),mt(bt,oa),t}finally{R=t,ra=!1}}return null}var sa=[],ca=0,la=null,ua=0,da=[],fa=0,pa=null,ma=1,ha=``;function ga(e,t){sa[ca++]=ua,sa[ca++]=la,la=e,ua=t}function _a(e,t,n){da[fa++]=ma,da[fa++]=ha,da[fa++]=pa,pa=e;var r=ma;e=ha;var i=32-Ot(r)-1;r&=~(1<<i),n+=1;var a=32-Ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ma=1<<32-Ot(t)+i|n<<i|r,ha=a+e}else ma=1<<a|n<<i|r,ha=e}function va(e){e.return!==null&&(ga(e,1),_a(e,1,0))}function ya(e){for(;e===la;)la=sa[--ca],sa[ca]=null,ua=sa[--ca],sa[ca]=null;for(;e===pa;)pa=da[--fa],da[fa]=null,ha=da[--fa],da[fa]=null,ma=da[--fa],da[fa]=null}var ba=null,xa=null,Sa=!1,Ca=null;function wa(e,t){var n=Kl(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 Ta(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?!1:(e.stateNode=t,ba=e,xa=Oi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,ba=e,xa=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=pa===null?null:{id:ma,overflow:ha},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ba=e,xa=null,!0);default:return!1}}function Ea(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Da(e){if(Sa){var t=xa;if(t){var n=t;if(!Ta(e,t)){if(Ea(e))throw Error(r(418));t=Oi(n.nextSibling);var i=ba;t&&Ta(e,t)?wa(i,n):(e.flags=e.flags&-4097|2,Sa=!1,ba=e)}}else{if(Ea(e))throw Error(r(418));e.flags=e.flags&-4097|2,Sa=!1,ba=e}}}function Oa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ba=e}function ka(e){if(e!==ba)return!1;if(!Sa)return Oa(e),Sa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!xi(e.type,e.memoizedProps)),t&&=xa){if(Ea(e))throw Aa(),Error(r(418));for(;t;)wa(e,t),t=Oi(t.nextSibling)}if(Oa(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){xa=Oi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}xa=null}}else xa=ba?Oi(e.stateNode.nextSibling):null;return!0}function Aa(){for(var e=xa;e;)e=Oi(e.nextSibling)}function ja(){xa=ba=null,Sa=!1}function Ma(e){Ca===null?Ca=[e]:Ca.push(e)}var Na=C.ReactCurrentBatchConfig;function Pa(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(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Fa(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ia(e){var t=e._init;return t(e._payload)}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===N&&Ia(i)===t.type)?(r=a(t,n.props),r.ref=Pa(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=Pa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=Pa(e,null,t),n.return=e,n;case T:return t=eu(t,e.mode,n),t.return=e,t;case N:var r=t._init;return f(e,r(t._payload),n)}if(we(t)||ie(t))return t=Zl(t,e.mode,n,null),t.return=e,t;Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case N:return i=n._init,p(e,t,i(n._payload),r)}if(we(n)||ie(n))return i===null?d(e,t,n,r,null):null;Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case N:var a=r._init;return m(e,t,n,a(r._payload),i)}if(we(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);Fa(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Sa&&ga(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Sa&&ga(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Sa&&ga(r,h),l}function g(a,s,c,l){var u=ie(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Sa&&ga(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Sa&&ga(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Sa&&ga(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===N&&Ia(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Pa(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=Pa(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case N:return l=i._init,_(e,r,l(i._payload),o)}if(we(i))return h(e,r,i,o);if(ie(i))return g(e,r,i,o);Fa(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ra=La(!0),za=La(!1),Ba=Ui(null),Va=null,Ha=null,Ua=null;function Wa(){Ua=Ha=Va=null}function Ga(e){var t=Ba.current;G(Ba),e._currentValue=t}function Ka(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function qa(e,t){Va=e,Ua=Ha=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Fs=!0),e.firstContext=null)}function Ja(e){var t=e._currentValue;if(Ua!==e)if(e={context:e,memoizedValue:t,next:null},Ha===null){if(Va===null)throw Error(r(308));Ha=e,Va.dependencies={lanes:0,firstContext:e}}else Ha=Ha.next=e;return t}var Ya=null;function q(e){Ya===null?Ya=[e]:Ya.push(e)}function Xa(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,q(t)):(n.next=i.next,i.next=n),t.interleaved=n,Za(e,r)}function Za(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 Qa=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eo(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 to(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function no(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Za(e,n)}return i=r.interleaved,i===null?(t.next=t,q(r)):(t.next=i.next,i.next=t),r.interleaved=t,Za(e,n)}function ro(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ut(e,n)}}function io(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 ao(e,t,n,r){var i=e.updateQueue;Qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=P({},d,f);break a;case 2:Qa=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Xc|=o,e.lanes=o,e.memoizedState=d}}function oo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var so={},co=Ui(so),lo=Ui(so),uo=Ui(so);function fo(e){if(e===so)throw Error(r(174));return e}function po(e,t){switch(K(uo,t),K(lo,e),K(co,so),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ae(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ae(t,e)}G(co),K(co,t)}function mo(){G(co),G(lo),G(uo)}function ho(e){fo(uo.current);var t=fo(co.current),n=Ae(t,e.type);t!==n&&(K(lo,e),K(co,n))}function go(e){lo.current===e&&(G(co),G(lo))}var _o=Ui(0);function vo(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)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 yo=[];function bo(){for(var e=0;e<yo.length;e++)yo[e]._workInProgressVersionPrimary=null;yo.length=0}var xo=C.ReactCurrentDispatcher,So=C.ReactCurrentBatchConfig,Co=0,wo=null,To=null,Eo=null,Do=!1,Oo=!1,ko=0,Ao=0;function jo(){throw Error(r(321))}function Mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kr(e[n],t[n]))return!1;return!0}function No(e,t,n,i,a,o){if(Co=o,wo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xo.current=e===null||e.memoizedState===null?hs:gs,e=n(i,a),Oo){o=0;do{if(Oo=!1,ko=0,25<=o)throw Error(r(301));o+=1,Eo=To=null,t.updateQueue=null,xo.current=_s,e=n(i,a)}while(Oo)}if(xo.current=ms,t=To!==null&&To.next!==null,Co=0,Eo=To=wo=null,Do=!1,t)throw Error(r(300));return e}function Po(){var e=ko!==0;return ko=0,e}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Eo===null?wo.memoizedState=Eo=e:Eo=Eo.next=e,Eo}function Io(){if(To===null){var e=wo.alternate;e=e===null?null:e.memoizedState}else e=To.next;var t=Eo===null?wo.memoizedState:Eo.next;if(t!==null)Eo=t,To=e;else{if(e===null)throw Error(r(310));To=e,e={memoizedState:To.memoizedState,baseState:To.baseState,baseQueue:To.baseQueue,queue:To.queue,next:null},Eo===null?wo.memoizedState=Eo=e:Eo=Eo.next=e}return Eo}function Lo(e,t){return typeof t==`function`?t(e):t}function J(e){var t=Io(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=To,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Co&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,wo.lanes|=d,Xc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,kr(i,t.memoizedState)||(Fs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,wo.lanes|=o,Xc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ro(e){var t=Io(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);kr(o,t.memoizedState)||(Fs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function zo(){}function Bo(e,t){var n=wo,i=Io(),a=t(),o=!kr(i.memoizedState,a);if(o&&(i.memoizedState=a,Fs=!0),i=i.queue,Qo(Uo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Eo!==null&&Eo.memoizedState.tag&1){if(n.flags|=2048,qo(9,Ho.bind(null,n,i,a,t),void 0,null),Uc===null)throw Error(r(349));Co&30||Vo(n,t,a)}return a}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=wo.updateQueue,t===null?(t={lastEffect:null,stores:null},wo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch{return!0}}function Go(e){var t=Za(e,1);t!==null&&hl(t,e,1,-1)}function Ko(e){var t=Fo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t.queue=e,e=e.dispatch=us.bind(null,wo,e),[t.memoizedState,e]}function qo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=wo.updateQueue,t===null?(t={lastEffect:null,stores:null},wo.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 Jo(){return Io().memoizedState}function Yo(e,t,n,r){var i=Fo();wo.flags|=e,i.memoizedState=qo(1|t,n,void 0,r===void 0?null:r)}function Xo(e,t,n,r){var i=Io();r=r===void 0?null:r;var a=void 0;if(To!==null){var o=To.memoizedState;if(a=o.destroy,r!==null&&Mo(r,o.deps)){i.memoizedState=qo(t,n,a,r);return}}wo.flags|=e,i.memoizedState=qo(1|t,n,a,r)}function Zo(e,t){return Yo(8390656,8,e,t)}function Qo(e,t){return Xo(2048,8,e,t)}function $o(e,t){return Xo(4,2,e,t)}function es(e,t){return Xo(4,4,e,t)}function ts(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 ns(e,t,n){return n=n==null?null:n.concat([e]),Xo(4,4,ts.bind(null,t,e),n)}function rs(){}function is(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function as(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function os(e,t,n){return Co&21?(kr(n,t)||(n=zt(),wo.lanes|=n,Xc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fs=!0),e.memoizedState=n)}function ss(e,t){var n=R;R=n!==0&&4>n?n:4,e(!0);var r=So.transition;So.transition={};try{e(!1),t()}finally{R=n,So.transition=r}}function cs(){return Io().memoizedState}function ls(e,t,n){var r=ml(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ds(e))fs(t,n);else if(n=Xa(e,t,n,r),n!==null){var i=pl();hl(n,e,r,i),ps(n,t,r)}}function us(e,t,n){var r=ml(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ds(e))fs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o)){var c=t.interleaved;c===null?(i.next=i,q(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=Xa(e,t,i,r),n!==null&&(i=pl(),hl(n,e,r,i),ps(n,t,r))}}function ds(e){var t=e.alternate;return e===wo||t!==null&&t===wo}function fs(e,t){Oo=Do=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ps(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ut(e,n)}}var ms={readContext:Ja,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useInsertionEffect:jo,useLayoutEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useMutableSource:jo,useSyncExternalStore:jo,useId:jo,unstable_isNewReconciler:!1},hs={readContext:Ja,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:Ja,useEffect:Zo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Yo(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var n=Fo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fo();return t=n===void 0?t:n(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=ls.bind(null,wo,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:Ko,useDebugValue:rs,useDeferredValue:function(e){return Fo().memoizedState=e},useTransition:function(){var e=Ko(!1),t=e[0];return e=ss.bind(null,e[1]),Fo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=wo,a=Fo();if(Sa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Uc===null)throw Error(r(349));Co&30||Vo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Zo(Uo.bind(null,i,o,e),[e]),i.flags|=2048,qo(9,Ho.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Fo(),t=Uc.identifierPrefix;if(Sa){var n=ha,r=ma;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=ko++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Ao++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},gs={readContext:Ja,useCallback:is,useContext:Ja,useEffect:Qo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:J,useRef:Jo,useState:function(){return J(Lo)},useDebugValue:rs,useDeferredValue:function(e){return os(Io(),To.memoizedState,e)},useTransition:function(){return[J(Lo)[0],Io().memoizedState]},useMutableSource:zo,useSyncExternalStore:Bo,useId:cs,unstable_isNewReconciler:!1},_s={readContext:Ja,useCallback:is,useContext:Ja,useEffect:Qo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:Ro,useRef:Jo,useState:function(){return Ro(Lo)},useDebugValue:rs,useDeferredValue:function(e){var t=Io();return To===null?t.memoizedState=e:os(t,To.memoizedState,e)},useTransition:function(){return[Ro(Lo)[0],Io().memoizedState]},useMutableSource:zo,useSyncExternalStore:Bo,useId:cs,unstable_isNewReconciler:!1};function vs(e,t){if(e&&e.defaultProps){for(var n in t=P({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ys(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:P({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bs={isMounted:function(e){return(e=e._reactInternals)?ut(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),i=ml(e),a=to(r,i);a.payload=t,n!=null&&(a.callback=n),t=no(e,a,i),t!==null&&(hl(t,e,i,r),ro(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),i=ml(e),a=to(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=no(e,a,i),t!==null&&(hl(t,e,i,r),ro(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=ml(e),i=to(n,r);i.tag=2,t!=null&&(i.callback=t),t=no(e,i,r),t!==null&&(hl(t,e,r,n),ro(t,e,r))}};function xs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ar(n,r)||!Ar(i,a):!0}function Ss(e,t,n){var r=!1,i=Wi,a=t.contextType;return typeof a==`object`&&a?a=Ja(a):(i=Yi(t)?qi:Gi.current,r=t.contextTypes,a=(r=r!=null)?Ji(e,i):Wi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Cs(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&&bs.enqueueReplaceState(t,t.state,null)}function ws(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},$a(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ja(a):(a=Yi(t)?qi:Gi.current,i.context=Ji(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(ys(e,t,a,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&&bs.enqueueReplaceState(i,i.state,null),ao(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ts(e,t){try{var n=``,r=t;do n+=le(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Es(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Os=typeof WeakMap==`function`?WeakMap:Map;function ks(e,t,n){n=to(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,il=r),Ds(e,t)},n}function As(e,t,n){n=to(-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(){Ds(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ds(e,t),typeof r!=`function`&&(al===null?al=new Set([this]):al.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function js(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Os;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=zl.bind(null,e,t,n),t.then(e,e))}function Ms(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ns(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=to(-1,1),t.tag=2,no(n,t,1))),n.lanes|=1),e)}var Ps=C.ReactCurrentOwner,Fs=!1;function Is(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function Ls(e,t,n,r,i){n=n.render;var a=t.ref;return qa(t,i),r=No(e,t,n,r,a,i),n=Po(),e!==null&&!Fs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,nc(e,t,i)):(Sa&&n&&va(t),t.flags|=1,Is(e,t,r,i),t.child)}function Rs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,zs(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ar:n,n(o,r)&&e.ref===t.ref)return nc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function zs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ar(a,r)&&e.ref===t.ref)if(Fs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Fs=!0);else return t.lanes=e.lanes,nc(e,t,i)}return Hs(e,t,n,r,i)}function Bs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(qc,Kc),Kc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(qc,Kc),Kc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,K(qc,Kc),Kc|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),K(qc,Kc),Kc|=r;return Is(e,t,i,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hs(e,t,n,r,i){var a=Yi(n)?qi:Gi.current;return a=Ji(t,a),qa(t,i),n=No(e,t,n,r,a,i),r=Po(),e!==null&&!Fs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,nc(e,t,i)):(Sa&&r&&va(t),t.flags|=1,Is(e,t,n,i),t.child)}function Us(e,t,n,r,i){if(Yi(n)){var a=!0;$i(t)}else a=!1;if(qa(t,i),t.stateNode===null)tc(e,t),Ss(t,n,r),ws(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ja(l):(l=Yi(n)?qi:Gi.current,l=Ji(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Cs(t,o,r,l),Qa=!1;var f=t.memoizedState;o.state=f,ao(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Ki.current||Qa?(typeof u==`function`&&(ys(t,n,u,r),c=t.memoizedState),(s=Qa||xs(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,eo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:vs(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ja(c):(c=Yi(n)?qi:Gi.current,c=Ji(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Cs(t,o,r,c),Qa=!1,f=t.memoizedState,o.state=f,ao(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Ki.current||Qa?(typeof p==`function`&&(ys(t,n,p,r),m=t.memoizedState),(l=Qa||xs(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ws(e,t,n,r,a,i)}function Ws(e,t,n,r,i,a){Vs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&ea(t,n,!1),nc(e,t,a);r=t.stateNode,Ps.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ra(t,e.child,null,a),t.child=Ra(t,null,s,a)):Is(e,t,s,a),t.memoizedState=r.state,i&&ea(t,n,!0),t.child}function Gs(e){var t=e.stateNode;t.pendingContext?Zi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zi(e,t.context,!1),po(e,t.containerInfo)}function Ks(e,t,n,r,i){return ja(),Ma(i),t.flags|=256,Is(e,t,n,r),t.child}var qs={dehydrated:null,treeContext:null,retryLane:0};function Js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ys(e,t,n){var r=t.pendingProps,i=_o.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(_o,i&1),e===null)return Da(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ql(o,r,0,null),e=Zl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Js(n),t.memoizedState=qs,e):Y(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Zs(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Yl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Zl(a,o,n,null),a.flags|=2):a=Yl(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Js(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=qs,r}return a=e.child,e=a.sibling,r=Yl(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(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 Y(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Xs(e,t,n,r){return r!==null&&Ma(r),Ra(t,e.child,null,n),e=Y(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zs(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Es(Error(r(422))),Xs(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ra(t,e.child,null,s),t.child.memoizedState=Js(s),t.memoizedState=qs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return Xs(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Es(o,i,void 0),Xs(e,t,s,i)}if(c=(s&e.childLanes)!==0,Fs||c){if(i=Uc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,Za(e,a),hl(i,e,a,-1))}return kl(),i=Es(Error(r(421))),Xs(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,xa=Oi(a.nextSibling),ba=t,Sa=!0,Ca=null,e!==null&&(da[fa++]=ma,da[fa++]=ha,da[fa++]=pa,ma=e.id,ha=e.overflow,pa=t),t=Y(t,i.children),t.flags|=4096,t)}function Qs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ka(e.return,t,n)}function $s(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Is(e,t,r.children,n),r=_o.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qs(e,n,t);else if(e.tag===19)Qs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(_o,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$s(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$s(t,!0,n,null,a);break;case`together`:$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rc(e,t,n){switch(t.tag){case 3:Gs(t),ja();break;case 5:ho(t);break;case 1:Yi(t.type)&&$i(t);break;case 4:po(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(Ba,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(K(_o,_o.current&1),e=nc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(K(_o,_o.current&1),t.flags|=128,null);K(_o,_o.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(_o,_o.current),r)break;return null;case 22:case 23:return t.lanes=0,Bs(e,t,n)}return nc(e,t,n)}var ic=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}},ac=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fo(co.current);var o=null;switch(n){case`input`:i=ve(e,i),r=ve(e,r),o=[];break;case`select`:i=P({},i,{value:void 0}),r=P({},r,{value:void 0}),o=[];break;case`textarea`:i=Ee(e,i),r=Ee(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=vi)}ze(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&ii(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},oc=function(e,t,n,r){n!==r&&(t.flags|=4)};function sc(e,t){if(!Sa)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 cc(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 lc(e,t,n){var i=t.pendingProps;switch(ya(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cc(t),null;case 1:return Yi(t.type)&&Xi(),cc(t),null;case 3:return i=t.stateNode,mo(),G(Ki),G(Gi),bo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ka(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ca!==null&&(yl(Ca),Ca=null))),cc(t),null;case 5:go(t);var o=fo(uo.current);if(n=t.type,e!==null&&t.stateNode!=null)ac(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return cc(t),null}if(e=fo(co.current),ka(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[ji]=t,i[Mi]=s,e=(t.mode&1)!=0,n){case`dialog`:ii(`cancel`,i),ii(`close`,i);break;case`iframe`:case`object`:case`embed`:ii(`load`,i);break;case`video`:case`audio`:for(o=0;o<ei.length;o++)ii(ei[o],i);break;case`source`:ii(`error`,i);break;case`img`:case`image`:case`link`:ii(`error`,i),ii(`load`,i);break;case`details`:ii(`toggle`,i);break;case`input`:ye(i,s),ii(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ii(`invalid`,i);break;case`textarea`:De(i,s),ii(`invalid`,i)}for(var c in ze(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&_i(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&_i(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ii(`scroll`,i)}switch(n){case`input`:he(i),Se(i,s,!0);break;case`textarea`:he(i),F(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=vi)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=ke(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[ji]=t,e[Mi]=i,ic(e,t,!1,!1),t.stateNode=e;a:{switch(c=Be(n,i),n){case`dialog`:ii(`cancel`,e),ii(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ii(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ei.length;o++)ii(ei[o],e);o=i;break;case`source`:ii(`error`,e),o=i;break;case`img`:case`image`:case`link`:ii(`error`,e),ii(`load`,e),o=i;break;case`details`:ii(`toggle`,e),o=i;break;case`input`:ye(e,i),o=ve(e,i),ii(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=P({},i,{value:void 0}),ii(`invalid`,e);break;case`textarea`:De(e,i),o=Ee(e,i),ii(`invalid`,e);break;default:o=i}for(s in ze(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Le(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Me(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ne(e,u):typeof u==`number`&&Ne(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ii(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:he(e),Se(e,i,!1);break;case`textarea`:he(e),F(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+fe(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Te(e,!!i.multiple,i.defaultValue,!0):Te(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=vi)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return cc(t),null;case 6:if(e&&t.stateNode!=null)oc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=fo(uo.current),fo(co.current),ka(t)){if(i=t.stateNode,n=t.memoizedProps,i[ji]=t,(s=i.nodeValue!==n)&&(e=ba,e!==null))switch(e.tag){case 3:_i(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&_i(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[ji]=t,t.stateNode=i}return cc(t),null;case 13:if(G(_o),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sa&&xa!==null&&t.mode&1&&!(t.flags&128))Aa(),ja(),t.flags|=98560,s=!1;else if(s=ka(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[ji]=t}else ja(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;cc(t),s=!1}else Ca!==null&&(yl(Ca),Ca=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||_o.current&1?Jc===0&&(Jc=3):kl())),t.updateQueue!==null&&(t.flags|=4),cc(t),null);case 4:return mo(),e===null&&si(t.stateNode.containerInfo),cc(t),null;case 10:return Ga(t.type._context),cc(t),null;case 17:return Yi(t.type)&&Xi(),cc(t),null;case 19:if(G(_o),s=t.memoizedState,s===null)return cc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)sc(s,!1);else{if(Jc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,sc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(_o,_o.current&1|2),t.child}e=e.sibling}s.tail!==null&&vt()>tl&&(t.flags|=128,i=!0,sc(s,!1),t.lanes=4194304)}else{if(!i)if(e=vo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Sa)return cc(t),null}else 2*vt()-s.renderingStartTime>tl&&n!==1073741824&&(t.flags|=128,i=!0,sc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(cc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=vt(),t.sibling=null,n=_o.current,K(_o,i?n&1|2:n&1),t);case 22:case 23:return Tl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Kc&1073741824&&(cc(t),t.subtreeFlags&6&&(t.flags|=8192)):cc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function uc(e,t){switch(ya(t),t.tag){case 1:return Yi(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),G(Ki),G(Gi),bo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(G(_o),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(_o),null;case 4:return mo(),null;case 10:return Ga(t.type._context),null;case 22:case 23:return Tl(),null;case 24:return null;default:return null}}var dc=!1,fc=!1,pc=typeof WeakSet==`function`?WeakSet:Set,X=null;function mc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){$(e,t,n)}else n.current=null}function hc(e,t,n){try{n()}catch(n){$(e,t,n)}}var gc=!1;function _c(e,t){if(yi=pn,e=Nr(),Pr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(bi={focusedElem:e,selectionRange:n},pn=!1,X=t;X!==null;)if(t=X,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:vs(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){$(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return h=gc,gc=!1,h}function vc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&hc(t,n,a)}i=i.next}while(i!==r)}}function yc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,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 bc(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 xc(e){var t=e.alternate;t!==null&&(e.alternate=null,xc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ji],delete t[Mi],delete t[Pi],delete t[Fi],delete t[Ii])),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 Sc(e){return e.tag===5||e.tag===3||e.tag===4}function Cc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Sc(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 a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wc(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=vi));else if(r!==4&&(e=e.child,e!==null))for(wc(e,t,n),e=e.sibling;e!==null;)wc(e,t,n),e=e.sibling}function Tc(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(Tc(e,t,n),e=e.sibling;e!==null;)Tc(e,t,n),e=e.sibling}var Ec=null,Dc=!1;function Oc(e,t,n){for(n=n.child;n!==null;)kc(e,t,n),n=n.sibling}function kc(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount==`function`)try{Et.onCommitFiberUnmount(Tt,n)}catch{}switch(n.tag){case 5:fc||mc(n,t);case 6:var r=Ec,i=Dc;Ec=null,Oc(e,t,n),Ec=r,Dc=i,Ec!==null&&(Dc?(e=Ec,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ec.removeChild(n.stateNode));break;case 18:Ec!==null&&(Dc?(e=Ec,n=n.stateNode,e.nodeType===8?Di(e.parentNode,n):e.nodeType===1&&Di(e,n),dn(e)):Di(Ec,n.stateNode));break;case 4:r=Ec,i=Dc,Ec=n.stateNode.containerInfo,Dc=!0,Oc(e,t,n),Ec=r,Dc=i;break;case 0:case 11:case 14:case 15:if(!fc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&hc(n,t,o),i=i.next}while(i!==r)}Oc(e,t,n);break;case 1:if(!fc&&(mc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$(n,t,e)}Oc(e,t,n);break;case 21:Oc(e,t,n);break;case 22:n.mode&1?(fc=(r=fc)||n.memoizedState!==null,Oc(e,t,n),fc=r):Oc(e,t,n);break;default:Oc(e,t,n)}}function Ac(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function jc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Ec=c.stateNode,Dc=!1;break a;case 3:Ec=c.stateNode.containerInfo,Dc=!0;break a;case 4:Ec=c.stateNode.containerInfo,Dc=!0;break a}c=c.return}if(Ec===null)throw Error(r(160));kc(o,s,a),Ec=null,Dc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){$(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mc(t,e),t=t.sibling}function Mc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jc(t,e),Nc(e),i&4){try{vc(3,e,e.return),yc(3,e)}catch(t){$(e,e.return,t)}try{vc(5,e,e.return)}catch(t){$(e,e.return,t)}}break;case 1:jc(t,e),Nc(e),i&512&&n!==null&&mc(n,n.return);break;case 5:if(jc(t,e),Nc(e),i&512&&n!==null&&mc(n,n.return),e.flags&32){var a=e.stateNode;try{Ne(a,``)}catch(t){$(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&be(a,o),Be(c,s);var u=Be(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Le(a,f):d===`dangerouslySetInnerHTML`?Me(a,f):d===`children`?Ne(a,f):S(a,d,f,u)}switch(c){case`input`:xe(a,o);break;case`textarea`:Oe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Te(a,!!o.multiple,o.multiple?[]:``,!1):Te(a,!!o.multiple,o.defaultValue,!0)):Te(a,!!o.multiple,m,!1)}a[Mi]=o}catch(t){$(e,e.return,t)}}break;case 6:if(jc(t,e),Nc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){$(e,e.return,t)}}break;case 3:if(jc(t,e),Nc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{dn(t.containerInfo)}catch(t){$(e,e.return,t)}break;case 4:jc(t,e),Nc(e);break;case 13:jc(t,e),Nc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(el=vt())),i&4&&Ac(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(fc=(u=fc)||d,jc(t,e),fc=u):jc(t,e),Nc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(X=e,d=e.child;d!==null;){for(f=X=d;X!==null;){switch(p=X,m=p.child,p.tag){case 0:case 11:case 14:case 15:vc(4,p,p.return);break;case 1:mc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){$(i,n,e)}}break;case 5:mc(p,p.return);break;case 22:if(p.memoizedState!==null){Lc(f);continue}}m===null?Lc(f):(m.return=p,X=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Ie(`display`,s))}catch(t){$(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){$(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:jc(t,e),Nc(e),i&4&&Ac(e);break;case 21:break;default:jc(t,e),Nc(e)}}function Nc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Sc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ne(a,``),i.flags&=-33),Tc(e,Cc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;wc(e,Cc(e),o);break;default:throw Error(r(161))}}catch(t){$(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pc(e,t,n){X=e,Fc(e,t,n)}function Fc(e,t,n){for(var r=(e.mode&1)!=0;X!==null;){var i=X,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||dc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||fc;s=dc;var l=fc;if(dc=o,(fc=c)&&!l)for(X=i;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Rc(i):(c.return=o,X=c);for(;a!==null;)X=a,Fc(a,t,n),a=a.sibling;X=i,dc=s,fc=l}Ic(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,X=a):Ic(e,t,n)}}function Ic(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fc||yc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!fc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:vs(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&oo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}oo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&dn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}fc||t.flags&512&&bc(t)}catch(e){$(t,t.return,e)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Lc(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Rc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yc(4,t)}catch(e){$(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){$(t,i,e)}}var a=t.return;try{bc(t)}catch(e){$(t,a,e)}break;case 5:var o=t.return;try{bc(t)}catch(e){$(t,o,e)}}}catch(e){$(t,t.return,e)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var zc=Math.ceil,Bc=C.ReactCurrentDispatcher,Vc=C.ReactCurrentOwner,Hc=C.ReactCurrentBatchConfig,Z=0,Uc=null,Wc=null,Gc=0,Kc=0,qc=Ui(0),Jc=0,Yc=null,Xc=0,Zc=0,Q=0,Qc=null,$c=null,el=0,tl=1/0,nl=null,rl=!1,il=null,al=null,ol=!1,sl=null,cl=0,ll=0,ul=null,dl=-1,fl=0;function pl(){return Z&6?vt():dl===-1?dl=vt():dl}function ml(e){return e.mode&1?Z&2&&Gc!==0?Gc&-Gc:Na.transition===null?(e=R,e===0?(e=window.event,e=e===void 0?16:yn(e.type),e):e):(fl===0&&(fl=zt()),fl):1}function hl(e,t,n,i){if(50<ll)throw ll=0,ul=null,Error(r(185));Vt(e,n,i),(!(Z&2)||e!==Uc)&&(e===Uc&&(!(Z&2)&&(Zc|=n),Jc===4&&xl(e,Gc)),gl(e,i),n===1&&Z===0&&!(t.mode&1)&&(tl=vt()+500,na&&oa()))}function gl(e,t){var n=e.callbackNode;Lt(e,t);var r=Ft(e,e===Uc?Gc:0);if(r===0)n!==null&&ht(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ht(n),t===1)e.tag===0?aa(Sl.bind(null,e)):ia(Sl.bind(null,e)),Ti(function(){!(Z&6)&&oa()}),n=null;else{switch(Wt(r)){case 1:n=bt;break;case 4:n=xt;break;case 16:n=St;break;case 536870912:n=wt;break;default:n=St}n=Wl(n,_l.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _l(e,t){if(dl=-1,fl=0,Z&6)throw Error(r(327));var n=e.callbackNode;if(Ll()&&e.callbackNode!==n)return null;var i=Ft(e,e===Uc?Gc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Al(e,i);else{t=i;var a=Z;Z|=2;var o=Ol();(Uc!==e||Gc!==t)&&(nl=null,tl=vt()+500,El(e,t));do try{Ml();break}catch(t){Dl(e,t)}while(1);Wa(),Bc.current=o,Z=a,Wc===null?(Uc=null,Gc=0,t=Jc):t=0}if(t!==0){if(t===2&&(a=Rt(e),a!==0&&(i=a,t=vl(e,a))),t===1)throw n=Yc,El(e,0),xl(e,i),gl(e,vt()),n;if(t===6)xl(e,i);else{if(a=e.current.alternate,!(i&30)&&!bl(a)&&(t=Al(e,i),t===2&&(o=Rt(e),o!==0&&(i=o,t=vl(e,o))),t===1))throw n=Yc,El(e,0),xl(e,i),gl(e,vt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Fl(e,$c,nl);break;case 3:if(xl(e,i),(i&130023424)===i&&(t=el+500-vt(),10<t)){if(Ft(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){pl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Si(Fl.bind(null,e,$c,nl),t);break}Fl(e,$c,nl);break;case 4:if(xl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Ot(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*zc(i/1960))-i,10<i){e.timeoutHandle=Si(Fl.bind(null,e,$c,nl),i);break}Fl(e,$c,nl);break;case 5:Fl(e,$c,nl);break;default:throw Error(r(329))}}}return gl(e,vt()),e.callbackNode===n?_l.bind(null,e):null}function vl(e,t){var n=Qc;return e.current.memoizedState.isDehydrated&&(El(e,t).flags|=256),e=Al(e,t),e!==2&&(t=$c,$c=n,t!==null&&yl(t)),e}function yl(e){$c===null?$c=e:$c.push.apply($c,e)}function bl(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],a=i.getSnapshot;i=i.value;try{if(!kr(a(),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 xl(e,t){for(t&=~Q,t&=~Zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function Sl(e){if(Z&6)throw Error(r(327));Ll();var t=Ft(e,0);if(!(t&1))return gl(e,vt()),null;var n=Al(e,t);if(e.tag!==0&&n===2){var i=Rt(e);i!==0&&(t=i,n=vl(e,i))}if(n===1)throw n=Yc,El(e,0),xl(e,t),gl(e,vt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e,$c,nl),gl(e,vt()),null}function Cl(e,t){var n=Z;Z|=1;try{return e(t)}finally{Z=n,Z===0&&(tl=vt()+500,na&&oa())}}function wl(e){sl!==null&&sl.tag===0&&!(Z&6)&&Ll();var t=Z;Z|=1;var n=Hc.transition,r=R;try{if(Hc.transition=null,R=1,e)return e()}finally{R=r,Hc.transition=n,Z=t,!(Z&6)&&oa()}}function Tl(){Kc=qc.current,G(qc)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ci(n)),Wc!==null)for(n=Wc.return;n!==null;){var r=n;switch(ya(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xi();break;case 3:mo(),G(Ki),G(Gi),bo();break;case 5:go(r);break;case 4:mo();break;case 13:G(_o);break;case 19:G(_o);break;case 10:Ga(r.type._context);break;case 22:case 23:Tl()}n=n.return}if(Uc=e,Wc=e=Yl(e.current,null),Gc=Kc=t,Jc=0,Yc=null,Q=Zc=Xc=0,$c=Qc=null,Ya!==null){for(t=0;t<Ya.length;t++)if(n=Ya[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ya=null}return e}function Dl(e,t){do{var n=Wc;try{if(Wa(),xo.current=ms,Do){for(var i=wo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Do=!1}if(Co=0,Eo=To=wo=null,Oo=!1,ko=0,Vc.current=null,n===null||n.return===null){Jc=1,Yc=t,Wc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Gc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ms(s);if(m!==null){m.flags&=-257,Ns(m,s,c,o,t),m.mode&1&&js(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){js(o,u,t),kl();break a}l=Error(r(426))}}else if(Sa&&c.mode&1){var _=Ms(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ns(_,s,c,o,t),Ma(Ts(l,c));break a}}o=l=Ts(l,c),Jc!==4&&(Jc=2),Qc===null?Qc=[o]:Qc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=ks(o,l,t);io(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(al===null||!al.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=As(o,c,t);io(o,x);break a}}o=o.return}while(o!==null)}Pl(n)}catch(e){t=e,Wc===n&&n!==null&&(Wc=n=n.return);continue}break}while(1)}function Ol(){var e=Bc.current;return Bc.current=ms,e===null?ms:e}function kl(){(Jc===0||Jc===3||Jc===2)&&(Jc=4),Uc===null||!(Xc&268435455)&&!(Zc&268435455)||xl(Uc,Gc)}function Al(e,t){var n=Z;Z|=2;var i=Ol();(Uc!==e||Gc!==t)&&(nl=null,El(e,t));do try{jl();break}catch(t){Dl(e,t)}while(1);if(Wa(),Z=n,Bc.current=i,Wc!==null)throw Error(r(261));return Uc=null,Gc=0,Jc}function jl(){for(;Wc!==null;)Nl(Wc)}function Ml(){for(;Wc!==null&&!gt();)Nl(Wc)}function Nl(e){var t=Ul(e.alternate,e,Kc);e.memoizedProps=e.pendingProps,t===null?Pl(e):Wc=t,Vc.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=uc(n,t),n!==null){n.flags&=32767,Wc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Jc=6,Wc=null;return}}else if(n=lc(n,t,Kc),n!==null){Wc=n;return}if(t=t.sibling,t!==null){Wc=t;return}Wc=t=e}while(t!==null);Jc===0&&(Jc=5)}function Fl(e,t,n){var r=R,i=Hc.transition;try{Hc.transition=null,R=1,Il(e,t,n,r)}finally{Hc.transition=i,R=r}return null}function Il(e,t,n,i){do Ll();while(sl!==null);if(Z&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ht(e,o),e===Uc&&(Wc=Uc=null,Gc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ol||(ol=!0,Wl(St,function(){return Ll(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Hc.transition,Hc.transition=null;var s=R;R=1;var c=Z;Z|=4,Vc.current=null,_c(e,n),Mc(n,e),Fr(bi),pn=!!yi,bi=yi=null,e.current=n,Pc(n,e,a),_t(),Z=c,R=s,Hc.transition=o}else e.current=n;if(ol&&(ol=!1,sl=e,cl=a),o=e.pendingLanes,o===0&&(al=null),Dt(n.stateNode,i),gl(e,vt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(rl)throw rl=!1,e=il,il=null,e;return cl&1&&e.tag!==0&&Ll(),o=e.pendingLanes,o&1?e===ul?ll++:(ll=0,ul=e):ll=0,oa(),null}function Ll(){if(sl!==null){var e=Wt(cl),t=Hc.transition,n=R;try{if(Hc.transition=null,R=16>e?16:e,sl===null)var i=!1;else{if(e=sl,sl=null,cl=0,Z&6)throw Error(r(331));var a=Z;for(Z|=4,X=e.current;X!==null;){var o=X,s=o.child;if(X.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:vc(8,d,o)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var p=d.sibling,m=d.return;if(xc(d),d===u){X=null;break}if(p!==null){p.return=m,X=p;break}X=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}X=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,X=s;else b:for(;X!==null;){if(o=X,o.flags&2048)switch(o.tag){case 0:case 11:case 15:vc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,X=v;break b}X=o.return}}var y=e.current;for(X=y;X!==null;){s=X;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,X=b;else b:for(s=y;X!==null;){if(c=X,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:yc(9,c)}}catch(e){$(c,c.return,e)}if(c===s){X=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,X=x;break b}X=c.return}}if(Z=a,oa(),Et&&typeof Et.onPostCommitFiberRoot==`function`)try{Et.onPostCommitFiberRoot(Tt,e)}catch{}i=!0}return i}finally{R=n,Hc.transition=t}}return!1}function Rl(e,t,n){t=Ts(n,t),t=ks(e,t,1),e=no(e,t,1),t=pl(),e!==null&&(Vt(e,1,t),gl(e,t))}function $(e,t,n){if(e.tag===3)Rl(e,e,n);else for(;t!==null;){if(t.tag===3){Rl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(al===null||!al.has(r))){e=Ts(n,e),e=As(t,e,1),t=no(t,e,1),e=pl(),t!==null&&(Vt(t,1,e),gl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Uc===e&&(Gc&n)===n&&(Jc===4||Jc===3&&(Gc&130023424)===Gc&&500>vt()-el?El(e,0):Q|=n),gl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=Nt,Nt<<=1,!(Nt&130023424)&&(Nt=4194304)):t=1);var n=pl();e=Za(e,t),e!==null&&(Vt(e,t,n),gl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ki.current)Fs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Fs=!1,rc(e,t,n);Fs=!!(e.flags&131072)}else Fs=!1,Sa&&t.flags&1048576&&_a(t,ua,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;tc(e,t),e=t.pendingProps;var a=Ji(t,Gi.current);qa(t,n),a=No(null,t,i,e,a,n);var o=Po();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yi(i)?(o=!0,$i(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,$a(t),a.updater=bs,t.stateNode=a,a._reactInternals=t,ws(t,i,e,n),t=Ws(null,t,i,!0,o,n)):(t.tag=0,Sa&&o&&va(t),Is(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(tc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=vs(i,e),a){case 0:t=Hs(null,t,i,e,n);break a;case 1:t=Us(null,t,i,e,n);break a;case 11:t=Ls(null,t,i,e,n);break a;case 14:t=Rs(null,t,i,vs(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:vs(i,a),Hs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:vs(i,a),Us(e,t,i,a,n);case 3:a:{if(Gs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,eo(e,t),ao(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ts(Error(r(423)),t),t=Ks(e,t,i,n,a);break a}else if(i!==a){a=Ts(Error(r(424)),t),t=Ks(e,t,i,n,a);break a}else for(xa=Oi(t.stateNode.containerInfo.firstChild),ba=t,Sa=!0,Ca=null,n=za(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ja(),i===a){t=nc(e,t,n);break a}Is(e,t,i,n)}t=t.child}return t;case 5:return ho(t),e===null&&Da(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,xi(i,a)?s=null:o!==null&&xi(i,o)&&(t.flags|=32),Vs(e,t),Is(e,t,s,n),t.child;case 6:return e===null&&Da(t),null;case 13:return Ys(e,t,n);case 4:return po(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ra(t,null,i,n):Is(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:vs(i,a),Ls(e,t,i,a,n);case 7:return Is(e,t,t.pendingProps,n),t.child;case 8:return Is(e,t,t.pendingProps.children,n),t.child;case 12:return Is(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,K(Ba,i._currentValue),i._currentValue=s,o!==null)if(kr(o.value,s)){if(o.children===a.children&&!Ki.current){t=nc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=to(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ka(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Ka(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Is(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,qa(t,n),a=Ja(a),i=i(a),t.flags|=1,Is(e,t,i,n),t.child;case 14:return i=t.type,a=vs(i,t.pendingProps),a=vs(i.type,a),Rs(e,t,i,a,n);case 15:return zs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:vs(i,a),tc(e,t),t.tag=1,Yi(i)?(e=!0,$i(t)):e=!1,qa(t,n),Ss(t,i,a),ws(t,i,a,n),Ws(null,t,i,!0,e,n);case 19:return ec(e,t,n);case 22:return Bs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return mt(e,t)}function Gl(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 Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===M)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(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 Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return Zl(n.children,a,o,t);case D:s=8,a|=8;break;case ee:return e=Kl(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case A:return e=Kl(13,n,t,a),e.elementType=A,e.lanes=o,e;case j:return e=Kl(19,n,t,a),e.elementType=j,e.lanes=o,e;case ne:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case O:s=10;break a;case te:s=9;break a;case k:s=11;break a;case M:s=14;break a;case N:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=ne,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(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=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return Wi;e=e._reactInternals;a:{if(ut(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Yi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Yi(n))return Qi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=pl(),i=ml(n),a=to(r,i),a.callback=t??null,no(n,a,i),e.current.lanes=i,Vt(e,i,r),gl(e,r),e}function ou(e,t,n,r){var i=t.current,a=pl(),o=ml(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=to(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=no(i,t,o),e!==null&&(hl(e,i,o,a),ro(e,i,o)),o}function su(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 cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wl(function(){ou(null,e,null,null)}),t[Ni]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<V.length&&t!==0&&t<V[n].priority;n++);V.splice(n,0,e),n===0&&on(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Ni]=o.current,si(e.nodeType===8?e.parentNode:e),wl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Ni]=c.current,si(e.nodeType===8?e.parentNode:e),wl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Gt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pt(t.pendingLanes);n!==0&&(Ut(t,n|1),gl(t,vt()),!(Z&6)&&(tl=vt()+500,oa()))}break;case 13:wl(function(){var t=Za(e,1);t!==null&&hl(t,e,1,pl())}),lu(e,1)}},Kt=function(e){if(e.tag===13){var t=Za(e,134217728);t!==null&&hl(t,e,134217728,pl()),lu(e,134217728)}},qt=function(e){if(e.tag===13){var t=ml(e),n=Za(e,t);n!==null&&hl(n,e,t,pl()),lu(e,t)}},Jt=function(){return R},z=function(e,t){var n=R;try{return R=e,t()}finally{R=n}},Ue=function(e,t,n){switch(t){case`input`:if(xe(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 i=n[t];if(i!==e&&i.form===e.form){var a=Bi(i);if(!a)throw Error(r(90));ge(i),xe(i,a)}}}break;case`textarea`:Oe(e,n);break;case`select`:t=n.value,t!=null&&Te(e,!!n.multiple,t,!1)}},Ye=Cl,Xe=wl;var yu={usingClientEntryPoint:!1,Events:[Ri,zi,Bi,qe,Je,Cl]},bu={findFiberByHostInstance:Li,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ft(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Tt=Su.inject(xu),Et=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Ni]=t.current,si(e.nodeType===8?e.parentNode:e),new fu(t)},e.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(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ft(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return wl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Ni]=t.current,si(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(wl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ni]=null})}),!0):!1},e.unstable_batchedUpdates=Cl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=m();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),g=o((e=>{var t=u(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),_=o(((e,t)=>{t.exports=g()})),v=h(),y=c(u(),1),b=_();function x({composer:e,running:t,disabled:n=!1,onSubmit:r,onOpenLeft:i,onOpenRight:a}){let[o,s]=(0,y.useState)(``),c=o.trim().length>0&&!t&&!n;async function l(e){if(e.preventDefault(),!c)return;let t=o.trim();s(``),await r(t)}return(0,b.jsxs)(`form`,{className:`composer`,"aria-label":`Message composer`,onSubmit:l,children:[(0,b.jsx)(`button`,{type:`button`,className:`mobile-toggle`,onClick:i,"aria-label":`Open files`,children:`▦`}),(0,b.jsxs)(`div`,{className:`composer-box`,children:[(0,b.jsx)(`textarea`,{rows:1,value:o,onChange:e=>s(e.target.value),placeholder:e.placeholder,disabled:n}),(0,b.jsxs)(`div`,{className:`composer-actions`,children:[(0,b.jsx)(`button`,{type:`button`,className:`session-ring`,"aria-label":`Session`}),(0,b.jsx)(`button`,{type:`button`,className:`chip-button`,children:t?`Running`:e.mode}),(0,b.jsx)(`button`,{type:`button`,className:`icon-action`,"aria-label":`Attach`,children:`+`}),(0,b.jsx)(`button`,{type:`submit`,className:`send-icon`,"aria-label":`Send`,disabled:!c,children:`↑`})]})]}),(0,b.jsx)(`button`,{type:`button`,className:`mobile-toggle`,onClick:a,"aria-label":`Open sessions`,children:`☰`})]})}var S=`file-tree-container`,C=`data-file-tree-style`,w=`data-file-tree-unsafe-css`,T=`data-file-tree-scrollbar-measure`,E=`data-file-tree-scrollbar-gutter-measured`,D=`--trees-scrollbar-gutter-measured`,ee=`header`,O=`context-menu`,te=`context-menu-trigger`,k=typeof window>`u`?y.useEffect:y.useLayoutEffect;function A(e,t,n){let r=e==null?null:(0,b.jsx)(`div`,{slot:ee,children:e}),i=t!=null&&n!=null?(0,b.jsx)(`div`,{slot:O,children:t(n.item,n.context)}):null;return r==null&&i==null?null:(0,b.jsxs)(b.Fragment,{children:[r,i]})}function j(e,t){return typeof window>`u`&&t!=null?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):(0,b.jsx)(b.Fragment,{children:e})}function M(e){let t=e.shadowRoot;return t?.querySelector(`[data-file-tree-id]`)instanceof HTMLElement||t?.querySelector(`[data-file-tree-id]`)instanceof SVGElement?!0:e.querySelector(`template[shadowrootmode="open"]`)instanceof HTMLTemplateElement}function N(e,t,n,r,i){let a={...e??{}};if(t!=null&&delete a.header,n){let t=e?.contextMenu,n=t?.onClose,o=t?.onOpen;a.contextMenu={...t??{},enabled:!0,onClose:()=>{n?.(),r()},onOpen:(e,t)=>{i(e,t),o?.(e,t)}},delete a.contextMenu.render}return a.header!=null||a.contextMenu!=null?a:void 0}function ne({header:e,id:t,model:n,preloadedData:r,renderContextMenu:i,...a}){let[o,s]=(0,y.useState)(null),[c,l]=(0,y.useState)(null),u=(0,y.useRef)(n.getComposition()),d=(0,y.useRef)(n);d.current!==n&&(d.current=n,u.current=n.getComposition());let f=i!=null,p=(0,y.useCallback)(()=>{s(null)},[]),m=(0,y.useCallback)((e,t)=>{s({context:t,item:e})},[]),h=u.current,g=(0,y.useMemo)(()=>N(h,e,f,p,m),[h,p,m,f,e]),_=(0,y.useCallback)(e=>{l(e)},[]);(0,y.useEffect)(()=>{f||s(null)},[f]),k(()=>{n.setComposition(g)},[g,n]),k(()=>{if(c!=null)return r!=null&&M(c)?n.hydrate({fileTreeContainer:c}):n.render({fileTreeContainer:c}),()=>{n.unmount(),n.setComposition(h)}},[h,c,n,r]);let v=j(A(e,i,o),r),x=t??r?.id,C={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...a.style};return(0,b.jsx)(S,{...a,id:x,ref:_,style:C,suppressHydrationWarning:r!=null,children:v})}var re=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
9
|
-
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
10
|
-
<path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
|
|
11
|
-
</symbol>
|
|
12
|
-
<symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
|
|
13
|
-
<circle cx="3" cy="3" r="3" />
|
|
14
|
-
</symbol>
|
|
15
|
-
<symbol id="file-tree-icon-file" viewBox="0 0 16 16">
|
|
16
|
-
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".5"/>
|
|
17
|
-
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
18
|
-
</symbol>
|
|
19
|
-
<symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
|
|
20
|
-
<path fill="currentcolor" d="M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10" />
|
|
21
|
-
</symbol>
|
|
22
|
-
<symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
|
|
23
|
-
<path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
|
|
24
|
-
</symbol>
|
|
25
|
-
</svg>`,ie=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
|
|
26
|
-
<path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
|
|
27
|
-
<path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
|
|
28
|
-
</symbol>`,P=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
|
|
29
|
-
<path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
|
|
30
|
-
</symbol>`,ae=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
|
|
31
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
32
|
-
<path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
|
|
33
|
-
</symbol>`,oe=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
|
|
34
|
-
<path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
|
|
35
|
-
</symbol>`,se=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
|
|
36
|
-
<path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
|
|
37
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
|
|
38
|
-
</symbol>`,ce=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
|
|
39
|
-
<path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
|
|
40
|
-
<path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
|
|
41
|
-
<path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
|
|
42
|
-
</symbol>`,le=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
|
|
43
|
-
<path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
|
|
44
|
-
</symbol>`,ue=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
|
|
45
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
|
|
46
|
-
</symbol>`,de=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
|
|
47
|
-
<path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
|
|
48
|
-
</symbol>`,fe=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
|
|
49
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
|
|
50
|
-
</symbol>`,pe=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
|
|
51
|
-
<path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
|
|
52
|
-
<path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
|
|
53
|
-
</symbol>`,me=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
|
|
54
|
-
<path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
|
|
55
|
-
<path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
|
|
56
|
-
<path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
|
|
57
|
-
</symbol>`,he=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
|
|
58
|
-
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
59
|
-
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
60
|
-
</symbol>`,ge=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
|
|
61
|
-
<path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
|
|
62
|
-
<path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
|
|
63
|
-
</symbol>`,_e=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
|
|
64
|
-
<path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
|
|
65
|
-
<path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
|
|
66
|
-
</symbol>`,ve=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
|
|
67
|
-
<path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
|
|
68
|
-
</symbol>`,ye=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
|
|
69
|
-
<path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
|
|
70
|
-
</symbol>`,be=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
|
|
71
|
-
<path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
|
|
72
|
-
</symbol>`,xe=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
|
|
73
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
|
|
74
|
-
</symbol>`,Se=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
|
|
75
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
76
|
-
<path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
|
|
77
|
-
</symbol>`,Ce=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
|
|
78
|
-
<path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
|
|
79
|
-
<path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
|
|
80
|
-
</symbol>`,we=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
|
|
81
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
82
|
-
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
|
|
83
|
-
</symbol>`,Te=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
|
|
84
|
-
<path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
|
|
85
|
-
</symbol>`,Ee=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
|
|
86
|
-
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
87
|
-
</symbol>`,De=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
|
|
88
|
-
<path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
|
|
89
|
-
<path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
|
|
90
|
-
</symbol>`,Oe=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
|
|
91
|
-
<defs>
|
|
92
|
-
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
93
|
-
<stop stop-color="currentColor"/>
|
|
94
|
-
<stop offset="1" stop-color="currentColor" stop-opacity="0"/>
|
|
95
|
-
</linearGradient>
|
|
96
|
-
</defs>
|
|
97
|
-
<path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
|
|
98
|
-
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
99
|
-
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
100
|
-
</symbol>`,F=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
|
|
101
|
-
<path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
|
|
102
|
-
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
103
|
-
</symbol>`,ke=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
|
|
104
|
-
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
|
|
105
|
-
</symbol>`,Ae=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
|
|
106
|
-
<path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
|
|
107
|
-
</symbol>`,je=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
|
|
108
|
-
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
109
|
-
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
110
|
-
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
111
|
-
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
112
|
-
</symbol>`,Me=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
|
|
113
|
-
<path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
|
|
114
|
-
<path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
|
|
115
|
-
</symbol>`,Ne=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
|
|
116
|
-
<path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
|
|
117
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
|
|
118
|
-
</symbol>`,Pe=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
|
|
119
|
-
<path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
|
|
120
|
-
</symbol>`,Fe=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
|
|
121
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
|
|
122
|
-
</symbol>`,Ie=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
|
|
123
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
|
|
124
|
-
</symbol>`,Le=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
|
|
125
|
-
<path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
|
|
126
|
-
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
127
|
-
</symbol>`,Re=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
|
|
128
|
-
<path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
|
|
129
|
-
</symbol>`,ze=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
|
|
130
|
-
<path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
|
|
131
|
-
<path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
|
|
132
|
-
</symbol>`,Be=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
|
|
133
|
-
<path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
|
|
134
|
-
<path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
|
|
135
|
-
</symbol>`,Ve=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
|
|
136
|
-
<path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
|
|
137
|
-
</symbol>`,He=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
|
|
138
|
-
<path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
|
|
139
|
-
<path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
140
|
-
</symbol>`,Ue=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
|
|
141
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
|
|
142
|
-
</symbol>`,We=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
|
|
143
|
-
<path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
|
|
144
|
-
</symbol>`,Ge=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
|
|
145
|
-
<path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
|
|
146
|
-
<path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
|
|
147
|
-
</symbol>`,Ke=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
|
|
148
|
-
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
149
|
-
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
|
|
150
|
-
</symbol>`,qe=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
|
|
151
|
-
<path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
|
|
152
|
-
</symbol>`,Je=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
|
|
153
|
-
<path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
|
|
154
|
-
<path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
|
|
155
|
-
<path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
|
|
156
|
-
</symbol>`,Ye=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
|
|
157
|
-
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
158
|
-
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
159
|
-
</symbol>`,Xe=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
|
|
160
|
-
<path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
|
|
161
|
-
<path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
|
|
162
|
-
<path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
|
|
163
|
-
</symbol>`,Ze=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
|
|
164
|
-
<path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
|
|
165
|
-
<path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
|
|
166
|
-
</symbol>`,Qe=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
|
|
167
|
-
<path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
|
|
168
|
-
</symbol>`,$e=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
|
|
169
|
-
<path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
|
|
170
|
-
<path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
|
|
171
|
-
</symbol>`,et=[ae,ue,fe,pe,me,he,ve,ye,be,Se,Ce,we,Te,Ee,De,Me,Pe,Fe,Ve,He,Ge,Ke,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
|
|
172
|
-
<path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
|
|
173
|
-
<path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
|
|
174
|
-
</symbol>`],tt=[ie,P,oe,se,ce,le,de,ge,_e,xe,Oe,F,ke,Ae,je,Ne,Ie,Le,Re,ze,Be,Ue,We,qe,Je,Ye,Xe,Ze,Qe,$e];function nt(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
|
|
175
|
-
`)}\n</svg>`)}var rt=nt(re,et),it={minimal:re,standard:rt,complete:nt(rt,tt)},at={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},ot={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,c:`c`,cc:`cpp`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,cpp:`cpp`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,cxx:`cpp`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,h:`c`,hh:`cpp`,hpp:`cpp`,htm:`html`,html:`html`,hxx:`cpp`,icns:`image`,ico:`image`,ini:`text`,inl:`cpp`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mm:`cpp`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},st={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},ct=new Set([`bash`,`c`,`cpp`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),lt=new Set([`complete`]);function ut(e){return it[e===`none`?`minimal`:e]}function I(e){return`file-tree-builtin-${e}`}function L(e){return e!==`none`&<.has(e)}function dt(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=at[t.toLowerCase()];if(i!=null&&(r||ct.has(i)))return i;for(let e of n){if(r){let t=st[e];if(t!=null)return t}let t=ot[e];if(t!=null&&(r||ct.has(t)))return t}return`default`}function ft(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function pt(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(ft(e)?`none`:`complete`),colored:e.colored??!0}}var mt={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function ht(e,t){if(typeof e==`number`)return{itemHeight:t??mt.default.itemHeight,factor:e};let n=mt[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var gt=mt.default.itemHeight,_t=`@layer base, theme, unsafe;
|
|
176
|
-
|
|
177
|
-
@layer base {
|
|
178
|
-
:host {
|
|
179
|
-
/*
|
|
180
|
-
CSS variables use a fallback stack to ensure user and theme colors slot
|
|
181
|
-
in with ease. User colors take precedence over theme colors, which take
|
|
182
|
-
precedence over defaults.
|
|
183
|
-
|
|
184
|
-
Fallback order:
|
|
185
|
-
|
|
186
|
-
1. --trees-*-override (explicit)
|
|
187
|
-
2. --trees-theme-* (e.g. Shiki/VS Code tokens)
|
|
188
|
-
3. defaults
|
|
189
|
-
|
|
190
|
-
Theme variable names mirror Shiki/VS Code theme file JSON tokens.
|
|
191
|
-
|
|
192
|
-
// Available CSS Color Overrides
|
|
193
|
-
--trees-fg-override
|
|
194
|
-
--trees-fg-muted-override
|
|
195
|
-
--trees-bg-override
|
|
196
|
-
--trees-bg-muted-override
|
|
197
|
-
--trees-accent-override
|
|
198
|
-
--trees-border-color-override
|
|
199
|
-
|
|
200
|
-
--trees-focus-ring-color-override
|
|
201
|
-
--trees-focus-ring-width-override
|
|
202
|
-
--trees-focus-ring-offset-override
|
|
203
|
-
|
|
204
|
-
--trees-search-fg-override
|
|
205
|
-
--trees-search-font-weight-override
|
|
206
|
-
--trees-search-bg-override
|
|
207
|
-
|
|
208
|
-
--trees-selected-fg-override
|
|
209
|
-
--trees-selected-bg-override
|
|
210
|
-
--trees-selected-focused-border-color-override
|
|
211
|
-
|
|
212
|
-
// Git Status Color Overrides
|
|
213
|
-
--trees-status-added-override
|
|
214
|
-
--trees-status-ignored-override
|
|
215
|
-
--trees-status-modified-override
|
|
216
|
-
--trees-status-renamed-override
|
|
217
|
-
--trees-status-untracked-override
|
|
218
|
-
--trees-status-deleted-override
|
|
219
|
-
--trees-git-added-color-override
|
|
220
|
-
--trees-git-ignored-color-override
|
|
221
|
-
--trees-git-modified-color-override
|
|
222
|
-
--trees-git-renamed-color-override
|
|
223
|
-
--trees-git-untracked-color-override
|
|
224
|
-
--trees-git-deleted-color-override
|
|
225
|
-
|
|
226
|
-
// Built-in File Icon Color Overrides
|
|
227
|
-
--trees-file-icon-color
|
|
228
|
-
--trees-file-icon-color-astro
|
|
229
|
-
--trees-file-icon-color-babel
|
|
230
|
-
--trees-file-icon-color-bash
|
|
231
|
-
--trees-file-icon-color-biome
|
|
232
|
-
--trees-file-icon-color-bootstrap
|
|
233
|
-
--trees-file-icon-color-browserslist
|
|
234
|
-
--trees-file-icon-color-bun
|
|
235
|
-
--trees-file-icon-color-c
|
|
236
|
-
--trees-file-icon-color-cpp
|
|
237
|
-
--trees-file-icon-color-claude
|
|
238
|
-
--trees-file-icon-color-css
|
|
239
|
-
--trees-file-icon-color-database
|
|
240
|
-
--trees-file-icon-color-default
|
|
241
|
-
--trees-file-icon-color-docker
|
|
242
|
-
--trees-file-icon-color-eslint
|
|
243
|
-
--trees-file-icon-color-git
|
|
244
|
-
--trees-file-icon-color-go
|
|
245
|
-
--trees-file-icon-color-graphql
|
|
246
|
-
--trees-file-icon-color-html
|
|
247
|
-
--trees-file-icon-color-image
|
|
248
|
-
--trees-file-icon-color-javascript
|
|
249
|
-
--trees-file-icon-color-json
|
|
250
|
-
--trees-file-icon-color-markdown
|
|
251
|
-
--trees-file-icon-color-mcp
|
|
252
|
-
--trees-file-icon-color-npm
|
|
253
|
-
--trees-file-icon-color-oxc
|
|
254
|
-
--trees-file-icon-color-postcss
|
|
255
|
-
--trees-file-icon-color-prettier
|
|
256
|
-
--trees-file-icon-color-python
|
|
257
|
-
--trees-file-icon-color-react
|
|
258
|
-
--trees-file-icon-color-ruby
|
|
259
|
-
--trees-file-icon-color-rust
|
|
260
|
-
--trees-file-icon-color-sass
|
|
261
|
-
--trees-file-icon-color-svg
|
|
262
|
-
--trees-file-icon-color-svelte
|
|
263
|
-
--trees-file-icon-color-svgo
|
|
264
|
-
--trees-file-icon-color-swift
|
|
265
|
-
--trees-file-icon-color-table
|
|
266
|
-
--trees-file-icon-color-text
|
|
267
|
-
--trees-file-icon-color-tailwind
|
|
268
|
-
--trees-file-icon-color-terraform
|
|
269
|
-
--trees-file-icon-color-typescript
|
|
270
|
-
--trees-file-icon-color-vite
|
|
271
|
-
--trees-file-icon-color-vscode
|
|
272
|
-
--trees-file-icon-color-vue
|
|
273
|
-
--trees-file-icon-color-wasm
|
|
274
|
-
--trees-file-icon-color-webpack
|
|
275
|
-
--trees-file-icon-color-yml
|
|
276
|
-
--trees-file-icon-color-zig
|
|
277
|
-
--trees-file-icon-color-zip
|
|
278
|
-
|
|
279
|
-
// Density
|
|
280
|
-
//
|
|
281
|
-
// A unitless scale factor for padding, gaps, and indentation. Usually
|
|
282
|
-
// set via \`density\` on useFileTree. Individual overrides take precedence.
|
|
283
|
-
//
|
|
284
|
-
// Compact: 0.8
|
|
285
|
-
// Default: 1
|
|
286
|
-
// Relaxed: 1.2
|
|
287
|
-
//
|
|
288
|
-
--trees-density-override
|
|
289
|
-
|
|
290
|
-
// Available CSS Layout Overrides
|
|
291
|
-
--trees-gap-override
|
|
292
|
-
--trees-border-radius-override
|
|
293
|
-
--trees-font-family-override
|
|
294
|
-
--trees-font-size-override
|
|
295
|
-
--trees-font-weight-regular-override
|
|
296
|
-
--trees-font-weight-semibold-override
|
|
297
|
-
--trees-level-gap-override
|
|
298
|
-
--trees-item-padding-x-override
|
|
299
|
-
--trees-item-margin-x-override
|
|
300
|
-
--trees-item-row-gap-override
|
|
301
|
-
--trees-icon-width-override
|
|
302
|
-
--trees-icon-nudge-override
|
|
303
|
-
--trees-scrollbar-gutter-override
|
|
304
|
-
--trees-padding-inline-override
|
|
305
|
-
*/
|
|
306
|
-
|
|
307
|
-
--trees-accent: var(--trees-accent-override, #009fff);
|
|
308
|
-
--trees-fg: var(
|
|
309
|
-
--trees-fg-override,
|
|
310
|
-
var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1))
|
|
311
|
-
);
|
|
312
|
-
--trees-fg-muted: var(
|
|
313
|
-
--trees-fg-muted-override,
|
|
314
|
-
var(--trees-theme-sidebar-header-fg, light-dark(#84848a, #84848a))
|
|
315
|
-
);
|
|
316
|
-
--trees-bg: var(
|
|
317
|
-
--trees-bg-override,
|
|
318
|
-
var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415))
|
|
319
|
-
);
|
|
320
|
-
/* var(--trees-theme-list-hover-bg, light-dark(#dfebff59, #19283c59)) */
|
|
321
|
-
--trees-bg-muted: var(
|
|
322
|
-
--trees-bg-muted-override,
|
|
323
|
-
var(
|
|
324
|
-
--trees-theme-list-hover-bg,
|
|
325
|
-
light-dark(
|
|
326
|
-
color-mix(
|
|
327
|
-
in lab,
|
|
328
|
-
var(--trees-accent) var(--trees-bg-alpha-light, 8%),
|
|
329
|
-
var(--trees-bg)
|
|
330
|
-
),
|
|
331
|
-
color-mix(
|
|
332
|
-
in lab,
|
|
333
|
-
var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
|
|
334
|
-
var(--trees-bg)
|
|
335
|
-
)
|
|
336
|
-
)
|
|
337
|
-
)
|
|
338
|
-
);
|
|
339
|
-
--trees-input-bg: var(
|
|
340
|
-
--trees-input-bg-override,
|
|
341
|
-
light-dark(#f8f8f8, #070707)
|
|
342
|
-
);
|
|
343
|
-
|
|
344
|
-
--trees-added-light: #16a994;
|
|
345
|
-
--trees-added-dark: #00cab1;
|
|
346
|
-
--trees-ignored-light: #adadb1;
|
|
347
|
-
--trees-ignored-dark: #4a4a4e;
|
|
348
|
-
--trees-modified-light: #1ca1c7;
|
|
349
|
-
--trees-modified-dark: #08c0ef;
|
|
350
|
-
--trees-renamed-light: #d5a910;
|
|
351
|
-
--trees-renamed-dark: #ffd452;
|
|
352
|
-
--trees-untracked-light: #16a994;
|
|
353
|
-
--trees-untracked-dark: #00cab1;
|
|
354
|
-
--trees-deleted-light: #ff2e3f;
|
|
355
|
-
--trees-deleted-dark: #ff6762;
|
|
356
|
-
|
|
357
|
-
--trees-border-color: var(
|
|
358
|
-
--trees-border-color-override,
|
|
359
|
-
var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707))
|
|
360
|
-
);
|
|
361
|
-
--trees-indent-guide-bg: var(
|
|
362
|
-
--trees-indent-guide-bg-override,
|
|
363
|
-
color-mix(in lab, var(--trees-fg-muted) 25%, transparent)
|
|
364
|
-
);
|
|
365
|
-
--trees-density: var(--trees-density-override, 1);
|
|
366
|
-
--trees-border-radius: var(
|
|
367
|
-
--trees-border-radius-override,
|
|
368
|
-
calc(6px * var(--trees-density))
|
|
369
|
-
);
|
|
370
|
-
|
|
371
|
-
--trees-font-family: var(--trees-font-family-override, system-ui);
|
|
372
|
-
--trees-font-size: var(--trees-font-size-override, 13px);
|
|
373
|
-
--trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
|
|
374
|
-
--trees-font-weight-semibold: var(
|
|
375
|
-
--trees-font-weight-semibold-override,
|
|
376
|
-
600
|
|
377
|
-
);
|
|
378
|
-
|
|
379
|
-
--trees-focus-ring-color: var(
|
|
380
|
-
--trees-focus-ring-color-override,
|
|
381
|
-
var(--trees-theme-focus-ring, var(--trees-accent))
|
|
382
|
-
);
|
|
383
|
-
--trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
|
|
384
|
-
--trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
|
|
385
|
-
|
|
386
|
-
--trees-search-fg: var(
|
|
387
|
-
--trees-search-fg-override,
|
|
388
|
-
var(--trees-theme-input-fg, var(--trees-fg))
|
|
389
|
-
);
|
|
390
|
-
--trees-search-font-weight: var(--trees-search-font-weight-override, 600);
|
|
391
|
-
--trees-search-bg: var(
|
|
392
|
-
--trees-search-bg-override,
|
|
393
|
-
var(--trees-theme-input-bg, var(--trees-input-bg))
|
|
394
|
-
);
|
|
395
|
-
|
|
396
|
-
--trees-scrollbar-thumb: var(
|
|
397
|
-
--trees-scrollbar-thumb-override,
|
|
398
|
-
var(
|
|
399
|
-
--trees-theme-scrollbar-thumb,
|
|
400
|
-
color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))
|
|
401
|
-
)
|
|
402
|
-
);
|
|
403
|
-
|
|
404
|
-
--trees-selected-fg: var(
|
|
405
|
-
--trees-selected-fg-override,
|
|
406
|
-
var(--trees-theme-list-active-selection-fg, var(--trees-fg))
|
|
407
|
-
);
|
|
408
|
-
--trees-selected-bg: var(
|
|
409
|
-
--trees-selected-bg-override,
|
|
410
|
-
var(
|
|
411
|
-
--trees-theme-list-active-selection-bg,
|
|
412
|
-
light-dark(
|
|
413
|
-
color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)),
|
|
414
|
-
color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg))
|
|
415
|
-
)
|
|
416
|
-
)
|
|
417
|
-
);
|
|
418
|
-
--trees-selected-focused-border-color: var(
|
|
419
|
-
--trees-selected-focused-border-color-override,
|
|
420
|
-
var(--trees-theme-focus-ring, var(--trees-accent))
|
|
421
|
-
);
|
|
422
|
-
|
|
423
|
-
/* Git status (e.g. from Shiki theme gitDecoration.*) */
|
|
424
|
-
--trees-status-added: var(
|
|
425
|
-
--trees-status-added-override,
|
|
426
|
-
var(
|
|
427
|
-
--trees-theme-git-added-fg,
|
|
428
|
-
light-dark(var(--trees-added-light), var(--trees-added-dark))
|
|
429
|
-
)
|
|
430
|
-
);
|
|
431
|
-
--trees-status-ignored: var(
|
|
432
|
-
--trees-status-ignored-override,
|
|
433
|
-
var(
|
|
434
|
-
--trees-theme-git-ignored-fg,
|
|
435
|
-
light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))
|
|
436
|
-
)
|
|
437
|
-
);
|
|
438
|
-
--trees-status-modified: var(
|
|
439
|
-
--trees-status-modified-override,
|
|
440
|
-
var(
|
|
441
|
-
--trees-theme-git-modified-fg,
|
|
442
|
-
light-dark(var(--trees-modified-light), var(--trees-modified-dark))
|
|
443
|
-
)
|
|
444
|
-
);
|
|
445
|
-
--trees-status-renamed: var(
|
|
446
|
-
--trees-status-renamed-override,
|
|
447
|
-
var(
|
|
448
|
-
--trees-theme-git-renamed-fg,
|
|
449
|
-
light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))
|
|
450
|
-
)
|
|
451
|
-
);
|
|
452
|
-
--trees-status-untracked: var(
|
|
453
|
-
--trees-status-untracked-override,
|
|
454
|
-
var(
|
|
455
|
-
--trees-theme-git-untracked-fg,
|
|
456
|
-
light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))
|
|
457
|
-
)
|
|
458
|
-
);
|
|
459
|
-
--trees-status-deleted: var(
|
|
460
|
-
--trees-status-deleted-override,
|
|
461
|
-
var(
|
|
462
|
-
--trees-theme-git-deleted-fg,
|
|
463
|
-
light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))
|
|
464
|
-
)
|
|
465
|
-
);
|
|
466
|
-
--trees-git-modified-color: var(
|
|
467
|
-
--trees-git-modified-color-override,
|
|
468
|
-
var(--trees-status-modified)
|
|
469
|
-
);
|
|
470
|
-
--trees-git-added-color: var(
|
|
471
|
-
--trees-git-added-color-override,
|
|
472
|
-
var(--trees-status-added)
|
|
473
|
-
);
|
|
474
|
-
--trees-git-ignored-color: var(
|
|
475
|
-
--trees-git-ignored-color-override,
|
|
476
|
-
var(--trees-status-ignored)
|
|
477
|
-
);
|
|
478
|
-
--trees-git-deleted-color: var(
|
|
479
|
-
--trees-git-deleted-color-override,
|
|
480
|
-
var(--trees-status-deleted)
|
|
481
|
-
);
|
|
482
|
-
--trees-git-renamed-color: var(
|
|
483
|
-
--trees-git-renamed-color-override,
|
|
484
|
-
var(--trees-status-renamed)
|
|
485
|
-
);
|
|
486
|
-
--trees-git-untracked-color: var(
|
|
487
|
-
--trees-git-untracked-color-override,
|
|
488
|
-
var(--trees-status-untracked)
|
|
489
|
-
);
|
|
490
|
-
|
|
491
|
-
--trees-icon-gray: light-dark(#84848a, #adadb1);
|
|
492
|
-
--trees-icon-red: light-dark(#d52c36, #ff6762);
|
|
493
|
-
--trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
|
|
494
|
-
--trees-icon-orange: light-dark(#d47628, #ffa359);
|
|
495
|
-
--trees-icon-yellow: light-dark(#d5a910, #ffd452);
|
|
496
|
-
--trees-icon-green: light-dark(#199f43, #5ecc71);
|
|
497
|
-
--trees-icon-teal: light-dark(#17a5af, #64d1db);
|
|
498
|
-
--trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
|
|
499
|
-
--trees-icon-blue: light-dark(#1a85d4, #69b1ff);
|
|
500
|
-
--trees-icon-indigo: light-dark(#693acf, #9d6afb);
|
|
501
|
-
--trees-icon-purple: light-dark(#a631be, #d568ea);
|
|
502
|
-
--trees-icon-pink: light-dark(#d32a61, #ff678d);
|
|
503
|
-
--trees-icon-mauve: light-dark(#594c5b, #79697b);
|
|
504
|
-
|
|
505
|
-
--trees-file-icon-color-default: var(
|
|
506
|
-
--trees-file-icon-color,
|
|
507
|
-
var(--trees-icon-gray)
|
|
508
|
-
);
|
|
509
|
-
--trees-file-icon-color-astro: var(
|
|
510
|
-
--trees-file-icon-color,
|
|
511
|
-
var(--trees-icon-purple)
|
|
512
|
-
);
|
|
513
|
-
--trees-file-icon-color-babel: var(
|
|
514
|
-
--trees-file-icon-color,
|
|
515
|
-
var(--trees-icon-yellow)
|
|
516
|
-
);
|
|
517
|
-
--trees-file-icon-color-bash: var(
|
|
518
|
-
--trees-file-icon-color,
|
|
519
|
-
var(--trees-icon-green)
|
|
520
|
-
);
|
|
521
|
-
--trees-file-icon-color-biome: var(
|
|
522
|
-
--trees-file-icon-color,
|
|
523
|
-
var(--trees-icon-blue)
|
|
524
|
-
);
|
|
525
|
-
--trees-file-icon-color-bootstrap: var(
|
|
526
|
-
--trees-file-icon-color,
|
|
527
|
-
var(--trees-icon-indigo)
|
|
528
|
-
);
|
|
529
|
-
--trees-file-icon-color-browserslist: var(
|
|
530
|
-
--trees-file-icon-color,
|
|
531
|
-
var(--trees-icon-yellow)
|
|
532
|
-
);
|
|
533
|
-
--trees-file-icon-color-bun: var(
|
|
534
|
-
--trees-file-icon-color,
|
|
535
|
-
var(--trees-icon-mauve)
|
|
536
|
-
);
|
|
537
|
-
--trees-file-icon-color-c: var(
|
|
538
|
-
--trees-file-icon-color,
|
|
539
|
-
var(--trees-icon-blue)
|
|
540
|
-
);
|
|
541
|
-
--trees-file-icon-color-cpp: var(
|
|
542
|
-
--trees-file-icon-color,
|
|
543
|
-
var(--trees-icon-blue)
|
|
544
|
-
);
|
|
545
|
-
--trees-file-icon-color-claude: var(
|
|
546
|
-
--trees-file-icon-color,
|
|
547
|
-
var(--trees-icon-orange)
|
|
548
|
-
);
|
|
549
|
-
--trees-file-icon-color-css: var(
|
|
550
|
-
--trees-file-icon-color,
|
|
551
|
-
var(--trees-icon-indigo)
|
|
552
|
-
);
|
|
553
|
-
--trees-file-icon-color-database: var(
|
|
554
|
-
--trees-file-icon-color,
|
|
555
|
-
var(--trees-icon-purple)
|
|
556
|
-
);
|
|
557
|
-
--trees-file-icon-color-docker: var(
|
|
558
|
-
--trees-file-icon-color,
|
|
559
|
-
var(--trees-icon-blue)
|
|
560
|
-
);
|
|
561
|
-
--trees-file-icon-color-eslint: var(
|
|
562
|
-
--trees-file-icon-color,
|
|
563
|
-
var(--trees-icon-indigo)
|
|
564
|
-
);
|
|
565
|
-
--trees-file-icon-color-git: var(
|
|
566
|
-
--trees-file-icon-vermilion,
|
|
567
|
-
var(--trees-icon-vermilion)
|
|
568
|
-
);
|
|
569
|
-
--trees-file-icon-color-go: var(
|
|
570
|
-
--trees-file-icon-color,
|
|
571
|
-
var(--trees-icon-cyan)
|
|
572
|
-
);
|
|
573
|
-
--trees-file-icon-color-graphql: var(
|
|
574
|
-
--trees-file-icon-color,
|
|
575
|
-
var(--trees-icon-pink)
|
|
576
|
-
);
|
|
577
|
-
--trees-file-icon-color-html: var(
|
|
578
|
-
--trees-file-icon-color,
|
|
579
|
-
var(--trees-icon-orange)
|
|
580
|
-
);
|
|
581
|
-
--trees-file-icon-color-image: var(
|
|
582
|
-
--trees-file-icon-color,
|
|
583
|
-
var(--trees-icon-pink)
|
|
584
|
-
);
|
|
585
|
-
--trees-file-icon-color-javascript: var(
|
|
586
|
-
--trees-file-icon-color,
|
|
587
|
-
var(--trees-icon-yellow)
|
|
588
|
-
);
|
|
589
|
-
--trees-file-icon-color-json: var(
|
|
590
|
-
--trees-file-icon-color,
|
|
591
|
-
var(--trees-icon-orange)
|
|
592
|
-
);
|
|
593
|
-
--trees-file-icon-color-markdown: var(
|
|
594
|
-
--trees-file-icon-color,
|
|
595
|
-
var(--trees-icon-green)
|
|
596
|
-
);
|
|
597
|
-
--trees-file-icon-color-mcp: var(
|
|
598
|
-
--trees-file-icon-color,
|
|
599
|
-
var(--trees-icon-teal)
|
|
600
|
-
);
|
|
601
|
-
--trees-file-icon-color-npm: var(
|
|
602
|
-
--trees-file-icon-color,
|
|
603
|
-
var(--trees-icon-red)
|
|
604
|
-
);
|
|
605
|
-
--trees-file-icon-color-oxc: var(
|
|
606
|
-
--trees-file-icon-cyan,
|
|
607
|
-
var(--trees-icon-cyan)
|
|
608
|
-
);
|
|
609
|
-
--trees-file-icon-color-postcss: var(
|
|
610
|
-
--trees-file-icon-color,
|
|
611
|
-
var(--trees-icon-red)
|
|
612
|
-
);
|
|
613
|
-
--trees-file-icon-color-prettier: var(
|
|
614
|
-
--trees-file-icon-color,
|
|
615
|
-
var(--trees-icon-teal)
|
|
616
|
-
);
|
|
617
|
-
--trees-file-icon-color-python: var(
|
|
618
|
-
--trees-file-icon-color,
|
|
619
|
-
var(--trees-icon-blue)
|
|
620
|
-
);
|
|
621
|
-
--trees-file-icon-color-react: var(
|
|
622
|
-
--trees-file-icon-color,
|
|
623
|
-
var(--trees-icon-cyan)
|
|
624
|
-
);
|
|
625
|
-
--trees-file-icon-color-ruby: var(
|
|
626
|
-
--trees-file-icon-color,
|
|
627
|
-
var(--trees-icon-red)
|
|
628
|
-
);
|
|
629
|
-
--trees-file-icon-color-rust: var(
|
|
630
|
-
--trees-file-icon-color,
|
|
631
|
-
var(--trees-icon-orange)
|
|
632
|
-
);
|
|
633
|
-
--trees-file-icon-color-sass: var(
|
|
634
|
-
--trees-file-icon-color,
|
|
635
|
-
var(--trees-icon-pink)
|
|
636
|
-
);
|
|
637
|
-
--trees-file-icon-color-svg: var(
|
|
638
|
-
--trees-file-icon-color,
|
|
639
|
-
var(--trees-icon-orange)
|
|
640
|
-
);
|
|
641
|
-
--trees-file-icon-color-svelte: var(
|
|
642
|
-
--trees-file-icon-color,
|
|
643
|
-
var(--trees-icon-red)
|
|
644
|
-
);
|
|
645
|
-
--trees-file-icon-color-svgo: var(
|
|
646
|
-
--trees-file-icon-color,
|
|
647
|
-
var(--trees-icon-green)
|
|
648
|
-
);
|
|
649
|
-
--trees-file-icon-color-swift: var(
|
|
650
|
-
--trees-file-icon-color,
|
|
651
|
-
var(--trees-icon-orange)
|
|
652
|
-
);
|
|
653
|
-
--trees-file-icon-color-table: var(
|
|
654
|
-
--trees-file-icon-color,
|
|
655
|
-
var(--trees-icon-teal)
|
|
656
|
-
);
|
|
657
|
-
--trees-file-icon-color-text: var(
|
|
658
|
-
--trees-file-icon-color,
|
|
659
|
-
var(--trees-icon-gray)
|
|
660
|
-
);
|
|
661
|
-
--trees-file-icon-color-tailwind: var(
|
|
662
|
-
--trees-file-icon-color,
|
|
663
|
-
var(--trees-icon-cyan)
|
|
664
|
-
);
|
|
665
|
-
--trees-file-icon-color-terraform: var(
|
|
666
|
-
--trees-file-icon-color,
|
|
667
|
-
var(--trees-icon-indigo)
|
|
668
|
-
);
|
|
669
|
-
--trees-file-icon-color-typescript: var(
|
|
670
|
-
--trees-file-icon-color,
|
|
671
|
-
var(--trees-icon-blue)
|
|
672
|
-
);
|
|
673
|
-
--trees-file-icon-color-vite: var(
|
|
674
|
-
--trees-file-icon-color,
|
|
675
|
-
var(--trees-icon-purple)
|
|
676
|
-
);
|
|
677
|
-
--trees-file-icon-color-vscode: var(
|
|
678
|
-
--trees-file-icon-color,
|
|
679
|
-
var(--trees-icon-blue)
|
|
680
|
-
);
|
|
681
|
-
--trees-file-icon-color-vue: var(
|
|
682
|
-
--trees-file-icon-color,
|
|
683
|
-
var(--trees-icon-green)
|
|
684
|
-
);
|
|
685
|
-
--trees-file-icon-color-wasm: var(
|
|
686
|
-
--trees-file-icon-color,
|
|
687
|
-
var(--trees-icon-indigo)
|
|
688
|
-
);
|
|
689
|
-
--trees-file-icon-color-webpack: var(
|
|
690
|
-
--trees-file-icon-color,
|
|
691
|
-
var(--trees-icon-blue)
|
|
692
|
-
);
|
|
693
|
-
--trees-file-icon-color-yml: var(
|
|
694
|
-
--trees-file-icon-color,
|
|
695
|
-
var(--trees-icon-red)
|
|
696
|
-
);
|
|
697
|
-
--trees-file-icon-color-zig: var(
|
|
698
|
-
--trees-file-icon-color,
|
|
699
|
-
var(--trees-icon-orange)
|
|
700
|
-
);
|
|
701
|
-
--trees-file-icon-color-zip: var(
|
|
702
|
-
--trees-file-icon-color,
|
|
703
|
-
var(--trees-icon-orange)
|
|
704
|
-
);
|
|
705
|
-
|
|
706
|
-
--trees-level-gap: var(
|
|
707
|
-
--trees-level-gap-override,
|
|
708
|
-
calc(8px * var(--trees-density))
|
|
709
|
-
);
|
|
710
|
-
--trees-item-padding-x: var(
|
|
711
|
-
--trees-item-padding-x-override,
|
|
712
|
-
calc(8px * var(--trees-density))
|
|
713
|
-
);
|
|
714
|
-
--trees-item-margin-x: var(
|
|
715
|
-
--trees-item-margin-x-override,
|
|
716
|
-
calc(2px * var(--trees-density))
|
|
717
|
-
);
|
|
718
|
-
--trees-item-row-gap: var(
|
|
719
|
-
--trees-item-row-gap-override,
|
|
720
|
-
calc(6px * var(--trees-density))
|
|
721
|
-
);
|
|
722
|
-
--trees-icon-width: var(--trees-icon-width-override, 16px);
|
|
723
|
-
--trees-icon-nudge: var(
|
|
724
|
-
--trees-icon-nudge-override,
|
|
725
|
-
calc(1px * var(--trees-density))
|
|
726
|
-
);
|
|
727
|
-
--trees-row-height: var(--trees-item-height, 30px);
|
|
728
|
-
--trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
|
|
729
|
-
--trees-action-lane-width: var(
|
|
730
|
-
--trees-action-lane-width-override,
|
|
731
|
-
calc(var(--trees-icon-width) + 2px)
|
|
732
|
-
);
|
|
733
|
-
/* Keep the floating trigger aligned with the row's action lane. Going in
|
|
734
|
-
from the root's right edge: the scroll container reserves
|
|
735
|
-
\`--trees-padding-inline\` of effective inset on each side (its asymmetric
|
|
736
|
-
padding formula cancels the scrollbar gutter on the right), the row
|
|
737
|
-
sits inside that inset, and its trailing \`--trees-item-padding-x\` is the
|
|
738
|
-
action lane itself. The trigger's own focus-ring margin then trims one
|
|
739
|
-
pixel back so the button's visible right edge lines up with the lane. */
|
|
740
|
-
--trees-context-menu-trigger-inline-offset: calc(
|
|
741
|
-
var(--trees-padding-inline) + var(--trees-item-padding-x) -
|
|
742
|
-
var(--trees-focus-ring-width)
|
|
743
|
-
);
|
|
744
|
-
|
|
745
|
-
--trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
|
|
746
|
-
--trees-padding-inline: var(--trees-padding-inline-override, 16px);
|
|
747
|
-
|
|
748
|
-
color-scheme: light dark;
|
|
749
|
-
display: flex;
|
|
750
|
-
flex-direction: column;
|
|
751
|
-
font-size: var(--trees-font-size);
|
|
752
|
-
color: var(--trees-fg);
|
|
753
|
-
background-color: var(--trees-bg);
|
|
754
|
-
--truncate-marker-background-color: var(--trees-bg);
|
|
755
|
-
--truncate-marker-background-overlay-color: transparent;
|
|
756
|
-
font-family: var(--trees-font-family);
|
|
757
|
-
font-weight: var(--trees-font-weight-regular);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
:host([data-file-tree-virtualized='true']) {
|
|
761
|
-
height: 100%;
|
|
762
|
-
overflow: hidden;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
[data-file-tree-virtualized-wrapper='true'] {
|
|
766
|
-
height: 100%;
|
|
767
|
-
overflow: hidden;
|
|
768
|
-
display: flex;
|
|
769
|
-
flex-direction: column;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
[data-file-tree-virtualized-root='true'] {
|
|
773
|
-
height: 100%;
|
|
774
|
-
display: flex;
|
|
775
|
-
flex-direction: column;
|
|
776
|
-
overflow: hidden;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
[data-file-tree-virtualized-scroll='true'],
|
|
780
|
-
[data-file-tree-scrollbar-measure='true'] {
|
|
781
|
-
--trees-scrollbar-thumb-current: transparent;
|
|
782
|
-
overflow-y: auto;
|
|
783
|
-
scrollbar-gutter: stable;
|
|
784
|
-
|
|
785
|
-
&:hover {
|
|
786
|
-
--trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
&::-webkit-scrollbar {
|
|
790
|
-
width: var(--trees-scrollbar-gutter);
|
|
791
|
-
height: var(--trees-scrollbar-gutter);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
&::-webkit-scrollbar-track {
|
|
795
|
-
background: transparent;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
&::-webkit-scrollbar-thumb {
|
|
799
|
-
background-color: var(--trees-scrollbar-thumb-current);
|
|
800
|
-
border: 1px solid transparent;
|
|
801
|
-
background-clip: content-box;
|
|
802
|
-
border-radius: calc(var(--trees-scrollbar-gutter) / 2);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
&::-webkit-scrollbar-corner {
|
|
806
|
-
background-color: transparent;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/* These are styles for a temporarily generated element to measure the size
|
|
811
|
-
* of the scrollbar. It's intended to be somewhat similar in scrollbar style
|
|
812
|
-
* scope to the scrollable tree so \`--trees-scrollbar-gutter-measured\` is an
|
|
813
|
-
* accurate reflection of the size the scrollbar gutter takes up. */
|
|
814
|
-
[data-file-tree-scrollbar-measure='true'] {
|
|
815
|
-
position: absolute;
|
|
816
|
-
top: 0;
|
|
817
|
-
left: 0;
|
|
818
|
-
visibility: hidden;
|
|
819
|
-
pointer-events: none;
|
|
820
|
-
width: 100px;
|
|
821
|
-
height: 100px;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
@supports (-moz-appearance: none) {
|
|
825
|
-
[data-file-tree-virtualized-scroll='true'],
|
|
826
|
-
[data-file-tree-scrollbar-measure='true'] {
|
|
827
|
-
scrollbar-width: thin;
|
|
828
|
-
scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
[data-file-tree-virtualized-scroll='true'] {
|
|
833
|
-
position: relative;
|
|
834
|
-
overflow-y: auto;
|
|
835
|
-
flex: 1 1 0;
|
|
836
|
-
min-height: 0;
|
|
837
|
-
padding-inline: max(
|
|
838
|
-
calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
839
|
-
0px
|
|
840
|
-
)
|
|
841
|
-
/* NOTE(amadeus): We can assume that all Webkit based browser gutters
|
|
842
|
-
* will align to the value of '--trees-scrollbar-gutter', however if not, then
|
|
843
|
-
* \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
|
|
844
|
-
* hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
|
|
845
|
-
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
846
|
-
*/
|
|
847
|
-
max(
|
|
848
|
-
calc(
|
|
849
|
-
var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
850
|
-
var(
|
|
851
|
-
--trees-scrollbar-gutter-measured,
|
|
852
|
-
var(--trees-scrollbar-gutter)
|
|
853
|
-
)
|
|
854
|
-
),
|
|
855
|
-
0px
|
|
856
|
-
);
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
@supports (-moz-appearance: none) {
|
|
860
|
-
[data-file-tree-virtualized-scroll='true'] {
|
|
861
|
-
padding-inline: max(
|
|
862
|
-
calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
863
|
-
0px
|
|
864
|
-
)
|
|
865
|
-
/* NOTE(amadeus): However on Firefox it can vary a little bit, but most
|
|
866
|
-
* likely the majority of cases will default to a 0px width scrollbar lets
|
|
867
|
-
* inherit that first to avoid SSR jumps. In non-SSR'd environments
|
|
868
|
-
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
869
|
-
*/
|
|
870
|
-
max(
|
|
871
|
-
calc(
|
|
872
|
-
var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
873
|
-
var(--trees-scrollbar-gutter-measured, 0px)
|
|
874
|
-
),
|
|
875
|
-
0px
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
[data-file-tree-sticky-overlay='true'] {
|
|
881
|
-
position: sticky;
|
|
882
|
-
top: 0;
|
|
883
|
-
height: 0;
|
|
884
|
-
z-index: 4;
|
|
885
|
-
overflow: visible;
|
|
886
|
-
pointer-events: none;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
/* The overlay DOM is kept populated even at scrollTop=0 so the browser has
|
|
890
|
-
* the rendered rows on hand the moment scrolling begins — otherwise the
|
|
891
|
-
* compositor paints a scrolled frame before React can mount the overlay,
|
|
892
|
-
* and the topmost sticky folder jumps up by a couple of pixels before it
|
|
893
|
-
* "snaps" into its pinned position. We hide it via CSS whenever the scroll
|
|
894
|
-
* is at the top and no scroll is in progress, so the preview doesn't leak
|
|
895
|
-
* through at rest. \`data-overlay-reveal\` is stamped on the root only when
|
|
896
|
-
* the user initiates a scroll while already at the top — exactly the case
|
|
897
|
-
* where we need the pre-mounted overlay to be visible through the first
|
|
898
|
-
* compositor frame. It is deliberately distinct from the general
|
|
899
|
-
* \`data-is-scrolling\` flag so a scroll that ends at the top (e.g. ArrowUp
|
|
900
|
-
* navigation) re-hides the overlay the instant the scroll lands, rather
|
|
901
|
-
* than waiting for the hover-suppression timer to elapse. */
|
|
902
|
-
[data-file-tree-virtualized-root='true'][data-scroll-at-top='true']:not(
|
|
903
|
-
[data-overlay-reveal]
|
|
904
|
-
)
|
|
905
|
-
[data-file-tree-sticky-overlay='true'] {
|
|
906
|
-
visibility: hidden;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
[data-file-tree-sticky-overlay-content='true'] {
|
|
910
|
-
background-color: var(--trees-bg);
|
|
911
|
-
position: relative;
|
|
912
|
-
pointer-events: none;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
[data-file-tree-virtualized-list='true'] {
|
|
916
|
-
background-color: var(--trees-bg);
|
|
917
|
-
position: relative;
|
|
918
|
-
min-height: 100%;
|
|
919
|
-
width: 100%;
|
|
920
|
-
overflow-anchor: none;
|
|
921
|
-
|
|
922
|
-
&[data-is-scrolling] {
|
|
923
|
-
pointer-events: none;
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
[data-file-tree-virtualized-sticky-offset='true'] {
|
|
928
|
-
contain: layout size;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
[data-file-tree-virtualized-sticky='true'] {
|
|
932
|
-
position: sticky;
|
|
933
|
-
top: 0;
|
|
934
|
-
width: 100%;
|
|
935
|
-
display: flex;
|
|
936
|
-
flex-direction: column;
|
|
937
|
-
isolation: isolate;
|
|
938
|
-
/* Promote to its own compositor layer so text inside the window is
|
|
939
|
-
* rasterized once and GPU-translated during scroll. Without this, the
|
|
940
|
-
* browser re-paints the window (and its text) at every scroll frame,
|
|
941
|
-
* which produces visible 1px shake / character tearing. */
|
|
942
|
-
will-change: transform;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
[data-file-tree-search-container] {
|
|
946
|
-
display: flex;
|
|
947
|
-
padding: 0;
|
|
948
|
-
padding-inline: var(--trees-padding-inline);
|
|
949
|
-
margin-bottom: var(--trees-item-row-gap);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
[data-file-tree-search-input] {
|
|
953
|
-
--trees-focus-ring-width: 2px;
|
|
954
|
-
font-family: var(--trees-font-family);
|
|
955
|
-
font-size: var(--trees-font-size);
|
|
956
|
-
flex: 1;
|
|
957
|
-
height: var(--trees-row-height);
|
|
958
|
-
/* 1px breathing room so the focus-visible outline isn't clipped when the
|
|
959
|
-
* input sits flush against the top of the scroll container. */
|
|
960
|
-
margin-block: 1px;
|
|
961
|
-
padding-inline: var(--trees-item-padding-x);
|
|
962
|
-
line-height: var(--trees-row-height);
|
|
963
|
-
color: var(--trees-search-fg);
|
|
964
|
-
background-color: var(--trees-search-bg);
|
|
965
|
-
border: 1px solid var(--trees-border-color);
|
|
966
|
-
border-radius: var(--trees-border-radius);
|
|
967
|
-
outline: none;
|
|
968
|
-
|
|
969
|
-
&::placeholder {
|
|
970
|
-
color: color-mix(
|
|
971
|
-
in lab,
|
|
972
|
-
var(--trees-search-fg) 65%,
|
|
973
|
-
var(--trees-search-bg)
|
|
974
|
-
);
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
&:focus-visible,
|
|
978
|
-
&[data-file-tree-search-input-fake-focus='true'] {
|
|
979
|
-
outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
|
|
980
|
-
outline-offset: var(--trees-focus-ring-offset);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
/* The wrapper for the tree items */
|
|
985
|
-
[role='tree'] {
|
|
986
|
-
position: relative;
|
|
987
|
-
display: flex;
|
|
988
|
-
flex-direction: column;
|
|
989
|
-
gap: var(--trees-gap-override, 0);
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
/* LIST ITEM */
|
|
993
|
-
[data-type='item'] {
|
|
994
|
-
color: inherit;
|
|
995
|
-
font-family: var(--trees-font-family);
|
|
996
|
-
font-size: var(--trees-font-size);
|
|
997
|
-
text-align: start;
|
|
998
|
-
outline: none;
|
|
999
|
-
background-color: var(--trees-bg);
|
|
1000
|
-
border: none;
|
|
1001
|
-
position: relative;
|
|
1002
|
-
|
|
1003
|
-
padding: 0 var(--trees-item-padding-x);
|
|
1004
|
-
margin: 0 var(--trees-item-margin-x);
|
|
1005
|
-
cursor: pointer;
|
|
1006
|
-
-webkit-user-select: none;
|
|
1007
|
-
user-select: none;
|
|
1008
|
-
-webkit-touch-callout: none;
|
|
1009
|
-
touch-action: manipulation;
|
|
1010
|
-
display: flex;
|
|
1011
|
-
flex: 0 0 var(--trees-row-height);
|
|
1012
|
-
align-items: center;
|
|
1013
|
-
height: var(--trees-row-height);
|
|
1014
|
-
line-height: var(--trees-row-height);
|
|
1015
|
-
gap: var(--trees-item-row-gap);
|
|
1016
|
-
border-radius: var(--trees-border-radius);
|
|
1017
|
-
/* Row states may be translucent, so markers paint the tree background first
|
|
1018
|
-
* and then the state color on top to avoid compositing the same alpha twice. */
|
|
1019
|
-
--truncate-marker-background-color: var(--trees-bg);
|
|
1020
|
-
--truncate-marker-background-overlay-color: transparent;
|
|
1021
|
-
--truncate-marker-block-inset: 0px;
|
|
1022
|
-
|
|
1023
|
-
&:hover,
|
|
1024
|
-
&[data-item-context-hover='true'] {
|
|
1025
|
-
background-color: var(--trees-bg-muted);
|
|
1026
|
-
--truncate-marker-background-overlay-color: var(--trees-bg-muted);
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
&[data-item-focused='true'],
|
|
1030
|
-
&:focus-visible {
|
|
1031
|
-
z-index: 2;
|
|
1032
|
-
|
|
1033
|
-
/* Flattened segment markers sit high enough to cover the row outline unless
|
|
1034
|
-
* their painted background is inset by the focus ring width. */
|
|
1035
|
-
[data-item-flattened-subitems] {
|
|
1036
|
-
--truncate-marker-block-inset: var(--trees-focus-ring-width);
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
&::before {
|
|
1040
|
-
position: absolute;
|
|
1041
|
-
inset: 0;
|
|
1042
|
-
content: '';
|
|
1043
|
-
display: block;
|
|
1044
|
-
border-radius: var(--trees-border-radius);
|
|
1045
|
-
outline: var(--trees-focus-ring-width) solid
|
|
1046
|
-
var(--trees-focus-ring-color);
|
|
1047
|
-
outline-offset: var(--trees-focus-ring-offset);
|
|
1048
|
-
pointer-events: none;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
&[data-item-selected='true']::before {
|
|
1052
|
-
outline-color: var(--trees-selected-focused-border-color);
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
&[data-item-selected='true'] {
|
|
1057
|
-
color: var(--trees-selected-fg);
|
|
1058
|
-
background-color: var(--trees-selected-bg);
|
|
1059
|
-
--truncate-marker-background-overlay-color: var(--trees-selected-bg);
|
|
1060
|
-
z-index: 3;
|
|
1061
|
-
|
|
1062
|
-
[data-item-section='icon'] {
|
|
1063
|
-
color: var(--trees-selected-fg);
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
&[data-item-search-match='true'] {
|
|
1068
|
-
font-weight: var(--trees-search-font-weight);
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
[data-type='item'][data-file-tree-sticky-row='true'] {
|
|
1073
|
-
pointer-events: auto;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
/* Sticky rows opt back into pointer events because the overlay wrapper is
|
|
1077
|
-
* inert. During scroll, put them back under the same hover suppression as
|
|
1078
|
-
* the virtualized list so translucent hover states and menu triggers do not
|
|
1079
|
-
* paint over rows moving beneath the sticky stack. */
|
|
1080
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1081
|
-
[data-type='item'][data-file-tree-sticky-row='true'] {
|
|
1082
|
-
pointer-events: none;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1086
|
-
[data-type='item'][data-file-tree-sticky-row='true']:hover:not(
|
|
1087
|
-
[data-item-selected='true']
|
|
1088
|
-
),
|
|
1089
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1090
|
-
[data-type='item'][data-file-tree-sticky-row='true'][data-item-context-hover='true']:not(
|
|
1091
|
-
[data-item-selected='true']
|
|
1092
|
-
) {
|
|
1093
|
-
background-color: var(--trees-bg);
|
|
1094
|
-
--truncate-marker-background-overlay-color: transparent;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
[data-item-selected='true']:has(+ [data-item-selected='true']) {
|
|
1098
|
-
border-bottom-left-radius: 0;
|
|
1099
|
-
border-bottom-right-radius: 0;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
[data-item-selected='true'] + [data-item-selected='true'] {
|
|
1103
|
-
border-top-left-radius: 0;
|
|
1104
|
-
border-top-right-radius: 0;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
/* Flattened Directory Parts */
|
|
1108
|
-
[data-item-flattened-subitems] {
|
|
1109
|
-
display: inline-flex;
|
|
1110
|
-
align-items: center;
|
|
1111
|
-
gap: 2px;
|
|
1112
|
-
}
|
|
1113
|
-
[data-item-flattened-subitem]:hover,
|
|
1114
|
-
[data-item-flattened-subitem-drag-target='true'] {
|
|
1115
|
-
text-decoration: underline;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
/* Icon for each item */
|
|
1119
|
-
[data-item-section='icon'] {
|
|
1120
|
-
flex-shrink: 0;
|
|
1121
|
-
display: flex;
|
|
1122
|
-
align-items: center;
|
|
1123
|
-
justify-content: center;
|
|
1124
|
-
color: var(--trees-fg-muted);
|
|
1125
|
-
fill: currentColor;
|
|
1126
|
-
width: var(--trees-icon-width);
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
:where([data-item-section='icon'] > [data-icon-token]) {
|
|
1130
|
-
color: var(--trees-fg-muted);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
[data-file-tree-colored-icons='true'] {
|
|
1134
|
-
[data-icon-token='astro'] {
|
|
1135
|
-
color: var(--trees-file-icon-color-astro);
|
|
1136
|
-
}
|
|
1137
|
-
[data-icon-token='babel'] {
|
|
1138
|
-
color: var(--trees-file-icon-color-babel);
|
|
1139
|
-
}
|
|
1140
|
-
[data-icon-token='bash'] {
|
|
1141
|
-
color: var(--trees-file-icon-color-bash);
|
|
1142
|
-
}
|
|
1143
|
-
[data-icon-token='biome'] {
|
|
1144
|
-
color: var(--trees-file-icon-color-biome);
|
|
1145
|
-
}
|
|
1146
|
-
[data-icon-token='bootstrap'] {
|
|
1147
|
-
color: var(--trees-file-icon-color-bootstrap);
|
|
1148
|
-
}
|
|
1149
|
-
[data-icon-token='browserslist'] {
|
|
1150
|
-
color: var(--trees-file-icon-color-browserslist);
|
|
1151
|
-
}
|
|
1152
|
-
[data-icon-token='bun'] {
|
|
1153
|
-
color: var(--trees-file-icon-color-bun);
|
|
1154
|
-
}
|
|
1155
|
-
[data-icon-token='c'] {
|
|
1156
|
-
color: var(--trees-file-icon-color-c);
|
|
1157
|
-
}
|
|
1158
|
-
[data-icon-token='cpp'] {
|
|
1159
|
-
color: var(--trees-file-icon-color-cpp);
|
|
1160
|
-
}
|
|
1161
|
-
[data-icon-token='claude'] {
|
|
1162
|
-
color: var(--trees-file-icon-color-claude);
|
|
1163
|
-
}
|
|
1164
|
-
[data-icon-token='css'] {
|
|
1165
|
-
color: var(--trees-file-icon-color-css);
|
|
1166
|
-
}
|
|
1167
|
-
[data-icon-token='database'] {
|
|
1168
|
-
color: var(--trees-file-icon-color-database);
|
|
1169
|
-
}
|
|
1170
|
-
[data-icon-token='default'] {
|
|
1171
|
-
color: var(--trees-file-icon-color-default);
|
|
1172
|
-
}
|
|
1173
|
-
[data-icon-token='docker'] {
|
|
1174
|
-
color: var(--trees-file-icon-color-docker);
|
|
1175
|
-
}
|
|
1176
|
-
[data-icon-token='eslint'] {
|
|
1177
|
-
color: var(--trees-file-icon-color-eslint);
|
|
1178
|
-
}
|
|
1179
|
-
[data-icon-token='git'] {
|
|
1180
|
-
color: var(--trees-file-icon-color-git);
|
|
1181
|
-
}
|
|
1182
|
-
[data-icon-token='go'] {
|
|
1183
|
-
color: var(--trees-file-icon-color-go);
|
|
1184
|
-
}
|
|
1185
|
-
[data-icon-token='graphql'] {
|
|
1186
|
-
color: var(--trees-file-icon-color-graphql);
|
|
1187
|
-
}
|
|
1188
|
-
[data-icon-token='html'] {
|
|
1189
|
-
color: var(--trees-file-icon-color-html);
|
|
1190
|
-
}
|
|
1191
|
-
[data-icon-token='image'] {
|
|
1192
|
-
color: var(--trees-file-icon-color-image);
|
|
1193
|
-
}
|
|
1194
|
-
[data-icon-token='javascript'] {
|
|
1195
|
-
color: var(--trees-file-icon-color-javascript);
|
|
1196
|
-
}
|
|
1197
|
-
[data-icon-token='json'] {
|
|
1198
|
-
color: var(--trees-file-icon-color-json);
|
|
1199
|
-
}
|
|
1200
|
-
[data-icon-token='markdown'] {
|
|
1201
|
-
color: var(--trees-file-icon-color-markdown);
|
|
1202
|
-
}
|
|
1203
|
-
[data-icon-token='mcp'] {
|
|
1204
|
-
color: var(--trees-file-icon-color-mcp);
|
|
1205
|
-
}
|
|
1206
|
-
[data-icon-token='npm'] {
|
|
1207
|
-
color: var(--trees-file-icon-color-npm);
|
|
1208
|
-
}
|
|
1209
|
-
[data-icon-token='oxc'] {
|
|
1210
|
-
color: var(--trees-file-icon-color-oxc);
|
|
1211
|
-
}
|
|
1212
|
-
[data-icon-token='postcss'] {
|
|
1213
|
-
color: var(--trees-file-icon-color-postcss);
|
|
1214
|
-
}
|
|
1215
|
-
[data-icon-token='prettier'] {
|
|
1216
|
-
color: var(--trees-file-icon-color-prettier);
|
|
1217
|
-
}
|
|
1218
|
-
[data-icon-token='python'] {
|
|
1219
|
-
color: var(--trees-file-icon-color-python);
|
|
1220
|
-
}
|
|
1221
|
-
[data-icon-token='react'] {
|
|
1222
|
-
color: var(--trees-file-icon-color-react);
|
|
1223
|
-
}
|
|
1224
|
-
[data-icon-token='ruby'] {
|
|
1225
|
-
color: var(--trees-file-icon-color-ruby);
|
|
1226
|
-
}
|
|
1227
|
-
[data-icon-token='rust'] {
|
|
1228
|
-
color: var(--trees-file-icon-color-rust);
|
|
1229
|
-
}
|
|
1230
|
-
[data-icon-token='sass'] {
|
|
1231
|
-
color: var(--trees-file-icon-color-sass);
|
|
1232
|
-
}
|
|
1233
|
-
[data-icon-token='svg'] {
|
|
1234
|
-
color: var(--trees-file-icon-color-svg);
|
|
1235
|
-
}
|
|
1236
|
-
[data-icon-token='svelte'] {
|
|
1237
|
-
color: var(--trees-file-icon-color-svelte);
|
|
1238
|
-
}
|
|
1239
|
-
[data-icon-token='svgo'] {
|
|
1240
|
-
color: var(--trees-file-icon-color-svgo);
|
|
1241
|
-
}
|
|
1242
|
-
[data-icon-token='swift'] {
|
|
1243
|
-
color: var(--trees-file-icon-color-swift);
|
|
1244
|
-
}
|
|
1245
|
-
[data-icon-token='table'] {
|
|
1246
|
-
color: var(--trees-file-icon-color-table);
|
|
1247
|
-
}
|
|
1248
|
-
[data-icon-token='text'] {
|
|
1249
|
-
color: var(--trees-file-icon-color-text);
|
|
1250
|
-
}
|
|
1251
|
-
[data-icon-token='tailwind'] {
|
|
1252
|
-
color: var(--trees-file-icon-color-tailwind);
|
|
1253
|
-
}
|
|
1254
|
-
[data-icon-token='terraform'] {
|
|
1255
|
-
color: var(--trees-file-icon-color-terraform);
|
|
1256
|
-
}
|
|
1257
|
-
[data-icon-token='typescript'] {
|
|
1258
|
-
color: var(--trees-file-icon-color-typescript);
|
|
1259
|
-
}
|
|
1260
|
-
[data-icon-token='vite'] {
|
|
1261
|
-
color: var(--trees-file-icon-color-vite);
|
|
1262
|
-
}
|
|
1263
|
-
[data-icon-token='vscode'] {
|
|
1264
|
-
color: var(--trees-file-icon-color-vscode);
|
|
1265
|
-
}
|
|
1266
|
-
[data-icon-token='vue'] {
|
|
1267
|
-
color: var(--trees-file-icon-color-vue);
|
|
1268
|
-
}
|
|
1269
|
-
[data-icon-token='wasm'] {
|
|
1270
|
-
color: var(--trees-file-icon-color-wasm);
|
|
1271
|
-
}
|
|
1272
|
-
[data-icon-token='webpack'] {
|
|
1273
|
-
color: var(--trees-file-icon-color-webpack);
|
|
1274
|
-
}
|
|
1275
|
-
[data-icon-token='yml'] {
|
|
1276
|
-
color: var(--trees-file-icon-color-yml);
|
|
1277
|
-
}
|
|
1278
|
-
[data-icon-token='zig'] {
|
|
1279
|
-
color: var(--trees-file-icon-color-zig);
|
|
1280
|
-
}
|
|
1281
|
-
[data-icon-token='zip'] {
|
|
1282
|
-
color: var(--trees-file-icon-color-zip);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
/* Chevron rotation and visual alignment */
|
|
1287
|
-
/* Chevron pointing down */
|
|
1288
|
-
[data-icon-name='file-tree-icon-chevron'] {
|
|
1289
|
-
&[data-align-capitals='false'] {
|
|
1290
|
-
transform: translate(0, var(--trees-icon-nudge));
|
|
1291
|
-
}
|
|
1292
|
-
&[data-align-capitals='true'] {
|
|
1293
|
-
transform: translate(0, 0);
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
[data-item-section='content'] {
|
|
1298
|
-
flex: 0 1 auto;
|
|
1299
|
-
text-align: start;
|
|
1300
|
-
min-width: 0;
|
|
1301
|
-
max-width: 100%;
|
|
1302
|
-
overflow: hidden;
|
|
1303
|
-
text-overflow: ellipsis;
|
|
1304
|
-
/* Breaks middle truncate component to also set this */
|
|
1305
|
-
/* white-space: nowrap; */
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
[data-item-section='decoration'] {
|
|
1309
|
-
flex: 1 1 0;
|
|
1310
|
-
min-width: 0;
|
|
1311
|
-
display: flex;
|
|
1312
|
-
justify-content: flex-end;
|
|
1313
|
-
text-align: end;
|
|
1314
|
-
overflow: hidden;
|
|
1315
|
-
color: var(--trees-fg-muted);
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
[data-item-section='decoration'] > span {
|
|
1319
|
-
min-width: 0;
|
|
1320
|
-
max-width: 100%;
|
|
1321
|
-
display: inline-flex;
|
|
1322
|
-
align-items: center;
|
|
1323
|
-
justify-content: flex-end;
|
|
1324
|
-
overflow: hidden;
|
|
1325
|
-
text-overflow: ellipsis;
|
|
1326
|
-
white-space: nowrap;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
[data-item-section='git'],
|
|
1330
|
-
[data-item-section='action'] {
|
|
1331
|
-
flex: 0 0 auto;
|
|
1332
|
-
display: flex;
|
|
1333
|
-
align-items: center;
|
|
1334
|
-
justify-content: center;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
[data-item-section='git'] {
|
|
1338
|
-
width: var(--trees-git-lane-width);
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
[data-item-section='action'] {
|
|
1342
|
-
width: var(--trees-action-lane-width);
|
|
1343
|
-
color: var(--trees-fg-muted);
|
|
1344
|
-
fill: currentColor;
|
|
1345
|
-
pointer-events: none;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
[data-item-section='git'] > span,
|
|
1349
|
-
[data-item-section='action'] > span {
|
|
1350
|
-
width: 100%;
|
|
1351
|
-
display: inline-flex;
|
|
1352
|
-
align-items: center;
|
|
1353
|
-
justify-content: center;
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
[data-item-action-affordance='decorative'] {
|
|
1357
|
-
opacity: 0.85;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
[data-item-rename-input] {
|
|
1361
|
-
appearance: none;
|
|
1362
|
-
width: 100%;
|
|
1363
|
-
min-width: 0;
|
|
1364
|
-
height: calc(var(--trees-row-height) - 4px);
|
|
1365
|
-
font-family: inherit;
|
|
1366
|
-
font-size: inherit;
|
|
1367
|
-
/* line-height: calc(var(--trees-row-height) - 8px); */
|
|
1368
|
-
color: inherit;
|
|
1369
|
-
background-color: transparent;
|
|
1370
|
-
border: 0;
|
|
1371
|
-
padding-inline: 6px;
|
|
1372
|
-
outline: none;
|
|
1373
|
-
box-sizing: border-box;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
[data-item-section='content']:has([data-item-rename-input])
|
|
1377
|
-
~ [data-item-section='action'],
|
|
1378
|
-
[data-item-section='content']:has([data-item-rename-input])
|
|
1379
|
-
~ [data-item-section='decoration'] {
|
|
1380
|
-
display: none;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
/* Chevron pointing right */
|
|
1384
|
-
[aria-expanded='false'][data-item-type='folder']
|
|
1385
|
-
> [data-item-section='icon']
|
|
1386
|
-
> [data-icon-name='file-tree-icon-chevron'] {
|
|
1387
|
-
&[data-align-capitals='true'] {
|
|
1388
|
-
transform: rotate(-90deg)
|
|
1389
|
-
translate(
|
|
1390
|
-
calc(var(--trees-icon-nudge) / 2),
|
|
1391
|
-
calc(var(--trees-icon-nudge) / 2)
|
|
1392
|
-
);
|
|
1393
|
-
}
|
|
1394
|
-
&[data-align-capitals='false'] {
|
|
1395
|
-
transform: rotate(-90deg)
|
|
1396
|
-
translate(
|
|
1397
|
-
calc(var(--trees-icon-nudge) / 2 * -1),
|
|
1398
|
-
calc(var(--trees-icon-nudge) / 2)
|
|
1399
|
-
);
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
/* LIST IDENTATION */
|
|
1404
|
-
/* Spacing container */
|
|
1405
|
-
[data-item-section='spacing'] {
|
|
1406
|
-
display: flex;
|
|
1407
|
-
flex-direction: row;
|
|
1408
|
-
align-items: center;
|
|
1409
|
-
justify-content: center;
|
|
1410
|
-
height: var(--trees-row-height);
|
|
1411
|
-
padding-left: calc(calc(var(--trees-icon-width) / 2) - 0.5px);
|
|
1412
|
-
|
|
1413
|
-
&:empty {
|
|
1414
|
-
padding-left: 0;
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/* Spacing per level */
|
|
1419
|
-
[data-item-section='spacing-item'] {
|
|
1420
|
-
transform: translateX(-0.25px);
|
|
1421
|
-
display: inline-block;
|
|
1422
|
-
border-left: 1px solid var(--trees-indent-guide-bg);
|
|
1423
|
-
height: 100%;
|
|
1424
|
-
margin-right: calc(var(--trees-level-gap) - 1px);
|
|
1425
|
-
opacity: 0;
|
|
1426
|
-
transition: opacity 150ms ease;
|
|
1427
|
-
|
|
1428
|
-
& + & {
|
|
1429
|
-
margin-left: calc(
|
|
1430
|
-
var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - 0.5px
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
:host(:hover) [data-item-section='spacing-item'] {
|
|
1436
|
-
opacity: 0.75;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
/* Git status indicator */
|
|
1440
|
-
|
|
1441
|
-
/* This is a folder that contains a git change */
|
|
1442
|
-
[data-item-contains-git-change='true'] > [data-item-section='git'] {
|
|
1443
|
-
color: var(--trees-git-modified-color);
|
|
1444
|
-
opacity: 0.5;
|
|
1445
|
-
fill: currentColor;
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
/* These are files that have a git change */
|
|
1449
|
-
[data-item-git-status] {
|
|
1450
|
-
&
|
|
1451
|
-
> :where([data-item-section='icon'])
|
|
1452
|
-
> :where(:not([data-icon-name='file-tree-icon-chevron'])) {
|
|
1453
|
-
color: var(--trees-item-git-status-color);
|
|
1454
|
-
}
|
|
1455
|
-
& > [data-item-section='content'] {
|
|
1456
|
-
color: var(--trees-item-git-status-color);
|
|
1457
|
-
}
|
|
1458
|
-
& > [data-item-section='git'] {
|
|
1459
|
-
color: var(--trees-item-git-status-color);
|
|
1460
|
-
font-weight: var(--trees-font-weight-semibold);
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
[data-item-git-status='added'] {
|
|
1465
|
-
--trees-item-git-status-color: var(--trees-git-added-color);
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
[data-item-git-status='deleted'] {
|
|
1469
|
-
--trees-item-git-status-color: var(--trees-git-deleted-color);
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
[data-item-git-status='ignored'] {
|
|
1473
|
-
--trees-item-git-status-color: var(--trees-git-ignored-color);
|
|
1474
|
-
|
|
1475
|
-
& > [data-item-section='icon'] {
|
|
1476
|
-
opacity: 0.5;
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
[data-item-section='git'] [data-icon-name='file-tree-icon-dot'] {
|
|
1481
|
-
/* this is a nudge to align the dot with the likely lowercase text. it's slightly
|
|
1482
|
-
generalizable, but other fonts are gonna need other nudges i assume */
|
|
1483
|
-
transform: translateY(calc(0.65ex - 50%));
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
[data-item-git-status='modified'] {
|
|
1487
|
-
--trees-item-git-status-color: var(--trees-git-modified-color);
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
[data-item-git-status='renamed'] {
|
|
1491
|
-
--trees-item-git-status-color: var(--trees-git-renamed-color);
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
[data-item-git-status='untracked'] {
|
|
1495
|
-
--trees-item-git-status-color: var(--trees-git-untracked-color);
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
/* Drag and drop */
|
|
1499
|
-
[data-item-drag-target='true'] {
|
|
1500
|
-
background-color: var(--trees-selected-bg);
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
[data-item-dragging='true'] {
|
|
1504
|
-
opacity: 0.5;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
/* Lock icon for locked paths (sibling of content) */
|
|
1508
|
-
[data-item-section='lock'] {
|
|
1509
|
-
flex: 0 0 auto;
|
|
1510
|
-
margin-left: auto;
|
|
1511
|
-
display: flex;
|
|
1512
|
-
align-items: center;
|
|
1513
|
-
color: var(--trees-fg-muted);
|
|
1514
|
-
}
|
|
1515
|
-
[data-item-section='lock'] svg {
|
|
1516
|
-
display: block;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
[data-type='header-slot'] {
|
|
1520
|
-
display: block;
|
|
1521
|
-
flex: 0 0 auto;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
[data-type='context-menu-wash'] {
|
|
1525
|
-
position: absolute;
|
|
1526
|
-
inset: 0;
|
|
1527
|
-
z-index: 3;
|
|
1528
|
-
background-color: transparent;
|
|
1529
|
-
touch-action: none;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
[data-type='context-menu-anchor'] {
|
|
1533
|
-
position: absolute;
|
|
1534
|
-
top: 0;
|
|
1535
|
-
right: var(--trees-context-menu-trigger-inline-offset);
|
|
1536
|
-
z-index: 4;
|
|
1537
|
-
display: none;
|
|
1538
|
-
align-items: center;
|
|
1539
|
-
|
|
1540
|
-
&[data-visible='true'] {
|
|
1541
|
-
display: flex;
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
/* Hide the floating trigger while the scroll container is actively moving.
|
|
1546
|
-
* The anchor is positioned against the root, not the scroll content, so its
|
|
1547
|
-
* \`top\` follows the row via a React state update — one frame behind the
|
|
1548
|
-
* compositor. That delay is visible as the trigger hovering over the wrong
|
|
1549
|
-
* row during the first frame of a scroll. The \`data-is-scrolling\` flag on
|
|
1550
|
-
* the root is flipped synchronously on \`wheel\`/\`touchmove\`/\`keydown\` before
|
|
1551
|
-
* the compositor commits the next paint, so this selector hides the anchor
|
|
1552
|
-
* in the same frame the scroll begins. */
|
|
1553
|
-
[data-file-tree-virtualized-root='true'][data-is-scrolling]
|
|
1554
|
-
[data-type='context-menu-anchor'] {
|
|
1555
|
-
display: none;
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
[data-type='context-menu-anchor'] > slot[name='context-menu'] {
|
|
1559
|
-
display: block;
|
|
1560
|
-
width: 0;
|
|
1561
|
-
min-width: 0;
|
|
1562
|
-
flex: 0 0 0;
|
|
1563
|
-
overflow: visible;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
/* Single floating context menu trigger */
|
|
1567
|
-
[data-type='context-menu-trigger'] {
|
|
1568
|
-
all: unset;
|
|
1569
|
-
align-items: center;
|
|
1570
|
-
justify-content: center;
|
|
1571
|
-
width: var(--trees-action-lane-width);
|
|
1572
|
-
color: var(--trees-fg-muted);
|
|
1573
|
-
fill: currentColor;
|
|
1574
|
-
cursor: pointer;
|
|
1575
|
-
font-family: var(--trees-font-family);
|
|
1576
|
-
font-size: var(--trees-font-size);
|
|
1577
|
-
border-top-right-radius: var(--trees-border-radius);
|
|
1578
|
-
border-bottom-right-radius: var(--trees-border-radius);
|
|
1579
|
-
margin: var(--trees-focus-ring-width);
|
|
1580
|
-
height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
|
|
1581
|
-
border-width: 0;
|
|
1582
|
-
transition: color 120ms ease;
|
|
1583
|
-
|
|
1584
|
-
display: flex;
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
[data-type='context-menu-trigger']:hover,
|
|
1588
|
-
[data-type='context-menu-trigger'][aria-expanded='true'] {
|
|
1589
|
-
color: var(--trees-fg);
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
/** @pierre/truncate css here, manually copy pasted for now */
|
|
1593
|
-
[data-truncate-container] {
|
|
1594
|
-
/* CUSTOM TO TREES, TO SUPPORT THE OUTLINE */
|
|
1595
|
-
margin-top: -1px;
|
|
1596
|
-
margin-bottom: -1px;
|
|
1597
|
-
|
|
1598
|
-
/* Width of the fade from default marker to text */
|
|
1599
|
-
--truncate-internal-marker-fade-width: var(
|
|
1600
|
-
--truncate-marker-fade-width,
|
|
1601
|
-
2px
|
|
1602
|
-
);
|
|
1603
|
-
/* Width of the solid color between the fade from the default marker to the text */
|
|
1604
|
-
--truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
|
|
1605
|
-
/* Opacity of the marker 'color' property, not of the element itself */
|
|
1606
|
-
--truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
|
|
1607
|
-
/* Opacity of the marker 'color' property specifically for the middle truncate, not opacity of the element itself */
|
|
1608
|
-
--truncate-internal-middle-marker-opacity: var(
|
|
1609
|
-
--truncate-middle-marker-opacity,
|
|
1610
|
-
80%
|
|
1611
|
-
);
|
|
1612
|
-
/* Background color of the default marker */
|
|
1613
|
-
--truncate-internal-marker-background-color: var(
|
|
1614
|
-
--truncate-marker-background-color,
|
|
1615
|
-
light-dark(white, black)
|
|
1616
|
-
);
|
|
1617
|
-
--truncate-internal-marker-background-overlay-color: var(
|
|
1618
|
-
--truncate-marker-background-overlay-color,
|
|
1619
|
-
transparent
|
|
1620
|
-
);
|
|
1621
|
-
--truncate-internal-marker-block-inset: var(
|
|
1622
|
-
--truncate-marker-block-inset,
|
|
1623
|
-
0px
|
|
1624
|
-
);
|
|
1625
|
-
/* Duration of the fade out animation for the marker */
|
|
1626
|
-
--truncate-internal-marker-fade-out-duration: var(
|
|
1627
|
-
--truncate-marker-fade-out-duration,
|
|
1628
|
-
0ms
|
|
1629
|
-
);
|
|
1630
|
-
/* Duration of the fade in animation for the marker */
|
|
1631
|
-
--truncate-internal-marker-fade-in-duration: var(
|
|
1632
|
-
--truncate-marker-fade-in-duration,
|
|
1633
|
-
100ms
|
|
1634
|
-
);
|
|
1635
|
-
|
|
1636
|
-
/* FADE Variant specifics */
|
|
1637
|
-
--truncate-internal-fade-marker-color: var(
|
|
1638
|
-
--truncate-fade-marker-color,
|
|
1639
|
-
#000
|
|
1640
|
-
);
|
|
1641
|
-
--truncate-internal-fade-marker-width: var(
|
|
1642
|
-
--truncate-fade-marker-width,
|
|
1643
|
-
0.2lh
|
|
1644
|
-
);
|
|
1645
|
-
|
|
1646
|
-
/*
|
|
1647
|
-
In some special cases people might be adding spacing in other ways
|
|
1648
|
-
that would benefit from being able to override this, however the container
|
|
1649
|
-
query below can't use this and would need to be redeclared with the overridden
|
|
1650
|
-
value. It's a bad time, but better than nothing.
|
|
1651
|
-
*/
|
|
1652
|
-
--truncate-internal-single-line-height: 1lh;
|
|
1653
|
-
|
|
1654
|
-
height: var(--truncate-internal-single-line-height);
|
|
1655
|
-
min-width: 0;
|
|
1656
|
-
overflow: hidden;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
[data-truncate-marker] {
|
|
1660
|
-
display: flex;
|
|
1661
|
-
position: absolute;
|
|
1662
|
-
height: var(--truncate-internal-single-line-height);
|
|
1663
|
-
padding-block: var(--truncate-internal-marker-block-inset);
|
|
1664
|
-
box-sizing: border-box;
|
|
1665
|
-
align-items: center;
|
|
1666
|
-
background-clip: content-box;
|
|
1667
|
-
z-index: 2;
|
|
1668
|
-
color: color-mix(
|
|
1669
|
-
in srgb,
|
|
1670
|
-
currentColor var(--truncate-internal-marker-opacity),
|
|
1671
|
-
transparent
|
|
1672
|
-
);
|
|
1673
|
-
|
|
1674
|
-
/* Core trick for hiding the marker until overflow occurs */
|
|
1675
|
-
opacity: 0;
|
|
1676
|
-
transition: opacity var(--truncate-internal-marker-fade-out-duration)
|
|
1677
|
-
ease-in-out;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
@container measure (height > 1lh) {
|
|
1681
|
-
[data-truncate-marker] {
|
|
1682
|
-
opacity: 1;
|
|
1683
|
-
transition: opacity var(--truncate-internal-marker-fade-in-duration)
|
|
1684
|
-
ease-in-out;
|
|
1685
|
-
}
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
[data-truncate-grid] {
|
|
1689
|
-
display: grid;
|
|
1690
|
-
position: relative;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
[data-truncate-content='visible'] {
|
|
1694
|
-
white-space: nowrap;
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
[data-truncate-content='overflow'] {
|
|
1698
|
-
opacity: 0;
|
|
1699
|
-
pointer-events: none;
|
|
1700
|
-
-webkit-user-select: none;
|
|
1701
|
-
user-select: none;
|
|
1702
|
-
word-break: break-all;
|
|
1703
|
-
margin-top: calc(-1 * var(--truncate-internal-single-line-height));
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
[data-truncate-marker-cell] {
|
|
1707
|
-
container: measure / size;
|
|
1708
|
-
overflow: visible;
|
|
1709
|
-
-webkit-user-select: none;
|
|
1710
|
-
user-select: none;
|
|
1711
|
-
pointer-events: none;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
[data-truncate-container='truncate'] {
|
|
1715
|
-
& [data-truncate-grid] {
|
|
1716
|
-
grid-template-columns: minmax(0, max-content) 0;
|
|
1717
|
-
}
|
|
1718
|
-
& [data-truncate-marker] {
|
|
1719
|
-
right: 0;
|
|
1720
|
-
}
|
|
1721
|
-
& [data-truncate-fade] {
|
|
1722
|
-
margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
[data-truncate-container='fruncate'] {
|
|
1727
|
-
& [data-truncate-grid] {
|
|
1728
|
-
grid-template-columns: 0 minmax(0, max-content) auto;
|
|
1729
|
-
}
|
|
1730
|
-
& [data-truncate-content] {
|
|
1731
|
-
direction: rtl;
|
|
1732
|
-
}
|
|
1733
|
-
& [data-truncate-content] > span {
|
|
1734
|
-
unicode-bidi: plaintext;
|
|
1735
|
-
}
|
|
1736
|
-
& [data-truncate-fade] {
|
|
1737
|
-
margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
[data-truncate-variant='default'] {
|
|
1742
|
-
& [data-truncate-marker] {
|
|
1743
|
-
background-color: var(--truncate-internal-marker-background-color);
|
|
1744
|
-
background-image: linear-gradient(
|
|
1745
|
-
var(--truncate-internal-marker-background-overlay-color),
|
|
1746
|
-
var(--truncate-internal-marker-background-overlay-color)
|
|
1747
|
-
);
|
|
1748
|
-
}
|
|
1749
|
-
& [data-truncate-marker]::after,
|
|
1750
|
-
& [data-truncate-marker]::before {
|
|
1751
|
-
content: '';
|
|
1752
|
-
position: absolute;
|
|
1753
|
-
width: calc(
|
|
1754
|
-
var(--truncate-internal-marker-fade-width) +
|
|
1755
|
-
var(--truncate-internal-marker-gap)
|
|
1756
|
-
);
|
|
1757
|
-
inset-block-start: var(--truncate-internal-marker-block-inset);
|
|
1758
|
-
height: max(
|
|
1759
|
-
0px,
|
|
1760
|
-
calc(
|
|
1761
|
-
var(--truncate-internal-single-line-height) -
|
|
1762
|
-
var(--truncate-internal-marker-block-inset) * 2
|
|
1763
|
-
)
|
|
1764
|
-
);
|
|
1765
|
-
background-color: var(--truncate-internal-marker-background-color);
|
|
1766
|
-
background-image: linear-gradient(
|
|
1767
|
-
var(--truncate-internal-marker-background-overlay-color),
|
|
1768
|
-
var(--truncate-internal-marker-background-overlay-color)
|
|
1769
|
-
);
|
|
1770
|
-
mask-image: linear-gradient(
|
|
1771
|
-
var(--truncate-internal-fade-dir),
|
|
1772
|
-
#000 0%,
|
|
1773
|
-
#000 var(--truncate-internal-marker-gap),
|
|
1774
|
-
transparent 100%
|
|
1775
|
-
);
|
|
1776
|
-
}
|
|
1777
|
-
& [data-truncate-marker]::after {
|
|
1778
|
-
--truncate-internal-fade-dir: to right;
|
|
1779
|
-
right: calc(
|
|
1780
|
-
-1 *
|
|
1781
|
-
(
|
|
1782
|
-
var(--truncate-internal-marker-fade-width) +
|
|
1783
|
-
var(--truncate-internal-marker-gap)
|
|
1784
|
-
)
|
|
1785
|
-
);
|
|
1786
|
-
}
|
|
1787
|
-
& [data-truncate-marker]::before {
|
|
1788
|
-
--truncate-internal-fade-dir: to left;
|
|
1789
|
-
left: calc(
|
|
1790
|
-
-1 *
|
|
1791
|
-
(
|
|
1792
|
-
var(--truncate-internal-marker-fade-width) +
|
|
1793
|
-
var(--truncate-internal-marker-gap)
|
|
1794
|
-
)
|
|
1795
|
-
);
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
[data-truncate-variant='fade'] {
|
|
1800
|
-
& [data-truncate-marker] {
|
|
1801
|
-
background: transparent;
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
[data-truncate-fade] {
|
|
1806
|
-
box-shadow:
|
|
1807
|
-
0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
|
|
1808
|
-
var(--truncate-internal-fade-marker-color),
|
|
1809
|
-
0 0 var(--truncate-internal-fade-marker-width)
|
|
1810
|
-
var(--truncate-internal-fade-marker-color);
|
|
1811
|
-
width: calc(var(--truncate-internal-fade-marker-width) * 2);
|
|
1812
|
-
height: calc(
|
|
1813
|
-
var(--truncate-internal-single-line-height) -
|
|
1814
|
-
(var(--truncate-internal-fade-marker-width) * 2)
|
|
1815
|
-
);
|
|
1816
|
-
margin: var(--truncate-internal-fade-marker-width) 0;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
[data-truncate-group-container='middle'] {
|
|
1820
|
-
& [data-truncate-container] {
|
|
1821
|
-
--truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
display: flex;
|
|
1825
|
-
min-width: 0;
|
|
1826
|
-
|
|
1827
|
-
& > div {
|
|
1828
|
-
min-width: 0;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
& > div[data-truncate-segment-priority='1'] {
|
|
1832
|
-
flex: 0 1 max-content;
|
|
1833
|
-
}
|
|
1834
|
-
& > div[data-truncate-segment-priority='2'] {
|
|
1835
|
-
flex: 0 999999 max-content;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
`,vt=`@layer base, unsafe;`;function yt(e){return`${vt}
|
|
1840
|
-
@layer base {
|
|
1841
|
-
${e}
|
|
1842
|
-
}`}function bt(e){return`${vt}
|
|
1843
|
-
@layer unsafe {
|
|
1844
|
-
${e}
|
|
1845
|
-
}`}var xt=new WeakMap;function St(e){let t=xt.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(T,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),xt.set(e,i),i}function Ct(e,t){if(!e.isConnected)return;let n=St(t);if(n==null)return;let r=t.querySelector(`style[${E}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(E,``),t.appendChild(i)),i.textContent=`:host { ${D}: ${n}px; }`}var wt;function Tt(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){wt??(wt=new CSSStyleSheet,wt.replaceSync(yt(_t)));let t=!1;try{e.adoptedStyleSheets=[wt],t=!0}catch{}if(t){e.querySelector(`style[${C}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(C,``),t.textContent=yt(_t),e.prepend(t)}}function Et(e,t){Dt(e,t),Tt(t),Ct(e,t)}function Dt(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});Et(this,e)}}if(customElements.define(S,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(S)))e instanceof HTMLElement&&Et(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Ot=5,kt=1<<Ot,At=kt*4;function jt(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Mt(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Nt(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let t=e[r];t!=null&&n.set(t.nameId,r)}return t.childIdByNameId=n,n}function Pt(e){if(e.childPositionById!=null)return e.childPositionById;let t=new Map;for(let n=0;n<e.childIds.length;n++){let r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function Ft(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function It(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){let t=e.childIds[n];t!=null&&e.childPositionById.set(t,n)}}function Lt(e,t){let n=0,r=0;for(let i of t.childIds){let t=e[i];t!=null&&(n+=t.subtreeNodeCount,r+=t.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,Vt(e,t)}function Rt(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=Pt(e).get(t);if(i===void 0)return;let a=i>>Ot;e.childVisibleChunkSums[a]+=r}function zt(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let i=n,a=0;for(let o of r){if(i<o){let r=Ht(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=kt}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let r=0;r<t.childIds.length;r++){let a=t.childIds[r];if(a==null)continue;let o=e[a];if(o!=null){if(i<o.visibleSubtreeCount)return{childIndex:r,childVisibleIndex:n-i,localVisibleIndex:i};i-=o.visibleSubtreeCount}}throw Error(`Visible child index ${String(n)} is out of range`)}function Bt(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>Ot;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<Ot}for(let i=a;i<n;i+=1){let n=t.childIds[i];if(n==null)continue;let a=e[n];a!=null&&(r+=a.visibleSubtreeCount)}return r}function Vt(e,t){if(t.childIds.length<At){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/kt),r=new Int32Array(n);for(let n=0;n<t.childIds.length;n++){let i=t.childIds[n];if(i==null)continue;let a=e[i];a!=null&&(r[n>>Ot]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function Ht(e,t,n,r){let i=Math.min(t.childIds.length,n+kt),a=r;for(let r=n;r<i;r++){let n=t.childIds[r];if(n==null)continue;let i=e[n];if(i!=null){if(a<i.visibleSubtreeCount)return{childIndex:r,localVisibleIndex:a};a-=i.visibleSubtreeCount}}throw Error(`Visible child index ${String(r)} is out of range`)}var Ut=7,R=3,Wt=1<<R,Gt=4;function Kt(e,t,n=0){return e<<Gt|n<<R|t}function qt(e){return e.depthAndFlags>>>Gt}function Jt(e){return(e.depthAndFlags&Wt)>>R}function z(e){return(e.depthAndFlags&Wt)!==0}function Yt(e){return e.depthAndFlags&Ut}function B(e,t){return(Yt(e)&t)!==0}function Xt(e,t){e.depthAndFlags|=t}function Zt(e,t){e.depthAndFlags=Kt(t,Yt(e),Jt(e))}var Qt=Symbol(`benchmarkInstrumentation`);function $t(e,t){return t==null||Object.defineProperty(e,Qt,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function en(e){return e==null?null:e[Qt]??null}function V(e,t,n){return e==null?n():e.measurePhase(t,n)}function tn(e,t,n){!Number.isFinite(n)||e==null||e.setCounter(t,n)}function nn(e){return e>=48&&e<=57}function rn(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!nn(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let i=0;for(;r<e.length&&nn(e.charCodeAt(r));)i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function an(e){let t=e.toLowerCase();return{lowerValue:t,tokens:rn(t)}}function on(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===i)continue;if(typeof n==`number`&&typeof i==`number`)return n<i?-1:1;let a=String(n),o=String(i);if(a!==o)return a<o?-1:1}return e.length===t.length?0:e.length<t.length?-1:1}function sn(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]==`string`&&typeof t.tokens[0]==`string`)return e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1;let n=on(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function cn(e,t,n){let r=sn(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function ln(e,t){return cn(e,t,an)}function un(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function dn(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let n=e.segments[r],i=t.segments[r];if(n===i)continue;let a=un(e,r);return a===un(t,r)?ln(n,i):a===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function fn(e,t){return dn(e,t)}function pn(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=an(e);return n.set(e,r),r},i=Math.min(e.segments.length,t.segments.length);for(let n=0;n<i;n++){let i=e.segments[n],a=t.segments[n];if(i===a)continue;let o=un(e,n);return o===un(t,n)?cn(i,a,r):o===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function mn(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=an(r);return e.sortKeyById[t]=i,i}function hn(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function gn(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let t=0;t<n;t++)e.charCodeAt(t)===47&&(r.push(e.slice(i,t)),i=t+1);return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function _n(e){let{hasTrailingSlash:t,segments:n}=gn(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function vn(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=gn(e);return{requiresDirectory:t,segments:n}}var yn=``;function bn(){let e=new Map;return e.set(yn,0),{idByValue:e,valueById:[yn],sortKeyById:[an(yn)]}}function xn(e,t){let n=e.idByValue.get(t);if(n!==void 0)return n;let r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function Sn(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var Cn=Symbol(`pathStorePreparedInputKind`);function wn(e,t){return e[Cn]=t,e}function Tn(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function En(e,t,n){return n===`default`?fn(e,t):n(Tn(e),Tn(t))}function Dn(){return{depthAndFlags:Kt(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function On(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function kn(e){return e.isDirectory?e.segments.length:e.segments.length-1}function An(e){return Array.isArray(e)&&e.every(e=>typeof e==`object`&&!!e&&typeof e.path==`string`&&Array.isArray(e.segments)&&typeof e.basename==`string`&&typeof e.isDirectory==`boolean`)}function jn(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function Mn(e,t={}){return Rn(e,t).map(e=>e.path)}function Nn(e,t={}){let n=Rn(e,t);return wn({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function Pn(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let t=e[r];if(t.length>0&&t.charCodeAt(t.length-1)===47){n=!0;break}}return wn({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function Fn(e){let t=e,n=t.preparedPaths;if(t[Cn]===`prepared`&&n!=null)return n;if(!An(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function In(e){let t=e;return t[Cn]===`presorted`&&t.presortedPaths!=null||jn(t.presortedPaths)?t.presortedPaths:null}function Ln(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function Rn(e,t={}){let n=hn(t),r=en(t);tn(r,`workload.inputFiles`,e.length);let i=V(r,`store.preparePathEntries.parse`,()=>e.map(e=>_n(e)));return V(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>En(e,t,n.sort))),i}var zn=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Dn()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=bn();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=en(e),this.options=hn(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let e=new Set,n=t.length;for(let r=0;r<n;r+=1){let n=t[r],i=n.length;e.add(i>0&&n.charCodeAt(i-1)===47?n.slice(0,i-1):n)}this.initialExpandedPathSet=e,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,jt())}appendPaths(e){return V(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>_n(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,V(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return V(this.instrumentation,`store.builder.appendPresortedPaths`,()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,a=this.segmentTable,o=a.idByValue,s=a.valueById,c=this.directoryStack,l=0,u=``,d=0;for(let t of e){if(n===t)throw Error(`Duplicate path: "${t}"`);let e=t.length>0&&t.charCodeAt(t.length-1)===47,a=e?t.length-1:t.length,f=0,p=0;if(n!=null)if(u.length>0&&t.length>u.length&&t.startsWith(u))f=d,p=u.length;else{let r=Math.min(a,n.length),i=!0;for(let e=0;e<r;e++){let r=t.charCodeAt(e);if(r!==n.charCodeAt(e)){i=!1;break}r===47&&(f++,p=e+1)}i&&e&&r===a&&n.length>a&&n.charCodeAt(a)===47&&(f++,p=a+1)}l=f,r=f;let m=p,h=t.indexOf(`/`,m);for(;h>=0&&h<a;){let e=c[l];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);r++;let n=t.slice(m,h),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n));let u=i.length;i.push({depthAndFlags:Kt(r,0,1),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(t.slice(0,h)),l++,c[l]=u,m=h+1,h=t.indexOf(`/`,m)}if(e){if(m<a){let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory parent for "${t}"`);r++;let n=t.slice(m,a),u=o.get(n);u===void 0&&(u=s.length,o.set(n,u),s.push(n));let d=i.length;i.push({depthAndFlags:Kt(r,0,1),nameId:u,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),l++,c[l]=d}let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory node for "${t}"`);this.promoteDirectoryToExplicit(e,t)}else{let e=c[l];if(e===void 0)throw Error(`Unable to resolve file parent for "${t}"`);let n=t.slice(m),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n)),i.push({depthAndFlags:Kt(r+1,0),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1})}m!==u.length&&(u=t.substring(0,m),d=r),n=t}c.length=l+1,n!=null&&(this.lastPreparedPath=_n(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,a=i.idByValue,o=i.valueById,s=this.directoryStack,c=0,l=``,u=0;for(let i of e){if(t===i)throw Error(`Duplicate path: "${i}"`);let e=i.length,d=0,f=0;if(t!=null)if(l.length>0&&i.length>l.length&&i.startsWith(l))d=u,f=l.length;else{let n=Math.min(e,t.length);for(let e=0;e<n;e++){let n=i.charCodeAt(e);if(n!==t.charCodeAt(e))break;n===47&&(d++,f=e+1)}}c=d,n=d;let p=f,m=i.indexOf(`/`,p);for(;m>=0;){let e=s[c];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);n++;let t=i.slice(p,m),l=a.get(t);l===void 0&&(l=o.length,a.set(t,l),o.push(t));let u=r.length;r.push({depthAndFlags:Kt(n,0,1),nameId:l,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(i.slice(0,m)),this.presortedDirectoryNodeIds.push(u),c++,s[c]=u,p=m+1,m=i.indexOf(`/`,p)}let h=s[c];if(h===void 0)throw Error(`Unable to resolve file parent for "${i}"`);let g=i.slice(p),_=a.get(g);_===void 0&&(_=o.length,a.set(g,_),o.push(g)),r.push({depthAndFlags:Kt(n+1,0),nameId:_,parentId:h,subtreeNodeCount:1,visibleSubtreeCount:1}),p!==l.length&&(l=i.substring(0,p),u=n),t=i}s.length=c+1,t!=null&&(this.lastPreparedPath=_n(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(V(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||V(this.instrumentation,`store.builder.computeSubtreeCounts`,()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes&&=(this.buildDirectoryIndexes(),!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort===`default`?pn(this.lastPreparedPath,e,this.segmentSortKeyCache):En(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=kn(e),i=n==null?0:kn(n),a=n==null?0:On(n.segments,e.segments),o=Math.min(a,r,i);this.directoryStack.length=o+1;for(let n=o;n<r;n++){let r=this.directoryStack[this.directoryStack.length-1];if(r===void 0)throw Error(`Directory stack underflow while building the path store`);let i=t?this.getOrCreateDirectoryChild(r,e.segments[n]):this.createDirectoryChild(r,e.segments[n]);this.directoryStack.push(i)}if(e.isDirectory){let t=this.directoryStack[this.directoryStack.length-1];if(t===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(t,e.path),this.lastPreparedPath=e;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(s,e.basename,e.path):this.createFileChildUnchecked(s,e.basename),this.lastPreparedPath=e}recordCreatedDirectoryPath(e){!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null||(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(e)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(e,t,n){let r=xn(this.segmentTable,t),i=this.getDirectoryIndex(e),a=i.childIdByNameId;if(a!=null&&a.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`);let o=this.nodes[e];if(o===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:Kt(qt(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),Ft(i,s),s}createFileChildUnchecked(e,t){let n=xn(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:Kt(qt(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Ft(r,a),a}getOrCreateDirectoryChild(e,t){let n=xn(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let e=r.childIdByNameId.get(n);if(e!==void 0){let n=this.nodes[e];if(n!=null&&!z(n))throw Error(`Path collides with an existing file while creating directory "${t}"`);return e}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:Kt(qt(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Ft(r,a),this.directories.set(a,jt()),a}createDirectoryChild(e,t){let n=xn(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:Kt(qt(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Ft(r,a),this.directories.set(a,jt()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!z(n))throw Error(`Path is not a directory: "${t}"`);if(B(n,1))throw Error(`Duplicate path: "${t}"`);Xt(n,1)}getDirectoryIndex(e){let t=this.directories.get(e);if(t!==void 0)return t;throw Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){let t=this.nodes,n=this.directories;n.set(0,Mt());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(z(a)){let t=Mt();n.set(e,t),r=e,i=t}let o;a.parentId===r?o=i:(o=n.get(a.parentId),r=a.parentId,i=o??null),o?.childIds.push(e)}if(!e)for(let e=t.length-1;e>=1;e--){let n=t[e];if(n==null)continue;let r=t[n.parentId];r!=null&&(r.subtreeNodeCount+=n.subtreeNodeCount,r.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;z(n)&&this.directories.set(t,jt());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),Ft(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!z(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let e of n.childIds)r+=this.computeSubtreeCounts(e);return Lt(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function Bn(e,t=`closed`,n=null){let r=Hn(t);return{activeNodeCount:e.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r===`open`,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[e.rootId,{path:``,version:0}]]),pathCacheVersion:0,snapshot:e,transactionStack:[]}}function Vn(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function Hn(e){if(typeof e!=`number`)return e;if(!Number.isInteger(e)||e<0)throw Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function Un(e,t){return B(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion===`closed`?!1:qt(t)<=e.defaultExpansion}function Wn(e,t,n=e.snapshot.nodes[t]){return n==null||!z(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:Un(e,n)}function Gn(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!z(r))return;let i=Un(e,r);if(n){if(i){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(i){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function Kn(e,t){let n=e.directoryLoadInfoById.get(t);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:`loaded`};return e.directoryLoadInfoById.set(t,r),r}function qn(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function Jn(e,t){let n=Kn(e,t);if(n.state===`loading`&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state=`loading`,{attemptId:r,nodeId:t,reused:!1}}function Yn(e,t){let n=Kn(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function Xn(e,t,n){let r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state=`loaded`,!0)}function Zn(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function Qn(e,t,n,r){let i=e.directoryLoadInfoById.get(t);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state=`error`,!0)}function $n(e,t){e.directoryLoadInfoById.delete(t)}function er(e,t,n){let r=n,i=e.listeners.get(t);return i==null?e.listeners.set(t,new Set([r])):i.add(r),()=>{let n=e.listeners.get(t);n!=null&&(n.delete(r),n.size===0&&e.listeners.delete(t))}}function tr(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function nr(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function rr(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function ir(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function ar(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function or(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function sr(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`begin-child-load`,path:e.path,projectionChanged:e.projectionChanged,reused:e.reused,visibleCountDelta:null}}function cr(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(e=>e.canonicalChanged),childEvents:e.childEvents,operation:`apply-child-patch`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function lr(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`complete-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function ur(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,errorMessage:e.errorMessage,operation:`fail-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function dr(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:`cleanup`,projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function fr(e,t,n){return{...n,visibleCountDelta:Cr(e)-t}}function pr(e,t){let n=Cr(e),r=Vn();e.transactionStack.push(r);try{t()}catch(t){throw gr(e,r,!1),t}gr(e,r,!0,Cr(e)-n)}function mr(e,t){let n=e.instrumentation;if(n==null){hr(e,t);return}V(n,`store.events.record`,()=>hr(e,t))}function hr(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){xr(e,t);return}n.events.push(t),br(n,t)}function gr(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw Error(`Transaction stack underflow`);if(!n)return;let i=e.transactionStack[e.transactionStack.length-1]??null;if(i!=null){let n=e.instrumentation;n==null?yr(i,t):V(n,`store.events.batch.merge`,()=>yr(i,t));return}let a=_r(t,r),o=e.instrumentation;if(o==null){xr(e,a);return}V(o,`store.events.batch.commit`,()=>xr(e,a))}function _r(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(e=>e.canonicalChanged),events:[...e.events],operation:`batch`,projectionChanged:e.events.some(e=>e.projectionChanged),visibleCountDelta:t}}function vr(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function yr(e,t){for(let n of t.events)e.events.push(n);vr(e,t)}function br(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function xr(e,t){let n=e.instrumentation;if(n==null){Sr(e,t);return}V(n,`store.events.emit`,()=>Sr(e,t))}function Sr(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function Cr(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function wr(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!z(n)||B(n,2))return null;let r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let a=e.snapshot.nodes[i];return a==null||!z(a)?null:i}function Tr(e,t){let n=t;for(;;){let t=wr(e,n);if(t==null)return n;n=t}}function Er(e,t){let n=[t],r=t;for(;;){let t=wr(e,r);if(t==null)return n;n.push(t),r=t}}function Dr(e,t){let n=t==null?e.snapshot.rootId:Ir(e,t);return n==null?[]:Rr(e,n)}function Or(e,t){let n=_n(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=$r(e,Qr(e,r)),{createdNodeIds:a,directoryId:o}=zr(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=W(e,o);if(B(n,1))throw Error(`Path already exists: "${t}"`);Xt(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=Vr(e,o,n.basename),s.add(c);Nr(e,o);let l=$r(e,o);return tr({affectedAncestorIds:Fr(e,c),affectedNodeIds:[...s],path:t,projectionChanged:ei(i,l)})}function kr(e,t,n){let r=Ir(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=W(e,r);if(B(i,2))throw Error(`The root node cannot be removed`);if(z(i)&&U(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=$r(e,a),s=Xr(e,r);Wr(e,a,r,i.nameId),Zr(e,a),Nr(e,a);let c=$r(e,a);return nr({affectedAncestorIds:Fr(e,a),affectedNodeIds:s,path:t,projectionChanged:ei(o,c),recursive:n.recursive===!0})}function Ar(e,t,n,r){let i=Ir(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=W(e,i);if(B(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=Jr(e,i,n),c=$r(e,a.parentId),l=$r(e,s.parentId),u=Sn(e.snapshot.segmentTable,a.nameId),d=xn(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(z(a)&&ii(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=Nt(e.snapshot.nodes,U(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&Yr(e,p,o,Jt(a))===`skip`)return null;let m=a.parentId;Wr(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),ri(e,i),Ur(e,s.parentId,i),Zr(e,m),e.pathCacheVersion++,Nr(e,m),s.parentId!==m&&Nr(e,s.parentId);let h=$r(e,m),g=$r(e,s.parentId);return rr({affectedAncestorIds:[...new Set([...Fr(e,m),...Fr(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:ti([c,l],[h,g]),to:H(e,i)})}function jr(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function Mr(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function H(e,t){let n=W(e,t),r=jr(e,t);if(r!=null)return r;if(B(n,2))return Mr(e,t,``);let i=H(e,n.parentId),a=Sn(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return Mr(e,t,z(n)?`${o}/`:o)}function Nr(e,t){let n=e.instrumentation;if(n==null){oi(e,t);return}V(n,`store.recomputeCountsUpwardFrom`,()=>oi(e,t))}function Pr(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;for(;n.length>0;){let t=n[n.length-1],a=t[0],o=r[a];if(o==null||!z(o)){ai(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){ai(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function Fr(e,t){let n=[],r=t;for(;r!=null;){let t=W(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function Ir(e,t){if(t.length===0)return e.snapshot.rootId;let n=vn(t);return Lr(e,n.segments,n.requiresDirectory)}function Lr(e,t,n){let r=e.snapshot.rootId;for(let n of t){let t=e.snapshot.segmentTable.idByValue.get(n);if(t===void 0)return null;let i=U(e,r),a=Nt(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=W(e,r);return n&&!z(i)?null:r}function U(e,t){let n=e.snapshot.directories.get(t);if(n===void 0)throw Error(`Unknown directory child index for node ${String(t)}`);return n}function W(e,t){let n=e.snapshot.nodes[t];if(n===void 0||B(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function Rr(e,t){let n=e.snapshot.nodes[t];if(n===void 0||B(n,4))return[];if(!z(n))return[H(e,t)];if(U(e,t).childIds.length===0)return B(n,1)&&!B(n,2)?[H(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];for(;i.length>0;){let t=i[i.length-1];if(t==null)break;let n=e.snapshot.nodes[t.nodeId];if(n===void 0||B(n,4)){i.pop();continue}if(!z(n)){r.push(H(e,t.nodeId)),i.pop();continue}let a=U(e,t.nodeId);if(a.childIds.length===0){B(n,1)&&!B(n,2)&&r.push(H(e,t.nodeId)),i.pop();continue}let o=a.childIds[t.childIndex];if(o==null){i.pop();continue}t.childIndex++,i.push({childIndex:0,nodeId:o})}return r}function zr(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=xn(e.snapshot.segmentTable,i),a=U(e,r),o=Nt(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!z(W(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=Br(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function Br(e,t,n){let r=W(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:Kt(qt(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,jt()),Ur(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function Vr(e,t,n){let r=xn(e.snapshot.segmentTable,n),i=U(e,t);if(Nt(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${ci(e,t,n)}"`);let a=W(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:Kt(qt(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),Ur(e,t,o),e.activeNodeCount++,o}function Hr(e,t,n){let r=0,i=t.childIds.length;for(;r<i;){let a=r+i>>>1,o=t.childIds[a];if(o==null){i=a;continue}Gr(e,n,o)<0?i=a:r=a+1}return r}function Ur(e,t,n){let r=U(e,t),i=W(e,n);Nt(e.snapshot.nodes,r).set(i.nameId,n),Rt(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=Hr(e,r,n);r.childIds.splice(a,0,n),It(r,a),Vt(e.snapshot.nodes,r)}function Wr(e,t,n,r){let i=U(e,t),a=Pt(i),o=a.get(n)??-1;Nt(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&Rt(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),It(i,o),Vt(e.snapshot.nodes,i))}function Gr(e,t,n){let r=e.snapshot.options.sort;return r===`default`?Kr(e,t,n):r(qr(e,t),qr(e,n))}function Kr(e,t,n){let r=W(e,t),i=W(e,n),a=z(r);if(a!==z(i))return a?-1:1;let o=sn(mn(e.snapshot.segmentTable,r.nameId),mn(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=Sn(e.snapshot.segmentTable,r.nameId),c=Sn(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function qr(e,t){let n=W(e,t),r=H(e,t),i=z(n),a=i?r.slice(0,-1):r;return{basename:Sn(e.snapshot.segmentTable,n.nameId),depth:qt(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function Jr(e,t,n){let r=W(e,t),i=Ir(e,n);if(i!=null){let t=W(e,i);if(z(t))return{basename:Sn(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=vn(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=vn(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:Lr(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function Yr(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${H(e,t)}"`);let i=W(e,t);if(Jt(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(z(i)&&U(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return Xr(e,t),Wr(e,a,t,o),Zr(e,a),Nr(e,a),`handled`}function Xr(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=W(e,t.nodeId);if(t.visitedChildren||!z(i)){z(i)&&e.snapshot.directories.delete(t.nodeId),Xt(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),$n(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=U(e,t.nodeId);for(let e=a.childIds.length-1;e>=0;e--){let t=a.childIds[e];t!=null&&r.push({nodeId:t,visitedChildren:!1})}}return n}function Zr(e,t){let n=t;for(;n!=null;){let t=W(e,n);if(!z(t)||B(t,2)||U(e,n).childIds.length>0)return;Xt(t,1),n=t.parentId===n?null:t.parentId}}function Qr(e,t){let n=e.snapshot.rootId;for(let r of t){let t=e.snapshot.segmentTable.idByValue.get(r);if(t==null)break;let i=Nt(e.snapshot.nodes,U(e,n)).get(t);if(i==null||!z(W(e,i)))break;n=i}return n}function $r(e,t){let n=ni(e,t);if(n==null)return null;let r=Tr(e,n),i=W(e,r),a=n===r?null:Er(e,n).map(t=>H(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:U(e,r).childIds.length>0,path:H(e,r),terminalKind:Jt(i)})}function ei(e,t){return ti([e],[t])}function ti(e,t){for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(r==null||i==null||r!==i)return!0}return!1}function ni(e,t){let n=t;for(;n!=null;){let t=W(e,n);if(!z(t)||B(t,2))return null;if(!Wn(e,n,t))return n;n=t.parentId}return null}function ri(e,t){let n=W(e,t);if(Zt(n,(t===e.snapshot.rootId?-1:qt(W(e,n.parentId)))+1),!z(n))return;let r=U(e,t);for(let t of r.childIds)ri(e,t)}function ii(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=W(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function ai(e,t,n=W(e,t),r=!1){let i=e.instrumentation;if(i==null){si(e,t,n,r);return}V(i,`store.recomputeNodeCounts`,()=>si(e,t,n,r))}function oi(e,t){let n=t;for(;n!=null;){let t=W(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(ai(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&Rt(U(e,s),n,a,o),n=s}}function si(e,t,n,r){if(!z(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=U(e,t);if(r){let t=e.instrumentation;t==null?Lt(e.snapshot.nodes,i):V(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>Lt(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,B(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=wr(e,t)==null?Wn(e,t,n)?1+o:1:o}function ci(e,t,n){let r=H(e,t);return r.length===0?n:`${r}${n}`}function li(e){return e!=null&&!B(e,4)}function ui(e,t){let n=e.snapshot.nodes[t];return!li(n)||!z(n)||B(n,2)?null:n}function di(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&li(e.snapshot.nodes[n])&&(t+=1);return t}function fi(e){return Math.max(0,e.valueById.length-1)}function pi(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:di(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:fi(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function mi(e,t,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:t,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:e,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function hi(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)ui(e,n)!=null&&t.push(H(e,n));for(let t of e.expandedDirectoryIds)ui(e,t)!=null&&n.push(H(e,t));return{collapsedPaths:t,expandedPaths:n}}function gi(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)ui(e,n)==null||qn(e,n)===`loaded`||t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:H(e,n)});return t}function _i(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=Ir(e,n);t!=null&&Gn(e,t,!0,W(e,t))}for(let n of t.collapsedPaths){let t=Ir(e,n);t!=null&&Gn(e,t,!1,W(e,t))}}function vi(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=Ir(e,n.path);t!=null&&ui(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function yi(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function bi(e){let t=e.snapshot.segmentTable,n=bn();for(let r of e.snapshot.nodes)if(li(r)){if(B(r,2)){r.nameId=0;continue}r.nameId=xn(n,Sn(t,r.nameId))}e.snapshot.segmentTable=n}function xi(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!li(r)||!z(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return li(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[W(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),Lt(e.snapshot.nodes,n)}}function Si(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(li(n))break;--t}e.snapshot.nodes.length=t+1}function Ci(e){let t=hi(e),n=gi(e);V(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>yi(e)),V(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>bi(e)),V(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>xi(e)),V(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>Si(e)),V(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>_i(e,t)),V(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>vi(e,n)),V(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>Pr(e,e.snapshot.rootId))}function wi(e){let t=hi(e),n=gi(e),r=V(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>Dr(e)),i=$t({...e.snapshot.options},e.instrumentation),a=V(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new zn(i);return e.appendPaths(r),e.finish()});e.snapshot=a,e.activeNodeCount=a.nodes.length-1,e.pathCacheByNodeId=new Map([[a.rootId,{path:``,version:0}]]),e.pathCacheVersion=0,V(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>_i(e,t)),V(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>vi(e,n)),V(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>Pr(e,e.snapshot.rootId))}function Ti(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function Ei(e,t){let n=pi(e);t===`stable`?V(e.instrumentation,`store.cleanup.stable`,()=>Ci(e)):V(e.instrumentation,`store.cleanup.aggressive`,()=>wi(e));let r=pi(e);return mi(t,t===`stable`,n,r)}var Di=64;function Oi(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function ki(e){return W(e,e.snapshot.rootId).visibleSubtreeCount}function Ai(e,t,n,r){let i=W(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function ji(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:Ji(e,t.cursor),setSize:t.setSize,subtreeEndIndex:Ai(e,t.cursor,t.index,n)}}function Mi(e,t,n,r,i,a){let o=U(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=zt(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return Ni(e,u,l,r+c,i+1,s,o.childIds.length,a)}function Ni(e,t,n,r,i,a,o,s){if(!z(W(e,t))){if(n===0)return{ancestors:s,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:a,setSize:o};throw Error(`Visible index ${String(n)} is out of range for file`)}let c=G(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=W(e,c.terminalNodeId);if(!z(l)||!Wn(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return Mi(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function Pi(e,t){let n=ki(e);if(t<0||t>=n)return null;let r=Mi(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>H(e,t.cursor.terminalNodeId)),a=null;return{ancestorPaths:i,get ancestorRows(){if(a!=null)return a;let t=[],i=[];for(let a of r.ancestors){let r=ji(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:Ji(e,r.cursor),setSize:r.setSize,subtreeEndIndex:Ai(e,r.cursor,r.index,n)}}function Fi(e,t,n){let r=e.instrumentation,i=ki(e);if(i<=0||n<t)return[];let a=Math.max(0,Math.min(t,i-1)),o=Math.max(a,Math.min(n,i-1));if(r==null){if(a===0)return qi(e,o+1);let t=[],n=Vi(e,a);for(let r=a;r<=o&&n!=null;r++){let r=Ji(e,n);t.push(r),n=Wi(e,n)}return t}let s=[],c=0,l=0,u=V(r,`store.getVisibleSlice.selectFirstRow`,()=>Vi(e,a));for(let t=a;t<=o&&u!=null;t++){let t=V(r,`store.getVisibleSlice.materializeRow`,()=>Ji(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=V(r,`store.getVisibleSlice.advanceCursor`,()=>Wi(e,u))}return tn(r,`workload.visibleRowsRead`,s.length),tn(r,`workload.flattenedRowsRead`,c),tn(r,`workload.flattenedSegmentsRead`,l),s}function Ii(e,t=ki(e)){let n=e.instrumentation;return n==null?Ki(e,t):V(n,`store.getVisibleTreeProjection`,()=>Ki(e,t))}function Li(e){return Gi(Ii(e))}function Ri(e,t){let n=Ir(e,t);if(n==null||n===e.snapshot.rootId||z(W(e,n))&&Tr(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=W(e,i).parentId,n=U(e,t),s=Pt(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=Bt(a,n,s),t!==o){let n=W(e,t),a=wr(e,t);if(!Wn(e,t,n)&&a!==i)return null;Tr(e,t)===t&&(r+=1)}i=t}return r}function zi(e,t){let n=Ir(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=W(e,n);if(!z(r))throw Error(`Path is not a directory: "${t}"`);return Wn(e,n,r)?null:(Gn(e,n,!0,r),Nr(e,n),ir({affectedAncestorIds:Fr(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function Bi(e,t){let n=Ir(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=W(e,n);if(!z(r))throw Error(`Path is not a directory: "${t}"`);return Wn(e,n,r)?(Gn(e,n,!1,r),Nr(e,n),ar({affectedAncestorIds:Fr(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function Vi(e,t){return t<0||t>=ki(e)?null:Hi(e,e.snapshot.rootId,t,-1)}function Hi(e,t,n,r){let i=U(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?zt(e.snapshot.nodes,i,n):V(a,`store.getVisibleSlice.selectChildIndex`,()=>zt(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return Ui(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function Ui(e,t,n,r){if(!z(W(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw Error(`Visible index ${String(n)} is out of range for file`)}let i=G(e,t,r);if(n===0)return i;let a=W(e,i.terminalNodeId);if(!z(a)||!Wn(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return Hi(e,i.terminalNodeId,n-1,i.visibleDepth)}function G(e,t,n){return z(W(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:Tr(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:V(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>Tr(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function K(e,t){let n=W(e,t);if(!z(n))return!0;let r=n.parentId;return r===e.snapshot.rootId?!0:wr(e,r)!==t}function Wi(e,t){let n=W(e,t.terminalNodeId);if(z(n)){let r=U(e,t.terminalNodeId);if(Wn(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:Ui(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=W(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=U(e,n),o=Pt(a).get(r)??-1;if(o<0)throw Error(`Child ${String(r)} was not found in its parent index`);let s=a.childIds[o+1]??null;if(s!=null)return Ui(e,s,0,i);K(e,r)&&i--,r=n}}function Gi(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let t=e.getParentIndex(r);n[r]={index:r,parentPath:t>=0?e.paths[t]??null:null,path:e.paths[r]??``,posInSet:e.posInSetByIndex[r]??0,setSize:e.setSizeByIndex[r]??0}}return{getParentIndex:e.getParentIndex,rows:n,get visibleIndexByPath(){return e.visibleIndexByPath}}}function Ki(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(Di);o.fill(-1);let s=0,{nodes:c,directories:l,segmentTable:u}=e.snapshot,d=[[l.get(e.snapshot.rootId),0,-1,``]],f=e.snapshot.options.flattenEmptyDirectories,p=e.pathCacheByNodeId,m=e.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<t;){let t=d[d.length-1],u=t[0];if(t[1]>=u.childIds.length){d.pop();continue}let g=t[1],_=u.childIds[t[1]++],v=c[_],y=t[2]+1,b=t[3];o=Oi(o,y);let x,S=_;if(z(v))S=f?Tr(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:H(e,S);else{let e=p.get(_);x=e!=null&&e.version===m?e.path:`${b}${h[v.nameId]}`}r[s]=o[y],n[s]=x,i[s]=g,a[s]=u.childIds.length,o[y+1]=s,s+=1;let C=c[S];C!=null&&z(C)&&Wn(e,S,C)&&d.push([l.get(S),0,y,x])}s<t&&(n.length=s);let g=r.subarray(0,s),_=i.subarray(0,s),v=a.subarray(0,s),y=null;return{getParentIndex(e){return e<0||e>=s?-1:g[e]??-1},paths:n,posInSetByIndex:_,setSizeByIndex:v,get visibleIndexByPath(){if(y==null){y=new Map;for(let e=0;e<s;e+=1)y.set(n[e]??``,e)}return y}}}function qi(e,t){let n=Array(t),r=0,{nodes:i,directories:a,segmentTable:o}=e.snapshot,s=[[a.get(e.snapshot.rootId),0,-1]],c=o.valueById,l=e.snapshot.options.flattenEmptyDirectories,u=e.pathCacheByNodeId,d=e.pathCacheVersion;for(;s.length>0&&r<t;){let t=s[s.length-1],o=t[0];if(t[1]>=o.childIds.length){s.pop();continue}let f=o.childIds[t[1]++],p=i[f],m=t[2]+1;if(!z(p)){let t=u.get(f);n[r++]={depth:m,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:`file`,loadState:void 0,name:c[p.nameId],path:t!=null&&t.version===d?t.path:H(e,f)};continue}let h=l?Tr(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=Ji(e,g);let _=i[h];_!=null&&z(_)&&Wn(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function Ji(e,t){let n=W(e,t.terminalNodeId),r=z(n)?Yi(e,t):null,i=H(e,t.terminalNodeId),a=Sn(e.snapshot.segmentTable,n.nameId),o=z(n)&&U(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?Er(e,t.headNodeId).map(n=>{let r=W(e,n);return{isTerminal:n===t.terminalNodeId,name:Sn(e.snapshot.segmentTable,r.nameId),nodeId:n,path:H(e,n)}}):V(c,`store.getVisibleSlice.flatten.collectSegments`,()=>Er(e,t.headNodeId).map(n=>{let r=W(e,n);return{isTerminal:n===t.terminalNodeId,name:Sn(e.snapshot.segmentTable,r.nameId),nodeId:n,path:H(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:z(n)&&Wn(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:z(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function Yi(e,t){if(t.headNodeId===t.terminalNodeId)return qn(e,t.terminalNodeId);let n=Er(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=qn(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}function Xi(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:a}=e.snapshot,o=r.flattenEmptyDirectories===!0,s=e=>{let r=n[e];if(r==null||!z(r))return;let i=t.get(e);if(i==null)throw Error(`Unknown directory child index for node ${String(e)}`);let a=i.childIds,s=a.length,c=0,l=0;for(let e=0;e<s;e++){let t=a[e];if(t==null)continue;let r=n[t];c+=r.subtreeNodeCount,l+=r.visibleSubtreeCount}i.totalChildSubtreeNodeCount=c,i.totalChildVisibleSubtreeCount=l,s>=128&&Vt(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&z(e)?l:1+l}else u=1+l;r.visibleSubtreeCount=u};if(a!=null)for(let e=a.length-1;e>=0;e--)s(a[e]);else for(let e=n.length-1;e>=1;e--)s(e);let c=n[i],l=t.get(i);if(c==null||l==null)return;let u=l.childIds,d=0,f=0;for(let e=0;e<u.length;e++){let t=u[e];if(t==null)continue;let r=n[t];d+=r.subtreeNodeCount,f+=r.visibleSubtreeCount}l.totalChildSubtreeNodeCount=d,l.totalChildVisibleSubtreeCount=f,Vt(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function Zi(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var Qi=class e{#e;constructor(e={}){let t=en(e),n=V(t,`store.builder.create`,()=>new zn(e));if(e.preparedInput!=null){let t=In(e.preparedInput);t==null?n.appendPreparedPaths(Fn(e.preparedInput),!1):n.appendPresortedPaths(t,Ln(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(V(t,`store.preparePathEntries`,()=>Rn(r,e)))}let r=V(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=V(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=V(t,`store.state.create`,()=>Bn(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:V(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||Zi(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&V(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?V(t,`store.state.initializeOpenVisibleCounts`,()=>Xi(this.#e)):V(t,`store.state.recomputeCounts`,()=>Pr(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return Mn(e,t)}static prepareInput(e,t={}){return Nn(e,t)}static preparePresortedInput(e){return Pn(e)}list(e){return V(this.#e.instrumentation,`store.list`,()=>Dr(this.#e,e))}add(e){V(this.#e.instrumentation,`store.add`,()=>{let t=ki(this.#e);mr(this.#e,fr(this.#e,t,Or(this.#e,e)))})}remove(e,t={}){V(this.#e.instrumentation,`store.remove`,()=>{let n=ki(this.#e);mr(this.#e,fr(this.#e,n,kr(this.#e,e,t)))})}move(e,t,n={}){V(this.#e.instrumentation,`store.move`,()=>{let r=ki(this.#e),i=Ar(this.#e,e,t,n);i!=null&&mr(this.#e,fr(this.#e,r,i))})}batch(e){pr(this.#e,()=>{if(typeof e==`function`){e(this);return}for(let t of e)switch(t.type){case`add`:this.add(t.path);break;case`remove`:this.remove(t.path,{recursive:t.recursive});break;case`move`:this.move(t.from,t.to,{collision:t.collision});break}})}getVisibleCount(){return V(this.#e.instrumentation,`store.getVisibleCount`,()=>ki(this.#e))}getVisibleSlice(e,t){return V(this.#e.instrumentation,`store.getVisibleSlice`,()=>Fi(this.#e,e,t))}getVisibleRowContext(e){return V(this.#e.instrumentation,`store.getVisibleRowContext`,()=>Pi(this.#e,e))}getVisibleTreeProjection(){return Li(this.#e)}getVisibleTreeProjectionData(e){return Ii(this.#e,e)}getVisibleIndex(e){return V(this.#e.instrumentation,`store.getVisibleIndex`,()=>Ri(this.#e,e))}getPathInfo(e){return V(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=Ir(this.#e,e);if(t==null)return null;let n=W(this.#e,t);return{depth:qt(n),kind:z(n)?`directory`:`file`,path:H(this.#e,t)}})}isExpanded(e){return V(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=W(this.#e,t);return Wn(this.#e,t,n)})}expand(e){V(this.#e.instrumentation,`store.expand`,()=>{let t=ki(this.#e),n=zi(this.#e,e);n!=null&&mr(this.#e,fr(this.#e,t,n))})}collapse(e){V(this.#e.instrumentation,`store.collapse`,()=>{let t=ki(this.#e),n=Bi(this.#e,e);n!=null&&mr(this.#e,fr(this.#e,t,n))})}on(e,t){return er(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return qn(this.#e,t)}markDirectoryUnloaded(e){V(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(U(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=ki(this.#e);Yn(this.#e,t),mr(this.#e,fr(this.#e,n,or({affectedAncestorIds:Fr(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return V(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=ki(this.#e),r=Jn(this.#e,t);return mr(this.#e,fr(this.#e,n,sr({affectedAncestorIds:Fr(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return V(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||qn(this.#e,n)!==`loading`||!Zn(this.#e,n,e.attemptId))return!1;let r=H(this.#e,n);this.validateChildPatch(r,t);let i=ki(this.#e),a=[];for(let e of t.operations){$i(r,e);let t=ki(this.#e);switch(e.type){case`add`:a.push(fr(this.#e,t,Or(this.#e,e.path)));break;case`remove`:a.push(fr(this.#e,t,kr(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=Ar(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(fr(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return mr(this.#e,fr(this.#e,i,cr({affectedAncestorIds:Fr(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:H(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return V(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=ki(this.#e),r=Xn(this.#e,t,e.attemptId);return mr(this.#e,fr(this.#e,n,lr({affectedAncestorIds:Fr(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:H(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return V(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=ki(this.#e),i=Qn(this.#e,n,e.attemptId,t);return mr(this.#e,fr(this.#e,r,ur({affectedAncestorIds:Fr(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:H(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return V(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(Ti(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=ki(this.#e),n=Ei(this.#e,e.mode??`stable`);return mr(this.#e,fr(this.#e,t,dr({...n,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:n.idsPreserved===!1}))),n})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let t=0,n=[],r=[],i=0,a=null,o=this.#e.snapshot.segmentTable,s=o.valueById,c=this.#e.snapshot.nodes,l=new Map;for(let u of e){a!=null&&u<a&&(a=null,i=0,n.length=0,r.length=0);let e=u.length>0&&u.charCodeAt(u.length-1)===47?u.length-1:u.length;if(e===0){a=u,i=e,n.length=0,r.length=0;continue}let d=0,f=0;if(a!=null){let t=Math.min(e,i),n=!0;for(let e=0;e<t;e+=1){let t=u.charCodeAt(e);if(t!==a.charCodeAt(e)){n=!1;break}t===47&&(d+=1,f=e+1)}n&&(t===i&&e>t&&u.charCodeAt(t)===47?(d+=1,f=t+1):t===e&&i>t&&a.charCodeAt(t)===47&&(d+=1,f=e+1)),d=Math.min(d,r.length)}let p=d===0?this.#e.snapshot.rootId:r[d-1]??this.#e.snapshot.rootId,m=d,h=!0,g=f;for(;g<=e;){let t=u.indexOf(`/`,g),i=t===-1||t>e?e:t,a=u.slice(g,i),f=U(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??an(a);l.set(a,b);let x=(e,t)=>{for(v=e;v<t;v+=1){let e=f[v],t=c[e],n=s[t.nameId];if(n===a)return y=e,!0;let r=sn(mn(o,t.nameId),b);if(r>0||r===0&&n>a)return!1}return!1};if(!x(_,f.length)&&_>0&&x(0,_),y===void 0){h=!1;break}if(!z(W(this.#e,y))){h=!1;break}if(n[m]=v,r[m]=y,p=y,m+=1,i===e)break;g=i+1}if(a=u,i=e,n.length=m,r.length=m,!h){a=null,i=0,n.length=0,r.length=0;continue}for(let e=d;e<m;e+=1){let n=r[e];if(n==null)continue;let i=W(this.#e,n);Wn(this.#e,n,i)||(Gn(this.#e,n,!0,i),t+=1)}}return t}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let t=W(this.#e,e);if(!Wn(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=Ir(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!z(W(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!z(W(this.#e,e)))throw Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let t=e;for(;t!==this.#e.snapshot.rootId;){let e=W(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=W(this.#e,e),r=wr(this.#e,e);if(!Wn(this.#e,e,n)&&r!==t)return!1}t=e}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function $i(e,t){switch(t.type){case`add`:case`remove`:if(!t.path.startsWith(e)||t.path===e)throw Error(`Child patch operation must stay within ${e}: "${t.path}"`);break;case`move`:if(!t.from.startsWith(e)||!t.to.startsWith(e)||t.from===e||t.to===e)throw Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`);break}}var ea=e=>e.startsWith(`f::`)?e.slice(3):e;function ta(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function na(e,t){return e===``?t:`${e}/${t}`}function ra({files:e,path:t,isFolder:n,nextBasename:r}){let i=ea(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=ta(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=na(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function ia(e){return e.endsWith(`/`)}function aa(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function oa(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function sa(e,t){return t.includes(e)?oa(t):[e]}function ca(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function la(e,t){return{draggedPaths:e,target:t}}function ua(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(ia(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function da(e,t){return t.kind===`root`||t.directoryPath==null?aa(e):t.directoryPath}function fa(e,t){let n=e.map(e=>{let n=da(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function pa(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function ma(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!pa(Qi.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function ha(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function ga(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function _a(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function va(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return _a(e,t.path)?n?e:null:e;case`move`:return ga(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=va(r,e,n),r==null)return null;return r}}}function ya(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function ba(e){switch(e.operation){case`add`:return{...ya(e),operation:`add`,path:e.path};case`remove`:return{...ya(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...ya(e),from:e.from,operation:`move`,to:e.to}}}function xa(e){return{...ya(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>ba(e)),operation:`batch`}}function Sa(e){switch(e.operation){case`add`:case`remove`:case`move`:return ba(e);case`batch`:return xa(e);default:return null}}function Ca(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function wa(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function Ta(e){return wa(e).at(-1)??null}function Ea(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function Da(e){return e.endsWith(`/`)}var Oa=e=>e.toLowerCase();function ka(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function Aa(e){return e.endsWith(`/`)?e.slice(0,-1):e}function ja(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var Ma=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},Na=Symbol(`FILE_TREE_RENAME_VIEW`),Pa=512,Fa=512;function Ia(e){return e===`top`||e===`center`?e:`nearest`}function La(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=wa(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function Ra(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:La(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var za=class{#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=ma({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=Ta(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:Ia(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=Fa){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t==null||!this.#B.has(t)||this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=sa(t,n);return this.#r.canDrag?.(r)===!1?!1:(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=la(t.draggedPaths,n);(ua(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}ca(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=la(e.draggedPaths,t);if(ua(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=fa(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=Da(r),a=Aa(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of wa(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=ka(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}[Na](){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,Da(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,Da(e)?{recursive:!0}:void 0);return}let t=Da(e),n=ra({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:Aa(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(ja(n.sourcePath,t),ja(n.destinationPath,t))}#Y(e){this.#T==null||this.#E===e||(this.#E=e,this.#De())}resetPaths(e,t={}){let n=this.#H.list().length,r=this.#G,i=ma({paths:e,preparedInput:t.preparedInput},`resetPaths`,this.#e.sort),a=this.#le(i.paths,i.preparedInput,t.initialExpandedPaths),o=this.#c,s=this.#T,c=this.getSelectedPaths(),l=this.#z;this.#K?.(),this.#H=a,this.#d.clear(),this.#he();let u=c.map(e=>a.getPathInfo(e)?.path??null).filter(e=>e!=null),d=!Ca(this.#B,u);this.#B=new Set(u),d&&(this.#V+=1),this.#z=l==null?null:a.getPathInfo(l)?.path??null,this.#T=s==null?null:a.getPathInfo(s)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(o,o!=null||u.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:i.paths.length,pathCountBefore:n,projectionChanged:!0,usedPreparedInput:t.preparedInput!=null,visibleCountDelta:this.#G-r})}#X(e){this.#Ie();let t=Ta(e),n=Ea(e,t),r=null,i=null;for(let e of this.#be()){if(Ta(e)!==t)continue;let a=Ea(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=wa(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!Ca(this.#B,r),a=this.#z!==t;!i&&!a||(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new Qi({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of wa(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Oa),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Oa),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of wa(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:Ma(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of wa(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of wa(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=Ra(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,Pa)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s===e&&this.#c===n||(this.#s=e,this.#c=n,t&&this.#De()))}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=va(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=va(this.#c,e,!0),r=[...this.#B].map(t=>va(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=va(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return Ca(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&ha(e)&&(this.#i=null);let t=ha(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=Sa(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},Ba=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function Va(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(!(e[t]===`/`||t===e.length)){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function Ha(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function Ua(e,t){return t?`${e}/`:e}function Wa(e,t=null){let n=Ba(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set;for(let t of e??[]){let e=Va(t.path);if(e==null)continue;let n=Ua(e.path,e.isDirectory);r.set(n,t.status),t.status===`ignored`&&e.isDirectory?a.add(n):e.isDirectory&&a.delete(n);for(let t of Ha(e.path))i.add(t)}return{directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}var Ga=e=>e.trim().toLowerCase(),Ka=e=>e.split(`/`).at(-1)??e,qa=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function Ja(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function Ya(e){let t=pt(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(Ga(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let n=Ka(o),s=n.toLowerCase(),c=r.get(s);if(c!=null)return Ja(c,e);for(let[t,n]of a)if(s.includes(t))return Ja(n,e);let l=qa(n);for(let t of l){let n=i.get(t);if(n!=null)return Ja(n,e)}let u=dt(t.set,n,l);if(u!=null&&t.set!==`none`)return{name:I(u),remappedFrom:e,token:u}}let s=n?.[e];return s==null?{name:e}:Ja(s,e)}}}var q,Xa,Za,Qa,$a,eo,to,no,ro,io,ao={},oo=[],so=Array.isArray,co=oo.slice,lo=Object.assign;function uo(e){e&&e.parentNode&&e.remove()}function fo(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?co.call(arguments,2):n),po(e,o,r,i,null)}function po(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Xa,__i:-1,__u:0};return i==null&&q.vnode!=null&&q.vnode(a),a}function mo(e){return e.children}function ho(e,t){this.props=e,this.context=t,this.__g=0}function go(e,t){if(t==null)return e.__?go(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?go(e):null}function _o(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return _o(e)}}function vo(e){(8&e.__g||!(e.__g|=8)||!Za.push(e)||$a++)&&Qa==q.debounceRendering||((Qa=q.debounceRendering)||queueMicrotask)(yo)}function yo(){for(var e,t,n,r,i,a,o,s,c=1;Za.length;)Za.length>c&&Za.sort(eo),e=Za.shift(),c=Za.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=lo({},r)).__v=r.__v+1,q.vnode&&q.vnode(n),Do(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??go(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,ko(a,n,o),n.__e!=i&&_o(n)));$a=0}function bo(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||oo,b=t.length;for(c=xo(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?ao:y[m.__i]||ao,m.__i=f,_=Do(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Mo(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=So(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function xo(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?po(null,o,null,null,null):so(o)?po(mo,{children:o},null,null,null):o.constructor==null&&o.__b>0?po(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=Co(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=go(s)),No(s,s));return r}function So(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=So(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=go(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Co(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function wo(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function To(e,t,n,r,i){var a;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||wo(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||wo(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(to,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=no,e.addEventListener(t,a?io:ro,a)):e.removeEventListener(t,a?io:ro,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function Eo(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=no++;else if(t.u<n.l)return;return n(q.event?q.event(t):t)}}}function Do(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,k,A=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=q.__b)&&d(t);n:if(typeof A==`function`)try{if(v=t.props,y=`prototype`in A&&A.prototype.render,b=(d=A.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new A(v,x):(t.__c=f=new ho(v,x),f.constructor=A,f.render=Po),b&&b.sub(f),f.props=v,f.state||={},f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=lo({},f.__s)),lo(f.__s,A.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=q.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=lo({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===mo&&d.key==null&&(E=Ao(d.props.children)),s=bo(e,so(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null)if(e.then){for(D=0,ee=!1,t.__u|=c?160:128,t.__c.__z=[],O=0;O<a.length;O++)(te=a[O])==null||ee||(te.nodeType==8&&te.data==`$s`?(D>0&&t.__c.__z.push(te),D++,a[O]=null):te.nodeType==8&&te.data==`/$s`?(--D>0&&t.__c.__z.push(te),ee=D===0,s=a[O],a[O]=null):D>0&&(t.__c.__z.push(te),a[O]=null));if(!ee){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(k=a.length;k--;)uo(a[k]);Oo(t)}else t.__e=n.__e,t.__k=n.__k,e.then||Oo(t);q.__e(e,t,n)}else s=t.__e=jo(n.__e,t,n,r,i,a,o,c,l,u);return(d=q.diffed)&&d(t),128&t.__u?void 0:s}function Oo(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(Oo)}function ko(e,t,n){for(var r=0;r<n.length;r++)Mo(n[r],n[++r],n[++r]);q.__c&&q.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){q.__e(e,t.__v)}})}function Ao(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:so(e)?e.map(Ao):lo({},e)}function jo(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(q.__m&&q.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=co.call(e.childNodes),v=n.props||ao,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;To(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||To(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),bo(b==`template`?e.content:e,so(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&go(n,0),s,c,l),a!=null)for(u=a.length;u--;)uo(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||To(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&To(e,u,g,v[u],i))}return e}function Mo(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){q.__e(e,n)}}function No(e,t,n){var r,i;if(q.unmount&&q.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Mo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){q.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&No(r[i],t,n||typeof e.type!=`function`);n||uo(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function Po(e,t,n){return this.constructor(e,n)}function Fo(e,t){var n,r,i,a;t==document&&(t=document.documentElement),q.__&&q.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=fo(mo,null,[e]),i=[],a=[],Do(t,e,r||ao,ao,t.namespaceURI,r?null:t.firstChild?co.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),ko(i,e,a)}function Io(e,t){e.__u|=32,Fo(e,t)}q={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw $a=0,e}},Xa=0,ho.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=lo({},this.state);typeof e==`function`&&(e=e(lo({},n),this.props)),e&&lo(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),vo(this))},ho.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),vo(this))},ho.prototype.render=mo,Za=[],$a=0,eo=function(e,t){return e.__v.__b-t.__v.__b},to=/(PointerCapture)$|Capture$/i,no=0,ro=Eo(!1),io=Eo(!0);var Lo=0;Array.isArray;function J(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Lo,__i:-1,__u:0,__source:i,__self:a};return q.vnode&&q.vnode(l),l}var Ro=16,zo=16,Bo={};function Vo({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=Bo[e]??{width:Ro,height:zo},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return J(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:J(`use`,{href:c})})}var Ho=e=>{if(e.length<2)return[e,``];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]},Uo=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},Wo=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},Go=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},Ko=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},qo=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function Jo({children:e,marker:t,variant:n=`default`}){"use no memo";return J(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:J(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?J(`span`,{"data-truncate-fade":!0}):t})})}function Yo(e){"use no memo";let{mode:t,children:n}=e;return J(`div`,{children:[J(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?J(`span`,{children:n}):n}),J(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?J(`span`,{children:n}):n})]})}function Xo({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=J(Yo,{mode:t,children:e},`content`),o=J(Jo,{marker:n,mode:t,variant:r},`marker`),s=J(`div`,{"data-truncate-fill":!0},`fill`);return J(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:J(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function Zo({children:e,...t}){"use no memo";return J(Xo,{mode:`truncate`,...t,children:e})}function Qo({children:e,...t}){"use no memo";return J(Xo,{mode:`fruncate`,...t,children:e})}function $o({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=J(Zo,{...s,children:t[0]}),l=J(Qo,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return J(`div`,{className:a,style:o});if(e.length<i)return J(n===`end`?Qo:Zo,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=Ho:r===`extension`?t=Uo:r===`leaf-path`&&(t=Wo);else if(typeof r==`number`)t=Go,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=Ko:e===`first`&&(t=qo)}else typeof r==`function`&&(t=r);t??=Ho;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=J(Zo,{...s,..._,children:f}),l=J(Qo,{...s,...v,children:p})}return J(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[J(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),J(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var es={endIndex:-1,startIndex:-1};function ts(e,t,n){return Math.min(Math.max(e,t),n)}function ns(e,t){return e<0||t<e?es:{endIndex:t,startIndex:e}}function rs(e){return e.startIndex<0||e.endIndex<e.startIndex}function is(e,t){return rs(e)?0:(e.endIndex-e.startIndex+1)*t}function as(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function os(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function ss(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function cs(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function ls(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function us(e,t,n){if(e.length===0||t<=0)return[];let r=ls(e),i=ss(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=cs(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function ds(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=ts(t.scrollTop,0,o),c=t.stickyRows??us(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=as(s,n,t.itemHeight),m=as(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?es:ns(m,os(u+d,n,t.itemHeight)),y=g+1,b=rs(v)?es:ns(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=is(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:rs(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var fs={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},ps={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},ms=`Contains git status items`;function hs(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function gs(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return hs({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function _s(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function vs(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function ys(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function bs(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function xs(e,t){return e!=null&&e>0?e:t}function Ss(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function Cs(e,t,n,r,i=0){let a=hs({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a==null?!1:(e.scrollTop=a,!0)}function ws(e,t,n,r,i,a,o=0){let s=gs({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s==null?!1:(e.scrollTop=s,!0)}function Ts(e,t,n,r,i,a){let o=_s({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o==null?!1:(e.scrollTop=o,!0)}function Es(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function Ds(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function Os({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return J(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function ks(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function As(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var js,Ms,Ns,Ps,Fs=Object.is,Is=0,Ls=[],Rs=q,zs=Rs.__b,Bs=Rs.__r,Vs=Rs.diffed,Hs=Rs.__c,Us=Rs.unmount,Ws=Rs.__;function Gs(e,t){Rs.__h&&Rs.__h(Ms,e,Is||t),Is=0;var n=Ms.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function Ks(e){return Is=1,qs(ic,e)}function qs(e,t,n){var r=Gs(js++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ic(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);Fs(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ms,!Ms.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,Fs(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};Ms.__f=!0;var a=Ms.shouldComponentUpdate,o=Ms.componentWillUpdate;Ms.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},Ms.shouldComponentUpdate=i}return r.__N||r.__}function Js(e,t){var n=Gs(js++,3);!Rs.__s&&rc(n.__H,t)&&(n.__=e,n.u=t,Ms.__H.__h.push(n))}function Ys(e,t){var n=Gs(js++,4);!Rs.__s&&rc(n.__H,t)&&(n.__=e,n.u=t,Ms.__h.push(n))}function Y(e){return Is=5,Xs(function(){return{current:e}},[])}function Xs(e,t){var n=Gs(js++,7);return rc(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Zs(e,t){return Is=8,Xs(function(){return e},t)}function Qs(){for(var e;e=Ls.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tc),e.__H.__h.forEach(nc),e.__H.__h=[]}catch(t){e.__H.__h=[],Rs.__e(t,e.__v)}}Rs.__b=function(e){Ms=null,zs&&zs(e)},Rs.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ws&&Ws(e,t)},Rs.__r=function(e){Bs&&Bs(e),js=0;var t=(Ms=e.__c).__H;t&&(Ns===Ms?(t.__h=[],Ms.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(tc),t.__h.forEach(nc),t.__h=[],js=0)),Ns=Ms},Rs.diffed=function(e){Vs&&Vs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ls.push(t)!==1&&Ps===Rs.requestAnimationFrame||((Ps=Rs.requestAnimationFrame)||ec)(Qs)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Ns=Ms=null},Rs.__c=function(e,t){t.some(function(e){try{e.__h.forEach(tc),e.__h=e.__h.filter(function(e){return!e.__||nc(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],Rs.__e(n,e.__v)}}),Hs&&Hs(e,t)},Rs.unmount=function(e){Us&&Us(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{tc(e)}catch(e){t=e}}),n.__H=void 0,t&&Rs.__e(t,n.__v))};var $s=typeof requestAnimationFrame==`function`;function ec(e){var t,n=function(){clearTimeout(r),$s&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);$s&&(t=requestAnimationFrame(n))}function tc(e){var t=Ms,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Ms=t}function nc(e){var t=Ms;e.__c=e.__(),Ms=t}function rc(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!Fs(t,e[n])})}function ic(e,t){return typeof t==`function`?t(e):t}function ac(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:J(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return J(mo,{children:[J(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:J(Zo,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function oc(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function sc(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function cc(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function lc({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=ds(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:cc(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?cc(u,1,t,o):i&&r<=0&&c.length>0?us(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var uc=400,dc=10,fc=40,pc=18;function X(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?mc(e,t,n):a instanceof HTMLElement?a:null}function mc(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function hc(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function gc(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function _c(){return navigator.vendor!==`Apple Computer, Inc.`}function vc(e,t){let n=e-t.top;if(n<fc)return-Math.ceil((fc-Math.max(0,n))/fc*pc);let r=t.bottom-e;return r<fc?Math.ceil((fc-Math.max(0,r))/fc*pc):0}function yc(e,t){if(e!=null){let t=fs[e];return t==null?null:{text:t,title:ps[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:ms}:null}function bc(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function xc(e){return e!=null&&`toggle`in e}function Sc(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function Cc(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function wc(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function Tc(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function Ec(e,t){return t&&Tc(e)||(e.ctrlKey||e.metaKey)&&Sc(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var Dc=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function Oc(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function kc(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function Ac(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function jc(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function Mc(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function Nc(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function Pc(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function Fc(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function Ic(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=Fc(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function Lc(e,t){return{kind:e.kind,name:sc(e),path:t}}function Rc(e){return e==null?void 0:`${e}__tree`}function zc(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function Bc(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function Vc(e,t){if(e==null)return null;if(`text`in e)return J(`span`,{title:e.title,children:e.text});let n=typeof e.icon==`string`?Bc(e.icon)?t(e.icon):{name:e.icon}:Bc(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return J(`span`,{title:e.title,children:J(Vo,{...n})})}function Hc(e){e!=null&&vs(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function Z(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=oc(e);return J(mo,{children:[e.depth>0?J(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>J(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,J(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?J(Vo,{...t(`file-tree-icon-chevron`)}):J(Vo,{...t(`file-tree-icon-file`,u)})}),J(`div`,{"data-item-section":`content`,children:e.isFlattened?ac(e,c,a):c??J($o,{minimumLength:5,split:`extension`,children:e.name})}),i?J(`div`,{"data-item-section":`decoration`,children:r==null?null:Vc(r,t)}):null,s?J(`div`,{"data-item-section":`git`,children:Vc(o,t)}):null,n?J(`div`,{"data-item-section":`action`,children:l?J(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:J(Vo,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function Uc(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:D,registerButton:ee,resolveIcon:O,renderDecorationForRow:te,openContextMenuForRow:k,onRowClick:A,onKeyDown:j}=e,M=oc(t),{isParked:N=!1,mode:ne=`flow`,style:re}=r,ie=ne===`sticky`,P=_?.get(M)??null??bc(t.ancestorPaths,v,y),ae=t.kind===`directory`&&(b?.has(M)??!1),oe=te(t,M),se=yc(P,ae),ce=S&&w,le=oe!=null||x||ce,ue=ce&&T===`always`,de=a.getPath()===M,fe=de?a.getValue():``,pe=ie||!de?null:J(Os,{ref:D,ariaLabel:`Rename ${sc(t)}`,isFlattened:t.isFlattened,value:fe,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),me=Z(t,O,{actionLaneEnabled:ce,customDecoration:oe,decorationLaneEnabled:le,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:se,gitLaneActive:x,renameInput:pe,showDecorativeActionAffordance:ue}),he={...ks({ariaLabel:sc(t),domId:t.isFocused?zc(h,M,N):void 0,extraStyle:re,features:{actionLaneEnabled:ce,contextMenuButtonVisibility:ce?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:N,itemHeight:g,mode:ne,row:t,state:{containsGitChange:ae,effectiveGitStatus:P,isContextHovered:s===M,isDragTarget:l?.kind===`directory`&&l.directoryPath===M,isDragging:c?.has(M)===!0,isFocusRinged:t.isFocused&&o===M},targetPath:M}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(M),k(t,M,{anchorRect:Ac(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ie?void 0:()=>{i.focusMountedPathFromInput(M)},onKeyDown:ie?void 0:j,ref:e=>{ee(M,e)}};return!ie&&de?J(`div`,{...he,children:me}):J(`button`,{...he,type:`button`,draggable:u&&!N,onDragEnd:u&&!N?p:void 0,onDragStart:u&&!N?e=>{f(e,t,M)}:void 0,onMouseDown:e=>{if(ie){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!N?e=>{m(e,t,M)}:void 0,onClick:e=>{A(e,t,M,ne)},children:me})}function Wc(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(oc(e))).map((n,r)=>Uc(e,n,t.start+r))}function Gc({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=gt,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=Y(null),v=Y(null),y=Y(!1),b=Y(null),x=Y(null),S=Y(null),C=Y(null),w=Y(null),T=Y(new Map),E=Y(new Map),D=Y(()=>{}),k=Y(null),A=Y(0),j=Y(!1),M=Y(null);M.current!==t&&(j.current=!1,M.current=t);let N=Y(!1),ne=Y(null),re=Y(null),ie=Y(!1),P=Y(null),ae=Y(null),oe=Y(null),se=Y(null),ce=Y(null),le=Y(null),ue=Y(null),de=Y(null),fe=Y(!1),pe=Y(null),me=Y(null),he=Y(null),ge=Y(null),_e=Xs(()=>new Map,[]),[,ve]=Ks(0),[ye,be]=Ks(null),[xe,Se]=Ks(null),[Ce,we]=Ks(null),[Te,Ee]=Ks(null),[De,Oe]=Ks(0),[F,ke]=Ks(null),Ae=Y(F);Ae.current=F;let je=Y(null),Me=Y(null),Ne=Y(null),Pe=Y(null),Fe=Y(null),Ie=Y(!1),Le=()=>{Me.current=null,Ne.current=null,Pe.current=null},Re=(e,t)=>{Me.current=e,Ne.current=null,Pe.current=t==null?null:{path:e,scrollTop:t}},ze=(e,t)=>{Me.current=null,Ne.current={path:e,viewportOffset:t},Pe.current=null},Be=Y(d===`retain`&&t.isSearchOpen()),[Ve,He]=Ks(p);Js(()=>{p||He(!1)},[p]);let Ue=Y(!1),We=Zs(()=>{Ue.current=!0,He(e=>e&&!1)},[]),[Ge,Ke]=Ks(()=>lc({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[qe,Je]=Ks(!1);Js(()=>{Je(!0)},[]);let Ye=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Xe=e?.contextMenu?.triggerMode??(Ye?`right-click`:`both`),Ze=Xe===`both`||Xe===`button`,Qe=e?.contextMenu?.buttonVisibility??`when-needed`,$e=Xe===`both`||Xe===`right-click`;Ys(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Fe.current=t,Se(t),Ee(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(Ie.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let et=Zs((e,t)=>{Mc(T.current,e,t)},[]),tt=Zs((e,t)=>{Mc(E.current,e,t)},[]),nt=Zs(e=>{x.current=e},[]),rt=Zs(e=>Nc(e,E.current,T.current),[]),it=n!=null||r!=null||i!=null,{resolveIcon:at}=Xs(()=>Ya(a),[a]),ot=t[Na](),st=ot.getPath(),ct=st!=null,lt=t.isSearchOpen(),ut=t.getSearchValue(),I=t.getFocusedPath(),L=t.getFocusedIndex(),dt=t.getScrollRequest(),ft=t.isDragAndDropEnabled(),pt=t.getDragSession(),mt=Xs(()=>pt==null?null:new Set(pt.draggedPaths),[pt]),ht=pt?.target??null,_t=pt?.primaryPath??null,vt=Rc(o),{overlayHeight:yt,overlayRows:bt,snapshot:xt,visibleRows:St}=Ge,Ct=xt.physical.viewportHeight,wt=Xs(()=>({end:xt.window.endIndex,start:xt.window.startIndex}),[xt.window.endIndex,xt.window.startIndex]),Tt=bt,Et=xt.sticky.rows,Dt=xt.physical.totalHeight,Ot=xt.sticky.height,kt=Xs(()=>new Set(Et.map(e=>oc(e.row))),[Et]),At=L>=0&&L>=wt.start&&L<=wt.end,jt=Zs((e,t)=>u?.({item:Lc(e,t),row:e})??null,[u]),Mt=Zs(e=>vs(e==null?null:T.current.get(e)??null)?!0:vs(S.current),[]),Nt=Zs(e=>{Mt(t.focusNearestPath(e))},[t,Mt]),Pt=Y(Nt);Pt.current=Nt;let Ft=Y(!0),It=Y(()=>{}),Lt=Zs((t=!0)=>{let n=Ae.current;n!=null&&(Ft.current=Ft.current&&t,ke(null),e?.contextMenu?.onClose?.(),Ft.current&&Nt(n.path))},[e?.contextMenu,Nt]);It.current=Lt;let Rt=Zs(e=>{let t=e==null?null:jc(S.current,e);we(e=>e===t?e:t)},[]),zt=Zs((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=rt(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;Re(n,e?.scrollTop??null),N.current=!0,be(e=>e===n?e:n)}i.focus(),Rt(a),Ft.current=!0,ke({anchorRect:r?.anchorRect??null,item:Lc(e,n),path:n,source:r?.source??`keyboard`})},[t,rt,Rt]),Bt=Zs(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=bs(e,Ct);P.current=L<0||e==null?null:Math.max(0,Math.min(L*s-e.scrollTop,Math.max(0,t-s))),ie.current=!0}t.startRenaming(e)!==!1&&(Ee(`focus`),ve(e=>e+1))}},[t,L,s,l,Ct]),Vt=Zs((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=bs(i,Ct),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:lc({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return N.current=!0,Ts(i,a,s,l,u,d),D.current(),je.current=n?e:null,!0},[t,s,c,Ct,h]),Ht=()=>y.current===!0||ge.current!=null||fe.current===!0,Ut=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),R=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Wt=()=>{se.current!=null&&(clearTimeout(se.current),se.current=null),oe.current=null},Gt=()=>{le.current?.remove(),le.current=null},Kt=()=>{R(ae.current),ae.current=null,ce.current=null},qt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Jt=()=>{de.current?.(),de.current=null,ge.current!=null&&(clearTimeout(ge.current),ge.current=null),fe.current=!1,pe.current=null,he.current=null,me.current!=null&&(me.current.setAttribute(`draggable`,`true`),me.current.style.removeProperty(`touch-action`),me.current=null),Gt(),Wt(),Kt(),ue.current=null},z=(e,n)=>{let r=S.current?.getRootNode(),i=hc(X(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Yt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Wt();return}let r=t.getItem(e.directoryPath),i=xc(r)?r:null;if(i==null||i.isExpanded()){Wt();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;oe.current!==a&&(Wt(),oe.current=a,se.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind!==`directory`||n.directoryPath!==e.directoryPath||n.flattenedSegmentPath!==e.flattenedSegmentPath||i.expand()},n))},B=()=>{ae.current=null;let e=ce.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=vc(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,D.current()),Yt(z(e.clientX,e.clientY)),ae.current=Ut(B)},Xt=(e,t)=>{ce.current={clientX:e,clientY:t},ae.current??=Ut(B)},Zt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Jt(),Gt(),Wt(),Kt(),t.startDrag(r)===!1){e.preventDefault();return}if(ue.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),_c())){let t=gc(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),qt(t),le.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Qt=()=>{Gt(),Wt(),Kt(),ue.current=null,t.cancelDrag()},$t=(e,n,r)=>{if(ge.current!=null||fe.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;he.current={clientX:i.clientX,clientY:i.clientY},me.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!fe.current;ge.current!=null&&(clearTimeout(ge.current),ge.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),de.current===o&&(de.current=null),t&&(a.setAttribute(`draggable`,`true`),me.current===a&&(me.current=null),he.current=null)},s=e=>{let t=e.touches[0],n=he.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=dc*dc||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),de.current=o,ge.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),me.current===a&&(me.current=null),he.current=null;return}fe.current=!0,me.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),ue.current=n;let e=a.getBoundingClientRect(),s=gc(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),qt(s),le.current=s,pe.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=pe.current;n!=null&&le.current!=null&&(le.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Yt(z(t.clientX,t.clientY)),Xt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&z(n.clientX,n.clientY),t.completeDrag(),Jt()},u=()=>{t.cancelDrag(),Jt()};de.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},uc)},en=e=>{if(F!=null){if(e.key===`Escape`){Lt(),e.preventDefault(),e.stopPropagation();return}Dc.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(ot.isActive()){if(e.key===`Escape`)ot.cancel();else if(e.key===`Enter`)ot.commit();else return;Ee(`focus`),ve(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){Bt(I??void 0),e.preventDefault(),e.stopPropagation();return}if(lt){if(e.key===`Escape`)ie.current=!1,P.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=bs(n,Ct);P.current=L<0||n==null?null:Math.max(0,Math.min(L*s-n.scrollTop,Math.max(0,r-s))),ie.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;Ee(`focus`),ve(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&Cc(e)){t.openSearch(e.key),ve(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Ye&&Tc(e),r=Ec(e,Ye),i=r&&S.current!=null?ys(S.current):null,a=r?new Set(Pc(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==I&&a.has(o)){let e=C.current;Re(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=xc(p)?p:null,h=u!=null&&(kt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=Nc(u,E.current,T.current);e==null||n==null?y=!1:zt(e,u)}else if((e.ctrlKey||e.metaKey)&&Sc(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;Ee(`focus`);let b=t.getFocusedPath(),x=b!=null&&(kt.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))Re(b,v?.scrollTop??null),N.current=!0,be(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(ze(b,Ic(S.current,v,i,u,s,Ot,Ct)),N.current=!0,be(e=>e===b?e:b)):Le()}ve(e=>e+1),e.preventDefault(),e.stopPropagation()};Ys(()=>{if(!(!f||!lt)){if(Be.current){Be.current=!1;return}vs(w.current)}},[lt,f]),Ys(()=>{let e=x.current;switch(Ds({hasRenderedInput:e!=null,previousRenamingPath:re.current,renamingPath:st})){case`reset`:re.current=null;return;case`reveal-canonical`:st!=null&&Vt(st,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(je.current=null,re.current=st,vs(e),e.select());return}},[wt.end,wt.start,st,Vt,kt]),Ys(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=ys(e)?.dataset.itemPath??null;be(e=>e===t?e:t)},i=()=>{n(),N.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,ys(e)!=null){r();return}N.current=!1,be(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),N.current=!1,be(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;be(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),Ys(()=>{let e=S.current;e!=null&&(xt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[xt.physical.scrollTop]),Ys(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;k.current=bs(n,g);let a=()=>{let e=t.getVisibleCount(),r=xs(k.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Ke(lc({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!j.current){j.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=xs(k.current,g),i=t.getVisibleRows(e,e)[0]??null;Cs(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}D.current=a;let o=!1,l=t.subscribe(()=>{o?ve(e=>e+1):o=!0,a()}),u=()=>{Ie.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,Oe(e=>e+1),e=null},50))},d=null,f=()=>{i!=null&&delete i.dataset.overlayReveal,d!=null&&(clearTimeout(d),d=null)},p=()=>{i==null||Ie.current===!0||n.scrollTop>0||(i.dataset.overlayReveal=`true`,d!=null&&clearTimeout(d),d=setTimeout(()=>{f()},200))},m=()=>{if(a(),n.scrollTop>0&&f(),Ae.current!=null&&y.current&&It.current(),Ie.current===!0){y.current=!1;return}Se(e=>e==null?e:null),u()},_=()=>{u(),p()},v=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),x=e=>{v.has(e.key)&&_()};n.addEventListener(`scroll`,m,{passive:!0}),n.addEventListener(`wheel`,_,{passive:!0}),n.addEventListener(`touchmove`,_,{passive:!0}),n.addEventListener(`keydown`,x);let w=typeof ResizeObserver<`u`?new ResizeObserver(e=>{k.current=(e[0]==null?null:Ss(e[0]))??bs(n,g),a()}):null;return w?.observe(n),()=>{D.current=()=>{},l(),n.removeEventListener(`scroll`,m),n.removeEventListener(`wheel`,_),n.removeEventListener(`touchmove`,_),n.removeEventListener(`keydown`,x),e!=null&&clearTimeout(e),d!=null&&clearTimeout(d),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,k.current=null,w?.disconnect()}},[t,g,s,c,h]),Ys(()=>{Ye||F==null||Lt(!1)},[Lt,Ye,F]);let V=Xs(()=>F==null?null:`${F.path}::${F.source}`,[F]);Ys(()=>{if(V==null){m?.clearSlotContent(O);return}let t=Ae.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??kc(n.getBoundingClientRect()),close:e=>{It.current(e?.restoreFocus??!0)},restoreFocus:()=>{Ft.current&&Pt.current(Ae.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(O,i),e?.contextMenu?.onOpen?.(t.item,r),Hc(i),queueMicrotask(()=>{i==null||!i.isConnected||document.activeElement===i&&Hc(i)}),()=>{m?.clearSlotContent(O)}},[V,e?.contextMenu,m]),Ys(()=>{F!=null&&t.getItem(F.path)==null&&Lt()},[Lt,F,t]),Ys(()=>{if(F==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(Oc(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Lt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Lt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Lt,F]),Ys(()=>{let e=C.current,n=S.current;if(e==null||n==null){ne.current=I;return}let r=I==null?null:T.current.get(I)??null,i=ys(n),a=i?.dataset.itemPath??null,o=ct&&x.current===i,c=f&&w.current===i,l=ie.current&&!lt,u=P.current??0,d=je.current,p=Me.current,m=Ne.current,g=Pe.current,_=i!=null,v=N.current||_,y=ne.current!==I,b=p!=null&&p===I&&I!=null,E=!1,ee=!1;if(dt!=null&&dt.id!==A.current){A.current=dt.id;let n=dt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,Ct-s))):Ot;E=!0,ee=ws(e,n,s,Ct,Dt,dt.offset,t)}t.clearScrollRequest(dt.id)}let O=!E&&l&&Ts(e,L,s,Ct,Dt,u),te=!E&&d!=null&&d===I&&Ts(e,L,s,Ct,Dt,Ot),k=!E&&m!=null&&m.path===I&&Ts(e,L,s,Ct,Dt,m.viewportOffset),j=!E&&g!=null&&g.path===I&&e.scrollTop!==g.scrollTop;if(j&&(e.scrollTop=g.scrollTop),(j||ee||te||k||O||v&&y&&d!==I&&!b&&Cs(e,L,s,Ct,Ot))&&D.current(),E){ne.current=I;return}if(!v){ne.current=I;return}if(o){ne.current=I;return}if(c&&!l){ne.current=I;return}if(r==null){l&&L>=0&&(Ts(e,L,s,Ct,Dt,u),D.current()),ne.current=I;return}(y||l||d===I||p===I||m?.path===I||g?.path===I||a==null||a!==I)&&(vs(r),d===I&&(je.current=null),p===I&&(Me.current=null),m?.path===I&&(Ne.current=null),g?.path===I&&(Pe.current=null),ie.current=!1,P.current=null),ne.current=I},[t,L,I,At,s,ct,lt,wt,Ct,f,dt,h,Ot,Dt,St]);let tn=L>=0&&L>=xt.visible.startIndex&&L<=xt.visible.endIndex,nn=I!=null&&Tt.some(e=>oc(e.row)===I),rn=tn||nn,an=Ze&&N.current===!0&&rn?I:null,on=Te===`pointer`?xe:null,sn=F?.path??Fe.current??on??an??xe,cn=F?.source===`right-click`;Ys(()=>{y.current&&F==null||Rt(rt(sn))},[F,rt,wt,Ct,De,Tt,sn,Rt,St]);let ln=Zs(e=>{if(y.current||Oc(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&Ee(e=>e===`pointer`?e:`pointer`),Se(e=>e===i?e:i)},[]),un=Zs(()=>{Se(null)},[]);Ys(()=>{if(!ft)return;let e=()=>{Jt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Jt(),t.cancelDrag()}},[t,ft]);let dn=e=>{if(!ft||t.getDragSession()==null||fe.current)return;let n=hc(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Yt(t.getDragSession()?.target??null),Xt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},fn=e=>{if(!ft||t.getDragSession()==null||fe.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Wt(),Kt(),t.setDragTarget(null))},pn=e=>{!ft||t.getDragSession()==null||fe.current||(e.preventDefault(),z(e.clientX,e.clientY),t.completeDrag(),Gt(),Wt(),Kt(),ue.current=null)},mn=xt.window.height,hn=xt.window.offsetTop,gn=Math.min(0,Ct-mn),_n=Math.min(0,Ct-mn-Ot),vn=ye===I||ie.current,yn=I!=null&&vn&&!At&&L>=0?St[L]??t.getVisibleRows(L,L)[0]??null:null,bn=yn==null?null:Es(L,s,wt,mn),xn=ue.current,Sn=_t!=null&&xn!=null&&xn.path===_t&&xn.index>=wt.start&&xn.index<=wt.end,Cn=_t!=null&&xn!=null&&xn.path===_t&&!Sn&&xn.path!==yn?.path?xn:null,wn=Cn==null?null:Es(Cn.index,s,wt,mn),Tn=wc((L>=0?St[L]??t.getVisibleRows(L,L)[0]??null:null)?.ancestorPaths.at(-1)??null),En=lt&&I!=null?zc(o,I,!At):void 0,Dn=F?.path??(lt?I:ye),On=F?.path??xe,kn=rt(sn),An=Ye&&Ze&&!cn&&!ct&&kn!=null&&Ce!=null&&sn!=null,jn=Ye&&(An||F!=null),Mn=F?.anchorRect,Nn=Mn==null&&kn!=null&&Ce!=null&&(F!=null||An)?Ce:null,Pn=Mn==null?Nn==null?void 0:{top:`${Nn}px`}:{left:`${Mn.left}px`,position:`fixed`,right:`auto`,top:`${Mn.top}px`},Fn=cn?{opacity:`0`}:void 0,In=Zs((e,n,r,i)=>{let a=As({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:lt,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c);break}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=xt.visible.startIndex&&n.index<=xt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(N.current=!0,be(e=>e===c?e:c),Ee(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&Vt(c,{targetOffset:`sticky-parents`})},[t,lt,xt.visible.endIndex,xt.visible.startIndex,Vt]),Ln=()=>{if(y.current||!Ze||sn==null||kn==null)return;let e=t.getItem(sn);e!=null&&(Rt(kn),Ft.current=!0,ke({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:kn.getAttribute(`aria-label`)??sn,path:e.getPath()},path:e.getPath(),source:`button`}))},Rn={contextHoverPath:On,contextMenuButtonTriggerEnabled:Ze,contextMenuButtonVisibility:Qe,contextMenuEnabled:Ye,contextMenuRightClickEnabled:$e,contextMenuTriggerMode:Xe,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:ft,draggedPathSet:mt,dragTarget:ht,gitLaneActive:it,gitStatusByPath:n,handleRowDragEnd:Qt,handleRowDragStart:Zt,handleRowTouchStart:$t,ignoredGitDirectories:r,ignoredInheritanceCache:_e,instanceId:o,itemHeight:s,onKeyDown:en,onRowClick:In,openContextMenuForRow:zt,registerButton:et,registerRenameInput:nt,renameView:ot,renderDecorationForRow:jt,resolveIcon:at,shouldSuppressContextMenu:Ht,visualFocusPath:Dn},zn={...Rn,registerButton:tt};return J(`div`,{ref:S,id:vt,"data-file-tree-context-menu-button-visibility":Ye&&Ze?Qe:void 0,"data-file-tree-context-menu-trigger-mode":Ye?Xe:void 0,"data-file-tree-has-context-menu-action-lane":Ye&&Ze?`true`:void 0,"data-file-tree-has-git-lane":it?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:ft?fn:void 0,onDragOver:ft?dn:void 0,onDrop:ft?pn:void 0,onKeyDown:en,onPointerLeave:Ye?un:void 0,onPointerOver:Ye?ln:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[J(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:Tn}}),J(`slot`,{name:ee,"data-type":`header-slot`}),f?J(`div`,{"data-file-tree-search-container":!0,"data-open":lt?`true`:`false`,children:J(`input`,{ref:w,"aria-activedescendant":En,"aria-controls":vt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Ve?`true`:void 0,value:ut,onBlur:()=>{d===`retain`&&!Ue.current||t.closeSearch()},onFocus:We,onPointerDown:We,onInput:e=>{We();let n=e.currentTarget;t.setSearch(n.value)}})}):null,J(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&qe&&Tt.length>0?J(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:J(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${yt}px`},children:Tt.map((e,t)=>Uc(zn,e.row,`sticky:${oc(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${Tt.length-t}`}}))})}):null,J(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${Dt}px`},children:[J(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${hn}px`}}),J(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${mn}px`,top:`${gn}px`,bottom:`${_n}px`},children:[Wc(Rn,wt,kt),yn!=null&&bn!=null?Uc(Rn,yn,`parked:${yn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:_t===yn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${bn}px`}}):null,Cn!=null&&wn!=null?Uc(Rn,Cn,`parked-drag:${Cn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${wn}px`}}):null]})]})]}),Ye?J(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":jn?`true`:`false`,style:Pn,children:[J(`button`,{ref:v,type:`button`,"data-type":te,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":F==null?`false`:`true`,"data-visible":An?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),F!=null){Lt();return}Ln()},tabIndex:-1,style:Fn,children:J(Vo,{...at(`file-tree-icon-ellipsis`)})}),F==null?null:J(`slot`,{name:O})]}):null,F==null?null:J(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Lt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Lt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var Kc={hydrateRoot:(e,t)=>{Io(fo(Gc,t),e)},renderRoot:(e,t)=>{Fo(fo(Gc,t),e)},unmountRoot:e=>{Fo(null,e)}};function qc(e,t){Kc.renderRoot(e,t)}function Jc(e,t){Kc.hydrateRoot(e,t)}function Yc(e){Kc.unmountRoot(e)}var Xc=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}},Zc,Q,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul={},dl=[],fl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pl=Array.isArray;function ml(e,t){for(var n in t)e[n]=t[n];return e}function hl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function gl(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Qc,__i:-1,__u:0};return i==null&&Q.vnode!=null&&Q.vnode(a),a}function _l(e){return e.children}function vl(e,t){this.props=e,this.context=t}function yl(e,t){if(t==null)return e.__?yl(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?yl(e):null}function bl(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=ml({},t);a.__v=t.__v+1,Q.vnode&&Q.vnode(a),jl(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??yl(t),!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,Nl(r,a,i),t.__e=t.__=null,a.__e!=n&&xl(a)}}function xl(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),xl(e)}function Sl(e){(!e.__d&&(e.__d=!0)&&$c.push(e)&&!Cl.__r++||el!=Q.debounceRendering)&&((el=Q.debounceRendering)||tl)(Cl)}function Cl(){try{for(var e,t=1;$c.length;)$c.length>t&&$c.sort(nl),e=$c.shift(),t=$c.length,bl(e)}finally{$c.length=Cl.__r=0}}function wl(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v=r&&r.__k||dl,y=t.length;for(c=Tl(n,t,v,c,y),d=0;d<y;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&v[p.__i]||ul,p.__i=d,g=jl(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Il(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),(_=!!(4&p.__u))||f.__k===p.__k?(c=El(p,c,e,_),_&&f.__e&&(f.__e=null)):typeof p.type==`function`&&g!==void 0?c=g:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=h,c}function Tl(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=gl(null,o,null,null,null):pl(o)?o=e.__k[a]=gl(_l,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=gl(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=Dl(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=yl(s)),Ll(s,s));return r}function El(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=El(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=yl(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Dl(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&(2&l.__u)==0;if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function Ol(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||fl.test(t)?n:n+`px`}function kl(e,t,n,r,i){var a,o;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||Ol(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||Ol(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(ol,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[al]=r[al]:(n[al]=sl,e.addEventListener(t,a?ll:cl,a)):e.removeEventListener(t,a?ll:cl,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function Al(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[il]==null)t[il]=sl++;else if(t[il]<n[al])return;return n(Q.event?Q.event(t):t)}}}function jl(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=Q.__b)&&u(t);n:if(typeof T==`function`)try{if(_=t.props,v=T.prototype&&T.prototype.render,y=(u=T.contextType)&&r[u.__c],b=u?y?y.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new T(_,b):(t.__c=d=new vl(_,b),d.constructor=T,d.render=Rl),y&&y.sub(d),d.state||={},d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),v&&d.__s==null&&(d.__s=d.state),v&&T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ml({},d.__s)),ml(d.__s,T.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=t,f)v&&T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),v&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(v&&T.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,b),t.__v==n.__v||!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(_,d.__s,b)){t.__v!=n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),dl.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&o.push(d);break n}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,b),v&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=b,d.props=_,d.__P=e,d.__e=!1,x=Q.__r,S=0,v)d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),dl.push.apply(d.__h,d._sb),d._sb=[];else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=ml(ml({},r),d.getChildContext())),v&&!f&&d.getSnapshotBeforeUpdate!=null&&(h=d.getSnapshotBeforeUpdate(p,m)),C=u!=null&&u.type===_l&&u.key==null?Pl(u.props.children):u,s=wl(e,pl(C)?C:[C],t,n,r,i,a,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||a!=null)if(e.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else{for(w=a.length;w--;)hl(a[w]);Ml(t)}else t.__e=n.__e,t.__k=n.__k,e.then||Ml(t);Q.__e(e,t,n)}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Fl(n.__e,t,n,r,i,a,o,c,l);return(u=Q.diffed)&&u(t),128&t.__u?void 0:s}function Ml(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Ml))}function Nl(e,t,n){for(var r=0;r<n.length;r++)Il(n[r],n[++r],n[++r]);Q.__c&&Q.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Q.__e(e,t.__v)}})}function Pl(e){return typeof e!=`object`||!e||e.__b>0?e:pl(e)?e.map(Pl):e.constructor===void 0?ml({},e):null}function Fl(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props||ul,_=t.props,v=t.type;if(v==`svg`?i=`http://www.w3.org/2000/svg`:v==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),s&&=(Q.__m&&Q.__m(t,a),!1),a=null}if(v==null)g===_||s&&e.data==_||(e.data=_);else{if(a=v==`textarea`&&_.defaultValue!=null?null:a&&Zc.call(e.childNodes),!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],l==`dangerouslySetInnerHTML`?d=p:l==`children`||l in _||l==`value`&&`defaultValue`in _||l==`checked`&&`defaultChecked`in _||kl(e,l,null,p,i);for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:s&&typeof p!=`function`||g[l]===p||kl(e,l,p,g[l],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),wl(t.type==`template`?e.content:e,pl(f)?f:[f],t,n,r,v==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&yl(n,0),s,c),a!=null)for(l=a.length;l--;)hl(a[l]);s&&v!=`textarea`||(l=`value`,v==`progress`&&m==null?e.removeAttribute(`value`):m!=null&&(m!==e[l]||v==`progress`&&!m||v==`option`&&m!=g[l])&&kl(e,l,m,g[l],i),l=`checked`,h!=null&&h!=e[l]&&kl(e,l,h,g[l],i))}return e}function Il(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){Q.__e(e,n)}}function Ll(e,t,n){var r,i;if(Q.unmount&&Q.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Il(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Q.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ll(r[i],t,n||typeof e.type!=`function`);n||hl(e.__e),e.__c=e.__=e.__e=void 0}function Rl(e,t,n){return this.constructor(e,n)}Zc=dl.slice,Q={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Qc=0,vl.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ml({},this.state);typeof e==`function`&&(e=e(ml({},n),this.props)),e&&ml(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Sl(this))},vl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Sl(this))},vl.prototype.render=_l,$c=[],tl=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nl=function(e,t){return e.__v.__b-t.__v.__b},Cl.__r=0,rl=Math.random().toString(8),il=`__d`+rl,al=`__a`+rl,ol=/(PointerCapture)$|Capture$/i,sl=0,cl=Al(!1),ll=Al(!0);var $=`__c`,zl=`__k`,Bl=`__d`,Vl=`__s`,Hl=/[\s\n\\/='"\0<>]/,Ul=/^(xlink|xmlns|xml)([A-Z])/,Wl=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,Gl=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,Kl=new Set([`draggable`,`spellcheck`]);function ql(e){e.__g===void 0?e[Bl]=!0:e.__g|=8}function Jl(e){e.__g===void 0?e[Bl]=!1:e.__g&=-9}function Yl(e){return e.__g===void 0?!0===e[Bl]:!!(8&e.__g)}var Xl=/["&<]/;function Zl(e){if(e.length===0||!1===Xl.test(e))return e;for(var t=0,n=0,r=``,i=``;n<e.length;n++){switch(e.charCodeAt(n)){case 34:i=`"`;break;case 38:i=`&`;break;case 60:i=`<`;break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=i,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var Ql={},$l=new Set(`animation-iteration-count.border-image-outset.border-image-slice.border-image-width.box-flex.box-flex-group.box-ordinal-group.column-count.fill-opacity.flex.flex-grow.flex-negative.flex-order.flex-positive.flex-shrink.flood-opacity.font-weight.grid-column.grid-row.line-clamp.line-height.opacity.order.orphans.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.widows.z-index.zoom`.split(`.`)),eu=/[A-Z]/g;function tu(e){var t=``;for(var n in e){var r=e[n];if(r!=null&&r!==``){var i=n[0]==`-`?n:Ql[n]||(Ql[n]=n.replace(eu,`-$&`).toLowerCase()),a=`;`;typeof r!=`number`||i.startsWith(`--`)||$l.has(i)||(a=`px;`),t=t+i+`:`+r+a}}return t||void 0}function nu(){this.__d=!0}function ru(e,t){return{__v:e,context:t,props:e.props,setState:nu,forceUpdate:nu,__d:!0,__h:[]}}function iu(e,t,n){if(!e.s){if(n instanceof au){if(!n.s)return void(n.o=iu.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(iu.bind(null,e,t),iu.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var au=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{iu(r,1,a(this.v))}catch(e){iu(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?iu(r,1,t?t(i):i):n?iu(r,1,n(i)):iu(r,2,i)}catch(e){iu(r,2,e)}},r},e}(),ou,su,cu,lu,uu={},du=Array.isArray,fu=Object.assign,pu=``,mu=`<!--$s-->`,hu=`<!--/$s-->`;function gu(e,t){var n,r=e.type,i=!0;return e[$]?(i=!1,(n=e[$]).state=n[Vl]):n=new r(e.props,t),e[$]=n,n.__v=e,n.props=e.props,n.context=t,ql(n),n.state??=uu,n[Vl]??(n[Vl]=n.state),r.getDerivedStateFromProps?n.state=fu({},n.state,r.getDerivedStateFromProps(n.props,n.state)):i&&n.componentWillMount?(n.componentWillMount(),n.state=n[Vl]===n.state?n.state:n[Vl]):!i&&n.componentWillUpdate&&n.componentWillUpdate(),cu&&cu(e),n.render(n.props,n.state,t)}function _u(e,t,n,r,i,a,o){if(e==null||!0===e||!1===e||e===pu)return pu;var s=typeof e;if(s!=`object`)return s==`function`?pu:s==`string`?Zl(e):e+pu;if(du(e)){var c,l=pu;i[zl]=e;for(var u=e.length,d=0;d<u;d++){var f=e[d];if(f!=null&&typeof f!=`boolean`){var p,m=_u(f,t,n,r,i,a,o);typeof m==`string`?l+=m:(c||=Array(u),l&&c.push(l),l=pu,du(m)?(p=c).push.apply(p,m):c.push(m))}}return c?(l&&c.push(l),c):l}if(e.constructor!==void 0)return pu;e.__=i,ou&&ou(e);var h=e.type,g=e.props;if(typeof h==`function`){var _,v,y,b=t;if(h===_l){if(`tpl`in g){for(var x=pu,S=0;S<g.tpl.length;S++)if(x+=g.tpl[S],g.exprs&&S<g.exprs.length){var C=g.exprs[S];if(C==null)continue;typeof C!=`object`||C.constructor!==void 0&&!du(C)?x+=C:x+=_u(C,t,n,r,e,a,o)}return x}if(`UNSTABLE_comment`in g)return`<!--`+Zl(g.UNSTABLE_comment)+`-->`;v=g.children}else{if((_=h.contextType)!=null){var w=t[_.__c];b=w?w.props.value:_.__}var T=h.prototype&&typeof h.prototype.render==`function`;if(T)v=gu(e,b),y=e[$];else{e[$]=y=ru(e,b);for(var E=0;Yl(y)&&E++<25;){Jl(y),cu&&cu(e);try{v=h.call(y,g,b)}catch(t){throw a&&t&&typeof t.then==`function`&&(e._suspended=!0),t}}ql(y)}if(y.getChildContext!=null&&(t=fu({},t,y.getChildContext())),T&&Q.errorBoundaries&&(h.getDerivedStateFromError||y.componentDidCatch)){v=v!=null&&v.type===_l&&v.key==null&&v.props.tpl==null?v.props.children:v;try{return _u(v,t,n,r,e,a,!1)}catch(i){return h.getDerivedStateFromError&&(y[Vl]=h.getDerivedStateFromError(i)),y.componentDidCatch&&y.componentDidCatch(i,uu),Yl(y)?(v=gu(e,t),(y=e[$]).getChildContext!=null&&(t=fu({},t,y.getChildContext())),_u(v=v!=null&&v.type===_l&&v.key==null&&v.props.tpl==null?v.props.children:v,t,n,r,e,a,o)):pu}finally{su&&su(e),lu&&lu(e)}}}v=v!=null&&v.type===_l&&v.key==null&&v.props.tpl==null?v.props.children:v;try{var D=_u(v,t,n,r,e,a,o);return su&&su(e),Q.unmount&&Q.unmount(e),e._suspended?typeof D==`string`?mu+D+hu:du(D)?(D.unshift(mu),D.push(hu),D):D.then(function(e){return mu+e+hu}):D}catch(i){if(!a&&o&&o.onError){var ee=function i(s){return o.onError(s,e,function(e,s){try{return _u(e,t,n,r,s,a,o)}catch(e){return i(e)}})}(i);if(ee!==void 0)return ee;var O=Q.__e;return O&&O(i,e),pu}if(!a||!i||typeof i.then!=`function`)throw i;return i.then(function i(){try{var s=_u(v,t,n,r,e,a,o);return e._suspended?mu+s+hu:s}catch(e){if(!e||typeof e.then!=`function`)throw e;return e.then(i)}})}}var te,k=`<`+h,A=pu;for(var j in g){var M=g[j];if(typeof(M=yu(M)?M.value:M)!=`function`||j===`class`||j===`className`){switch(j){case`children`:te=M;continue;case`key`:case`ref`:case`__self`:case`__source`:continue;case`htmlFor`:if(`for`in g)continue;j=`for`;break;case`className`:if(`class`in g)continue;j=`class`;break;case`defaultChecked`:j=`checked`;break;case`defaultSelected`:j=`selected`;break;case`defaultValue`:case`value`:switch(j=`value`,h){case`textarea`:te=M;continue;case`select`:r=M;continue;case`option`:r!=M||`selected`in g||(k+=` selected`)}break;case`dangerouslySetInnerHTML`:A=M&&M.__html;continue;case`style`:typeof M==`object`&&(M=tu(M));break;case`acceptCharset`:j=`accept-charset`;break;case`httpEquiv`:j=`http-equiv`;break;default:if(Ul.test(j))j=j.replace(Ul,`$1:$2`).toLowerCase();else{if(Hl.test(j))continue;j[4]!==`-`&&!Kl.has(j)||M==null?n?Gl.test(j)&&(j=j===`panose1`?`panose-1`:j.replace(/([A-Z])/g,`-$1`).toLowerCase()):Wl.test(j)&&(j=j.toLowerCase()):M+=pu}}M!=null&&!1!==M&&(k=!0===M||M===pu?k+` `+j:k+` `+j+`="`+(typeof M==`string`?Zl(M):M+pu)+`"`)}}if(Hl.test(h))throw Error(h+` is not a valid HTML tag name in `+k+`>`);if(A||(typeof te==`string`?A=Zl(te):te!=null&&!1!==te&&!0!==te&&(A=_u(te,t,h===`svg`||h!==`foreignObject`&&n,r,e,a,o))),su&&su(e),lu&&lu(e),!A&&vu.has(h))return k+`/>`;var N=`</`+h+`>`,ne=k+`>`;return du(A)?[ne].concat(A,[N]):typeof A==`string`?ne+A+N:[ne,A,N]}var vu=new Set([`area`,`base`,`br`,`col`,`command`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function yu(e){return typeof e==`object`&&!!e&&typeof e.peek==`function`&&`value`in e}var bu=0;function xu(e){return e!=null&&e.length>0?e:(bu+=1,`pst_ft_${bu}`)}function Su({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??gt)}function Cu(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function wu(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function Tu(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var Eu=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new Xc;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=xu(a),this.#p=Wa(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=ht(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new za({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(Yc(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){this.#t.resetPaths(e,t)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),qc(t.wrapper,this.#w()))}setGitStatus(e){this.#p=Wa(e,this.#p);let t=this.#T();t!=null&&qc(t.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),qc(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),Jc(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),qc(r,this.#w())}#C(){return{initialViewportHeight:Su({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(ee,e());return}this.#l.setSlotHtml(ee,this.#e?.header?.html??null)}#k(e){let t=Tu(e).find(e=>wu(e)),n=Cu(ut(pt(this.#m).set));n!=null&&(t!=null&&t.outerHTML===n.outerHTML||(t==null?e.prepend(n):t.replaceWith(n)))}#A(e){let t=Tu(e),n=t.find(e=>wu(e)),r=t.filter(e=>e!==n),i=pt(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=Cu(i);if(a==null){for(let e of r)e.remove();return}if(!(r.length===1&&r[0].outerHTML===a.outerHTML)){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=pt(this.#m);t.colored&&L(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${w}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}this.#g?.parentNode===e&&this.#_===this.#h||(this.#g??=document.createElement(`style`),this.#g.setAttribute(w,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=bt(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return Et(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}};function Du(e){let[t]=(0,y.useState)(()=>new Eu(e)),n=(0,y.useRef)({timeout:null,model:t});return(0,y.useEffect)(()=>{let{current:e}=n;return e.timeout!=null&&(clearTimeout(e.timeout),e.timeout=null),()=>{e.timeout=setTimeout(()=>e.model.cleanUp(),1)}},[]),{model:t}}function Ou(e){let t={boundPaths:new Set,expandedPaths:[],gitStatus:[],paths:[],selectedPaths:[]};return ku(e,``,t),t}function ku(e,t,n){let r=Au(t,e.name);n.paths.push(e.kind===`folder`?`${r}/`:r),e.kind===`folder`&&e.children?.length&&n.expandedPaths.push(r),(e.selected||e.active)&&n.selectedPaths.push(r),e.bound&&n.boundPaths.add(r),e.gitStatus&&n.gitStatus.push({path:r,status:e.gitStatus});for(let t of e.children??[])ku(t,r,n)}function Au(e,t){return e?`${e}/${t}`:t}function ju({root:e}){let t=(0,y.useMemo)(()=>Ou(e),[e]),{model:n}=Du({density:`compact`,flattenEmptyDirectories:!1,gitStatus:t.gitStatus,icons:{set:`minimal`,colored:!1},id:`march-project-tree`,initialExpandedPaths:t.expandedPaths,initialSelectedPaths:t.selectedPaths,paths:t.paths,renderRowDecoration:e=>t.boundPaths.has(e.item.path)?{text:`◆`,title:`Bound to session`}:null,search:!0});return(0,b.jsxs)(`aside`,{className:`panel left-panel`,"aria-label":`Projects`,children:[(0,b.jsxs)(`div`,{className:`projects-header`,children:[(0,b.jsx)(`h3`,{children:`Projects`}),(0,b.jsxs)(`button`,{className:`menu-button`,type:`button`,"aria-label":`Open project menu`,children:[(0,b.jsx)(`span`,{}),(0,b.jsx)(`span`,{}),(0,b.jsx)(`span`,{})]})]}),(0,b.jsx)(`div`,{className:`projects-body`,children:(0,b.jsx)(ne,{className:`project-tree-host`,model:n,"aria-label":`Project files`})})]})}function Mu({sessions:e,activity:t,fsEntries:n,fsPath:r,running:i,onOpenSession:a,onCreateSession:o,onBrowseRoots:s,onBrowsePath:c}){let[l,u]=(0,y.useState)(``),d=l.trim().length>0&&!i;async function f(e=l){let t=e.trim();!t||i||(await o(t),u(``))}return(0,b.jsxs)(`aside`,{className:`panel right-panel`,"aria-label":`Sessions`,children:[(0,b.jsx)(`div`,{className:`right-header`,children:`会话`}),(0,b.jsxs)(`div`,{className:`right-body`,children:[(0,b.jsxs)(`div`,{className:`workspace-picker`,"aria-label":`Workspace picker`,children:[(0,b.jsx)(`label`,{htmlFor:`workspace-path`,children:`Workspace`}),(0,b.jsxs)(`div`,{className:`workspace-input-row`,children:[(0,b.jsx)(`input`,{id:`workspace-path`,value:l,onChange:e=>u(e.target.value),placeholder:`Paste or browse a folder path`}),(0,b.jsx)(`button`,{type:`button`,disabled:!d,onClick:()=>f(),children:`Open`})]}),(0,b.jsx)(`div`,{className:`workspace-path`,children:r??`Roots`}),(0,b.jsx)(`button`,{type:`button`,className:`fs-row`,onClick:s,children:`↖ Roots`}),n.map(e=>(0,b.jsxs)(`div`,{className:`fs-entry-row`,children:[(0,b.jsx)(`button`,{type:`button`,onClick:()=>c(e.path),children:e.name}),(0,b.jsx)(`button`,{type:`button`,onClick:()=>f(e.path),children:`Open`})]},e.path))]}),(0,b.jsx)(`div`,{className:`right-divider`,children:`Sessions`}),e.map(e=>(0,b.jsxs)(`button`,{className:e.active?`session-row active`:`session-row`,type:`button`,onClick:()=>a(e.id),children:[(0,b.jsx)(`span`,{children:e.title}),(0,b.jsx)(`time`,{children:e.workspacePath??e.time})]},e.id)),(0,b.jsx)(`div`,{className:`right-divider`,children:`Activity`}),t.map(e=>(0,b.jsxs)(`button`,{className:`activity-row`,type:`button`,children:[(0,b.jsx)(`span`,{children:e.action}),(0,b.jsx)(`time`,{children:e.time})]},e.id))]})]})}function Nu(e){let t=[];for(let n of e){if(n.type===`tool_result`){let e=t.at(-1);if(e?.kind===`tool`&&e.tool===n.tool){e.summary=n.summary,e.status=n.status;continue}}t.push(Pu(n))}return t}function Pu(e){switch(e.type){case`user_message`:return{id:e.id,kind:`message`,actor:`user`,text:e.text,time:e.time};case`assistant_message`:return{id:e.id,kind:`message`,actor:`march`,text:e.text,time:e.time};case`assistant_thought`:return{id:e.id,kind:`thought`,title:e.title,text:e.text,status:e.status};case`tool_call`:return{id:e.id,kind:`tool`,tool:e.tool,target:e.target,status:e.status};case`tool_result`:return{id:e.id,kind:`tool`,tool:e.tool,target:`result`,status:e.status,summary:e.summary};case`file_diff`:return{id:e.id,kind:`diff`,path:e.path,lines:e.lines};case`terminal_output`:return{id:e.id,kind:`terminal`,command:e.command,output:e.output,status:e.status};case`permission_request`:return{id:e.id,kind:`permission`,title:e.title,detail:e.detail,status:e.status};case`error`:return{id:e.id,kind:`error`,message:e.message,detail:e.detail}}}function Fu({item:e}){return e.kind===`message`?(0,b.jsx)(Iu,{item:e}):(0,b.jsxs)(`article`,{className:`message-row assistant-turn`,children:[(0,b.jsx)(`div`,{className:`agent-dot march`,children:`M`}),(0,b.jsx)(`div`,{className:`message-body`,children:(0,b.jsx)(Lu,{item:e})})]})}function Iu({item:e}){return(0,b.jsxs)(`article`,{className:`message-row ${e.actor===`user`?`user-turn`:`assistant-turn`}`,children:[(0,b.jsx)(`div`,{className:e.actor===`user`?`agent-dot`:`agent-dot march`,children:e.actor===`user`?`U`:`M`}),(0,b.jsxs)(`div`,{className:`message-body`,children:[(0,b.jsx)(`p`,{children:e.text}),e.time?(0,b.jsx)(`time`,{children:e.time}):null]})]})}function Lu({item:e}){switch(e.kind){case`thought`:return(0,b.jsx)(Ru,{item:e});case`tool`:return(0,b.jsx)(zu,{item:e});case`diff`:return(0,b.jsx)(Bu,{item:e});case`terminal`:return(0,b.jsx)(Vu,{item:e});case`permission`:return(0,b.jsx)(Hu,{item:e});case`error`:return(0,b.jsx)(Uu,{item:e})}}function Ru({item:e}){return(0,b.jsxs)(`details`,{className:`timeline-aux thought-block`,open:e.status===`open`,children:[(0,b.jsxs)(`summary`,{children:[(0,b.jsx)(`span`,{children:`thinking`}),(0,b.jsx)(`strong`,{children:e.title})]}),(0,b.jsx)(`p`,{children:e.text})]})}function zu({item:e}){return(0,b.jsxs)(`details`,{className:`timeline-aux tool-block`,open:e.status!==`done`,children:[(0,b.jsxs)(`summary`,{children:[(0,b.jsx)(`span`,{children:e.tool}),(0,b.jsx)(`strong`,{children:e.target}),(0,b.jsx)(`em`,{children:e.status})]}),e.summary?(0,b.jsx)(`p`,{children:e.summary}):null]})}function Bu({item:e}){return(0,b.jsxs)(`div`,{className:`timeline-aux diff-block`,children:[(0,b.jsxs)(`div`,{className:`aux-title`,children:[(0,b.jsx)(`span`,{children:`diff`}),(0,b.jsx)(`strong`,{children:e.path})]}),(0,b.jsx)(`div`,{className:`diff-inline`,children:e.lines.map(e=>(0,b.jsx)(`div`,{className:`diff-line ${e.kind}`,children:e.text},`${e.kind}:${e.text}`))})]})}function Vu({item:e}){return(0,b.jsxs)(`details`,{className:`timeline-aux terminal-block`,open:e.status!==`done`,children:[(0,b.jsxs)(`summary`,{children:[(0,b.jsx)(`span`,{children:`terminal`}),(0,b.jsx)(`strong`,{children:e.command}),(0,b.jsx)(`em`,{children:e.status})]}),(0,b.jsx)(`pre`,{children:e.output})]})}function Hu({item:e}){return(0,b.jsxs)(`div`,{className:`timeline-aux permission-block ${e.status}`,children:[(0,b.jsxs)(`div`,{className:`aux-title`,children:[(0,b.jsx)(`span`,{children:`permission`}),(0,b.jsx)(`strong`,{children:e.title}),(0,b.jsx)(`em`,{children:e.status})]}),(0,b.jsx)(`p`,{children:e.detail})]})}function Uu({item:e}){return(0,b.jsxs)(`div`,{className:`timeline-aux error-block`,children:[(0,b.jsxs)(`div`,{className:`aux-title`,children:[(0,b.jsx)(`span`,{children:`error`}),(0,b.jsx)(`strong`,{children:e.message})]}),e.detail?(0,b.jsx)(`p`,{children:e.detail}):null]})}function Wu({items:e}){return(0,b.jsx)(`div`,{className:`timeline-list`,"aria-label":`Session events`,children:e.map(e=>(0,b.jsx)(Fu,{item:e},e.id))})}function Gu({timeline:e,connected:t,error:n}){let r=Nu(e.events);return(0,b.jsxs)(`main`,{className:`timeline`,"aria-label":`Agent timeline`,children:[(0,b.jsxs)(`div`,{className:`main-header`,children:[(0,b.jsx)(`span`,{children:`Session`}),(0,b.jsx)(`span`,{className:t?`runtime-pill connected`:`runtime-pill`,children:t?`runner`:`mock`})]}),(0,b.jsxs)(`div`,{className:`timeline-scroll`,children:[(0,b.jsxs)(`div`,{className:`session-title`,children:[(0,b.jsx)(`h1`,{children:e.title}),(0,b.jsx)(`span`,{children:n??e.meta})]}),(0,b.jsx)(Wu,{items:r})]})]})}function Ku({runtime:e}){let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(!1),{model:a}=e;return(0,b.jsxs)(`div`,{className:`app-shell`,"data-left-open":t,"data-right-open":r,children:[(0,b.jsx)(`div`,{className:`overlay`,onClick:()=>{n(!1),i(!1)}}),(0,b.jsx)(ju,{root:a.workspace}),(0,b.jsx)(Gu,{timeline:a.timeline,connected:e.connected,error:e.error}),(0,b.jsx)(Mu,{sessions:a.sessions,activity:a.activity,fsEntries:e.fsEntries,fsPath:e.fsPath,running:e.running,onOpenSession:e.openSession,onCreateSession:e.createSession,onBrowseRoots:e.browseRoots,onBrowsePath:e.browsePath}),(0,b.jsx)(x,{composer:a.composer,running:e.running,disabled:!a.activeSessionId,onSubmit:e.submitPrompt,onOpenLeft:()=>n(!0),onOpenRight:()=>i(!0)})]})}var qu={activeSessionId:`web-shell`,workspace:{id:`root`,name:`march-cli-standalone`,kind:`folder`,selected:!0,bound:!0,children:[{id:`src`,name:`src`,kind:`folder`,children:[{id:`web-ui`,name:`web-ui`,kind:`folder`,children:[{id:`app`,name:`App.tsx`,kind:`file`,active:!0,bound:!0,gitStatus:`modified`},{id:`model`,name:`model.ts`,kind:`file`},{id:`styles`,name:`styles.css`,kind:`file`}]}]},{id:`test`,name:`test`,kind:`folder`},{id:`agents`,name:`AGENTS.md`,kind:`file`},{id:`package`,name:`package.json`,kind:`file`,gitStatus:`modified`}]},timeline:{title:`Web shell`,meta:`mock adapter · fast`,events:[{id:`u1`,type:`user_message`,text:`参考 MindFS,做正式 Web UI。`,time:`09:41`},{id:`m1`,type:`assistant_message`,text:`先组件化,runtime 保持不变。`,time:`09:41`},{id:`th1`,type:`assistant_thought`,title:`Planning`,text:`把 runtime 事件先整理成 timeline item,再交给 UI 渲染。`,status:`closed`},{id:`t1`,type:`tool_call`,tool:`read`,target:`workspace`,status:`running`},{id:`tr1`,type:`tool_result`,tool:`read`,summary:`4 files inspected`,status:`done`},{id:`d1`,type:`file_diff`,path:`src/web-ui/src/model.ts`,lines:[{kind:`add`,text:`+ Timeline adapter model`},{kind:`keep`,text:` runtime adapter pending`}]},{id:`term1`,type:`terminal_output`,command:`npm run test:fast`,output:`PASS web-ui.smoke.mjs`,status:`done`},{id:`perm1`,type:`permission_request`,title:`Write files`,detail:`Edit local workspace source files`,status:`approved`}]},sessions:[{id:`web-shell`,title:`Web shell`,time:`now`,active:!0},{id:`memory`,title:`Memory`,time:`1d`}],activity:[{id:`read`,action:`read`,time:`now`},{id:`edit`,action:`edit`,time:`2m`},{id:`test`,action:`test`,time:`5m`}],composer:{mode:`Chat`,placeholder:`Message March…`}};function Ju(e,t){let n=[...e],r=`${t.type}:${n.length}:${Date.now()}`;switch(t.type){case`web_user_message`:return n.push({id:r,type:`user_message`,text:t.text,time:nd()}),n;case`text_delta`:return Yu(n,t.delta,r);case`thinking_start`:return n.push({id:r,type:`assistant_thought`,title:`Thinking`,text:``,status:`open`}),n;case`thinking_delta`:return Xu(n,t.delta,r);case`thinking_end`:return Zu(n);case`tool_start`:return n.push({id:r,type:`tool_call`,tool:t.name,target:ed(t.args),status:`running`}),n;case`tool_end`:return n.push({id:r,type:`tool_result`,tool:t.name,summary:td(t.result),status:t.isError?`failed`:`done`}),n;case`edit_diff`:return n.push({id:r,type:`file_diff`,path:t.path,lines:Qu(t.diffLines)}),n;case`permission_request`:return n.push({id:r,type:`permission_request`,title:t.toolName,detail:t.category??`permission`,status:`pending`}),n;case`status`:return n.push({id:r,type:`terminal_output`,command:`status`,output:t.text,status:`done`}),n;case`retry_start`:return n.push({id:r,type:`error`,message:`Retrying`,detail:t.errorMessage}),n;case`retry_end`:return!t.success&&t.finalError&&n.push({id:r,type:`error`,message:`Retry failed`,detail:t.finalError}),n;default:return n}}function Yu(e,t,n){let r=e.at(-1);return r?.type===`assistant_message`?r.text+=t:e.push({id:n,type:`assistant_message`,text:t,time:nd()}),e}function Xu(e,t,n){let r=e.at(-1);return r?.type===`assistant_thought`&&r.status===`open`?r.text+=t:e.push({id:n,type:`assistant_thought`,title:`Thinking`,text:t,status:`open`}),e}function Zu(e){let t=e.at(-1);return t?.type===`assistant_thought`&&(t.status=`closed`),e}function Qu(e=[]){return e.map(e=>({kind:$u(e.type),text:e.text??``}))}function $u(e){return e===`add`?`add`:e===`del`?`remove`:`keep`}function ed(e){return e==null?`running`:JSON.stringify(e).slice(0,160)}function td(e){return e==null?`done`:typeof e==`string`?e.slice(0,240):JSON.stringify(e).slice(0,240)}function nd(){return new Intl.DateTimeFormat(void 0,{hour:`2-digit`,minute:`2-digit`}).format(new Date)}async function rd(e){let t=await fetch(ld(`/api/snapshot`,{sessionId:e}));if(!t.ok)throw Error(await t.text());return t.json()}async function id(e){let t=await fetch(`/api/sessions`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({workspacePath:e})});if(!t.ok)throw Error(await t.text());return t.json()}async function ad(){let e=await fetch(`/api/fs/roots`);if(!e.ok)throw Error(await e.text());return(await e.json()).roots}async function od(e){let t=await fetch(ld(`/api/fs/list`,{path:e}));if(!t.ok)throw Error(await t.text());return(await t.json()).entries}async function sd(e,t){let n=await fetch(`/api/turn`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({sessionId:e,prompt:t})});if(!n.ok)throw Error(await n.text());return n.json()}function cd(e,t,n){let r=new EventSource(ld(`/api/events`,{sessionId:e}));return r.addEventListener(`runtime`,e=>{t(JSON.parse(e.data))}),r.onerror=n,()=>r.close()}function ld(e,t){let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r&&n.set(e,r);let r=n.toString();return r?`${e}?${r}`:e}function ud(){let[e,t]=(0,y.useState)(qu),[n,r]=(0,y.useState)(!1),[i,a]=(0,y.useState)(!1),[o,s]=(0,y.useState)(null),[c,l]=(0,y.useState)([]),[u,d]=(0,y.useState)(null),f=e.activeSessionId??null,p=(0,y.useRef)(new Map);(0,y.useEffect)(()=>{let e=!0;return rd().then(n=>{e&&(t(n),r(!0))}).catch(()=>r(!1)),ad().then(t=>e&&l(t)).catch(()=>{}),()=>{e=!1}},[]),(0,y.useEffect)(()=>{if(f)return cd(f,e=>{r(!0),t(t=>{let n=pd(t,t=>Ju(t,e));return fd(n,p.current),n})},()=>r(!1))},[f]);async function m(e){s(null),t(dd(await rd(e),p.current))}async function h(e){a(!0),s(null);try{let n=await id(e);t(n.snapshot),fd(n.snapshot,p.current)}catch(e){s(e instanceof Error?e.message:String(e))}finally{a(!1)}}async function g(){d(null),l(await ad())}async function _(e){d(e),l(await od(e))}async function v(e){if(!f){s(`Choose a workspace before sending a message`);return}a(!0),s(null);try{await sd(f,e)}catch(e){let n=e instanceof Error?e.message:String(e);s(n),t(e=>{let t=pd(e,e=>[...e,{id:`client-error:${Date.now()}`,type:`error`,message:n}]);return fd(t,p.current),t})}finally{a(!1)}}return{model:e,connected:n,running:i,error:o,fsEntries:c,fsPath:u,openSession:m,createSession:h,browseRoots:g,browsePath:_,submitPrompt:v}}function dd(e,t){let n=e.activeSessionId,r=n?t.get(n):null;return r?{...e,timeline:{...e.timeline,events:r}}:e}function fd(e,t){e.activeSessionId&&t.set(e.activeSessionId,e.timeline.events)}function pd(e,t){return{...e,timeline:{...e.timeline,events:t(e.timeline.events)}}}function md(){return(0,b.jsx)(Ku,{runtime:ud()})}(0,v.createRoot)(document.getElementById(`root`)).render((0,b.jsx)(y.StrictMode,{children:(0,b.jsx)(md,{})}));
|