903 lines
1.6 MiB
JavaScript
903 lines
1.6 MiB
JavaScript
|
|
var OU=Object.defineProperty;var _3=e=>{throw TypeError(e)};var IU=(e,t,n)=>t in e?OU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ec=(e,t,n)=>IU(e,typeof t!="symbol"?t+"":t,n),ax=(e,t,n)=>t.has(e)||_3("Cannot "+n);var K=(e,t,n)=>(ax(e,t,"read from private field"),n?n.call(e):t.get(e)),Pe=(e,t,n)=>t.has(e)?_3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),we=(e,t,n,r)=>(ax(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ze=(e,t,n)=>(ax(e,t,"access private method"),n);var Gp=(e,t,n,r)=>({set _(i){we(e,t,i,n)},get _(){return K(e,t,r)}});/*!
|
|||
|
|
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|||
|
|
* _ _ _ _
|
|||
|
|
* | |___ __ / \ __| |_ __ ___ (_)_ __
|
|||
|
|
* | __\ \/ / / _ \ / _` | '_ ` _ \| | '_ \
|
|||
|
|
* | |_ > < / ___ \ (_| | | | | | | | | | |
|
|||
|
|
* \__/_/\_\/_/ \_\__,_|_| |_| |_|_|_| |_|
|
|||
|
|
*
|
|||
|
|
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|||
|
|
* Author: André Tabarra (https://github.com/tabarra)
|
|||
|
|
* Repository: https://github.com/tabarra/txAdmin
|
|||
|
|
* txAdmin is a free open source software provided under the license below.
|
|||
|
|
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|||
|
|
* MIT License
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2019-2025 André Tabarra <maintainer@txadmin.gg>
|
|||
|
|
*
|
|||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|||
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|||
|
|
* in the Software without restriction, including without limitation the rights
|
|||
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|||
|
|
* furnished to do so, subject to the following conditions:
|
|||
|
|
*
|
|||
|
|
* The above copyright notice and this permission notice shall be included in all
|
|||
|
|
* copies or substantial portions of the Software.
|
|||
|
|
*
|
|||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|||
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|||
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||
|
|
* SOFTWARE.
|
|||
|
|
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|||
|
|
* This distribution also includes third party code under their own licenses, which
|
|||
|
|
* can be found in ../THIRD-PARTY-LICENSES.txt or their respective repositories.
|
|||
|
|
* Attribution for non-code assets can be found at the bottom of ../README.md or at
|
|||
|
|
* the top of the respective file.
|
|||
|
|
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|||
|
|
*/function $U(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jj={exports:{}},b0={},Dj={exports:{}},rt={};/**
|
|||
|
|
* @license React
|
|||
|
|
* react.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var tp=Symbol.for("react.element"),BU=Symbol.for("react.portal"),FU=Symbol.for("react.fragment"),zU=Symbol.for("react.strict_mode"),HU=Symbol.for("react.profiler"),WU=Symbol.for("react.provider"),UU=Symbol.for("react.context"),VU=Symbol.for("react.forward_ref"),qU=Symbol.for("react.suspense"),GU=Symbol.for("react.memo"),KU=Symbol.for("react.lazy"),b3=Symbol.iterator;function YU(e){return e===null||typeof e!="object"?null:(e=b3&&e[b3]||e["@@iterator"],typeof e=="function"?e:null)}var Lj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nj=Object.assign,Pj={};function $u(e,t,n){this.props=e,this.context=t,this.refs=Pj,this.updater=n||Lj}$u.prototype.isReactComponent={};$u.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")};$u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Oj(){}Oj.prototype=$u.prototype;function mS(e,t,n){this.props=e,this.context=t,this.refs=Pj,this.updater=n||Lj}var gS=mS.prototype=new Oj;gS.constructor=mS;Nj(gS,$u.prototype);gS.isPureReactComponent=!0;var w3=Array.isArray,Ij=Object.prototype.hasOwnProperty,vS={current:null},$j={key:!0,ref:!0,__self:!0,__source:!0};function Bj(e,t,n){var r,i={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Ij.call(t,r)&&!$j.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:tp,type:e,key:s,ref:a,props:i,_owner:vS.current}}function XU(e,t){return{$$typeof:tp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yS(e){return typeof e=="object"&&e!==null&&e.$$typeof===tp}function QU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var S3=/\/+/g;function lx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?QU(""+e.key):t.toString(36)}function Zm(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case tp:case BU:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+lx(a,0):r,w3(i)?(n="",e!=null&&(n=e.replace(S3,"$&/")+"/"),Zm(i,t,n,"",function(c){return c})):i!=null&&(yS(i)&&(i=XU(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(S3,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",w3(e))for(var o=0;o<e.length;o++){s=e[o];var l=r+lx(s,o);a+=Zm(s,t,n,l,i)}else if(l=YU(e),typeof l=="function")for(e=l.call(e),o=0;!(s=e.next()).done;)s=s.value,l=r+lx(s,o++),a+=Zm(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Kp(e,t,n){if(e==null)return e;var r=[],i=0;return Zm(e,r,"","",function(s){return t.call(n,s,i++)}),r}function JU(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dr={current:null},eg={transition:null},ZU={ReactCurrentDispatcher:dr,ReactCurrentBatchConfig:eg,ReactCurrentOwner:vS};function Fj(){throw Error("act(...) is not supported in production builds of React.")}rt.Children={map:Kp,forEach:function(e,t,n){Kp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Kp(e,function(){t++}),t},toArray:function(e){return Kp(e,function(t){return t})||[]},only:function(e){if(!yS(e))throw Error("React.Children.only expected to receive a sin
|
|||
|
|
* @license React
|
|||
|
|
* react-jsx-runtime.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var eV=w,tV=Symbol.for("react.element"),nV=Symbol.for("react.fragment"),rV=Object.prototype.hasOwnProperty,iV=eV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sV={key:!0,ref:!0,__self:!0,__source:!0};function Hj(e,t,n){var r,i={},s=null,a=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)rV.call(t,r)&&!sV.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:tV,type:e,key:s,ref:a,props:i,_owner:iV.current}}b0.Fragment=nV;b0.jsx=Hj;b0.jsxs=Hj;jj.exports=b0;var u=jj.exports;const oV=w.createContext(null),cx={didCatch:!1,error:null};class Wj extends w.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cx}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:s,reason:"imperative-api"}),this.setState(cx)}}componentDidCatch(t,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&aV(t.resetKeys,i)){var s,a;(s=(a=this.props).onReset)===null||s===void 0||s.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(cx)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:s,error:a}=this.state;let o=t;if(s){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")o=n(l);else if(r)o=w.createElement(r,l);else if(i!==void 0)o=i;else throw a}return w.createElement(oV.Provider,{value:{didCatch:s,error:a,resetErrorBoundary:this.resetErrorBoundary}},o)}}function aV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}var tb={},Uj={exports:{}},Vr={},Vj={exports:{}},qj={};/**
|
|||
|
|
* @license React
|
|||
|
|
* scheduler.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/(function(e){function t(O,A){var j=O.length;O.push(A);e:for(;0<j;){var F=j-1>>>1,H=O[F];if(0<i(H,A))O[F]=A,O[j]=H,j=F;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var A=O[0],j=O.pop();if(j!==A){O[0]=j;e:for(var F=0,H=O.length,B=H>>>1;F<B;){var G=2*(F+1)-1,Z=O[G],X=G+1,W=O[X];if(0>i(Z,j))X<H&&0>i(W,Z)?(O[F]=W,O[X]=j,F=X):(O[F]=Z,O[G]=j,F=G);else if(X<H&&0>i(W,j))O[F]=W,O[X]=j,F=X;else break e}}return A}function i(O,A){var j=O.sortIndex-A.sortIndex;return j!==0?j:O.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var l=[],c=[],h=1,d=null,f=3,m=!1,_=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(O){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=O)r(c),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(c)}}function b(O){if(v=!1,x(O),!_)if(n(l)!==null)_=!0,I(S);else{var A=n(c);A!==null&&z(b,A.startTime-O)}}function S(O,A){_=!1,v&&(v=!1,g(k),k=-1),m=!0;var j=f;try{for(x(A),d=n(l);d!==null&&(!(d.expirationTime>A)||O&&!M());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var H=F(d.expirationTime<=A);A=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),x(A)}else r(l);d=n(l)}if(d!==null)var B=!0;else{var G=n(c);G!==null&&z(b,G.startTime-A),B=!1}return B}finally{d=null,f=j,m=!1}}var C=!1,E=null,k=-1,T=5,R=-1;function M(){return!(e.unstable_now()-R<T)}function D(){if(E!==null){var O=e.unstable_now();R=O;var A=!0;try{A=E(!0,O)}finally{A?N():(C=!1,E=null)}}else C=!1}var N;if(typeof p=="function")N=function(){p(D)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,P=L.port2;L.port1.onmessage=D,N=function(){P.postMessage(null)}}else N=function(){y(D,0)};function I(O){E=O,C||(C=!0,N())}function z(O,A){k=y(function(){O(e.unstable_now())},A)}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(O){O.callback=null},e.unstable_continueExecution=function(){_||m||(_=!0,I(S))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var j=f;f=A;try{return O()}finally{f=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,A){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var j=f;f=O;try{return A()}finally{f=j}},e.unstable_scheduleCallback=function(O,A,j){var F=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?F+j:F):j=F,O){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=j+H,O={id:h++,callback:A,priorityLevel:O,startTime:j,expirationTime:H,sortIndex:-1},j>F?(O.sortIndex=j,t(c,O),n(l)===null&&O===n(c)&&(v?(g(k),k=-1):v=!0,z(b,j-F))):(O.sortIndex=H,t(l,O),_||m||(_=!0,I(S))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var A=f;return function(){var j=f;f=A;try{return O.apply(this,arguments)}finally{f=j}}}})(qj);Vj.exports=qj;var lV=Vj.exports;/**
|
|||
|
|
* @license React
|
|||
|
|
* react-dom.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var cV=w,Wr=lV;function pe(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 Gj=new Set,Yh={};function Rl(e,t){du(e,t),du(e+"Capture",t)}function du(e,t){for(Yh[e]=t,e=0;e<t.length;e++)Gj.add(t[e])}var Qs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nb=Object.prototype.hasOwnProperty,uV=/^[: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]*$/,C3={},k3={};function dV(e){return nb.call(k3,e)?!0:nb.call(C3,e)?!1:uV.test(e)?k3[e]=!0:(C3[e]=!0,!1)}function hV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fV(e,t,n,r){if(t===null||typeof t>"u"||hV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,n,r,i,s,a){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=s,this.removeEmptyString=a}var zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zn[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zn[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zn[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zn[e]=new hr(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){zn[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zn[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zn[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zn[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zn[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var xS=/[\-:]([a-z])/g;function _S(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
|
|||
|
|
`+ux+e}var dx=!1;function hx(e,t){if(!e||dx)return"";dx=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|||
|
|
`),s=r.stack.split(`
|
|||
|
|
`),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(a!==1||o!==1)do if(a--,o--,0>o||i[a]!==s[o]){var l=`
|
|||
|
|
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=o);break}}}finally{dx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ah(e):""}function pV(e){switch(e.tag){case 5:return ah(e.type);case 16:return ah("Lazy");case 13:return ah("Suspense");case 19:return ah("SuspenseList");case 0:case 2:case 15:return e=hx(e.type,!1),e;case 11:return e=hx(e.type.render,!1),e;case 1:return e=hx(e.type,!0),e;default:return""}}function ob(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 vc:return"Fragment";case gc:return"Portal";case rb:return"Profiler";case wS:return"StrictMode";case ib:return"Suspense";case sb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yj:return(e.displayName||"Context")+".Consumer";case Kj:return(e._context.displayName||"Context")+".Provider";case SS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case CS:return t=e.displayName||null,t!==null?t:ob(e.type)||"Memo";case bo:t=e._payload,e=e._init;try{return ob(e(t))}catch{}}return null}function mV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ob(t);case 8:return t===wS?"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 na(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gV(e){var t=Qj(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xp(e){e._valueTracker||(e._valueTracker=gV(e))}function Jj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qj(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ab(e,t){var n=t.checked;return rn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function T3(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=na(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zj(e,t){t=t.checked,t!=null&&bS(e,"checked",t,!1)}function lb(e,t){Zj(e,t);var n=na(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")?cb(e,t.type,n):t.hasOwnProperty("defaultValue")&&cb(e,t.type,na(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function R3(e,t,n){if(t.hasOwnProperty("val
|
|||
|
|
`).replace(Eq,"")}function im(e,t,n){if(t=Q3(t),Q3(e)!==t&&n)throw Error(pe(425))}function Wg(){}var Sb=null,Cb=null;function kb(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 Eb=typeof setTimeout=="function"?setTimeout:void 0,Tq=typeof clearTimeout=="function"?clearTimeout:void 0,J3=typeof Promise=="function"?Promise:void 0,Rq=typeof queueMicrotask=="function"?queueMicrotask:typeof J3<"u"?function(e){return J3.resolve(null).then(e).catch(Mq)}:Eb;function Mq(e){setTimeout(function(){throw e})}function kx(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),ef(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ef(t)}function Ko(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 Z3(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 Fu=Math.random().toString(36).slice(2),es="__reactFiber$"+Fu,of="__reactProps$"+Fu,Js="__reactContainer$"+Fu,Tb="__reactEvents$"+Fu,Aq="__reactListeners$"+Fu,jq="__reactHandles$"+Fu;function Ia(e){var t=e[es];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Js]||n[es]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Z3(e);e!==null;){if(n=e[es])return n;e=Z3(e)}return t}e=n,n=e.parentNode}return null}function ip(e){return e=e[es]||e[Js],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(pe(33))}function E0(e){return e[of]||null}var Rb=[],wc=-1;function ma(e){return{current:e}}function Yt(e){0>wc||(e.current=Rb[wc],Rb[wc]=null,wc--)}function Bt(e,t){wc++,Rb[wc]=e.current,e.current=t}var ra={},er=ma(ra),Cr=ma(!1),ol=ra;function hu(e,t){var n=e.type.contextTypes;if(!n)return ra;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function kr(e){return e=e.childContextTypes,e!=null}function Ug(){Yt(Cr),Yt(er)}function e4(e,t,n){if(er.current!==ra)throw Error(pe(168));Bt(er,t),Bt(Cr,n)}function z8(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(pe(108,mV(e)||"Unknown",i));return rn({},n,r)}function Vg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ra,ol=er.current,Bt(er,e),Bt(Cr,Cr.current),!0}function t4(e,t,n){var r=e.stateNode;if(!r)throw Error(pe(169));n?(e=z8(e,t,ol),r.__reactInternalMemoizedMergedChildContext=e,Yt(Cr),Yt(er),Bt(er,e)):Yt(Cr),Bt(Cr,n)}var Ns=null,T0=!1,Ex=!1;function H8(e){Ns===null?Ns=[e]:Ns.push(e)}function Dq(e){T0=!0,H8(e)}function ga(){if(!Ex&&Ns!==null){Ex=!0;var e=0,t=Ct;try{var n=Ns;for(Ct=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ns=null,T0=!1}catch(i){throw Ns!==null&&(Ns=Ns.slice(e+1)),f8(ES,ga),i}finally{Ct=t,Ex=!1}}return null}var Sc=[],Cc=0,qg=null,Gg=0,Qr=[],Jr=0,al=null,Bs=1,Fs="";function Ma(e,t){Sc[Cc++]=Gg,Sc[Cc++]=qg,qg=e,Gg=t}function W8(e,t,n){Qr[Jr++]=Bs,Qr[Jr++]=Fs,Qr[Jr++]=al,al=e;var r=Bs;e=Fs;var i=32-ji(r)-1;r&=~(1<<i),n+=1;var s=32-ji(t)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Bs=1<<32-ji(t)+i|n<<i|r,Fs=s+e}else Bs=1<<s|n<<i|r,Fs=e}function PS(e){e.return!==null&&(Ma(e,1),W8(e,1,0))}function OS(e){for(;e===qg;)qg=Sc[--Cc],Sc[Cc]=null,Gg=Sc[--Cc],Sc[Cc]=null;for(;e===al;)al=Qr[--Jr],Qr[Jr]=null,Fs=Qr[--Jr],Qr[Jr]=null,Bs=Qr[--Jr],Qr[Jr]=null}var Fr=null,Ir=null,Qt=!1,ki=null;function U8(e,t){var n=ii(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
|
|||
|
|
Error generating stack: `+s.message+`
|
|||
|
|
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function jx(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zq=typeof WeakMap=="function"?WeakMap:Map;function vD(e,t,n){n=Ks(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tv||(tv=!0,Ub=r),Nb(e,t)},n}function yD(e,t,n){n=Ks(-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(){Nb(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Nb(e,t),typeof r!="function"&&(Xo===null?Xo=new Set([this]):Xo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function d4(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zq;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=tG.bind(null,e,t,n),t.then(e,e))}function h4(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function f4(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=Ks(-1,1),t.tag=2,Yo(n,t,1))),n.lanes|=1),e)}var Hq=lo.ReactCurrentOwner,Sr=!1;function sr(e,t,n,r){t.child=e===null?G8(t,null,n,r):pu(t,e.child,n,r)}function p4(e,t,n,r,i){n=n.render;var s=t.ref;return Nc(t,i),r=GS(e,t,n,r,s,i),n=KS(),e!==null&&!Sr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,eo(e,t,i)):(Qt&&n&&PS(t),t.flags|=1,sr(e,t,r,i),t.child)}function m4(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!iC(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,xD(e,t,s,r,i)):(e=ug(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:nf,n(a,r)&&e.ref===t.ref)return eo(e,t,i)}return t.flags|=1,e=Jo(s,r),e.ref=t.ref,e.return=t,t.child=e}function xD(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(nf(s,r)&&e.ref===t.ref)if(Sr=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Sr=!0);else return t.lanes=e.lanes,eo(e,t,i)}return Pb(e,t,n,r,i)}function _D(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bt(Tc,Pr),Pr|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bt(Tc,Pr),Pr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Bt(Tc,Pr),Pr|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Bt(Tc,Pr),Pr|=r;return sr(e,t,i,n),t.child}function bD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pb(e,t,n,r,i){var s=kr(n)?ol:er.current;return s=hu(t,s),Nc(t,i),n=GS(e,t,n,r,s,i),r=KS(),e!==null&&!Sr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,eo(e,t,i)):(Qt&&r&&PS(t),t.flags|=1,sr(e,t,n,i),t.child)}function g4(e,t,n,r,i){if(kr(n)){var s=!0;Vg(t)}else s=!1;if(Nc(t,i),t.stateNode===null)ag(e,t),gD(t,n,r),Lb(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=ui(c):(c=kr(n)?ol:er.current,c=hu(t,c));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||l!==c)&&u4(t,a,r,c),wo=!1;var f=t.memoizedState;a.state=f,Xg(t,r,a,i),l=t.memoizedState,o!==r||f!==l||Cr.current||wo?(typeof h=="function"&&(Db(t,n,h,r),l=t.memoizedState),(o=wo||c4(t,n,o,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
|
|||
|
|
* @license React
|
|||
|
|
* use-sync-external-store-shim.production.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var yu=w;function gG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vG=typeof Object.is=="function"?Object.is:gG,yG=yu.useState,xG=yu.useEffect,_G=yu.useLayoutEffect,bG=yu.useDebugValue;function wG(e,t){var n=t(),r=yG({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return _G(function(){i.value=n,i.getSnapshot=t,Px(i)&&s({inst:i})},[e,n,t]),xG(function(){return Px(i)&&s({inst:i}),e(function(){Px(i)&&s({inst:i})})},[e]),bG(n),n}function Px(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vG(e,n)}catch{return!0}}function SG(e,t){return t()}var CG=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?SG:wG;GD.useSyncExternalStore=yu.useSyncExternalStore!==void 0?yu.useSyncExternalStore:CG;qD.exports=GD;var KD=qD.exports;const kG=zj.useInsertionEffect,EG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TG=EG?w.useLayoutEffect:w.useEffect,RG=kG||TG,YD=e=>{const t=w.useRef([e,(...n)=>t[0](...n)]).current;return RG(()=>{t[0]=e}),t[1]},MG="popstate",cC="pushState",uC="replaceState",AG="hashchange",A4=[MG,cC,uC,AG],jG=e=>{for(const t of A4)addEventListener(t,e);return()=>{for(const t of A4)removeEventListener(t,e)}},XD=(e,t)=>KD.useSyncExternalStore(jG,e,t),DG=()=>location.search,LG=({ssrSearch:e=""}={})=>XD(DG,()=>e),j4=()=>location.pathname,NG=({ssrPath:e}={})=>XD(j4,e?()=>e:j4),dC=(e,{replace:t=!1,state:n=null}={})=>history[t?uC:cC](n,"",e),PG=(e={})=>[NG(e),dC],D4=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[D4]>"u"){for(const e of[cC,uC]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,D4,{value:!0})}const OG=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",QD=(e="")=>e==="/"?"":e,IG=(e,t)=>e[0]==="~"?e.slice(1):QD(t)+e,$G=(e="",t)=>OG(L4(QD(e)),L4(t)),L4=e=>{try{return decodeURI(e)}catch{return e}},JD={hook:PG,searchHook:LG,parser:mG,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},ZD=w.createContext(JD),zu=()=>w.useContext(ZD),e7={},t7=w.createContext(e7),BG=()=>w.useContext(t7),I0=e=>{const[t,n]=e.hook(e);return[$G(e.base,t),YD((r,i)=>n(IG(r,e.base),i))]},va=()=>I0(zu()),hC=(e,t,n,r)=>{const{pattern:i,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),a=i.exec(n)||[],[o,...l]=a;return o!==void 0?[!0,(()=>{const c=s!==!1?Object.fromEntries(s.map((d,f)=>[d,l[f]])):a.groups;let h={...l};return c&&Object.assign(h,c),h})(),...r?[o]:[]]:[!1,null]},$0=e=>hC(zu().parser,e,va()[0]),FG=({children:e,...t})=>{var h,d;const n=zu(),r=t.hook?JD:n;let i=r;const[s,a]=((h=t.ssrPath)==null?void 0:h.split("?"))??[];a&&(t.ssrSearch=a,t.ssrPath=s),t.hrefs=t.hrefs??((d=t.hook)==null?void 0:d.hrefs);let o=w.useRef({}),l=o.current,c=l;for(let f in r){const m=f==="base"?r[f]+(t[f]||""):t[f]||r[f];l===c&&m!==c[f]&&(o.current=c={...c}),c[f]=m,m!==r[f]&&(i=c)}return w.createElement(ZD.Provider,{value:i,children:e})},N4=({children:e,component:t},n)=>t?w.createElement(t,{params:n}):typeof e=="function"?e(n):e,zG=e=>{let t=w.useRef(e7),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},Pa=({path:e,nest:t,match:n,...r})=>{const i=zu(),[s]=I0(i),[a,o,l]=n??hC(i.parser,e,s,t),c=zG({...BG(),...o});if(!a)return null;const h=l?w.createElement(FG,{base:l},N4(r,c)):N4(r,c);return w.createElement(t7.Provider,{value:c,children:h})},fs=w.forwardRef((e,t)=>{const n=zu(),[r,i]=I0(n),{to:s="",href:a=s,onClick:o,asChild:l,children:c,className:h,replace:d,state:f,...m}=e,_=YD(y=>{y.ctrlKey||y.metaKey||y.altKey||y.shiftKey||y.button!==0||(o==null||o(y),y.defaultPrevented||(y.preventDefault(),i(a,e)))}),v=n.hrefs(a[0]==="~"?a.slice(1):n.base+a,n);return l&&w.isValidElement(c)?w.cloneElement(c,{onClick:_,href:v}):w.createElement("a",{...m,onClick:_,href:v,className:h!=null&&h.call?h(r===a):h,children:c,ref:t})}),n7=e=>Array.isArray(e)?e.flatMap(t=>n7(t&&t.type===w.Fragment?t.props.children:t)):[e],r7=({children:e,location:t})=>{const n=zu(),[r]=I0(n);for(const
|
|||
|
|
`)).match(t);if(!n)return e;const r=n.reduce((s,a)=>Math.min(s,a.length),1/0),i=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(i,"")},br=(e,t=0)=>e.toLocaleString(window.txBrowserLocale,{maximumFractionDigits:t}),xC=e=>{const t={transports:["polling"],upgrade:!1,query:{rooms:e,uiVersion:window.txConsts.txaVersion}};return window.txConsts.isWebInterface?Lh({...t,path:"/socket.io"}):Lh("monitor",{...t,path:"/WebPipe/socket.io"})},C7=async(e,t)=>{const n=()=>navigator.clipboard.writeText(e),r=()=>{const i=document.createElement("textarea");i.value=e,t.appendChild(i),i.select();const s=document.execCommand("copy");return t.removeChild(i),s};if(window.txConsts.isWebInterface)try{return await n()}catch{return r()}else return r()},sv=e=>{if(e==="permanent")return"permanent";if(typeof e=="string")return e;const t=e.value===1?e.unit.slice(0,-1):e.unit;return`${e.value} ${t}`},pY=e=>{if(typeof e=="string")return e==="permanent"?"PERM":e;let t;return e.unit==="hours"?t="h":e.unit==="days"?t="d":e.unit==="weeks"?t="w":e.unit==="months"?t="mo":t=e.unit,`${e.value}${t}`},z0=w.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:J("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));z0.displayName="Card";const H0=w.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:J("flex flex-col space-y-1.5 p-6",e),...t}));H0.displayName="CardHeader";const _C=w.forwardRef(({className:e,...t},n)=>u.jsx("h3",{ref:n,className:J("text-2xl font-semibold leading-none tracking-tight",e),...t}));_C.displayName="CardTitle";const k7=w.forwardRef(({className:e,...t},n)=>u.jsx("p",{ref:n,className:J("text-sm text-muted-foreground",e),...t}));k7.displayName="CardDescription";const Uu=w.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:J("p-6 pt-0",e),...t}));Uu.displayName="CardContent";const Vu=w.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:J("flex items-center p-6 pt-0",e),...t}));Vu.displayName="CardFooter";var E7={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},H4=ft.createContext&&ft.createContext(E7),mY=["attr","size","title"];function gY(e,t){if(e==null)return{};var n=vY(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ov.apply(this,arguments)}function W4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function av(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W4(Object(n),!0).forEach(function(r){yY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yY(e,t,n){return t=xY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xY(e){var t=_Y(e,"string");return typeof t=="symbol"?t:t+""}function _Y(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T7(e){return e&&e.map((t,n)=>ft.createElement(t.tag,av({key:n},t.attr),T7(t.child)))}function R7(e){return t=>ft.createElement(bY,ov({attr:av({},e.attr)},t),T7(e.child))}function bY(e){var t=n=>{var{attr:r,size:i,title:s}=e,a=gY(e,mY),o=i||n.size||"1em",l;return n.className&&(l=n.className),e.clas
|
|||
|
|
font-mono text-muted-foreground text-xs text-red-800
|
|||
|
|
h-32 w-full`,children:e.error.stack})})]}),u.jsxs(Vu,{className:"flex flex-row justify-between",children:[e.resetButton,u.jsx(De,{asChild:!0,variant:"outline",className:"bg-discord hover:bg-discord-active animate-pulse hover:animate-none",children:u.jsx("a",{href:"http://discord.gg/txAdmin",target:"_blank",rel:"noopener noreferrer",children:"Support Discord"})})]})]})}let KY=0;function nt(e,t){const n=`atom${++KY}`,r={toString(){return n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=YY,r.write=XY),t&&(r.write=t),r}function YY(e){return e(this)}function XY(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const K4=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Y4=e=>"init"in e,X4=e=>!!e.write,dv=new WeakMap,rw=e=>{var t;return iw(e)&&!((t=dv.get(e))!=null&&t[1])},QY=(e,t)=>{const n=dv.get(e);n&&(n[1]=!0,n[0].forEach(r=>r(t)))},JY=e=>{if(dv.has(e))return;const t=[new Set,!1];dv.set(e,t);const n=()=>{t[1]=!0};e.then(n,n),e.onCancel=r=>{t[0].add(r)}},iw=e=>typeof(e==null?void 0:e.then)=="function",Q4=e=>"v"in e||"e"in e,pm=e=>{if("e"in e)throw e.e;return e.v},U7=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},J4=(e,t,n,r,i)=>{var s;n.d.set(r,i.n),rw(n.v)&&U7(t,n.v,i),(s=i.m)==null||s.t.add(t),e&&ZY(e,r,t)},Od=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),Nh=(e,t,n)=>{e[t].add(n)},Z4=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),Nh(e,"M",()=>{var r;(r=n.m)==null||r.l.forEach(i=>Nh(e,"M",i))}))},ZY=(e,t,n)=>{const r=e.D.get(t);r&&r.add(n)},eX=(e,t)=>e.D.get(t),Ta=e=>{let t,n=!1;const r=i=>{try{i()}catch(s){n||(t=s,n=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},V7=(...[e,t,n,r])=>{const i=(g,p,x)=>{const b="v"in p,S=p.v,C=rw(p.v)?p.v:null;if(iw(x)){JY(x);for(const E of p.d.keys())U7(g,x,e(E));p.v=x}else p.v=x;delete p.e,delete p.x,(!b||!Object.is(S,p.v))&&(++p.n,C&&QY(C,x))},s=(g,p)=>{var x;const b=e(p);if(Q4(b)&&(b.m&&!b.x||Array.from(b.d).every(([R,M])=>s(g,R).n===M)))return b;b.d.clear();let S=!0;const C=R=>{if(K4(p,R)){const D=e(R);if(!Q4(D))if(Y4(R))i(R,D,R.init);else throw new Error("no atom init");return pm(D)}const M=s(g,R);try{return pm(M)}finally{if(S)J4(g,p,b,R,M);else{const D=Od();J4(D,p,b,R,M),d(D,p,b),Ta(D)}}};let E,k;const T={get signal(){return E||(E=new AbortController),E.signal},get setSelf(){return!k&&X4(p)&&(k=(...R)=>{if(!S)return h(p,...R)}),k}};try{const R=t(p,C,T);if(i(p,b,R),iw(R)){(x=R.onCancel)==null||x.call(R,()=>E==null?void 0:E.abort());const M=()=>{if(b.m){const D=Od();d(D,p,b),Ta(D)}};R.then(M,M)}return b}catch(R){return delete b.v,b.e=R,delete b.x,++b.n,b}finally{S=!1}},a=g=>pm(s(void 0,g)),o=(g,p,x)=>{var b,S;const C=new Map;for(const E of((b=x.m)==null?void 0:b.t)||[]){const k=e(E);k.m&&C.set(E,k)}for(const E of x.p)C.set(E,e(E));return(S=eX(g,p))==null||S.forEach(E=>{C.set(E,e(E))}),C},l=(g,p,x)=>{const b=[],S=new Set,C=new Set,E=[[p,x]];for(;E.length>0;){const[k,T]=E[E.length-1];if(C.has(k)){E.pop();continue}if(S.has(k)){b.push([k,T,T.n]),C.add(k),T.x=!0,E.pop();continue}S.add(k);for(const[R,M]of o(g,k,T))k!==R&&!S.has(R)&&E.push([R,M])}Nh(g,"H",()=>{const k=new Set([p]);for(let T=b.length-1;T>=0;--T){const[R,M,D]=b[T];let N=!1;for(const L of M.d.keys())if(L!==R&&k.has(L)){N=!0;break}N&&(s(g,R),d(g,R,M),D!==M.n&&(Z4(g,R,M),k.add(R))),delete M.x}})},c=(g,p,...x)=>{let b=!0;const S=E=>pm(s(g,E)),C=(E,...k)=>{const T=e(E);try{if(K4(p,E)){if(!Y4(E))throw new Error("atom not writable");const R=T.n,M=k[0];i(E,T,M),d(g,E,T),R!==T.n&&(Z4(g,E,T),l(g,E,T));return}else return c(g,E,...k)}finally{b||Ta(g)}};try{return n(p,S,C,...x)}finally{b=!1}},h=(g,...p)=>{const x=Od();try{return c(x,g,...p)}finally{Ta(x)}},d=(g,p,x)=>{if(x.m&&!rw(x.v)){for(const b of x.d.keys())x.m.d.has(b)||(f(g,b,e(b)).t.add(p),x.m.d.add(b));for(const b of x.m.d||[])if(!x.d.has(b)){x.m.d.delete(b);const S=m(g,b,e(b));S==null||S.t.delete(p)}}},f=(g,p,x)=>{if(!x.m){s(g,p);for(const b of x.d.keys())f(g,b,e(b)).t.add(p);if(x.m={l:new Set,d:new Set(x.d.key
|
|||
|
|
`))),this.register(this._terminal.onA11yTab(C=>this._handleTab(C))),this.register(this._terminal.onKey(C=>this._handleKey(C.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,y.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,m.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(p){for(let x=0;x<p;x++)this._handleChar(" ")}_handleChar(p){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==p&&(this._charsToAnnounce+=p):this._charsToAnnounce+=p,p===`
|
|||
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(p){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(p)||this._charsToConsume.push(p)}_refreshRows(p,x){this._liveRegionDebouncer.refresh(p,x,this._terminal.rows)}_renderRows(p,x){const b=this._terminal.buffer,S=b.lines.length.toString();for(let C=p;C<=x;C++){const E=b.lines.get(b.ydisp+C),k=[],T=(E==null?void 0:E.translateToString(!0,void 0,void 0,k))||"",R=(b.ydisp+C+1).toString(),M=this._rowElements[C];M&&(T.length===0?(M.innerText=" ",this._rowColumns.set(M,[0,1])):(M.textContent=T,this._rowColumns.set(M,k)),M.setAttribute("aria-posinset",R),M.setAttribute("aria-setsize",S))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(p,x){const b=p.target,S=this._rowElements[x===0?1:this._rowElements.length-2];if(b.getAttribute("aria-posinset")===(x===0?"1":`${this._terminal.buffer.lines.length}`)||p.relatedTarget!==S)return;let C,E;if(x===0?(C=b,E=this._rowElements.pop(),this._rowContainer.removeChild(E)):(C=this._rowElements.shift(),E=b,this._rowContainer.removeChild(C)),C.removeEventListener("focus",this._topBoundaryFocusListener),E.removeEventListener("focus",this._bottomBoundaryFocusListener),x===0){const k=this._createAccessibilityTreeNode();this._rowElements.unshift(k),this._rowContainer.insertAdjacentElement("afterbegin",k)}else{const k=this._createAccessibilityTreeNode();this._rowElements.push(k),this._rowContainer.appendChild(k)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(x===0?-1:1),this._rowElements[x===0?1:this._rowElements.length-2].focus(),p.preventDefault(),p.stopImmediatePropagation()}_handleSelectionChange(){var T;if(this._rowElements.length===0)return;const p=document.getSelection();if(!p)return;if(p.isCollapsed)return void(this._rowContainer.contains(p.anchorNode)&&this._terminal.clearSelection());if(!p.anchorNode||!p.focusNode)return void console.error("anchorNode and/or focusNode are null");let x={node:p.anchorNode,offset:p.anchorOffset},b={node:p.focusNode,offset:p.focusOffset};if((x.node.compareDocumentPosition(b.node)&Node.DOCUMENT_POSITION_PRECEDING||x.node===b.node&&x.offset>b.offset)&&([x,b]=[b,x]),x.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(x={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(x.node))return;const S=this._rowElements.slice(-1)[0];if(b.node.compareDocumentPosition(S)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(b={node:S,offset:((T=S.textContent)==null?void 0:T.length)??0}),!this._rowContainer.contains(b.node))return;const C=({node:R,offset:M})=>{const D=R instanceof Text?R.parentNode:R;let N=parseInt(D==null?void 0:D.getAttribute("aria-posinset"),10)-1;if(isNaN(N))return console.warn("row is invalid. Race condition?"),null;const L=this._rowColumns.get(D);if(!L)return console.warn("columns is null. Race condition?"),null;let P=M<L.length?L[M]:L.slice(-1)[0]+1;return P>=this._terminal.cols&&(++N,P=0),{row:N,column:P}},E=C(x),k=C(b);if(E&&k){if(E.row>k.row||E.row===k.row&&E.column>=k.column)throw new Error("invalid range");this._terminal.select(E.column,E.row,(k.row-E.row)*this._terminal.cols-E.column+k.column)}}_handleResize(p){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let x=this._rowContainer.children.length;x<this._terminal.rows;x++)this._rowElements[x]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[x]);for(;this._rowElements.length>p;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length
|
|||
|
|
|
|||
|
|
WARNING: This link could potentially be dangerous`)){const g=window.open();if(g){try{g.opener=null}catch{}g.location.href=y}else console.warn("Opening link blocked as opener could not be cleared")}}o.OscLinkProvider=m=c([h(0,f.IBufferService),h(1,f.IOptionsService),h(2,f.IOscLinkService)],m)},6193:(a,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.RenderDebouncer=void 0,o.RenderDebouncer=class{constructor(l,c){this._renderCallback=l,this._coreBrowserService=c,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(l){return this._refreshCallbacks.push(l),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(l,c,h){this._rowCount=h,l=l!==void 0?l:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const l=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,c),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const l of this._refreshCallbacks)l(0);this._refreshCallbacks=[]}}},3236:(a,o,l)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Terminal=void 0;const c=l(3614),h=l(3656),d=l(3551),f=l(9042),m=l(3730),_=l(1680),v=l(3107),y=l(5744),g=l(2950),p=l(1296),x=l(428),b=l(4269),S=l(5114),C=l(8934),E=l(3230),k=l(9312),T=l(4725),R=l(6731),M=l(8055),D=l(8969),N=l(8460),L=l(844),P=l(6114),I=l(8437),z=l(2584),O=l(7399),A=l(5941),j=l(9074),F=l(2585),H=l(5435),B=l(4567),G=l(779);class Z extends D.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(W={}){super(W),this.browser=P,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new L.MutableDisposable),this._onCursorMove=this.register(new N.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new N.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new N.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new N.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new N.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new N.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new N.EventEmitter),this._onBlur=this.register(new N.EventEmitter),this._onA11yCharEmitter=this.register(new N.EventEmitter),this._onA11yTabEmitter=this.register(new N.EventEmitter),this._onWillOpen=this.register(new N.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(j.DecorationService),this._instantiationService.setService(F.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(G.LinkProviderService),this._instantiationService.setService(T.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(m.OscLinkProvider)),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows(($,V)=>this.refresh($,V))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onReque
|
|||
|
|
`:`
|
|||
|
|
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(k){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),g.isLinux&&k&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(k){const T=this._getMouseBufferCoords(k),R=this._model.finalSelectionStart,M=this._model.finalSelectionEnd;return!!(R&&M&&T)&&this._areCoordsInSelection(T,R,M)}isCellInSelection(k,T){const R=this._model.finalSelectionStart,M=this._model.finalSelectionEnd;return!(!R||!M)&&this._areCoordsInSelection([k,T],R,M)}_areCoordsInSelection(k,T,R){return k[1]>T[1]&&k[1]<R[1]||T[1]===R[1]&&k[1]===T[1]&&k[0]>=T[0]&&k[0]<R[0]||T[1]<R[1]&&k[1]===R[1]&&k[0]<R[0]||T[1]<R[1]&&k[1]===T[1]&&k[0]>=T[0]}_selectWordAtCursor(k,T){var D,N;const R=(N=(D=this._linkifier.currentLink)==null?void 0:D.link)==null?void 0:N.range;if(R)return this._model.selectionStart=[R.start.x-1,R.start.y-1],this._model.selectionStartLength=(0,p.getRangeLength)(R,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const M=this._getMouseBufferCoords(k);return!!M&&(this._selectWordAt(M,T),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(k,T){this._model.clearSelection(),k=Math.max(k,0),T=Math.min(T,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,k],this._model.selectionEnd=[this._bufferService.cols,T],this.refresh(),this._onSelectionChange.fire()}_handleTrim(k){this._model.handleTrim(k)&&this.refresh()}_getMouseBufferCoords(k){const T=this._mouseService.getCoords(k,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(T)return T[0]--,T[1]--,T[1]+=this._bufferService.buffer.ydisp,T}_getMouseEventScrollAmount(k){let T=(0,d.getCoordsRelativeToElement)(this._coreBrowserService.window,k,this._screenElement)[1];const R=this._renderService.dimensions.css.canvas.height;return T>=0&&T<=R?0:(T>R&&(T-=R),T=Math.min(Math.max(T,-50),50),T/=50,T/Math.abs(T)+Math.round(14*T))}shouldForceSelection(k){return g.isMac?k.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:k.shiftKey}handleMouseDown(k){if(this._mouseDownTimeStamp=k.timeStamp,(k.button!==2||!this.hasSelection)&&k.button===0){if(!this._enabled){if(!this.shouldForceSelection(k))return;k.stopPropagation()}k.preventDefault(),this._dragScrollAmount=0,this._enabled&&k.shiftKey?this._handleIncrementalClick(k):k.detail===1?this._handleSingleClick(k):k.detail===2?this._handleDoubleClick(k):k.detail===3&&this._handleTripleClick(k),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(k){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(k))}_handleSingleClick(k){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(k)?3:0,this._model.selectionStart=this._getMouseBufferCoords(k),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const T=this._bufferService.buffer.lines.get(this._model.selectionS
|
|||
|
|
`,d.VT="\v",d.FF="\f",d.CR="\r",d.SO="",d.SI="",d.DLE="",d.DC1="",d.DC2="",d.DC3="",d.DC4="",d.NAK="",d.SYN="",d.ETB="",d.CAN="",d.EM="",d.SUB="",d.ESC="\x1B",d.FS="",d.GS="",d.RS="",d.US="",d.SP=" ",d.DEL=""}(l||(o.C0=l={})),function(d){d.PAD="",d.HOP="",d.BPH="",d.NBH="",d.IND="",d.NEL="
",d.SSA="",d.ESA="",d.HTS="",d.HTJ="",d.VTS="",d.PLD="",d.PLU="",d.RI="",d.SS2="",d.SS3="",d.DCS="",d.PU1="",d.PU2="",d.STS="",d.CCH="",d.MW="",d.SPA="",d.EPA="",d.SOS="",d.SGCI="",d.SCI="",d.CSI="",d.ST="",d.OSC="",d.PM="",d.APC=""}(c||(o.C1=c={})),function(d){d.ST=`${l.ESC}\\`}(h||(o.C1_ESCAPED=h={}))},7399:(a,o,l)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.evaluateKeyboardEvent=void 0;const c=l(2584),h={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};o.evaluateKeyboardEvent=function(d,f,m,_){const v={type:0,cancel:!1,key:void 0},y=(d.shiftKey?1:0)|(d.altKey?2:0)|(d.ctrlKey?4:0)|(d.metaKey?8:0);switch(d.keyCode){case 0:d.key==="UIKeyInputUpArrow"?v.key=f?c.C0.ESC+"OA":c.C0.ESC+"[A":d.key==="UIKeyInputLeftArrow"?v.key=f?c.C0.ESC+"OD":c.C0.ESC+"[D":d.key==="UIKeyInputRightArrow"?v.key=f?c.C0.ESC+"OC":c.C0.ESC+"[C":d.key==="UIKeyInputDownArrow"&&(v.key=f?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:v.key=d.ctrlKey?"\b":c.C0.DEL,d.altKey&&(v.key=c.C0.ESC+v.key);break;case 9:if(d.shiftKey){v.key=c.C0.ESC+"[Z";break}v.key=c.C0.HT,v.cancel=!0;break;case 13:v.key=d.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,v.cancel=!0;break;case 27:v.key=c.C0.ESC,d.altKey&&(v.key=c.C0.ESC+c.C0.ESC),v.cancel=!0;break;case 37:if(d.metaKey)break;y?(v.key=c.C0.ESC+"[1;"+(y+1)+"D",v.key===c.C0.ESC+"[1;3D"&&(v.key=c.C0.ESC+(m?"b":"[1;5D"))):v.key=f?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(d.metaKey)break;y?(v.key=c.C0.ESC+"[1;"+(y+1)+"C",v.key===c.C0.ESC+"[1;3C"&&(v.key=c.C0.ESC+(m?"f":"[1;5C"))):v.key=f?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(d.metaKey)break;y?(v.key=c.C0.ESC+"[1;"+(y+1)+"A",m||v.key!==c.C0.ESC+"[1;3A"||(v.key=c.C0.ESC+"[1;5A")):v.key=f?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(d.metaKey)break;y?(v.key=c.C0.ESC+"[1;"+(y+1)+"B",m||v.key!==c.C0.ESC+"[1;3B"||(v.key=c.C0.ESC+"[1;5B")):v.key=f?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:d.shiftKey||d.ctrlKey||(v.key=c.C0.ESC+"[2~");break;case 46:v.key=y?c.C0.ESC+"[3;"+(y+1)+"~":c.C0.ESC+"[3~";break;case 36:v.key=y?c.C0.ESC+"[1;"+(y+1)+"H":f?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:v.key=y?c.C0.ESC+"[1;"+(y+1)+"F":f?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:d.shiftKey?v.type=2:d.ctrlKey?v.key=c.C0.ESC+"[5;"+(y+1)+"~":v.key=c.C0.ESC+"[5~";break;case 34:d.shiftKey?v.type=3:d.ctrlKey?v.key=c.C0.ESC+"[6;"+(y+1)+"~":v.key=c.C0.ESC+"[6~";break;case 112:v.key=y?c.C0.ESC+"[1;"+(y+1)+"P":c.C0.ESC+"OP";break;case 113:v.key=y?c.C0.ESC+"[1;"+(y+1)+"Q":c.C0.ESC+"OQ";break;case 114:v.key=y?c.C0.ESC+"[1;"+(y+1)+"R":c.C0.ESC+"OR";break;case 115:v.key=y?c.C0.ESC+"[1;"+(y+1)+"S":c.C0.ESC+"OS";break;case 116:v.key=y?c.C0.ESC+"[15;"+(y+1)+"~":c.C0.ESC+"[15~";break;case 117:v.key=y?c.C0.ESC+"[17;"+(y+1)+"~":c.C0.ESC+"[17~";break;case 118:v.key=y?c.C0.ESC+"[18;"+(y+1)+"~":c.C0.ESC+"[18~";break;case 119:v.key=y?c.C0.ESC+"[19;"+(y+1)+"~":c.C0.ESC+"[19~";break;case 120:v.key=y?c.C0.ESC+"[20;"+(y+1)+"~":c.C0.ESC+"[20~";break;case 121:v.key=y?c.C0.ESC+"[21;"+(y+1)+"~":c.C0.ESC+"[21~";break;case 122:v.key=y?c.C0.ESC+"[23;"+(y+1)+"~":c.C0.ESC+"[23~";break;case 123:v.key=y?c.C0.ESC+"[24;"+(y+1)+"~":c.C0.ESC+"[24~";break;default:if(!d.ctrlKey||d.shiftKey||d.altKey||d.metaKey)if(m&&!_||!d.altKey||d.metaKey)!m||d.altKey||d.ctrlKey||d.shiftKey||!d.metaKey?d.key&&!d.ctrlKey&&!d.altKey&&!d.metaKey&&d.keyCode>=48&&d.key.length===1?v.key=d.key:d.key&&d.ctrlKey&&(d.key==="_"&&(v.key=c.C0.US),d.key==="@"&&(v.key=c.C0.NUL)):d.keyCode===65&&(v.type=1);else{const g=h[d.keyCode],p=g==null?void 0:g[d.shiftKey?1:0];if(p)v.key
|
|||
|
|
`,p)}paste(g){this._core.paste(g)}refresh(g,p){this._verifyIntegers(g,p),this._core.refresh(g,p)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(g){this._addonManager.loadAddon(this,g)}static get strings(){return o}_verifyIntegers(...g){for(const p of g)if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...g){for(const p of g)if(p&&(p===1/0||isNaN(p)||p%1!=0||p<0))throw new Error("This API only accepts positive integers")}}a.Terminal=v})(),s})())})(sL);var aL=sL.exports,lL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(self,()=>(()=>{var n={903:(a,o,l)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.BaseRenderLayer=void 0;const c=l(274),h=l(627),d=l(237),f=l(860),m=l(374),_=l(296),v=l(345),y=l(859),g=l(399),p=l(855);class x extends y.Disposable{get canvas(){return this._canvas}get cacheCanvas(){var C;return(C=this._charAtlas)==null?void 0:C.pages[0].canvas}constructor(C,E,k,T,R,M,D,N,L,P){super(),this._terminal=C,this._container=E,this._alpha=R,this._themeService=M,this._bufferService=D,this._optionsService=N,this._decorationService=L,this._coreBrowserService=P,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._selectionModel=(0,_.createSelectionRenderModel)(),this._bitmapGenerator=[],this._charAtlasDisposable=this.register(new y.MutableDisposable),this._onAddTextureAtlasCanvas=this.register(new v.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._cellColorResolver=new c.CellColorResolver(this._terminal,this._optionsService,this._selectionModel,this._decorationService,this._coreBrowserService,this._themeService),this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add(`xterm-${k}-layer`),this._canvas.style.zIndex=T.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this._refreshCharAtlas(this._themeService.colors),this.register(this._themeService.onChangeColors(I=>{this._refreshCharAtlas(I),this.reset(),this.handleSelectionChanged(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)})),this.register((0,y.toDisposable)(()=>{this._canvas.remove()}))}_initCanvas(){this._ctx=(0,m.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(){}handleFocus(){}handleCursorMove(){}handleGridChanged(C,E){}handleSelectionChanged(C,E,k=!1){this._selectionModel.update(this._terminal._core,C,E,k)}_setTransparency(C){if(C===this._alpha)return;const E=this._canvas;this._alpha=C,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,E),this._refreshCharAtlas(this._themeService.colors),this.handleGridChanged(0,this._bufferService.rows-1)}_refreshCharAtlas(C){if(!(this._deviceCharWidth<=0&&this._deviceCharHeight<=0)){this._charAtlas=(0,h.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,C,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlasDisposable.value=(0,v.forwardEvent)(this._charAtlas.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),this._charAtlas.warmUp();for(let E=0;E<this._charAtlas.pages.length;E++)this._bitmapGenerator[E]=new b(this._charAtlas.pages[E].canvas)}}resize(C){this._deviceCellWidth=C.device.cell.width,this._deviceCellHeight=C.device.cell.height,this._deviceCharWidth=C.device.char.width,this._deviceCharHeight=C.device.char.height,this._deviceCharLeft=C.device.char.left,this._deviceCharTop=C.device.char.top,this._canvas.width=C.device.canvas.width,this._canvas.height=C.device.canvas.height,this._canvas.style.width=`${C.css.canvas.width}px`,this._canvas.style.height=`${C.css.canvas.height}px`,this._alpha||this._clearAll(),this._refreshCharAtlas(this._themeService.colors)}clearTextureAtlas(){var C;(C=this._charAtlas)==null||C.clearTexture()}_fillCells(C,E,k,T){this._ctx.
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const xX=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vL=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var _X={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const bX=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...o},l)=>w.createElement("svg",{ref:l,..._X,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vL("lucide",i),...o},[...a.map(([c,h])=>w.createElement(c,h)),...Array.isArray(s)?s:[s]]));/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const me=(e,t)=>{const n=w.forwardRef(({className:r,...i},s)=>w.createElement(bX,{ref:s,iconNode:t,className:vL(`lucide-${xX(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const wX=me("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const SX=me("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const CX=me("BellOff",[["path",{d:"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5",key:"o7mx20"}],["path",{d:"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7",key:"16f1lm"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const kX=me("BookMarked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const yL=me("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const EX=me("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const TX=me("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const RX=me("CaseSensitive",[["path",{d:"m3 15 4-8 4 8",key:"1vwr6u"}],["path",{d:"M4 13h6",key:"1r9ots"}],["circle",{cx:"18",cy:"12",r:"3",key:"1kchzo"}],["path",{d:"M21 9v6",key:"anns31"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const MX=me("ChartBar",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const AX=me("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const jX=me("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const LC=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Dl=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const xL=me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const NC=me("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const _L=me("ChevronsDown",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const sw=me("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const DX=me("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const LX=me("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const NX=me("CircleChevronRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const PX=me("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const OX=me("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const IX=me("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const bL=me("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const $X=me("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const BX=me("ClipboardPaste",[["path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z",key:"1pp7kr"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10",key:"2ik1ml"}],["path",{d:"m17 10 4 4-4 4",key:"vp2hj1"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const tT=me("CloudDownload",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const FX=me("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const zX=me("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const HX=me("Dna",[["path",{d:"m10 16 1.5 1.5",key:"11lckj"}],["path",{d:"m14 8-1.5-1.5",key:"1ohn8i"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const fv=me("DoorOpen",[["path",{d:"M13 4h3a2 2 0 0 1 2 2v14",key:"hrm0s9"}],["path",{d:"M2 20h3",key:"1gaodv"}],["path",{d:"M13 20h9",key:"s90cdi"}],["path",{d:"M10 12v.01",key:"vx6srw"}],["path",{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z",key:"199qr4"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const dl=me("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const WX=me("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const UX=me("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const VX=me("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const qX=me("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const GX=me("FilterX",[["path",{d:"M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055",key:"1fi1da"}],["path",{d:"m22 3-5 5",key:"12jva0"}],["path",{d:"m17 3 5 5",key:"k36vhe"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const wL=me("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const KX=me("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const pv=me("Gavel",[["path",{d:"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8",key:"15492f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m9 7 8 8",key:"5jnvq1"}],["path",{d:"m21 11-8-8",key:"z4y7zo"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const YX=me("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const XX=me("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const SL=me("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const PC=me("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const QX=me("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const JX=me("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const ZX=me("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const mv=me("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const sn=me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const eQ=me("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const tQ=me("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const nQ=me("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const nT=me("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const rQ=me("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const iQ=me("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const sQ=me("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const oQ=me("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const CL=me("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const aQ=me("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const lQ=me("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const cQ=me("PersonStanding",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const OC=me("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const uQ=me("PowerOff",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const dQ=me("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const hQ=me("Regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const ow=me("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const fQ=me("Scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const pQ=me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const IC=me("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const mQ=me("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const kL=me("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const EL=me("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const TL=me("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const RL=me("Skull",[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const gQ=me("SquareActivity",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const vQ=me("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const yQ=me("SquareUserRound",[["path",{d:"M18 21a6 6 0 0 0-12 0",key:"kaz2du"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const xQ=me("StarOff",[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",key:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const _Q=me("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const bQ=me("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const wQ=me("TimerOff",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7",key:"10he05"}],["path",{d:"M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2",key:"15f7sh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M12 12v-2",key:"fwoke6"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const ML=me("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const AL=me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const SQ=me("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const CQ=me("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const gv=me("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const $C=me("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const rT=me("UserRoundPlus",[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M22 19h-6",key:"vcuq98"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const jL=me("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const BC=me("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const kQ=me("WholeWord",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ar=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|||
|
|
* @license lucide-react v0.447.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const EQ=me("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),wt=w.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:J("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","bg-black/5 dark:bg-black/30 placeholder:opacity-50",e),ref:r,...n}));wt.displayName="Input";var TQ="Label",Ph=w.forwardRef((e,t)=>u.jsx(Ee.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ph.displayName=TQ;var DL=Ph;const RQ=co("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Tn=w.forwardRef(({className:e,...t},n)=>u.jsx(DL,{ref:n,className:J(RQ(),e),...t}));Tn.displayName=DL.displayName;var qu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hl=typeof window>"u"||"Deno"in globalThis;function Kr(){}function MQ(e,t){return typeof e=="function"?e(t):e}function aw(e){return typeof e=="number"&&e>=0&&e!==1/0}function LL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ic(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){return typeof e=="function"?e(t):e}function iT(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==FC(a,t.options))return!1}else if(!ff(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||s&&!s(t))}function sT(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(fl(t.options.mutationKey)!==fl(s))return!1}else if(!ff(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function FC(e,t){return((t==null?void 0:t.queryKeyHashFn)||fl)(e)}function fl(e){return JSON.stringify(e,(t,n)=>lw(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ff(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ff(e[n],t[n])):!1}function NL(e,t){if(e===t)return e;const n=oT(e)&&oT(t);if(n||lw(e)&&lw(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),a=s.length,o=n?[]:{};let l=0;for(let c=0;c<a;c++){const h=n?c:s[c];(!n&&r.includes(h)||n)&&e[h]===void 0&&t[h]===void 0?(o[h]=void 0,l++):(o[h]=NL(e[h],t[h]),o[h]===e[h]&&e[h]!==void 0&&l++)}return i===a&&l===i?e:o}return t}function vv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function oT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lw(e){if(!aT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!aT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function aT(e){return Object.prototype.toString.call(e)==="[object Object]"}function AQ(e){return new Promise(t=>{setTimeout(t,e)})}function cw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NL(e,t):t}function jQ(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function DQ(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zC=Symbol();function PL(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===zC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.
|
|||
|
|
`,yT="/",xT="*",Oa="",HJ="comment",WJ="declaration",UJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(_){var v=_.match(NJ);v&&(n+=v.length);var y=_.lastIndexOf(zJ);r=~y?_.length-y:r+_.length}function s(){var _={line:n,column:r};return function(v){return v.position=new a(_),c(),v}}function a(_){this.start=_,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function o(_){var v=new Error(t.source+":"+n+":"+r+": "+_);if(v.reason=_,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(_){var v=_.exec(e);if(v){var y=v[0];return i(y),e=e.slice(y.length),v}}function c(){l(PJ)}function h(_){var v;for(_=_||[];v=d();)v!==!1&&_.push(v);return _}function d(){var _=s();if(!(yT!=e.charAt(0)||xT!=e.charAt(1))){for(var v=2;Oa!=e.charAt(v)&&(xT!=e.charAt(v)||yT!=e.charAt(v+1));)++v;if(v+=2,Oa===e.charAt(v-1))return o("End of comment missing");var y=e.slice(2,v-2);return r+=2,i(y),e=e.slice(v),r+=2,_({type:HJ,comment:y})}}function f(){var _=s(),v=l(OJ);if(v){if(d(),!l(IJ))return o("property missing ':'");var y=l($J),g=_({type:WJ,property:_T(v[0].replace(vT,Oa)),value:y?_T(y[0].replace(vT,Oa)):Oa});return l(BJ),g}}function m(){var _=[];h(_);for(var v;v=f();)v!==!1&&(_.push(v),h(_));return _}return c(),m()};function _T(e){return e?e.replace(FJ,Oa):Oa}var VJ=is&&is.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dN,"__esModule",{value:!0});var bT=dN.default=GJ,qJ=VJ(UJ);function GJ(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,qJ.default)(e),i=typeof t=="function";return r.forEach(function(s){if(s.type==="declaration"){var a=s.property,o=s.value;i?t(a,o,s):o&&(n=n||{},n[a]=o)}}),n}const KJ=bT.default||bT,hN=fN("end"),QC=fN("start");function fN(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function YJ(e){const t=QC(e),n=hN(e);if(t&&n)return{start:t,end:n}}function Oh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wT(e.position):"start"in e||"end"in e?wT(e):"line"in e||"column"in e?Cw(e):""}function Cw(e){return ST(e&&e.line)+":"+ST(e&&e.column)}function wT(e){return Cw(e&&e.start)+"-"+Cw(e&&e.end)}function ST(e){return e&&typeof e=="number"?e:1}class tr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=Oh(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}tr.prototype.file="";tr.prototype.name="";tr.prototype.reason="";tr.prototype.message="";tr.prototype.stack="";tr.prototype.column=void 0;tr.prototype.line=void 0;tr.prototype.ancestors=void 0;tr.prototype.cause=void 0;tr.prototype.fatal=void 0;tr.prototype.place=void 0;tr.prototype.ruleId=void 0;tr.prototype.source=void 0;const JC={}.hasOwnProperty,XJ=new Map,QJ=/[A-Z]/g,JJ=/-([a-z])/g,ZJ=new Set(["table","tbody","thead","tfoot","tr"]),eZ=new Set(["td","th"]),pN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tZ(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options")
|
|||
|
|
`;break}case-3:{a=`\r
|
|||
|
|
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function pte(e){const r={constructs:bZ([ute,...(e||{}).extensions||[]]),content:i(MZ),defined:[],document:i(jZ),flow:i(Yee),lazy:{},string:i(Jee),text:i(Zee)};return r;function i(s){return a;function a(o){return dte(r,s,o)}}}function mte(e){for(;!SN(e););return e}const NT=/[\0\t\n\r]/g;function gte(){let e=1,t="",n=!0,r;return i;function i(s,a,o){const l=[];let c,h,d,f,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),d=0,t="",n&&(s.charCodeAt(0)===65279&&d++,n=void 0);d<s.length;){if(NT.lastIndex=d,c=NT.exec(s),f=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(f),!c){t=s.slice(d);break}if(m===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(s.slice(d,f)),e+=f-d),m){case 0:{l.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,l.push(-2);e++<h;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const vte=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yte(e){return e.replace(vte,xte)}function xte(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return xN(n.slice(s?2:1),s?16:10)}return t5(n)||e}const MN={}.hasOwnProperty;function _te(e,t,n){return typeof t!="string"&&(n=t,t=void 0),bte(n)(mte(pte(n).document().write(gte()(e,t,!0))))}function bte(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ae),autolinkProtocol:T,autolinkEmail:T,atxHeading:s(ce),blockQuote:s(U),characterEscape:T,characterReference:T,codeFenced:s(Q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(Q,a),codeText:s(q,a),codeTextData:T,data:T,codeFlowValue:T,definition:s(ie),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(re),hardBreakEscape:s(ye),hardBreakTrailing:s(ye),htmlFlow:s(le,a),htmlFlowData:T,htmlText:s(le,a),htmlTextData:T,image:s(Re),label:a,link:s(Ae),listItem:s(Ce),listItemValue:f,listOrdered:s(_e,d),listUnordered:s(_e),paragraph:s(oe),reference:B,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(ce),strong:s(te),thematicBreak:s(ue)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:V,autolinkProtocol:$,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:X,characterReference:W,codeFenced:l(y),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:_,codeFlowValue:R,codeIndented:l(g),codeText:l(P),codeTextData:R,data:R,definition:l(),definitionDestinationString:b,definitionLabelString:p,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(N),htmlFlowData:R,htmlText:l(L),htmlTextData:R,image:l(z),label:A,labelText:O,lineEnding:M,link:l(I),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:G,resourceDestinationString:j,resourceTitleString:F,resource:H,setextHeading:l(k),setextHeadingLineSequence:E,setextHeadingText:C,strong:l(),thematicBreak:l()}};AN(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Y){let ne={type:"root",children:[]};const ae={stack:[ne],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:h,data:n},he=[];let be=-1;for(;++be<Y.length;)if(Y[be][1].type==="listOrdered"||Y[be][1].type==="listUnordered")if(Y[be][0]==="enter")he.push(be);else{const ve=he.pop();be=i(Y,ve,be)}for(be=-1;++be<Y.length;){const ve=t[Y[be][0]];MN.call(ve,Y[be][1].type)&&ve[Y[be][1].type].call(Object.assign({sliceSerialize:Y[be][2].sliceSerialize},ae),Y[be][1])}if(ae.tokenStack.length>0){const ve=ae.tokenStack[ae.tokenStack.length-1];(ve[1]||PT).call(ae,void 0,ve[0])}for(ne.position={start:vo(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:vo(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<t.transforms.length;)ne=t.transforms[be](ne)||ne;return ne}fu
|
|||
|
|
`}]}function Ete(e,t){const n=t.value?t.value+`
|
|||
|
|
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Tte(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rte(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mte(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Yu(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function Ate(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jte(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jN(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Dte(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jN(e,t);const i={src:Yu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Lte(e,t){const n={src:Yu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Nte(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Pte(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jN(e,t);const i={href:Yu(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Ote(e,t){const n={href:Yu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ite(e,t,n){const r=e.all(t),i=n?$te(n):DN(t),s={},a=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const h=r[o];(i||o!==0||h.type!=="element"||h.tagName!=="p")&&a.push({type:"text",value:`
|
|||
|
|
`}),h.type==="element"&&h.tagName==="p"&&!i?a.push(...h.children):a.push(h)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
|||
|
|
`});const c={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,c),e.applyData(t,c)}function $te(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=DN(n[r])}return t}function DN(e){const t=e.spread;return t??e.children.length>1}function Bte(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Fte(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zte(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Hte(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wte(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=QC(t.children[1]),l=hN(t.children[t.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Ute(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const d=t.children[l],f={},m=a?a[l]:void 0;m&&(f.align=m);let _={type:"element",tagName:s,properties:f,children:[]};d&&(_.children=e.all(d),e.patch(d,_),_=e.applyData(d,_)),c.push(_)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function Vte(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const OT=9,IT=32;function qte(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push($T(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push($T(t.slice(i),i>0,!1)),s.join("")}function $T(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===OT||s===IT;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===OT||s===IT;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Gte(e,t){const n={type:"text",value:qte(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Kte(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Yte={blockquote:Cte,break:kte,code:Ete,delete:Tte,emphasis:Rte,footnoteReference:Mte,heading:Ate,html:jte,imageReference:Dte,image:Lte,inlineCode:Nte,linkReference:Pte,link:Ote,listItem:Ite,list:Bte,paragraph:Fte,root:zte,strong:Hte,table:Wte,tableCell:Vte,tableRow:Ute,text:Gte,thematicBreak:Kte,toml:gm,yaml:gm,definition:gm,footnoteDefinition:gm};function gm(){}const LN=-1,i1=0,xv=1,_v=2,i5=3,s5=4,o5=5,a5=6,NN=7,PN=8,BT=typeof self=="object"?self:globalThis,Xte=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case i1:case LN:return n(a,i);case xv:{const o=n([],i);for(const l of a)o.push(r(l));return o}case _v:{const o=n({},i);for(const[l,c]of a)o[r(l)]=r(c);return o}case i5:return n(new Date(a),i);case s5:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case o5:{const o=n(new Map,i);for(const[l,c]of a)o.set(r(l),r(c));return o}case a5:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case NN:{const{name:o,message:l}=a;return n(new BT[o](l),i)}case PN:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new BT[s](a),i)};return r},FT=e=>Xte(new Map,e)(0),nc="",{toString:Qte}={},{keys:Jte}=Object,$d=e=>{const t=typeof e;if(t!=="object
|
|||
|
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|||
|
|
`}]}}const ON=function(e){if(e==null)return one;if(typeof e=="function")return s1(e);if(typeof e=="object")return Array.isArray(e)?rne(e):ine(e);if(typeof e=="string")return sne(e);throw new Error("Expected function, string, or object as test")};function rne(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ON(e[n]);return s1(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function ine(e){const t=e;return s1(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function sne(e){return s1(t);function t(n){return n&&n.type===e}}function s1(e){return t;function t(n,r,i){return!!(ane(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function one(){return!0}function ane(e){return e!==null&&typeof e=="object"&&"type"in e}const IN=[],lne=!0,HT=!1,cne="skip";function une(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=ON(i),a=r?-1:1;o(e,void 0,[])();function o(l,c,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=IN,_,v,y;if((!t||s(l,c,h[h.length-1]||void 0))&&(m=dne(n(l,h)),m[0]===HT))return m;if("children"in l&&l.children){const g=l;if(g.children&&m[0]!==cne)for(v=(r?g.children.length:-1)+a,y=h.concat(g);v>-1&&v<g.children.length;){const p=g.children[v];if(_=o(p,v,y)(),_[0]===HT)return _;v=typeof _[1]=="number"?_[1]:v+a}}return m}}}function dne(e){return Array.isArray(e)?e:typeof e=="number"?[lne,e]:e==null?IN:[e]}function $N(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),une(e,s,o,i);function o(l,c){const h=c[c.length-1],d=h?h.children.indexOf(l):void 0;return a(l,d,h)}}const Rw={}.hasOwnProperty,hne={};function fne(e,t){const n=t||hne,r=new Map,i=new Map,s=new Map,a={...Yte,...n.handlers},o={all:c,applyData:mne,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:l,options:n,patch:pne,wrap:vne};return $N(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:i,f=String(h.identifier).toUpperCase();d.has(f)||d.set(f,h)}}),o;function l(h,d){const f=h.type,m=o.handlers[f];if(Rw.call(o.handlers,f)&&m)return m(o,h,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in h){const{children:v,...y}=h,g=bv(y);return g.children=o.all(h),g}return bv(h)}return(o.options.unknownHandler||gne)(o,h,d)}function c(h){const d=[];if("children"in h){const f=h.children;let m=-1;for(;++m<f.length;){const _=o.one(f[m],h);if(_){if(m&&f[m-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=WT(_.value)),!Array.isArray(_)&&_.type==="element")){const v=_.children[0];v&&v.type==="text"&&(v.value=WT(v.value))}Array.isArray(_)?d.push(..._):d.push(_)}}}return d}}function pne(e,t){e.position&&(t.position=YJ(e))}function mne(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,bv(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function gne(e,t){const n=t.data||{},r="value"in t&&!(Rw.call(n,"hProperties")||Rw.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vne(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|||
|
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|||
|
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|||
|
|
`}),n}function WT(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function UT(e,t){const n=fne(e,t),r=n.one(e,void 0),i=nne(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
|
|||
|
|
`},i),s}function yne(e,t){return e&&"run"in e?async function(n,r){const i=UT(n,{file:r,...t});await e.run(i,r)}:function(n,r){return UT(n,{file:r,...e||t})}}function VT(e){if(e)throw e}var gg=Object.prototype.hasOwnProperty,BN=Object.prototype.toString,qT=Object.defineProperty,GT=Object.getOwnPropertyDescriptor,KT=function(t){return typeof Array.isArray=="function"?Array.isArray(t):BN.call(t)==="[object Array]"},YT=function(t){if(!t||BN.call(t)!=="[object Object]")return!1;var n=gg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&gg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||gg.call(t,i)},XT=function(t,n){qT&&n.name==="__proto__"?qT(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},QT=function(t,n){if(n==="__proto__")if(gg.call(t,n)){if(GT)return GT(t,n).value}else return;return t[n]},xne=function e(){var t,n,r,i,s,a,o=arguments[0],l=1,c=arguments.length,h=!1;for(typeof o=="boolean"&&(h=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=QT(o,n),i=QT(t,n),o!==i&&(h&&i&&(YT(i)||(s=KT(i)))?(s?(s=!1,a=r&&KT(r)?r:[]):a=r&&YT(r)?r:{},XT(o,{name:n,newValue:e(h,a,i)})):typeof i<"u"&&XT(o,{name:n,newValue:i}));return o};const Gx=Nn(xne);function Mw(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _ne(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...c){const h=e[++s];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,h?bne(h,o)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function bne(e,t){let n;return r;function r(...a){const o=e.length>a.length;let l;o&&a.push(i);try{l=e.apply(this,a)}catch(c){const h=c;if(o&&n)throw h;return i(h)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(a,...o){n||(n=!0,t(a,...o))}function s(a){i(null,a)}}const Gi={basename:wne,dirname:Sne,extname:Cne,join:kne,sep:"/"};function wne(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dp(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Sne(e){if(dp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cne(e){dp(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function kne(...e){let t=-1,n;for(;++t<e.length;)dp(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ene(n)}function Ene(e){dp(e);const t=e.codePointAt(0)===47;let n=Tne(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Tne(e,t){let n="",r=0,i=-1,s=0,a=-1,o,l;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.l
|
|||
|
|
`))})}let qne={data:""},Gne=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||qne,Kne=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yne=/\/\*[^]*?\*\/| +/g,iR=/\n+/g,To=(e,t)=>{let n="",r="",i="";for(let s in e){let a=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+a+";":r+=s[1]=="f"?To(a,s):s+"{"+To(a,s[1]=="k"?"":t)+"}":typeof a=="object"?r+=To(a,t?t.replace(/([^,])+/g,o=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,o):o?o+" "+l:l)):s):a!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=To.p?To.p(s,a):s+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ms={},zN=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+zN(e[n]);return t}return e},Xne=(e,t,n,r,i)=>{let s=zN(e),a=Ms[s]||(Ms[s]=(l=>{let c=0,h=11;for(;c<l.length;)h=101*h+l.charCodeAt(c++)>>>0;return"go"+h})(s));if(!Ms[a]){let l=s!==e?e:(c=>{let h,d,f=[{}];for(;h=Kne.exec(c.replace(Yne,""));)h[4]?f.shift():h[3]?(d=h[3].replace(iR," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][h[1]]=h[2].replace(iR," ").trim();return f[0]})(e);Ms[a]=To(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let o=n&&Ms.g?Ms.g:null;return n&&(Ms.g=Ms[a]),((l,c,h,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=h?l+c.data:c.data+l)})(Ms[a],t,r,o),a},Qne=(e,t,n)=>e.reduce((r,i,s)=>{let a=t[s];if(a&&a.call){let o=a(n),l=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=l?"."+l:o&&typeof o=="object"?o.props?"":To(o,""):o===!1?"":o}return r+i+(a??"")},"");function o1(e){let t=this||{},n=e.call?e(t.p):e;return Xne(n.unshift?n.raw?Qne(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Gne(t.target),t.g,t.o,t.k)}let HN,jw,Dw;o1.bind({g:1});let to=o1.bind({k:1});function Jne(e,t,n,r){To.p=t,HN=e,jw=n,Dw=r}function xa(e,t){let n=this||{};return function(){let r=arguments;function i(s,a){let o=Object.assign({},s),l=o.className||i.className;n.p=Object.assign({theme:jw&&jw()},o),n.o=/ *go\d+/.test(l),o.className=o1.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=o.as||e,delete o.as),Dw&&c[0]&&Dw(o),HN(c,o)}return i}}var Zne=e=>typeof e=="function",wv=(e,t)=>Zne(e)?e(t):e,ere=(()=>{let e=0;return()=>(++e).toString()})(),WN=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),tre=20,UN=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,tre)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return UN(e,{type:e.toasts.find(s=>s.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},vg=[],yg={toasts:[],pausedAt:void 0},Nl=e=>{yg=UN(yg,e),vg.forEach(t=>{t(yg)})},nre={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},rre=(e={})=>{let[t,n]=w.useState(yg);w.useEffect(()=>(vg.push(n),()=>{let i=vg.indexOf(n);i>-1&&vg.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var s,a,o;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((s=e[i.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||nre[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},ire=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||ere()}),hp=e=>(t,n)=>{let r=ire(t,e,n);return Nl({type:2,toast:r}),r.id},or=(e,t)=>hp("blank")(e,t);or.error=hp("error");or.success=hp("success");or.loading=hp("loading");or.custom=hp
|
|||
|
|
from {
|
|||
|
|
transform: scale(0) rotate(45deg);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
transform: scale(1) rotate(45deg);
|
|||
|
|
opacity: 1;
|
|||
|
|
}`,dre=to`
|
|||
|
|
from {
|
|||
|
|
transform: scale(0);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
transform: scale(1);
|
|||
|
|
opacity: 1;
|
|||
|
|
}`,hre=to`
|
|||
|
|
from {
|
|||
|
|
transform: scale(0) rotate(90deg);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
transform: scale(1) rotate(90deg);
|
|||
|
|
opacity: 1;
|
|||
|
|
}`,fre=xa("div")`
|
|||
|
|
width: 20px;
|
|||
|
|
opacity: 0;
|
|||
|
|
height: 20px;
|
|||
|
|
border-radius: 10px;
|
|||
|
|
background: ${e=>e.primary||"#ff4b4b"};
|
|||
|
|
position: relative;
|
|||
|
|
transform: rotate(45deg);
|
|||
|
|
|
|||
|
|
animation: ${ure} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|||
|
|
forwards;
|
|||
|
|
animation-delay: 100ms;
|
|||
|
|
|
|||
|
|
&:after,
|
|||
|
|
&:before {
|
|||
|
|
content: '';
|
|||
|
|
animation: ${dre} 0.15s ease-out forwards;
|
|||
|
|
animation-delay: 150ms;
|
|||
|
|
position: absolute;
|
|||
|
|
border-radius: 3px;
|
|||
|
|
opacity: 0;
|
|||
|
|
background: ${e=>e.secondary||"#fff"};
|
|||
|
|
bottom: 9px;
|
|||
|
|
left: 4px;
|
|||
|
|
height: 2px;
|
|||
|
|
width: 12px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
&:before {
|
|||
|
|
animation: ${hre} 0.15s ease-out forwards;
|
|||
|
|
animation-delay: 180ms;
|
|||
|
|
transform: rotate(90deg);
|
|||
|
|
}
|
|||
|
|
`,pre=to`
|
|||
|
|
from {
|
|||
|
|
transform: rotate(0deg);
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
transform: rotate(360deg);
|
|||
|
|
}
|
|||
|
|
`,mre=xa("div")`
|
|||
|
|
width: 12px;
|
|||
|
|
height: 12px;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
border: 2px solid;
|
|||
|
|
border-radius: 100%;
|
|||
|
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|||
|
|
border-right-color: ${e=>e.primary||"#616161"};
|
|||
|
|
animation: ${pre} 1s linear infinite;
|
|||
|
|
`,gre=to`
|
|||
|
|
from {
|
|||
|
|
transform: scale(0) rotate(45deg);
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
transform: scale(1) rotate(45deg);
|
|||
|
|
opacity: 1;
|
|||
|
|
}`,vre=to`
|
|||
|
|
0% {
|
|||
|
|
height: 0;
|
|||
|
|
width: 0;
|
|||
|
|
opacity: 0;
|
|||
|
|
}
|
|||
|
|
40% {
|
|||
|
|
height: 0;
|
|||
|
|
width: 6px;
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
100% {
|
|||
|
|
opacity: 1;
|
|||
|
|
height: 10px;
|
|||
|
|
}`,yre=xa("div")`
|
|||
|
|
width: 20px;
|
|||
|
|
opacity: 0;
|
|||
|
|
height: 20px;
|
|||
|
|
border-radius: 10px;
|
|||
|
|
background: ${e=>e.primary||"#61d345"};
|
|||
|
|
position: relative;
|
|||
|
|
transform: rotate(45deg);
|
|||
|
|
|
|||
|
|
animation: ${gre} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|||
|
|
forwards;
|
|||
|
|
animation-delay: 100ms;
|
|||
|
|
&:after {
|
|||
|
|
content: '';
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
animation: ${vre} 0.2s ease-out forwards;
|
|||
|
|
opacity: 0;
|
|||
|
|
animation-delay: 200ms;
|
|||
|
|
position: absolute;
|
|||
|
|
border-right: 2px solid;
|
|||
|
|
border-bottom: 2px solid;
|
|||
|
|
border-color: ${e=>e.secondary||"#fff"};
|
|||
|
|
bottom: 6px;
|
|||
|
|
left: 6px;
|
|||
|
|
height: 10px;
|
|||
|
|
width: 6px;
|
|||
|
|
}
|
|||
|
|
`,xre=xa("div")`
|
|||
|
|
position: absolute;
|
|||
|
|
`,_re=xa("div")`
|
|||
|
|
position: relative;
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: center;
|
|||
|
|
align-items: center;
|
|||
|
|
min-width: 20px;
|
|||
|
|
min-height: 20px;
|
|||
|
|
`,bre=to`
|
|||
|
|
from {
|
|||
|
|
transform: scale(0.6);
|
|||
|
|
opacity: 0.4;
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
transform: scale(1);
|
|||
|
|
opacity: 1;
|
|||
|
|
}`,wre=xa("div")`
|
|||
|
|
position: relative;
|
|||
|
|
transform: scale(0.6);
|
|||
|
|
opacity: 0.4;
|
|||
|
|
min-width: 20px;
|
|||
|
|
animation: ${bre} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|||
|
|
forwards;
|
|||
|
|
`,Sre=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?w.createElement(wre,null,t):t:n==="blank"?null:w.createElement(_re,null,w.createElement(mre,{...r}),n!=="loading"&&w.createElement(xre,null,n==="error"?w.createElement(fre,{...r}):w.createElement(yre,{...r})))},Cre=e=>`
|
|||
|
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|||
|
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|||
|
|
`,kre=e=>`
|
|||
|
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|||
|
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|||
|
|
`,Ere="0%{opacity:0;} 100%{opacity:1;}",Tre="0%{opacity:1;} 100%{opacity:0;}",Rre=xa("div")`
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
background: #fff;
|
|||
|
|
color: #363636;
|
|||
|
|
line-height: 1.3;
|
|||
|
|
will-change: transform;
|
|||
|
|
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|||
|
|
max-width: 350px;
|
|||
|
|
pointer-events: auto;
|
|||
|
|
padding: 8px 10px;
|
|||
|
|
border-radius: 8px;
|
|||
|
|
`,Mre=xa("div")`
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: center;
|
|||
|
|
margin: 4px 10px;
|
|||
|
|
color: inherit;
|
|||
|
|
flex: 1 1 auto;
|
|||
|
|
white-space: pre-line;
|
|||
|
|
`,Are=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=WN()?[Ere,Tre]:[Cre(n),kre(n)];return{animation:t?`${to(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${to(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},jre=w.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?Are(e.position||t||"top-center",e.visible):{opacity:0},s=w.createElement(Sre,{toast:e}),a=w.createElement(Mre,{...e.ariaProps},wv(e.message,e));return w.createElement(Rre,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:s,message:a}):w.createElement(w.Fragment,null,s,a))});Jne(w.createElement);var Dre=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let s=w.useCallback(a=>{if(a){let o=()=>{let l=a.getBoundingClientRect().height;r(e,l)};o(),new MutationObserver(o).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return w.createElement("div",{ref:s,className:t,style:n},i)},Lre=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:WN()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Nre=o1`
|
|||
|
|
z-index: 9999;
|
|||
|
|
> * {
|
|||
|
|
pointer-events: auto;
|
|||
|
|
}
|
|||
|
|
`,xm=16,Pre=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:a})=>{let{toasts:o,handlers:l}=cre(n);return w.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:xm,left:xm,right:xm,bottom:xm,pointerEvents:"none",...s},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},o.map(c=>{let h=c.position||t,d=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),f=Lre(h,d);return w.createElement(Dre,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?Nre:"",style:f},c.type==="custom"?wv(c.message,c):i?i(c):w.createElement(jre,{toast:c,position:h}))}))},Sv=or;const Ore=["default","loading","info","success","warning","error"],Ire=co(`max-w-xl w-full sm:w-auto sm:min-w-[28rem] relative overflow-hidden z-40
|
|||
|
|
p-3 pr-10 flex items-center justify-between space-x-4
|
|||
|
|
rounded-xl border shadow-lg transition-all pointer-events-none
|
|||
|
|
text-black/75 dark:text-white/90`,{variants:{type:{default:"dark:border-primary/25 bg-white dark:bg-secondary dark:text-secondary-foreground",loading:"dark:border-primary/25 bg-white dark:bg-secondary dark:text-secondary-foreground",info:"border-info/70 bg-info-hint",success:"border-success/70 bg-success-hint",warning:"border-warning/70 bg-warning-hint",error:"border-destructive/70 bg-destructive-hint"}},defaultVariants:{type:"default"}}),$re={default:u.jsx(NX,{className:"stroke-muted-foreground animate-toastbar-icon"}),loading:u.jsx(sn,{className:"animate-spin"}),info:u.jsx(PC,{className:"stroke-info animate-toastbar-icon"}),success:u.jsx(LX,{className:"stroke-success animate-toastbar-icon"}),warning:u.jsx(DX,{className:"stroke-warning animate-toastbar-icon"}),error:u.jsx(oQ,{className:"stroke-destructive animate-toastbar-icon"})},Bre=({t:e,type:t,data:n})=>{const[r,i]=w.useState(0);return w.useEffect(()=>{let s=null;const a=()=>{s&&clearInterval(s)};return t==="loading"&&e.visible?s=setInterval(()=>{i(o=>o+1)},1e3):s&&a(),a},[t,e.visible]),u.jsxs("div",{className:J(Ire({type:t}),e.visible?"animate-toastbar-enter":"animate-toastbar-leave"),children:[u.jsx("div",{className:"flex-shrink-0 flex flex-col gap-2 items-center",children:t==="loading"&&r>5?u.jsx("div",{className:"min-w-[2.65rem] text-center bg-muted/75 rounded-full",children:u.jsxs("span",{className:"text-xs text-secondary-foreground",children:[r,"s"]})}):$re[t]}),u.jsxs("div",{className:"flex-grow",children:[typeof n=="string"?u.jsx("span",{className:"block whitespace-pre-line",children:n}):n.md?u.jsxs(u.Fragment,{children:[n.title?u.jsx(rR,{md:`**${n.title}**`,isSmall:!0,isTitle:!0,isToast:!0}):null,u.jsx(rR,{md:n.msg,isSmall:!0,isToast:!0})]}):u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"font-semibold mb-1",children:n.title}),u.jsx("span",{className:"block whitespace-pre-line",children:n.msg})]}),t==="error"&&u.jsxs("small",{className:"block text-xs tracking-wide text-muted-foreground",children:["For support, visit ",u.jsx("a",{href:"http://discord.gg/txAdmin",target:"_blank",onClick:gf,className:"font-semibold no-underline hover:underline m-0",children:"discord.gg/txAdmin"}),"."]})]}),u.jsxs("button",{onClick:()=>Sv.dismiss(e.id),className:"absolute right-4 top-4 opacity-70",children:[u.jsx(Ar,{className:"h-6 sm:w-6 md:h-5 md:w-5"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})};function Fre(){return u.jsx(Pre,{reverseOrder:!0,containerStyle:{top:"var(--content-offset)",zIndex:60}})}const ja=(e,t,n={})=>(n.duration??(n.duration=e==="loading"?1/0:5e3),Sv.custom(r=>u.jsx(Bre,{t:r,type:e,data:t}),n)),zre=(e,t)=>ja(e.type,e,t),qe=Object.assign(zre,{default:(e,t)=>ja("default",e,t),loading:(e,t)=>ja("loading",e,t),info:(e,t)=>ja("info",e,t),success:(e,t)=>ja("success",e,t),warning:(e,t)=>ja("warning",e,t),error:(e,t)=>ja("error",e,t),dismiss:Sv.dismiss,remove:Sv.remove}),c5=Gu(!1),VN=Gu(void 0),Lw="actionModal",qN=e=>{rP(Lw,e)},u5=()=>{const e=it(VN),t=it(c5);return n=>{qN(n),e(n),t(!0)}},Hre=()=>{const e=ct(VN),[t,n]=Tr(c5);return{isModalOpen:t,actionRef:e,closeModal:()=>{qN(void 0),n(!1)}}};var sR=Object.prototype.hasOwnProperty;function Cv(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Cv(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(sR.call(e,n)&&++r&&!sR.call(t,n)||!(n in t)||!Cv(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const $s=new WeakMap,Bo=()=>{},ar=Bo(),Nw=Object,gt=e=>e===ar,ns=e=>typeof e=="function",sa=(e,t)=>({...e,...t}),GN=e=>ns(e.then),e_={},_m={},d5="undefined",a1=typeof window!=d5,Pw=typeof document!=d5,Wre=()=>a1&&typeof window.requestAnimationFrame!=d5,KN=(e,t)=>{const n=$s.get(e);return[()=>!gt(t)&&e.get(t)||e_,r=>{if(!gt(t)){const i=e.get(t);t in _m||(_m[t]=i),n[5](t,sa(i,r),i||e_)}},n[6],()=>!gt(t)&&t in _m?_m[t]:!gt(t)&&e.get(t)||e_]};let Ow=!0;const Ure=()=>Ow,[Iw,$w]=a1&&window.add
|
|||
|
|
transition-all ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,n&&"opacity-50 pointer-events-none"),onClick:()=>!n&&r(),onKeyDown:i=>(i.code==="Enter"||i.code==="Space")&&!n&&r(),children:[u.jsx(e,{className:"w-6 h-6 2xl:w-5 2xl:h-5 text-muted-foreground group-hover:scale-110 group-hover:text-secondary-foreground inline"}),u.jsx("span",{className:"hidden 2xl:inline ml-1 align-middle",children:t})]})}function Mie(e){const{history:t,appendHistory:n}=iP(),[r,i]=w.useState(-1),s=w.useRef(""),a=e.termInputRef,{hasPerm:o}=fr(),l=o("console.write"),c=ct(Q7);w.useEffect(()=>{e.isConnected&&a.current&&a.current.focus()},[e.isConnected,a]);const h=()=>{if(!a.current)return;r===-1&&(s.current=a.current.value??"");const v=r+1;t[v]&&(a.current.value=t[v],i(v))},d=()=>{if(!a.current)return;const v=r-1;v===-1?(a.current.value=s.current,i(v)):t[v]&&(a.current.value=t[v],i(v))},f=()=>{if(!a.current)return;const v=a.current.value.trim();i(-1),a.current.value="",s.current="",v&&(n(v),e.consoleWrite(v))},m=v=>{e.isConnected&&(v.key==="ArrowUp"?(h(),v.preventDefault()):v.key==="ArrowDown"?(d(),v.preventDefault()):v.key==="Enter"&&(f(),v.preventDefault()))};let _;return l?c.isChildAlive?e.isConnected||(_="Socket connection lost."):_="The server is not running.":_="You do not have permission to write to the console.",u.jsxs("div",{className:"flex flex-col xs:flex-row xs:items-center gap-2 px-1 sm:px-4 py-2 border-t justify-center",children:[u.jsxs("div",{className:"flex items-center grow",children:[u.jsx("svg",{className:"hidden sm:block w-4 h-4 mr-2 text-warning-inline shrink-0",fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"m9 18 6-6-6-6"})}),u.jsx(wt,{ref:a,className:J("w-full",!!_&&"placeholder:text-destructive placeholder:opacity-100"),placeholder:_??"Type a command...",type:"text",disabled:!!_,onKeyDown:m,autoCapitalize:"none",autoComplete:"off",autoCorrect:"off"})]}),u.jsxs("div",{className:"flex flex-row justify-evenly gap-3 2xl:gap-1 select-none",children:[u.jsx(wm,{icon:kX,title:"Saved",onClick:e.toggleSaveSheet}),u.jsx(wm,{icon:pQ,title:"Search",disabled:!e.isConnected,onClick:e.toggleSearchBar}),u.jsx(wm,{icon:AL,title:"Clear",disabled:!e.isConnected,onClick:e.consoleClear}),u.jsx(wm,{icon:UX,title:"Download",disabled:!e.isConnected,onClick:()=>{Ju("/fxserver/downloadLog")}})]})]})}function Aie(){return u.jsx("div",{className:"flex flex-col flex-shrink px-1 sm:px-4 py-2 space-y-4 border-b",children:u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsxs("svg",{className:"w-4 h-4 text-green-500",fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("polyline",{points:"4 17 10 11 4 5"}),u.jsx("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]}),u.jsx("p",{className:"font-mono text-sm",children:"Live Console"})]})})}function rc({title:e,onClick:t,isActive:n,children:r}){return u.jsx("button",{title:e,className:J("rounded p-0.5","hover:bg-secondary-foreground hover:text-secondary","focus:outline-none focus:ring-1 focus:ring-secondary-foreground focus:ring-offset-1x focus:ring-offset-secondary-foreground",n&&"bg-muted-foreground text-secondary"),onClick:t,children:r})}const o_="No results",jie={activeMatchBackground:"#FF00DC",activeMatchColorOverviewRuler:"#FF00DC",matchBackground:"#732268",matchOverviewRuler:"#732268"};function sP({show:e,setShow:t,searchAddon:n}){const[r,i]=w.useState(!1),[s,a]=w.useState(!1),[o,l]=w.useState(!1),c=w.useRef(null),[h,d]=w.useState(o_),f=S=>{n.clearDecorations(),S&&d(S)},m=S=>({decorations:jie,caseSensitive:r,wholeWord:s,regex:o,...S});w.useEffect(()=>{var S;e?(S=c.current)==null||S.focus():f(o_)},[e]),w.useEffect(()=>{if(!n)return;const S=n.onDidChangeResults(({resultIndex:C,resultCount:E})=>{d(C===-1?o_:`${C+1}/${E}`)});r
|
|||
|
|
`);return C7(r,t)},Hie=/[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]{3,}/,cP="\x1B[3m",Wie=e=>{if(Hie.test(e))return{markerData:{classes:"bg-warning text-warning-foreground",labelShort:"RTL",labelLong:"VIEW RIGHT-TO-LEFT TEXT",onClick:()=>{qe.warning({title:"Bidirectional Text Detected:",md:!0,msg:`Due to limitations, the terminal cannot display RTL text.
|
|||
|
|
This is what the text is supposed to look like:
|
|||
|
|
|
|||
|
|
${m5(e)}`},{duration:7500})}}}},uP=e=>JSON.parse(e.replace(/\u037e/g,";").replace(/\\"/g,'"')),Uie=e=>{const t=m5(e),n=/^(?<bar>.)\s+TXADMIN\1 txaEvent "(?<arg0>\w+)" "(?<arg1>.*)"$/,r=t.match(n);if(!r||!r.groups)return;const{arg0:i,arg1:s}=r.groups,a=uP(s),o=`txaEvent "${i}" "${s}"`,l=`${cP}<broadcasting txAdmin:events:${i}>`;return{newLine:e.replace(o,l),markerData:{classes:"bg-info text-info-foreground",labelShort:"EVENT",labelLong:"VIEW EVENT",onClick:()=>{qe.info({title:`txAdmin:events:${i}:`,md:!0,msg:"```json\n"+JSON.stringify(a,null,2)+"\n```"},{duration:7500})}}}},Vie=e=>{const t=m5(e),n=/^(?<bar>.)\s+TXADMIN\1 txaInitialData "(?<arg0>.*)"$/,r=t.match(n);if(!r||!r.groups)return;console.log("getTermLineInitialData",r.groups);const{arg0:i}=r.groups,s=uP(i),a=`txaInitialData "${i}"`,o=`${cP}<txaInitialData>`;return{newLine:e.replace(a,o),markerData:{classes:"bg-info text-info-foreground",labelShort:"CMD",labelLong:"VIEW COMMAND",onClick:()=>{qe.info({title:"Initial Player Data:",md:!0,msg:"```json\n"+JSON.stringify(s,null,2)+"\n```"},{duration:7500})}}}},qie=(e,t)=>e.buffer.active.cursorY===0?t+2:0,Gie=(e,t,n)=>{const r=e.registerMarker(qie(e,t)),i=e.registerDecoration({layer:"top",marker:r});return i&&i.onRender(s=>{if(s.innerHTML)return;const a="rgba(255,255,255, 0.01)",o="rgba(255,255,255, 0.05)",l=document.createElement("button");l.className=J("absolute right-0 px-1 py-0 text-2xs rounded overflow-hidden text-nowrap transition-all",n.classes),l.innerText=n.labelShort,l.onclick=n.onClick;const c=()=>{l.style.width=`calc(${l.innerText.length+1}ch + 0.5rem)`};l.onmouseenter=()=>{l.innerText=n.labelLong,c(),s.style.backgroundColor=o},l.onmouseleave=()=>{l.innerText=n.labelShort,c(),s.style.backgroundColor=a},c(),s.classList.add("rounded"),s.style.backgroundColor=a,s.style.width="100%",s.replaceChildren(l)}),!!i};let g5=!1,kv;try{const e=localStorage.getItem("liveConsoleTimestamp");e==="24h"?kv=!1:e==="12h"?kv=!0:e==="off"&&(g5=!0)}catch{}let v5=!1,y5=!0;try{const e=localStorage.getItem("liveConsoleCopyOpts");if(typeof e=="string"){const t=e.split(",");v5=t.includes("ts"),y5=t.includes("tag")}}catch{}const Fd=150,Kie="\x1B[0;37m",Yie="\x1B[1;90m",uR=lP(Date.now(),{timestampDisabled:g5,timestampForceHour12:kv,copyTimestamp:v5,copyTag:y5}).replace(/\w/g,"-");function Xie(){const[e,t]=w.useState(!1),[n,r]=w.useState(!1),[i,s]=w.useState(!1),a=w.useRef(null),o=w.useRef({ts:0,lastEol:!0,prefix:uR}),l=Y0(),c=w.useMemo(()=>({timestampDisabled:g5,timestampForceHour12:kv,copyTimestamp:v5,copyTag:y5}),[]),h=w.useRef(null),d=w.useRef(null),f=w.useMemo(()=>new aL.Terminal(aP),[]),m=w.useMemo(()=>new hL.FitAddon,[]),_=w.useMemo(()=>new pL.SearchAddon,[]),v=(M,D)=>{Ju(D)},y=w.useMemo(()=>new gL.WebLinksAddon(v),[]),g=Jn(Fd,M=>{window.postMessage({type:"liveConsoleSearchHotkey",action:M})},{noTrailing:!0}),p=()=>{if(!d.current||!f.element||!m){console.log("refitTerminal: no containerRef.current or term.element or fitAddon");return}const M=m.proposeDimensions();M?f.resize(M.cols,M.rows):console.log("refitTerminal: no proposed dimensions")};Pi("resize",TC(100,p)),w.useEffect(()=>{if(d.current&&h.current&&!f.element){console.log("live console xterm init"),d.current.innerHTML="",f.loadAddon(m),f.loadAddon(_),f.loadAddon(y),f.loadAddon(new uL.CanvasAddon),f.loadAddon(new oP(h.current,d.current)),f.open(d.current),f.write("\x1B[?25l"),p();const M=Jn(Fd,()=>{f.scrollLines(Math.min(1,2-f.rows))},{noTrailing:!0}),D=Jn(Fd,()=>{f.scrollLines(Math.max(1,f.rows-2))},{noTrailing:!0}),N=Jn(Fd,()=>{f.scrollToTop()},{noTrailing:!0}),L=Jn(Fd,()=>{f.scrollToBottom()},{noTrailing:!0});f.attachCustomKeyEventHandler(P=>{if(P.code==="F5"&&!P.ctrlKey)return!1;if(P.code==="Escape")return!1;if(P.code==="KeyF"&&(P.ctrlKey||P.metaKey))return!1;if(P.code==="F3")return!1;if(P.code==="KeyC"&&(P.ctrlKey||P.metaKey)){const I=f.getSelection();return I&&(zie(I,f.element,c).then(z=>{z===!1&&qe.error("Failed to copy to clipboard :(")}).catch(z=>{qe.error({title:"Failed to copy to clipboard:",msg:z.message})}),f.clearSelection()),!1}else{if(P.code==="PageUp")return M(
|
|||
|
|
.`.concat(Uoe,` {
|
|||
|
|
overflow: hidden `).concat(r,`;
|
|||
|
|
padding-right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
body[`).concat(zc,`] {
|
|||
|
|
overflow: hidden `).concat(r,`;
|
|||
|
|
overscroll-behavior: contain;
|
|||
|
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|||
|
|
padding-left: `.concat(i,`px;
|
|||
|
|
padding-top: `).concat(s,`px;
|
|||
|
|
padding-right: `).concat(a,`px;
|
|||
|
|
margin-left:0;
|
|||
|
|
margin-top:0;
|
|||
|
|
margin-right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
`),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(_g,` {
|
|||
|
|
right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(bg,` {
|
|||
|
|
margin-right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(_g," .").concat(_g,` {
|
|||
|
|
right: 0 `).concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(bg," .").concat(bg,` {
|
|||
|
|
margin-right: 0 `).concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
body[`).concat(zc,`] {
|
|||
|
|
`).concat(Voe,": ").concat(o,`px;
|
|||
|
|
}
|
|||
|
|
`)},RR=function(){var e=parseInt(document.body.getAttribute(zc)||"0",10);return isFinite(e)?e:0},uae=function(){w.useEffect(function(){return document.body.setAttribute(zc,(RR()+1).toString()),function(){var e=RR()-1;e<=0?document.body.removeAttribute(zc):document.body.setAttribute(zc,e.toString())}},[])},dae=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;uae();var s=w.useMemo(function(){return aae(i)},[i]);return w.createElement(lae,{styles:cae(s,!t,i,n?"":"!important")})},Gw=!1;if(typeof window<"u")try{var Rm=Object.defineProperty({},"passive",{get:function(){return Gw=!0,!0}});window.addEventListener("test",Rm,Rm),window.removeEventListener("test",Rm,Rm)}catch{Gw=!1}var sc=Gw?{passive:!1}:!1,hae=function(e){return e.tagName==="TEXTAREA"},qP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hae(e)&&n[t]==="visible")},fae=function(e){return qP(e,"overflowY")},pae=function(e){return qP(e,"overflowX")},MR=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=GP(e,r);if(i){var s=KP(e,r),a=s[1],o=s[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mae=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},gae=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},GP=function(e,t){return e==="v"?fae(t):pae(t)},KP=function(e,t){return e==="v"?mae(t):gae(t)},vae=function(e,t){return e==="h"&&t==="rtl"?-1:1},yae=function(e,t,n,r,i){var s=vae(e,window.getComputedStyle(t).direction),a=s*r,o=n.target,l=t.contains(o),c=!1,h=a>0,d=0,f=0;do{var m=KP(e,o),_=m[0],v=m[1],y=m[2],g=v-y-s*_;(_||g)&&GP(e,o)&&(d+=g,f+=_),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(h&&(Math.abs(d)<1||!i)||!h&&(Math.abs(f)<1||!i))&&(c=!0),c},Mm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},AR=function(e){return[e.deltaX,e.deltaY]},jR=function(e){return e&&"current"in e?e.current:e},xae=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_ae=function(e){return`
|
|||
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
|
`)},bae=0,oc=[];function wae(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(bae++)[0],s=w.useState(VP)[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Woe([e.lockRef.current],(e.shards||[]).map(jR),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=w.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var g=Mm(v),p=n.current,x="deltaX"in v?v.deltaX:p[0]-g[0],b="deltaY"in v?v.deltaY:p[1]-g[1],S,C=v.target,E=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in v&&E==="h"&&C.type==="range")return!1;var k=MR(E,C);if(!k)return!0;if(k?S=E:(S=E==="v"?"h":"v",k=MR(E,C)),!k)return!1;if(!r.current&&"changedTouches"in v&&(x||b)&&(r.current=S),!S)return!0;var T=r.current||S;return yae(T,y,v,T==="h"?x:b,!0)},[]),l=w.useCallback(function(v){var y=v;if(!(!oc.length||oc[oc.length-1]!==s)){var g="deltaY"in y?AR(y):Mm(y),p=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&xae(S.delta,g)})[0];if(p&&p.should){y.cancelable&&y.preventDefault();return}if(!p){var x=(a.current.shards||[]).map(jR).filter(Boolean).filter(function(S){return S.contains(y.target)}),b=x.length>0?o(y,x[0]):!a.current.noIsolation;b&&y.cancelable&&y.preventDefault()}}},[]),c=w.useCallback(function(v,y,g,p){var x={name:v,delta:y,target:g,should:p,shadowParent:Sae(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),h=w.useCallback(function(v){n.current=Mm(v),r.current=void 0},[]),d=w.useCallback(function(v){c(v.type,AR(v),v.target,o(v,e.lockRef.current))},[]),f=w.useCallback(function(v){c(v.type,Mm(v),v.target,o(v,e.lockRef.current))},[]);w.useEffect(function(){return oc.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,sc),document.addEventListener("touchmove",l,sc),document.addEventListener("touchstart",h,sc),function(){oc=oc.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,sc),document.removeEventListener("touchmove",l,sc),document.removeEventListener("touchstart",h,sc)}},[]);var m=e.removeScrollBar,_=e.inert;return w.createElement(w.Fragment,null,_?w.createElement(s,{styles:_ae(i)}):null,m?w.createElement(dae,{gapMode:e.gapMode}):null)}function Sae(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Cae=Joe(UP,wae);var g1=w.forwardRef(function(e,t){return w.createElement(m1,rs({},e,{ref:t,sideCar:Cae}))});g1.classNames=m1.classNames;var Kw=["Enter"," "],kae=["ArrowDown","PageUp","Home"],YP=["ArrowUp","PageDown","End"],Eae=[...kae,...YP],Tae={ltr:[...Kw,"ArrowRight"],rtl:[...Kw,"ArrowLeft"]},Rae={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gp="Menu",[xf,Mae,Aae]=pp(gp),[Ol,XP]=Un(gp,[Aae,nd,rd]),v1=nd(),QP=rd(),[jae,Il]=Ol(gp),[Dae,vp]=Ol(gp),JP=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:a=!0}=e,o=v1(t),[l,c]=w.useState(null),h=w.useRef(!1),d=jt(s),f=Al(i);return w.useEffect(()=>{const m=()=>{h.current=!0,document.addEventListener("pointerdown",_,{capture:!0,once:!0}),document.addEventListener("pointermove",_,{capture:!0,once:!0})},_=()=>h.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",_,{capture:!0}),document.removeEventListener("pointermove",_,{capture:!0})}},[]),u.jsx(M5,{...o,children:u.jsx(jae,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:u.jsx(Dae,{scope:t,onClose:w.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:h,dir:f,modal:a,children:r})})})};JP.displayName=gp;var Lae="MenuAnchor",O5=w.forwar
|
|||
|
|
font-size: .6rem;
|
|||
|
|
font-weight: bold;
|
|||
|
|
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}}function v_(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Ole=(e,t)=>Math.abs(e-t)<1,Ile=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},$le=e=>e,Ble=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},Fle=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=a=>{const{width:o,height:l}=a;t({width:Math.round(o),height:Math.round(l)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(a=>{const o=a[0];if(o!=null&&o.borderBoxSize){const l=o.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},LR={passive:!0},zle=typeof window>"u"?!0:"onscrollend"in window,Hle=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const s=e.options.useScrollendEvent&&zle?()=>{}:Ile(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=c=>()=>{const{horizontal:h,isRtl:d}=e.options;i=h?n.scrollLeft*(d&&-1||1):n.scrollTop,s(),t(i,c)},o=a(!0),l=a(!1);return l(),n.addEventListener("scroll",o,LR),n.addEventListener("scrollend",l,LR),()=>{n.removeEventListener("scroll",o),n.removeEventListener("scrollend",l)}},Wle=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Ule=(e,{adjustments:t=0,behavior:n},r)=>{var i,s;const a=e+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Vle{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$le,rangeExtractor:Ble,onChange:()=>{},measureElement:Wle,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=ac(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.tar
|
|||
|
|
If you closed txAdmin, please restart it and try again.`:m.message.startsWith("JSON.parse:")?f="Invalid JSON response from server.":f=m.message,f.includes("unmount")?console.warn("[UNMOUNTED]",a):(console.error("[ERROR]",a,f),o("Request Error",f))}finally{if(i.finally)try{i.finally()}catch(d){console.log("[FINALLY CB ERROR]",a,d)}}}};function ace({rowData:e,modalOpener:t}){const n=()=>{t({license:e.license})};return u.jsxs(yp,{onClick:n,className:"cursor-pointer",children:[u.jsxs(ni,{className:"px-4 py-2 flex justify-between border-r",children:[u.jsx("span",{className:"text-ellipsis overflow-hidden line-clamp-1 break-all",children:e.displayName}),u.jsxs("div",{className:"hidden md:inline-flex items-center gap-1",children:[u.jsx(gQ,{className:J("h-5",e.isOnline?"text-success-inline animate-pulse":"text-muted")}),u.jsx(TL,{className:J("h-5",e.isAdmin?"text-warning-inline":"text-muted")}),u.jsx(qX,{className:J("h-5",e.notes?"text-secondary-foreground":"text-muted")})]})]}),u.jsx(ni,{className:"min-w-[8rem] px-4 py-2 border-r",children:q5(e.playTime*6e4)}),u.jsx(ni,{className:"min-w-[10rem] px-4 py-2 border-r",children:Xw(e.tsJoined)}),u.jsx(ni,{className:"min-w-[10rem] px-4 py-2",children:Xw(e.tsLastConnection)})]})}function lce({playersCount:e,hasReachedEnd:t,isFetching:n,loadError:r,retryFetch:i}){let s;return n?s=u.jsx(sn,{className:"mx-auto animate-spin"}):r?s=u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"text-destructive-inline",children:["Error: ",r]}),u.jsx("br",{}),u.jsx("button",{className:"underline",onClick:()=>i(),children:"Try again?"})]}):t?s=u.jsx("span",{className:"font-bold text-muted-foreground",children:e?"You have reached the end of the list.":"No players found."}):s=u.jsxs("span",{children:["You've found the end of the rainbow, but there's no pot of gold here. ",u.jsx("br",{}),u.jsxs("i",{children:["(this is a bug, please report it in ",u.jsx(kn,{href:"https://discord.gg/txAdmin",target:"_blank",rel:"noopener noreferrer",children:"discord.gg/txAdmin"}),")"]})]}),u.jsx(yp,{children:u.jsx(ni,{colSpan:4,className:"px-4 py-2 text-center",children:s})})}function y_({label:e,sortKey:t,sortingState:n,setSorting:r,className:i}){const s=n.key===t,a=n.desc,o=s?a?"▼":"▲":u.jsx(u.Fragment,{}),l=c=>{c.preventDefault(),r({key:t,desc:s?!a:!0})};return u.jsxs("th",{onClick:l,className:J("py-2 px-4 text-left font-light tracking-wider cursor-pointer hover:bg-zinc-300 hover:dark:bg-zinc-600",s&&"font-medium dark:bg-zinc-700",i),children:[e,u.jsx("div",{className:"ml-1 min-w-[2ch] inline-block",children:o})]})}function cce({search:e,filters:t}){const n=w.useRef(null),[r,i]=w.useState([]),[s,a]=w.useState(!1),[o,l]=w.useState(!0),[c,h]=w.useState(null),[d,f]=w.useState({key:"tsJoined",desc:!0}),[m,_]=w.useState(!1),v=n1(),y=Tt({method:"GET",path:"/player/search",abortOnUnmount:!0}),g=async E=>{l(!0),h(null),E&&_(!0);const k=T=>{h(T),E&&i([])};try{const T={sortingKey:d.key,sortingDesc:d.desc};e.value&&(T.searchValue=e.value,T.searchType=e.type),t.length&&(T.filters=t.join(",")),!E&&r.length&&(T.offsetParam=r[r.length-1][d.key],T.offsetLicense=r[r.length-1].license);const R=await y({queryParams:T});if(R===void 0)return k("Request failed.");if("error"in R)return k(`Request failed: ${R.error}`);h(null),a(R.hasReachedEnd),_(!1),R.players.length?i(M=>E?R.players:[...M,...R.players]):i([])}catch(T){k(`Failed to fetch more data: ${T.message}`)}finally{l(!1),_(!1)}},p=V5({isScrollingResetDelay:0,count:r.length+1,getScrollElement:()=>{var E;return(E=n.current)==null?void 0:E.getElementsByTagName("div")[0]},estimateSize:()=>38,overscan:25}),x=p.getVirtualItems(),b=p.getTotalSize();let S=null,C=null;if(x.length>0){const E=x[0].start-p.options.scrollMargin;E>0&&(S=u.jsx("tr",{children:u.jsx("td",{colSpan:3,style:{height:E}})}));const k=b-x[x.length-1].end;k>0&&(C=u.jsx("tr",{children:u.jsx("td",{colSpan:3,style:{height:k}})}))}return w.useEffect(()=>{if(!r.length||!x.length)return;const E=x[x.length-1].index;r.length<=E&&!s&&!o&&g()},[r,x,s,o]),w.useEffect(()=>{p.scrollToIndex(0),g(!0)},[e,t,d]),u.jsx("div",{className:"w-f
|
|||
|
|
|
|||
|
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|||
|
|
|
|||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},oue="DialogDescriptionWarning",aue=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${YI(oue).contentName}}.`;return w.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},nk=PI,lue=II,rk=BI,bp=FI,wp=zI,Sp=WI,Cp=VI,M1=GI;const $l=nk,cue=rk,XI=w.forwardRef(({className:e,...t},n)=>u.jsx(bp,{ref:n,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));XI.displayName=bp.displayName;const wa=w.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(cue,{children:[u.jsx(XI,{}),u.jsxs(wp,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,u.jsxs(M1,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[u.jsx(Ar,{className:"h-6 w-6"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));wa.displayName=wp.displayName;const Sa=({className:e,...t})=>u.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Sa.displayName="DialogHeader";const kp=({className:e,...t})=>u.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});kp.displayName="DialogFooter";const Ca=w.forwardRef(({className:e,...t},n)=>u.jsx(Sp,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight","attempt-word-wrap",e),...t}));Ca.displayName=Sp.displayName;const QI=w.forwardRef(({className:e,...t},n)=>u.jsx(Cp,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));QI.displayName=Cp.displayName;const uue=({textAreaRef:e,triggerAutoSize:t,maxHeight:n=Number.MAX_SAFE_INTEGER,minHeight:r=0})=>{const[i,s]=w.useState(!0);w.useEffect(()=>{if(e){i&&(e.style.minHeight=`${r+2}px`,n>r&&(e.style.maxHeight=`${n}px`),s(!1)),e.style.height=`${r+2}px`;const o=e.scrollHeight;o>n?e.style.height=`${n}px`:e.style.height=`${o+2}px`}},[e,t])},Ep=w.forwardRef(({maxHeight:e=Number.MAX_SAFE_INTEGER,minHeight:t=52,className:n,onChange:r,value:i,...s},a)=>{const o=w.useRef(null),[l,c]=w.useState("");return uue({textAreaRef:o.current,triggerAutoSize:l,maxHeight:e,minHeight:t}),w.useImperativeHandle(a,()=>({textArea:o.current,maxHeight:e,minHeight:t})),w.useEffect(()=>{c(i)},[i,s==null?void 0:s.defaultValue,s==null?void 0:s.placeholder]),u.jsx("textarea",{...s,value:i,ref:o,className:J("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","bg-black/5 dark:bg-black/30 placeholder:opacity-50",n),onChange:h=>{c(h.target.value),r==null||r(h)}})});Ep.displayName="AutosizeTextarea";const due=["2 hours","8 hours","1 days","2 days","1 weeks","2 weeks","permanent"];function hue({reasonData:e,onSave:t,isDialogOpen:n,setIsDialogOpen:r}){let i="",s="2 days",a,o="days";e&&(i=e.reason,due.includes(sv(e.duration))||e.duration==="permanent"?s=sv(e.duration):(s="custom",a=e.duration.value,o=
|
|||
|
|
`)&&(y.value=y.value.replace(/\s*\r*\n+\s*/g," "))}})]}),u.jsxs("div",{className:"grid grid-cols-6 items-center gap-4",children:[u.jsx(Tn,{htmlFor:"durationSelect",className:"col-span-6 sm:col-auto",children:"Duration"}),u.jsxs("div",{className:"col-span-full sm:col-span-5 space-y-1",children:[u.jsxs(Hn,{onValueChange:d,defaultValue:h,children:[u.jsx(Dn,{id:"durationSelect",className:"tracking-wide",children:u.jsx(Wn,{placeholder:"Select Duration"})}),u.jsxs(Ln,{className:"tracking-wide",children:[u.jsx(Se,{value:"custom",className:"font-bold",children:"Custom (set below)"}),u.jsx(Se,{value:"2 hours",children:"2 HOURS"}),u.jsx(Se,{value:"8 hours",children:"8 HOURS"}),u.jsx(Se,{value:"1 days",children:"1 DAY"}),u.jsx(Se,{value:"2 days",children:"2 DAYS"}),u.jsx(Se,{value:"1 weeks",children:"1 WEEK"}),u.jsx(Se,{value:"2 weeks",children:"2 WEEKS"}),u.jsx(Se,{value:"permanent",className:"font-bold",children:"Permanent"})]})]}),u.jsxs("div",{className:"flex flex-row gap-2",children:[u.jsx(wt,{id:"durationMultiplier",type:"number",placeholder:"123",defaultValue:a,disabled:h!=="custom",ref:c,min:1,max:99,required:!0}),u.jsxs(Hn,{onValueChange:m,defaultValue:f,children:[u.jsx(Dn,{id:"durationUnits",className:"tracking-wide",disabled:h!=="custom",children:u.jsx(Wn,{})}),u.jsxs(Ln,{className:"tracking-wide",children:[u.jsx(Se,{value:"hours",children:"HOURS"}),u.jsx(Se,{value:"days",children:"DAYS"}),u.jsx(Se,{value:"weeks",children:"WEEKS"}),u.jsx(Se,{value:"months",children:"MONTHS"})]})]})]})]})]}),u.jsx(kp,{children:u.jsx(De,{type:"submit",children:"Save changes"})})]})})})})}function fue({id:e,reason:t,duration:n,onEdit:r,onRemove:i,disabled:s}){return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"grow sm:flex items-center justify-items-start gap-2",children:[u.jsx("span",{className:"line-clamp-5 md:line-clamp-3",children:t}),u.jsx("div",{className:J("bg-black/5 dark:bg-black/40 px-2 py-0.5 my-1 sm:my-0 border text-sm rounded w-max shrink-0 uppercase select-none",n==="permanent"?"border-destructive bg-destructive-hint text-destructive":"border-primary text-primary opacity-85"),children:sv(n)})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{className:J("text-muted-foreground",s?"opacity-50 cursor-not-allowed":"hover:text-primary hover:scale-110"),onClick:()=>r(e),disabled:s,children:u.jsx(IC,{className:"size-6"})}),u.jsx("button",{className:J("text-muted-foreground",s?"opacity-50 cursor-not-allowed":"hover:text-destructive hover:scale-110"),onClick:()=>i(e),disabled:s,children:u.jsx(Ar,{className:"size-6"})})]})]})}function pue({onClick:e,disabled:t}){return u.jsxs("li",{onClick:e,className:J("rounded-lg bg-card border px-2 py-3 flex gap-3",t?"opacity-50 cursor-not-allowed":"hover:bg-primary hover:text-primary-foreground cursor-pointer"),children:[u.jsx(OC,{className:"size-6"}),u.jsx("span",{children:"Add New Reason"})]})}function mue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sd(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ik(e){return"nodeType"in e}function jr(e){var t,n;return e?sd(e)?e:ik(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function sk(e){const{Document:t}=jr(e);return e instanceof t}function Tp(e){return sd(e)?!1:e instanceof jr(e).HTMLElement}function JI(e){return e instanceof jr(e).SVGElement}function od(e){return e?sd(e)?e.document:ik(e)?sk(e)?e:Tp(e)||JI(e)?e.ownerDocument:document:document:document}const vs=A1?w.useLayoutEffect:w.useEffect;function ok(e){const t=w.useRef(e);return vs(()=>{t.current=e}),w.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function gue(){const e=w.useRef(null),t=w.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=w.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.cur
|
|||
|
|
To pick up a draggable item, press the space bar.
|
|||
|
|
While dragging, use the arrow keys to move the item.
|
|||
|
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|||
|
|
`},Tue={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Rue(e){let{announcements:t=Tue,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Eue}=e;const{announce:s,announcement:a}=Sue(),o=Mp("DndLiveRegion"),[l,c]=w.useState(!1);if(w.useEffect(()=>{c(!0)},[]),Cue(w.useMemo(()=>({onDragStart(d){let{active:f}=d;s(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:m}=d;t.onDragMove&&s(t.onDragMove({active:f,over:m}))},onDragOver(d){let{active:f,over:m}=d;s(t.onDragOver({active:f,over:m}))},onDragEnd(d){let{active:f,over:m}=d;s(t.onDragEnd({active:f,over:m}))},onDragCancel(d){let{active:f,over:m}=d;s(t.onDragCancel({active:f,over:m}))}}),[s,t])),!l)return null;const h=ft.createElement(ft.Fragment,null,ft.createElement(bue,{id:r,value:i.draggable}),ft.createElement(wue,{id:o,announcement:a}));return n?$r.createPortal(h,n):h}var wn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(wn||(wn={}));function Fv(){}function $R(e,t){return w.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Mue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const $i=Object.freeze({x:0,y:0});function t9(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function n9(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Aue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function BR(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function r9(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function FR(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const jue=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=FR(t,t.left,t.top),s=[];for(const a of r){const{id:o}=a,l=n.get(o);if(l){const c=t9(FR(l),i);s.push({id:o,data:{droppableContainer:a,value:c}})}}return s.sort(n9)},Due=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=BR(t),s=[];for(const a of r){const{id:o}=a,l=n.get(o);if(l){const c=BR(l),h=i.reduce((f,m,_)=>f+t9(c[_],m),0),d=Number((h/4).toFixed(4));s.push({id:o,data:{droppableContainer:a,value:d}})}}return s.sort(n9)};function Lue(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),a=i-r,o=s-n;if(r<i&&n<s){const l=t.width*t.height,c=e.width*e.height,h=a*o,d=h/(l+c-h);return Number(d.toFixed(4))}return 0}const Nue=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:a}=s,o=n.get(a);if(o){const l=Lue(o,t);l>0&&i.push({id:a,data:{droppableContainer:s,value:l}})}}return i.sort(Aue)};function Pue(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function i9(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$i}function Oue(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((a,o)=>({...a,top:a.top+e*o.y,bottom:a.bottom+e*o.y,left:a.left+e*o.x,right:a.right+e*o.x}),{...n})}}const Iue=Oue(1);function $ue(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Bue(e,t,n){c
|
|||
|
|
M 0 0 L `+v+` 0
|
|||
|
|
M 0 `+y+" L "+v+" "+y+`
|
|||
|
|
`:f===90?_=`
|
|||
|
|
M 0 0 L 0 `+y+`
|
|||
|
|
M `+v+" 0 L "+v+" "+y+`
|
|||
|
|
`:(v=Math.abs(m/Math.sin(li(f))),y=m/Math.sin(li(90-f)),_=f>0?`
|
|||
|
|
M 0 `+-y+" L "+2*v+" "+y+`
|
|||
|
|
M `+-v+" "+-y+" L "+v+" "+y+`
|
|||
|
|
M `+-v+" 0 L "+v+" "+2*y+`
|
|||
|
|
`:`
|
|||
|
|
M `+-v+" "+y+" L "+v+" "+-y+`
|
|||
|
|
M `+-v+" "+2*y+" L "+2*v+" "+-y+`
|
|||
|
|
M 0 `+2*y+" L "+2*v+` 0
|
|||
|
|
`),u.jsxs("pattern",{id:t,width:v,height:y,patternUnits:"userSpaceOnUse",children:[u.jsx("rect",{width:v,height:y,fill:o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),u.jsx("path",{d:_,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})});H2.displayName="PatternLines",H2.propTypes={id:ee.string.isRequired,spacing:ee.number.isRequired,rotation:ee.number.isRequired,background:ee.string.isRequired,color:ee.string.isRequired,lineWidth:ee.number.isRequired};var Jd={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},W2=w.memo(function(e){var t=e.id,n=e.color,r=n===void 0?Jd.color:n,i=e.background,s=i===void 0?Jd.background:i,a=e.size,o=a===void 0?Jd.size:a,l=e.padding,c=l===void 0?Jd.padding:l,h=e.stagger,d=h===void 0?Jd.stagger:h,f=o+c,m=c/2;return d===!0&&(f=2*o+2*c),u.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[u.jsx("rect",{width:f,height:f,fill:s}),u.jsx("rect",{x:m,y:m,width:o,height:o,fill:r}),d&&u.jsx("rect",{x:1.5*c+o,y:1.5*c+o,width:o,height:o,fill:r})]})});W2.displayName="PatternSquares",W2.propTypes={id:ee.string.isRequired,color:ee.string.isRequired,background:ee.string.isRequired,size:ee.number.isRequired,padding:ee.number.isRequired,stagger:ee.bool.isRequired};var OF={patternDots:z2,patternLines:H2,patternSquares:W2},bke=["type"],U2=Li({},PF,OF),IF=function(e){var t=e.defs;return!t||t.length<1?null:u.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=ME(n,bke);return U2[r]?w.createElement(U2[r],Li({key:i.id},i)):null})})};IF.propTypes={defs:ee.arrayOf(ee.shape({type:ee.oneOf(Object.keys(U2)).isRequired,id:ee.string.isRequired}))};var wke=w.memo(IF),LE=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,s=e.children,a=e.role,o=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,h=e.isFocusable,d=Xt();return u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":o,"aria-labelledby":l,"aria-describedby":c,focusable:h,tabIndex:h?0:void 0,children:[u.jsx(wke,{defs:i}),u.jsx("rect",{width:t,height:n,fill:d.background}),u.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:s})]})};LE.propTypes={width:ee.number.isRequired,height:ee.number.isRequired,margin:ee.shape({top:ee.number.isRequired,left:ee.number.isRequired}).isRequired,defs:ee.array,children:ee.oneOfType([ee.arrayOf(ee.node),ee.node]).isRequired,role:ee.string,isFocusable:ee.bool,ariaLabel:ee.string,ariaLabelledBy:ee.string,ariaDescribedBy:ee.string};var $F=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return u.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};$F.propTypes={size:ee.number.isRequired,color:ee.string.isRequired,borderWidth:ee.number.isRequired,borderColor:ee.string.isRequired};var Ske=w.memo($F),BF=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Ske:r,s=e.size,a=e.datum,o=e.color,l=e.borderWidth,c=e.borderColor,h=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,m=e.labelYOffset,_=m===void 0?-12:m,v=Xt(),y=Lr(),g=y.animate,p=y.config,x=uo({transform:"translate("+t+", "+n+")",config:p,immediate:!g});return u.jsxs(Rt.g,{transform:x.transform,style:{pointerEvents:"none"},children:[w.createElement(i,{size:s,color:o,datum:a,borderWidth:l,borderColor:c}),h&&u.jsx("text",{textAnchor:f,y:_,style:DE(v.dots.text),children:h})]})};BF.propTypes={x:ee.number.isRequired,y:ee.number.isRequired,datum:ee.object.isRequired,size:ee.number.isRequired,color:ee.string.isRequired,borderWidth:ee.number.isRequired,borderColor:ee.string.isRequired,symbol:ee.oneOfType([ee.func,ee.object]),label:ee.oneOfType([ee.string,ee.number]),labelTextAnchor:ee.oneOf(["start","middle","end"]),labelYOffset:ee.number};w.memo(BF);var FF=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,s=e.value,a=e.lineStyle,o=e.textStyle,l=e.legend,c=e.legendPosition,h=c===void 0?"top-right":c,d=e.legendOffsetX,f=d===void 0?14:d,m=e.legendOffsetY,_=m===void 0?14:m,v=e.legendOrientation,y=v===void 0?"horizontal":v,g=Xt(),p=0,x=0,b=0,S=0;r==="y"?(b=i(s),x=t):(p=i(s),S=n);var C=null;if(l){var E=function(k){var T=k
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var az={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:$B,accent:BB,dark2:FB,paired:zB,pastel1:HB,pastel2:WB,set1:UB,set2:VB,set3:vE,tableau10:Cwe},gMe=Object.keys(az),lz={brown_blueGreen:hy,purpleRed_green:fy,pink_yellowGreen:py,purple_orange:my,red_blue:gy,red_grey:vy,red_yellow_blue:yy,red_yellow_green:xy,spectral:_y},vMe=Object.keys(lz),yMe={brown_blueGreen:kwe,purpleRed_green:Ewe,pink_yellowGreen:Twe,purple_orange:Rwe,red_blue:Mwe,red_grey:Awe,red_yellow_blue:jwe,red_yellow_green:qB,spectral:Dwe},cz={blues:Ly,greens:Ny,greys:Py,oranges:$y,purples:Oy,reds:Iy,blue_green:by,blue_purple:wy,green_blue:Sy,orange_red:Cy,purple_blue_green:ky,purple_blue:Ey,purple_red:Ty,red_purple:Ry,yellow_green_blue:My,yellow_green:Ay,yellow_orange_brown:jy,yellow_orange_red:Dy},xMe=Object.keys(cz),_Me={blues:Wwe,greens:Uwe,greys:Vwe,oranges:Kwe,purples:qwe,reds:Gwe,turbo:n2e,viridis:XB,inferno:i2e,magma:r2e,plasma:s2e,cividis:Ywe,warm:Qwe,cool:YB,cubehelixDefault:Xwe,blue_green:Lwe,blue_purple:Nwe,green_blue:Pwe,orange_red:Owe,purple_blue_green:Iwe,purple_blue:$we,purple_red:Bwe,red_purple:Fwe,yellow_green_blue:zwe,yellow_green:GB,yellow_orange_brown:Hwe,yellow_orange_red:KB},G_=f0({},az,lz,cz),bMe=function(e){return gMe.includes(e)},wMe=function(e){return vMe.includes(e)},SMe=function(e){return xMe.includes(e)},CMe={rainbow:Jwe,sinebow:t2e};f0({},yMe,_Me,CMe);var kMe=function(e,t){if(typeof e=="function")return e;if(Hk(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=io(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return io(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,s=[],a=function(){var l=i.value,c=l[0],h=l[1];if(c==="brighter")s.push(function(d){return d.brighter(h)});else if(c==="darker")s.push(function(d){return d.darker(h)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");s.push(function(d){return d.opacity=h,d})}},o=mMe(e.modifiers);!(i=o()).done;)a();return s.length===0?r:function(l){return s.reduce(function(c,h){return h(c)},Mu(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},ju=function(e,t){return w.useMemo(function(){return kMe(e,t)},[e,t])};ee.oneOfType([ee.string,ee.func,ee.shape({theme:ee.string.isRequired}),ee.shape({from:ee.string.isRequired,modifiers:ee.arrayOf(ee.array)})]);var EMe=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return io(d,t)};if(Array.isArray(e)){var r=Wa(e),i=function(d){return r(n(d))};return i.scale=r,i}if(Hk(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return io(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(bMe(e.scheme)){var s=Wa(G_[e.scheme]),a=function(d){return s(n(d))};return a.scale=s,a}if(wMe(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var o=Wa(G_[e.scheme][e.size||11]),l=function(d){return o(n(d))};return l.scale=o,l}if(SMe(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=Wa(G_[e.scheme][e.size||9]),h=function(d){return c(n(d))};return h.scale=c,h}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},uz=function(e,t){return w.useMemo(function(){return EMe(e,t)},[e,t])},TMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,s=e.opacity,a=s===void 0?1:s,o=e.borderWidth,l=o===void 0?0:o,c=e.borderColor;return u.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacit
|
|||
|
|
M`+r/2+` 0
|
|||
|
|
L`+.8*r+" "+r/2+`
|
|||
|
|
L`+r/2+" "+r+`
|
|||
|
|
L`+.2*r+" "+r/2+`
|
|||
|
|
L`+r/2+` 0
|
|||
|
|
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},MMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,s=e.opacity,a=s===void 0?1:s,o=e.borderWidth,l=o===void 0?0:o,c=e.borderColor;return u.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},AMe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,s=e.opacity,a=s===void 0?1:s,o=e.borderWidth,l=o===void 0?0:o,c=e.borderColor;return u.jsx("g",{transform:"translate("+t+","+n+")",children:u.jsx("path",{d:`
|
|||
|
|
M`+r/2+` 0
|
|||
|
|
L`+r+" "+r+`
|
|||
|
|
L0 `+r+`
|
|||
|
|
L`+r/2+` 0
|
|||
|
|
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}var jMe={top:0,right:0,bottom:0,left:0},OE=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,s=e.itemCount,a=e.itemWidth,o=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Va({},jMe,i),c=l.left+l.right,h=l.top+l.bottom,d=a+c,f=o+h,m=(s-1)*r;return n==="row"?d=a*s+m+c:n==="column"&&(f=o*s+m+h),{width:d,height:f,padding:l}},dz=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,s=e.containerHeight,a=e.width,o=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(s-o)/2;break;case"bottom-right":l+=i-a,c+=s-o;break;case"bottom":l+=(i-a)/2,c+=s-o;break;case"bottom-left":c+=s-o;break;case"left":c+=(s-o)/2;break;case"center":l+=(i-a)/2,c+=(s-o)/2}return{x:l,y:c}},hz=function(e){var t,n,r,i,s,a,o=e.direction,l=e.justify,c=e.symbolSize,h=e.symbolSpacing,d=e.width,f=e.height;switch(o){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,s="end"):(r=c+h,s="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,s="start"):(r=d-c-h,s="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,s="middle",l?(i=f,a="alphabetic"):(i=c+h,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,s="middle",l?(i=0,a="text-before-edge"):(i=f-c-h,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:s,labelAlignment:a}},DMe={circle:TMe,diamond:RMe,square:MMe,triangle:AMe},LMe=function(e){var t,n,r,i,s,a,o,l,c,h,d,f=e.x,m=e.y,_=e.width,v=e.height,y=e.data,g=e.direction,p=g===void 0?"left-to-right":g,x=e.justify,b=x!==void 0&&x,S=e.textColor,C=e.background,E=C===void 0?"transparent":C,k=e.opacity,T=k===void 0?1:k,R=e.symbolShape,M=R===void 0?"square":R,D=e.symbolSize,N=D===void 0?16:D,L=e.symbolSpacing,P=L===void 0?8:L,I=e.symbolBorderWidth,z=I===void 0?0:I,O=e.symbolBorderColor,A=O===void 0?"transparent":O,j=e.onClick,F=e.onMouseEnter,H=e.onMouseLeave,B=e.toggleSerie,G=e.effects,Z=w.useState({}),X=Z[0],W=Z[1],$=Xt(),V=w.useCallback(function(_e){if(G){var Ce=G.filter(function(oe){return oe.on==="hover"}).reduce(function(oe,te){return Va({},oe,te.style)},{});W(Ce)}F==null||F(y,_e)},[F,y,G]),U=w.useCallback(function(_e){if(G){var Ce=G.filter(function(oe){return oe.on!=="hover"}).reduce(function(oe,te){return Va({},oe,te.style)},{});W(Ce)}H==null||H(y,_e)},[H,y,G]),Q=hz({direction:p,justify:b,symbolSize:(t=X.symbolSize)!=null?t:N,symbolSpacing:P,width:_,height:v}),q=Q.symbolX,ie=Q.symbolY,re=Q.labelX,ce=Q.labelY,ye=Q.labelAnchor,le=Q.labelAlignment,Re=[j,F,H,B].some(function(_e){return _e!==void 0}),Ae=typeof M=="function"?M:DMe[M];return u.jsxs("g",{transform:"translate("+f+","+m+")",style:{opacity:(n=X.itemOpacity)!=null?n:T},children:[u.jsx("rect",{width:_,height:v,fill:(r=X.itemBackground)!=null?r:E,style:{cursor:Re?"pointer":"auto"},onClick:function(_e){j==null||j(y,_e),B==null||B(y.id)},onMouseEnter:V,onMouseLeave:U}),w.createElement(Ae,Va({id:y.id,x:q,y:ie,size:(i=X.symbolSize)!=null?i:N,fill:(s=(a=y.fill)!=null?a:y.color)!=null?s:"black",borderWidth:(o=X.symbolBorderWidth)!=null?o:z,borderColor:(l=X.symbolBorderColor)!=null?l:A},y.hidden?$.legends.hidden.symbol:void 0)),u.jsx("text",{textAnchor:ye,style:Va({},DE($.legends.text),{fill:(c=(h=(d=X.itemTextColor)!=null?d:S)!=null?h:$.legends.text.fill)!=null?c:"black",dominantBaseline:le,pointerEvents:"none",userSelect:"none"},y.hidden?$.legends.hidden.text:void 0),x:re,y:ce,children:y.label})]})},NMe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,s=e.padding,a=s===void 0?0:s,o=e.justify,l=e.effects,c=e.itemWidth,h=e.itemHeight,d=e.itemDirection,f=
|
|||
|
|
`+E.join(`
|
|||
|
|
`)})}t.saveChanges(e,m)}};return w.useEffect(()=>{c()},[r.state.value]),u.jsxs(Yl,{cardCtx:e,pageCtx:t,onClickSave:h,children:[u.jsx(ht,{label:"Whitelist Mode",children:u.jsxs(tW,{value:r.state.value,onValueChange:r.state.set,disabled:t.isReadOnly,children:[u.jsx(nh,{groupValue:r.state.value,value:"disabled",title:"Disabled",desc:"No whitelist status will be checked by txAdmin."}),u.jsx(nh,{groupValue:r.state.value,value:"adminOnly",title:"Admin-only (maintenance mode)",desc:u.jsxs(u.Fragment,{children:["Will only allow server join if your ",u.jsx(Ye,{children:"fivem:"})," or ",u.jsx(Ye,{children:"discord:"})," identifiers are attached to a txAdmin administrator. Also known as maintenance mode."]})}),u.jsx(nh,{groupValue:r.state.value,value:"discordMember",title:"Discord Server Member",desc:u.jsxs(u.Fragment,{children:["Checks if the player joining has a ",u.jsx(Ye,{children:"discord:"})," identifier and is present in the Discord server configured in the Discord Tab."]})}),u.jsx(nh,{groupValue:r.state.value,value:"discordRoles",title:"Discord Server Roles",desc:u.jsxs(u.Fragment,{children:["Checks if the player joining has a ",u.jsx(Ye,{children:"discord:"})," identifier and is present in the Discord server configured in the Discord Tab and has at least one of the roles specified below."]})}),u.jsx(nh,{groupValue:r.state.value,value:"approvedLicense",title:"Approved License",desc:u.jsxs(u.Fragment,{children:["The player ",u.jsx(Ye,{children:"license:"})," identifier must be whitelisted by a txAdmin administrator. This can be done through the ",u.jsx(kn,{href:"/whitelist",children:"Whitelist page"}),", or the ",u.jsx(Ye,{children:"/whitelist"})," Discord bot slash command."]})})]})}),u.jsxs(ht,{label:"Whitelist Rejection Message",htmlFor:i.eid,showOptional:!0,children:[u.jsx(Ep,{id:i.eid,ref:s,placeholder:"Please join http://discord.gg/example and request to be whitelisted.",defaultValue:i.initialValue,onInput:c,autoComplete:"off",minHeight:60,maxHeight:180,disabled:t.isReadOnly}),u.jsxs(dt,{children:["Optional message to display to a player on the rejection message that shows when they try to connect while not being whitelisted. ",u.jsx("br",{}),"If you have a Discord whitelisting process, include here a invite link."]})]}),u.jsxs(ht,{label:"Whitelisted Discord Roles",htmlFor:a.eid,children:[u.jsx(wt,{id:a.eid,ref:o,defaultValue:l.toUi(a.initialValue),placeholder:"000000000000000000, 000000000000000000",onInput:c,disabled:t.isReadOnly}),u.jsxs(dt,{children:["The ID of the Discord roles that are whitelisted to join the server. ",u.jsx("br",{}),"This field supports multiple roles, separated by comma. ",u.jsx("br",{}),u.jsx("strong",{children:"Note:"}),' Requires the whitelist mode to be set to "Discord Server Roles".']})]})]})}const bOe=[{name:"General",Component:cOe},{name:"FXServer",Component:sOe},{name:"Bans",Component:JPe},{name:"Whitelist",Component:_Oe},{name:"Discord",Component:ZPe},{name:"Game",cards:[{name:"Menu",Component:oOe},{name:"Notifications",Component:aOe}]}],cj=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"-"),Xm=bOe.map(e=>{const t={tabId:cj(e.name),tabName:e.name};return"cards"in e&&e.cards?{ctx:t,cards:e.cards.map(n=>({ctx:{...t,cardId:`${t.tabId}-${cj(n.name)}`,cardName:n.name,cardTitle:`${t.tabName} ${n.name}`},Component:n.Component}))}:{ctx:{...t,cardId:t.tabId,cardName:t.tabName,cardTitle:t.tabName},Component:e.Component}});function wOe(){var _;const[e,t]=w.useState(null),[n,r]=w.useState(!1),i=lp(),{hasPerm:s}=fr(),[a,o]=w.useState(()=>{var y,g;const v=(y=window.location)==null?void 0:y.hash.slice(1);return((g=Xm.find(p=>p.ctx.tabId===v))==null?void 0:g.ctx.tabId)??Xm[0].ctx.tabId}),l=Tt({method:"GET",path:"/settings/configs",throwGenericErrors:!0}),c=Tt({method:"POST",path:"/settings/configs/:card",throwGenericErrors:!0}),h=fp("/settings/configs",async()=>{const v=await l({});if(!v)throw new Error("No data returned");return v},{revalidateOnMount:!0,revalidateOnFocus:!1}),d=async(v,y)=>{if(n)return;const g=qe.loading(`Saving ${v.cardTitle} settings...`,{id:"settingsSave"});r(!0);try{if(!h.data)throw n
|
|||
|
|
flex justify-center items-center gap-2
|
|||
|
|
transition-all ring-offset-background
|
|||
|
|
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
|
|||
|
|
rounded-md text-sm border
|
|||
|
|
|
|||
|
|
bg-zinc-100 hover:bg-zinc-200 border-zinc-200
|
|||
|
|
dark:bg-zinc-900 dark:hover:bg-zinc-800 dark:border-zinc-800
|
|||
|
|
`;function iIe({className:e}){const{setIsSheetOpen:t}=eN();return u.jsxs("button",{className:J(m3,e),title:"Server Menu",onClick:()=>t(!0),children:[u.jsx(iQ,{className:"h-6 w-6 sm:h-5 sm:w-5"}),u.jsx("div",{className:"hidden sm:flex flex-row min-w-max align-middle",children:"Server"})]})}function sIe({className:e}){const{setIsSheetOpen:t}=ZL();return u.jsxs("button",{className:J(m3,e),title:"Global Menu",onClick:()=>t(!0),children:[u.jsx(rQ,{className:"h-6 w-6 sm:h-5 sm:w-5"}),u.jsx("div",{className:"hidden sm:flex flex-row min-w-max",children:"Menu"})]})}function oIe({className:e}){const{setIsSheetOpen:t}=tN(),n=ct(K0);return u.jsxs("button",{className:J(m3,e),title:"Global Menu",onClick:()=>t(!0),children:[u.jsx(cQ,{className:"h-6 w-6 sm:h-5 sm:w-5"}),u.jsxs("div",{className:"hidden sm:flex flex-row min-w-max",children:["Players",u.jsxs("span",{className:"hidden lg:inline-block font-mono",children:[": ",n]})]})]})}function aIe(){const{authData:e,logout:t}=Pl(),{theme:n,setTheme:r}=Sz(),{setAccountModalOpen:i}=UC();if(!e)return null;const s=()=>{r(n==="light"?"dark":"light")},a=()=>{i(!0)},o=()=>{Ju("https://discord.gg/uAmsGa2")},l=()=>{t.mutate()};return u.jsxs(Hc,{children:[u.jsxs(Wc,{className:"flex flex-row items-center gap-2 sm:gap-3 ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-lg",children:[u.jsx("span",{className:"hidden xl:block text-muted-foreground",children:e.name}),u.jsx(UW,{className:`w-11 h-11 sm:w-10 sm:h-10 rounded-md text-2xl
|
|||
|
|
transition-all focus-visible:outline-none
|
|||
|
|
hover:border-zinc-500 hover:border`,username:e.name,profilePicture:e.profilePicture})]}),u.jsxs(tl,{children:[window.txConsts.isWebInterface&&u.jsxs(ss,{className:"cursor-pointer",onClick:s,children:[u.jsxs("span",{className:"hidden dark:flex items-center",children:[u.jsx(bQ,{className:"mr-2 h-4 w-4"}),"Light Mode"]}),u.jsxs("span",{className:"flex dark:hidden items-center",children:[u.jsx(sQ,{className:"mr-2 h-4 w-4"}),"Dark Mode"]})]}),u.jsxs(ss,{className:"cursor-pointer",onClick:a,children:[u.jsx(QX,{className:"mr-2 h-4 w-4"}),"Your Account"]}),u.jsxs(ss,{className:"cursor-pointer",onClick:o,children:[u.jsx(VW,{size:"14",className:"mr-2"}),"Support"]}),window.txConsts.isWebInterface&&u.jsxs(u.Fragment,{children:[u.jsx(Fa,{}),u.jsxs(ss,{className:"cursor-pointer",onClick:l,children:[u.jsx(eQ,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})}function lIe(){return u.jsx("header",{className:`sticky top-0 z-20 flex flex-col items-center justify-center
|
|||
|
|
border-b bg-card text-card-foreground border-card-background shadow-lg md:shadow-sm`,children:u.jsxs("div",{className:"h-14 lg:px-3 px-2 w-full max-w-[1920px] flex flex-row justify-between transition-all",children:[u.jsxs("div",{className:"flex flex-row items-center flex-grow gap-5 mr-5",children:[u.jsx("div",{className:"w-sidebar hidden xl:flex justify-center",children:u.jsx(pS,{href:"/",children:u.jsx(p3,{className:"h-9 hover:scale-105 hover:brightness-110"})})}),u.jsx(pS,{href:"/",className:"hidden sm:max-xl:block",children:u.jsx(nIe,{className:"h-8 w-8 lg:h-10 lg:w-10 hover:scale-105 hover:brightness-110"})}),u.jsx("div",{className:"lg:hidden",children:u.jsx(rIe,{})}),u.jsx("nav",{className:"hidden lg:block flex-grow",children:u.jsx(XOe,{})})]}),u.jsxs("div",{className:"flex flex-row items-center gap-2 sm:gap-3",children:[u.jsx(iIe,{className:"lg:hidden"}),u.jsx(sIe,{className:"lg:hidden"}),u.jsx(oIe,{className:"xl:hidden"}),u.jsx(aIe,{})]})]})})}function cIe(){return ct(X7)}function uIe({txConfigState:e}){const[t]=va(),[n,r]=w.useState(""),i=w.useRef("");return w.useEffect(()=>{let s="";if(e===Ys.Setup&&!t.startsWith("/server/setup")?(s="/server/setup",i.current="Go to the setup page!"):e===Ys.Deployer&&!t.startsWith("/server/deployer")?(s="/server/deployer",i.current="Go to the deployer page!"):s="",s){const a=setTimeout(()=>{r(s)},500);return()=>clearTimeout(a)}else{r("");return}},[t,e]),u.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:[u.jsx(SL,{className:"h-12 w-12 opacity-75 animate-pulse"}),u.jsx("p",{className:"text-center text-lg tracking-wider font-light opacity-75",children:"You need to configure your server to be able to start it."}),n?u.jsx(kn,{href:n,className:"animate-toastbar-enter",children:i.current}):u.jsx(kn,{href:"#",className:"animate-toastbar-leave pointer-events-none",children:i.current||u.jsx(u.Fragment,{children:" "})})]})}function dIe(){const e=ct(EC),{hasPerm:t}=fr(),n=e!==Ys.Ready;return u.jsxs("div",{className:"relative",children:[n&&u.jsx(uIe,{txConfigState:e}),u.jsxs("div",{className:J(n&&"opacity-0 pointer-events-none"),children:[u.jsx("h2",{className:"mb-1.5 text-lg font-semibold tracking-tight line-clamp-1",children:u.jsx(cIe,{})}),u.jsxs("div",{className:"space-y-1 select-none",children:[u.jsxs(Xn,{href:"/",children:[u.jsx(JX,{className:"mr-2 h-4 w-4"}),"Dashboard"]}),u.jsxs(Xn,{href:"/server/console",disabled:!t("console.view"),children:[u.jsx(vQ,{className:"mr-2 h-4 w-4"}),"Live Console"]}),u.jsxs(Xn,{href:"/server/resources",children:[u.jsx(yL,{className:"mr-2 h-4 w-4"}),"Resources"]}),u.jsxs(Xn,{href:"/server/server-log",disabled:!t("server.log.view"),children:[u.jsx(WX,{className:"mr-2 h-4 w-4"}),"Server Log"]}),u.jsxs(Xn,{href:"/server/cfg-editor",disabled:!t("server.cfg.editor"),children:[u.jsx(VX,{className:"mr-2 h-4 w-4"}),"CFG Editor"]}),window.txConsts.showAdvanced&&u.jsxs(Xn,{href:"/advanced",className:"text-accent",disabled:!t("all_permisisons"),children:[u.jsx(HX,{className:"mr-2 h-4 w-4"}),"Advanced"]}),!1]})]})]})}function hIe({style:e}){return u.jsx("svg",{style:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:u.jsx("path",{d:"M18.97 18.35a3.076 3.076 0 0 1-3.42 3.4h-7.1a4.075 4.075 0 0 1-1.529-.25.75.75 0 1 1 .558-1.4 2.679 2.679 0 0 0 .971.146h7.1c1.363 0 1.92-.55 1.92-1.9a3.42 3.42 0 0 0-3.4-3.7.748.748 0 0 1-.714-.783.768.768 0 0 1 .783-.715 4.872 4.872 0 0 1 4.831 5.202zm-12.67.407L2.53 22.53a.75.75 0 0 1-1.06-1.06l3.579-3.579a4.81 4.81 0 0 1 4.721-4.722l1.486-1.485a3.755 3.755 0 1 1 4.428-4.428l2.95-2.95a1.407 1.407 0 0 0-1.124-.556 1.345 1.345 0 0 0-.947.367.75.75 0 1 1-1.046-1.074 2.832 2.832 0 0 1 1.993-.793 2.9 2.9 0 0 1 2.184 1l1.776-1.78a.75.75 0 0 1 1.06 1.06L6.3 18.756zm6.55-8.667 1.24-1.24a2.29 2.29 0 0 0 .17-.84 2.255 2.255 0 1 0-2.25 2.25 2.29 2.29 0 0 0 .84-.17zm5.94-1.41h-.22a.75.75 0 0 0 0 1.5h.22a2.261 2.261 0 0 1 2.46 2.47c0 .864-.309 1.17-1.18 1.17h-.36a.75.75 0 0 0 0 1.5h.36a2.435 2.435 0 0 0 2.68-2.67 3.76 3.76 0 0 0-3.96-3.97zM5.922 8.035a.75.75 0 1 0 .3-1.47
|
|||
|
|
flex flex-grow items-center justify-center flex-shrink-0
|
|||
|
|
border bg-muted shadow-sm
|
|||
|
|
|
|||
|
|
focus:outline-none disabled:opacity-50 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,{variants:{type:{default:"hover:bg-primary hover:text-primary-foreground hover:border-primary",destructive:"hover:bg-destructive hover:text-destructive-foreground hover:border-destructive",warning:"hover:bg-warning hover:text-warning-foreground hover:border-warning",success:"hover:bg-success hover:text-success-foreground hover:border-success",info:"hover:bg-info hover:text-info-foreground hover:border-info"}},defaultVariants:{type:"default"}});function pIe(){const e=ct(EC),t=ct(Q7),n=lp(),r=cp(),i=Z0(),{hasPerm:s}=fr(),a=Tt({method:"POST",path:"/fxserver/controls"}),o=Tt({method:"POST",path:"/fxserver/commands"}),l=v=>{const y={start:"Starting server",stop:"Stopping server",restart:"Restarting server"},g=`${y[v]}...`,p=()=>{i(),a({data:{action:v},toastLoadingMessage:g,timeout:Pv.LONG})};v==="start"?p():n({title:y[v],message:`Are you sure you want to ${v} the server?`,onConfirm:p})},c=()=>{l(t.isIdle?"start":"stop")},h=()=>{t.isChildAlive&&l("restart")},d=()=>{t.isChildAlive&&r({title:"Send Announcement",message:"Type the message to be broadcasted to all players.",placeholder:"announcement message",submitLabel:"Send",required:!0,onSubmit:v=>{i(),o({data:{action:"admin_broadcast",parameter:v},toastLoadingMessage:"Sending announcement..."})}})},f=()=>{t.isChildAlive&&r({title:"Kick All Players",message:"Type the kick reason or leave it blank (press enter)",placeholder:"kick reason",submitLabel:"Send",onSubmit:v=>{i(),o({data:{action:"kick_all",parameter:v},toastLoadingMessage:"Kicking players..."})}})},m=s("control.server"),_=s("announcement");return e!==Ys.Ready?u.jsx("div",{className:"w-full h-8 text-center tracking-wider font-light opacity-75",children:"Server not configured."}):u.jsxs("div",{className:"flex flex-row justify-between gap-2",children:[u.jsxs(qs,{children:[u.jsx(Gs,{asChild:!0,children:t.isIdle?u.jsxs("div",{className:"relative flex flex-grow inset-0",children:[u.jsx("div",{className:"absolute inset-0 bg-success animate-pulse rounded blur-sm"}),u.jsx("button",{onClick:c,className:J(rh({type:"success"}),"relative"),disabled:!m,children:u.jsx(dQ,{className:"h-5"})})]}):u.jsx("button",{onClick:c,className:rh({type:"destructive"}),disabled:!m,children:u.jsx(uQ,{className:"h-5"})})}),u.jsx(os,{className:J(!m&&"text-destructive-inline text-center"),children:m?u.jsx("p",{children:t.isIdle?"Start the server! 🚀":"Stop the server"}):u.jsxs("p",{children:["You do not have permission ",u.jsx("br",{}),"to control the server."]})})]}),u.jsxs(qs,{children:[u.jsx(Gs,{asChild:!0,children:u.jsx("button",{onClick:h,className:J(rh({type:"warning"})),disabled:!m||!t.isChildAlive,children:u.jsx(ow,{className:"h-5"})})}),u.jsx(os,{className:J(!m&&"text-destructive-inline text-center"),children:m?u.jsx("p",{children:"Restart Server"}):u.jsxs("p",{children:["You do not have permission ",u.jsx("br",{}),"to control the server."]})})]}),u.jsxs(qs,{children:[u.jsx(Gs,{asChild:!0,children:u.jsx("button",{onClick:f,className:rh(),disabled:!m||!t.isChildAlive,children:u.jsx(hIe,{style:{height:"1.25rem",width:"1.5rem",fill:"currentcolor"}})})}),u.jsx(os,{className:J(!m&&"text-destructive-inline text-center"),children:m?u.jsx("p",{children:"Kick All Players"}):u.jsxs("p",{children:["You do not have permission ",u.jsx("br",{}),"to control the server."]})})]}),u.jsxs(qs,{children:[u.jsx(Gs,{asChild:!0,children:u.jsx("button",{onClick:d,className:rh(),disabled:!_||!t.isChildAlive,children:u.jsx(nQ,{className:"h-5"})})}),u.jsx(os,{className:J(!_&&"text-destructive-inline text-center"),children:_?u.jsx("p",{children:"Send Announcement"}):u.jsxs("p",{children:["You do not have permission ",u.jsx("br",{}),"to send an Announcement."]})})]})]})}const mIe=co("rounded-sm text-xs font-semibold px-1 py-[0.125rem] tracking-widest text-center cursor-help",{variants:{type:{default:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground",warning:"b
|
|||
|
|
This input is for just the next (not persistent) restart.`},{duration:1e4});return}if(!yIe(p)){qe.error(`Invalid schedule time: ${p}`);return}r({data:{action:"setNextTempSchedule",parameter:p},toastLoadingMessage:"Scheduling server restart..."})},m=()=>{t({...pj,onSubmit:f,submitLabel:"Edit"})},_=()=>{t({...pj,onSubmit:f,submitLabel:"Schedule"})},v=()=>{e(),r({data:{action:"setNextSkip",parameter:!0},toastLoadingMessage:"Cancelling next server restart..."})},y=()=>{e(),r({data:{action:"setNextSkip",parameter:!1},toastLoadingMessage:"Enabling next server restart..."})},g=n("control.server");return u.jsxs("div",{children:[u.jsx("h2",{className:"mb-1 text-lg font-semibold tracking-tight",children:"Next Restart:"}),u.jsx("span",{className:J("font-light",o),children:a}),u.jsxs("div",{className:"flex flex-row justify-between gap-2 mt-2 flex-wrap",children:[d?u.jsxs(De,{size:"xs",variant:"ghost",className:"flex-grow bg-muted border shadow",disabled:!g||l,onClick:m,children:[u.jsx(aQ,{className:"h-4 w-4 mr-1"})," Edit"]}):u.jsxs(De,{size:"xs",variant:"ghost",className:"flex-grow bg-muted border shadow",disabled:!g||l,onClick:_,children:[u.jsx(OX,{className:"h-4 w-4 mr-1"})," Schedule Restart"]}),c&&u.jsxs(De,{size:"xs",variant:"ghost",className:"flex-grow bg-muted border shadow",onClick:v,disabled:!g,children:[u.jsx(IX,{className:"h-4 w-4 mr-1"})," Cancel"]}),h&&u.jsxs(De,{size:"xs",variant:"ghost",className:"flex-grow bg-muted border",onClick:y,disabled:!g,children:[u.jsx(PX,{className:"h-4 w-4 mr-1"})," Enable"]})]})]})}function GW({isSheet:e}){return u.jsxs("aside",{className:J("flex flex-col gap-4 z-10",e?"px-4 py-6":"tx-sidebar hidden lg:flex"),children:[u.jsx("div",{className:J(!e&&"rounded-xl border bg-card text-card-foreground shadow-sm p-4"),children:u.jsx(dIe,{})}),u.jsx("hr",{className:e?"block":"hidden"}),u.jsxs("div",{className:J(!e&&"rounded-xl border bg-card text-card-foreground shadow-sm p-4","flex flex-col gap-4"),children:[u.jsx(pIe,{}),u.jsx(gIe,{}),u.jsx(xIe,{})]}),u.jsx("hr",{className:e?"block":"hidden"}),window.txConsts.adsData.main?u.jsxs("a",{href:window.txConsts.adsData.main.url,onClick:gf,target:"_blank",className:`w-sidebar h-[80px] relative self-center group shadow-sm opacity-80 hover:opacity-100
|
|||
|
|
dark:brightness-90 dark:hover:brightness-100`,children:[u.jsx("div",{className:`absolute inset-0 -z-10 animate-pulse blur
|
|||
|
|
scale-0 group-hover:scale-100 transition-transform bg-black
|
|||
|
|
dark:bg-gradient-to-r dark:from-[#18E889] dark:to-[#01FFFF]`}),u.jsx("img",{className:"rounded-xl max-w-sidebar max-h-[80px] m-auto",src:window.txConsts.adsData.main.img})]}):null,window.txConsts.isWebInterface?u.jsxs("div",{className:"flex flex-col items-center justify-center gap-1 text-sm font-light opacity-85 hover:opacity-100",children:[u.jsxs("span",{className:J("text-muted-foreground",window.txConsts.txaVersion.includes("-")&&"text-destructive-inline font-semibold"),children:["tx: ",u.jsxs("strong",{children:["v",window.txConsts.txaVersion]})," | fx: ",u.jsxs("strong",{children:["b",window.txConsts.fxsVersion]})]}),u.jsxs("a",{href:"https://github.com/tabarra/txAdmin/blob/master/LICENSE",onClick:gf,target:"_blank",className:"text-muted-foreground hover:text-accent",children:["© 2019-",new Date().getUTCFullYear()," Tabarra"]})]}):null]})}function _Ie(){const t=ct(K0).toLocaleString("en-US");return u.jsxs("div",{className:"w-full flex justify-between items-center",children:[u.jsx("div",{className:"w-16 h-16 dark:bg-zinc-600/50 bg-zinc-300/75 rounded-full flex items-center justify-center",children:u.jsx(BC,{className:"w-10 h-10 dark:text-zinc-400 text-zinc-500 text-opacity-80 stroke-1"})}),u.jsxs("div",{className:"flex flex-col items-end",children:[u.jsx("div",{className:"text-4xl font-mono font-extralight",children:t}),u.jsx("div",{className:"opacity-80 text-lg font-light tracking-wider",children:"Players"})]})]})}const bIe=new Set([9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,91
|
|||
|
|
|
|||
|
|
You can add a description to the \`${Xc}\` by passing a \`${cU}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|||
|
|
|
|||
|
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Xc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|||
|
|
|
|||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return w.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},ZIe=rU,e9e=iU,pU=sU,mU=oU,gU=dU,vU=fU,yU=lU,xU=uU;const t9e=ZIe,n9e=e9e,_U=w.forwardRef(({className:e,...t},n)=>u.jsx(pU,{className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));_U.displayName=pU.displayName;const bU=w.forwardRef(({className:e,...t},n)=>u.jsxs(n9e,{children:[u.jsx(_U,{}),u.jsx(mU,{ref:n,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));bU.displayName=mU.displayName;const wU=({className:e,...t})=>u.jsx("div",{className:J("flex flex-col space-y-2 text-center sm:text-left",e),...t});wU.displayName="AlertDialogHeader";const SU=({className:e,...t})=>u.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});SU.displayName="AlertDialogFooter";const CU=w.forwardRef(({className:e,...t},n)=>u.jsx(yU,{ref:n,className:J("text-lg font-semibold","attempt-word-wrap",e),...t}));CU.displayName=yU.displayName;const kU=w.forwardRef(({className:e,...t},n)=>u.jsx(xU,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));kU.displayName=xU.displayName;const EU=w.forwardRef(({className:e,...t},n)=>u.jsx(gU,{ref:n,className:J(ap(),e),...t}));EU.displayName=gU.displayName;const TU=w.forwardRef(({className:e,...t},n)=>u.jsx(vU,{ref:n,className:J(ap({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));TU.displayName=vU.displayName;function r9e(){const e=w.useRef(null),t=hJ(),n=dJ(),r=()=>{t.isOpen&&(n(),t.onCancel&&t.onCancel())},i=()=>{t.isOpen&&(n(),t.onConfirm())},s=o=>{o.preventDefault(),o.key==="Enter"||o.key==="NumpadEnter"?i():(o.key==="Backspace"||o.key==="Escape")&&r()},a=o=>{o||r()};return pG(e,r),u.jsx(t9e,{open:t.isOpen,onOpenChange:a,children:u.jsxs(bU,{ref:e,onOpenAutoFocus:o=>{var l;o.preventDefault(),o.target&&"querySelector"in o.target&&typeof o.target.querySelector=="function"&&((l=o.target.querySelector("[data-autofocus]"))==null||l.focus())},children:[u.jsxs(wU,{children:[u.jsx(CU,{children:t.title}),u.jsx(kU,{children:t.message})]}),u.jsxs(SU,{children:[u.jsx(TU,{children:t.cancelLabel??"Cancel"}),u.jsx(EU,{"data-autofocus":!0,onKeyDown:s,onClick:i,className:J(ap({variant:t.confirmBtnVariant??"destructive"})),children:t.actionLabel??"Continue"})]})]})})}function i9e(){const e=w.useRef(null),t=pJ(),n=fJ(),r=()=>{var o,l;if(!t.isOpen)return;n();const a=((o=e.current)==null?void 0:o.value)??((l=e.current)==null?void 0:l.textArea.value)??"";t.onSubmit(a.trim())},i=a=>{a.preventDefault(),r()},s=a=>{t.isOpen&&(a||(n(),t.onCancel&&t.onCancel()))};return u.jsx($l,{open:t.isOpen,onOpenChange:s,children:u.jsx(wa,{className:J(t.isWide&&"md:max-w-2xl"),children:u.jsxs("form",{onSubmit:i,className:"grid gap-4",children:[u.jsxs(Sa,{children:[u.jsx(Ca,{children:t.title}),u.jsx(QI,{children:t.message})]}),t.isMultiline?u.jsx(Ep,{autoFocus:!0,ref:e,placeholder:t.placeholder,autoComplete:"off",required:t.required,minHeight:100,maxHeight:240}):u.jsx(wt,{autoFocus:!0,ref:e,placeholder:t.placeholder,autoComplete:"off",required:t.required}),u.jsxs(kp,{className:"gap-2 flex-col",children:[u.jsx("div",{className:"flex flex-col sm:flex-row sm:justify-start gap-2 w-full flex-wrap",children:t.suggestions&&t.suggestions.map((a,o)=>u.jsxs(De,{type:"button",onClick:()=>{e.current.value=a,r()},variant:"outline",children:[u.jsx("span",{className:"sm:hidden mr-auto tex
|
|||
|
|
`).length+1;return Math.min(Math.max(t,3),16)};function c9e({playerRef:e,player:t,refreshModalData:n}){const r=w.useRef(null),[i,s]=w.useState(t.notesLog??""),[a,o]=w.useState(yj(t.notes)),l=Tt({method:"POST",path:"/player/save_note"}),c=()=>{var d;s("Saving..."),l({queryParams:e,data:{note:(d=r.current)==null?void 0:d.value.trim()},success:f=>{"error"in f?s(f.error):n()}})},h=d=>{d.key==="Enter"&&!d.shiftKey&&!window.txIsMobile?(d.preventDefault(),c()):o(yj(d.currentTarget.value))};return u.jsxs(u.Fragment,{children:[u.jsxs(Tn,{htmlFor:"playerNotes",children:["Notes: ",u.jsx("span",{className:"text-muted-foreground",children:i})]}),u.jsx(Eu,{ref:r,id:"playerNotes",className:"w-full mt-1",disabled:!t.isRegistered,defaultValue:t.notes,onChange:()=>s("Press enter to save."),onKeyDown:h,style:{height:`${1+1.25*a}rem`},placeholder:t.isRegistered?"Type your notes about the player.":"Cannot set notes for players that are not registered."}),window.txIsMobile&&u.jsx("div",{className:"mt-2 w-full",children:u.jsx(De,{variant:"outline",size:"xs",onClick:c,disabled:!t.isRegistered,className:"w-full",children:"Save Note"})})]})}function u9e({playerRef:e,player:t,serverTime:n,tsFetch:r,setSelectedTab:i,refreshModalData:s}){const{hasPerm:a}=fr(),o=Tt({method:"POST",path:"/player/whitelist"}),l=t.sessionTime?Nv(t.sessionTime*6e4,{units:["h","m"]}):"--",c=t.tsLastConnection?u.jsx(Qc,{className:"opacity-75 cursor-help",serverTime:n,tsObject:t.tsLastConnection,tsFetch:r,isDateOnly:!0}):"--",h=t.playTime?Nv(t.playTime*6e4,{units:["d","h","m"]}):"--",d=t.tsJoined?u.jsx(Qc,{className:"opacity-75 cursor-help",serverTime:n,tsObject:t.tsJoined,tsFetch:r,isDateOnly:!0}):"--",f=t.tsWhitelisted?u.jsx(Qc,{className:"opacity-75 cursor-help",serverTime:n,tsObject:t.tsWhitelisted,tsFetch:r,isDateOnly:!0}):"not yet",m=t.actionHistory.filter(g=>g.type==="ban"&&!g.revokedAt).length,_=t.actionHistory.filter(g=>g.type==="warn"&&!g.revokedAt).length,v=()=>{o({queryParams:e,data:{status:!t.tsWhitelisted},toastLoadingMessage:"Updating whitelist...",genericHandler:{successMsg:"Whitelist changed."},success:(g,p)=>{"success"in g&&s()}})},y=w.useMemo(()=>{if(!t||!n)return;let g;for(const p of t.actionHistory)if(!(p.type!=="ban"||p.revokedAt))if(p.exp)p.exp>=n&&(g=Math.max(g??0,p.exp));else return"This player is permanently banned.";if(g!==void 0)return`This player is banned until ${zs(g,"short","short")}`},[t,n]);return u.jsxs("div",{className:"p-1",children:[y?u.jsxs("div",{className:"w-full p-2 pr-3 mb-1 flex items-center justify-between space-x-4 rounded-lg border shadow-lg transition-all text-black/75 dark:text-white/90 border-warning/70 bg-warning-hint",children:[u.jsx("div",{className:"flex-shrink-0 flex flex-col gap-2 items-center",children:u.jsx(EL,{className:"size-5 text-warning"})}),u.jsx("div",{className:"flex-grow text-sm font-medium",children:y})]}):null,u.jsxs("dl",{className:"pb-2",children:[t.isConnected&&u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Session Time"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:l})]}),u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Play Time"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:h})]}),u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Join Date"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:d})]}),!t.isConnected&&u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Last Connection"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:c})]}),u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"ID Whi
|
|||
|
|
`}),d9e=["fivem:xxxxxxx","license:xxxxxxxxxxxxxx","discord:xxxxxxxxxxxxxxxxxx","etc..."].join(`
|
|||
|
|
`),h9e=["2:xxxxxxxxxxxxxx...","4:xxxxxxxxxxxxxx...","5:xxxxxxxxxxxxxx...","etc..."].join(`
|
|||
|
|
`);function _0({list:e,highlighted:t,type:n,src:r,onWipeIds:i}){const[s,a]=P1(),o=w.useRef(null),l=w.useRef(null),[c,h]=w.useState(null),[d,f]=w.useState(!1),m=Array.isArray(t)&&t.length,_=m?t.sort((M,D)=>M.localeCompare(D)):e.sort((M,D)=>M.localeCompare(D)),v=m?e.filter(M=>!t.includes(M)).sort((M,D)=>M.localeCompare(D)):[],y=_.length||v.length,g=lp(),p=cp(),x=n==="hwid",b=x?"HWID":"ID",S=`This ${r} has no ${b}s.`,C=Array.isArray(c),E=M=>C&&c.includes(M);w.useEffect(()=>{if(d){const M=setTimeout(()=>{f(!1)},2750);return()=>{clearTimeout(M)}}},[d]);const k=()=>{if(!i)return;const M=x?`${b}s`:`${b}s (except license)`;g({title:`Wipe ${r} ${b}s`,message:u.jsxs("p",{children:["Are you sure you want wipe all ",M," of this ",r,"? ",u.jsx("br",{}),u.jsx("strong",{children:"This action cannot be undone."})]}),onConfirm:i})},T=()=>{p({title:`Compare ${b}s`,message:u.jsxs("p",{children:["Paste in a list of ",b,"s to compare with the current list. ",u.jsx("br",{}),"Separate each ",b," with a new line or comma."]}),placeholder:x?h9e:d9e,submitLabel:"Compare",required:!0,isMultiline:!0,isWide:!0,onSubmit:M=>{console.log(M);const D=M.split(/[\n\s,;]+/).map(N=>N.trim()).filter(N=>N.length).filter(N=>N.length&&e.includes(N));h(D)}})},R=()=>{if(!o.current)throw new Error("divRef.current undefined");if(!y)return;const M=[..._,...v].join(`\r
|
|||
|
|
`);C7(M,o.current).then(D=>{D!==!1?f({msg:"Copied!",success:!0}):qe.error("Failed to copy to clipboard :(")}).catch(D=>{qe.error({title:"Failed to copy to clipboard:",msg:D.message}),f({msg:"Error :(",success:!1})})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between items-center pb-1",ref:o,children:[u.jsxs("h3",{className:"text-xl",children:[x?"Hardware IDs":"Player Identifiers",C&&c.length?u.jsxs("span",{className:"ml-2 text-sm font-normal italic text-success-inline",children:["(",c.length," matches found)"]}):null]}),u.jsx("div",{ref:s,className:J("w-24 min-h-6 flex justify-end gap-2.5",!y&&"hidden"),children:d?u.jsx("span",{ref:l,className:J("w-full text-center text-sm select-none pointer-events-none animate-toastbar-enter",d.success?"text-success-inline":"text-destructive-inline"),children:d.msg}):u.jsxs(u.Fragment,{children:[i&&u.jsx("button",{onClick:k,title:"Wipe all IDs except license.",children:u.jsx(AL,{className:"h-5 opacity-50 hover:opacity-100 hover:text-destructive"})}),u.jsx("button",{onClick:T,title:"Compare IDs.",children:u.jsx(ZX,{className:"h-6 opacity-50 hover:opacity-100 hover:text-primary"})}),u.jsx("button",{onClick:R,title:"Copy IDs to clipboard.",children:u.jsx(zX,{className:"h-5 opacity-50 hover:opacity-100 hover:text-primary"})})]})})]}),u.jsxs("div",{className:"relative border rounded",children:[u.jsxs("p",{className:J("font-mono break-all whitespace-pre-wrap rounded-[inherit] divide-y divide-border/50 text-muted-foreground",y&&x?"text-2xs leading-5 font-extralight tracking-widest":"text-xs leading-6 tracking-wider"),children:[!y&&u.jsx("span",{className:"block px-1 opacity-50 italic",children:S}),_.map(M=>u.jsxs("span",{className:J("block px-1 font-semibold",C&&(E(M)?"text-success-inline font-semibold":"opacity-50")),children:[M,u.jsx(xj,{})]},M)),v.map(M=>u.jsxs("span",{className:J("block px-1 opacity-50",E(M)&&"opacity-100 text-success-inline font-semibold"),children:[M,u.jsx(xj,{})]},M))]}),C&&!c.length&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"absolute inset-0 dark:bg-black/25 rounded-[inherit] backdrop-blur-sm flex items-center justify-center p-4",children:u.jsxs("span",{className:"text-xl tracking-wider text-warning-inline",children:["No matching ",b," found."]})}),u.jsxs("button",{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100",onClick:()=>h(null),children:[u.jsx(Ar,{className:"h-8 w-8 sm:h-6 sm:w-6"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})]})}function f9e({player:e,refreshModalData:t}){return u.jsx(bH,{children:u.jsxs("div",{className:"flex flex-col gap-4 p-1",children:[u.jsx(_0,{type:"id",src:"player",list:(e==null?void 0:e.oldIds)??[],highlighted:e.ids}),u.jsx(_0,{type:"hwid",src:"player",list:(e==null?void 0:e.oldHwids)??[],highlighted:e.hwids})]})})}function p9e({action:e,serverTime:t,modalOpener:n}){let r,i,s;if(e.type==="ban"?(i="border-destructive",s=`BANNED by ${e.author}`):e.type==="warn"&&(i="border-warning",s=`WARNED by ${e.author}`),e.revokedBy){i="";const a=zs(e.revokedAt??0,"medium","short");r=`Revoked by ${e.revokedBy} on ${a}.`}else if(typeof e.exp=="number"){const a=zs(e.exp,"medium","short");r=e.exp<t?`Expired on ${a}.`:`Expires in ${a}.`}return u.jsxs("div",{onClick:()=>{n(e.id)},className:J("pl-2 border-l-4 hover:bg-muted rounded-r-sm bg-muted/30 cursor-pointer",i),children:[u.jsxs("div",{className:"flex w-full justify-between",children:[u.jsx("strong",{className:"text-sm text-muted-foreground",children:s}),u.jsxs("small",{className:"text-right text-2xs space-x-1",children:[u.jsx(Ye,{className:"tracking-widest",children:e.id}),u.jsx("span",{className:"opacity-75 cursor-help",title:zs(e.ts,"long","long"),children:zs(e.ts,"medium","short")})]})]}),u.jsx("span",{className:"text-sm",children:e.reason}),r&&u.jsx("small",{className:"block text-xs opacity-75",children:r})]})}function m9e({actionHistory:e,serverTime:t,refreshModalData:n}){const r=u5();if(!e.length)return u.jsx(Up,{children:"No bans/warns found."});const i=a=>{r(a)},s=[...e].r
|
|||
|
|
`).length+1;return Math.min(Math.max(t,3),16)};function w9e({actionReason:e}){const t=w.useRef(null),[n,r]=w.useState(b9e(e));return u.jsxs(u.Fragment,{children:[u.jsx(Tn,{htmlFor:"actionReason",children:"Reason:"}),u.jsx(Eu,{ref:t,id:"actionReason",className:"w-full mt-1",readOnly:!0,value:e,style:{height:`${1+1.25*n}rem`}})]})}function S9e({action:e,serverTime:t,tsFetch:n}){const r=n1();let i;if(e.type==="ban")if(e.expiration===!1)i=u.jsx("span",{className:"text-destructive-inline",children:"Never"});else if(e.expiration>t){const d=Nv((t-e.expiration)*1e3,{units:["mo","w","d","h","m"]});i=u.jsxs("span",{className:"text-warning-inline",children:["In ",d]})}else i=u.jsx(Qc,{className:"opacity-75 cursor-help",serverTime:t,tsObject:e.expiration,tsFetch:n});let s;e.type==="warn"&&e.acked?s=u.jsx("span",{className:"opacity-75",children:"Yes"}):s=u.jsx("span",{className:"text-warning-inline",children:"Not yet"});let a;e.revocation.timestamp?a=u.jsxs("span",{className:"text-warning-inline",children:["By ",e.revocation.author," on ",u.jsx(Qc,{isDateOnly:!0,className:"cursor-help",serverTime:t,tsObject:e.revocation.timestamp,tsFetch:n})]}):a=u.jsx("span",{className:"opacity-75",children:"No"});const o=e.playerName!==!1?u.jsx("span",{children:e.playerName}):u.jsx("span",{className:"italic opacity-75",children:"unknown player"}),l=e.ids.filter(d=>d.startsWith("license:")),c=l.length===1?l[0].split(":")[1]:!1,h=()=>{c&&r({license:c})};return u.jsxs("div",{className:"px-1 mb-1 md:mb-4",children:[u.jsxs("dl",{className:"pb-2",children:[u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Date/Time"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:u.jsx(Qc,{className:"opacity-75 cursor-help",serverTime:t,tsObject:e.timestamp,tsFetch:n})})]}),e.type==="ban"&&u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Expiration"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:i})]}),e.type==="warn"&&u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Player Accepted"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:s})]}),u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Revoked"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:a})]}),u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Admin"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2 mt-0",children:e.author})]}),u.jsxs("div",{className:"py-0.5 grid grid-cols-3 gap-4 px-0",children:[u.jsx("dt",{className:"text-sm font-medium leading-6 text-muted-foreground",children:"Player"}),u.jsx("dd",{className:"text-sm leading-6 col-span-2x mt-0",children:o}),u.jsx("dd",{className:"text-right",children:u.jsx(De,{variant:"outline",size:"inline",style:{minWidth:"8.25ch"},onClick:h,disabled:!c,children:"View"})})]})]}),u.jsx(w9e,{actionReason:e.reason})]})}function C9e({action:e,refreshModalData:t}){const[n,r]=w.useState(!1),{hasPerm:i}=fr(),s=Tt({method:"POST",path:"/history/revokeAction"}),a=e.type.charAt(0).toUpperCase()+e.type.slice(1),o=()=>{r(!0),s({data:{actionId:e.id},toastLoadingMessage:`Revoking ${e.type}...`,genericHandler:{successMsg:`${a} revoked.`},success:d=>{r(!1),"success"in d&&t()}})},l=!!e.revocation.timestamp,c=i(e.type==="warn"?"players.warn":"players.ban"),h=l?`${e.type} revoked`:c?`Revoke ${a}`:"Revoke (no permission)";return u.jsx("div",{className:"flex flex-col gap-4 px-1 mb-1 md:mb-4",children:u.jsxs("div",{className:"space-y-2",children:[u.jsxs("h3",{className:"text-xl",children:["Revoke ",a]}),u.jsxs("p",{className:"text-muted-foreground text-sm",children:["This is generall
|
|||
|
|
You can also leave it blank.`);return}m=_}if(((x=c.current)==null?void 0:x.value)!=="on"){s("You MUST agree to the terms.");return}const v=((b=o.current)==null?void 0:b.value)||"",y=((S=l.current)==null?void 0:S.value)||"";if(v.length<Xr.adminPasswordMinLength||v.length>Xr.adminPasswordMaxLength){s(`The password must be between ${Xr.adminPasswordMinLength} and ${Xr.adminPasswordMaxLength} characters long.`);return}else if(v!==y){s("The passwords do not match.");return}h.mutate({discordId:m,password:v})};return w.useEffect(()=>{try{const f=localStorage.getItem("authCredsAutofill");if(f){const[m,_]=JSON.parse(f);o.current.value=_??"",l.current.value=_??""}}catch(f){console.error("Passwords autofill failed",f)}},[]),u.jsxs("form",{onSubmit:d,className:"w-full text-left",children:[u.jsxs(Uu,{className:"flex flex-col gap-4",children:[u.jsxs("div",{children:["Cfx.re account",u.jsxs("div",{className:"rounded-md border bg-zinc-100 dark:bg-zinc-900 p-2 mt-2 flex flex-row justify-start items-center",children:[u.jsx(UW,{className:"h-16 w-16 text-3xl",username:t,profilePicture:n}),u.jsxs("div",{className:"text-left ml-4 overflow-hidden text-ellipsis",children:[u.jsx("span",{className:"text-2xl",children:t})," ",u.jsx("br",{}),u.jsx("code",{className:"text-muted-foreground",children:e})]})]})]}),u.jsx("input",{type:"text",name:"frm-username",className:"hidden",value:t,readOnly:!0}),u.jsxs("div",{className:"grid gap-2",children:[u.jsxs("div",{className:"flex flex-row justify-between items-center",children:[u.jsx(Ph,{htmlFor:"frm-discord",children:"Discord ID"}),u.jsx("span",{className:"text-muted-foreground text-xs",children:"(optional)"})]}),u.jsx(wt,{className:"dark:placeholder:text-zinc-800",id:"frm-discord",type:"text",ref:a,placeholder:"000000000000000000",disabled:h.isPending})]}),u.jsxs("div",{className:"grid gap-2",children:[u.jsxs("div",{className:"flex flex-row justify-between items-center",children:[u.jsx(Ph,{htmlFor:"frm-password",children:"Backup Password"}),u.jsxs("span",{className:"text-muted-foreground text-xs",children:["(",Xr.adminPasswordMinLength,"~",Xr.adminPasswordMaxLength," digits)"]})]}),u.jsx(wt,{className:"dark:placeholder:text-zinc-800",id:"frm-password",type:"password",ref:o,placeholder:"password",disabled:h.isPending,required:!0})]}),u.jsxs("div",{className:"grid gap-2",children:[u.jsx(Ph,{htmlFor:"frm-password2",children:"Confirm Password"}),u.jsx(wt,{className:"dark:placeholder:text-zinc-800",id:"frm-password2",type:"password",ref:l,placeholder:"password",disabled:h.isPending,required:!0})]}),u.jsxs("div",{className:"flex items-center space-x-2 mt-2",children:[u.jsx(NU,{id:"terms",ref:c,required:!0}),u.jsxs("label",{htmlFor:"terms",className:"text-sm font-medium leading-4 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:["I have read and agree to the ",u.jsx("a",{href:"https://fivem.net/terms",target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline",children:"Creator PLA"})," as well as the ",u.jsx("a",{href:"https://github.com/tabarra/txAdmin/blob/master/LICENSE",target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline",children:"txAdmin License"}),"."]})]})]}),u.jsxs(Vu,{className:"flex-col gap-2",children:[u.jsx("span",{className:"text-center text-destructive whitespace-pre-wrap",children:i}),u.jsxs(De,{className:"w-full",disabled:h.isPending,children:[h.isPending&&u.jsx(sn,{className:"mr-2 h-4 w-4 animate-spin"}),"Register"]})]})]})}function P9e(){const e=w.useRef(!1),[t,n]=w.useState(),[r,i]=w.useState(),s=pl({mutationKey:["auth"],mutationFn:({redirectUri:a})=>fetch("/auth/addMaster/callback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({redirectUri:a})}).then(o=>o.json()),onSuccess:a=>{"errorCode"in a||"errorTitle"in a?i(a):n(a)},onError:a=>{a.message.startsWith("NetworkError")?i({errorTitle:"Network Error",errorMessage:"If you closed txAdmin, please restart it and try again."}):i({errorTitle:"Unknown Error",errorMessage:a.message})}});return w.useEffect(()=>{if(!(t||e.current))return e.current=
|
|||
|
|
dark:brightness-90 dark:hover:brightness-110`,children:[u.jsx("div",{className:`absolute inset-0 -z-10 animate-pulse blur
|
|||
|
|
scale-0 group-hover:scale-100 transition-transform bg-black
|
|||
|
|
dark:bg-gradient-to-r dark:from-[#18E889] dark:to-[#01FFFF]`}),u.jsx("img",{className:"rounded-lg max-w-48 max-h-16 m-auto",src:window.txConsts.adsData.login.img})]}):null,u.jsxs("a",{href:"https://discord.gg/uAmsGa2",onClick:gf,target:"_blank",className:`w-48 h-16 relative group shadow-sm opacity-90 hover:opacity-100 brightness-110
|
|||
|
|
dark:brightness-95 dark:hover:brightness-110`,children:[u.jsx("div",{className:`absolute inset-0 -z-10 animate-pulse blur
|
|||
|
|
scale-0 group-hover:scale-100 transition-transform bg-black
|
|||
|
|
dark:bg-gradient-to-t dark:from-[#8567EC] dark:to-[#BD5CBF]`}),u.jsx("img",{className:"rounded-lg max-w-48 max-h-16 m-auto",src:"img/discord.png"})]})]}),u.jsx("div",{children:u.jsxs("small",{className:"text-muted-foreground text-sm font-light",children:["tx: ",u.jsxs("strong",{children:["v",window.txConsts.txaVersion]})," | fx: ",u.jsxs("strong",{children:["b",window.txConsts.fxsVersion]})]})})]})})}function I9e({children:e}){const{theme:t,setTheme:n}=Sz();return w.useEffect(()=>{const r=s=>{const a=s.matches;t==="dark"&&!a?n("light"):t==="light"&&a&&n("dark")},i=window.matchMedia("(prefers-color-scheme: dark)");return i.addEventListener("change",r),()=>{i.removeEventListener("change",r)}},[t]),u.jsx(u.Fragment,{children:e})}var y3={exports:{}};y3.exports=x3;var $9e=y3.exports.isMobile=x3;y3.exports.default=x3;const B9e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,F9e=/CrOS/,z9e=/android|ipad|playbook|silk/i;function x3(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let n=B9e.test(t)&&!F9e.test(t)||!!e.tablet&&z9e.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(n=!0),n}window.txConsts.isWebInterface||(console.log=()=>{},console.info=()=>{},console.warn=()=>{},console.error=()=>{},console.debug=()=>{},console.table=()=>{},console.group=()=>{},console.groupEnd=()=>{},console.groupCollapsed=()=>{},console.time=()=>{},console.timeEnd=()=>{},console.timeLog=()=>{});try{window.txIsMobile=$9e({tablet:!0})}catch{window.txIsMobile=!1}try{window.txBrowserLocale=(window==null?void 0:window.nuiSystemLanguages)??navigator.language??"en"}catch{window.txBrowserLocale="en"}try{const e=Intl.DateTimeFormat(window.txBrowserLocale,{hour:"numeric"}).resolvedOptions().hour12;window.txBrowserHour12=e??!0}catch{window.txBrowserHour12=!0}if(window.location.pathname.substring(0,8)==="/WebPipe"){console.info("Removing WebPipe prefix from the pathname.");const e=window.location.pathname.substring(8)+window.location.search+window.location.hash;window.history.replaceState(null,"",e)}const H9e=["/login","/addMaster"],_j=e=>H9e.some(t=>e.startsWith(t));function W9e(){ct(bie),ct(gX);const e=yie();return w.useEffect(()=>{if(e){const n=new URLSearchParams(window.location.search).get("r");n?Sie(n)?window.history.replaceState(null,"",n):window.history.replaceState(null,"","/"):_j(window.location.pathname)&&window.history.replaceState(null,"","/")}else!window.txConsts.hasMasterAccount&&!window.location.pathname.startsWith("/addMaster")?(console.log("No master account detected. Redirecting to addMaster page."),window.history.replaceState(null,"","/addMaster/pin")):_j(window.location.pathname)||(console.log("User is not authenticated. Redirecting to login page."),p5())},[e]),e?u.jsx(E9e,{}):u.jsx(O9e,{})}const U9e=new WQ;tb.createRoot(document.getElementById("root")).render(u.jsx(w.StrictMode,{children:u.jsx(Wj,{FallbackComponent:qY,children:u.jsx(KQ,{client:U9e,children:u.jsx(I9e,{children:u.jsx(W9e,{})})})})}));
|
|||
|
|
//# sourceMappingURL=index-d9le87ol.js.map
|