From 7b9951e37636b24b73df5eb15b461bed89f73ad6 Mon Sep 17 00:00:00 2001 From: afeiship <1290657123@qq.com> Date: Mon, 17 Apr 2023 23:35:15 +0800 Subject: [PATCH] Release 1.0.3 --- docs/assets/index.abc31415.css | 1 - docs/assets/index.c7b09a49.js | 57 ---------------------------------- docs/index.html | 4 +-- package.json | 2 +- 4 files changed, 3 insertions(+), 61 deletions(-) delete mode 100644 docs/assets/index.abc31415.css delete mode 100644 docs/assets/index.c7b09a49.js diff --git a/docs/assets/index.abc31415.css b/docs/assets/index.abc31415.css deleted file mode 100644 index aaaae26..0000000 --- a/docs/assets/index.abc31415.css +++ /dev/null @@ -1 +0,0 @@ -.react-kbar__animator{max-width:600px;width:100%;background:rgb(252,252,252);color:#1c1c1d;border-radius:8px;overflow:hidden;box-shadow:0 6px 20px #0003}.react-kbar__search{padding:12px 16px;font-size:16px;width:100%;box-sizing:border-box;outline:none;border:none;background:rgb(252,252,252);color:#1c1c1d}.react-kbar__group-name{padding:8px 16px;font-size:10px;text-transform:uppercase;opacity:.5}.react-kbar__hot-results{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.react-kbar__hot-results.active{background:rgba(0,0,0,.05);border-left:5px solid rgb(28,28,29)}.react-kbar__hot-results>div{display:flex;gap:8px;align-items:center;font-size:14px}.react-kbar__hot-results>div>div{display:flex;flex-direction:column}.react-kbar__shortcut{display:grid;grid-auto-flow:column;gap:4px}.react-kbar__kbd{font-family:monospace;background:rgba(0,0,0,.1019607843);padding:4px 6px;background:rgba(0,0,0,.1);border-radius:4px;font-size:14px} diff --git a/docs/assets/index.c7b09a49.js b/docs/assets/index.c7b09a49.js deleted file mode 100644 index b39a6c0..0000000 --- a/docs/assets/index.c7b09a49.js +++ /dev/null @@ -1,57 +0,0 @@ -const xp=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 o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}};xp();var E=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jc(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var X={exports:{}},J={};/** - * @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 ri=Symbol.for("react.element"),Op=Symbol.for("react.portal"),Rp=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Ap=Symbol.for("react.profiler"),Mp=Symbol.for("react.provider"),Ip=Symbol.for("react.context"),Np=Symbol.for("react.forward_ref"),jp=Symbol.for("react.suspense"),Tp=Symbol.for("react.memo"),zp=Symbol.for("react.lazy"),os=Symbol.iterator;function Lp(e){return e===null||typeof e!="object"?null:(e=os&&e[os]||e["@@iterator"],typeof e=="function"?e:null)}var Tc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zc=Object.assign,Lc={};function fr(e,t,n){this.props=e,this.context=t,this.refs=Lc,this.updater=n||Tc}fr.prototype.isReactComponent={};fr.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")};fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dc(){}Dc.prototype=fr.prototype;function Xu(e,t,n){this.props=e,this.context=t,this.refs=Lc,this.updater=n||Tc}var Zu=Xu.prototype=new Dc;Zu.constructor=Xu;zc(Zu,fr.prototype);Zu.isPureReactComponent=!0;var ls=Array.isArray,Fc=Object.prototype.hasOwnProperty,qu={current:null},Bc={key:!0,ref:!0,__self:!0,__source:!0};function Vc(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Fc.call(t,r)&&!Bc.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,M=x[q];if(0>>1;qi(H,B))wi(Z,H)?(x[q]=Z,x[w]=B,q=w):(x[q]=H,x[N]=B,q=N);else if(wi(Z,B))x[q]=Z,x[w]=B,q=w;else break e}}return L}function i(x,L){var B=x.sortIndex-L.sortIndex;return B!==0?B:x.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var a=[],s=[],h=1,d=null,f=3,y=!1,m=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(x){for(var L=n(s);L!==null;){if(L.callback===null)r(s);else if(L.startTime<=x)r(s),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(s)}}function S(x){if(g=!1,v(x),!m)if(n(a)!==null)m=!0,G(k);else{var L=n(s);L!==null&&U(S,L.startTime-x)}}function k(x,L){m=!1,g&&(g=!1,p(O),O=-1),y=!0;var B=f;try{for(v(L),d=n(a);d!==null&&(!(d.expirationTime>L)||x&&!I());){var q=d.callback;if(typeof q=="function"){d.callback=null,f=d.priorityLevel;var M=q(d.expirationTime<=L);L=e.unstable_now(),typeof M=="function"?d.callback=M:d===n(a)&&r(a),v(L)}else r(a);d=n(a)}if(d!==null)var j=!0;else{var N=n(s);N!==null&&U(S,N.startTime-L),j=!1}return j}finally{d=null,f=B,y=!1}}var $=!1,P=null,O=-1,F=5,C=-1;function I(){return!(e.unstable_now()-Cx||125q?(x.sortIndex=B,t(s,x),n(a)===null&&x===n(s)&&(g?(p(O),O=-1):g=!0,U(S,B-q))):(x.sortIndex=M,t(a,x),m||y||(m=!0,G(k))),x},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(x){var L=f;return function(){var B=f;f=L;try{return x.apply(this,arguments)}finally{f=B}}}})(Kc);Uc.exports=Kc;/** - * @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 Hc=X.exports,it=Uc.exports;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Ye(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ye(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){De[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var ea=/[\-:]([a-z])/g;function ta(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ea,ta);De[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ea,ta);De[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ea,ta);De[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function na(e,t,n,r){var i=De.hasOwnProperty(t)?De[t]:null;(i!==null?i.type!==0:r||!(2u||i[l]!==o[u]){var a=` -`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=u);break}}}finally{gl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kr(e):""}function Qp(e){switch(e.tag){case 5:return kr(e.type);case 16:return kr("Lazy");case 13:return kr("Suspense");case 19:return kr("SuspenseList");case 0:case 2:case 15:return e=Sl(e.type,!1),e;case 11:return e=Sl(e.type.render,!1),e;case 1:return e=Sl(e.type,!0),e;default:return""}}function ql(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 Ln:return"Fragment";case zn:return"Portal";case Yl:return"Profiler";case ra:return"StrictMode";case Xl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gc:return(e.displayName||"Context")+".Consumer";case Qc:return(e._context.displayName||"Context")+".Provider";case ia:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oa:return t=e.displayName||null,t!==null?t:ql(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return ql(e(t))}catch{}}return null}function Gp(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 ql(t);case 8:return t===ra?"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 fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yp(e){var t=Xc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=Yp(e))}function Zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function eo(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function fs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fn(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 qc(e,t){t=t.checked,t!=null&&na(e,"checked",t,!1)}function bl(e,t){qc(e,t);var n=fn(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")?eu(e,t.type,n):t.hasOwnProperty("defaultValue")&&eu(e,t.type,fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ds(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eu(e,t,n){(t!=="number"||eo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xp=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Xp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function tf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function nf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=tf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Zp=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ru(e,t){if(t){if(Zp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function iu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ou=null;function la(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lu=null,Zn=null,qn=null;function hs(e){if(e=li(e)){if(typeof lu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=To(t),lu(e.stateNode,e.type,t))}}function rf(e){Zn?qn?qn.push(e):qn=[e]:Zn=e}function of(){if(Zn){var e=Zn,t=qn;if(qn=Zn=null,hs(e),t)for(e=0;e>>=0,e===0?32:31-(uv(e)/av|0)|0}var Pi=64,xi=4194304;function Pr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function io(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~i;u!==0?r=Pr(u):(o&=l,o!==0&&(r=Pr(o)))}else l=n&~i,l!==0?r=Pr(l):o!==0&&(r=Pr(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function dv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=$r),Cs=String.fromCharCode(32),Ps=!1;function Pf(e,t){switch(e){case"keyup":return Bv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Uv(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(Ps=!0,Cs);case"textInput":return e=t.data,e===Cs&&Ps?null:e;default:return null}}function Kv(e,t){if(Dn)return e==="compositionend"||!va&&Pf(e,t)?(e=kf(),Hi=fa=Jt=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$s(n)}}function Af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mf(){for(var e=window,t=eo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=eo(e.document)}return t}function ha(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Jv(e){var t=Mf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Af(n.ownerDocument.documentElement,n)){if(r!==null&&ha(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=As(n,o);var l=As(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fn=null,du=null,Mr=null,pu=!1;function Ms(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pu||Fn==null||Fn!==eo(r)||(r=Fn,"selectionStart"in r&&ha(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Wr(Mr,r)||(Mr=r,r=uo(du,"onSelect"),0Un||(e.current=Su[Un],Su[Un]=null,Un--)}function pe(e,t){Un++,Su[Un]=e.current,e.current=t}var dn={},He=vn(dn),Je=vn(!1),Cn=dn;function nr(e,t){var n=e.type.contextTypes;if(!n)return dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function be(e){return e=e.childContextTypes,e!=null}function so(){me(Je),me(He)}function Ds(e,t,n){if(He.current!==dn)throw Error(R(168));pe(He,t),pe(Je,n)}function Bf(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(R(108,Gp(e)||"Unknown",i));return we({},n,r)}function co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,Cn=He.current,pe(He,e),pe(Je,Je.current),!0}function Fs(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Bf(e,t,Cn),r.__reactInternalMemoizedMergedChildContext=e,me(Je),me(He),pe(He,e)):me(Je),pe(Je,n)}var jt=null,zo=!1,Nl=!1;function Vf(e){jt===null?jt=[e]:jt.push(e)}function ch(e){zo=!0,Vf(e)}function hn(){if(!Nl&&jt!==null){Nl=!0;var e=0,t=ce;try{var n=jt;for(ce=1;e>=l,i-=l,Tt=1<<32-St(t)+i|n<O?(F=P,P=null):F=P.sibling;var C=f(p,P,v[O],S);if(C===null){P===null&&(P=F);break}e&&P&&C.alternate===null&&t(p,P),c=o(C,c,O),$===null?k=C:$.sibling=C,$=C,P=F}if(O===v.length)return n(p,P),ye&&mn(p,O),k;if(P===null){for(;OO?(F=P,P=null):F=P.sibling;var I=f(p,P,C.value,S);if(I===null){P===null&&(P=F);break}e&&P&&I.alternate===null&&t(p,P),c=o(I,c,O),$===null?k=I:$.sibling=I,$=I,P=F}if(C.done)return n(p,P),ye&&mn(p,O),k;if(P===null){for(;!C.done;O++,C=v.next())C=d(p,C.value,S),C!==null&&(c=o(C,c,O),$===null?k=C:$.sibling=C,$=C);return ye&&mn(p,O),k}for(P=r(p,P);!C.done;O++,C=v.next())C=y(P,p,O,C.value,S),C!==null&&(e&&C.alternate!==null&&P.delete(C.key===null?O:C.key),c=o(C,c,O),$===null?k=C:$.sibling=C,$=C);return e&&P.forEach(function(W){return t(p,W)}),ye&&mn(p,O),k}function _(p,c,v,S){if(typeof v=="object"&&v!==null&&v.type===Ln&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ei:e:{for(var k=v.key,$=c;$!==null;){if($.key===k){if(k=v.type,k===Ln){if($.tag===7){n(p,$.sibling),c=i($,v.props.children),c.return=p,p=c;break e}}else if($.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Gt&&Qs(k)===$.type){n(p,$.sibling),c=i($,v.props),c.ref=Sr(p,$,v),c.return=p,p=c;break e}n(p,$);break}else t(p,$);$=$.sibling}v.type===Ln?(c=kn(v.props.children,p.mode,S,v.key),c.return=p,p=c):(S=Ji(v.type,v.key,v.props,null,p.mode,S),S.ref=Sr(p,c,v),S.return=p,p=S)}return l(p);case zn:e:{for($=v.key;c!==null;){if(c.key===$)if(c.tag===4&&c.stateNode.containerInfo===v.containerInfo&&c.stateNode.implementation===v.implementation){n(p,c.sibling),c=i(c,v.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=Vl(v,p.mode,S),c.return=p,p=c}return l(p);case Gt:return $=v._init,_(p,c,$(v._payload),S)}if(Cr(v))return m(p,c,v,S);if(vr(v))return g(p,c,v,S);Ni(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,c!==null&&c.tag===6?(n(p,c.sibling),c=i(c,v),c.return=p,p=c):(n(p,c),c=Bl(v,p.mode,S),c.return=p,p=c),l(p)):n(p,c)}return _}var ir=Xf(!0),Zf=Xf(!1),ui={},Mt=vn(ui),Xr=vn(ui),Zr=vn(ui);function _n(e){if(e===ui)throw Error(R(174));return e}function Ca(e,t){switch(pe(Zr,t),pe(Xr,e),pe(Mt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nu(t,e)}me(Mt),pe(Mt,t)}function or(){me(Mt),me(Xr),me(Zr)}function qf(e){_n(Zr.current);var t=_n(Mt.current),n=nu(t,e.type);t!==n&&(pe(Xr,e),pe(Mt,n))}function Pa(e){Xr.current===e&&(me(Mt),me(Xr))}var ge=vn(0);function yo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jl=[];function xa(){for(var e=0;en?n:4,e(!0);var r=Tl.transition;Tl.transition={};try{e(!1),t()}finally{ce=n,Tl.transition=r}}function pd(){return pt().memoizedState}function vh(e,t,n){var r=un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vd(e))hd(t,n);else if(n=Wf(e,t,n,r),n!==null){var i=Qe();wt(n,e,r,i),md(n,t,r)}}function hh(e,t,n){var r=un(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vd(e))hd(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,u=o(l,n);if(i.hasEagerState=!0,i.eagerState=u,_t(u,l)){var a=t.interleaved;a===null?(i.next=i,Ea(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Wf(e,t,i,r),n!==null&&(i=Qe(),wt(n,e,r,i),md(n,t,r))}}function vd(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function hd(e,t){Ir=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function md(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,aa(e,n)}}var So={readContext:dt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},mh={readContext:dt,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:Ys,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,ad.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vh.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:Gs,useDebugValue:Ma,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=Gs(!1),t=e[0];return e=ph.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=xt();if(ye){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ie===null)throw Error(R(349));(xn&30)!==0||ed(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ys(nd.bind(null,r,o,e),[e]),r.flags|=2048,br(9,td.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xt(),t=Ie.identifierPrefix;if(ye){var n=zt,r=Tt;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ot]=t,e[Yr]=r,Pd(e,t,!1,!1),t.stateNode=e;e:{switch(l=iu(n,r),n){case"dialog":he("cancel",e),he("close",e),i=r;break;case"iframe":case"object":case"embed":he("load",e),i=r;break;case"video":case"audio":for(i=0;iur&&(t.flags|=128,r=!0,wr(o,!1),t.lanes=4194304)}else{if(!r)if(e=yo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ye)return Ue(t),null}else 2*Ee()-o.renderingStartTime>ur&&n!==1073741824&&(t.flags|=128,r=!0,wr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ee(),t.sibling=null,n=ge.current,pe(ge,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return La(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(tt&1073741824)!==0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Ch(e,t){switch(ya(t),t.tag){case 1:return be(t.type)&&so(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),me(Je),me(He),xa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Pa(t),null;case 13:if(me(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ge),null;case 4:return or(),null;case 10:return _a(t.type._context),null;case 22:case 23:return La(),null;case 24:return null;default:return null}}var Ti=!1,Ke=!1,Ph=typeof WeakSet=="function"?WeakSet:Set,z=null;function Qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Mu(e,t,n){try{n()}catch(r){_e(e,t,r)}}var rc=!1;function xh(e,t){if(vu=oo,e=Mf(),ha(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,u=-1,a=-1,s=0,h=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(u=l+i),d!==o||r!==0&&d.nodeType!==3||(a=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++s===i&&(u=l),f===o&&++h===r&&(a=l),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(hu={focusedElem:e,selectionRange:n},oo=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,_=m.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:mt(t.type,g),_);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){_e(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=rc,rc=!1,m}function Nr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Mu(t,n,o)}i=i.next}while(i!==r)}}function Fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Iu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rd(e){var t=e.alternate;t!==null&&(e.alternate=null,Rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ot],delete t[Yr],delete t[gu],delete t[ah],delete t[sh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $d(e){return e.tag===5||e.tag===3||e.tag===4}function ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ao));else if(r!==4&&(e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function ju(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}var Te=null,yt=!1;function Wt(e,t,n){for(n=n.child;n!==null;)Ad(e,t,n),n=n.sibling}function Ad(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:Ke||Qn(n,t);case 6:var r=Te,i=yt;Te=null,Wt(e,t,n),Te=r,yt=i,Te!==null&&(yt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(yt?(e=Te,n=n.stateNode,e.nodeType===8?Il(e.parentNode,n):e.nodeType===1&&Il(e,n),Kr(e)):Il(Te,n.stateNode));break;case 4:r=Te,i=yt,Te=n.stateNode.containerInfo,yt=!0,Wt(e,t,n),Te=r,yt=i;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&((o&2)!==0||(o&4)!==0)&&Mu(n,t,l),i=i.next}while(i!==r)}Wt(e,t,n);break;case 1:if(!Ke&&(Qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){_e(n,t,u)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,Wt(e,t,n),Ke=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ph),t.forEach(function(r){var i=Th.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rh(r/1960))-r,10e?16:e,bt===null)var r=!1;else{if(e=bt,bt=null,Eo=0,(re&6)!==0)throw Error(R(331));var i=re;for(re|=4,z=e.current;z!==null;){var o=z,l=o.child;if((z.flags&16)!==0){var u=o.deletions;if(u!==null){for(var a=0;aEe()-Ta?En(e,0):ja|=n),et(e,t)}function Dd(e,t){t===0&&((e.mode&1)===0?t=1:(t=xi,xi<<=1,(xi&130023424)===0&&(xi=4194304)));var n=Qe();e=Bt(e,t),e!==null&&(ii(e,t,n),et(e,n))}function jh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dd(e,n)}function Th(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Dd(e,n)}var Fd;Fd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)qe=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return qe=!1,Eh(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,ye&&(t.flags&1048576)!==0&&Uf(t,po,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var i=nr(t,He.current);bn(t,n),i=Ra(null,t,r,e,i,n);var o=$a();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,co(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ka(t),i.updater=Lo,t.stateNode=i,i._reactInternals=t,Cu(t,r,e,n),t=Ou(null,t,r,!0,o,n)):(t.tag=0,ye&&o&&ma(t),We(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Lh(r),e=mt(r,e),i){case 0:t=xu(null,t,r,e,n);break e;case 1:t=ec(null,t,r,e,n);break e;case 11:t=Js(null,t,r,e,n);break e;case 14:t=bs(null,t,r,mt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),xu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),ec(e,t,r,i,n);case 3:e:{if(Ed(t),e===null)throw Error(R(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Qf(e,t),mo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=lr(Error(R(423)),t),t=tc(e,t,r,n,i);break e}else if(r!==i){i=lr(Error(R(424)),t),t=tc(e,t,r,n,i);break e}else for(nt=rn(t.stateNode.containerInfo.firstChild),rt=t,ye=!0,gt=null,n=Zf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===i){t=Vt(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return qf(t),e===null&&_u(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,mu(r,i)?l=null:o!==null&&mu(r,o)&&(t.flags|=32),_d(e,t),We(e,t,l,n),t.child;case 6:return e===null&&_u(t),null;case 13:return kd(e,t,n);case 4:return Ca(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Js(e,t,r,i,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,pe(vo,r._currentValue),r._currentValue=l,o!==null)if(_t(o.value,l)){if(o.children===i.children&&!Je.current){t=Vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){l=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Lt(-1,n&-n),a.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var h=s.pending;h===null?a.next=a:(a.next=h.next,h.next=a),s.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Eu(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(R(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Eu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}We(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bn(t,n),i=dt(i),r=r(i),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),bs(e,t,r,i,n);case 15:return Sd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Xi(e,t),t.tag=1,be(r)?(e=!0,co(t)):e=!1,bn(t,n),Yf(t,r,i),Cu(t,r,i,n),Ou(null,t,r,!0,e,n);case 19:return Cd(e,t,n);case 22:return wd(e,t,n)}throw Error(R(156,t.tag))};function Bd(e,t){return df(e,t)}function zh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new zh(e,t,n,r)}function Fa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lh(e){if(typeof e=="function")return Fa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ia)return 11;if(e===oa)return 14}return 2}function an(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ji(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Fa(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ln:return kn(n.children,i,o,t);case ra:l=8,i|=8;break;case Yl:return e=ct(12,n,t,i|2),e.elementType=Yl,e.lanes=o,e;case Xl:return e=ct(13,n,t,i),e.elementType=Xl,e.lanes=o,e;case Zl:return e=ct(19,n,t,i),e.elementType=Zl,e.lanes=o,e;case Yc:return Vo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qc:l=10;break e;case Gc:l=9;break e;case ia:l=11;break e;case oa:l=14;break e;case Gt:l=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ct(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function kn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function Vo(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Yc,e.lanes=n,e.stateNode={isHidden:!1},e}function Bl(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Vl(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dh(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ba(e,t,n,r,i,o,l,u,a){return e=new Dh(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ka(o),e}function Fh(e,t,n){var r=30;)if(!W(C[T],I[T],D))return!1;return!0}function y(C,I,W,D){var T=C.size===I.size;if(T&&C.size){var Q={};C.forEach(function(G,U){if(T){var x=!1,L=0;I.forEach(function(B,q){!x&&!Q[L]&&(x=W(U,q,D)&&W(G,B,D),x&&(Q[L]=!0)),L++}),T=x}})}return T}var m="_owner",g=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function _(C,I,W,D){var T=i(C),Q=T.length;if(i(I).length!==Q)return!1;if(Q)for(var G=void 0;Q-- >0;){if(G=T[Q],G===m){var U=a(C),x=a(I);if((U||x)&&U!==x)return!1}if(!g(I,G)||!W(C[G],I[G],D))return!1}return!0}function p(C,I){return C.source===I.source&&C.global===I.global&&C.ignoreCase===I.ignoreCase&&C.multiline===I.multiline&&C.unicode===I.unicode&&C.sticky===I.sticky&&C.lastIndex===I.lastIndex}function c(C,I,W,D){var T=C.size===I.size;if(T&&C.size){var Q={};C.forEach(function(G){if(T){var U=!1,x=0;I.forEach(function(L){!U&&!Q[x]&&(U=W(G,L,D),U&&(Q[x]=!0)),x++}),T=U}})}return T}var v=typeof Map=="function",S=typeof Set=="function";function k(C){var I=typeof C=="function"?C(W):W;function W(D,T,Q){if(D===T)return!0;if(D&&T&&typeof D=="object"&&typeof T=="object"){if(l(D)&&l(T))return _(D,T,I,Q);var G=Array.isArray(D),U=Array.isArray(T);return G||U?G===U&&f(D,T,I,Q):(G=D instanceof Date,U=T instanceof Date,G||U?G===U&&o(D.getTime(),T.getTime()):(G=D instanceof RegExp,U=T instanceof RegExp,G||U?G===U&&p(D,T):u(D)||u(T)?D===T:v&&(G=D instanceof Map,U=T instanceof Map,G||U)?G===U&&y(D,T,I,Q):S&&(G=D instanceof Set,U=T instanceof Set,G||U)?G===U&&c(D,T,I,Q):_(D,T,I,Q)))}return D!==D&&T!==T}return W}var $=k(),P=k(function(){return o}),O=k(d()),F=k(d(o));n.circularDeepEqual=O,n.circularShallowEqual=F,n.createCustomEqual=k,n.deepEqual=$,n.sameValueZeroEqual=o,n.shallowEqual=P,Object.defineProperty(n,"__esModule",{value:!0})})})(Bu,Bu.exports);var om="Invariant failed";function lm(e,t){if(!e)throw new Error(om)}var Wa=lm,ai={},si={},Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.Command=void 0;var um=function(){function e(t,n){var r=this;n===void 0&&(n={}),this.perform=function(){var i=t.perform();if(typeof i=="function"){var o=n.history;!o||(r.historyItem&&o.remove(r.historyItem),r.historyItem=o.add({perform:t.perform,negate:i}),r.history={undo:function(){return o.undo(r.historyItem)},redo:function(){return o.redo(r.historyItem)}})}}}return e}();Go.Command=um;var am=E&&E.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});si.ActionImpl=void 0;var sm=am(Wa),cm=Go,fm=le,dm=function(e){var t=e.keywords,n=t===void 0?"":t,r=e.section,i=r===void 0?"":r;return(n+" "+(typeof i=="string"?i:i.name)).trim()},pm=function(){function e(t,n){var r=this,i;this.priority=fm.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,t),this.id=t.id,this.name=t.name,this.keywords=dm(t);var o=t.perform;if(this.command=o&&new cm.Command({perform:function(){return o(r)}},{history:n.history}),this.perform=(i=this.command)===null||i===void 0?void 0:i.perform,t.parent){var l=n.store[t.parent];(0,sm.default)(l,"attempted to create an action whos parent: "+t.parent+" does not exist in the store."),l.addChild(this)}}return e.prototype.addChild=function(t){t.ancestors.unshift(this);for(var n=this.parentActionImpl;n;)t.ancestors.unshift(n),n=n.parentActionImpl;this.children.push(t)},e.prototype.removeChild=function(t){var n=this,r=this.children.indexOf(t);r!==-1&&this.children.splice(r,1),t.children&&t.children.forEach(function(i){n.removeChild(i)})},Object.defineProperty(e.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),e.create=function(t,n){return new e(t,n)},e}();si.ActionImpl=pm;var Po=E&&E.__assign||function(){return Po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return this.subscribers.splice(n,1)}},e.prototype.notify=function(){this.subscribers.forEach(function(t){return t.collect()})},e}(),Am=function(){function e(t,n){this.collector=t,this.onChange=n}return e.prototype.collect=function(){try{var t=this.collector();(0,Cm.deepEqual)(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(n){console.warn(n)}},e}(),Yo={},Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});var Mm=["Shift","Meta","Alt","Control"],Im=1e3,Nm="keydown",jm=typeof navigator=="object"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function Vu(e,t){return typeof e.getModifierState=="function"?e.getModifierState(t):!1}function Tm(e){return e.trim().split(" ").map(function(t){var n=t.split(/\b\+/),r=n.pop();return n=n.map(function(i){return i==="$mod"?jm:i}),[n,r]})}function zm(e,t){return/^[^A-Za-z0-9]$/.test(e.key)&&t[1]===e.key?!0:!(t[1].toUpperCase()!==e.key.toUpperCase()&&t[1]!==e.code||t[0].find(function(n){return!Vu(e,n)})||Mm.find(function(n){return!t[0].includes(n)&&t[1]!==n&&Vu(e,n)}))}function Lm(e,t,n){var r,i;n===void 0&&(n={});var o=(r=n.timeout)!==null&&r!==void 0?r:Im,l=(i=n.event)!==null&&i!==void 0?i:Nm,u=Object.keys(t).map(function(d){return[Tm(d),t[d]]}),a=new Map,s=null,h=function(d){d instanceof KeyboardEvent&&(u.forEach(function(f){var y=f[0],m=f[1],g=a.get(y),_=g||y,p=_[0],c=zm(d,p);c?_.length>1?a.set(y,_.slice(1)):(a.delete(y),m(d)):Vu(d,d.key)||a.delete(y)}),s&&clearTimeout(s),s=setTimeout(a.clear.bind(a),o))};return e.addEventListener(l,h),function(){e.removeEventListener(l,h)}}Qa.default=Lm;var Dm=E&&E.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Fm=E&&E.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Bm=E&&E.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Dm(t,e,n);return Fm(t,e),t},Vm=E&&E.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InternalEvents=void 0;var Rt=Bm(X.exports),Zd=Vm(Qa),ze=In,Xo=Et,qd=le;function Um(){return Km(),Hm(),Qm(),Gm(),null}Yo.InternalEvents=Um;function Km(){var e,t,n=(0,Xo.useKBar)(function(s){return{visualState:s.visualState,showing:s.visualState!==ze.VisualState.hidden}}),r=n.query,i=n.options,o=n.visualState,l=n.showing;Rt.useEffect(function(){var s,h=i.toggleShortcut||"$mod+k",d=(0,Zd.default)(window,(s={},s[h]=function(f){var y,m,g,_;f.defaultPrevented||(f.preventDefault(),r.toggle(),l?(m=(y=i.callbacks)===null||y===void 0?void 0:y.onClose)===null||m===void 0||m.call(y):(_=(g=i.callbacks)===null||g===void 0?void 0:g.onOpen)===null||_===void 0||_.call(g))},s.Escape=function(f){var y,m;l&&(f.stopPropagation(),f.preventDefault(),(m=(y=i.callbacks)===null||y===void 0?void 0:y.onClose)===null||m===void 0||m.call(y)),r.setVisualState(function(g){return g===ze.VisualState.hidden||g===ze.VisualState.animatingOut?g:ze.VisualState.animatingOut})},s));return function(){d()}},[i.callbacks,i.toggleShortcut,r,l]);var u=Rt.useRef(),a=Rt.useCallback(function(s){var h,d,f=0;s===ze.VisualState.animatingIn&&(f=((h=i.animations)===null||h===void 0?void 0:h.enterMs)||0),s===ze.VisualState.animatingOut&&(f=((d=i.animations)===null||d===void 0?void 0:d.exitMs)||0),clearTimeout(u.current),u.current=setTimeout(function(){var y=!1;r.setVisualState(function(){var m=s===ze.VisualState.animatingIn?ze.VisualState.showing:ze.VisualState.hidden;return m===ze.VisualState.hidden&&(y=!0),m}),y&&r.setCurrentRootAction(null)},f)},[(e=i.animations)===null||e===void 0?void 0:e.enterMs,(t=i.animations)===null||t===void 0?void 0:t.exitMs,r]);Rt.useEffect(function(){switch(o){case ze.VisualState.animatingIn:case ze.VisualState.animatingOut:a(o);break}},[a,o])}function Hm(){var e=(0,Xo.useKBar)(function(r){return{visualState:r.visualState}}),t=e.visualState,n=e.options;Rt.useEffect(function(){if(!n.disableDocumentLock)if(t===ze.VisualState.animatingIn){if(document.body.style.overflow="hidden",!n.disableScrollbarManagement){var r=(0,qd.getScrollbarWidth)(),i=getComputedStyle(document.body)["margin-right"];i&&(r+=Number(i.replace(/\D/g,""))),document.body.style.marginRight=r+"px"}}else t===ze.VisualState.hidden&&(document.body.style.removeProperty("overflow"),n.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))},[n.disableDocumentLock,n.disableScrollbarManagement,t])}var vc=new WeakSet;function Wm(e){return function(t){vc.has(t)||(e(t),vc.add(t))}}function Qm(){var e=(0,Xo.useKBar)(function(o){return{actions:o.actions,open:o.visualState===ze.VisualState.showing}}),t=e.actions,n=e.query,r=e.open,i=e.options;Rt.useEffect(function(){var o;if(!r){for(var l=Object.keys(t).map(function(_){return t[_]}),u=[],a=0,s=l;a=0;)s=Uu(e,t,n,r,u+1,o+1),s>a&&(u===i?s*=hc:mc.test(e.charAt(u-1))?(s*=bm,d=e.slice(i,u-1).match(i0),d&&i>0&&(s*=Math.pow(Kl,d.length))):mc.test(e.slice(i,u-1))?(s*=t0,i>0&&(s*=Math.pow(Kl,u-i))):(s*=e0,i>0&&(s*=Math.pow(Kl,u-i))),e.charAt(u)!==t.charAt(o)&&(s*=n0)),ss&&(s=h*Ul)),s>a&&(a=s),u=n.indexOf(l,u+1);return a}function o0(e,t){return Uu(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var l0=o0;(function(e){var t=E&&E.__createBinding||(Object.create?function(f,y,m,g){g===void 0&&(g=m),Object.defineProperty(f,g,{enumerable:!0,get:function(){return y[m]}})}:function(f,y,m,g){g===void 0&&(g=m),f[g]=y[m]}),n=E&&E.__setModuleDefault||(Object.create?function(f,y){Object.defineProperty(f,"default",{enumerable:!0,value:y})}:function(f,y){f.default=y}),r=E&&E.__importStar||function(f){if(f&&f.__esModule)return f;var y={};if(f!=null)for(var m in f)m!=="default"&&Object.prototype.hasOwnProperty.call(f,m)&&t(y,f,m);return n(y,f),y},i=E&&E.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.useDeepMatches=e.useMatches=e.NO_GROUP=void 0;var o=r(X.exports),l=Et,u=le,a=i(l0);e.NO_GROUP={name:"none",priority:u.Priority.NORMAL};function s(f,y){return y.priority-f.priority}function h(){var f=(0,l.useKBar)(function(P){return{search:P.searchQuery,actions:P.actions,rootActionId:P.currentRootActionId}}),y=f.search,m=f.actions,g=f.rootActionId,_=o.useMemo(function(){return Object.keys(m).reduce(function(P,O){var F=m[O];if(!F.parent&&!g&&P.push(F),F.id===g)for(var C=0;C0){for(var T=I[D].children,Q=0;Q0&&c.push({score:k,action:S})}return c},[_,p])}e.useDeepMatches=h})(Gd);var Zo={};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>u0(n,t))}const Jd=X.exports.forwardRef((e,t)=>{const{children:n,...r}=e,i=X.exports.Children.toArray(n),o=i.find(c0);if(o){const l=o.props.children,u=i.map(a=>a===o?X.exports.Children.count(l)>1?X.exports.Children.only(null):X.exports.isValidElement(l)?l.props.children:null:a);return X.exports.createElement(Ku,sr({},r,{ref:t}),X.exports.isValidElement(l)?X.exports.cloneElement(l,void 0,u):null)}return X.exports.createElement(Ku,sr({},r,{ref:t}),n)});Jd.displayName="Slot";const Ku=X.exports.forwardRef((e,t)=>{const{children:n,...r}=e;return X.exports.isValidElement(n)?X.exports.cloneElement(n,{...f0(r,n.props),ref:a0(t,n.ref)}):X.exports.Children.count(n)>1?X.exports.Children.only(null):null});Ku.displayName="SlotClone";const s0=({children:e})=>X.exports.createElement(X.exports.Fragment,null,e);function c0(e){return X.exports.isValidElement(e)&&e.type===s0}function f0(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{o(...u),i(...u)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const d0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],p0=d0.reduce((e,t)=>{const n=X.exports.forwardRef((r,i)=>{const{asChild:o,...l}=r,u=o?Jd:t;return X.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),X.exports.createElement(u,sr({},l,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),bd=X.exports.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?Hh.createPortal(X.exports.createElement(p0.div,sr({},i,{ref:t})),r):null}),v0=bd;var h0=Object.freeze(Object.defineProperty({__proto__:null,Portal:bd,Root:v0},Symbol.toStringTag,{value:"Module"})),m0=jc(h0),y0=E&&E.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),g0=E&&E.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),S0=E&&E.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&y0(t,e,n);return g0(t,e),t};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.KBarPortal=void 0;var w0=m0,_0=S0(X.exports),E0=In,k0=Et;function C0(e){var t=(0,k0.useKBar)(function(n){return{showing:n.visualState!==E0.VisualState.hidden}}).showing;return t?_0.createElement(w0.Portal,null,e.children):null}Zo.KBarPortal=C0;var qo={},ti=E&&E.__assign||function(){return ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)&&(n[i]=e[i]);return n}var M0=["bottom","height","left","right","top","width"],I0=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),M0.some(function(r){return t[r]!==n[r]})},Qt=new Map,ep,N0=function e(){var t=[];Qt.forEach(function(n,r){var i=r.getBoundingClientRect();I0(i,n.rect)&&(n.rect=i,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),ep=window.requestAnimationFrame(e)};function j0(e,t){return{observe:function(){var r=Qt.size===0;Qt.has(e)?Qt.get(e).callbacks.push(t):Qt.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&N0()},unobserve:function(){var r=Qt.get(e);if(r){var i=r.callbacks.indexOf(t);i>=0&&r.callbacks.splice(i,1),r.callbacks.length||Qt.delete(e),Qt.size||cancelAnimationFrame(ep)}}}}var Oo=typeof window!="undefined"?V.useLayoutEffect:V.useEffect;function T0(e,t){t===void 0&&(t={width:0,height:0});var n=V.useState(e.current),r=n[0],i=n[1],o=V.useReducer(z0,t),l=o[0],u=o[1],a=V.useRef(!1);return Oo(function(){e.current!==r&&i(e.current)}),Oo(function(){if(r&&!a.current){a.current=!0;var s=r.getBoundingClientRect();u({rect:s})}},[r]),V.useEffect(function(){if(!!r){var s=j0(r,function(h){u({rect:h})});return s.observe(),function(){s.unobserve()}}},[r]),l}function z0(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e}var L0=function(){return 50},D0=function(t){return t},F0=function(t,n){var r=n?"offsetWidth":"offsetHeight";return t[r]},tp=function(t){for(var n=Math.max(t.start-t.overscan,0),r=Math.min(t.end+t.overscan,t.size-1),i=[],o=n;o<=r;o++)i.push(o);return i};function B0(e){var t,n=e.size,r=n===void 0?0:n,i=e.estimateSize,o=i===void 0?L0:i,l=e.overscan,u=l===void 0?1:l,a=e.paddingStart,s=a===void 0?0:a,h=e.paddingEnd,d=h===void 0?0:h,f=e.parentRef,y=e.horizontal,m=e.scrollToFn,g=e.useObserver,_=e.initialRect,p=e.onScrollElement,c=e.scrollOffsetFn,v=e.keyExtractor,S=v===void 0?D0:v,k=e.measureSize,$=k===void 0?F0:k,P=e.rangeExtractor,O=P===void 0?tp:P,F=y?"width":"height",C=y?"scrollLeft":"scrollTop",I=V.useRef({scrollOffset:0,measurements:[]}),W=V.useState(0),D=W[0],T=W[1];I.current.scrollOffset=D;var Q=g||T0,G=Q(f,_),U=G[F];I.current.outerSize=U;var x=V.useCallback(function(ue){f.current&&(f.current[C]=ue)},[f,C]),L=m||x;m=V.useCallback(function(ue){L(ue,x)},[x,L]);var B=V.useState({}),q=B[0],M=B[1],j=V.useCallback(function(){return M({})},[]),N=V.useRef([]),H=V.useMemo(function(){var ue=N.current.length>0?Math.min.apply(Math,N.current):0;N.current=[];for(var ee=I.current.measurements.slice(0,ue),se=ue;se=oe+Xe?ae="end":ae="start"),ae==="start"?m(ue):ae==="end"?m(ue-Xe):ae==="center"&&m(ue-Xe/2)},[m]),te=V.useCallback(function(ue,ee){var se=ee===void 0?{}:ee,$e=se.align,ae=$e===void 0?"auto":$e,K=A0(se,["align"]),oe=I.current,Xe=oe.measurements,Kt=oe.scrollOffset,Be=oe.outerSize,Ht=Xe[Math.max(0,Math.min(ue,r-1))];if(!!Ht){if(ae==="auto")if(Ht.end>=Kt+Be)ae="end";else if(Ht.start<=Kt)ae="start";else return;var wi=ae==="center"?Ht.start+Ht.size/2:ae==="end"?Ht.end:Ht.start;Ce(wi,gn({align:ae},K))}},[Ce,r]),xe=V.useCallback(function(){for(var ue=arguments.length,ee=new Array(ue),se=0;sei)n=o-1;else return o}return t>0?t-1:0};function U0(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,i=t.length-1,o=function(s){return t[s].start},l=V0(0,i,o,r),u=l;uDi?p-1:p;if(typeof r.current[c]=="string"){if(c===0)return p;c-=1}return c})):g.key==="ArrowDown"||g.ctrlKey&&g.key==="n"?(g.preventDefault(),l.setActiveIndex(function(p){var c=p{var o;const i=V.useMemo(()=>{if(!n)return e.ancestors;const l=e.ancestors.findIndex(u=>u.id===n);return e.ancestors.slice(l+1)},[e.ancestors,n]);return V.createElement("div",{ref:r,className:cy("react-kbar__hot-results",{active:t})},V.createElement("div",null,e.icon&&e.icon,V.createElement("div",null,V.createElement("div",null,i.length>0&&i.map(l=>V.createElement(V.Fragment,{key:l.id},V.createElement("span",{style:{opacity:.5,marginRight:8}},l.name),V.createElement("span",{style:{marginRight:8}},"\u203A"))),V.createElement("span",null,e.name)),e.subtitle&&V.createElement("span",{style:{fontSize:12}},e.subtitle))),(o=e.shortcut)!=null&&o.length?V.createElement("div",{"aria-hidden":!0,className:"react-kbar__shortcut"},e.shortcut.map(l=>V.createElement("kbd",{className:"react-kbar__kbd",key:l},l))):null)});function dy(){const{results:e,rootActionId:t}=qt.useMatches();return V.createElement(qt.KBarResults,{items:e,onRender:({item:n,active:r})=>typeof n=="string"?V.createElement("div",{className:"react-kbar__group-name"},n):V.createElement(fy,{action:n,active:r,currentRootActionId:t})})}const py="react-kbar";class tl extends X.exports.Component{render(){const{className:t,actions:n,children:r,...i}=this.props;return V.createElement(qt.KBarProvider,{actions:n,...i},V.createElement(qt.KBarPortal,null,V.createElement(qt.KBarPositioner,null,V.createElement(qt.KBarAnimator,{className:"react-kbar__animator"},V.createElement(qt.KBarSearch,{className:"react-kbar__search"}),V.createElement(dy,null)))),r)}}tl.displayName=py;tl.version="__VERSION__";tl.defaultProps={};var Ya={exports:{}},de={};/** @license React v17.0.2 - * react-is.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 nl=60103,rl=60106,ci=60107,fi=60108,di=60114,pi=60109,vi=60110,hi=60112,mi=60113,Xa=60120,yi=60115,gi=60116,ip=60121,op=60122,lp=60117,up=60129,ap=60131;if(typeof Symbol=="function"&&Symbol.for){var je=Symbol.for;nl=je("react.element"),rl=je("react.portal"),ci=je("react.fragment"),fi=je("react.strict_mode"),di=je("react.profiler"),pi=je("react.provider"),vi=je("react.context"),hi=je("react.forward_ref"),mi=je("react.suspense"),Xa=je("react.suspense_list"),yi=je("react.memo"),gi=je("react.lazy"),ip=je("react.block"),op=je("react.server.block"),lp=je("react.fundamental"),up=je("react.debug_trace_mode"),ap=je("react.legacy_hidden")}function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nl:switch(e=e.type,e){case ci:case di:case fi:case mi:case Xa:return e;default:switch(e=e&&e.$$typeof,e){case vi:case hi:case gi:case yi:case pi:return e;default:return t}}case rl:return t}}}var vy=pi,hy=nl,my=hi,yy=ci,gy=gi,Sy=yi,wy=rl,_y=di,Ey=fi,ky=mi;de.ContextConsumer=vi;de.ContextProvider=vy;de.Element=hy;de.ForwardRef=my;de.Fragment=yy;de.Lazy=gy;de.Memo=Sy;de.Portal=wy;de.Profiler=_y;de.StrictMode=Ey;de.Suspense=ky;de.isAsyncMode=function(){return!1};de.isConcurrentMode=function(){return!1};de.isContextConsumer=function(e){return kt(e)===vi};de.isContextProvider=function(e){return kt(e)===pi};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nl};de.isForwardRef=function(e){return kt(e)===hi};de.isFragment=function(e){return kt(e)===ci};de.isLazy=function(e){return kt(e)===gi};de.isMemo=function(e){return kt(e)===yi};de.isPortal=function(e){return kt(e)===rl};de.isProfiler=function(e){return kt(e)===di};de.isStrictMode=function(e){return kt(e)===fi};de.isSuspense=function(e){return kt(e)===mi};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ci||e===di||e===up||e===fi||e===mi||e===Xa||e===ap||typeof e=="object"&&e!==null&&(e.$$typeof===gi||e.$$typeof===yi||e.$$typeof===pi||e.$$typeof===vi||e.$$typeof===hi||e.$$typeof===lp||e.$$typeof===ip||e[0]===op)};de.typeOf=kt;Ya.exports=de;function Cy(e){function t(M,j,N,H,w){for(var Z=0,A=0,ve=0,ne=0,ie,Y,ke=0,Fe=0,b,Ce=b=ie=0,te=0,xe=0,ue=0,ee=0,se=N.length,$e=se-1,ae,K="",oe="",Xe="",Kt="",Be;teie)&&(ee=(K=K.replace(" ",":")).length),0H&&(H=(j=j.trim()).charCodeAt(0)),H){case 38:return j.replace(p,"$1"+M.trim());case 58:return M.trim()+j.replace(p,"$1"+M.trim());default:if(0<1*N&&0A.charCodeAt(8))break;case 115:w=w.replace(A,"-webkit-"+A)+";"+w;break;case 207:case 102:w=w.replace(A,"-webkit-"+(102N.charCodeAt(0)&&(N=N.trim()),q=N,N=[q],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Ky=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,l=o;n>=l;)(l<<=1)<0&&Si(16,""+n);this.groupSizes=new Uint32Array(l),this.groupSizes.set(i),this.length=l;for(var u=o;u=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),l=o+i,u=o;u=Lr&&(Lr=t+1),bi.set(e,t),$o.set(t,e)},Qy="style["+cr+'][data-styled-version="5.3.9"]',Gy=new RegExp("^"+cr+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Yy=function(e,t,n){for(var r,i=n.split(","),o=0,l=i.length;o=0;s--){var h=a[s];if(h&&h.nodeType===1&&h.hasAttribute(cr))return h}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(cr,"active"),r.setAttribute("data-styled-version","5.3.9");var l=Zy();return l&&r.setAttribute("nonce",l),n.insertBefore(r,o),r},qy=function(){function e(n){var r=this.element=pp(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,l=0,u=o.length;l=0){var i=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(d+=f+",")}),o+=""+s+h+'{content:"'+d+`"}/*!sc*/ -`}}}return o}(this)},e}(),tg=/(a)(d)/gi,$c=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=$c(t%52)+n;return($c(t%52)+n).replace(tg,"$1-$2")}var Yn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},vp=function(e){return Yn(5381,e)};function hp(e){for(var t=0;t>>0);if(!n.hasNameForId(i,u)){var a=r(l,"."+u,void 0,i);n.insertRules(i,u,a)}o.push(u),this.staticRulesId=u}else{for(var s=this.rules.length,h=Yn(this.baseHash,r.hash),d="",f=0;f>>0);if(!n.hasNameForId(i,_)){var p=r(d,"."+_,void 0,i);n.insertRules(i,_,p)}o.push(_)}}return o.join(" ")},e}(),ig=/^\s*\/\/.*$/gm,og=[":","[",".","#"];function lg(e){var t,n,r,i,o=e===void 0?cn:e,l=o.options,u=l===void 0?cn:l,a=o.plugins,s=a===void 0?Ro:a,h=new Cy(u),d=[],f=function(g){function _(p){if(p)try{g(p+"}")}catch{}}return function(p,c,v,S,k,$,P,O,F,C){switch(p){case 1:if(F===0&&c.charCodeAt(0)===64)return g(c+";"),"";break;case 2:if(O===0)return c+"/*|*/";break;case 3:switch(O){case 102:case 112:return g(v[0]+c),"";default:return c+(C===0?"/*|*/":"")}case-2:c.split("/*|*/}").forEach(_)}}}(function(g){d.push(g)}),y=function(g,_,p){return _===0&&og.indexOf(p[n.length])!==-1||p.match(i)?g:"."+t};function m(g,_,p,c){c===void 0&&(c="&");var v=g.replace(ig,""),S=_&&p?p+" "+_+" { "+v+" }":v;return t=c,n=_,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),h(p||!_?"":_,S)}return h.use([].concat(s,[function(g,_,p){g===2&&p.length&&p[0].lastIndexOf(n)>0&&(p[0]=p[0].replace(r,y))},f,function(g){if(g===-2){var _=d;return d=[],_}}])),m.hash=s.length?s.reduce(function(g,_){return _.name||Si(15),Yn(g,_.name)},5381).toString():"",m}var mp=V.createContext();mp.Consumer;var yp=V.createContext(),ug=(yp.Consumer,new Ao),Gu=lg();function gp(){return X.exports.useContext(mp)||ug}function Sp(){return X.exports.useContext(yp)||Gu}var ag=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Gu);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.toString=function(){return Si(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=Gu),this.name+t.hash},e}(),sg=/([A-Z])/,cg=/([A-Z])/g,fg=/^ms-/,dg=function(e){return"-"+e.toLowerCase()};function Ac(e){return sg.test(e)?e.replace(cg,dg).replace(fg,"-ms-"):e}var Mc=function(e){return e==null||e===!1||e===""};function $n(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],l=0,u=e.length;l1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,vg=/(^-|-$)/g;function Hl(e){return e.replace(pg,"-").replace(vg,"")}var Ep=function(e){return Qu(vp(e)>>>0)};function Bi(e){return typeof e=="string"&&!0}var Yu=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},hg=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function mg(e,t,n){var r=e[n];Yu(t)&&Yu(r)?kp(r,t):e[n]=t}function kp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(C[O]=$[O]);return C}(t,["componentId"]),k=v&&v+"-"+(Bi(c)?c:Hl(Oc(c)));return Cp(c,$t({},S,{attrs:f,componentId:k}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(c){this._foldedDefaultProps=r?kp({},e.defaultProps,c):c}}),Object.defineProperty(m,"toString",{value:function(){return"."+m.styledComponentId}}),i&&By(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Nc=function(e){return function t(n,r,i){if(i===void 0&&(i=cn),!Ya.exports.isValidElementType(r))return Si(1,String(r));var o=function(){return n(r,i,wp.apply(void 0,arguments))};return o.withConfig=function(l){return t(n,r,$t({},i,{},l))},o.attrs=function(l){return t(n,r,$t({},i,{attrs:Array.prototype.concat(i.attrs,l).filter(Boolean)}))},o}(Cp,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Nc[e]=Nc(e)});var yg=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=hp(n),Ao.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,i,o){var l=o($n(this.rules,r,i,o).join(""),""),u=this.componentId+n;i.insertRules(u,u,l)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,i,o){n>2&&Ao.registerId(this.componentId+n),this.removeStyles(n,i),this.createStyles(n,r,i,o)},e}();function gg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rwindow.location.pathname="blog"},{id:"contact",name:"Contact",shortcut:["c"],keywords:"email",perform:()=>window.location.pathname="contact"}];var _g=()=>V.createElement(V.Fragment,null,V.createElement(tl,{actions:wg},V.createElement("button",null,"Cmd + K active ME \u{1F984}")),V.createElement(Sg,null));Ql.createRoot(document.getElementById("root")).render(V.createElement(_g,null)); diff --git a/docs/index.html b/docs/index.html index 07c3b49..30e7fd4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,8 +4,8 @@ Vite App - - + +
diff --git a/package.json b/package.json index a0af5d5..6ca86c4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@jswork/react-kbar", "homepage": "https://js.work", - "version": "1.0.2", + "version": "1.0.3", "description": "React kbar wrapper.", "license": "MIT", "main": "dist/index.js",