docmind-cli 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -2
- package/dist/index.js +21019 -0
- package/dist/preview-client.js +447 -0
- package/dist/preview.css +2 -0
- package/package.json +22 -4
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
var process=globalThis.process||{env:{}};
|
|
2
|
+
"use strict";(()=>{var UO=Object.create;var _m=Object.defineProperty;var $O=Object.getOwnPropertyDescriptor;var HO=Object.getOwnPropertyNames;var jO=Object.getPrototypeOf,FO=Object.prototype.hasOwnProperty;var V=(e,t)=>()=>(e&&(t=e(e=0)),t);var si=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tm=(e,t)=>{for(var n in t)_m(e,n,{get:t[n],enumerable:!0})},qO=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of HO(t))!FO.call(e,i)&&i!==n&&_m(e,i,{get:()=>t[i],enumerable:!(r=$O(t,i))||r.enumerable});return e};var M=(e,t,n)=>(n=e!=null?UO(jO(e)):{},qO(t||!e||!e.__esModule?_m(n,"default",{value:e,enumerable:!0}):n,e));var g1=si(He=>{"use strict";var Am=Symbol.for("react.transitional.element"),GO=Symbol.for("react.portal"),KO=Symbol.for("react.fragment"),WO=Symbol.for("react.strict_mode"),YO=Symbol.for("react.profiler"),VO=Symbol.for("react.consumer"),XO=Symbol.for("react.context"),QO=Symbol.for("react.forward_ref"),ZO=Symbol.for("react.suspense"),JO=Symbol.for("react.memo"),c1=Symbol.for("react.lazy"),eC=Symbol.for("react.activity"),o1=Symbol.iterator;function tC(e){return e===null||typeof e!="object"?null:(e=o1&&e[o1]||e["@@iterator"],typeof e=="function"?e:null)}var u1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d1=Object.assign,f1={};function ds(e,t,n){this.props=e,this.context=t,this.refs=f1,this.updater=n||u1}ds.prototype.isReactComponent={};ds.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};ds.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p1(){}p1.prototype=ds.prototype;function Rm(e,t,n){this.props=e,this.context=t,this.refs=f1,this.updater=n||u1}var Om=Rm.prototype=new p1;Om.constructor=Rm;d1(Om,ds.prototype);Om.isPureReactComponent=!0;var a1=Array.isArray;function km(){}var Pt={H:null,A:null,T:null,S:null},m1=Object.prototype.hasOwnProperty;function Cm(e,t,n){var r=n.ref;return{$$typeof:Am,type:e,key:t,ref:r!==void 0?r:null,props:n}}function nC(e,t){return Cm(e.type,t,e.props)}function Mm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Am}function rC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var s1=/\/+/g;function Nm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rC(""+e.key):t.toString(36)}function iC(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(km,km):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function us(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Am:case GO:a=!0;break;case c1:return a=e._init,us(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+Nm(e,0):r,a1(i)?(n="",a!=null&&(n=a.replace(s1,"$&/")+"/"),us(i,t,n,"",function(c){return c})):i!=null&&(Mm(i)&&(i=nC(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(s1,"$&/")+"/")+a)),t.push(i)),1;a=0;var s=r===""?".":r+":";if(a1(e))for(var l=0;l<e.length;l++)r=e[l],o=s+Nm(r,l),a+=us(r,t,n,o,i);else if(l=tC(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,o=s+Nm(r,l++),a+=us(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return us(iC(e),t,n,r,i);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 Xu(e,t,n){if(e==null)return e;var r=[],i=0;return us(e,r,"","",function(o){return t.call(n,o,i++)}),r}function oC(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 l1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},aC={map:Xu,forEach:function(e,t,n){Xu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xu(e,function(){t++}),t},toArray:function(e){return Xu(e,function(t){return t})||[]},only:function(e){if(!Mm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};He.Activity=eC;He.Children=aC;He.Component=ds;He.Fragment=KO;He.Profiler=YO;He.PureComponent=Rm;He.StrictMode=WO;He.Suspense=ZO;He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Pt;He.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Pt.H.useMemoCache(e)}};He.cache=function(e){return function(){return e.apply(null,arguments)}};He.cacheSignal=function(){return null};He.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=d1({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!m1.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return Cm(e.type,i,r)};He.createContext=function(e){return e={$$typeof:XO,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:VO,_context:e},e};He.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)m1.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return Cm(e,o,i)};He.createRef=function(){return{current:null}};He.forwardRef=function(e){return{$$typeof:QO,render:e}};He.isValidElement=Mm;He.lazy=function(e){return{$$typeof:c1,_payload:{_status:-1,_result:e},_init:oC}};He.memo=function(e,t){return{$$typeof:JO,type:e,compare:t===void 0?null:t}};He.startTransition=function(e){var t=Pt.T,n={};Pt.T=n;try{var r=e(),i=Pt.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(km,l1)}catch(o){l1(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Pt.T=t}};He.unstable_useCacheRefresh=function(){return Pt.H.useCacheRefresh()};He.use=function(e){return Pt.H.use(e)};He.useActionState=function(e,t,n){return Pt.H.useActionState(e,t,n)};He.useCallback=function(e,t){return Pt.H.useCallback(e,t)};He.useContext=function(e){return Pt.H.useContext(e)};He.useDebugValue=function(){};He.useDeferredValue=function(e,t){return Pt.H.useDeferredValue(e,t)};He.useEffect=function(e,t){return Pt.H.useEffect(e,t)};He.useEffectEvent=function(e){return Pt.H.useEffectEvent(e)};He.useId=function(){return Pt.H.useId()};He.useImperativeHandle=function(e,t,n){return Pt.H.useImperativeHandle(e,t,n)};He.useInsertionEffect=function(e,t){return Pt.H.useInsertionEffect(e,t)};He.useLayoutEffect=function(e,t){return Pt.H.useLayoutEffect(e,t)};He.useMemo=function(e,t){return Pt.H.useMemo(e,t)};He.useOptimistic=function(e,t){return Pt.H.useOptimistic(e,t)};He.useReducer=function(e,t,n){return Pt.H.useReducer(e,t,n)};He.useRef=function(e){return Pt.H.useRef(e)};He.useState=function(e){return Pt.H.useState(e)};He.useSyncExternalStore=function(e,t,n){return Pt.H.useSyncExternalStore(e,t,n)};He.useTransition=function(){return Pt.H.useTransition()};He.version="19.2.8"});var Me=si((P5,h1)=>{"use strict";h1.exports=g1()});var N1=si(Ft=>{"use strict";function Bm(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<Qu(i,t))e[r]=t,e[n]=i,n=r;else break e}}function vi(e){return e.length===0?null:e[0]}function Ju(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,s=e[a],l=a+1,c=e[l];if(0>Qu(s,n))l<i&&0>Qu(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[a]=n,r=a);else if(l<i&&0>Qu(c,n))e[r]=c,e[l]=n,r=l;else break e}}return t}function Qu(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Ft.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(y1=performance,Ft.unstable_now=function(){return y1.now()}):(Im=Date,b1=Im.now(),Ft.unstable_now=function(){return Im.now()-b1});var y1,Im,b1,zi=[],wo=[],sC=1,jr=null,Wn=3,Pm=!1,Xl=!1,Ql=!1,zm=!1,S1=typeof setTimeout=="function"?setTimeout:null,E1=typeof clearTimeout=="function"?clearTimeout:null,v1=typeof setImmediate<"u"?setImmediate:null;function Zu(e){for(var t=vi(wo);t!==null;){if(t.callback===null)Ju(wo);else if(t.startTime<=e)Ju(wo),t.sortIndex=t.expirationTime,Bm(zi,t);else break;t=vi(wo)}}function Um(e){if(Ql=!1,Zu(e),!Xl)if(vi(zi)!==null)Xl=!0,ps||(ps=!0,fs());else{var t=vi(wo);t!==null&&$m(Um,t.startTime-e)}}var ps=!1,Zl=-1,w1=5,_1=-1;function T1(){return zm?!0:!(Ft.unstable_now()-_1<w1)}function Lm(){if(zm=!1,ps){var e=Ft.unstable_now();_1=e;var t=!0;try{e:{Xl=!1,Ql&&(Ql=!1,E1(Zl),Zl=-1),Pm=!0;var n=Wn;try{t:{for(Zu(e),jr=vi(zi);jr!==null&&!(jr.expirationTime>e&&T1());){var r=jr.callback;if(typeof r=="function"){jr.callback=null,Wn=jr.priorityLevel;var i=r(jr.expirationTime<=e);if(e=Ft.unstable_now(),typeof i=="function"){jr.callback=i,Zu(e),t=!0;break t}jr===vi(zi)&&Ju(zi),Zu(e)}else Ju(zi);jr=vi(zi)}if(jr!==null)t=!0;else{var o=vi(wo);o!==null&&$m(Um,o.startTime-e),t=!1}}break e}finally{jr=null,Wn=n,Pm=!1}t=void 0}}finally{t?fs():ps=!1}}}var fs;typeof v1=="function"?fs=function(){v1(Lm)}:typeof MessageChannel<"u"?(Dm=new MessageChannel,x1=Dm.port2,Dm.port1.onmessage=Lm,fs=function(){x1.postMessage(null)}):fs=function(){S1(Lm,0)};var Dm,x1;function $m(e,t){Zl=S1(function(){e(Ft.unstable_now())},t)}Ft.unstable_IdlePriority=5;Ft.unstable_ImmediatePriority=1;Ft.unstable_LowPriority=4;Ft.unstable_NormalPriority=3;Ft.unstable_Profiling=null;Ft.unstable_UserBlockingPriority=2;Ft.unstable_cancelCallback=function(e){e.callback=null};Ft.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w1=0<e?Math.floor(1e3/e):5};Ft.unstable_getCurrentPriorityLevel=function(){return Wn};Ft.unstable_next=function(e){switch(Wn){case 1:case 2:case 3:var t=3;break;default:t=Wn}var n=Wn;Wn=t;try{return e()}finally{Wn=n}};Ft.unstable_requestPaint=function(){zm=!0};Ft.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Wn;Wn=e;try{return t()}finally{Wn=n}};Ft.unstable_scheduleCallback=function(e,t,n){var r=Ft.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:sC++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,Bm(wo,e),vi(zi)===null&&e===vi(wo)&&(Ql?(E1(Zl),Zl=-1):Ql=!0,$m(Um,n-r))):(e.sortIndex=i,Bm(zi,e),Xl||Pm||(Xl=!0,ps||(ps=!0,fs()))),e};Ft.unstable_shouldYield=T1;Ft.unstable_wrapCallback=function(e){var t=Wn;return function(){var n=Wn;Wn=t;try{return e.apply(this,arguments)}finally{Wn=n}}}});var A1=si((U5,k1)=>{"use strict";k1.exports=N1()});var O1=si(tr=>{"use strict";var lC=Me();function R1(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function _o(){}var er={d:{f:_o,r:function(){throw Error(R1(522))},D:_o,C:_o,L:_o,m:_o,X:_o,S:_o,M:_o},p:0,findDOMNode:null},cC=Symbol.for("react.portal");function uC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cC,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Jl=lC.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ed(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=er;tr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(R1(299));return uC(e,t,null,n)};tr.flushSync=function(e){var t=Jl.T,n=er.p;try{if(Jl.T=null,er.p=2,e)return e()}finally{Jl.T=t,er.p=n,er.d.f()}};tr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,er.d.C(e,t))};tr.prefetchDNS=function(e){typeof e=="string"&&er.d.D(e)};tr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=ed(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?er.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&er.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};tr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=ed(t.as,t.crossOrigin);er.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&er.d.M(e)};tr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=ed(n,t.crossOrigin);er.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};tr.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=ed(t.as,t.crossOrigin);er.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else er.d.m(e)};tr.requestFormReset=function(e){er.d.r(e)};tr.unstable_batchedUpdates=function(e,t){return e(t)};tr.useFormState=function(e,t,n){return Jl.H.useFormState(e,t,n)};tr.useFormStatus=function(){return Jl.H.useHostTransitionStatus()};tr.version="19.2.8"});var ms=si((H5,M1)=>{"use strict";function C1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C1)}catch(e){console.error(e)}}C1(),M1.exports=O1()});var qw=si(Nf=>{"use strict";var xn=A1(),iS=Me(),dC=ms();function ee(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function oS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Uc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function aS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sS(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function I1(e){if(Uc(e)!==e)throw Error(ee(188))}function fC(e){var t=e.alternate;if(!t){if(t=Uc(e),t===null)throw Error(ee(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return I1(i),e;if(o===r)return I1(i),t;o=o.sibling}throw Error(ee(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(ee(189))}}if(n.alternate!==r)throw Error(ee(190))}if(n.tag!==3)throw Error(ee(188));return n.stateNode.current===n?e:t}function lS(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=lS(e),t!==null)return t;e=e.sibling}return null}var $t=Object.assign,pC=Symbol.for("react.element"),td=Symbol.for("react.transitional.element"),sc=Symbol.for("react.portal"),xs=Symbol.for("react.fragment"),cS=Symbol.for("react.strict_mode"),xg=Symbol.for("react.profiler"),uS=Symbol.for("react.consumer"),Ki=Symbol.for("react.context"),gh=Symbol.for("react.forward_ref"),Sg=Symbol.for("react.suspense"),Eg=Symbol.for("react.suspense_list"),hh=Symbol.for("react.memo"),To=Symbol.for("react.lazy");Symbol.for("react.scope");var wg=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var mC=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var L1=Symbol.iterator;function ec(e){return e===null||typeof e!="object"?null:(e=L1&&e[L1]||e["@@iterator"],typeof e=="function"?e:null)}var gC=Symbol.for("react.client.reference");function _g(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===gC?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xs:return"Fragment";case xg:return"Profiler";case cS:return"StrictMode";case Sg:return"Suspense";case Eg:return"SuspenseList";case wg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case sc:return"Portal";case Ki:return e.displayName||"Context";case uS:return(e._context.displayName||"Context")+".Consumer";case gh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hh:return t=e.displayName||null,t!==null?t:_g(e.type)||"Memo";case To:t=e._payload,e=e._init;try{return _g(e(t))}catch{}}return null}var lc=Array.isArray,De=iS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bt=dC.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oa={pending:!1,data:null,method:null,action:null},Tg=[],Ss=-1;function _i(e){return{current:e}}function On(e){0>Ss||(e.current=Tg[Ss],Tg[Ss]=null,Ss--)}function Mt(e,t){Ss++,Tg[Ss]=e.current,e.current=t}var wi=_i(null),Tc=_i(null),Bo=_i(null),Ld=_i(null);function Dd(e,t){switch(Mt(Bo,t),Mt(Tc,e),Mt(wi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hx(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hx(t),e=Ow(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}On(wi),Mt(wi,e)}function Us(){On(wi),On(Tc),On(Bo)}function Ng(e){e.memoizedState!==null&&Mt(Ld,e);var t=wi.current,n=Ow(t,e.type);t!==n&&(Mt(Tc,e),Mt(wi,n))}function Bd(e){Tc.current===e&&(On(wi),On(Tc)),Ld.current===e&&(On(Ld),Bc._currentValue=Oa)}var Hm,D1;function Na(e){if(Hm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hm=t&&t[1]||"",D1=-1<n.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+Hm+e+D1}var jm=!1;function Fm(e,t){if(!e||jm)return"";jm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var m=p}Reflect.construct(e,[],f)}else{try{f.call()}catch(p){m=p}e.call(f.prototype)}}else{try{throw Error()}catch(p){m=p}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(p){if(p&&m&&typeof p.stack=="string")return[p.stack,m.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split(`
|
|
5
|
+
`),c=s.split(`
|
|
6
|
+
`);for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(r!==1||i!==1)do if(r--,i--,0>i||l[r]!==c[i]){var d=`
|
|
7
|
+
`+l[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=i);break}}}finally{jm=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Na(n):""}function hC(e,t){switch(e.tag){case 26:case 27:case 5:return Na(e.type);case 16:return Na("Lazy");case 13:return e.child!==t&&t!==null?Na("Suspense Fallback"):Na("Suspense");case 19:return Na("SuspenseList");case 0:case 15:return Fm(e.type,!1);case 11:return Fm(e.type.render,!1);case 1:return Fm(e.type,!0);case 31:return Na("Activity");default:return""}}function B1(e){try{var t="",n=null;do t+=hC(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
|
|
8
|
+
Error generating stack: `+r.message+`
|
|
9
|
+
`+r.stack}}var kg=Object.prototype.hasOwnProperty,yh=xn.unstable_scheduleCallback,qm=xn.unstable_cancelCallback,yC=xn.unstable_shouldYield,bC=xn.unstable_requestPaint,Rr=xn.unstable_now,vC=xn.unstable_getCurrentPriorityLevel,dS=xn.unstable_ImmediatePriority,fS=xn.unstable_UserBlockingPriority,Pd=xn.unstable_NormalPriority,xC=xn.unstable_LowPriority,pS=xn.unstable_IdlePriority,SC=xn.log,EC=xn.unstable_setDisableYieldValue,$c=null,Or=null;function Co(e){if(typeof SC=="function"&&EC(e),Or&&typeof Or.setStrictMode=="function")try{Or.setStrictMode($c,e)}catch{}}var Cr=Math.clz32?Math.clz32:TC,wC=Math.log,_C=Math.LN2;function TC(e){return e>>>=0,e===0?32:31-(wC(e)/_C|0)|0}var nd=256,rd=262144,id=4194304;function ka(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function uf(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s!==0?(r=s&~o,r!==0?i=ka(r):(a&=s,a!==0?i=ka(a):n||(n=s&~e,n!==0&&(i=ka(n))))):(s=r&~o,s!==0?i=ka(s):a!==0?i=ka(a):n||(n=r&~e,n!==0&&(i=ka(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Hc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function NC(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mS(){var e=id;return id<<=1,(id&62914560)===0&&(id=4194304),e}function Gm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kC(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var d=31-Cr(n),f=1<<d;s[d]=0,l[d]=-1;var m=c[d];if(m!==null)for(c[d]=null,d=0;d<m.length;d++){var p=m[d];p!==null&&(p.lane&=-536870913)}n&=~f}r!==0&&gS(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function gS(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Cr(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function hS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function yS(e,t){var n=t&-t;return n=(n&42)!==0?1:bh(n),(n&(e.suspendedLanes|t))!==0?0:n}function bh(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function vh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bS(){var e=bt.p;return e!==0?e:(e=window.event,e===void 0?32:Hw(e.type))}function P1(e,t){var n=bt.p;try{return bt.p=e,t()}finally{bt.p=n}}var Vo=Math.random().toString(36).slice(2),zn="__reactFiber$"+Vo,mr="__reactProps$"+Vo,Xs="__reactContainer$"+Vo,Ag="__reactEvents$"+Vo,AC="__reactListeners$"+Vo,RC="__reactHandles$"+Vo,z1="__reactResources$"+Vo,Fc="__reactMarker$"+Vo;function xh(e){delete e[zn],delete e[mr],delete e[Ag],delete e[AC],delete e[RC]}function Es(e){var t=e[zn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xs]||n[zn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kx(e);e!==null;){if(n=e[zn])return n;e=Kx(e)}return t}e=n,n=e.parentNode}return null}function Qs(e){if(e=e[zn]||e[Xs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(ee(33))}function Ms(e){var t=e[z1];return t||(t=e[z1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rn(e){e[Fc]=!0}var vS=new Set,xS={};function $a(e,t){$s(e,t),$s(e+"Capture",t)}function $s(e,t){for(xS[e]=t,e=0;e<t.length;e++)vS.add(t[e])}var OC=RegExp("^[: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]*$"),U1={},$1={};function CC(e){return kg.call($1,e)?!0:kg.call(U1,e)?!1:OC.test(e)?$1[e]=!0:(U1[e]=!0,!1)}function vd(e,t,n){if(CC(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function od(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ui(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function qr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function MC(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rg(e){if(!e._valueTracker){var t=SS(e)?"checked":"value";e._valueTracker=MC(e,t,""+e[t])}}function ES(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=SS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zd(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}}var IC=/[\n"\\]/g;function Wr(e){return e.replace(IC,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Og(e,t,n,r,i,o,a,s){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qr(t)):e.value!==""+qr(t)&&(e.value=""+qr(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?Cg(e,a,qr(t)):n!=null?Cg(e,a,qr(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+qr(s):e.removeAttribute("name")}function wS(e,t,n,r,i,o,a,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Rg(e);return}n=n!=null?""+qr(n):"",t=t!=null?""+qr(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),Rg(e)}function Cg(e,t,n){t==="number"&&zd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Is(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+qr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _S(e,t,n){if(t!=null&&(t=""+qr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+qr(n):""}function TS(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(ee(92));if(lc(r)){if(1<r.length)throw Error(ee(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=qr(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Rg(e)}function Hs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var LC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function H1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||LC.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function NS(e,t,n){if(t!=null&&typeof t!="object")throw Error(ee(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&H1(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&H1(e,o,t[o])}function Sh(e){if(e.indexOf("-")===-1)return!1;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 DC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),BC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xd(e){return BC.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Wi(){}var Mg=null;function Eh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ws=null,Ls=null;function j1(e){var t=Qs(e);if(t&&(e=t.stateNode)){var n=e[mr]||null;e:switch(e=t.stateNode,t.type){case"input":if(Og(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Wr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[mr]||null;if(!i)throw Error(ee(90));Og(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ES(r)}break e;case"textarea":_S(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Is(e,!!n.multiple,t,!1)}}}var Km=!1;function kS(e,t,n){if(Km)return e(t,n);Km=!0;try{var r=e(t);return r}finally{if(Km=!1,(ws!==null||Ls!==null)&&(Ef(),ws&&(t=ws,e=Ls,Ls=ws=null,j1(t),e)))for(t=0;t<e.length;t++)j1(e[t])}}function Nc(e,t){var n=e.stateNode;if(n===null)return null;var r=n[mr]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ee(231,t,typeof n));return n}var Zi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ig=!1;if(Zi)try{gs={},Object.defineProperty(gs,"passive",{get:function(){Ig=!0}}),window.addEventListener("test",gs,gs),window.removeEventListener("test",gs,gs)}catch{Ig=!1}var gs,Mo=null,wh=null,Sd=null;function AS(){if(Sd)return Sd;var e,t=wh,n=t.length,r,i="value"in Mo?Mo.value:Mo.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Sd=i.slice(e,1<r?1-r:void 0)}function Ed(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ad(){return!0}function F1(){return!1}function gr(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ad:F1,this.isPropagationStopped=F1,this}return $t(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ad)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ad)},persist:function(){},isPersistent:ad}),t}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=gr(Ha),qc=$t({},Ha,{view:0,detail:0}),PC=gr(qc),Wm,Ym,tc,ff=$t({},qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_h,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tc&&(tc&&e.type==="mousemove"?(Wm=e.screenX-tc.screenX,Ym=e.screenY-tc.screenY):Ym=Wm=0,tc=e),Wm)},movementY:function(e){return"movementY"in e?e.movementY:Ym}}),q1=gr(ff),zC=$t({},ff,{dataTransfer:0}),UC=gr(zC),$C=$t({},qc,{relatedTarget:0}),Vm=gr($C),HC=$t({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),jC=gr(HC),FC=$t({},Ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qC=gr(FC),GC=$t({},Ha,{data:0}),G1=gr(GC),KC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},YC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=YC[e])?!!t[e]:!1}function _h(){return VC}var XC=$t({},qc,{key:function(e){if(e.key){var t=KC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ed(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?WC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_h,charCode:function(e){return e.type==="keypress"?Ed(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ed(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QC=gr(XC),ZC=$t({},ff,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),K1=gr(ZC),JC=$t({},qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_h}),eM=gr(JC),tM=$t({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),nM=gr(tM),rM=$t({},ff,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iM=gr(rM),oM=$t({},Ha,{newState:0,oldState:0}),aM=gr(oM),sM=[9,13,27,32],Th=Zi&&"CompositionEvent"in window,fc=null;Zi&&"documentMode"in document&&(fc=document.documentMode);var lM=Zi&&"TextEvent"in window&&!fc,RS=Zi&&(!Th||fc&&8<fc&&11>=fc),W1=" ",Y1=!1;function OS(e,t){switch(e){case"keyup":return sM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _s=!1;function cM(e,t){switch(e){case"compositionend":return CS(t);case"keypress":return t.which!==32?null:(Y1=!0,W1);case"textInput":return e=t.data,e===W1&&Y1?null:e;default:return null}}function uM(e,t){if(_s)return e==="compositionend"||!Th&&OS(e,t)?(e=AS(),Sd=wh=Mo=null,_s=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return RS&&t.locale!=="ko"?null:t.data;default:return null}}var dM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function V1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dM[e.type]:t==="textarea"}function MS(e,t,n,r){ws?Ls?Ls.push(r):Ls=[r]:ws=r,t=nf(t,"onChange"),0<t.length&&(n=new df("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var pc=null,kc=null;function fM(e){kw(e,0)}function pf(e){var t=cc(e);if(ES(t))return e}function X1(e,t){if(e==="change")return t}var IS=!1;Zi&&(Zi?(ld="oninput"in document,ld||(Xm=document.createElement("div"),Xm.setAttribute("oninput","return;"),ld=typeof Xm.oninput=="function"),sd=ld):sd=!1,IS=sd&&(!document.documentMode||9<document.documentMode));var sd,ld,Xm;function Q1(){pc&&(pc.detachEvent("onpropertychange",LS),kc=pc=null)}function LS(e){if(e.propertyName==="value"&&pf(kc)){var t=[];MS(t,kc,e,Eh(e)),kS(fM,t)}}function pM(e,t,n){e==="focusin"?(Q1(),pc=t,kc=n,pc.attachEvent("onpropertychange",LS)):e==="focusout"&&Q1()}function mM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pf(kc)}function gM(e,t){if(e==="click")return pf(t)}function hM(e,t){if(e==="input"||e==="change")return pf(t)}function yM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ir=typeof Object.is=="function"?Object.is:yM;function Ac(e,t){if(Ir(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!kg.call(t,i)||!Ir(e[i],t[i]))return!1}return!0}function Z1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function J1(e,t){var n=Z1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Z1(n)}}function DS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?DS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function BS(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zd(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zd(e.document)}return t}function Nh(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")}var bM=Zi&&"documentMode"in document&&11>=document.documentMode,Ts=null,Lg=null,mc=null,Dg=!1;function ex(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dg||Ts==null||Ts!==zd(r)||(r=Ts,"selectionStart"in r&&Nh(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}),mc&&Ac(mc,r)||(mc=r,r=nf(Lg,"onSelect"),0<r.length&&(t=new df("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ts)))}function Ta(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ns={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Qm={},PS={};Zi&&(PS=document.createElement("div").style,"AnimationEvent"in window||(delete Ns.animationend.animation,delete Ns.animationiteration.animation,delete Ns.animationstart.animation),"TransitionEvent"in window||delete Ns.transitionend.transition);function ja(e){if(Qm[e])return Qm[e];if(!Ns[e])return e;var t=Ns[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in PS)return Qm[e]=t[n];return e}var zS=ja("animationend"),US=ja("animationiteration"),$S=ja("animationstart"),vM=ja("transitionrun"),xM=ja("transitionstart"),SM=ja("transitioncancel"),HS=ja("transitionend"),jS=new Map,Bg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Bg.push("scrollEnd");function ui(e,t){jS.set(e,t),$a(t,[e])}var Ud=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Fr=[],ks=0,kh=0;function mf(){for(var e=ks,t=kh=ks=0;t<e;){var n=Fr[t];Fr[t++]=null;var r=Fr[t];Fr[t++]=null;var i=Fr[t];Fr[t++]=null;var o=Fr[t];if(Fr[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&FS(n,i,o)}}function gf(e,t,n,r){Fr[ks++]=e,Fr[ks++]=t,Fr[ks++]=n,Fr[ks++]=r,kh|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ah(e,t,n,r){return gf(e,t,n,r),$d(e)}function Fa(e,t){return gf(e,null,null,t),$d(e)}function FS(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Cr(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function $d(e){if(50<wc)throw wc=0,rh=null,Error(ee(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var As={};function EM(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.refCleanup=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 kr(e,t,n,r){return new EM(e,t,n,r)}function Rh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vi(e,t){var n=e.alternate;return n===null?(n=kr(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&65011712,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.refCleanup=e.refCleanup,n}function qS(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wd(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")Rh(e)&&(a=1);else if(typeof e=="string")a=TI(e,n,wi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case wg:return e=kr(31,n,t,i),e.elementType=wg,e.lanes=o,e;case xs:return Ca(n.children,i,o,t);case cS:a=8,i|=24;break;case xg:return e=kr(12,n,t,i|2),e.elementType=xg,e.lanes=o,e;case Sg:return e=kr(13,n,t,i),e.elementType=Sg,e.lanes=o,e;case Eg:return e=kr(19,n,t,i),e.elementType=Eg,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ki:a=10;break e;case uS:a=9;break e;case gh:a=11;break e;case hh:a=14;break e;case To:a=16,r=null;break e}a=29,n=Error(ee(130,e===null?"null":typeof e,"")),r=null}return t=kr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ca(e,t,n,r){return e=kr(7,e,r,t),e.lanes=n,e}function Zm(e,t,n){return e=kr(6,e,null,t),e.lanes=n,e}function GS(e){var t=kr(18,null,null,0);return t.stateNode=e,t}function Jm(e,t,n){return t=kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var tx=new WeakMap;function Yr(e,t){if(typeof e=="object"&&e!==null){var n=tx.get(e);return n!==void 0?n:(t={value:e,source:t,stack:B1(t)},tx.set(e,t),t)}return{value:e,source:t,stack:B1(t)}}var Rs=[],Os=0,Hd=null,Rc=0,Gr=[],Kr=0,Go=null,xi=1,Si="";function qi(e,t){Rs[Os++]=Rc,Rs[Os++]=Hd,Hd=e,Rc=t}function KS(e,t,n){Gr[Kr++]=xi,Gr[Kr++]=Si,Gr[Kr++]=Go,Go=e;var r=xi;e=Si;var i=32-Cr(r)-1;r&=~(1<<i),n+=1;var o=32-Cr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,xi=1<<32-Cr(t)+i|n<<i|r,Si=o+e}else xi=1<<o|n<<i|r,Si=e}function Oh(e){e.return!==null&&(qi(e,1),KS(e,1,0))}function Ch(e){for(;e===Hd;)Hd=Rs[--Os],Rs[Os]=null,Rc=Rs[--Os],Rs[Os]=null;for(;e===Go;)Go=Gr[--Kr],Gr[Kr]=null,Si=Gr[--Kr],Gr[Kr]=null,xi=Gr[--Kr],Gr[Kr]=null}function WS(e,t){Gr[Kr++]=xi,Gr[Kr++]=Si,Gr[Kr++]=Go,xi=t.id,Si=t.overflow,Go=e}var Un=null,Ut=null,ot=!1,Po=null,Vr=!1,Pg=Error(ee(519));function Ko(e){var t=Error(ee(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oc(Yr(t,e)),Pg}function nx(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zn]=e,t[mr]=r,n){case"dialog":tt("cancel",t),tt("close",t);break;case"iframe":case"object":case"embed":tt("load",t);break;case"video":case"audio":for(n=0;n<Lc.length;n++)tt(Lc[n],t);break;case"source":tt("error",t);break;case"img":case"image":case"link":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"input":tt("invalid",t),wS(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":tt("invalid",t);break;case"textarea":tt("invalid",t),TS(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||Rw(t.textContent,n)?(r.popover!=null&&(tt("beforetoggle",t),tt("toggle",t)),r.onScroll!=null&&tt("scroll",t),r.onScrollEnd!=null&&tt("scrollend",t),r.onClick!=null&&(t.onclick=Wi),t=!0):t=!1,t||Ko(e,!0)}function rx(e){for(Un=e.return;Un;)switch(Un.tag){case 5:case 31:case 13:Vr=!1;return;case 27:case 3:Vr=!0;return;default:Un=Un.return}}function hs(e){if(e!==Un)return!1;if(!ot)return rx(e),ot=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||lh(e.type,e.memoizedProps)),n=!n),n&&Ut&&Ko(e),rx(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ee(317));Ut=Gx(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ee(317));Ut=Gx(e)}else t===27?(t=Ut,Xo(e.type)?(e=fh,fh=null,Ut=e):Ut=t):Ut=Un?Qr(e.stateNode.nextSibling):null;return!0}function Da(){Ut=Un=null,ot=!1}function eg(){var e=Po;return e!==null&&(fr===null?fr=e:fr.push.apply(fr,e),Po=null),e}function Oc(e){Po===null?Po=[e]:Po.push(e)}var zg=_i(null),qa=null,Yi=null;function ko(e,t,n){Mt(zg,t._currentValue),t._currentValue=n}function Xi(e){e._currentValue=zg.current,On(zg)}function Ug(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $g(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=i;for(var l=0;l<t.length;l++)if(s.context===t[l]){o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ug(o.return,n,e),r||(a=null);break e}o=s.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(ee(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),Ug(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Zs(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(ee(387));if(a=a.memoizedProps,a!==null){var s=i.type;Ir(i.pendingProps.value,a.value)||(e!==null?e.push(s):e=[s])}}else if(i===Ld.current){if(a=i.alternate,a===null)throw Error(ee(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Bc):e=[Bc])}i=i.return}e!==null&&$g(t,e,n,r),t.flags|=262144}function jd(e){for(e=e.firstContext;e!==null;){if(!Ir(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ba(e){qa=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $n(e){return YS(qa,e)}function cd(e,t){return qa===null&&Ba(e),YS(e,t)}function YS(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(ee(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var wM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},_M=xn.unstable_scheduleCallback,TM=xn.unstable_NormalPriority,mn={$$typeof:Ki,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mh(){return{controller:new wM,data:new Map,refCount:0}}function Gc(e){e.refCount--,e.refCount===0&&_M(TM,function(){e.controller.abort()})}var gc=null,Hg=0,js=0,Ds=null;function NM(e,t){if(gc===null){var n=gc=[];Hg=0,js=ry(),Ds={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Hg++,t.then(ix,ix),t}function ix(){if(--Hg===0&&gc!==null){Ds!==null&&(Ds.status="fulfilled");var e=gc;gc=null,js=0,Ds=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kM(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var ox=De.S;De.S=function(e,t){lw=Rr(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&NM(e,t),ox!==null&&ox(e,t)};var Ma=_i(null);function Ih(){var e=Ma.current;return e!==null?e:Ct.pooledCache}function _d(e,t){t===null?Mt(Ma,Ma.current):Mt(Ma,t.pool)}function VS(){var e=Ih();return e===null?null:{parent:mn._currentValue,pool:e}}var Js=Error(ee(460)),Lh=Error(ee(474)),hf=Error(ee(542)),Fd={then:function(){}};function ax(e){return e=e.status,e==="fulfilled"||e==="rejected"}function XS(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Wi,Wi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lx(e),e;default:if(typeof t.status=="string")t.then(Wi,Wi);else{if(e=Ct,e!==null&&100<e.shellSuspendCounter)throw Error(ee(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lx(e),e}throw Ia=t,Js}}function Aa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ia=n,Js):n}}var Ia=null;function sx(){if(Ia===null)throw Error(ee(459));var e=Ia;return Ia=null,e}function lx(e){if(e===Js||e===hf)throw Error(ee(483))}var Bs=null,Cc=0;function ud(e){var t=Cc;return Cc+=1,Bs===null&&(Bs=[]),XS(Bs,e,t)}function nc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dd(e,t){throw t.$$typeof===pC?Error(ee(525)):(e=Object.prototype.toString.call(t),Error(ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function QS(e){function t(h,g){if(e){var S=h.deletions;S===null?(h.deletions=[g],h.flags|=16):S.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h){for(var g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(h,g){return h=Vi(h,g),h.index=0,h.sibling=null,h}function o(h,g,S){return h.index=S,e?(S=h.alternate,S!==null?(S=S.index,S<g?(h.flags|=67108866,g):S):(h.flags|=67108866,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function s(h,g,S,w){return g===null||g.tag!==6?(g=Zm(S,h.mode,w),g.return=h,g):(g=i(g,S),g.return=h,g)}function l(h,g,S,w){var C=S.type;return C===xs?d(h,g,S.props.children,w,S.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===To&&Aa(C)===g.type)?(g=i(g,S.props),nc(g,S),g.return=h,g):(g=wd(S.type,S.key,S.props,null,h.mode,w),nc(g,S),g.return=h,g)}function c(h,g,S,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==S.containerInfo||g.stateNode.implementation!==S.implementation?(g=Jm(S,h.mode,w),g.return=h,g):(g=i(g,S.children||[]),g.return=h,g)}function d(h,g,S,w,C){return g===null||g.tag!==7?(g=Ca(S,h.mode,w,C),g.return=h,g):(g=i(g,S),g.return=h,g)}function f(h,g,S){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Zm(""+g,h.mode,S),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case td:return S=wd(g.type,g.key,g.props,null,h.mode,S),nc(S,g),S.return=h,S;case sc:return g=Jm(g,h.mode,S),g.return=h,g;case To:return g=Aa(g),f(h,g,S)}if(lc(g)||ec(g))return g=Ca(g,h.mode,S,null),g.return=h,g;if(typeof g.then=="function")return f(h,ud(g),S);if(g.$$typeof===Ki)return f(h,cd(h,g),S);dd(h,g)}return null}function m(h,g,S,w){var C=g!==null?g.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return C!==null?null:s(h,g,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case td:return S.key===C?l(h,g,S,w):null;case sc:return S.key===C?c(h,g,S,w):null;case To:return S=Aa(S),m(h,g,S,w)}if(lc(S)||ec(S))return C!==null?null:d(h,g,S,w,null);if(typeof S.then=="function")return m(h,g,ud(S),w);if(S.$$typeof===Ki)return m(h,g,cd(h,S),w);dd(h,S)}return null}function p(h,g,S,w,C){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return h=h.get(S)||null,s(g,h,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case td:return h=h.get(w.key===null?S:w.key)||null,l(g,h,w,C);case sc:return h=h.get(w.key===null?S:w.key)||null,c(g,h,w,C);case To:return w=Aa(w),p(h,g,S,w,C)}if(lc(w)||ec(w))return h=h.get(S)||null,d(g,h,w,C,null);if(typeof w.then=="function")return p(h,g,S,ud(w),C);if(w.$$typeof===Ki)return p(h,g,S,cd(g,w),C);dd(g,w)}return null}function v(h,g,S,w){for(var C=null,O=null,T=g,D=g=0,q=null;T!==null&&D<S.length;D++){T.index>D?(q=T,T=null):q=T.sibling;var Z=m(h,T,S[D],w);if(Z===null){T===null&&(T=q);break}e&&T&&Z.alternate===null&&t(h,T),g=o(Z,g,D),O===null?C=Z:O.sibling=Z,O=Z,T=q}if(D===S.length)return n(h,T),ot&&qi(h,D),C;if(T===null){for(;D<S.length;D++)T=f(h,S[D],w),T!==null&&(g=o(T,g,D),O===null?C=T:O.sibling=T,O=T);return ot&&qi(h,D),C}for(T=r(T);D<S.length;D++)q=p(T,h,D,S[D],w),q!==null&&(e&&q.alternate!==null&&T.delete(q.key===null?D:q.key),g=o(q,g,D),O===null?C=q:O.sibling=q,O=q);return e&&T.forEach(function(re){return t(h,re)}),ot&&qi(h,D),C}function b(h,g,S,w){if(S==null)throw Error(ee(151));for(var C=null,O=null,T=g,D=g=0,q=null,Z=S.next();T!==null&&!Z.done;D++,Z=S.next()){T.index>D?(q=T,T=null):q=T.sibling;var re=m(h,T,Z.value,w);if(re===null){T===null&&(T=q);break}e&&T&&re.alternate===null&&t(h,T),g=o(re,g,D),O===null?C=re:O.sibling=re,O=re,T=q}if(Z.done)return n(h,T),ot&&qi(h,D),C;if(T===null){for(;!Z.done;D++,Z=S.next())Z=f(h,Z.value,w),Z!==null&&(g=o(Z,g,D),O===null?C=Z:O.sibling=Z,O=Z);return ot&&qi(h,D),C}for(T=r(T);!Z.done;D++,Z=S.next())Z=p(T,h,D,Z.value,w),Z!==null&&(e&&Z.alternate!==null&&T.delete(Z.key===null?D:Z.key),g=o(Z,g,D),O===null?C=Z:O.sibling=Z,O=Z);return e&&T.forEach(function(me){return t(h,me)}),ot&&qi(h,D),C}function E(h,g,S,w){if(typeof S=="object"&&S!==null&&S.type===xs&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case td:e:{for(var C=S.key;g!==null;){if(g.key===C){if(C=S.type,C===xs){if(g.tag===7){n(h,g.sibling),w=i(g,S.props.children),w.return=h,h=w;break e}}else if(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===To&&Aa(C)===g.type){n(h,g.sibling),w=i(g,S.props),nc(w,S),w.return=h,h=w;break e}n(h,g);break}else t(h,g);g=g.sibling}S.type===xs?(w=Ca(S.props.children,h.mode,w,S.key),w.return=h,h=w):(w=wd(S.type,S.key,S.props,null,h.mode,w),nc(w,S),w.return=h,h=w)}return a(h);case sc:e:{for(C=S.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(h,g.sibling),w=i(g,S.children||[]),w.return=h,h=w;break e}else{n(h,g);break}else t(h,g);g=g.sibling}w=Jm(S,h.mode,w),w.return=h,h=w}return a(h);case To:return S=Aa(S),E(h,g,S,w)}if(lc(S))return v(h,g,S,w);if(ec(S)){if(C=ec(S),typeof C!="function")throw Error(ee(150));return S=C.call(S),b(h,g,S,w)}if(typeof S.then=="function")return E(h,g,ud(S),w);if(S.$$typeof===Ki)return E(h,g,cd(h,S),w);dd(h,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,g!==null&&g.tag===6?(n(h,g.sibling),w=i(g,S),w.return=h,h=w):(n(h,g),w=Zm(S,h.mode,w),w.return=h,h=w),a(h)):n(h,g)}return function(h,g,S,w){try{Cc=0;var C=E(h,g,S,w);return Bs=null,C}catch(T){if(T===Js||T===hf)throw T;var O=kr(29,T,null,h.mode);return O.lanes=w,O.return=h,O}finally{}}}var Pa=QS(!0),ZS=QS(!1),No=!1;function Dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function zo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(yt&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$d(e),FS(e,null,n),t}return gf(e,r,t,n),$d(e)}function hc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hS(e,n)}}function tg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fg=!1;function yc(){if(Fg){var e=Ds;if(e!==null)throw e}}function bc(e,t,n,r){Fg=!1;var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,d=c=l=null,s=o;do{var m=s.lane&-536870913,p=m!==s.lane;if(p?(rt&m)===m:(r&m)===m){m!==0&&m===js&&(Fg=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var v=e,b=s;m=t;var E=n;switch(b.tag){case 1:if(v=b.payload,typeof v=="function"){f=v.call(E,f,m);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,m=typeof v=="function"?v.call(E,f,m):v,m==null)break e;f=$t({},f,m);break e;case 2:No=!0}}m=s.callback,m!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[m]:p.push(m))}else p={lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=p,l=f):d=d.next=p,a|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,o===null&&(i.shared.lanes=0),Yo|=a,e.lanes=a,e.memoizedState=f}}function JS(e,t){if(typeof e!="function")throw Error(ee(191,e));e.call(t)}function eE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)JS(n[e],t)}var Fs=_i(null),qd=_i(0);function cx(e,t){e=no,Mt(qd,e),Mt(Fs,t),no=e|t.baseLanes}function qg(){Mt(qd,no),Mt(Fs,Fs.current)}function Bh(){no=qd.current,On(Fs),On(qd)}var Lr=_i(null),Xr=null;function Ao(e){var t=e.alternate;Mt(an,an.current&1),Mt(Lr,e),Xr===null&&(t===null||Fs.current!==null||t.memoizedState!==null)&&(Xr=e)}function Gg(e){Mt(an,an.current),Mt(Lr,e),Xr===null&&(Xr=e)}function tE(e){e.tag===22?(Mt(an,an.current),Mt(Lr,e),Xr===null&&(Xr=e)):Ro(e)}function Ro(){Mt(an,an.current),Mt(Lr,Lr.current)}function Nr(e){On(Lr),Xr===e&&(Xr=null),On(an)}var an=_i(0);function Gd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uh(n)||dh(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 Ji=0,We=null,kt=null,fn=null,Kd=!1,Ps=!1,za=!1,Wd=0,Mc=0,zs=null,AM=0;function nn(){throw Error(ee(321))}function Ph(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function zh(e,t,n,r,i,o){return Ji=o,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,De.H=e===null||e.memoizedState===null?ME:Vh,za=!1,o=n(r,i),za=!1,Ps&&(o=rE(t,n,r,i)),nE(e),o}function nE(e){De.H=Ic;var t=kt!==null&&kt.next!==null;if(Ji=0,fn=kt=We=null,Kd=!1,Mc=0,zs=null,t)throw Error(ee(300));e===null||gn||(e=e.dependencies,e!==null&&jd(e)&&(gn=!0))}function rE(e,t,n,r){We=e;var i=0;do{if(Ps&&(zs=null),Mc=0,Ps=!1,25<=i)throw Error(ee(301));if(i+=1,fn=kt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}De.H=IE,o=t(n,r)}while(Ps);return o}function RM(){var e=De.H,t=e.useState()[0];return t=typeof t.then=="function"?Kc(t):t,e=e.useState()[0],(kt!==null?kt.memoizedState:null)!==e&&(We.flags|=1024),t}function Uh(){var e=Wd!==0;return Wd=0,e}function $h(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Hh(e){if(Kd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kd=!1}Ji=0,fn=kt=We=null,Ps=!1,Mc=Wd=0,zs=null}function nr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?We.memoizedState=fn=e:fn=fn.next=e,fn}function sn(){if(kt===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=fn===null?We.memoizedState:fn.next;if(t!==null)fn=t,kt=e;else{if(e===null)throw We.alternate===null?Error(ee(467)):Error(ee(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},fn===null?We.memoizedState=fn=e:fn=fn.next=e}return fn}function yf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kc(e){var t=Mc;return Mc+=1,zs===null&&(zs=[]),e=XS(zs,e,t),t=We,(fn===null?t.memoizedState:fn.next)===null&&(t=t.alternate,De.H=t===null||t.memoizedState===null?ME:Vh),e}function bf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kc(e);if(e.$$typeof===Ki)return $n(e)}throw Error(ee(438,String(e)))}function jh(e){var t=null,n=We.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=We.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=yf(),We.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=mC;return t.index++,n}function eo(e,t){return typeof t=="function"?t(e):t}function Td(e){var t=sn();return Fh(t,kt,e)}function Fh(e,t,n){var r=e.queue;if(r===null)throw Error(ee(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var s=a=null,l=null,c=t,d=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(rt&f)===f:(Ji&f)===f){var m=c.revertLane;if(m===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===js&&(d=!0);else if((Ji&m)===m){c=c.next,m===js&&(d=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=f,a=o):l=l.next=f,We.lanes|=m,Yo|=m;f=c.action,za&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else m={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=m,a=o):l=l.next=m,We.lanes|=f,Yo|=f;c=c.next}while(c!==null&&c!==t);if(l===null?a=o:l.next=s,!Ir(o,e.memoizedState)&&(gn=!0,d&&(n=Ds,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ng(e){var t=sn(),n=t.queue;if(n===null)throw Error(ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ir(o,t.memoizedState)||(gn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function iE(e,t,n){var r=We,i=sn(),o=ot;if(o){if(n===void 0)throw Error(ee(407));n=n()}else n=t();var a=!Ir((kt||i).memoizedState,n);if(a&&(i.memoizedState=n,gn=!0),i=i.queue,qh(sE.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||fn!==null&&fn.memoizedState.tag&1){if(r.flags|=2048,qs(9,{destroy:void 0},aE.bind(null,r,i,n,t),null),Ct===null)throw Error(ee(349));o||(Ji&127)!==0||oE(r,t,n)}return n}function oE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=We.updateQueue,t===null?(t=yf(),We.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function aE(e,t,n,r){t.value=n,t.getSnapshot=r,lE(t)&&cE(e)}function sE(e,t,n){return n(function(){lE(t)&&cE(e)})}function lE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ir(e,n)}catch{return!0}}function cE(e){var t=Fa(e,2);t!==null&&pr(t,e,2)}function Kg(e){var t=nr();if(typeof e=="function"){var n=e;if(e=n(),za){Co(!0);try{n()}finally{Co(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e},t}function uE(e,t,n,r){return e.baseState=n,Fh(e,kt,typeof r=="function"?r:eo)}function OM(e,t,n,r,i){if(xf(e))throw Error(ee(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};De.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,dE(t,o)):(o.next=n.next,t.pending=n.next=o)}}function dE(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=De.T,a={};De.T=a;try{var s=n(i,r),l=De.S;l!==null&&l(a,s),ux(e,t,s)}catch(c){Wg(e,t,c)}finally{o!==null&&a.types!==null&&(o.types=a.types),De.T=o}}else try{o=n(i,r),ux(e,t,o)}catch(c){Wg(e,t,c)}}function ux(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){dx(e,t,r)},function(r){return Wg(e,t,r)}):dx(e,t,n)}function dx(e,t,n){t.status="fulfilled",t.value=n,fE(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,dE(e,n)))}function Wg(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,fE(t),t=t.next;while(t!==r)}e.action=null}function fE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pE(e,t){return t}function fx(e,t){if(ot){var n=Ct.formState;if(n!==null){e:{var r=We;if(ot){if(Ut){t:{for(var i=Ut,o=Vr;i.nodeType!==8;){if(!o){i=null;break t}if(i=Qr(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ut=Qr(i.nextSibling),r=i.data==="F!";break e}}Ko(r)}r=!1}r&&(t=n[0])}}return n=nr(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pE,lastRenderedState:t},n.queue=r,n=RE.bind(null,We,r),r.dispatch=n,r=Kg(!1),o=Yh.bind(null,We,!1,r.queue),r=nr(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=OM.bind(null,We,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function px(e){var t=sn();return mE(t,kt,e)}function mE(e,t,n){if(t=Fh(e,t,pE)[0],e=Td(eo)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Kc(t)}catch(a){throw a===Js?hf:a}else r=t;t=sn();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(We.flags|=2048,qs(9,{destroy:void 0},CM.bind(null,i,n),null)),[r,o,e]}function CM(e,t){e.action=t}function mx(e){var t=sn(),n=kt;if(n!==null)return mE(t,n,e);sn(),t=t.memoizedState,n=sn();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function qs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=We.updateQueue,t===null&&(t=yf(),We.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function gE(){return sn().memoizedState}function Nd(e,t,n,r){var i=nr();We.flags|=e,i.memoizedState=qs(1|t,{destroy:void 0},n,r===void 0?null:r)}function vf(e,t,n,r){var i=sn();r=r===void 0?null:r;var o=i.memoizedState.inst;kt!==null&&r!==null&&Ph(r,kt.memoizedState.deps)?i.memoizedState=qs(t,o,n,r):(We.flags|=e,i.memoizedState=qs(1|t,o,n,r))}function gx(e,t){Nd(8390656,8,e,t)}function qh(e,t){vf(2048,8,e,t)}function MM(e){We.flags|=4;var t=We.updateQueue;if(t===null)t=yf(),We.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hE(e){var t=sn().memoizedState;return MM({ref:t,nextImpl:e}),function(){if((yt&2)!==0)throw Error(ee(440));return t.impl.apply(void 0,arguments)}}function yE(e,t){return vf(4,2,e,t)}function bE(e,t){return vf(4,4,e,t)}function vE(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xE(e,t,n){n=n!=null?n.concat([e]):null,vf(4,4,vE.bind(null,t,e),n)}function Gh(){}function SE(e,t){var n=sn();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Ph(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function EE(e,t){var n=sn();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Ph(t,r[1]))return r[0];if(r=e(),za){Co(!0);try{e()}finally{Co(!1)}}return n.memoizedState=[r,t],r}function Kh(e,t,n){return n===void 0||(Ji&1073741824)!==0&&(rt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=uw(),We.lanes|=e,Yo|=e,n)}function wE(e,t,n,r){return Ir(n,t)?n:Fs.current!==null?(e=Kh(e,n,r),Ir(e,t)||(gn=!0),e):(Ji&42)===0||(Ji&1073741824)!==0&&(rt&261930)===0?(gn=!0,e.memoizedState=n):(e=uw(),We.lanes|=e,Yo|=e,t)}function _E(e,t,n,r,i){var o=bt.p;bt.p=o!==0&&8>o?o:8;var a=De.T,s={};De.T=s,Yh(e,!1,t,n);try{var l=i(),c=De.S;if(c!==null&&c(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=kM(l,r);vc(e,t,d,Mr(e))}else vc(e,t,r,Mr(e))}catch(f){vc(e,t,{then:function(){},status:"rejected",reason:f},Mr())}finally{bt.p=o,a!==null&&s.types!==null&&(a.types=s.types),De.T=a}}function IM(){}function Yg(e,t,n,r){if(e.tag!==5)throw Error(ee(476));var i=TE(e).queue;_E(e,i,t,Oa,n===null?IM:function(){return NE(e),n(r)})}function TE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Oa,baseState:Oa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:Oa},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function NE(e){var t=TE(e);t.next===null&&(t=e.alternate.memoizedState),vc(e,t.next.queue,{},Mr())}function Wh(){return $n(Bc)}function kE(){return sn().memoizedState}function AE(){return sn().memoizedState}function LM(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Mr();e=zo(n);var r=Uo(t,e,n);r!==null&&(pr(r,t,n),hc(r,t,n)),t={cache:Mh()},e.payload=t;return}t=t.return}}function DM(e,t,n){var r=Mr();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xf(e)?OE(t,n):(n=Ah(e,t,n,r),n!==null&&(pr(n,e,r),CE(n,t,r)))}function RE(e,t,n){var r=Mr();vc(e,t,n,r)}function vc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xf(e))OE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Ir(s,a))return gf(e,t,i,0),Ct===null&&mf(),!1}catch{}finally{}if(n=Ah(e,t,i,r),n!==null)return pr(n,e,r),CE(n,t,r),!0}return!1}function Yh(e,t,n,r){if(r={lane:2,revertLane:ry(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},xf(e)){if(t)throw Error(ee(479))}else t=Ah(e,n,r,2),t!==null&&pr(t,e,2)}function xf(e){var t=e.alternate;return e===We||t!==null&&t===We}function OE(e,t){Ps=Kd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CE(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hS(e,n)}}var Ic={readContext:$n,use:bf,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useLayoutEffect:nn,useInsertionEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useSyncExternalStore:nn,useId:nn,useHostTransitionStatus:nn,useFormState:nn,useActionState:nn,useOptimistic:nn,useMemoCache:nn,useCacheRefresh:nn};Ic.useEffectEvent=nn;var ME={readContext:$n,use:bf,useCallback:function(e,t){return nr().memoizedState=[e,t===void 0?null:t],e},useContext:$n,useEffect:gx,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Nd(4194308,4,vE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nd(4194308,4,e,t)},useInsertionEffect:function(e,t){Nd(4,2,e,t)},useMemo:function(e,t){var n=nr();t=t===void 0?null:t;var r=e();if(za){Co(!0);try{e()}finally{Co(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=nr();if(n!==void 0){var i=n(t);if(za){Co(!0);try{n(t)}finally{Co(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=DM.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=nr();return e={current:e},t.memoizedState=e},useState:function(e){e=Kg(e);var t=e.queue,n=RE.bind(null,We,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gh,useDeferredValue:function(e,t){var n=nr();return Kh(n,e,t)},useTransition:function(){var e=Kg(!1);return e=_E.bind(null,We,e.queue,!0,!1),nr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=We,i=nr();if(ot){if(n===void 0)throw Error(ee(407));n=n()}else{if(n=t(),Ct===null)throw Error(ee(349));(rt&127)!==0||oE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gx(sE.bind(null,r,o,e),[e]),r.flags|=2048,qs(9,{destroy:void 0},aE.bind(null,r,o,n,t),null),n},useId:function(){var e=nr(),t=Ct.identifierPrefix;if(ot){var n=Si,r=xi;n=(r&~(1<<32-Cr(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Wd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=AM++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wh,useFormState:fx,useActionState:fx,useOptimistic:function(e){var t=nr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Yh.bind(null,We,!0,n),n.dispatch=t,[e,t]},useMemoCache:jh,useCacheRefresh:function(){return nr().memoizedState=LM.bind(null,We)},useEffectEvent:function(e){var t=nr(),n={impl:e};return t.memoizedState=n,function(){if((yt&2)!==0)throw Error(ee(440));return n.impl.apply(void 0,arguments)}}},Vh={readContext:$n,use:bf,useCallback:SE,useContext:$n,useEffect:qh,useImperativeHandle:xE,useInsertionEffect:yE,useLayoutEffect:bE,useMemo:EE,useReducer:Td,useRef:gE,useState:function(){return Td(eo)},useDebugValue:Gh,useDeferredValue:function(e,t){var n=sn();return wE(n,kt.memoizedState,e,t)},useTransition:function(){var e=Td(eo)[0],t=sn().memoizedState;return[typeof e=="boolean"?e:Kc(e),t]},useSyncExternalStore:iE,useId:kE,useHostTransitionStatus:Wh,useFormState:px,useActionState:px,useOptimistic:function(e,t){var n=sn();return uE(n,kt,e,t)},useMemoCache:jh,useCacheRefresh:AE};Vh.useEffectEvent=hE;var IE={readContext:$n,use:bf,useCallback:SE,useContext:$n,useEffect:qh,useImperativeHandle:xE,useInsertionEffect:yE,useLayoutEffect:bE,useMemo:EE,useReducer:ng,useRef:gE,useState:function(){return ng(eo)},useDebugValue:Gh,useDeferredValue:function(e,t){var n=sn();return kt===null?Kh(n,e,t):wE(n,kt.memoizedState,e,t)},useTransition:function(){var e=ng(eo)[0],t=sn().memoizedState;return[typeof e=="boolean"?e:Kc(e),t]},useSyncExternalStore:iE,useId:kE,useHostTransitionStatus:Wh,useFormState:mx,useActionState:mx,useOptimistic:function(e,t){var n=sn();return kt!==null?uE(n,kt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:jh,useCacheRefresh:AE};IE.useEffectEvent=hE;function rg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$t({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vg={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mr(),i=zo(r);i.payload=t,n!=null&&(i.callback=n),t=Uo(e,i,r),t!==null&&(pr(t,e,r),hc(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mr(),i=zo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Uo(e,i,r),t!==null&&(pr(t,e,r),hc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mr(),r=zo(n);r.tag=2,t!=null&&(r.callback=t),t=Uo(e,r,n),t!==null&&(pr(t,e,n),hc(t,e,n))}};function hx(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Ac(n,r)||!Ac(i,o):!0}function yx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vg.enqueueReplaceState(t,t.state,null)}function Ua(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=$t({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function LE(e){Ud(e)}function DE(e){console.error(e)}function BE(e){Ud(e)}function Yd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function bx(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Xg(e,t,n){return n=zo(n),n.tag=3,n.payload={element:null},n.callback=function(){Yd(e,t)},n}function PE(e){return e=zo(e),e.tag=3,e}function zE(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){bx(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){bx(t,n,r),typeof i!="function"&&($o===null?$o=new Set([this]):$o.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function BM(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Zs(t,n,i,!0),n=Lr.current,n!==null){switch(n.tag){case 31:case 13:return Xr===null?Jd():n.alternate===null&&rn===0&&(rn=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Fd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mg(e,r,i)),!1;case 22:return n.flags|=65536,r===Fd?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),mg(e,r,i)),!1}throw Error(ee(435,n.tag))}return mg(e,r,i),Jd(),!1}if(ot)return t=Lr.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Pg&&(e=Error(ee(422),{cause:r}),Oc(Yr(e,n)))):(r!==Pg&&(t=Error(ee(423),{cause:r}),Oc(Yr(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Yr(r,n),i=Xg(e.stateNode,r,i),tg(e,i),rn!==4&&(rn=2)),!1;var o=Error(ee(520),{cause:r});if(o=Yr(o,n),Ec===null?Ec=[o]:Ec.push(o),rn!==4&&(rn=2),t===null)return!0;r=Yr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Xg(n.stateNode,r,e),tg(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&($o===null||!$o.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=PE(i),zE(i,e,n,r),tg(n,i),!1}n=n.return}while(n!==null);return!1}var Xh=Error(ee(461)),gn=!1;function Pn(e,t,n,r){t.child=e===null?ZS(t,null,n,r):Pa(t,e.child,n,r)}function vx(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)s!=="ref"&&(a[s]=r[s])}else a=r;return Ba(t),r=zh(e,t,n,a,o,i),s=Uh(),e!==null&&!gn?($h(e,t,i),to(e,t,i)):(ot&&s&&Oh(t),t.flags|=1,Pn(e,t,r,i),t.child)}function xx(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Rh(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,UE(e,t,o,r,i)):(e=wd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Qh(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ac,n(a,r)&&e.ref===t.ref)return to(e,t,i)}return t.flags|=1,e=Vi(o,r),e.ref=t.ref,e.return=t,t.child=e}function UE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ac(o,r)&&e.ref===t.ref)if(gn=!1,t.pendingProps=r=o,Qh(e,i))(e.flags&131072)!==0&&(gn=!0);else return t.lanes=e.lanes,to(e,t,i)}return Qg(e,t,n,r,i)}function $E(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return Sx(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_d(t,o!==null?o.cachePool:null),o!==null?cx(t,o):qg(),tE(t);else return r=t.lanes=536870912,Sx(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(_d(t,o.cachePool),cx(t,o),Ro(t),t.memoizedState=null):(e!==null&&_d(t,null),qg(),Ro(t));return Pn(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Sx(e,t,n,r,i){var o=Ih();return o=o===null?null:{parent:mn._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&_d(t,null),qg(),tE(t),e!==null&&Zs(e,t,r,!0),t.childLanes=i,null}function kd(e,t){return t=Vd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ex(e,t,n){return Pa(t,e.child,null,n),e=kd(t,t.pendingProps),e.flags|=2,Nr(t),t.memoizedState=null,e}function PM(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(r.mode==="hidden")return e=kd(t,r),t.lanes=536870912,uc(null,e);if(Gg(t),(e=Ut)?(e=Mw(e,Vr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Go!==null?{id:xi,overflow:Si}:null,retryLane:536870912,hydrationErrors:null},n=GS(e),n.return=t,t.child=n,Un=t,Ut=null)):e=null,e===null)throw Ko(t);return t.lanes=536870912,null}return kd(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(Gg(t),i)if(t.flags&256)t.flags&=-257,t=Ex(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(ee(558));else if(gn||Zs(e,t,n,!1),i=(n&e.childLanes)!==0,gn||i){if(r=Ct,r!==null&&(a=yS(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,Fa(e,a),pr(r,e,a),Xh;Jd(),t=Ex(e,t,n)}else e=o.treeContext,Ut=Qr(a.nextSibling),Un=t,ot=!0,Po=null,Vr=!1,e!==null&&WS(t,e),t=kd(t,r),t.flags|=4096;return t}return e=Vi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ad(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(ee(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qg(e,t,n,r,i){return Ba(t),n=zh(e,t,n,r,void 0,i),r=Uh(),e!==null&&!gn?($h(e,t,i),to(e,t,i)):(ot&&r&&Oh(t),t.flags|=1,Pn(e,t,n,i),t.child)}function wx(e,t,n,r,i,o){return Ba(t),t.updateQueue=null,n=rE(t,r,n,i),nE(e),r=Uh(),e!==null&&!gn?($h(e,t,o),to(e,t,o)):(ot&&r&&Oh(t),t.flags|=1,Pn(e,t,n,o),t.child)}function _x(e,t,n,r,i){if(Ba(t),t.stateNode===null){var o=As,a=n.contextType;typeof a=="object"&&a!==null&&(o=$n(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Vg,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},Dh(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?$n(a):As,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(rg(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&Vg.enqueueReplaceState(o,o.state,null),bc(t,r,o,i),yc(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var s=t.memoizedProps,l=Ua(n,s);o.props=l;var c=o.context,d=n.contextType;a=As,typeof d=="object"&&d!==null&&(a=$n(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||c!==a)&&yx(t,o,r,a),No=!1;var m=t.memoizedState;o.state=m,bc(t,r,o,i),yc(),c=t.memoizedState,s||m!==c||No?(typeof f=="function"&&(rg(t,n,f,r),c=t.memoizedState),(l=No||hx(t,n,l,r,m,c,a))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=a,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,jg(e,t),a=t.memoizedProps,d=Ua(n,a),o.props=d,f=t.pendingProps,m=o.context,c=n.contextType,l=As,typeof c=="object"&&c!==null&&(l=$n(c)),s=n.getDerivedStateFromProps,(c=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||m!==l)&&yx(t,o,r,l),No=!1,m=t.memoizedState,o.state=m,bc(t,r,o,i),yc();var p=t.memoizedState;a!==f||m!==p||No||e!==null&&e.dependencies!==null&&jd(e.dependencies)?(typeof s=="function"&&(rg(t,n,s,r),p=t.memoizedState),(d=No||hx(t,n,d,r,m,p,l)||e!==null&&e.dependencies!==null&&jd(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Ad(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=Pa(t,e.child,null,i),t.child=Pa(t,null,n,i)):Pn(e,t,n,i),t.memoizedState=o.state,e=t.child):e=to(e,t,i),e}function Tx(e,t,n,r){return Da(),t.flags|=256,Pn(e,t,n,r),t.child}var ig={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function og(e){return{baseLanes:e,cachePool:VS()}}function ag(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ar),e}function HE(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(an.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(i?Ao(t):Ro(t),(e=Ut)?(e=Mw(e,Vr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Go!==null?{id:xi,overflow:Si}:null,retryLane:536870912,hydrationErrors:null},n=GS(e),n.return=t,t.child=n,Un=t,Ut=null)):e=null,e===null)throw Ko(t);return dh(e)?t.lanes=32:t.lanes=536870912,null}var s=r.children;return r=r.fallback,i?(Ro(t),i=t.mode,s=Vd({mode:"hidden",children:s},i),r=Ca(r,i,n,null),s.return=t,r.return=t,s.sibling=r,t.child=s,r=t.child,r.memoizedState=og(n),r.childLanes=ag(e,a,n),t.memoizedState=ig,uc(null,r)):(Ao(t),Zg(t,s))}var l=e.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(o)t.flags&256?(Ao(t),t.flags&=-257,t=sg(e,t,n)):t.memoizedState!==null?(Ro(t),t.child=e.child,t.flags|=128,t=null):(Ro(t),s=r.fallback,i=t.mode,r=Vd({mode:"visible",children:r.children},i),s=Ca(s,i,n,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,Pa(t,e.child,null,n),r=t.child,r.memoizedState=og(n),r.childLanes=ag(e,a,n),t.memoizedState=ig,t=uc(null,r));else if(Ao(t),dh(s)){if(a=s.nextSibling&&s.nextSibling.dataset,a)var c=a.dgst;a=c,r=Error(ee(419)),r.stack="",r.digest=a,Oc({value:r,source:null,stack:null}),t=sg(e,t,n)}else if(gn||Zs(e,t,n,!1),a=(n&e.childLanes)!==0,gn||a){if(a=Ct,a!==null&&(r=yS(a,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Fa(e,r),pr(a,e,r),Xh;uh(s)||Jd(),t=sg(e,t,n)}else uh(s)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ut=Qr(s.nextSibling),Un=t,ot=!0,Po=null,Vr=!1,e!==null&&WS(t,e),t=Zg(t,r.children),t.flags|=4096);return t}return i?(Ro(t),s=r.fallback,i=t.mode,l=e.child,c=l.sibling,r=Vi(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?s=Vi(c,s):(s=Ca(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,uc(null,r),r=t.child,s=e.child.memoizedState,s===null?s=og(n):(i=s.cachePool,i!==null?(l=mn._currentValue,i=i.parent!==l?{parent:l,pool:l}:i):i=VS(),s={baseLanes:s.baseLanes|n,cachePool:i}),r.memoizedState=s,r.childLanes=ag(e,a,n),t.memoizedState=ig,uc(e.child,r)):(Ao(t),n=e.child,e=n.sibling,n=Vi(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Zg(e,t){return t=Vd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vd(e,t){return e=kr(22,e,null,t),e.lanes=0,e}function sg(e,t,n){return Pa(t,e.child,null,n),e=Zg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ug(e.return,t,n)}function lg(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function jE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=an.current,s=(a&2)!==0;if(s?(a=a&1|2,t.flags|=128):a&=1,Mt(an,a),Pn(e,t,r,n),r=ot?Rc:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nx(e,n,t);else if(e.tag===19)Nx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Gd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),lg(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Gd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}lg(t,!0,n,null,o,r);break;case"together":lg(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function to(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yo|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(ee(153));if(t.child!==null){for(e=t.child,n=Vi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&jd(e)))}function zM(e,t,n){switch(t.tag){case 3:Dd(t,t.stateNode.containerInfo),ko(t,mn,e.memoizedState.cache),Da();break;case 27:case 5:Ng(t);break;case 4:Dd(t,t.stateNode.containerInfo);break;case 10:ko(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gg(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ao(t),t.flags|=128,null):(n&t.child.childLanes)!==0?HE(e,t,n):(Ao(t),e=to(e,t,n),e!==null?e.sibling:null);Ao(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Zs(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return jE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mt(an,an.current),r)break;return null;case 22:return t.lanes=0,$E(e,t,n,t.pendingProps);case 24:ko(t,mn,e.memoizedState.cache)}return to(e,t,n)}function FE(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)gn=!0;else{if(!Qh(e,n)&&(t.flags&128)===0)return gn=!1,zM(e,t,n);gn=(e.flags&131072)!==0}else gn=!1,ot&&(t.flags&1048576)!==0&&KS(t,Rc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Aa(t.elementType),t.type=e,typeof e=="function")Rh(e)?(r=Ua(e,r),t.tag=1,t=_x(null,t,e,r,n)):(t.tag=0,t=Qg(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===gh){t.tag=11,t=vx(null,t,e,r,n);break e}else if(i===hh){t.tag=14,t=xx(null,t,e,r,n);break e}}throw t=_g(e)||e,Error(ee(306,t,""))}}return t;case 0:return Qg(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ua(r,t.pendingProps),_x(e,t,r,i,n);case 3:e:{if(Dd(t,t.stateNode.containerInfo),e===null)throw Error(ee(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,jg(e,t),bc(t,r,null,n);var a=t.memoizedState;if(r=a.cache,ko(t,mn,r),r!==o.cache&&$g(t,[mn],n,!0),yc(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Tx(e,t,r,n);break e}else if(r!==i){i=Yr(Error(ee(424)),t),Oc(i),t=Tx(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ut=Qr(e.firstChild),Un=t,ot=!0,Po=null,Vr=!0,n=ZS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Da(),r===i){t=to(e,t,n);break e}Pn(e,t,r,n)}t=t.child}return t;case 26:return Ad(e,t),e===null?(n=Yx(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,r=rf(Bo.current).createElement(n),r[zn]=t,r[mr]=e,Hn(r,n,e),Rn(r),t.stateNode=r):t.memoizedState=Yx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ng(t),e===null&&ot&&(r=t.stateNode=Iw(t.type,t.pendingProps,Bo.current),Un=t,Vr=!0,i=Ut,Xo(t.type)?(fh=i,Ut=Qr(r.firstChild)):Ut=i),Pn(e,t,t.pendingProps.children,n),Ad(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((i=r=Ut)&&(r=fI(r,t.type,t.pendingProps,Vr),r!==null?(t.stateNode=r,Un=t,Ut=Qr(r.firstChild),Vr=!1,i=!0):i=!1),i||Ko(t)),Ng(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,lh(i,o)?r=null:a!==null&&lh(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=zh(e,t,RM,null,null,n),Bc._currentValue=i),Ad(e,t),Pn(e,t,r,n),t.child;case 6:return e===null&&ot&&((e=n=Ut)&&(n=pI(n,t.pendingProps,Vr),n!==null?(t.stateNode=n,Un=t,Ut=null,e=!0):e=!1),e||Ko(t)),null;case 13:return HE(e,t,n);case 4:return Dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pa(t,null,r,n):Pn(e,t,r,n),t.child;case 11:return vx(e,t,t.type,t.pendingProps,n);case 7:return Pn(e,t,t.pendingProps,n),t.child;case 8:return Pn(e,t,t.pendingProps.children,n),t.child;case 12:return Pn(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ko(t,t.type,r.value),Pn(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Ba(t),i=$n(i),r=r(i),t.flags|=1,Pn(e,t,r,n),t.child;case 14:return xx(e,t,t.type,t.pendingProps,n);case 15:return UE(e,t,t.type,t.pendingProps,n);case 19:return jE(e,t,n);case 31:return PM(e,t,n);case 22:return $E(e,t,n,t.pendingProps);case 24:return Ba(t),r=$n(mn),e===null?(i=Ih(),i===null&&(i=Ct,o=Mh(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Dh(t),ko(t,mn,i)):((e.lanes&n)!==0&&(jg(e,t),bc(t,null,null,n),yc()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ko(t,mn,r)):(r=o.cache,ko(t,mn,r),r!==i.cache&&$g(t,[mn],n,!0))),Pn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(ee(156,t.tag))}function $i(e){e.flags|=4}function cg(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(pw())e.flags|=8192;else throw Ia=Fd,Lh}else e.flags&=-16777217}function kx(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bw(t))if(pw())e.flags|=8192;else throw Ia=Fd,Lh}function fd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mS():536870912,e.lanes|=t,Gs|=t)}function rc(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function UM(e,t,n){var r=t.pendingProps;switch(Ch(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(t),null;case 1:return zt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xi(mn),Us(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hs(t)?$i(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,eg())),zt(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?($i(t),o!==null?(zt(t),kx(t,o)):(zt(t),cg(t,i,null,r,n))):o?o!==e.memoizedState?($i(t),zt(t),kx(t,o)):(zt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&$i(t),zt(t),cg(t,i,e,r,n)),null;case 27:if(Bd(t),n=Bo.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&$i(t);else{if(!r){if(t.stateNode===null)throw Error(ee(166));return zt(t),null}e=wi.current,hs(t)?nx(t,e):(e=Iw(i,r,n),t.stateNode=e,$i(t))}return zt(t),null;case 5:if(Bd(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&$i(t);else{if(!r){if(t.stateNode===null)throw Error(ee(166));return zt(t),null}if(o=wi.current,hs(t))nx(t,o);else{var a=rf(Bo.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[zn]=t,o[mr]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(Hn(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&$i(t)}}return zt(t),cg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&$i(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ee(166));if(e=Bo.current,hs(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Un,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[zn]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||Rw(e.nodeValue,n)),e||Ko(t,!0)}else e=rf(e).createTextNode(r),e[zn]=t,t.stateNode=e}return zt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=hs(t),n!==null){if(e===null){if(!r)throw Error(ee(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ee(557));e[zn]=t}else Da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zt(t),e=!1}else n=eg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nr(t),t):(Nr(t),null);if((t.flags&128)!==0)throw Error(ee(558))}return zt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=hs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(ee(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ee(317));i[zn]=t}else Da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zt(t),i=!1}else i=eg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Nr(t),t):(Nr(t),null)}return Nr(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fd(t,t.updateQueue),zt(t),null);case 4:return Us(),e===null&&iy(t.stateNode.containerInfo),zt(t),null;case 10:return Xi(t.type),zt(t),null;case 19:if(On(an),r=t.memoizedState,r===null)return zt(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)rc(r,!1);else{if(rn!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Gd(e),o!==null){for(t.flags|=128,rc(r,!1),e=o.updateQueue,t.updateQueue=e,fd(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qS(n,e),n=n.sibling;return Mt(an,an.current&1|2),ot&&qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Rr()>Qd&&(t.flags|=128,i=!0,rc(r,!1),t.lanes=4194304)}else{if(!i)if(e=Gd(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fd(t,e),rc(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!ot)return zt(t),null}else 2*Rr()-r.renderingStartTime>Qd&&n!==536870912&&(t.flags|=128,i=!0,rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Rr(),e.sibling=null,n=an.current,Mt(an,i?n&1|2:n&1),ot&&qi(t,r.treeForkCount),e):(zt(t),null);case 22:case 23:return Nr(t),Bh(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(zt(t),t.subtreeFlags&6&&(t.flags|=8192)):zt(t),n=t.updateQueue,n!==null&&fd(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&On(Ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(mn),zt(t),null;case 25:return null;case 30:return null}throw Error(ee(156,t.tag))}function $M(e,t){switch(Ch(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(mn),Us(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bd(t),null;case 31:if(t.memoizedState!==null){if(Nr(t),t.alternate===null)throw Error(ee(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return On(an),null;case 4:return Us(),null;case 10:return Xi(t.type),null;case 22:case 23:return Nr(t),Bh(),e!==null&&On(Ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(mn),null;case 25:return null;default:return null}}function qE(e,t){switch(Ch(t),t.tag){case 3:Xi(mn),Us();break;case 26:case 27:case 5:Bd(t);break;case 4:Us();break;case 31:t.memoizedState!==null&&Nr(t);break;case 13:Nr(t);break;case 19:On(an);break;case 10:Xi(t.type);break;case 22:case 23:Nr(t),Bh(),e!==null&&On(Ma);break;case 24:Xi(mn)}}function Wc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){Et(t,t.return,s)}}function Wo(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,i=t;var l=n,c=s;try{c()}catch(d){Et(i,l,d)}}}r=r.next}while(r!==o)}}catch(d){Et(t,t.return,d)}}function GE(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eE(t,n)}catch(r){Et(e,e.return,r)}}}function KE(e,t,n){n.props=Ua(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Et(e,t,r)}}function xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){Et(e,t,i)}}function Ei(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){Et(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Et(e,t,i)}else n.current=null}function WE(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Et(e,e.return,i)}}function ug(e,t,n){try{var r=e.stateNode;aI(r,e.type,n,t),r[mr]=t}catch(i){Et(e,e.return,i)}}function YE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xo(e.type)||e.tag===4}function dg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YE(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.tag===27&&Xo(e.type)||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 Jg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wi));else if(r!==4&&(r===27&&Xo(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jg(e,t,n),e=e.sibling;e!==null;)Jg(e,t,n),e=e.sibling}function Xd(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&&(r===27&&Xo(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xd(e,t,n),e=e.sibling;e!==null;)Xd(e,t,n),e=e.sibling}function VE(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hn(t,r,n),t[zn]=e,t[mr]=n}catch(o){Et(e,e.return,o)}}var Gi=!1,pn=!1,fg=!1,Ax=typeof WeakSet=="function"?WeakSet:Set,An=null;function HM(e,t){if(e=e.containerInfo,ah=lf,e=BS(e),Nh(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 a=0,s=-1,l=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=a),m===o&&++d===r&&(l=a),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sh={focusedElem:e,selectionRange:n},lf=!1,An=t;An!==null;)if(t=An,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,An=e;else for(;An!==null;){switch(t=An,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var v=Ua(n.type,i);e=r.getSnapshotBeforeUpdate(v,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){Et(n,n.return,b)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ch(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ch(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(ee(163))}if(e=t.sibling,e!==null){e.return=t.return,An=e;break}An=t.return}}function XE(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ji(e,n),r&4&&Wc(5,n);break;case 1:if(ji(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){Et(n,n.return,a)}else{var i=Ua(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){Et(n,n.return,a)}}r&64&&GE(n),r&512&&xc(n,n.return);break;case 3:if(ji(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{eE(e,t)}catch(a){Et(n,n.return,a)}}break;case 27:t===null&&r&4&&VE(n);case 26:case 5:ji(e,n),t===null&&r&4&&WE(n),r&512&&xc(n,n.return);break;case 12:ji(e,n);break;case 31:ji(e,n),r&4&&JE(e,n);break;case 13:ji(e,n),r&4&&ew(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=XM.bind(null,n),mI(e,n))));break;case 22:if(r=n.memoizedState!==null||Gi,!r){t=t!==null&&t.memoizedState!==null||pn,i=Gi;var o=pn;Gi=r,(pn=t)&&!o?Fi(e,n,(n.subtreeFlags&8772)!==0):ji(e,n),Gi=i,pn=o}break;case 30:break;default:ji(e,n)}}function QE(e){var t=e.alternate;t!==null&&(e.alternate=null,QE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xh(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qt=null,dr=!1;function Hi(e,t,n){for(n=n.child;n!==null;)ZE(e,t,n),n=n.sibling}function ZE(e,t,n){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount($c,n)}catch{}switch(n.tag){case 26:pn||Ei(n,t),Hi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pn||Ei(n,t);var r=qt,i=dr;Xo(n.type)&&(qt=n.stateNode,dr=!1),Hi(e,t,n),_c(n.stateNode),qt=r,dr=i;break;case 5:pn||Ei(n,t);case 6:if(r=qt,i=dr,qt=null,Hi(e,t,n),qt=r,dr=i,qt!==null)if(dr)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode)}catch(o){Et(n,t,o)}else try{qt.removeChild(n.stateNode)}catch(o){Et(n,t,o)}break;case 18:qt!==null&&(dr?(e=qt,Fx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Vs(e)):Fx(qt,n.stateNode));break;case 4:r=qt,i=dr,qt=n.stateNode.containerInfo,dr=!0,Hi(e,t,n),qt=r,dr=i;break;case 0:case 11:case 14:case 15:Wo(2,n,t),pn||Wo(4,n,t),Hi(e,t,n);break;case 1:pn||(Ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&KE(n,t,r)),Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:pn=(r=pn)||n.memoizedState!==null,Hi(e,t,n),pn=r;break;default:Hi(e,t,n)}}function JE(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vs(e)}catch(n){Et(t,t.return,n)}}}function ew(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vs(e)}catch(n){Et(t,t.return,n)}}function jM(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ax),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ax),t;default:throw Error(ee(435,e.tag))}}function pd(e,t){var n=jM(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=QM.bind(null,e,r);r.then(i,i)}})}function cr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 27:if(Xo(s.type)){qt=s.stateNode,dr=!1;break e}break;case 5:qt=s.stateNode,dr=!1;break e;case 3:case 4:qt=s.stateNode.containerInfo,dr=!0;break e}s=s.return}if(qt===null)throw Error(ee(160));ZE(o,a,i),qt=null,dr=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)tw(t,e),t=t.sibling}var ci=null;function tw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:cr(t,e),ur(e),r&4&&(Wo(3,e,e.return),Wc(3,e),Wo(5,e,e.return));break;case 1:cr(t,e),ur(e),r&512&&(pn||n===null||Ei(n,n.return)),r&64&&Gi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=ci;if(cr(t,e),ur(e),r&512&&(pn||n===null||Ei(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Fc]||o[zn]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Hn(o,r,n),o[zn]=e,Rn(o),r=o;break e;case"link":var a=Xx("link","href",i).get(r+(n.href||""));if(a){for(var s=0;s<a.length;s++)if(o=a[s],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(s,1);break t}}o=i.createElement(r),Hn(o,r,n),i.head.appendChild(o);break;case"meta":if(a=Xx("meta","content",i).get(r+(n.content||""))){for(s=0;s<a.length;s++)if(o=a[s],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(s,1);break t}}o=i.createElement(r),Hn(o,r,n),i.head.appendChild(o);break;default:throw Error(ee(468,r))}o[zn]=e,Rn(o),r=o}e.stateNode=r}else Qx(i,e.type,e.stateNode);else e.stateNode=Vx(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Qx(i,e.type,e.stateNode):Vx(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ug(e,e.memoizedProps,n.memoizedProps)}break;case 27:cr(t,e),ur(e),r&512&&(pn||n===null||Ei(n,n.return)),n!==null&&r&4&&ug(e,e.memoizedProps,n.memoizedProps);break;case 5:if(cr(t,e),ur(e),r&512&&(pn||n===null||Ei(n,n.return)),e.flags&32){i=e.stateNode;try{Hs(i,"")}catch(v){Et(e,e.return,v)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,ug(e,i,n!==null?n.memoizedProps:i)),r&1024&&(fg=!0);break;case 6:if(cr(t,e),ur(e),r&4){if(e.stateNode===null)throw Error(ee(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(v){Et(e,e.return,v)}}break;case 3:if(Cd=null,i=ci,ci=of(t.containerInfo),cr(t,e),ci=i,ur(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vs(t.containerInfo)}catch(v){Et(e,e.return,v)}fg&&(fg=!1,nw(e));break;case 4:r=ci,ci=of(e.stateNode.containerInfo),cr(t,e),ur(e),ci=r;break;case 12:cr(t,e),ur(e);break;case 31:cr(t,e),ur(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pd(e,r)));break;case 13:cr(t,e),ur(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Sf=Rr()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pd(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Gi,d=pn;if(Gi=c||i,pn=d||l,cr(t,e),pn=d,Gi=c,ur(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Gi||pn||Ra(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{s=l.stateNode;var f=l.memoizedProps.style,m=f!=null&&f.hasOwnProperty("display")?f.display:null;s.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(v){Et(l,l.return,v)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(v){Et(l,l.return,v)}}}else if(t.tag===18){if(n===null){l=t;try{var p=l.stateNode;i?qx(p,!0):qx(l.stateNode,!1)}catch(v){Et(l,l.return,v)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,pd(e,n))));break;case 19:cr(t,e),ur(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pd(e,r)));break;case 30:break;case 21:break;default:cr(t,e),ur(e)}}function ur(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(YE(r)){n=r;break}r=r.return}if(n==null)throw Error(ee(160));switch(n.tag){case 27:var i=n.stateNode,o=dg(e);Xd(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(Hs(a,""),n.flags&=-33);var s=dg(e);Xd(e,s,a);break;case 3:case 4:var l=n.stateNode.containerInfo,c=dg(e);Jg(e,c,l);break;default:throw Error(ee(161))}}catch(d){Et(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nw(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;nw(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ji(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)XE(e,t.alternate,t),t=t.sibling}function Ra(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wo(4,t,t.return),Ra(t);break;case 1:Ei(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&KE(t,t.return,n),Ra(t);break;case 27:_c(t.stateNode);case 26:case 5:Ei(t,t.return),Ra(t);break;case 22:t.memoizedState===null&&Ra(t);break;case 30:Ra(t);break;default:Ra(t)}e=e.sibling}}function Fi(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Fi(i,o,n),Wc(4,o);break;case 1:if(Fi(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){Et(r,r.return,c)}if(r=o,i=r.updateQueue,i!==null){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)JS(l[i],s)}catch(c){Et(r,r.return,c)}}n&&a&64&&GE(o),xc(o,o.return);break;case 27:VE(o);case 26:case 5:Fi(i,o,n),n&&r===null&&a&4&&WE(o),xc(o,o.return);break;case 12:Fi(i,o,n);break;case 31:Fi(i,o,n),n&&a&4&&JE(i,o);break;case 13:Fi(i,o,n),n&&a&4&&ew(i,o);break;case 22:o.memoizedState===null&&Fi(i,o,n),xc(o,o.return);break;case 30:break;default:Fi(i,o,n)}t=t.sibling}}function Zh(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Gc(n))}function Jh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gc(e))}function li(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rw(e,t,n,r),t=t.sibling}function rw(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:li(e,t,n,r),i&2048&&Wc(9,t);break;case 1:li(e,t,n,r);break;case 3:li(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gc(e)));break;case 12:if(i&2048){li(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;typeof s=="function"&&s(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Et(t,t.return,l)}}else li(e,t,n,r);break;case 31:li(e,t,n,r);break;case 13:li(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?li(e,t,n,r):Sc(e,t):o._visibility&2?li(e,t,n,r):(o._visibility|=2,bs(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Zh(a,t);break;case 24:li(e,t,n,r),i&2048&&Jh(t.alternate,t);break;default:li(e,t,n,r)}}function bs(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:bs(o,a,s,l,i),Wc(8,a);break;case 23:break;case 22:var d=a.stateNode;a.memoizedState!==null?d._visibility&2?bs(o,a,s,l,i):Sc(o,a):(d._visibility|=2,bs(o,a,s,l,i)),i&&c&2048&&Zh(a.alternate,a);break;case 24:bs(o,a,s,l,i),i&&c&2048&&Jh(a.alternate,a);break;default:bs(o,a,s,l,i)}t=t.sibling}}function Sc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Sc(n,r),i&2048&&Zh(r.alternate,r);break;case 24:Sc(n,r),i&2048&&Jh(r.alternate,r);break;default:Sc(n,r)}t=t.sibling}}var dc=8192;function ys(e,t,n){if(e.subtreeFlags&dc)for(e=e.child;e!==null;)iw(e,t,n),e=e.sibling}function iw(e,t,n){switch(e.tag){case 26:ys(e,t,n),e.flags&dc&&e.memoizedState!==null&&NI(n,ci,e.memoizedState,e.memoizedProps);break;case 5:ys(e,t,n);break;case 3:case 4:var r=ci;ci=of(e.stateNode.containerInfo),ys(e,t,n),ci=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=dc,dc=16777216,ys(e,t,n),dc=r):ys(e,t,n));break;default:ys(e,t,n)}}function ow(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ic(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];An=r,sw(r,e)}ow(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)aw(e),e=e.sibling}function aw(e){switch(e.tag){case 0:case 11:case 15:ic(e),e.flags&2048&&Wo(9,e,e.return);break;case 3:ic(e);break;case 12:ic(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rd(e)):ic(e);break;default:ic(e)}}function Rd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];An=r,sw(r,e)}ow(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wo(8,t,t.return),Rd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rd(t));break;default:Rd(t)}e=e.sibling}}function sw(e,t){for(;An!==null;){var n=An;switch(n.tag){case 0:case 11:case 15:Wo(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Gc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,An=r;else e:for(n=e;An!==null;){r=An;var i=r.sibling,o=r.return;if(QE(r),r===n){An=null;break e}if(i!==null){i.return=o,An=i;break e}An=o}}}var FM={getCacheForType:function(e){var t=$n(mn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $n(mn).controller.signal}},qM=typeof WeakMap=="function"?WeakMap:Map,yt=0,Ct=null,nt=null,rt=0,St=0,Tr=null,Io=!1,el=!1,ey=!1,no=0,rn=0,Yo=0,La=0,ty=0,Ar=0,Gs=0,Ec=null,fr=null,eh=!1,Sf=0,lw=0,Qd=1/0,Zd=null,$o=null,vn=0,Ho=null,Ks=null,Qi=0,th=0,nh=null,cw=null,wc=0,rh=null;function Mr(){return(yt&2)!==0&&rt!==0?rt&-rt:De.T!==null?ry():bS()}function uw(){if(Ar===0)if((rt&536870912)===0||ot){var e=rd;rd<<=1,(rd&3932160)===0&&(rd=262144),Ar=e}else Ar=536870912;return e=Lr.current,e!==null&&(e.flags|=32),Ar}function pr(e,t,n){(e===Ct&&(St===2||St===9)||e.cancelPendingCommit!==null)&&(Ws(e,0),Lo(e,rt,Ar,!1)),jc(e,n),((yt&2)===0||e!==Ct)&&(e===Ct&&((yt&2)===0&&(La|=n),rn===4&&Lo(e,rt,Ar,!1)),Ti(e))}function dw(e,t,n){if((yt&6)!==0)throw Error(ee(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Hc(e,t),i=r?WM(e,t):pg(e,t,!0),o=r;do{if(i===0){el&&!r&&Lo(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!GM(n)){i=pg(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var s=e;i=Ec;var l=s.current.memoizedState.isDehydrated;if(l&&(Ws(s,a).flags|=256),a=pg(s,a,!1),a!==2){if(ey&&!l){s.errorRecoveryDisabledLanes|=o,La|=o,i=4;break e}o=fr,fr=i,o!==null&&(fr===null?fr=o:fr.push.apply(fr,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){Ws(e,0),Lo(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(ee(345));case 4:if((t&4194048)!==t)break;case 6:Lo(r,t,Ar,!Io);break e;case 2:fr=null;break;case 3:case 5:break;default:throw Error(ee(329))}if((t&62914560)===t&&(i=Sf+300-Rr(),10<i)){if(Lo(r,t,Ar,!Io),uf(r,0,!0)!==0)break e;Qi=t,r.timeoutHandle=Cw(Rx.bind(null,r,n,fr,Zd,eh,t,Ar,La,Gs,Io,o,"Throttled",-0,0),i);break e}Rx(r,n,fr,Zd,eh,t,Ar,La,Gs,Io,o,null,-0,0)}}break}while(!0);Ti(e)}function Rx(e,t,n,r,i,o,a,s,l,c,d,f,m,p){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wi},iw(t,o,f);var v=(o&62914560)===o?Sf-Rr():(o&4194048)===o?lw-Rr():0;if(v=kI(f,v),v!==null){Qi=o,e.cancelPendingCommit=v(Cx.bind(null,e,t,o,n,r,i,a,s,l,d,f,null,m,p)),Lo(e,o,a,!c);return}}Cx(e,t,o,n,r,i,a,s,l)}function GM(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ir(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lo(e,t,n,r){t&=~ty,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-Cr(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&gS(e,n,t)}function Ef(){return(yt&6)===0?(Yc(0,!1),!1):!0}function ny(){if(nt!==null){if(St===0)var e=nt.return;else e=nt,Yi=qa=null,Hh(e),Bs=null,Cc=0,e=nt;for(;e!==null;)qE(e.alternate,e),e=e.return;nt=null}}function Ws(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,cI(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Qi=0,ny(),Ct=e,nt=n=Vi(e.current,null),rt=t,St=0,Tr=null,Io=!1,el=Hc(e,t),ey=!1,Gs=Ar=ty=La=Yo=rn=0,fr=Ec=null,eh=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Cr(r),o=1<<i;t|=e[i],r&=~o}return no=t,mf(),n}function fw(e,t){We=null,De.H=Ic,t===Js||t===hf?(t=sx(),St=3):t===Lh?(t=sx(),St=4):St=t===Xh?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tr=t,nt===null&&(rn=1,Yd(e,Yr(t,e.current)))}function pw(){var e=Lr.current;return e===null?!0:(rt&4194048)===rt?Xr===null:(rt&62914560)===rt||(rt&536870912)!==0?e===Xr:!1}function mw(){var e=De.H;return De.H=Ic,e===null?Ic:e}function gw(){var e=De.A;return De.A=FM,e}function Jd(){rn=4,Io||(rt&4194048)!==rt&&Lr.current!==null||(el=!0),(Yo&134217727)===0&&(La&134217727)===0||Ct===null||Lo(Ct,rt,Ar,!1)}function pg(e,t,n){var r=yt;yt|=2;var i=mw(),o=gw();(Ct!==e||rt!==t)&&(Zd=null,Ws(e,t)),t=!1;var a=rn;e:do try{if(St!==0&&nt!==null){var s=nt,l=Tr;switch(St){case 8:ny(),a=6;break e;case 3:case 2:case 9:case 6:Lr.current===null&&(t=!0);var c=St;if(St=0,Tr=null,Cs(e,s,l,c),n&&el){a=0;break e}break;default:c=St,St=0,Tr=null,Cs(e,s,l,c)}}KM(),a=rn;break}catch(d){fw(e,d)}while(!0);return t&&e.shellSuspendCounter++,Yi=qa=null,yt=r,De.H=i,De.A=o,nt===null&&(Ct=null,rt=0,mf()),a}function KM(){for(;nt!==null;)hw(nt)}function WM(e,t){var n=yt;yt|=2;var r=mw(),i=gw();Ct!==e||rt!==t?(Zd=null,Qd=Rr()+500,Ws(e,t)):el=Hc(e,t);e:do try{if(St!==0&&nt!==null){t=nt;var o=Tr;t:switch(St){case 1:St=0,Tr=null,Cs(e,t,o,1);break;case 2:case 9:if(ax(o)){St=0,Tr=null,Ox(t);break}t=function(){St!==2&&St!==9||Ct!==e||(St=7),Ti(e)},o.then(t,t);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:ax(o)?(St=0,Tr=null,Ox(t)):(St=0,Tr=null,Cs(e,t,o,7));break;case 5:var a=null;switch(nt.tag){case 26:a=nt.memoizedState;case 5:case 27:var s=nt;if(a?Bw(a):s.stateNode.complete){St=0,Tr=null;var l=s.sibling;if(l!==null)nt=l;else{var c=s.return;c!==null?(nt=c,wf(c)):nt=null}break t}}St=0,Tr=null,Cs(e,t,o,5);break;case 6:St=0,Tr=null,Cs(e,t,o,6);break;case 8:ny(),rn=6;break e;default:throw Error(ee(462))}}YM();break}catch(d){fw(e,d)}while(!0);return Yi=qa=null,De.H=r,De.A=i,yt=n,nt!==null?0:(Ct=null,rt=0,mf(),rn)}function YM(){for(;nt!==null&&!yC();)hw(nt)}function hw(e){var t=FE(e.alternate,e,no);e.memoizedProps=e.pendingProps,t===null?wf(e):nt=t}function Ox(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=wx(n,t,t.pendingProps,t.type,void 0,rt);break;case 11:t=wx(n,t,t.pendingProps,t.type.render,t.ref,rt);break;case 5:Hh(t);default:qE(n,t),t=nt=qS(t,no),t=FE(n,t,no)}e.memoizedProps=e.pendingProps,t===null?wf(e):nt=t}function Cs(e,t,n,r){Yi=qa=null,Hh(t),Bs=null,Cc=0;var i=t.return;try{if(BM(e,i,t,n,rt)){rn=1,Yd(e,Yr(n,e.current)),nt=null;return}}catch(o){if(i!==null)throw nt=i,o;rn=1,Yd(e,Yr(n,e.current)),nt=null;return}t.flags&32768?(ot||r===1?e=!0:el||(rt&536870912)!==0?e=!1:(Io=e=!0,(r===2||r===9||r===3||r===6)&&(r=Lr.current,r!==null&&r.tag===13&&(r.flags|=16384))),yw(t,e)):wf(t)}function wf(e){var t=e;do{if((t.flags&32768)!==0){yw(t,Io);return}e=t.return;var n=UM(t.alternate,t,no);if(n!==null){nt=n;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);rn===0&&(rn=5)}function yw(e,t){do{var n=$M(e.alternate,e);if(n!==null){n.flags&=32767,nt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){nt=e;return}nt=e=n}while(e!==null);rn=6,nt=null}function Cx(e,t,n,r,i,o,a,s,l){e.cancelPendingCommit=null;do _f();while(vn!==0);if((yt&6)!==0)throw Error(ee(327));if(t!==null){if(t===e.current)throw Error(ee(177));if(o=t.lanes|t.childLanes,o|=kh,kC(e,n,o,a,s,l),e===Ct&&(nt=Ct=null,rt=0),Ks=t,Ho=e,Qi=n,th=o,nh=i,cw=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ZM(Pd,function(){return Ew(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=De.T,De.T=null,i=bt.p,bt.p=2,a=yt,yt|=4;try{HM(e,t,n)}finally{yt=a,bt.p=i,De.T=r}}vn=1,bw(),vw(),xw()}}function bw(){if(vn===1){vn=0;var e=Ho,t=Ks,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=De.T,De.T=null;var r=bt.p;bt.p=2;var i=yt;yt|=4;try{tw(t,e);var o=sh,a=BS(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&DS(s.ownerDocument.documentElement,s)){if(l!==null&&Nh(s)){var c=l.start,d=l.end;if(d===void 0&&(d=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(d,s.value.length);else{var f=s.ownerDocument||document,m=f&&f.defaultView||window;if(m.getSelection){var p=m.getSelection(),v=s.textContent.length,b=Math.min(l.start,v),E=l.end===void 0?b:Math.min(l.end,v);!p.extend&&b>E&&(a=E,E=b,b=a);var h=J1(s,b),g=J1(s,E);if(h&&g&&(p.rangeCount!==1||p.anchorNode!==h.node||p.anchorOffset!==h.offset||p.focusNode!==g.node||p.focusOffset!==g.offset)){var S=f.createRange();S.setStart(h.node,h.offset),p.removeAllRanges(),b>E?(p.addRange(S),p.extend(g.node,g.offset)):(S.setEnd(g.node,g.offset),p.addRange(S))}}}}for(f=[],p=s;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var w=f[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}lf=!!ah,sh=ah=null}finally{yt=i,bt.p=r,De.T=n}}e.current=t,vn=2}}function vw(){if(vn===2){vn=0;var e=Ho,t=Ks,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=De.T,De.T=null;var r=bt.p;bt.p=2;var i=yt;yt|=4;try{XE(e,t.alternate,t)}finally{yt=i,bt.p=r,De.T=n}}vn=3}}function xw(){if(vn===4||vn===3){vn=0,bC();var e=Ho,t=Ks,n=Qi,r=cw;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?vn=5:(vn=0,Ks=Ho=null,Sw(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&($o=null),vh(n),t=t.stateNode,Or&&typeof Or.onCommitFiberRoot=="function")try{Or.onCommitFiberRoot($c,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=De.T,i=bt.p,bt.p=2,De.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{De.T=t,bt.p=i}}(Qi&3)!==0&&_f(),Ti(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===rh?wc++:(wc=0,rh=e):wc=0,Yc(0,!1)}}function Sw(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gc(t)))}function _f(){return bw(),vw(),xw(),Ew()}function Ew(){if(vn!==5)return!1;var e=Ho,t=th;th=0;var n=vh(Qi),r=De.T,i=bt.p;try{bt.p=32>n?32:n,De.T=null,n=nh,nh=null;var o=Ho,a=Qi;if(vn=0,Ks=Ho=null,Qi=0,(yt&6)!==0)throw Error(ee(331));var s=yt;if(yt|=4,aw(o.current),rw(o,o.current,a,n),yt=s,Yc(0,!1),Or&&typeof Or.onPostCommitFiberRoot=="function")try{Or.onPostCommitFiberRoot($c,o)}catch{}return!0}finally{bt.p=i,De.T=r,Sw(e,t)}}function Mx(e,t,n){t=Yr(n,t),t=Xg(e.stateNode,t,2),e=Uo(e,t,2),e!==null&&(jc(e,2),Ti(e))}function Et(e,t,n){if(e.tag===3)Mx(e,e,n);else for(;t!==null;){if(t.tag===3){Mx(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($o===null||!$o.has(r))){e=Yr(n,e),n=PE(2),r=Uo(t,n,2),r!==null&&(zE(n,r,t,e),jc(r,2),Ti(r));break}}t=t.return}}function mg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qM;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)||(ey=!0,i.add(n),e=VM.bind(null,e,t,n),t.then(e,e))}function VM(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ct===e&&(rt&n)===n&&(rn===4||rn===3&&(rt&62914560)===rt&&300>Rr()-Sf?(yt&2)===0&&Ws(e,0):ty|=n,Gs===rt&&(Gs=0)),Ti(e)}function ww(e,t){t===0&&(t=mS()),e=Fa(e,t),e!==null&&(jc(e,t),Ti(e))}function XM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ww(e,n)}function QM(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(ee(314))}r!==null&&r.delete(t),ww(e,n)}function ZM(e,t){return yh(e,t)}var ef=null,vs=null,ih=!1,tf=!1,gg=!1,Do=0;function Ti(e){e!==vs&&e.next===null&&(vs===null?ef=vs=e:vs=vs.next=e),tf=!0,ih||(ih=!0,eI())}function Yc(e,t){if(!gg&&tf){gg=!0;do for(var n=!1,r=ef;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-Cr(42|e)+1)-1,o&=i&~(a&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Ix(r,o))}else o=rt,o=uf(r,r===Ct?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Hc(r,o)||(n=!0,Ix(r,o));r=r.next}while(n);gg=!1}}function JM(){_w()}function _w(){tf=ih=!1;var e=0;Do!==0&&lI()&&(e=Do);for(var t=Rr(),n=null,r=ef;r!==null;){var i=r.next,o=Tw(r,t);o===0?(r.next=null,n===null?ef=i:n.next=i,i===null&&(vs=n)):(n=r,(e!==0||(o&3)!==0)&&(tf=!0)),r=i}vn!==0&&vn!==5||Yc(e,!1),Do!==0&&(Do=0)}function Tw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-Cr(o),s=1<<a,l=i[a];l===-1?((s&n)===0||(s&r)!==0)&&(i[a]=NC(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(t=Ct,n=rt,n=uf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(St===2||St===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&qm(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Hc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&qm(r),vh(n)){case 2:case 8:n=fS;break;case 32:n=Pd;break;case 268435456:n=pS;break;default:n=Pd}return r=Nw.bind(null,e),n=yh(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&qm(r),e.callbackPriority=2,e.callbackNode=null,2}function Nw(e,t){if(vn!==0&&vn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_f()&&e.callbackNode!==n)return null;var r=rt;return r=uf(e,e===Ct?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(dw(e,r,t),Tw(e,Rr()),e.callbackNode!=null&&e.callbackNode===n?Nw.bind(null,e):null)}function Ix(e,t){if(_f())return null;dw(e,t,!0)}function eI(){uI(function(){(yt&6)!==0?yh(dS,JM):_w()})}function ry(){if(Do===0){var e=js;e===0&&(e=nd,nd<<=1,(nd&261888)===0&&(nd=256)),Do=e}return Do}function Lx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xd(""+e)}function Dx(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function tI(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=Lx((i[mr]||null).action),a=r.submitter;a&&(t=(t=a[mr]||null)?Lx(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var s=new df("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Do!==0){var l=a?Dx(i,a):new FormData(i);Yg(n,{pending:!0,data:l,method:i.method,action:o},null,l)}}else typeof o=="function"&&(s.preventDefault(),l=a?Dx(i,a):new FormData(i),Yg(n,{pending:!0,data:l,method:i.method,action:o},o,l))},currentTarget:i}]})}}for(md=0;md<Bg.length;md++)gd=Bg[md],Bx=gd.toLowerCase(),Px=gd[0].toUpperCase()+gd.slice(1),ui(Bx,"on"+Px);var gd,Bx,Px,md;ui(zS,"onAnimationEnd");ui(US,"onAnimationIteration");ui($S,"onAnimationStart");ui("dblclick","onDoubleClick");ui("focusin","onFocus");ui("focusout","onBlur");ui(vM,"onTransitionRun");ui(xM,"onTransitionStart");ui(SM,"onTransitionCancel");ui(HS,"onTransitionEnd");$s("onMouseEnter",["mouseout","mouseover"]);$s("onMouseLeave",["mouseout","mouseover"]);$s("onPointerEnter",["pointerout","pointerover"]);$s("onPointerLeave",["pointerout","pointerover"]);$a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$a("onBeforeInput",["compositionend","keypress","textInput","paste"]);$a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lc));function kw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(d){Ud(d)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(d){Ud(d)}i.currentTarget=null,o=l}}}}function tt(e,t){var n=t[Ag];n===void 0&&(n=t[Ag]=new Set);var r=e+"__bubble";n.has(r)||(Aw(t,e,2,!1),n.add(r))}function hg(e,t,n){var r=0;t&&(r|=4),Aw(n,e,r,t)}var hd="_reactListening"+Math.random().toString(36).slice(2);function iy(e){if(!e[hd]){e[hd]=!0,vS.forEach(function(n){n!=="selectionchange"&&(nI.has(n)||hg(n,!1,e),hg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hd]||(t[hd]=!0,hg("selectionchange",!1,t))}}function Aw(e,t,n,r){switch(Hw(t)){case 2:var i=OI;break;case 8:i=CI;break;default:i=ly}n=i.bind(null,t,n,e),i=void 0,!Ig||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function yg(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;s!==null;){if(a=Es(s),a===null)return;if(l=a.tag,l===5||l===6||l===26||l===27){r=o=a;continue e}s=s.parentNode}}r=r.return}kS(function(){var c=o,d=Eh(n),f=[];e:{var m=jS.get(e);if(m!==void 0){var p=df,v=e;switch(e){case"keypress":if(Ed(n)===0)break e;case"keydown":case"keyup":p=QC;break;case"focusin":v="focus",p=Vm;break;case"focusout":v="blur",p=Vm;break;case"beforeblur":case"afterblur":p=Vm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=q1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=UC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=eM;break;case zS:case US:case $S:p=jC;break;case HS:p=nM;break;case"scroll":case"scrollend":p=PC;break;case"wheel":p=iM;break;case"copy":case"cut":case"paste":p=qC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=K1;break;case"toggle":case"beforetoggle":p=aM}var b=(t&4)!==0,E=!b&&(e==="scroll"||e==="scrollend"),h=b?m!==null?m+"Capture":null:m;b=[];for(var g=c,S;g!==null;){var w=g;if(S=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||S===null||h===null||(w=Nc(g,h),w!=null&&b.push(Dc(g,w,S))),E)break;g=g.return}0<b.length&&(m=new p(m,v,null,n,d),f.push({event:m,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Mg&&(v=n.relatedTarget||n.fromElement)&&(Es(v)||v[Xs]))break e;if((p||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=c,v=v?Es(v):null,v!==null&&(E=Uc(v),b=v.tag,v!==E||b!==5&&b!==27&&b!==6)&&(v=null)):(p=null,v=c),p!==v)){if(b=q1,w="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=K1,w="onPointerLeave",h="onPointerEnter",g="pointer"),E=p==null?m:cc(p),S=v==null?m:cc(v),m=new b(w,g+"leave",p,n,d),m.target=E,m.relatedTarget=S,w=null,Es(d)===c&&(b=new b(h,g+"enter",v,n,d),b.target=S,b.relatedTarget=E,w=b),E=w,p&&v)t:{for(b=rI,h=p,g=v,S=0,w=h;w;w=b(w))S++;w=0;for(var C=g;C;C=b(C))w++;for(;0<S-w;)h=b(h),S--;for(;0<w-S;)g=b(g),w--;for(;S--;){if(h===g||g!==null&&h===g.alternate){b=h;break t}h=b(h),g=b(g)}b=null}else b=null;p!==null&&zx(f,m,p,b,!1),v!==null&&E!==null&&zx(f,E,v,b,!0)}}e:{if(m=c?cc(c):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var O=X1;else if(V1(m))if(IS)O=hM;else{O=mM;var T=pM}else p=m.nodeName,!p||p.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?c&&Sh(c.elementType)&&(O=X1):O=gM;if(O&&(O=O(e,c))){MS(f,O,n,d);break e}T&&T(e,m,c),e==="focusout"&&c&&m.type==="number"&&c.memoizedProps.value!=null&&Cg(m,"number",m.value)}switch(T=c?cc(c):window,e){case"focusin":(V1(T)||T.contentEditable==="true")&&(Ts=T,Lg=c,mc=null);break;case"focusout":mc=Lg=Ts=null;break;case"mousedown":Dg=!0;break;case"contextmenu":case"mouseup":case"dragend":Dg=!1,ex(f,n,d);break;case"selectionchange":if(bM)break;case"keydown":case"keyup":ex(f,n,d)}var D;if(Th)e:{switch(e){case"compositionstart":var q="onCompositionStart";break e;case"compositionend":q="onCompositionEnd";break e;case"compositionupdate":q="onCompositionUpdate";break e}q=void 0}else _s?OS(e,n)&&(q="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(q="onCompositionStart");q&&(RS&&n.locale!=="ko"&&(_s||q!=="onCompositionStart"?q==="onCompositionEnd"&&_s&&(D=AS()):(Mo=d,wh="value"in Mo?Mo.value:Mo.textContent,_s=!0)),T=nf(c,q),0<T.length&&(q=new G1(q,e,null,n,d),f.push({event:q,listeners:T}),D?q.data=D:(D=CS(n),D!==null&&(q.data=D)))),(D=lM?cM(e,n):uM(e,n))&&(q=nf(c,"onBeforeInput"),0<q.length&&(T=new G1("onBeforeInput","beforeinput",null,n,d),f.push({event:T,listeners:q}),T.data=D)),tI(f,e,c,n,d)}kw(f,t)})}function Dc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nf(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Nc(e,n),i!=null&&r.unshift(Dc(e,i,o)),i=Nc(e,t),i!=null&&r.push(Dc(e,i,o))),e.tag===3)return r;e=e.return}return[]}function rI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zx(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,l!==null&&l===r)break;s!==5&&s!==26&&s!==27||c===null||(l=c,i?(c=Nc(n,o),c!=null&&a.unshift(Dc(n,c,l))):i||(c=Nc(n,o),c!=null&&a.push(Dc(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var iI=/\r\n?/g,oI=/\u0000|\uFFFD/g;function Ux(e){return(typeof e=="string"?e:""+e).replace(iI,`
|
|
10
|
+
`).replace(oI,"")}function Rw(e,t){return t=Ux(t),Ux(e)===t}function Nt(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Hs(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Hs(e,""+r);break;case"className":od(e,"class",r);break;case"tabIndex":od(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":od(e,n,r);break;case"style":NS(e,r,o);break;case"data":if(t!=="object"){od(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=xd(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Nt(e,t,"name",i.name,i,null),Nt(e,t,"formEncType",i.formEncType,i,null),Nt(e,t,"formMethod",i.formMethod,i,null),Nt(e,t,"formTarget",i.formTarget,i,null)):(Nt(e,t,"encType",i.encType,i,null),Nt(e,t,"method",i.method,i,null),Nt(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=xd(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Wi);break;case"onScroll":r!=null&&tt("scroll",e);break;case"onScrollEnd":r!=null&&tt("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(ee(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(ee(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=xd(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":tt("beforetoggle",e),tt("toggle",e),vd(e,"popover",r);break;case"xlinkActuate":Ui(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Ui(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Ui(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Ui(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Ui(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Ui(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Ui(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Ui(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Ui(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":vd(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=DC.get(n)||n,vd(e,n,r))}}function oh(e,t,n,r,i,o){switch(n){case"style":NS(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(ee(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(ee(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Hs(e,r):(typeof r=="number"||typeof r=="bigint")&&Hs(e,""+r);break;case"onScroll":r!=null&&tt("scroll",e);break;case"onScrollEnd":r!=null&&tt("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Wi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xS.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[mr]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):vd(e,n,r)}}}function Hn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(ee(137,t));default:Nt(e,t,o,a,n,null)}}i&&Nt(e,t,"srcSet",n.srcSet,n,null),r&&Nt(e,t,"src",n.src,n,null);return;case"input":tt("invalid",e);var s=o=a=i=null,l=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":i=d;break;case"type":a=d;break;case"checked":l=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(ee(137,t));break;default:Nt(e,t,r,d,n,null)}}wS(e,o,s,l,c,a,i,!1);return;case"select":tt("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":a=s;break;case"multiple":r=s;default:Nt(e,t,i,s,n,null)}t=o,n=a,e.multiple=!!r,t!=null?Is(e,!!r,t,!1):n!=null&&Is(e,!!r,n,!0);return;case"textarea":tt("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":r=s;break;case"defaultValue":i=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(ee(91));break;default:Nt(e,t,a,s,n,null)}TS(e,r,i,o);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Nt(e,t,l,r,n,null)}return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(r=0;r<Lc.length;r++)tt(Lc[r],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(ee(137,t));default:Nt(e,t,c,r,n,null)}return;default:if(Sh(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&oh(e,t,d,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&Nt(e,t,s,r,n,null))}function aI(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,s=null,l=null,c=null,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(p)||Nt(e,t,p,null,r,f)}}for(var m in r){var p=r[m];if(f=n[m],r.hasOwnProperty(m)&&(p!=null||f!=null))switch(m){case"type":o=p;break;case"name":i=p;break;case"checked":c=p;break;case"defaultChecked":d=p;break;case"value":a=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(ee(137,t));break;default:p!==f&&Nt(e,t,m,p,r,f)}}Og(e,a,s,l,c,d,o,i);return;case"select":p=a=s=m=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":p=l;default:r.hasOwnProperty(o)||Nt(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case"value":m=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:o!==l&&Nt(e,t,i,o,r,l)}t=s,n=a,r=p,m!=null?Is(e,!!n,m,!1):!!r!=!!n&&(t!=null?Is(e,!!n,t,!0):Is(e,!!n,n?[]:"",!1));return;case"textarea":p=m=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Nt(e,t,s,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":m=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(ee(91));break;default:i!==o&&Nt(e,t,a,i,r,o)}_S(e,m,p);return;case"option":for(var v in n)if(m=n[v],n.hasOwnProperty(v)&&m!=null&&!r.hasOwnProperty(v))switch(v){case"selected":e.selected=!1;break;default:Nt(e,t,v,null,r,m)}for(l in r)if(m=r[l],p=n[l],r.hasOwnProperty(l)&&m!==p&&(m!=null||p!=null))switch(l){case"selected":e.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Nt(e,t,l,m,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)m=n[b],n.hasOwnProperty(b)&&m!=null&&!r.hasOwnProperty(b)&&Nt(e,t,b,null,r,m);for(c in r)if(m=r[c],p=n[c],r.hasOwnProperty(c)&&m!==p&&(m!=null||p!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(ee(137,t));break;default:Nt(e,t,c,m,r,p)}return;default:if(Sh(t)){for(var E in n)m=n[E],n.hasOwnProperty(E)&&m!==void 0&&!r.hasOwnProperty(E)&&oh(e,t,E,void 0,r,m);for(d in r)m=r[d],p=n[d],!r.hasOwnProperty(d)||m===p||m===void 0&&p===void 0||oh(e,t,d,m,r,p);return}}for(var h in n)m=n[h],n.hasOwnProperty(h)&&m!=null&&!r.hasOwnProperty(h)&&Nt(e,t,h,null,r,m);for(f in r)m=r[f],p=n[f],!r.hasOwnProperty(f)||m===p||m==null&&p==null||Nt(e,t,f,m,r,p)}function $x(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sI(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&$x(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var d=l.transferSize,f=l.initiatorType;d&&$x(f)&&(l=l.responseEnd,a+=d*(l<s?1:(s-c)/(l-c)))}if(--r,t+=8*(o+a)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ah=null,sh=null;function rf(e){return e.nodeType===9?e:e.ownerDocument}function Hx(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ow(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function lh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bg=null;function lI(){var e=window.event;return e&&e.type==="popstate"?e===bg?!1:(bg=e,!0):(bg=null,!1)}var Cw=typeof setTimeout=="function"?setTimeout:void 0,cI=typeof clearTimeout=="function"?clearTimeout:void 0,jx=typeof Promise=="function"?Promise:void 0,uI=typeof queueMicrotask=="function"?queueMicrotask:typeof jx<"u"?function(e){return jx.resolve(null).then(e).catch(dI)}:Cw;function dI(e){setTimeout(function(){throw e})}function Xo(e){return e==="head"}function Fx(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==="/$"||n==="/&"){if(r===0){e.removeChild(i),Vs(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")_c(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,_c(n);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[Fc]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&_c(e.ownerDocument.body);n=i}while(n);Vs(t)}function qx(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function ch(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ch(n),xh(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function fI(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Fc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Qr(e.nextSibling),e===null)break}return null}function pI(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qr(e.nextSibling),e===null))return null;return e}function Mw(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qr(e.nextSibling),e===null))return null;return e}function uh(e){return e.data==="$?"||e.data==="$~"}function dh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mI(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Qr(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var fh=null;function Gx(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qr(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Kx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Iw(e,t,n){switch(t=rf(n),e){case"html":if(e=t.documentElement,!e)throw Error(ee(452));return e;case"head":if(e=t.head,!e)throw Error(ee(453));return e;case"body":if(e=t.body,!e)throw Error(ee(454));return e;default:throw Error(ee(451))}}function _c(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xh(e)}var Zr=new Map,Wx=new Set;function of(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ro=bt.d;bt.d={f:gI,r:hI,D:yI,C:bI,L:vI,m:xI,X:EI,S:SI,M:wI};function gI(){var e=ro.f(),t=Ef();return e||t}function hI(e){var t=Qs(e);t!==null&&t.tag===5&&t.type==="form"?NE(t):ro.r(e)}var tl=typeof document>"u"?null:document;function Lw(e,t,n){var r=tl;if(r&&typeof t=="string"&&t){var i=Wr(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Wx.has(i)||(Wx.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Hn(t,"link",e),Rn(t),r.head.appendChild(t)))}}function yI(e){ro.D(e),Lw("dns-prefetch",e,null)}function bI(e,t){ro.C(e,t),Lw("preconnect",e,t)}function vI(e,t,n){ro.L(e,t,n);var r=tl;if(r&&e&&t){var i='link[rel="preload"][as="'+Wr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Wr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Wr(n.imageSizes)+'"]')):i+='[href="'+Wr(e)+'"]';var o=i;switch(t){case"style":o=Ys(e);break;case"script":o=nl(e)}Zr.has(o)||(e=$t({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zr.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Vc(o))||t==="script"&&r.querySelector(Xc(o))||(t=r.createElement("link"),Hn(t,"link",e),Rn(t),r.head.appendChild(t)))}}function xI(e,t){ro.m(e,t);var n=tl;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Wr(r)+'"][href="'+Wr(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=nl(e)}if(!Zr.has(o)&&(e=$t({rel:"modulepreload",href:e},t),Zr.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xc(o)))return}r=n.createElement("link"),Hn(r,"link",e),Rn(r),n.head.appendChild(r)}}}function SI(e,t,n){ro.S(e,t,n);var r=tl;if(r&&e){var i=Ms(r).hoistableStyles,o=Ys(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Vc(o)))s.loading=5;else{e=$t({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zr.get(o))&&oy(e,n);var l=a=r.createElement("link");Rn(l),Hn(l,"link",e),l._p=new Promise(function(c,d){l.onload=c,l.onerror=d}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Od(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}}function EI(e,t){ro.X(e,t);var n=tl;if(n&&e){var r=Ms(n).hoistableScripts,i=nl(e),o=r.get(i);o||(o=n.querySelector(Xc(i)),o||(e=$t({src:e,async:!0},t),(t=Zr.get(i))&&ay(e,t),o=n.createElement("script"),Rn(o),Hn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function wI(e,t){ro.M(e,t);var n=tl;if(n&&e){var r=Ms(n).hoistableScripts,i=nl(e),o=r.get(i);o||(o=n.querySelector(Xc(i)),o||(e=$t({src:e,async:!0,type:"module"},t),(t=Zr.get(i))&&ay(e,t),o=n.createElement("script"),Rn(o),Hn(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function Yx(e,t,n,r){var i=(i=Bo.current)?of(i):null;if(!i)throw Error(ee(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ys(n.href),n=Ms(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ys(n.href);var o=Ms(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(Vc(e)))&&!o._p&&(a.instance=o,a.state.loading=5),Zr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zr.set(e,n),o||_I(i,e,n,a.state))),t&&r===null)throw Error(ee(528,""));return a}if(t&&r!==null)throw Error(ee(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=nl(n),n=Ms(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(ee(444,e))}}function Ys(e){return'href="'+Wr(e)+'"'}function Vc(e){return'link[rel="stylesheet"]['+e+"]"}function Dw(e){return $t({},e,{"data-precedence":e.precedence,precedence:null})}function _I(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Hn(t,"link",n),Rn(t),e.head.appendChild(t))}function nl(e){return'[src="'+Wr(e)+'"]'}function Xc(e){return"script[async]"+e}function Vx(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Wr(n.href)+'"]');if(r)return t.instance=r,Rn(r),r;var i=$t({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Rn(r),Hn(r,"style",i),Od(r,n.precedence,e),t.instance=r;case"stylesheet":i=Ys(n.href);var o=e.querySelector(Vc(i));if(o)return t.state.loading|=4,t.instance=o,Rn(o),o;r=Dw(n),(i=Zr.get(i))&&oy(r,i),o=(e.ownerDocument||e).createElement("link"),Rn(o);var a=o;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Hn(o,"link",r),t.state.loading|=4,Od(o,n.precedence,e),t.instance=o;case"script":return o=nl(n.src),(i=e.querySelector(Xc(o)))?(t.instance=i,Rn(i),i):(r=n,(i=Zr.get(o))&&(r=$t({},n),ay(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Rn(i),Hn(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(ee(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Od(r,n.precedence,e));return t.instance}function Od(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function oy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ay(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cd=null;function Xx(e,t,n){if(Cd===null){var r=new Map,i=Cd=new Map;i.set(n,r)}else i=Cd,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Fc]||o[zn]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function Qx(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function TI(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bw(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function NI(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ys(r.href),o=t.querySelector(Vc(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=af.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Rn(o);return}o=t.ownerDocument||t,r=Dw(r),(i=Zr.get(i))&&oy(r,i),o=o.createElement("link"),Rn(o);var a=o;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Hn(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=af.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var vg=0;function kI(e,t){return e.stylesheets&&e.count===0&&Md(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Md(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&vg===0&&(vg=62500*sI());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Md(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>vg?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function af(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Md(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sf=null;function Md(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sf=new Map,t.forEach(AI,e),sf=null,af.call(e))}function AI(e,t){if(!(t.state.loading&4)){var n=sf.get(e);if(n)var r=n.get(null);else{n=new Map,sf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=af.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Bc={$$typeof:Ki,Provider:null,Consumer:null,_currentValue:Oa,_currentValue2:Oa,_threadCount:0};function RI(e,t,n,r,i,o,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gm(0),this.hiddenUpdates=Gm(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function Pw(e,t,n,r,i,o,a,s,l,c,d,f){return e=new RI(e,t,n,a,l,c,d,f,s),t=1,o===!0&&(t|=24),o=kr(3,null,null,t),e.current=o,o.stateNode=e,t=Mh(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},Dh(o),e}function zw(e){return e?(e=As,e):As}function Uw(e,t,n,r,i,o){i=zw(i),r.context===null?r.context=i:r.pendingContext=i,r=zo(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=Uo(e,r,t),n!==null&&(pr(n,e,t),hc(n,e,t))}function Zx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sy(e,t){Zx(e,t),(e=e.alternate)&&Zx(e,t)}function $w(e){if(e.tag===13||e.tag===31){var t=Fa(e,67108864);t!==null&&pr(t,e,67108864),sy(e,67108864)}}function Jx(e){if(e.tag===13||e.tag===31){var t=Mr();t=bh(t);var n=Fa(e,t);n!==null&&pr(n,e,t),sy(e,t)}}var lf=!0;function OI(e,t,n,r){var i=De.T;De.T=null;var o=bt.p;try{bt.p=2,ly(e,t,n,r)}finally{bt.p=o,De.T=i}}function CI(e,t,n,r){var i=De.T;De.T=null;var o=bt.p;try{bt.p=8,ly(e,t,n,r)}finally{bt.p=o,De.T=i}}function ly(e,t,n,r){if(lf){var i=ph(r);if(i===null)yg(e,t,r,cf,n),eS(e,r);else if(II(i,e,t,n,r))r.stopPropagation();else if(eS(e,r),t&4&&-1<MI.indexOf(e)){for(;i!==null;){var o=Qs(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=ka(o.pendingLanes);if(a!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Cr(a);s.entanglements[1]|=l,a&=~l}Ti(o),(yt&6)===0&&(Qd=Rr()+500,Yc(0,!1))}}break;case 31:case 13:s=Fa(o,2),s!==null&&pr(s,o,2),Ef(),sy(o,2)}if(o=ph(r),o===null&&yg(e,t,r,cf,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else yg(e,t,r,null,n)}}function ph(e){return e=Eh(e),cy(e)}var cf=null;function cy(e){if(cf=null,e=Es(e),e!==null){var t=Uc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=aS(t),e!==null)return e;e=null}else if(n===31){if(e=sS(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cf=e,null}function Hw(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vC()){case dS:return 2;case fS:return 8;case Pd:case xC:return 32;case pS:return 268435456;default:return 32}default:return 32}}var mh=!1,jo=null,Fo=null,qo=null,Pc=new Map,zc=new Map,Oo=[],MI="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eS(e,t){switch(e){case"focusin":case"focusout":jo=null;break;case"dragenter":case"dragleave":Fo=null;break;case"mouseover":case"mouseout":qo=null;break;case"pointerover":case"pointerout":Pc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zc.delete(t.pointerId)}}function oc(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Qs(t),t!==null&&$w(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function II(e,t,n,r,i){switch(t){case"focusin":return jo=oc(jo,e,t,n,r,i),!0;case"dragenter":return Fo=oc(Fo,e,t,n,r,i),!0;case"mouseover":return qo=oc(qo,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Pc.set(o,oc(Pc.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zc.set(o,oc(zc.get(o)||null,e,t,n,r,i)),!0}return!1}function jw(e){var t=Es(e.target);if(t!==null){var n=Uc(t);if(n!==null){if(t=n.tag,t===13){if(t=aS(n),t!==null){e.blockedOn=t,P1(e.priority,function(){Jx(n)});return}}else if(t===31){if(t=sS(n),t!==null){e.blockedOn=t,P1(e.priority,function(){Jx(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Id(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ph(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mg=r,n.target.dispatchEvent(r),Mg=null}else return t=Qs(n),t!==null&&$w(t),e.blockedOn=n,!1;t.shift()}return!0}function tS(e,t,n){Id(e)&&n.delete(t)}function LI(){mh=!1,jo!==null&&Id(jo)&&(jo=null),Fo!==null&&Id(Fo)&&(Fo=null),qo!==null&&Id(qo)&&(qo=null),Pc.forEach(tS),zc.forEach(tS)}function yd(e,t){e.blockedOn===t&&(e.blockedOn=null,mh||(mh=!0,xn.unstable_scheduleCallback(xn.unstable_NormalPriority,LI)))}var bd=null;function nS(e){bd!==e&&(bd=e,xn.unstable_scheduleCallback(xn.unstable_NormalPriority,function(){bd===e&&(bd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(cy(r||n)===null)continue;break}var o=Qs(n);o!==null&&(e.splice(t,3),t-=3,Yg(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Vs(e){function t(l){return yd(l,e)}jo!==null&&yd(jo,e),Fo!==null&&yd(Fo,e),qo!==null&&yd(qo,e),Pc.forEach(t),zc.forEach(t);for(var n=0;n<Oo.length;n++){var r=Oo[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Oo.length&&(n=Oo[0],n.blockedOn===null);)jw(n),n.blockedOn===null&&Oo.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[mr]||null;if(typeof o=="function")a||nS(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[mr]||null)s=a.formAction;else if(cy(i)!==null)continue}else s=a.action;typeof s=="function"?n[r+1]=s:(n.splice(r,3),r-=3),nS(n)}}}function Fw(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function uy(e){this._internalRoot=e}Tf.prototype.render=uy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ee(409));var n=t.current,r=Mr();Uw(n,r,e,t,null,null)};Tf.prototype.unmount=uy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Uw(e.current,2,null,e,null,null),Ef(),t[Xs]=null}};function Tf(e){this._internalRoot=e}Tf.prototype.unstable_scheduleHydration=function(e){if(e){var t=bS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oo.length&&t!==0&&t<Oo[n].priority;n++);Oo.splice(n,0,e),n===0&&jw(e)}};var rS=iS.version;if(rS!=="19.2.8")throw Error(ee(527,rS,"19.2.8"));bt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ee(188)):(e=Object.keys(e).join(","),Error(ee(268,e)));return e=fC(t),e=e!==null?lS(e):null,e=e===null?null:e.stateNode,e};var DI={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:De,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ac=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ac.isDisabled&&ac.supportsFiber))try{$c=ac.inject(DI),Or=ac}catch{}var ac;Nf.createRoot=function(e,t){if(!oS(e))throw Error(ee(299));var n=!1,r="",i=LE,o=DE,a=BE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Pw(e,1,!1,null,null,n,r,null,i,o,a,Fw),e[Xs]=t.current,iy(e),new uy(t)};Nf.hydrateRoot=function(e,t,n){if(!oS(e))throw Error(ee(299));var r=!1,i="",o=LE,a=DE,s=BE,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=Pw(e,1,!0,t,n??null,r,i,l,o,a,s,Fw),t.context=zw(null),n=t.current,r=Mr(),r=bh(r),i=zo(r),i.callback=null,Uo(n,i,r),n=r,t.current.lanes=n,jc(t,n),Ti(t),e[Xs]=t.current,iy(e),new Tf(t)};Nf.version="19.2.8"});var Ww=si((F5,Kw)=>{"use strict";function Gw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gw)}catch(e){console.error(e)}}Gw(),Kw.exports=qw()});var o_=si(Mf=>{"use strict";var EL=Symbol.for("react.transitional.element"),wL=Symbol.for("react.fragment");function i_(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:EL,type:e,key:r,ref:t!==void 0?t:null,props:n}}Mf.Fragment=wL;Mf.jsx=i_;Mf.jsxs=i_});var Y=si((ez,a_)=>{"use strict";a_.exports=o_()});function AL(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"";return`${e.pathname??""}${t}${e.hash?`#${e.hash}`:""}`}function Je({href:e,prefetch:t,replace:n,scroll:r,shallow:i,passHref:o,legacyBehavior:a,...s}){return(0,y_.jsx)("a",{href:AL(e),...s})}var y_,vr=V(()=>{"use strict";y_=M(Y())});function oo(){return globalThis.location?.pathname??"/"}function sl(){return new URLSearchParams(globalThis.location?.search??"")}function na(){return{push:e=>{globalThis.location.assign(e)},replace:e=>{globalThis.location.replace(e)},refresh:()=>{globalThis.location.reload()},back:()=>{globalThis.history.back()},forward:()=>{globalThis.history.forward()},prefetch:()=>{}}}var ao=V(()=>{"use strict"});function LL(e){return`/${e}/docs`}function wy(e,t){let n=e===""?"/":e.startsWith("/")?e:`/${e}`,r=LL(t);if(n===r||n===`${r}/`)return"/";if(n.startsWith(`${r}/`)){let i=n.slice(r.length);return i.length?i:"/"}return n}function Pf(e,t,n){if(t)return e.startsWith(t)?e.slice(t.length):e;let r=wy(e,n);return r==="/"?"":r.replace(/^\//,"")}var zf=V(()=>{"use strict"});function k_(e,t){let n=t?.projectSlug?.trim();if(t?.docsBasePath!==""||!n)return e;try{let r=new URL(e,"https://docmind.local");return`${wy(r.pathname,n)}${r.search}${r.hash}`}catch{return e}}function A_(e){return!Number.isFinite(e)||e<=0?null:e>99?"99+":String(e)}var R_=V(()=>{"use strict";zf()});function O_(e,t,n=6e4){return t==null||e-t>=n}var C_=V(()=>{"use strict"});var I_={};Tm(I_,{default:()=>M_});function BL(e){let t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function M_({docsBasePath:e,projectSlug:t}={}){let n=na(),[r,i]=(0,En.useState)(!1),[o,a]=(0,En.useState)([]),[s,l]=(0,En.useState)(0),[c,d]=(0,En.useState)(!1),f=(0,En.useRef)(null),m=(0,En.useRef)(null),p=(0,En.useMemo)(()=>({docsBasePath:e,projectSlug:t}),[e,t]),v=(0,En.useCallback)(O=>k_(O,p),[p]),b=A_(s),E=(0,En.useCallback)(async()=>{try{let O=await fetch("/api/notifications?count=1");if(!O.ok)return;let T=await O.json();l(T.unreadCount??0)}catch{}},[]),h=(0,En.useCallback)(()=>{let O=Date.now();O_(O,m.current,6e4)&&(m.current=O,E())},[E]),g=(0,En.useCallback)(async()=>{d(!0);try{let O=await fetch("/api/notifications?limit=25");if(!O.ok)return;let T=await O.json();a(T.items??[]),l(T.unreadCount??0)}catch{}finally{d(!1)}},[]);(0,En.useEffect)(()=>{document.visibilityState==="visible"&&h();let O=()=>{document.visibilityState==="visible"&&h()},T=()=>{h()};return document.addEventListener("visibilitychange",O),window.addEventListener("focus",T),()=>{document.removeEventListener("visibilitychange",O),window.removeEventListener("focus",T)}},[h]),(0,En.useEffect)(()=>{if(!r)return;let O=T=>{f.current?.contains(T.target)||i(!1)};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[r]),(0,En.useEffect)(()=>{if(!r||o.length===0)return;let O=new Set;for(let T of o){let D=v(T.href);O.has(D)||O.size>=8||(O.add(D),n.prefetch(D))}},[r,o,v,n]);function S(O){let T=new Date().toISOString();a(D=>{let q=O.filter(Z=>D.some(re=>re.id===Z&&!re.readAt)).length;return q>0&&l(Z=>Math.max(0,Z-q)),D.map(Z=>O.includes(Z.id)?{...Z,readAt:Z.readAt??T}:Z)}),fetch("/api/notifications",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:O})}).catch(()=>null)}async function w(){await fetch("/api/notifications",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0})}).catch(()=>null),a(O=>O.map(T=>({...T,readAt:T.readAt??new Date().toISOString()}))),l(0)}function C(O){let T=v(O.href);O.readAt||S([O.id]),i(!1),n.push(T)}return(0,Gt.jsxs)("div",{ref:f,style:{position:"relative"},"data-notification-bell":!0,children:[(0,Gt.jsxs)("button",{type:"button","aria-label":s?`${s} unread notifications`:"Notifications",onClick:()=>{i(O=>!O),r||g()},style:{position:"relative",width:34,height:34,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--border)",borderRadius:8,background:r?"var(--bg-subtle)":"var(--bg)",cursor:"pointer",color:"var(--text-secondary)"},children:[(0,Gt.jsx)("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:(0,Gt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})}),b&&(0,Gt.jsx)("span",{className:"notification-bell-badge","aria-hidden":!0,children:b})]}),r&&(0,Gt.jsxs)("div",{className:"notification-panel",children:[(0,Gt.jsxs)("div",{className:"notification-panel-head",children:[(0,Gt.jsx)("strong",{children:"Notifications"}),s>0&&(0,Gt.jsx)("button",{type:"button",className:"notification-mark-all",onClick:()=>{w()},children:"Mark all read"})]}),c&&o.length===0?(0,Gt.jsx)("p",{className:"notification-empty",children:"Loading\u2026"}):o.length===0?(0,Gt.jsx)("p",{className:"notification-empty",children:"No notifications yet."}):(0,Gt.jsx)("ul",{className:"notification-list",children:o.map(O=>(0,Gt.jsx)("li",{children:(0,Gt.jsxs)("button",{type:"button",className:O.readAt?"notification-item":"notification-item notification-item-unread",onClick:()=>{C(O)},children:[(0,Gt.jsxs)("span",{className:"notification-item-top",children:[O.type==="release"?(0,Gt.jsx)("span",{className:"notification-kind notification-kind-release","aria-hidden":!0,children:"Release"}):(0,Gt.jsx)("span",{className:"notification-kind notification-kind-mention","aria-hidden":!0,children:"Mention"}),(0,Gt.jsx)("span",{className:"notification-item-time",children:BL(O.createdAt)})]}),(0,Gt.jsx)("span",{className:"notification-item-msg",children:O.message}),O.snippet?(0,Gt.jsx)("span",{className:"notification-item-snippet",children:O.snippet}):null]})},O.id))}),(0,Gt.jsx)("div",{className:"notification-panel-foot",children:(0,Gt.jsx)(Je,{href:"/editor/comments",onClick:()=>i(!1),children:"View all comments"})})]})]})}var En,Gt,L_=V(()=>{"use strict";"use client";En=M(Me());vr();ao();R_();C_();Gt=M(Y())});var D_,B_,_y=V(()=>{"use strict";D_=e=>{let t,n=new Set,r=(c,d)=>{let f=typeof c=="function"?c(t):c;if(!Object.is(f,t)){let m=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(p=>p(t,m))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,i,s);return s},B_=(e=>e?D_(e):D_)});function zL(e,t=PL){let n=tu.default.useSyncExternalStore(e.subscribe,tu.default.useCallback(()=>t(e.getState()),[e,t]),tu.default.useCallback(()=>t(e.getInitialState()),[e,t]));return tu.default.useDebugValue(n),n}var tu,PL,P_,z_,U_=V(()=>{"use strict";tu=M(Me(),1);_y();PL=e=>e;P_=e=>{let t=B_(e),n=r=>zL(t,r);return Object.assign(n,t),n},z_=(e=>e?P_(e):P_)});var $_=V(()=>{"use strict";_y();U_()});var H_,j_,F_=V(()=>{"use strict";"use client";$_();H_={pageId:"",isNew:!0,committing:!1,githubPath:null,pageTitle:"",githubConnected:!1,hasUnsaved:!1,branchProtected:!1,pendingPageNavigation:null,newDraftEpoch:0,branchSaveTick:0,previewRoute:null,previewPath:null,openPrNumber:null,dispatch:null},j_=z_(e=>({...H_,setEditorState:t=>e(t),clearEditorState:()=>e(t=>({...H_,branchProtected:t.branchProtected,openPrNumber:t.openPrNumber,newDraftEpoch:t.newDraftEpoch}))}))});function q_(e,t){let{hasUnsaved:n,setEditorState:r}=j_.getState();if(n){r({pendingPageNavigation:t});return}e(t)}var UL,G_=V(()=>{"use strict";"use client";vr();F_();UL=M(Y())});function di(e,t,n){if(n||!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}project=${encodeURIComponent(t)}`}function Ka(e){return!e}var Uf=V(()=>{"use strict"});function HL(e){if(!e)return{};let t=e;try{t=decodeURIComponent(e)}catch{}let n;try{n=JSON.parse(t)}catch{return{}}if(!n||typeof n!="object"||Array.isArray(n))return{};let r={};for(let[i,o]of Object.entries(n))typeof o=="string"&&o.trim()&&i&&(r[i]=o);return r}function Ty(e){if(typeof window>"u")return;let t=new URLSearchParams(window.location.search).get("branch")?.trim();return t||FL(jL(),e)}function ei(e,t){if(!t)return e;let n=t.startsWith("?")?t.slice(1):t;if(!n)return e;let[r,i]=e.split("#"),o=`${r}${r.includes("?")?"&":"?"}${n}`;return i?`${o}#${i}`:o}function jL(){return typeof document>"u"?null:new RegExp(`(?:^|; )${$L}=([^;]*)`).exec(document.cookie)?.[1]??null}function FL(e,t){if(t)return HL(e)[t]}var $L,Wa=V(()=>{"use strict";$L="docmind-preview-branch"});function nu(e){return qL[e.toLowerCase()]??"var(--method-other)"}function jn({method:e,size:t="sm",muted:n=!1}){let r=n?"var(--text-muted)":nu(e),i=e.toUpperCase()==="DELETE"?"DEL":e.toUpperCase(),o={xs:{fontSize:"9px",padding:"1px 5px",minWidth:"34px"},sm:{fontSize:"10px",padding:"2px 6px",minWidth:"40px"},md:{fontSize:"12px",padding:"4px 10px",minWidth:"52px"}}[t];return(0,K_.jsx)("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontFamily:"var(--font-mono)",fontWeight:700,letterSpacing:"0.03em",color:r,background:n?"var(--bg-subtle)":`color-mix(in srgb, ${r} 9%, transparent)`,border:n?"1px solid var(--border)":`1px solid color-mix(in srgb, ${r} 22%, transparent)`,borderRadius:"5px",flexShrink:0,lineHeight:1.4,...o},children:i})}var K_,qL,Ai=V(()=>{"use strict";K_=M(Y()),qL={get:"var(--method-get)",post:"var(--method-post)",put:"var(--method-put)",patch:"var(--method-patch)",delete:"var(--method-delete)",options:"var(--method-other)",head:"var(--method-other)",trace:"var(--method-other)"}});function Ny(e,t=$f){if(!e?.trim())return t;let n=e.trim();if(KL.has(n))return n;let r=GL[n];return r||t}var $f,GL,KL,ky=V(()=>{"use strict";$f="file-text",GL={"\u{1F4C4}":"file-text","\u{1F4C1}":"folder","\u{1F4C2}":"folder-open","\u{1F4DA}":"book","\u{1F4D6}":"book-open","\u{1F4DD}":"pen-line","\u{1F4CB}":"clipboard","\u{1F4CC}":"bookmark","\u2699\uFE0F":"settings","\u2699":"settings","\u{1F527}":"wrench","\u{1F6E0}\uFE0F":"wrench","\u{1F680}":"rocket","\u{1F4A1}":"info","\u{1F3AF}":"target","\u{1F511}":"key","\u{1F4BB}":"terminal","\u{1F4CA}":"bar-chart","\u{1F50C}":"plug","\u{1F6E1}\uFE0F":"shield","\u{1F310}":"globe","\u{1F517}":"link","\u{1F3F7}\uFE0F":"tag","\u2728":"sparkles","\u{1F5C2}\uFE0F":"folder-open","\u{1F4E6}":"package","\u{1F9E9}":"puzzle","\u26A1":"zap","\u{1F4AC}":"message-square","\u{1F50D}":"search","\u26A0\uFE0F":"alert-triangle","\u26A0":"alert-triangle","\u{1F4ED}":"inbox","\u{1F44D}":"thumbs-up","\u{1F44E}":"thumbs-down","\u{1F5BC}":"image","\u{1F5BC}\uFE0F":"image","\u275D":"quote","\u{1F512}":"lock","\u{1F3A8}":"palette"},KL=new Set(["book","book-open","file-text","file-code","files","folder","folder-open","clipboard","notepad-text","pen-line","scroll","archive","layers","code","code-2","terminal","database","server","cpu","webhook","plug","settings","wrench","package","git-branch","puzzle","bar-chart","line-chart","pie-chart","table","gauge","trending-up","layout-grid","list","activity","home","search","compass","map","layout-dashboard","globe","link","arrow-right-circle","bookmark","tag","external-link","lock","unlock","shield","shield-check","key","eye","eye-off","fingerprint","message-square","bell","mail","megaphone","send","share","star","zap","rocket","target","check-circle","alert-triangle","info","help-circle","flame","sparkles","trophy","graduation-cap","flask","heart","refresh","download","upload","image","quote","thumbs-up","thumbs-down","inbox","palette","maximize"])});function hn({icon:e,size:t=14,color:n="currentColor",fallback:r=$f}){let i=Ny(e,r);if(!i)return null;let o=W_[i]??(r?W_[r]:null);return o?(0,y.jsx)("svg",{width:t,height:t,fill:"none",stroke:n,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",style:{flexShrink:0},"aria-hidden":!0,children:o}):null}function Y_({size:e=16,color:t="currentColor"}){return(0,y.jsx)("svg",{width:e,height:e,fill:"none",stroke:t,viewBox:"0 0 24 24",style:{flexShrink:0},"aria-hidden":!0,children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var y,WL,W_,ra=V(()=>{"use strict";ky();ky();y=M(Y()),WL=[{name:"book",label:"Book",category:"Docs & Files",tags:["book","docs","read","reference","library"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),(0,y.jsx)("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]})},{name:"book-open",label:"Book Open",category:"Docs & Files",tags:["book","open","read","guide","manual"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),(0,y.jsx)("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]})},{name:"file-text",label:"File Text",category:"Docs & Files",tags:["file","document","page","text"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,y.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,y.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,y.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,y.jsx)("line",{x1:"10",y1:"9",x2:"8",y2:"9"})]})},{name:"file-code",label:"File Code",category:"Docs & Files",tags:["file","code","dev","api","reference"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,y.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,y.jsx)("polyline",{points:"10 13 8 15 10 17"}),(0,y.jsx)("polyline",{points:"14 13 16 15 14 17"})]})},{name:"files",label:"Files",category:"Docs & Files",tags:["files","documents","copy","pages"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"}),(0,y.jsx)("path",{d:"M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"}),(0,y.jsx)("path",{d:"M15 2v5h5"})]})},{name:"folder",label:"Folder",category:"Docs & Files",tags:["folder","directory","group","organize"],paths:(0,y.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})},{name:"folder-open",label:"Folder Open",category:"Docs & Files",tags:["folder","open","directory"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"M6 14l1.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"})})},{name:"clipboard",label:"Clipboard",category:"Docs & Files",tags:["clipboard","checklist","list","tasks"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"9",y:"2",width:"6",height:"4",rx:"1",ry:"1"}),(0,y.jsx)("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"}),(0,y.jsx)("path",{d:"M12 11h4"}),(0,y.jsx)("path",{d:"M12 16h4"}),(0,y.jsx)("path",{d:"M8 11h.01"}),(0,y.jsx)("path",{d:"M8 16h.01"})]})},{name:"notepad-text",label:"Notepad",category:"Docs & Files",tags:["notes","notepad","write","draft"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M8 2v4"}),(0,y.jsx)("path",{d:"M12 2v4"}),(0,y.jsx)("path",{d:"M16 2v4"}),(0,y.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),(0,y.jsx)("path",{d:"M8 10h6"}),(0,y.jsx)("path",{d:"M8 14h8"}),(0,y.jsx)("path",{d:"M8 18h5"})]})},{name:"pen-line",label:"Pen",category:"Docs & Files",tags:["write","edit","pen","draft","author"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M12 20h9"}),(0,y.jsx)("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]})},{name:"scroll",label:"Scroll",category:"Docs & Files",tags:["scroll","document","legal","changelog"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M8 21h12a2 2 0 0 0 2-2v-2H10v2a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v3h4"}),(0,y.jsx)("path",{d:"M19 3H8.5a1.5 1.5 0 0 0 0 3H20"})]})},{name:"archive",label:"Archive",category:"Docs & Files",tags:["archive","storage","save","box"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polyline",{points:"21 8 21 21 3 21 3 8"}),(0,y.jsx)("rect",{x:"1",y:"3",width:"22",height:"5"}),(0,y.jsx)("line",{x1:"10",y1:"12",x2:"14",y2:"12"})]})},{name:"layers",label:"Layers",category:"Docs & Files",tags:["layers","stack","version","depth"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polygon",{points:"12 2 2 7 12 12 22 7 12 2"}),(0,y.jsx)("polyline",{points:"2 17 12 22 22 17"}),(0,y.jsx)("polyline",{points:"2 12 12 17 22 12"})]})},{name:"code",label:"Code",category:"Code & Tech",tags:["code","dev","development","programming"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polyline",{points:"16 18 22 12 16 6"}),(0,y.jsx)("polyline",{points:"8 6 2 12 8 18"})]})},{name:"code-2",label:"Code Block",category:"Code & Tech",tags:["code","block","function","dev"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M9 9V5H5v4h4z"}),(0,y.jsx)("path",{d:"M9 9v4H5v4h4"}),(0,y.jsx)("path",{d:"M9 9h10"}),(0,y.jsx)("path",{d:"M19 5h-4v4"}),(0,y.jsx)("path",{d:"M19 13h-4v4"})]})},{name:"terminal",label:"Terminal",category:"Code & Tech",tags:["terminal","cli","command","shell","console"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polyline",{points:"4 17 10 11 4 5"}),(0,y.jsx)("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]})},{name:"database",label:"Database",category:"Code & Tech",tags:["database","db","storage","sql","data"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),(0,y.jsx)("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),(0,y.jsx)("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})]})},{name:"server",label:"Server",category:"Code & Tech",tags:["server","backend","infrastructure","host"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"}),(0,y.jsx)("rect",{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"}),(0,y.jsx)("line",{x1:"6",y1:"6",x2:"6.01",y2:"6"}),(0,y.jsx)("line",{x1:"6",y1:"18",x2:"6.01",y2:"18"})]})},{name:"cpu",label:"CPU",category:"Code & Tech",tags:["cpu","chip","processor","hardware","compute"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),(0,y.jsx)("rect",{x:"9",y:"9",width:"6",height:"6"}),(0,y.jsx)("path",{d:"M15 2v2"}),(0,y.jsx)("path",{d:"M15 20v2"}),(0,y.jsx)("path",{d:"M2 15h2"}),(0,y.jsx)("path",{d:"M2 9h2"}),(0,y.jsx)("path",{d:"M20 15h2"}),(0,y.jsx)("path",{d:"M20 9h2"}),(0,y.jsx)("path",{d:"M9 2v2"}),(0,y.jsx)("path",{d:"M9 20v2"})]})},{name:"webhook",label:"Webhook",category:"Code & Tech",tags:["webhook","api","callback","event","integration"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2"}),(0,y.jsx)("path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06"}),(0,y.jsx)("path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8"})]})},{name:"plug",label:"Plugin",category:"Code & Tech",tags:["plugin","extension","connect","api","integration"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M12 22v-5"}),(0,y.jsx)("path",{d:"M9 8V2"}),(0,y.jsx)("path",{d:"M15 8V2"}),(0,y.jsx)("path",{d:"M18 8H6a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-3a3 3 0 0 0-3-3z"})]})},{name:"settings",label:"Settings",category:"Code & Tech",tags:["settings","config","gear","options","admin"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("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"}),(0,y.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})},{name:"wrench",label:"Wrench",category:"Code & Tech",tags:["wrench","tool","config","fix","setup"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})})},{name:"package",label:"Package",category:"Code & Tech",tags:["package","module","bundle","release","npm"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M16.5 9.4 7.55 4.24"}),(0,y.jsx)("path",{d:"M21 16V8a2 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"}),(0,y.jsx)("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),(0,y.jsx)("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})},{name:"git-branch",label:"Git Branch",category:"Code & Tech",tags:["git","branch","version","source","control"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),(0,y.jsx)("circle",{cx:"18",cy:"6",r:"3"}),(0,y.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,y.jsx)("path",{d:"M18 9a9 9 0 0 1-9 9"})]})},{name:"puzzle",label:"Puzzle",category:"Code & Tech",tags:["puzzle","integration","plugin","extension","module"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 2c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02z"})})},{name:"bar-chart",label:"Bar Chart",category:"Data",tags:["chart","analytics","data","stats","graph"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("line",{x1:"12",y1:"20",x2:"12",y2:"10"}),(0,y.jsx)("line",{x1:"18",y1:"20",x2:"18",y2:"4"}),(0,y.jsx)("line",{x1:"6",y1:"20",x2:"6",y2:"16"})]})},{name:"line-chart",label:"Line Chart",category:"Data",tags:["chart","trend","analytics","metrics","graph"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})},{name:"pie-chart",label:"Pie Chart",category:"Data",tags:["chart","pie","analytics","percentage","stats"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),(0,y.jsx)("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})]})},{name:"table",label:"Table",category:"Data",tags:["table","grid","data","spreadsheet","rows"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,y.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),(0,y.jsx)("line",{x1:"3",y1:"15",x2:"21",y2:"15"}),(0,y.jsx)("line",{x1:"9",y1:"3",x2:"9",y2:"21"}),(0,y.jsx)("line",{x1:"15",y1:"3",x2:"15",y2:"21"})]})},{name:"gauge",label:"Gauge",category:"Data",tags:["gauge","meter","performance","speed","metrics"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),(0,y.jsx)("path",{d:"M6 12a6 6 0 0 1 6-6"}),(0,y.jsx)("path",{d:"M12 21a9 9 0 0 0 6.219-15.51"}),(0,y.jsx)("path",{d:"M12 3a9 9 0 0 0-8.657 6.57"})]})},{name:"trending-up",label:"Trending Up",category:"Data",tags:["trending","growth","increase","up","analytics"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polyline",{points:"23 6 13.5 15.5 8.5 10.5 1 18"}),(0,y.jsx)("polyline",{points:"17 6 23 6 23 12"})]})},{name:"layout-grid",label:"Grid",category:"Data",tags:["grid","layout","overview","dashboard","cards"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,y.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,y.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,y.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]})},{name:"list",label:"List",category:"Data",tags:["list","items","index","menu","outline"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),(0,y.jsx)("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),(0,y.jsx)("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),(0,y.jsx)("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),(0,y.jsx)("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),(0,y.jsx)("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]})},{name:"activity",label:"Activity",category:"Data",tags:["activity","health","pulse","heartbeat","monitor"],paths:(0,y.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})},{name:"home",label:"Home",category:"Navigation",tags:["home","start","main","landing","index"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),(0,y.jsx)("polyline",{points:"9 22 9 12 15 12 15 22"})]})},{name:"search",label:"Search",category:"Navigation",tags:["search","find","lookup","query","discover"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,y.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})},{name:"compass",label:"Compass",category:"Navigation",tags:["compass","navigate","direction","guide","explore"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,y.jsx)("polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"})]})},{name:"map",label:"Map",category:"Navigation",tags:["map","roadmap","plan","overview","navigate"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polygon",{points:"3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21 3 6"}),(0,y.jsx)("line",{x1:"9",y1:"3",x2:"9",y2:"18"}),(0,y.jsx)("line",{x1:"15",y1:"6",x2:"15",y2:"21"})]})},{name:"layout-dashboard",label:"Dashboard",category:"Navigation",tags:["dashboard","overview","layout","home","summary"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"3",y:"3",width:"7",height:"9"}),(0,y.jsx)("rect",{x:"14",y:"3",width:"7",height:"5"}),(0,y.jsx)("rect",{x:"14",y:"12",width:"7",height:"9"}),(0,y.jsx)("rect",{x:"3",y:"16",width:"7",height:"5"})]})},{name:"globe",label:"Globe",category:"Navigation",tags:["web","global","internet","world","public"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,y.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),(0,y.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})},{name:"link",label:"Link",category:"Navigation",tags:["link","url","href","connect","chain"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,y.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})},{name:"arrow-right-circle",label:"Arrow Circle",category:"Navigation",tags:["next","forward","go","continue","proceed"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,y.jsx)("polyline",{points:"12 16 16 12 12 8"}),(0,y.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]})},{name:"bookmark",label:"Bookmark",category:"Navigation",tags:["bookmark","save","mark","favorite","reference"],paths:(0,y.jsx)("path",{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"})},{name:"tag",label:"Tag",category:"Navigation",tags:["tag","label","category","badge","classify"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"}),(0,y.jsx)("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})]})},{name:"external-link",label:"External Link",category:"Navigation",tags:["external","link","open","new tab","redirect"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,y.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,y.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})},{name:"lock",label:"Lock",category:"Security",tags:["lock","secure","private","auth","restricted"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,y.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})},{name:"unlock",label:"Unlock",category:"Security",tags:["unlock","open","access","public","available"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,y.jsx)("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"})]})},{name:"shield",label:"Shield",category:"Security",tags:["shield","security","protect","safe","defense"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})})},{name:"shield-check",label:"Shield Check",category:"Security",tags:["shield","verify","secure","approved","trust"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),(0,y.jsx)("polyline",{points:"9 12 11 14 15 10"})]})},{name:"key",label:"Key",category:"Security",tags:["key","auth","api key","access","credentials"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4"})})},{name:"eye",label:"Eye",category:"Security",tags:["eye","view","visible","public","see"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,y.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})},{name:"eye-off",label:"Hidden",category:"Security",tags:["hidden","invisible","private","hide","off"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,y.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})},{name:"fingerprint",label:"Fingerprint",category:"Security",tags:["fingerprint","biometric","auth","identity","unique"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M2 12C2 6.5 6.5 2 12 2a10 10 0 0 1 8 4"}),(0,y.jsx)("path",{d:"M5 19.5C5.5 18 6 15 6 12c0-.7.12-1.37.34-2"}),(0,y.jsx)("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),(0,y.jsx)("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),(0,y.jsx)("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),(0,y.jsx)("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),(0,y.jsx)("path",{d:"M2 16h.01"}),(0,y.jsx)("path",{d:"M21.8 16c.2-2 .131-5.354.1-6"}),(0,y.jsx)("path",{d:"M9 6.8a6 6 0 0 1 9 5.2c0 .47 0 1.17-.02 2"})]})},{name:"message-square",label:"Message",category:"Communication",tags:["message","comment","chat","feedback","discussion"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})},{name:"bell",label:"Bell",category:"Communication",tags:["bell","notification","alert","notify","reminder"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),(0,y.jsx)("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})},{name:"mail",label:"Mail",category:"Communication",tags:["email","mail","message","inbox","contact"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,y.jsx)("polyline",{points:"22,6 12,13 2,6"})]})},{name:"megaphone",label:"Megaphone",category:"Communication",tags:["megaphone","announce","release","news","broadcast"],paths:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("path",{d:"m3 11 19-9-9 19-2-8-8-2z"})})},{name:"send",label:"Send",category:"Communication",tags:["send","submit","publish","deploy","share"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,y.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})},{name:"share",label:"Share",category:"Communication",tags:["share","distribute","publish","spread","post"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,y.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,y.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,y.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,y.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})},{name:"star",label:"Star",category:"Actions",tags:["star","favorite","featured","highlight","important"],paths:(0,y.jsx)("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"})},{name:"zap",label:"Zap",category:"Actions",tags:["zap","lightning","fast","quick","performance"],paths:(0,y.jsx)("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})},{name:"rocket",label:"Rocket",category:"Actions",tags:["rocket","launch","deploy","ship","start"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"}),(0,y.jsx)("path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"}),(0,y.jsx)("path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"}),(0,y.jsx)("path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"})]})},{name:"target",label:"Target",category:"Actions",tags:["target","goal","aim","objective","focus"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,y.jsx)("circle",{cx:"12",cy:"12",r:"6"}),(0,y.jsx)("circle",{cx:"12",cy:"12",r:"2"})]})},{name:"check-circle",label:"Check",category:"Actions",tags:["check","done","complete","success","verified"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,y.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]})},{name:"alert-triangle",label:"Warning",category:"Actions",tags:["warning","alert","caution","danger","notice"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,y.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,y.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})},{name:"info",label:"Info",category:"Actions",tags:["info","information","about","help","details"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,y.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,y.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})},{name:"help-circle",label:"Help",category:"Actions",tags:["help","faq","question","support","unknown"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,y.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,y.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})},{name:"flame",label:"Flame",category:"Actions",tags:["flame","hot","trending","popular","featured"],paths:(0,y.jsx)("path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"})},{name:"sparkles",label:"Sparkles",category:"Actions",tags:["new","feature","sparkle","ai","magic"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"}),(0,y.jsx)("path",{d:"M5 3v4"}),(0,y.jsx)("path",{d:"M19 17v4"}),(0,y.jsx)("path",{d:"M3 5h4"}),(0,y.jsx)("path",{d:"M17 19h4"})]})},{name:"trophy",label:"Trophy",category:"Actions",tags:["trophy","award","achievement","best","win"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6"}),(0,y.jsx)("path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18"}),(0,y.jsx)("path",{d:"M4 22h16"}),(0,y.jsx)("path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"}),(0,y.jsx)("path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"}),(0,y.jsx)("path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z"})]})},{name:"graduation-cap",label:"Learning",category:"Actions",tags:["learn","education","tutorial","training","school"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M22 10v6M2 10l10-5 10 5-10 5z"}),(0,y.jsx)("path",{d:"M6 12v5c3 3 9 3 12 0v-5"})]})},{name:"flask",label:"Flask",category:"Actions",tags:["test","beta","experiment","lab","trial"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M9 3h6l1 7H8L9 3z"}),(0,y.jsx)("path",{d:"M8 10 5.5 19A1 1 0 0 0 6.44 20h11.12a1 1 0 0 0 .94-1L16 10"})]})},{name:"heart",label:"Heart",category:"Actions",tags:["heart","love","like","favorite","community"],paths:(0,y.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})},{name:"refresh",label:"Refresh",category:"Actions",tags:["refresh","update","sync","reload","repeat"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polyline",{points:"23 4 23 10 17 10"}),(0,y.jsx)("polyline",{points:"1 20 1 14 7 14"}),(0,y.jsx)("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]})},{name:"download",label:"Download",category:"Actions",tags:["download","import","save","get","pull"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,y.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,y.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})},{name:"upload",label:"Upload",category:"Actions",tags:["upload","export","publish","push","deploy"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,y.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,y.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})},{name:"image",label:"Image",category:"Docs & Files",tags:["image","photo","picture","media"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,y.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,y.jsx)("polyline",{points:"21 15 16 10 5 21"})]})},{name:"quote",label:"Quote",category:"Docs & Files",tags:["quote","blockquote","citation"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M3 21c3 0 7-1 7-8V5H3v8h4"}),(0,y.jsx)("path",{d:"M14 21c3 0 7-1 7-8V5h-7v8h4"})]})},{name:"thumbs-up",label:"Thumbs Up",category:"Communication",tags:["helpful","like","vote","positive"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M7 10v12"}),(0,y.jsx)("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z"})]})},{name:"thumbs-down",label:"Thumbs Down",category:"Communication",tags:["feedback","dislike","vote","negative"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M17 14V2"}),(0,y.jsx)("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22h0a3.13 3.13 0 0 1-3-3.88Z"})]})},{name:"inbox",label:"Inbox",category:"Docs & Files",tags:["inbox","empty","mail","tray"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),(0,y.jsx)("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]})},{name:"palette",label:"Palette",category:"Actions",tags:["palette","brand","color","design","paint"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor"}),(0,y.jsx)("circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor"}),(0,y.jsx)("circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor"}),(0,y.jsx)("circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor"}),(0,y.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"})]})},{name:"maximize",label:"Maximize",category:"Navigation",tags:["maximize","expand","fullscreen","window"],paths:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,y.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,y.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,y.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}],W_=Object.fromEntries(WL.map(e=>[e.name,e.paths]))});function YL(){return{results:[],suggestion:null,searchId:null,searchToken:null}}function V_(e){if(Array.isArray(e))return{results:e,suggestion:null};if(e&&typeof e=="object"&&Array.isArray(e.results)){let t=e;return{results:t.results,suggestion:typeof t.suggestion=="string"?t.suggestion:null,searchId:typeof t.searchId=="string"?t.searchId:null,searchToken:typeof t.searchToken=="string"?t.searchToken:null}}return YL()}var X_=V(()=>{"use strict"});function VL(e,t){if(!t)return[];let n=[],r=0;for(;r<e.length;){let i=e.indexOf(t,r);if(i===-1)break;n.push({start:i,end:i+t.length}),r=i+t.length}return n}function XL(e,t){return e.start<t.end&&t.start<e.end}function Q_(e,t){if(!e||t.length===0)return[];let n=e.toLowerCase(),r=[...new Set(t.map(o=>o.toLowerCase()).filter(Boolean))];r.sort((o,a)=>a.length-o.length);let i=[];for(let o of r)for(let a of VL(n,o))i.some(s=>XL(s,a))||i.push(a);return i.sort((o,a)=>o.start-a.start),i}var Z_=V(()=>{"use strict"});var J_=V(()=>{"use strict"});function eD(e){return e.replace(JL,"")}function eT(e){let t=e.trim().toLowerCase(),n=[...new Set(t.split(/\s+/).map(eD).filter(i=>i.length>=2))].slice(0,QL);if(n.length===0)return[t];let r=n.filter(i=>!ZL.has(i));return r.length>0?r:n}var QL,ZL,JL,tT=V(()=>{"use strict";J_();QL=8,ZL=new Set(["a","an","the","and","or","but","if","of","to","in","on","at","by","for","from","with","as","is","am","are","was","were","be","been","do","does","did","how","what","when","where","which","who","why","this","that","these","those","it","its","i","my","me","we","our","you","your","can","could","should","would","will","shall"]),JL=/^["'“”‘’(\[{<]+|["'“”‘’)\]}>.,;:!?]+$/g});var sT={};Tm(sT,{default:()=>aT});function iT(e){return`docmind-search-recent:${e}`}function oT(e){try{let t=sessionStorage.getItem(iT(e)),n=t?JSON.parse(t):[];return Array.isArray(n)?n.filter(r=>typeof r=="string").slice(0,rT):[]}catch{return[]}}function nT(e,t){let n=t.trim();if(!n)return;let r=[n,...oT(e).filter(i=>i!==n)].slice(0,rT);try{sessionStorage.setItem(iT(e),JSON.stringify(r))}catch{}}function Ay({text:e,terms:t}){let n=Q_(e,t);if(n.length===0)return(0,Te.jsx)(Te.Fragment,{children:e});let r=[],i=0;return n.forEach((o,a)=>{o.start>i&&r.push(e.slice(i,o.start)),r.push((0,Te.jsx)("mark",{style:{background:"color-mix(in srgb, var(--brand) 26%, transparent)",color:"inherit",padding:0,borderRadius:2},children:e.slice(o.start,o.end)},a)),i=o.end}),i<e.length&&r.push(e.slice(i)),(0,Te.jsx)(Te.Fragment,{children:r})}function tD({open:e,onClose:t,basePath:n,projectSlug:r,assistantEnabled:i=!1,onAskAssistant:o,minimal:a=!1}){let s=r??n.split("/").filter(Boolean)[0]??"",l=sl(),c=n.endsWith("/preview")&&l.get("as")?.trim()||void 0,d=n.endsWith("/preview")&&l.get("branch")?.trim()||void 0,[f,m]=(0,Ht.useState)(""),[p,v]=(0,Ht.useState)([]),[b,E]=(0,Ht.useState)(null),[h,g]=(0,Ht.useState)([]),[S,w]=(0,Ht.useState)(!1),[C,O]=(0,Ht.useState)(0),T=na(),D=(0,Ht.useRef)(null),q=(0,Ht.useRef)(null),Z=(0,Ht.useRef)(0),re=(0,Ht.useRef)(null),me=(0,Ht.useRef)(null),he=(0,Ht.useRef)(null);(0,Ht.useEffect)(()=>{e&&(m(""),v([]),E(null),O(0),g(oT(s)),setTimeout(()=>D.current?.focus(),30))},[e,s]),(0,Ht.useEffect)(()=>{if(q.current&&clearTimeout(q.current),!f||f.length<2){re.current?.abort(),Z.current++,v([]),E(null),w(!1),me.current=null,he.current=null;return}return w(!0),q.current=setTimeout(async()=>{re.current?.abort();let j=new AbortController;re.current=j;let A=++Z.current;try{let I=n.endsWith("/preview"),L=Ka(n),K=I?d||Ty(s):void 0,fe=I?c:void 0,xe=K?`&branch=${encodeURIComponent(K)}`:"",ze=fe?`&as=${encodeURIComponent(fe)}`:"",we=di(`/api/search?q=${encodeURIComponent(f)}&preview=${I}${xe}${ze}`,s,L),Ue=await fetch(we,{signal:j.signal}),Se=V_(await Ue.json());if(A!==Z.current)return;v(Se.results),E(Se.suggestion),me.current=Se.searchId??null,he.current=Se.searchToken??null,O(0)}catch{if(j.signal.aborted||A!==Z.current)return;v([]),E(null),me.current=null,he.current=null}A===Z.current&&w(!1)},220),()=>{q.current&&clearTimeout(q.current)}},[f,s,n,c,d]),(0,Ht.useEffect)(()=>()=>re.current?.abort(),[]);let de=(0,Ht.useCallback)(async()=>{if(!(f.length<2)){nT(s,f);try{let j=n.endsWith("/preview"),A=Ka(n),I=j?d||Ty(s):void 0,L=j?c:void 0,K=I?`&branch=${encodeURIComponent(I)}`:"",fe=L?`&as=${encodeURIComponent(L)}`:"",xe=di(`/api/search?q=${encodeURIComponent(f)}&preview=${j}${K}${fe}&record=1`,s,A);await fetch(xe)}catch{}}},[f,s,n,c,d]),X=(0,Ht.useCallback)(j=>{nT(s,f);let A=me.current,I=he.current;if(A&&I&&typeof navigator<"u"&&navigator.sendBeacon)try{let K=p.findIndex(fe=>fe.kind===j.kind&&fe.id===j.id);navigator.sendBeacon("/api/analytics/search-click",JSON.stringify({project:s,searchId:A,searchToken:I,entityId:j.stableId??j.id,entityType:j.kind,rank:K>=0?K:void 0,query:f.trim(),resultCount:p.length,preview:n.endsWith("/preview")}))}catch{}let L=j.href??`${n}/${j.sectionSlug}/${j.slug}`;q_(K=>{T.push(K),t()},L)},[T,t,n,s,f,p]),N=(0,Ht.useCallback)(()=>{de()},[de]);if((0,Ht.useEffect)(()=>{function j(A){if(e){if(A.key==="Escape"){t();return}if(A.key==="Home"){A.preventDefault(),O(0);return}if(A.key==="End"){A.preventDefault(),O(Math.max(0,p.length-1));return}if(A.key==="ArrowDown"&&(A.preventDefault(),O(I=>Math.min(I+1,p.length-1))),A.key==="ArrowUp"&&(A.preventDefault(),O(I=>Math.max(I-1,0))),A.key==="Enter"){if(p[C]){X(p[C]);return}f.length>=2&&!S&&(A.preventDefault(),N())}}}return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[e,p,C,X,t,f,S,N]),!e)return null;let U=f.length>=2?eT(f):[],ae=f.length<2&&h.length>0;return(0,Te.jsx)("div",{style:{position:"fixed",inset:0,zIndex:1e3,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"72px",background:"rgba(0,0,0,0.45)",backdropFilter:"blur(2px)"},onClick:t,children:(0,Te.jsxs)("div",{style:{width:"580px",maxWidth:"calc(100vw - 32px)",maxHeight:"72vh",background:"var(--bg)",borderRadius:"14px",boxShadow:"0 32px 64px rgba(0,0,0,0.18)",overflow:"hidden",display:"flex",flexDirection:"column",animation:"fadeIn 0.12s ease-out"},onClick:j=>j.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"dm-focus-shell",style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",borderBottom:"1px solid var(--bg-muted)"},children:[(0,Te.jsx)("svg",{width:"16",height:"16",fill:"none",stroke:"var(--text-muted)",viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,Te.jsx)("input",{ref:D,value:f,onChange:j=>m(j.target.value),placeholder:"Search documentation",style:{flex:1,border:"none",outline:"none",fontSize:"15px",fontFamily:"inherit",color:"var(--text-primary)",background:"transparent"}}),f.length>0&&!S&&(0,Te.jsx)("button",{type:"button",onClick:()=>{m(""),v([]),E(null),D.current?.focus()},"aria-label":"Clear search",title:"Clear",style:{background:"none",border:"none",cursor:"pointer",color:"var(--text-muted)",padding:4,display:"inline-flex"},children:(0,Te.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":!0,children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 6l12 12M18 6L6 18"})})}),S?(0,Te.jsx)("div",{style:{width:"14px",height:"14px",borderRadius:"50%",border:"2px solid var(--border)",borderTopColor:"var(--text-secondary)",animation:"spin 0.6s linear infinite"}}):!a&&(0,Te.jsx)("kbd",{style:{fontSize:"11px",background:"var(--bg-muted)",border:"1px solid var(--border)",padding:"2px 6px",borderRadius:"4px",color:"var(--text-muted)",flexShrink:0},children:"ESC"})]}),(0,Te.jsxs)("div",{style:{overflowY:"auto",flex:1},children:[ae&&(0,Te.jsxs)("div",{style:{padding:"8px 0"},children:[(0,Te.jsx)("p",{style:{margin:"4px 16px 8px",fontSize:"11px",fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Recent"}),h.map(j=>(0,Te.jsxs)("button",{type:"button",onClick:()=>m(j),style:{width:"100%",display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",textAlign:"left",color:"var(--text-secondary)",fontSize:13},children:[(0,Te.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),j]},j))]}),p.length===0&&f.length>=2&&!S&&(0,Te.jsxs)("div",{style:{padding:"40px 20px",textAlign:"center"},children:[(0,Te.jsx)("p",{style:{margin:"0 0 4px",fontSize:"15px",color:"var(--text-secondary)",fontWeight:500},children:"No results"}),(0,Te.jsxs)("p",{style:{margin:0,fontSize:"13px",color:"var(--text-muted)"},children:["No pages found for \u201C",f,"\u201D"]}),b&&(0,Te.jsxs)("button",{type:"button",onClick:()=>m(b),style:{marginTop:12,background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",fontSize:13,color:"var(--text-primary)"},children:["Did you mean \u201C",b,"\u201D?"]}),i&&o&&(0,Te.jsxs)("button",{type:"button",onClick:()=>o(f),style:{display:"inline-flex",alignItems:"center",gap:7,padding:"9px 16px",borderRadius:20,border:"1px solid var(--border)",background:"var(--bg-subtle)",color:"var(--text-primary)",fontSize:13,fontWeight:600,cursor:"pointer",fontFamily:"inherit",marginTop:b?12:16},children:[(0,Te.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Te.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),"Ask AI about \u201C",f,"\u201D"]})]}),p.length===0&&f.length<2&&!a&&!ae&&(0,Te.jsx)("div",{style:{padding:"16px 20px"},children:(0,Te.jsx)("p",{style:{margin:0,fontSize:"11px",fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Start typing to search"})}),p.map((j,A)=>(0,Te.jsxs)("button",{type:"button",onClick:()=>X(j),style:{width:"100%",display:"flex",alignItems:"center",gap:"12px",padding:"12px 16px",background:A===C?"var(--bg-subtle)":"transparent",border:"none",cursor:"pointer",textAlign:"left",borderBottom:"1px solid var(--bg-subtle)",fontFamily:"inherit"},onMouseEnter:()=>O(A),children:[j.kind==="operation"?(0,Te.jsx)("span",{style:{flexShrink:0,width:"40px",display:"flex",justifyContent:"center"},children:(0,Te.jsx)(jn,{method:j.method??"get",size:"xs"})}):(0,Te.jsx)("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:"24px"},children:(0,Te.jsx)(hn,{icon:j.icon,size:18,color:"var(--text-secondary)"})}),(0,Te.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"2px"},children:[(0,Te.jsx)("p",{style:{margin:0,fontSize:"14px",fontWeight:500,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:(0,Te.jsx)(Ay,{text:j.title,terms:U})}),(0,Te.jsx)("span",{style:{fontSize:"9px",fontWeight:700,letterSpacing:"0.06em",color:"var(--text-muted)",flexShrink:0},children:j.kind==="operation"?"API":"GUIDE"}),!j.published&&(0,Te.jsx)("span",{style:{fontSize:"10px",padding:"1px 6px",background:"var(--draft-bg)",color:"var(--draft-text)",borderRadius:"20px",flexShrink:0},children:"Draft"})]}),(0,Te.jsx)("p",{style:{margin:0,fontSize:"12px",color:"var(--text-muted)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:j.kind==="operation"?(0,Te.jsxs)(Te.Fragment,{children:[j.specName,j.tag?` / ${j.tag}`:"",j.path&&(0,Te.jsxs)("span",{style:{fontFamily:"var(--font-mono)"},children:[" \u2014 ",j.path]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Ay,{text:`${j.sectionName??""}${j.groupName?` / ${j.groupName}`:""}`,terms:U}),j.excerpt?(0,Te.jsxs)(Te.Fragment,{children:[" \u2014 ",(0,Te.jsx)(Ay,{text:j.excerpt.slice(0,90),terms:U})]}):""]})})]}),(0,Te.jsx)(Y_,{size:13,color:"var(--border-strong)"})]},j.id))]}),!a&&(0,Te.jsxs)("div",{style:{padding:"8px 16px",borderTop:"1px solid var(--bg-muted)",display:"flex",alignItems:"center",gap:"12px",fontSize:"11px",color:"var(--text-muted)"},children:[(0,Te.jsxs)("span",{children:[(0,Te.jsx)("kbd",{style:{background:"var(--bg-muted)",border:"1px solid var(--border)",padding:"1px 5px",borderRadius:"3px"},children:"\u2191\u2193"})," navigate"]}),(0,Te.jsxs)("span",{children:[(0,Te.jsx)("kbd",{style:{background:"var(--bg-muted)",border:"1px solid var(--border)",padding:"1px 5px",borderRadius:"3px"},children:"\u21B5"})," open"]}),(0,Te.jsxs)("span",{children:[(0,Te.jsx)("kbd",{style:{background:"var(--bg-muted)",border:"1px solid var(--border)",padding:"1px 5px",borderRadius:"3px"},children:"ESC"})," close"]})]})]})})}function aT(e){return(0,Te.jsx)(Ht.Suspense,{fallback:null,children:(0,Te.jsx)(tD,{...e})})}var Ht,Te,rT,lT=V(()=>{"use strict";"use client";Ht=M(Me());ao();G_();Uf();Wa();Ai();ra();X_();Z_();tT();Te=M(Y()),rT=5});function Oy(e){let t=[];for(let n of e.trim().replace(/\\/g,"/").split("/"))if(!(n===""||n===".")){if(n==="..")return null;t.push(n)}return t.join("/")}function Cy(e){return e.split("/").map(encodeURIComponent).join("/")}function Ri(e){return e.split("/").map(t=>{try{return decodeURIComponent(t)}catch{return t}}).join("/")}var ul=V(()=>{"use strict"});var S2=si((C$,x2)=>{"use strict";function l2(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&l2(n)}),e}var rp=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function c2(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ia(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let i in r)n[i]=r[i]}),n}var c3="</span>",n2=e=>!!e.scope,u3=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`},ob=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=c2(t)}openNode(t){if(!n2(t))return;let n=u3(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){n2(t)&&(this.buffer+=c3)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},r2=(e={})=>{let t={children:[]};return Object.assign(t,e),t},ab=class e{constructor(){this.rootNode=r2(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=r2({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},sb=class extends ab{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new ob(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function lu(e){return e?typeof e=="string"?e:e.source:null}function u2(e){return Qa("(?=",e,")")}function d3(e){return Qa("(?:",e,")*")}function f3(e){return Qa("(?:",e,")?")}function Qa(...e){return e.map(n=>lu(n)).join("")}function p3(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function cb(...e){return"("+(p3(e).capture?"":"?:")+e.map(r=>lu(r)).join("|")+")"}function d2(e){return new RegExp(e.toString()+"|").exec("").length-1}function m3(e,t){let n=e&&e.exec(t);return n&&n.index===0}var g3=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ub(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let i=n,o=lu(r),a="";for(;o.length>0;){let s=g3.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}var h3=/\b\B/,f2="[a-zA-Z]\\w*",db="[a-zA-Z_]\\w*",p2="\\b\\d+(\\.\\d+)?",m2="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",g2="\\b(0b[01]+)",y3="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",b3=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Qa(t,/.*\b/,e.binary,/\b.*/)),ia({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},cu={begin:"\\\\[\\s\\S]",relevance:0},v3={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[cu]},x3={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[cu]},S3={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},op=function(e,t,n={}){let r=ia({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=cb("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Qa(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},E3=op("//","$"),w3=op("/\\*","\\*/"),_3=op("#","$"),T3={scope:"number",begin:p2,relevance:0},N3={scope:"number",begin:m2,relevance:0},k3={scope:"number",begin:g2,relevance:0},A3={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[cu,{begin:/\[/,end:/\]/,relevance:0,contains:[cu]}]},R3={scope:"title",begin:f2,relevance:0},O3={scope:"title",begin:db,relevance:0},C3={begin:"\\.\\s*"+db,relevance:0},M3=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},np=Object.freeze({__proto__:null,APOS_STRING_MODE:v3,BACKSLASH_ESCAPE:cu,BINARY_NUMBER_MODE:k3,BINARY_NUMBER_RE:g2,COMMENT:op,C_BLOCK_COMMENT_MODE:w3,C_LINE_COMMENT_MODE:E3,C_NUMBER_MODE:N3,C_NUMBER_RE:m2,END_SAME_AS_BEGIN:M3,HASH_COMMENT_MODE:_3,IDENT_RE:f2,MATCH_NOTHING_RE:h3,METHOD_GUARD:C3,NUMBER_MODE:T3,NUMBER_RE:p2,PHRASAL_WORDS_MODE:S3,QUOTE_STRING_MODE:x3,REGEXP_MODE:A3,RE_STARTERS_RE:y3,SHEBANG:b3,TITLE_MODE:R3,UNDERSCORE_IDENT_RE:db,UNDERSCORE_TITLE_MODE:O3});function I3(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function L3(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function D3(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=I3,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function B3(e,t){Array.isArray(e.illegal)&&(e.illegal=cb(...e.illegal))}function P3(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function z3(e,t){e.relevance===void 0&&(e.relevance=1)}var U3=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Qa(n.beforeMatch,u2(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},$3=["of","and","for","in","not","or","if","then","parent","list","value"],H3="keyword";function h2(e,t,n=H3){let r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,h2(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){let l=s.split("|");r[l[0]]=[o,j3(l[0],l[1])]})}}function j3(e,t){return t?Number(t):F3(e)?0:1}function F3(e){return $3.includes(e.toLowerCase())}var i2={},Xa=e=>{console.error(e)},o2=(e,...t)=>{console.log(`WARN: ${e}`,...t)},pl=(e,t)=>{i2[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),i2[`${e}/${t}`]=!0)},ip=new Error;function y2(e,t,{key:n}){let r=0,i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=d2(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function q3(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Xa("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ip;if(typeof e.beginScope!="object"||e.beginScope===null)throw Xa("beginScope must be object"),ip;y2(e,e.begin,{key:"beginScope"}),e.begin=ub(e.begin,{joinWith:""})}}function G3(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Xa("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ip;if(typeof e.endScope!="object"||e.endScope===null)throw Xa("endScope must be object"),ip;y2(e,e.end,{key:"endScope"}),e.end=ub(e.end,{joinWith:""})}}function K3(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function W3(e){K3(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),q3(e),G3(e)}function Y3(e){function t(a,s){return new RegExp(lu(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=d2(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(l=>l[1]);this.matcherRe=t(ub(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let l=this.matcherRe.exec(s);if(!l)return null;let c=l.findIndex((f,m)=>m>0&&f!==void 0),d=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,d)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let l=new n;return this.rules.slice(s).forEach(([c,d])=>l.addRule(c,d)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){let l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){let d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){let s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){let l=a;if(a.isCompiled)return l;[L3,P3,W3,U3].forEach(d=>d(a,s)),e.compilerExtensions.forEach(d=>d(a,s)),a.__beforeBegin=null,[D3,B3,z3].forEach(d=>d(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=h2(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=lu(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(d){return V3(d==="self"?a:d)})),a.contains.forEach(function(d){o(d,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ia(e.classNameAliases||{}),o(e)}function b2(e){return e?e.endsWithParent||b2(e.starts):!1}function V3(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ia(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:b2(e)?ia(e,{starts:e.starts?ia(e.starts):null}):Object.isFrozen(e)?ia(e):e}var X3="11.11.1",lb=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},ib=c2,a2=ia,s2=Symbol("nomatch"),Q3=7,v2=function(e){let t=Object.create(null),n=Object.create(null),r=[],i=!0,o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]},s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:sb};function l(N){return s.noHighlightRe.test(N)}function c(N){let U=N.className+" ";U+=N.parentNode?N.parentNode.className:"";let ae=s.languageDetectRe.exec(U);if(ae){let j=D(ae[1]);return j||(o2(o.replace("{}",ae[1])),o2("Falling back to no-highlight mode for this block.",N)),j?ae[1]:"no-highlight"}return U.split(/\s+/).find(j=>l(j)||D(j))}function d(N,U,ae){let j="",A="";typeof U=="object"?(j=N,ae=U.ignoreIllegals,A=U.language):(pl("10.7.0","highlight(lang, code, ...args) has been deprecated."),pl("10.7.0",`Please use highlight(code, options) instead.
|
|
11
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),A=N,j=U),ae===void 0&&(ae=!0);let I={code:j,language:A};de("before:highlight",I);let L=I.result?I.result:f(I.language,I.code,ae);return L.code=I.code,de("after:highlight",L),L}function f(N,U,ae,j){let A=Object.create(null);function I(le,ye){return le.keywords[ye]}function L(){if(!Ee.keywords){Ot.addText(Ge);return}let le=0;Ee.keywordPatternRe.lastIndex=0;let ye=Ee.keywordPatternRe.exec(Ge),u="";for(;ye;){u+=Ge.substring(le,ye.index);let R=Qe.case_insensitive?ye[0].toLowerCase():ye[0],$=I(Ee,R);if($){let[W,F]=$;if(Ot.addText(u),u="",A[R]=(A[R]||0)+1,A[R]<=Q3&&(Dn+=F),W.startsWith("_"))u+=ye[0];else{let ie=Qe.classNameAliases[W]||W;xe(ye[0],ie)}}else u+=ye[0];le=Ee.keywordPatternRe.lastIndex,ye=Ee.keywordPatternRe.exec(Ge)}u+=Ge.substring(le),Ot.addText(u)}function K(){if(Ge==="")return;let le=null;if(typeof Ee.subLanguage=="string"){if(!t[Ee.subLanguage]){Ot.addText(Ge);return}le=f(Ee.subLanguage,Ge,!0,Yt[Ee.subLanguage]),Yt[Ee.subLanguage]=le._top}else le=p(Ge,Ee.subLanguage.length?Ee.subLanguage:null);Ee.relevance>0&&(Dn+=le.relevance),Ot.__addSublanguage(le._emitter,le.language)}function fe(){Ee.subLanguage!=null?K():L(),Ge=""}function xe(le,ye){le!==""&&(Ot.startScope(ye),Ot.addText(le),Ot.endScope())}function ze(le,ye){let u=1,R=ye.length-1;for(;u<=R;){if(!le._emit[u]){u++;continue}let $=Qe.classNameAliases[le[u]]||le[u],W=ye[u];$?xe(W,$):(Ge=W,L(),Ge=""),u++}}function we(le,ye){return le.scope&&typeof le.scope=="string"&&Ot.openNode(Qe.classNameAliases[le.scope]||le.scope),le.beginScope&&(le.beginScope._wrap?(xe(Ge,Qe.classNameAliases[le.beginScope._wrap]||le.beginScope._wrap),Ge=""):le.beginScope._multi&&(ze(le.beginScope,ye),Ge="")),Ee=Object.create(le,{parent:{value:Ee}}),Ee}function Ue(le,ye,u){let R=m3(le.endRe,u);if(R){if(le["on:end"]){let $=new rp(le);le["on:end"](ye,$),$.isMatchIgnored&&(R=!1)}if(R){for(;le.endsParent&&le.parent;)le=le.parent;return le}}if(le.endsWithParent)return Ue(le.parent,ye,u)}function Se(le){return Ee.matcher.regexIndex===0?(Ge+=le[0],1):(Ze=!0,0)}function Ye(le){let ye=le[0],u=le.rule,R=new rp(u),$=[u.__beforeBegin,u["on:begin"]];for(let W of $)if(W&&(W(le,R),R.isMatchIgnored))return Se(ye);return u.skip?Ge+=ye:(u.excludeBegin&&(Ge+=ye),fe(),!u.returnBegin&&!u.excludeBegin&&(Ge=ye)),we(u,le),u.returnBegin?0:ye.length}function jt(le){let ye=le[0],u=U.substring(le.index),R=Ue(Ee,le,u);if(!R)return s2;let $=Ee;Ee.endScope&&Ee.endScope._wrap?(fe(),xe(ye,Ee.endScope._wrap)):Ee.endScope&&Ee.endScope._multi?(fe(),ze(Ee.endScope,le)):$.skip?Ge+=ye:($.returnEnd||$.excludeEnd||(Ge+=ye),fe(),$.excludeEnd&&(Ge=ye));do Ee.scope&&Ot.closeNode(),!Ee.skip&&!Ee.subLanguage&&(Dn+=Ee.relevance),Ee=Ee.parent;while(Ee!==R.parent);return R.starts&&we(R.starts,le),$.returnEnd?0:ye.length}function te(){let le=[];for(let ye=Ee;ye!==Qe;ye=ye.parent)ye.scope&&le.unshift(ye.scope);le.forEach(ye=>Ot.openNode(ye))}let Ie={};function ke(le,ye){let u=ye&&ye[0];if(Ge+=le,u==null)return fe(),0;if(Ie.type==="begin"&&ye.type==="end"&&Ie.index===ye.index&&u===""){if(Ge+=U.slice(ye.index,ye.index+1),!i){let R=new Error(`0 width match regex (${N})`);throw R.languageName=N,R.badRule=Ie.rule,R}return 1}if(Ie=ye,ye.type==="begin")return Ye(ye);if(ye.type==="illegal"&&!ae){let R=new Error('Illegal lexeme "'+u+'" for mode "'+(Ee.scope||"<unnamed>")+'"');throw R.mode=Ee,R}else if(ye.type==="end"){let R=jt(ye);if(R!==s2)return R}if(ye.type==="illegal"&&u==="")return Ge+=`
|
|
12
|
+
`,1;if(mt>1e5&&mt>ye.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ge+=u,u.length}let Qe=D(N);if(!Qe)throw Xa(o.replace("{}",N)),new Error('Unknown language: "'+N+'"');let be=Y3(Qe),lt="",Ee=j||be,Yt={},Ot=new s.__emitter(s);te();let Ge="",Dn=0,Bt=0,mt=0,Ze=!1;try{if(Qe.__emitTokens)Qe.__emitTokens(U,Ot);else{for(Ee.matcher.considerAll();;){mt++,Ze?Ze=!1:Ee.matcher.considerAll(),Ee.matcher.lastIndex=Bt;let le=Ee.matcher.exec(U);if(!le)break;let ye=U.substring(Bt,le.index),u=ke(ye,le);Bt=le.index+u}ke(U.substring(Bt))}return Ot.finalize(),lt=Ot.toHTML(),{language:N,value:lt,relevance:Dn,illegal:!1,_emitter:Ot,_top:Ee}}catch(le){if(le.message&&le.message.includes("Illegal"))return{language:N,value:ib(U),illegal:!0,relevance:0,_illegalBy:{message:le.message,index:Bt,context:U.slice(Bt-100,Bt+100),mode:le.mode,resultSoFar:lt},_emitter:Ot};if(i)return{language:N,value:ib(U),illegal:!1,relevance:0,errorRaised:le,_emitter:Ot,_top:Ee};throw le}}function m(N){let U={value:ib(N),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return U._emitter.addText(N),U}function p(N,U){U=U||s.languages||Object.keys(t);let ae=m(N),j=U.filter(D).filter(Z).map(fe=>f(fe,N,!1));j.unshift(ae);let A=j.sort((fe,xe)=>{if(fe.relevance!==xe.relevance)return xe.relevance-fe.relevance;if(fe.language&&xe.language){if(D(fe.language).supersetOf===xe.language)return 1;if(D(xe.language).supersetOf===fe.language)return-1}return 0}),[I,L]=A,K=I;return K.secondBest=L,K}function v(N,U,ae){let j=U&&n[U]||ae;N.classList.add("hljs"),N.classList.add(`language-${j}`)}function b(N){let U=null,ae=c(N);if(l(ae))return;if(de("before:highlightElement",{el:N,language:ae}),N.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",N);return}if(N.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N)),s.throwUnescapedHTML))throw new lb("One of your code blocks includes unescaped HTML.",N.innerHTML);U=N;let j=U.textContent,A=ae?d(j,{language:ae,ignoreIllegals:!0}):p(j);N.innerHTML=A.value,N.dataset.highlighted="yes",v(N,ae,A.language),N.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(N.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),de("after:highlightElement",{el:N,result:A,text:j})}function E(N){s=a2(s,N)}let h=()=>{w(),pl("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function g(){w(),pl("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let S=!1;function w(){function N(){w()}if(document.readyState==="loading"){S||window.addEventListener("DOMContentLoaded",N,!1),S=!0;return}document.querySelectorAll(s.cssSelector).forEach(b)}function C(N,U){let ae=null;try{ae=U(e)}catch(j){if(Xa("Language definition for '{}' could not be registered.".replace("{}",N)),i)Xa(j);else throw j;ae=a}ae.name||(ae.name=N),t[N]=ae,ae.rawDefinition=U.bind(null,e),ae.aliases&&q(ae.aliases,{languageName:N})}function O(N){delete t[N];for(let U of Object.keys(n))n[U]===N&&delete n[U]}function T(){return Object.keys(t)}function D(N){return N=(N||"").toLowerCase(),t[N]||t[n[N]]}function q(N,{languageName:U}){typeof N=="string"&&(N=[N]),N.forEach(ae=>{n[ae.toLowerCase()]=U})}function Z(N){let U=D(N);return U&&!U.disableAutodetect}function re(N){N["before:highlightBlock"]&&!N["before:highlightElement"]&&(N["before:highlightElement"]=U=>{N["before:highlightBlock"](Object.assign({block:U.el},U))}),N["after:highlightBlock"]&&!N["after:highlightElement"]&&(N["after:highlightElement"]=U=>{N["after:highlightBlock"](Object.assign({block:U.el},U))})}function me(N){re(N),r.push(N)}function he(N){let U=r.indexOf(N);U!==-1&&r.splice(U,1)}function de(N,U){let ae=N;r.forEach(function(j){j[ae]&&j[ae](U)})}function X(N){return pl("10.7.0","highlightBlock will be removed entirely in v12.0"),pl("10.7.0","Please use highlightElement now."),b(N)}Object.assign(e,{highlight:d,highlightAuto:p,highlightAll:w,highlightElement:b,highlightBlock:X,configure:E,initHighlighting:h,initHighlightingOnLoad:g,registerLanguage:C,unregisterLanguage:O,listLanguages:T,getLanguage:D,registerAliases:q,autoDetection:Z,inherit:a2,addPlugin:me,removePlugin:he}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=X3,e.regex={concat:Qa,lookahead:u2,either:cb,optional:f3,anyNumberOfTimes:d3};for(let N in np)typeof np[N]=="object"&&l2(np[N]);return Object.assign(e,np),e},ml=v2({});ml.newInstance=()=>v2({});x2.exports=ml;ml.HighlightJS=ml;ml.default=ml});var wp=V(()=>{"use strict"});function Kt(e){if(e&&typeof e=="object")switch(e[Ur]){case Ii:case ca:return!0}return!1}function ht(e){if(e&&typeof e=="object")switch(e[Ur]){case _p:case Ii:case _l:case ca:return!0}return!1}var _p,Tk,Ii,Yb,_l,ca,Ur,mi,Li,po,gt,ut,Di,Tp,dt=V(()=>{"use strict";_p=Symbol.for("yaml.alias"),Tk=Symbol.for("yaml.document"),Ii=Symbol.for("yaml.map"),Yb=Symbol.for("yaml.pair"),_l=Symbol.for("yaml.scalar"),ca=Symbol.for("yaml.seq"),Ur=Symbol.for("yaml.node.type"),mi=e=>!!e&&typeof e=="object"&&e[Ur]===_p,Li=e=>!!e&&typeof e=="object"&&e[Ur]===Tk,po=e=>!!e&&typeof e=="object"&&e[Ur]===Ii,gt=e=>!!e&&typeof e=="object"&&e[Ur]===Yb,ut=e=>!!e&&typeof e=="object"&&e[Ur]===_l,Di=e=>!!e&&typeof e=="object"&&e[Ur]===ca;Tp=e=>(ut(e)||Kt(e))&&!!e.anchor});function mo(e,t){let n=kk(t);Li(e)?Tl(null,e.contents,n,Object.freeze([e]))===Bi&&(e.contents=null):Tl(null,e,n,Object.freeze([]))}function Tl(e,t,n,r){let i=Ak(e,t,n,r);if(ht(i)||gt(i))return Rk(e,r,i),Tl(e,i,n,r);if(typeof i!="symbol"){if(Kt(t)){r=Object.freeze(r.concat(t));for(let o=0;o<t.items.length;++o){let a=Tl(o,t.items[o],n,r);if(typeof a=="number")o=a-1;else{if(a===wr)return wr;a===Bi&&(t.items.splice(o,1),o-=1)}}}else if(gt(t)){r=Object.freeze(r.concat(t));let o=Tl("key",t.key,n,r);if(o===wr)return wr;o===Bi&&(t.key=null);let a=Tl("value",t.value,n,r);if(a===wr)return wr;a===Bi&&(t.value=null)}}return i}async function Np(e,t){let n=kk(t);Li(e)?await Nl(null,e.contents,n,Object.freeze([e]))===Bi&&(e.contents=null):await Nl(null,e,n,Object.freeze([]))}async function Nl(e,t,n,r){let i=await Ak(e,t,n,r);if(ht(i)||gt(i))return Rk(e,r,i),Nl(e,i,n,r);if(typeof i!="symbol"){if(Kt(t)){r=Object.freeze(r.concat(t));for(let o=0;o<t.items.length;++o){let a=await Nl(o,t.items[o],n,r);if(typeof a=="number")o=a-1;else{if(a===wr)return wr;a===Bi&&(t.items.splice(o,1),o-=1)}}}else if(gt(t)){r=Object.freeze(r.concat(t));let o=await Nl("key",t.key,n,r);if(o===wr)return wr;o===Bi&&(t.key=null);let a=await Nl("value",t.value,n,r);if(a===wr)return wr;a===Bi&&(t.value=null)}}return i}function kk(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Ak(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(po(t))return n.Map?.(e,t,r);if(Di(t))return n.Seq?.(e,t,r);if(gt(t))return n.Pair?.(e,t,r);if(ut(t))return n.Scalar?.(e,t,r);if(mi(t))return n.Alias?.(e,t,r)}function Rk(e,t,n){let r=t[t.length-1];if(Kt(r))r.items[e]=n;else if(gt(r))e==="key"?r.key=n:r.value=n;else if(Li(r))r.contents=n;else{let i=mi(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}var wr,Nk,Bi,yu=V(()=>{"use strict";dt();wr=Symbol("break visit"),Nk=Symbol("skip children"),Bi=Symbol("remove node");mo.BREAK=wr;mo.SKIP=Nk;mo.REMOVE=Bi;Np.BREAK=wr;Np.SKIP=Nk;Np.REMOVE=Bi});var SP,EP,kl,Vb=V(()=>{"use strict";dt();yu();SP={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},EP=e=>e.replace(/[!,[\]{}]/g,t=>SP[t]),kl=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[o,a]=r;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;let[o]=r;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{let a=/^\d+\.\d+$/.test(o);return n(6,`Unsupported YAML version ${o}`,a),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}let[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);let o=this.tags[r];if(o)try{return o+decodeURIComponent(i)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+EP(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags),i;if(t&&r.length>0&&ht(t.contents)){let o={};mo(t.contents,(a,s)=>{ht(s)&&s.tag&&(o[s.tag]=!0)}),i=Object.keys(o)}else i=[];for(let[o,a]of r)o==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(s=>s.startsWith(a)))&&n.push(`%TAG ${o} ${a}`);return n.join(`
|
|
13
|
+
`)}};kl.defaultYaml={explicit:!1,version:"1.2"};kl.defaultTags={"!!":"tag:yaml.org,2002:"}});function kp(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}var Ap=V(()=>{"use strict";dt();yu()});function es(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,o=r.length;i<o;++i){let a=r[i],s=es(e,r,String(i),a);s===void 0?delete r[i]:s!==a&&(r[i]=s)}else if(r instanceof Map)for(let i of Array.from(r.keys())){let o=r.get(i),a=es(e,r,i,o);a===void 0?r.delete(i):a!==o&&r.set(i,a)}else if(r instanceof Set)for(let i of Array.from(r)){let o=es(e,r,i,i);o===void 0?r.delete(i):o!==i&&(r.delete(i),r.add(o))}else for(let[i,o]of Object.entries(r)){let a=es(e,r,i,o);a===void 0?delete r[i]:a!==o&&(r[i]=a)}return e.call(t,n,r)}var Xb=V(()=>{"use strict"});function In(e,t,n){if(Array.isArray(e))return e.map((r,i)=>In(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!Tp(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=o=>{r.res=o,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!n?.keep?Number(e):e}var ua=V(()=>{"use strict";dt()});var da,Rp=V(()=>{"use strict";Xb();dt();ua();da=class{constructor(t){Object.defineProperty(this,Ur,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){if(!Li(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},s=In(this,"",a);if(typeof i=="function")for(let{count:l,res:c}of a.anchors.values())i(c,l);return typeof o=="function"?es(o,{"":s},"",s):s}}});function Op(e,t,n){if(mi(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Kt(t)){let r=0;for(let i of t.items){let o=Op(e,i,n);o>r&&(r=o)}return r}else if(gt(t)){let r=Op(e,t.key,n),i=Op(e,t.value,n);return Math.max(r,i)}return 1}var ts,bu=V(()=>{"use strict";Ap();yu();dt();Rp();ua();ts=class extends da{constructor(t){super(_p),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){if(n?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],mo(t,{Node:(o,a)=>{(mi(a)||Tp(a))&&r.push(a)}}),n&&(n.aliasResolveCache=r));let i;for(let o of r){if(o===this)break;o.anchor===this.source&&(i=o)}return i}toJSON(t,n){if(!n)return{source:this.source};let{anchors:r,doc:i,maxAliasCount:o}=n,a=this.resolve(i,n);if(!a){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let s=r.get(a);if(s||(In(a,null,n),s=r.get(a)),s?.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(o>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=Op(i,a,r)),s.count*s.aliasCount>o)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return s.res}toString(t,n,r){let i=`*${this.source}`;if(t){if(kp(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${i} `}return i}}});var Cp,je,bn=V(()=>{"use strict";dt();Rp();ua();Cp=e=>!e||typeof e!="function"&&typeof e!="object",je=class extends da{constructor(t){super(_l),this.value=t}toJSON(t,n){return n?.keep?this.value:In(this.value,t,n)}toString(){return String(this.value)}};je.BLOCK_FOLDED="BLOCK_FOLDED";je.BLOCK_LITERAL="BLOCK_LITERAL";je.PLAIN="PLAIN";je.QUOTE_DOUBLE="QUOTE_DOUBLE";je.QUOTE_SINGLE="QUOTE_SINGLE"});function _P(e,t,n){if(t){let r=n.filter(o=>o.tag===t),i=r.find(o=>!o.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>r.identify?.(e)&&!r.format)}function fa(e,t,n){if(Li(e)&&(e=e.contents),ht(e))return e;if(gt(e)){let f=n.schema[Ii].createNode?.(n.schema,null,n);return f.items.push(e),f}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:a,sourceObjects:s}=n,l;if(r&&e&&typeof e=="object"){if(l=s.get(e),l)return l.anchor??(l.anchor=i(e)),new ts(l.anchor);l={anchor:null,node:null},s.set(e,l)}t?.startsWith("!!")&&(t=wP+t.slice(2));let c=_P(e,t,a.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let f=new je(e);return l&&(l.node=f),f}c=e instanceof Map?a[Ii]:Symbol.iterator in Object(e)?a[ca]:a[Ii]}o&&(o(c),delete n.onTagObj);let d=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new je(e);return t?d.tag=t:c.default||(d.tag=c.tag),l&&(l.node=d),d}var wP,vu=V(()=>{"use strict";bu();dt();bn();wP="tag:yaml.org,2002:"});function Qb(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){let o=t[i];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=r,r=a}else r=new Map([[o,r]])}return fa(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var Ok,Al,Mp=V(()=>{"use strict";vu();dt();Rp();Ok=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,Al=class extends da{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){let n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>ht(r)||gt(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Ok(t))this.add(n);else{let[r,...i]=t,o=this.get(r,!0);if(Kt(o))o.addIn(i,n);else if(o===void 0&&this.schema)this.set(r,Qb(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){let[n,...r]=t;if(r.length===0)return this.delete(n);let i=this.get(n,!0);if(Kt(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){let[r,...i]=t,o=this.get(r,!0);return i.length===0?!n&&ut(o)?o.value:o:Kt(o)?o.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!gt(n))return!1;let r=n.value;return r==null||t&&ut(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){let[n,...r]=t;if(r.length===0)return this.has(n);let i=this.get(n,!0);return Kt(i)?i.hasIn(r):!1}setIn(t,n){let[r,...i]=t;if(i.length===0)this.set(r,n);else{let o=this.get(r,!0);if(Kt(o))o.setIn(i,n);else if(o===void 0&&this.schema)this.set(r,Qb(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}});function pa(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Ck,go,xu=V(()=>{"use strict";Ck=e=>e.replace(/^(?!$)(?: $)?/gm,"#");go=(e,t,n)=>e.endsWith(`
|
|
14
|
+
`)?pa(n,t):n.includes(`
|
|
15
|
+
`)?`
|
|
16
|
+
`+pa(n,t):(e.endsWith(" ")?"":" ")+n});function Eu(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!i||i<0)return e;i<o&&(o=0);let l=Math.max(1+o,1+i-t.length);if(e.length<=l)return e;let c=[],d={},f=i-t.length;typeof r=="number"&&(r>i-Math.max(2,o)?c.push(0):f=i-r);let m,p,v=!1,b=-1,E=-1,h=-1;n===Ip&&(b=Mk(e,b,t.length),b!==-1&&(f=b+l));for(let S;S=e[b+=1];){if(n===Su&&S==="\\"){switch(E=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}h=b}if(S===`
|
|
17
|
+
`)n===Ip&&(b=Mk(e,b,t.length)),f=b+t.length+l,m=void 0;else{if(S===" "&&p&&p!==" "&&p!==`
|
|
18
|
+
`&&p!==" "){let w=e[b+1];w&&w!==" "&&w!==`
|
|
19
|
+
`&&w!==" "&&(m=b)}if(b>=f)if(m)c.push(m),f=m+l,m=void 0;else if(n===Su){for(;p===" "||p===" ";)p=S,S=e[b+=1],v=!0;let w=b>h+1?b-2:E-1;if(d[w])return e;c.push(w),d[w]=!0,f=w+l,m=void 0}else v=!0}p=S}if(v&&s&&s(),c.length===0)return e;a&&a();let g=e.slice(0,c[0]);for(let S=0;S<c.length;++S){let w=c[S],C=c[S+1]||e.length;w===0?g=`
|
|
20
|
+
${t}${e.slice(0,C)}`:(n===Su&&d[w]&&(g+=`${e[w]}\\`),g+=`
|
|
21
|
+
${t}${e.slice(w+1,C)}`)}return g}function Mk(e,t,n){let r=t,i=t+1,o=e[i];for(;o===" "||o===" ";)if(t<i+n)o=e[++t];else{do o=e[++t];while(o&&o!==`
|
|
22
|
+
`);r=t,i=t+1,o=e[i]}return r}var Zb,Ip,Su,Ik=V(()=>{"use strict";Zb="flow",Ip="block",Su="quoted"});function TP(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let o=0,a=0;o<i;++o)if(e[o]===`
|
|
23
|
+
`){if(o-a>r)return!0;if(a=o+1,i-a<=r)return!1}return!0}function wu(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Bp(e)?" ":""),a="",s=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(a+=n.slice(s,l)+"\\ ",l+=1,s=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{a+=n.slice(s,l);let d=n.substr(l+2,4);switch(d){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:d.substr(0,2)==="00"?a+="\\x"+d.substr(2):a+=n.substr(l,6)}l+=5,s=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<i)l+=1;else{for(a+=n.slice(s,l)+`
|
|
24
|
+
|
|
25
|
+
`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)a+=`
|
|
26
|
+
`,l+=2;a+=o,n[l+2]===" "&&(a+="\\"),l+=1,s=l+1}break;default:l+=1}return a=s?a+n.slice(s):n,r?a:Eu(a,o,Su,Dp(t,!1))}function Jb(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
27
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return wu(e,t);let n=t.indent||(Bp(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
28
|
+
${n}`)+"'";return t.implicitKey?r:Eu(r,n,Zb,Dp(t,!1))}function Rl(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=wu;else{let i=e.includes('"'),o=e.includes("'");i&&!o?r=Jb:o&&!i?r=wu:r=n?Jb:wu}return r(e,t)}function Lp({comment:e,type:t,value:n},r,i,o){let{blockQuote:a,commentString:s,lineWidth:l}=r.options;if(!a||/\n[\t ]+$/.test(n))return Rl(n,r);let c=r.indent||(r.forceBlockIndent||Bp(n)?" ":""),d=a==="literal"?!0:a==="folded"||t===je.BLOCK_FOLDED?!1:t===je.BLOCK_LITERAL?!0:!TP(n,l,c.length);if(!n)return d?`|
|
|
29
|
+
`:`>
|
|
30
|
+
`;let f,m;for(m=n.length;m>0;--m){let C=n[m-1];if(C!==`
|
|
31
|
+
`&&C!==" "&&C!==" ")break}let p=n.substring(m),v=p.indexOf(`
|
|
32
|
+
`);v===-1?f="-":n===p||v!==p.length-1?(f="+",o&&o()):f="",p&&(n=n.slice(0,-p.length),p[p.length-1]===`
|
|
33
|
+
`&&(p=p.slice(0,-1)),p=p.replace(e0,`$&${c}`));let b=!1,E,h=-1;for(E=0;E<n.length;++E){let C=n[E];if(C===" ")b=!0;else if(C===`
|
|
34
|
+
`)h=E;else break}let g=n.substring(0,h<E?h+1:E);g&&(n=n.substring(g.length),g=g.replace(/\n+/g,`$&${c}`));let w=(b?c?"2":"1":"")+f;if(e&&(w+=" "+s(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!d){let C=n.replace(/\n+/g,`
|
|
35
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),O=!1,T=Dp(r,!0);a!=="folded"&&t!==je.BLOCK_FOLDED&&(T.onOverflow=()=>{O=!0});let D=Eu(`${g}${C}${p}`,c,Ip,T);if(!O)return`>${w}
|
|
36
|
+
${c}${D}`}return n=n.replace(/\n+/g,`$&${c}`),`|${w}
|
|
37
|
+
${c}${g}${n}${p}`}function NP(e,t,n,r){let{type:i,value:o}=e,{actualString:a,implicitKey:s,indent:l,indentStep:c,inFlow:d}=t;if(s&&o.includes(`
|
|
38
|
+
`)||d&&/[[\]{},]/.test(o))return Rl(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||d||!o.includes(`
|
|
39
|
+
`)?Rl(o,t):Lp(e,t,n,r);if(!s&&!d&&i!==je.PLAIN&&o.includes(`
|
|
40
|
+
`))return Lp(e,t,n,r);if(Bp(o)){if(l==="")return t.forceBlockIndent=!0,Lp(e,t,n,r);if(s&&l===c)return Rl(o,t)}let f=o.replace(/\n+/g,`$&
|
|
41
|
+
${l}`);if(a){let m=b=>b.default&&b.tag!=="tag:yaml.org,2002:str"&&b.test?.test(f),{compat:p,tags:v}=t.doc.schema;if(v.some(m)||p?.some(m))return Rl(o,t)}return s?f:Eu(f,l,Zb,Dp(t,!1))}function _u(e,t,n,r){let{implicitKey:i,inFlow:o}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==je.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=je.QUOTE_DOUBLE);let l=d=>{switch(d){case je.BLOCK_FOLDED:case je.BLOCK_LITERAL:return i||o?Rl(a.value,t):Lp(a,t,n,r);case je.QUOTE_DOUBLE:return wu(a.value,t);case je.QUOTE_SINGLE:return Jb(a.value,t);case je.PLAIN:return NP(a,t,n,r);default:return null}},c=l(s);if(c===null){let{defaultKeyType:d,defaultStringType:f}=t.options,m=i&&d||f;if(c=l(m),c===null)throw new Error(`Unsupported default string type ${m}`)}return c}var Dp,Bp,e0,Tu=V(()=>{"use strict";bn();Ik();Dp=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Bp=e=>/^(%|---|\.\.\.)/m.test(e);try{e0=new RegExp(`(^|(?<!
|
|
42
|
+
))
|
|
43
|
+
+(?!
|
|
44
|
+
|$)`,"g")}catch{e0=/\n+(?!\n|$)/g}});function t0(e,t){let n=Object.assign({blockQuote:!0,commentString:Ck,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function kP(e,t){if(t.tag){let i=e.filter(o=>o.tag===t.tag);if(i.length>0)return i.find(o=>o.format===t.format)??i[0]}let n,r;if(ut(t)){r=t.value;let i=e.filter(o=>o.identify?.(r));if(i.length>1){let o=i.filter(a=>a.test);o.length>0&&(i=o)}n=i.find(o=>o.format===t.format)??i.find(o=>!o.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){let i=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function AP(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],o=(ut(e)||Kt(e))&&e.anchor;o&&kp(o)&&(n.add(o),i.push(`&${o}`));let a=e.tag??(t.default?null:t.tag);return a&&i.push(r.directives.tagString(a)),i.join(" ")}function ns(e,t,n,r){if(gt(e))return e.toString(t,n,r);if(mi(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,o=ht(e)?e:t.doc.createNode(e,{onTagObj:l=>i=l});i??(i=kP(t.doc.schema.tags,o));let a=AP(o,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let s=typeof i.stringify=="function"?i.stringify(o,t,n,r):ut(o)?_u(o,t,n,r):o.toString(t,n,r);return a?ut(o)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a}
|
|
45
|
+
${t.indent}${s}`:s}var Nu=V(()=>{"use strict";Ap();dt();xu();Tu()});function Lk({key:e,value:t},n,r,i){let{allNullValues:o,doc:a,indent:s,indentStep:l,options:{commentString:c,indentSeq:d,simpleKeys:f}}=n,m=ht(e)&&e.comment||null;if(f){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Kt(e)||!ht(e)&&typeof e=="object"){let T="With simple keys, collection cannot be used as a key value";throw new Error(T)}}let p=!f&&(!e||m&&t==null&&!n.inFlow||Kt(e)||(ut(e)?e.type===je.BLOCK_FOLDED||e.type===je.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(f||!o),indent:s+l});let v=!1,b=!1,E=ns(e,n,()=>v=!0,()=>b=!0);if(!p&&!n.inFlow&&E.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(n.inFlow){if(o||t==null)return v&&r&&r(),E===""?"?":p?`? ${E}`:E}else if(o&&!f||t==null&&p)return E=`? ${E}`,m&&!v?E+=go(E,n.indent,c(m)):b&&i&&i(),E;v&&(m=null),p?(m&&(E+=go(E,n.indent,c(m))),E=`? ${E}
|
|
46
|
+
${s}:`):(E=`${E}:`,m&&(E+=go(E,n.indent,c(m))));let h,g,S;ht(t)?(h=!!t.spaceBefore,g=t.commentBefore,S=t.comment):(h=!1,g=null,S=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!p&&!m&&ut(t)&&(n.indentAtStart=E.length+1),b=!1,!d&&l.length>=2&&!n.inFlow&&!p&&Di(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let w=!1,C=ns(t,n,()=>w=!0,()=>b=!0),O=" ";if(m||h||g){if(O=h?`
|
|
47
|
+
`:"",g){let T=c(g);O+=`
|
|
48
|
+
${pa(T,n.indent)}`}C===""&&!n.inFlow?O===`
|
|
49
|
+
`&&S&&(O=`
|
|
50
|
+
|
|
51
|
+
`):O+=`
|
|
52
|
+
${n.indent}`}else if(!p&&Kt(t)){let T=C[0],D=C.indexOf(`
|
|
53
|
+
`),q=D!==-1,Z=n.inFlow??t.flow??t.items.length===0;if(q||!Z){let re=!1;if(q&&(T==="&"||T==="!")){let me=C.indexOf(" ");T==="&"&&me!==-1&&me<D&&C[me+1]==="!"&&(me=C.indexOf(" ",me+1)),(me===-1||D<me)&&(re=!0)}re||(O=`
|
|
54
|
+
${n.indent}`)}}else(C===""||C[0]===`
|
|
55
|
+
`)&&(O="");return E+=O+C,n.inFlow?w&&r&&r():S&&!w?E+=go(E,n.indent,c(S)):b&&i&&i(),E}var Dk=V(()=>{"use strict";dt();bn();Nu();xu()});function n0(e,t){(e==="debug"||e==="warn")&&console.warn(t)}var r0=V(()=>{"use strict"});function o0(e,t,n){let r=Pk(e,n);if(Di(r))for(let i of r.items)i0(e,t,i);else if(Array.isArray(r))for(let i of r)i0(e,t,i);else i0(e,t,r)}function i0(e,t,n){let r=Pk(e,n);if(!po(r))throw new Error("Merge sources must be maps or map aliases");let i=r.toJSON(null,e,Map);for(let[o,a]of i)t instanceof Map?t.has(o)||t.set(o,a):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function Pk(e,t){return e&&mi(t)?t.resolve(e.doc,e):t}var Pp,ku,Bk,zp=V(()=>{"use strict";dt();bn();Pp="<<",ku={identify:e=>e===Pp||typeof e=="symbol"&&e.description===Pp,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new je(Symbol(Pp)),{addToJSMap:o0}),stringify:()=>Pp},Bk=(e,t)=>(ku.identify(t)||ut(t)&&(!t.type||t.type===je.PLAIN)&&ku.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===ku.tag&&n.default)});function Up(e,t,{key:n,value:r}){if(ht(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Bk(e,n))o0(e,t,r);else{let i=In(n,"",e);if(t instanceof Map)t.set(i,In(r,i,e));else if(t instanceof Set)t.add(i);else{let o=RP(n,i,e),a=In(r,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}function RP(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(ht(e)&&n?.doc){let r=t0(n.doc,{});r.anchors=new Set;for(let o of n.anchors.keys())r.anchors.add(o.anchor);r.inFlow=!0,r.inStringifyKey=!0;let i=e.toString(r);if(!n.mapKeyWarned){let o=JSON.stringify(i);o.length>40&&(o=o.substring(0,36)+'..."'),n0(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}var a0=V(()=>{"use strict";r0();zp();Nu();dt();ua()});function Ol(e,t,n){let r=fa(e,void 0,n),i=fa(t,void 0,n);return new Vn(r,i)}var Vn,ma=V(()=>{"use strict";vu();Dk();a0();dt();Vn=class e{constructor(t,n=null){Object.defineProperty(this,Ur,{value:Yb}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return ht(n)&&(n=n.clone(t)),ht(r)&&(r=r.clone(t)),new e(n,r)}toJSON(t,n){let r=n?.mapAsMap?new Map:{};return Up(n,r,this)}toString(t,n,r){return t?.doc?Lk(this,t,n,r):JSON.stringify(this)}}});function Hp(e,t,n){return(t.inFlow??e.flow?CP:OP)(e,t,n)}function OP({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:o,onChompKeep:a,onComment:s}){let{indent:l,options:{commentString:c}}=n,d=Object.assign({},n,{indent:o,type:null}),f=!1,m=[];for(let v=0;v<t.length;++v){let b=t[v],E=null;if(ht(b))!f&&b.spaceBefore&&m.push(""),$p(n,m,b.commentBefore,f),b.comment&&(E=b.comment);else if(gt(b)){let g=ht(b.key)?b.key:null;g&&(!f&&g.spaceBefore&&m.push(""),$p(n,m,g.commentBefore,f))}f=!1;let h=ns(b,d,()=>E=null,()=>f=!0);E&&(h+=go(h,o,c(E))),f&&E&&(f=!1),m.push(r+h)}let p;if(m.length===0)p=i.start+i.end;else{p=m[0];for(let v=1;v<m.length;++v){let b=m[v];p+=b?`
|
|
56
|
+
${l}${b}`:`
|
|
57
|
+
`}}return e?(p+=`
|
|
58
|
+
`+pa(c(e),l),s&&s()):f&&a&&a(),p}function CP({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:o,flowCollectionPadding:a,options:{commentString:s}}=t;r+=o;let l=Object.assign({},t,{indent:r,inFlow:!0,type:null}),c=!1,d=0,f=[];for(let v=0;v<e.length;++v){let b=e[v],E=null;if(ht(b))b.spaceBefore&&f.push(""),$p(t,f,b.commentBefore,!1),b.comment&&(E=b.comment);else if(gt(b)){let g=ht(b.key)?b.key:null;g&&(g.spaceBefore&&f.push(""),$p(t,f,g.commentBefore,!1),g.comment&&(c=!0));let S=ht(b.value)?b.value:null;S?(S.comment&&(E=S.comment),S.commentBefore&&(c=!0)):b.value==null&&g?.comment&&(E=g.comment)}E&&(c=!0);let h=ns(b,l,()=>E=null);c||(c=f.length>d||h.includes(`
|
|
59
|
+
`)),v<e.length-1?h+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(c||(c=f.reduce((g,S)=>g+S.length+2,2)+(h.length+2)>t.options.lineWidth)),c&&(h+=",")),E&&(h+=go(h,r,s(E))),f.push(h),d=f.length}let{start:m,end:p}=n;if(f.length===0)return m+p;if(!c){let v=f.reduce((b,E)=>b+E.length+2,2);c=t.options.lineWidth>0&&v>t.options.lineWidth}if(c){let v=m;for(let b of f)v+=b?`
|
|
60
|
+
${o}${i}${b}`:`
|
|
61
|
+
`;return`${v}
|
|
62
|
+
${i}${p}`}else return`${m}${a}${f.join(" ")}${a}${p}`}function $p({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){let o=pa(t(r),e);n.push(o.trimStart())}}var s0=V(()=>{"use strict";dt();Nu();xu()});function ga(e,t){let n=ut(t)?t.value:t;for(let r of e)if(gt(r)&&(r.key===t||r.key===n||ut(r.key)&&r.key.value===n))return r}var Kn,ha=V(()=>{"use strict";s0();a0();Mp();dt();ma();bn();Kn=class extends Al{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ii,t),this.items=[]}static from(t,n,r){let{keepUndefined:i,replacer:o}=r,a=new this(t),s=(l,c)=>{if(typeof o=="function")c=o.call(n,l,c);else if(Array.isArray(o)&&!o.includes(l))return;(c!==void 0||i)&&a.items.push(Ol(l,c,r))};if(n instanceof Map)for(let[l,c]of n)s(l,c);else if(n&&typeof n=="object")for(let l of Object.keys(n))s(l,n[l]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let r;gt(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Vn(t,t?.value):r=new Vn(t.key,t.value);let i=ga(this.items,r.key),o=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);ut(i.value)&&Cp(r.value)?i.value.value=r.value:i.value=r.value}else if(o){let a=this.items.findIndex(s=>o(r,s)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){let n=ga(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){let i=ga(this.items,t)?.value;return(!n&&ut(i)?i.value:i)??void 0}has(t){return!!ga(this.items,t)}set(t,n){this.add(new Vn(t,n),!0)}toJSON(t,n,r){let i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(let o of this.items)Up(n,i,o);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(let i of this.items)if(!gt(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Hp(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}});var Cl,Ml=V(()=>{"use strict";dt();ha();Cl={collection:"map",default:!0,nodeClass:Kn,tag:"tag:yaml.org,2002:map",resolve(e,t){return po(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Kn.from(e,t,n)}});function jp(e){let t=ut(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}var $r,ya=V(()=>{"use strict";vu();s0();Mp();dt();bn();ua();$r=class extends Al{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(ca,t),this.items=[]}add(t){this.items.push(t)}delete(t){let n=jp(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){let r=jp(t);if(typeof r!="number")return;let i=this.items[r];return!n&&ut(i)?i.value:i}has(t){let n=jp(t);return typeof n=="number"&&n<this.items.length}set(t,n){let r=jp(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);let i=this.items[r];ut(i)&&Cp(n)?i.value=n:this.items[r]=n}toJSON(t,n){let r=[];n?.onCreate&&n.onCreate(r);let i=0;for(let o of this.items)r.push(In(o,String(i++),n));return r}toString(t,n,r){return t?Hp(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){let{replacer:i}=r,o=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let s of n){if(typeof i=="function"){let l=n instanceof Set?s:String(a++);s=i.call(n,l,s)}o.items.push(fa(s,void 0,r))}}return o}}});var Il,Ll=V(()=>{"use strict";dt();ya();Il={collection:"seq",default:!0,nodeClass:$r,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Di(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>$r.from(e,t,n)}});var Au=V(()=>{"use strict";Tu()});var Fp=V(()=>{"use strict";bn()});var l0=V(()=>{"use strict";bn()});var Dl=V(()=>{"use strict"});var c0=V(()=>{"use strict";bn();Dl()});var u0=V(()=>{"use strict";Dl()});var Uk=V(()=>{"use strict";Ml();Fp();Ll();Au();l0();c0();u0()});function $k(e){return typeof e=="bigint"||Number.isInteger(e)}var Gp,UP,$P,HP,Hk=V(()=>{"use strict";bn();Ml();Ll();Gp=({value:e})=>JSON.stringify(e),UP=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Gp},{identify:e=>e==null,createNode:()=>new je(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Gp},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Gp},{identify:$k,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>$k(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Gp}],$P={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},HP=[Cl,Il].concat(UP,$P)});var f0=V(()=>{"use strict";bn();Tu()});function jk(e,t,n){let{replacer:r}=n,i=new $r(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(o++),a));let s,l;if(Array.isArray(a))if(a.length===2)s=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let c=Object.keys(a);if(c.length===1)s=c[0],l=a[s];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else s=a;i.items.push(Ol(s,l,n))}return i}var Kp=V(()=>{"use strict";dt();ma();bn();ya()});var p0,m0=V(()=>{"use strict";dt();ua();ha();ya();Kp();p0=class e extends $r{constructor(){super(),this.add=Kn.prototype.add.bind(this),this.delete=Kn.prototype.delete.bind(this),this.get=Kn.prototype.get.bind(this),this.has=Kn.prototype.has.bind(this),this.set=Kn.prototype.set.bind(this),this.tag=e.tag}toJSON(t,n){if(!n)return super.toJSON(t);let r=new Map;n?.onCreate&&n.onCreate(r);for(let i of this.items){let o,a;if(gt(i)?(o=In(i.key,"",n),a=In(i.value,o,n)):o=In(i,"",n),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,a)}return r}static from(t,n,r){let i=jk(t,n,r),o=new this;return o.items=i.items,o}};p0.tag="tag:yaml.org,2002:omap"});var Fk=V(()=>{"use strict";bn()});var qk=V(()=>{"use strict";bn();Dl()});var Gk=V(()=>{"use strict";Dl()});var g0,h0=V(()=>{"use strict";dt();ma();ha();g0=class e extends Kn{constructor(t){super(t),this.tag=e.tag}add(t){let n;gt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Vn(t.key,null):n=new Vn(t,null),ga(this.items,n.key)||this.items.push(n)}get(t,n){let r=ga(this.items,t);return!n&>(r)?ut(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=ga(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Vn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){let{replacer:i}=r,o=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),o.items.push(Ol(a,null,r));return o}};g0.tag="tag:yaml.org,2002:set"});function jP(e,t){let n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=a=>t?BigInt(a):Number(a),o=r.replace(/_/g,"").split(":").reduce((a,s)=>a*i(60)+i(s),i(0));return n==="-"?i(-1)*o:o}var y0,b0=V(()=>{"use strict";Dl();y0={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(y0.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,o,a,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0,c=Date.UTC(n,r-1,i,o||0,a||0,s||0,l),d=t[8];if(d&&d!=="Z"){let f=jP(d,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""}});var Kk=V(()=>{"use strict";Ml();Fp();Ll();Au();f0();Fk();qk();Gk();zp();m0();Kp();h0();b0()});var Wk=V(()=>{"use strict";Ml();Fp();Ll();Au();l0();c0();u0();Uk();Hk();f0();zp();m0();Kp();Kk();h0();b0()});var v0=V(()=>{"use strict";dt();Ml();Ll();Au();Wk()});var Yk=V(()=>{"use strict";dt();Nu();xu()});var Ru=V(()=>{"use strict";bu();Mp();dt();ma();ua();v0();Yk();Ap();Xb();vu();Vb()});var Ou=V(()=>{"use strict"});var Cu=V(()=>{"use strict"});var Wp=V(()=>{"use strict"});var x0=V(()=>{"use strict";Wp()});var S0=V(()=>{"use strict";dt()});var Xk=V(()=>{"use strict";ma();ha();Cu();Wp();x0();S0()});var Qk=V(()=>{"use strict";ya();Cu();x0()});var Bl=V(()=>{"use strict"});var Zk=V(()=>{"use strict";dt();ma();ha();ya();Bl();Cu();Wp();S0()});var Jk=V(()=>{"use strict";dt();bn();ha();ya();Xk();Qk();Zk()});var w0=V(()=>{"use strict";bn()});var _0=V(()=>{"use strict";bn();Bl()});var eA=V(()=>{"use strict";dt();bn();w0();_0()});var tA=V(()=>{"use strict"});var nA=V(()=>{"use strict";bu();dt();Jk();eA();Bl();tA()});var rA=V(()=>{"use strict";Ru();nA();Bl();Cu()});var k0=V(()=>{"use strict";Vb();Ru();Ou();dt();rA();Bl()});var iA=V(()=>{"use strict";w0();_0();Ou();Tu()});var oA=V(()=>{"use strict"});function rs(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),sA(Object.freeze([]),e,t)}function sA(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(let i of["key","value"]){let o=t[i];if(o&&"items"in o){for(let a=0;a<o.items.length;++a){let s=sA(Object.freeze(e.concat([[i,a]])),o.items[a],n);if(typeof s=="number")a=s-1;else{if(s===A0)return A0;s===aA&&(o.items.splice(a,1),a-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}var A0,t6,aA,lA=V(()=>{"use strict";A0=Symbol("break visit"),t6=Symbol("skip children"),aA=Symbol("remove item");rs.BREAK=A0;rs.SKIP=t6;rs.REMOVE=aA;rs.itemAtPath=(e,t)=>{let n=e;for(let[r,i]of t){let o=n?.[r];if(o&&"items"in o)n=o.items[i];else return}return n};rs.parentCollection=(e,t)=>{let n=rs.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")}});var Vp=V(()=>{"use strict";iA();oA();lA()});var RW,OW,CW,MW,R0=V(()=>{"use strict";Vp();RW=new Set("0123456789ABCDEFabcdef"),OW=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),CW=new Set(",[]{}"),MW=new Set(` ,[]{}
|
|
63
|
+
\r `)});var O0=V(()=>{"use strict"});var C0=V(()=>{"use strict";Vp();R0()});var uA=V(()=>{"use strict";k0();Ru();Ou();r0();dt();O0();C0()});var M0=V(()=>{"use strict";k0();Ru();v0();Ou();bu();dt();ma();bn();ha();ya();Vp();R0();O0();C0();uA();yu()});var is=V(()=>{"use strict";M0();M0()});function l6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mu(){if(pA)return ba;pA=1;function e(a){return typeof a>"u"||a===null}function t(a){return typeof a=="object"&&a!==null}function n(a){return Array.isArray(a)?a:e(a)?[]:[a]}function r(a,s){if(s){let l=Object.keys(s);for(let c=0,d=l.length;c<d;c+=1){let f=l[c];a[f]=s[f]}}return a}function i(a,s){let l="";for(let c=0;c<s;c+=1)l+=a;return l}function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return ba.isNothing=e,ba.isObject=t,ba.toArray=n,ba.repeat=i,ba.isNegativeZero=o,ba.extend=r,ba}function Iu(){if(mA)return I0;mA=1;function e(n,r){let i="",o=n.reason||"(unknown reason)";return n.mark?(n.mark.name&&(i+='in "'+n.mark.name+'" '),i+="("+(n.mark.line+1)+":"+(n.mark.column+1)+")",!r&&n.mark.snippet&&(i+=`
|
|
64
|
+
|
|
65
|
+
`+n.mark.snippet),o+" "+i):o}function t(n,r){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=r,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(r){return this.name+": "+e(this,r)},I0=t,I0}function c6(){if(gA)return L0;gA=1;let e=Mu();function t(i,o,a,s,l){let c="",d="",f=Math.floor(l/2)-1;return s-o>f&&(c=" ... ",o=s-f+c.length),a-s>f&&(d=" ...",a=s+f-d.length),{str:c+i.slice(o,a).replace(/\t/g,"\u2192")+d,pos:s-o+c.length}}function n(i,o){return e.repeat(" ",o-i.length)+i}function r(i,o){if(o=Object.create(o||null),!i.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);let a=/\r?\n|\r|\0/g,s=[0],l=[],c,d=-1;for(;c=a.exec(i.buffer);)l.push(c.index),s.push(c.index+c[0].length),i.position<=c.index&&d<0&&(d=s.length-2);d<0&&(d=s.length-1);let f="",m=Math.min(i.line+o.linesAfter,l.length).toString().length,p=o.maxLength-(o.indent+m+3);for(let b=1;b<=o.linesBefore&&!(d-b<0);b++){let E=t(i.buffer,s[d-b],l[d-b],i.position-(s[d]-s[d-b]),p);f=e.repeat(" ",o.indent)+n((i.line-b+1).toString(),m)+" | "+E.str+`
|
|
66
|
+
`+f}let v=t(i.buffer,s[d],l[d],i.position,p);f+=e.repeat(" ",o.indent)+n((i.line+1).toString(),m)+" | "+v.str+`
|
|
67
|
+
`,f+=e.repeat("-",o.indent+m+3+v.pos)+`^
|
|
68
|
+
`;for(let b=1;b<=o.linesAfter&&!(d+b>=l.length);b++){let E=t(i.buffer,s[d+b],l[d+b],i.position-(s[d]-s[d+b]),p);f+=e.repeat(" ",o.indent)+n((i.line+b+1).toString(),m)+" | "+E.str+`
|
|
69
|
+
`}return f.replace(/\n$/,"")}return L0=r,L0}function or(){if(hA)return D0;hA=1;let e=Iu(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function r(o){let a={};return o!==null&&Object.keys(o).forEach(function(s){o[s].forEach(function(l){a[String(l)]=s})}),a}function i(o,a){if(a=a||{},Object.keys(a).forEach(function(s){if(t.indexOf(s)===-1)throw new e('Unknown option "'+s+'" is met in definition of "'+o+'" YAML type.')}),this.options=a,this.tag=o,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(s){return s},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return D0=i,D0}function zA(){if(yA)return B0;yA=1;let e=Iu(),t=or();function n(o,a){let s=[];return o[a].forEach(function(l){let c=s.length;s.forEach(function(d,f){d.tag===l.tag&&d.kind===l.kind&&d.multi===l.multi&&(c=f)}),s[c]=l}),s}function r(){let o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(s){s.multi?(o.multi[s.kind].push(s),o.multi.fallback.push(s)):o[s.kind][s.tag]=o.fallback[s.tag]=s}for(let s=0,l=arguments.length;s<l;s+=1)arguments[s].forEach(a);return o}function i(o){return this.extend(o)}return i.prototype.extend=function(a){let s=[],l=[];if(a instanceof t)l.push(a);else if(Array.isArray(a))l=l.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(s=s.concat(a.implicit)),a.explicit&&(l=l.concat(a.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(d){if(!(d instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(d.loadKind&&d.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(d.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(d){if(!(d instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(s),c.explicit=(this.explicit||[]).concat(l),c.compiledImplicit=n(c,"implicit"),c.compiledExplicit=n(c,"explicit"),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},B0=i,B0}function UA(){if(bA)return P0;bA=1;let e=or();return P0=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),P0}function $A(){if(vA)return z0;vA=1;let e=or();return z0=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),z0}function HA(){if(xA)return U0;xA=1;let e=or();return U0=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),U0}function jA(){if(SA)return $0;SA=1;let e=zA();return $0=new e({explicit:[UA(),$A(),HA()]}),$0}function FA(){if(EA)return H0;EA=1;let e=or();function t(i){if(i===null)return!0;let o=i.length;return o===1&&i==="~"||o===4&&(i==="null"||i==="Null"||i==="NULL")}function n(){return null}function r(i){return i===null}return H0=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),H0}function qA(){if(wA)return j0;wA=1;let e=or();function t(i){if(i===null)return!1;let o=i.length;return o===4&&(i==="true"||i==="True"||i==="TRUE")||o===5&&(i==="false"||i==="False"||i==="FALSE")}function n(i){return i==="true"||i==="True"||i==="TRUE"}function r(i){return Object.prototype.toString.call(i)==="[object Boolean]"}return j0=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"False"}},defaultStyle:"lowercase"}),j0}function GA(){if(_A)return F0;_A=1;let e=Mu(),t=or();function n(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function r(c){return c>=48&&c<=55}function i(c){return c>=48&&c<=57}function o(c){if(c===null)return!1;let d=c.length,f=0,m=!1;if(!d)return!1;let p=c[f];if((p==="-"||p==="+")&&(p=c[++f]),p==="0"){if(f+1===d)return!0;if(p=c[++f],p==="b"){for(f++;f<d;f++){if(p=c[f],p!=="0"&&p!=="1")return!1;m=!0}return m&&isFinite(a(c))}if(p==="x"){for(f++;f<d;f++){if(!n(c.charCodeAt(f)))return!1;m=!0}return m&&isFinite(a(c))}if(p==="o"){for(f++;f<d;f++){if(!r(c.charCodeAt(f)))return!1;m=!0}return m&&isFinite(a(c))}}for(;f<d;f++){if(!i(c.charCodeAt(f)))return!1;m=!0}return m?isFinite(a(c)):!1}function a(c){let d=c,f=1,m=d[0];if((m==="-"||m==="+")&&(m==="-"&&(f=-1),d=d.slice(1),m=d[0]),d==="0")return 0;if(m==="0"){if(d[1]==="b")return f*parseInt(d.slice(2),2);if(d[1]==="x")return f*parseInt(d.slice(2),16);if(d[1]==="o")return f*parseInt(d.slice(2),8)}return f*parseInt(d,10)}function s(c){return a(c)}function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return F0=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:l,represent:{binary:function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},octal:function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)},decimal:function(c){return c.toString(10)},hexadecimal:function(c){return c>=0?"0x"+c.toString(16).toUpperCase():"-0x"+c.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),F0}function KA(){if(TA)return q0;TA=1;let e=Mu(),t=or(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),r=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i(c){return c===null||!n.test(c)?!1:isFinite(parseFloat(c,10))?!0:r.test(c)}function o(c){let d=c.toLowerCase(),f=d[0]==="-"?-1:1;return"+-".indexOf(d[0])>=0&&(d=d.slice(1)),d===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:d===".nan"?NaN:f*parseFloat(d,10)}let a=/^[-+]?[0-9]+e/;function s(c,d){if(isNaN(c))switch(d){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(d){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(d){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";let f=c.toString(10);return a.test(f)?f.replace("e",".e"):f}function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return q0=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:o,predicate:l,represent:s,defaultStyle:"lowercase"}),q0}function WA(){return NA||(NA=1,G0=jA().extend({implicit:[FA(),qA(),GA(),KA()]})),G0}function YA(){return kA||(kA=1,K0=WA()),K0}function VA(){if(AA)return W0;AA=1;let e=or(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function r(a){return a===null?!1:t.exec(a)!==null||n.exec(a)!==null}function i(a){let s=0,l=null,c=t.exec(a);if(c===null&&(c=n.exec(a)),c===null)throw new Error("Date resolve error");let d=+c[1],f=+c[2]-1,m=+c[3];if(!c[4])return new Date(Date.UTC(d,f,m));let p=+c[4],v=+c[5],b=+c[6];if(c[7]){for(s=c[7].slice(0,3);s.length<3;)s+="0";s=+s}if(c[9]){let h=+c[10],g=+(c[11]||0);l=(h*60+g)*6e4,c[9]==="-"&&(l=-l)}let E=new Date(Date.UTC(d,f,m,p,v,b,s));return l&&E.setTime(E.getTime()-l),E}function o(a){return a.toISOString()}return W0=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:i,instanceOf:Date,represent:o}),W0}function XA(){if(RA)return Y0;RA=1;let e=or();function t(n){return n==="<<"||n===null}return Y0=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Y0}function QA(){if(OA)return V0;OA=1;let e=or(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
70
|
+
\r`;function n(a){if(a===null)return!1;let s=0,l=a.length,c=t;for(let d=0;d<l;d++){let f=c.indexOf(a.charAt(d));if(!(f>64)){if(f<0)return!1;s+=6}}return s%8===0}function r(a){let s=a.replace(/[\r\n=]/g,""),l=s.length,c=t,d=0,f=[];for(let p=0;p<l;p++)p%4===0&&p&&(f.push(d>>16&255),f.push(d>>8&255),f.push(d&255)),d=d<<6|c.indexOf(s.charAt(p));let m=l%4*6;return m===0?(f.push(d>>16&255),f.push(d>>8&255),f.push(d&255)):m===18?(f.push(d>>10&255),f.push(d>>2&255)):m===12&&f.push(d>>4&255),new Uint8Array(f)}function i(a){let s="",l=0,c=a.length,d=t;for(let m=0;m<c;m++)m%3===0&&m&&(s+=d[l>>18&63],s+=d[l>>12&63],s+=d[l>>6&63],s+=d[l&63]),l=(l<<8)+a[m];let f=c%3;return f===0?(s+=d[l>>18&63],s+=d[l>>12&63],s+=d[l>>6&63],s+=d[l&63]):f===2?(s+=d[l>>10&63],s+=d[l>>4&63],s+=d[l<<2&63],s+=d[64]):f===1&&(s+=d[l>>2&63],s+=d[l<<4&63],s+=d[64],s+=d[64]),s}function o(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return V0=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:r,predicate:o,represent:i}),V0}function ZA(){if(CA)return X0;CA=1;let e=or(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(o){if(o===null)return!0;let a={},s=o;for(let l=0,c=s.length;l<c;l+=1){let d=s[l],f=!1;if(n.call(d)!=="[object Object]")return!1;let m;for(m in d)if(t.call(d,m))if(!f)f=!0;else return!1;if(!f||t.call(a,m))return!1;Object.defineProperty(a,m,{value:!0})}return!0}function i(o){return o!==null?o:[]}return X0=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:r,construct:i}),X0}function JA(){if(MA)return Q0;MA=1;let e=or(),t=Object.prototype.toString;function n(i){if(i===null)return!0;let o=i,a=new Array(o.length);for(let s=0,l=o.length;s<l;s+=1){let c=o[s];if(t.call(c)!=="[object Object]")return!1;let d=Object.keys(c);if(d.length!==1)return!1;a[s]=[d[0],c[d[0]]]}return!0}function r(i){if(i===null)return[];let o=i,a=new Array(o.length);for(let s=0,l=o.length;s<l;s+=1){let c=o[s],d=Object.keys(c);a[s]=[d[0],c[d[0]]]}return a}return Q0=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:r}),Q0}function eR(){if(IA)return Z0;IA=1;let e=or(),t=Object.prototype.hasOwnProperty;function n(i){if(i===null)return!0;let o=i;for(let a in o)if(t.call(o,a)&&o[a]!==null)return!1;return!0}function r(i){return i!==null?i:{}}return Z0=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:n,construct:r}),Z0}function tv(){return LA||(LA=1,J0=YA().extend({implicit:[VA(),XA()],explicit:[QA(),ZA(),JA(),eR()]})),J0}function u6(){if(DA)return Xp;DA=1;let e=Mu(),t=Iu(),n=c6(),r=tv(),i=Object.prototype.hasOwnProperty,o=1,a=2,s=3,l=4,c=1,d=2,f=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,v=/[,\[\]{}]/,b=/^(?:!|!!|![0-9A-Za-z-]+!)$/,E=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function h(u){return Object.prototype.toString.call(u)}function g(u){return u===10||u===13}function S(u){return u===9||u===32}function w(u){return u===9||u===32||u===10||u===13}function C(u){return u===44||u===91||u===93||u===123||u===125}function O(u){if(u>=48&&u<=57)return u-48;let R=u|32;return R>=97&&R<=102?R-97+10:-1}function T(u){return u===120?2:u===117?4:u===85?8:0}function D(u){return u>=48&&u<=57?u-48:-1}function q(u){switch(u){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
71
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function Z(u){return u<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}function re(u,R,$){R==="__proto__"?Object.defineProperty(u,R,{configurable:!0,enumerable:!0,writable:!0,value:$}):u[R]=$}let me=new Array(256),he=new Array(256);for(let u=0;u<256;u++)me[u]=q(u)?1:0,he[u]=q(u);function de(u,R){this.input=u,this.filename=R.filename||null,this.schema=R.schema||r,this.onWarning=R.onWarning||null,this.legacy=R.legacy||!1,this.json=R.json||!1,this.listener=R.listener||null,this.maxDepth=typeof R.maxDepth=="number"?R.maxDepth:100,this.maxTotalMergeKeys=typeof R.maxTotalMergeKeys=="number"?R.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=u.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function X(u,R){let $={name:u.filename,buffer:u.input.slice(0,-1),position:u.position,line:u.line,column:u.position-u.lineStart};return $.snippet=n($),new t(R,$)}function N(u,R){throw X(u,R)}function U(u,R){u.onWarning&&u.onWarning.call(null,X(u,R))}function ae(u,R,$){let W=u.anchorMapTransactions;if(W.length!==0){let F=W[W.length-1];i.call(F,R)||(F[R]={existed:i.call(u.anchorMap,R),value:u.anchorMap[R]})}u.anchorMap[R]=$}function j(u){u.anchorMapTransactions.push(Object.create(null))}function A(u){let R=u.anchorMapTransactions.pop(),$=u.anchorMapTransactions;if($.length===0)return;let W=$[$.length-1],F=Object.keys(R);for(let ie=0,x=F.length;ie<x;ie+=1){let B=F[ie];i.call(W,B)||(W[B]=R[B])}}function I(u){let R=u.anchorMapTransactions.pop(),$=Object.keys(R);for(let W=$.length-1;W>=0;W-=1){let F=R[$[W]];F.existed?u.anchorMap[$[W]]=F.value:delete u.anchorMap[$[W]]}}function L(u){return{position:u.position,line:u.line,lineStart:u.lineStart,lineIndent:u.lineIndent,firstTabInLine:u.firstTabInLine,tag:u.tag,anchor:u.anchor,kind:u.kind,result:u.result}}function K(u,R){u.position=R.position,u.line=R.line,u.lineStart=R.lineStart,u.lineIndent=R.lineIndent,u.firstTabInLine=R.firstTabInLine,u.tag=R.tag,u.anchor=R.anchor,u.kind=R.kind,u.result=R.result}let fe={YAML:function(R,$,W){R.version!==null&&N(R,"duplication of %YAML directive"),W.length!==1&&N(R,"YAML directive accepts exactly one argument");let F=/^([0-9]+)\.([0-9]+)$/.exec(W[0]);F===null&&N(R,"ill-formed argument of the YAML directive");let ie=parseInt(F[1],10),x=parseInt(F[2],10);ie!==1&&N(R,"unacceptable YAML version of the document"),R.version=W[0],R.checkLineBreaks=x<2,x!==1&&x!==2&&U(R,"unsupported YAML version of the document")},TAG:function(R,$,W){let F;W.length!==2&&N(R,"TAG directive accepts exactly two arguments");let ie=W[0];F=W[1],b.test(ie)||N(R,"ill-formed tag handle (first argument) of the TAG directive"),i.call(R.tagMap,ie)&&N(R,'there is a previously declared suffix for "'+ie+'" tag handle'),E.test(F)||N(R,"ill-formed tag prefix (second argument) of the TAG directive");try{F=decodeURIComponent(F)}catch{N(R,"tag prefix is malformed: "+F)}R.tagMap[ie]=F}};function xe(u,R,$,W){if(R<$){let F=u.input.slice(R,$);if(W)for(let ie=0,x=F.length;ie<x;ie+=1){let B=F.charCodeAt(ie);B===9||B>=32&&B<=1114111||N(u,"expected valid JSON character")}else m.test(F)&&N(u,"the stream contains non-printable characters");u.result+=F}}function ze(u,R,$,W){e.isObject($)||N(u,"cannot merge mappings; the provided source object is unacceptable");let F=Object.keys($);for(let ie=0,x=F.length;ie<x;ie+=1){let B=F[ie];u.maxTotalMergeKeys!==-1&&++u.totalMergeKeys>u.maxTotalMergeKeys&&N(u,"merge keys exceeded maxTotalMergeKeys ("+u.maxTotalMergeKeys+")"),i.call(R,B)||(re(R,B,$[B]),W[B]=!0)}}function we(u,R,$,W,F,ie,x,B,oe){if(Array.isArray(F)){F=Array.prototype.slice.call(F);for(let Q=0,G=F.length;Q<G;Q+=1)Array.isArray(F[Q])&&N(u,"nested arrays are not supported inside keys"),typeof F=="object"&&h(F[Q])==="[object Object]"&&(F[Q]="[object Object]")}if(typeof F=="object"&&h(F)==="[object Object]"&&(F="[object Object]"),F=String(F),R===null&&(R={}),W==="tag:yaml.org,2002:merge")if(Array.isArray(ie))for(let Q=0,G=ie.length;Q<G;Q+=1)ze(u,R,ie[Q],$);else ze(u,R,ie,$);else!u.json&&!i.call($,F)&&i.call(R,F)&&(u.line=x||u.line,u.lineStart=B||u.lineStart,u.position=oe||u.position,N(u,"duplicated mapping key")),re(R,F,ie),delete $[F];return R}function Ue(u){let R=u.input.charCodeAt(u.position);R===10?u.position++:R===13?(u.position++,u.input.charCodeAt(u.position)===10&&u.position++):N(u,"a line break is expected"),u.line+=1,u.lineStart=u.position,u.firstTabInLine=-1}function Se(u,R,$){let W=0,F=u.input.charCodeAt(u.position);for(;F!==0;){for(;S(F);)F===9&&u.firstTabInLine===-1&&(u.firstTabInLine=u.position),F=u.input.charCodeAt(++u.position);if(R&&F===35)do F=u.input.charCodeAt(++u.position);while(F!==10&&F!==13&&F!==0);if(g(F))for(Ue(u),F=u.input.charCodeAt(u.position),W++,u.lineIndent=0;F===32;)u.lineIndent++,F=u.input.charCodeAt(++u.position);else break}return $!==-1&&W!==0&&u.lineIndent<$&&U(u,"deficient indentation"),W}function Ye(u){let R=u.position,$=u.input.charCodeAt(R);return!!(($===45||$===46)&&$===u.input.charCodeAt(R+1)&&$===u.input.charCodeAt(R+2)&&(R+=3,$=u.input.charCodeAt(R),$===0||w($)))}function jt(u,R){R===1?u.result+=" ":R>1&&(u.result+=e.repeat(`
|
|
72
|
+
`,R-1))}function te(u,R,$){let W,F,ie,x,B,oe,Q=u.kind,G=u.result,ne=u.input.charCodeAt(u.position);if(w(ne)||C(ne)||ne===35||ne===38||ne===42||ne===33||ne===124||ne===62||ne===39||ne===34||ne===37||ne===64||ne===96)return!1;if(ne===63||ne===45){let J=u.input.charCodeAt(u.position+1);if(w(J)||$&&C(J))return!1}for(u.kind="scalar",u.result="",W=F=u.position,ie=!1;ne!==0;){if(ne===58){let J=u.input.charCodeAt(u.position+1);if(w(J)||$&&C(J))break}else if(ne===35){let J=u.input.charCodeAt(u.position-1);if(w(J))break}else{if(u.position===u.lineStart&&Ye(u)||$&&C(ne))break;if(g(ne))if(x=u.line,B=u.lineStart,oe=u.lineIndent,Se(u,!1,-1),u.lineIndent>=R){ie=!0,ne=u.input.charCodeAt(u.position);continue}else{u.position=F,u.line=x,u.lineStart=B,u.lineIndent=oe;break}}ie&&(xe(u,W,F,!1),jt(u,u.line-x),W=F=u.position,ie=!1),S(ne)||(F=u.position+1),ne=u.input.charCodeAt(++u.position)}return xe(u,W,F,!1),u.result?!0:(u.kind=Q,u.result=G,!1)}function Ie(u,R){let $,W,F=u.input.charCodeAt(u.position);if(F!==39)return!1;for(u.kind="scalar",u.result="",u.position++,$=W=u.position;(F=u.input.charCodeAt(u.position))!==0;)if(F===39)if(xe(u,$,u.position,!0),F=u.input.charCodeAt(++u.position),F===39)$=u.position,u.position++,W=u.position;else return!0;else g(F)?(xe(u,$,W,!0),jt(u,Se(u,!1,R)),$=W=u.position):u.position===u.lineStart&&Ye(u)?N(u,"unexpected end of the document within a single quoted scalar"):(u.position++,S(F)||(W=u.position));N(u,"unexpected end of the stream within a single quoted scalar")}function ke(u,R){let $,W,F,ie=u.input.charCodeAt(u.position);if(ie!==34)return!1;for(u.kind="scalar",u.result="",u.position++,$=W=u.position;(ie=u.input.charCodeAt(u.position))!==0;){if(ie===34)return xe(u,$,u.position,!0),u.position++,!0;if(ie===92){if(xe(u,$,u.position,!0),ie=u.input.charCodeAt(++u.position),g(ie))Se(u,!1,R);else if(ie<256&&me[ie])u.result+=he[ie],u.position++;else if((F=T(ie))>0){let x=F,B=0;for(;x>0;x--)ie=u.input.charCodeAt(++u.position),(F=O(ie))>=0?B=(B<<4)+F:N(u,"expected hexadecimal character");u.result+=Z(B),u.position++}else N(u,"unknown escape sequence");$=W=u.position}else g(ie)?(xe(u,$,W,!0),jt(u,Se(u,!1,R)),$=W=u.position):u.position===u.lineStart&&Ye(u)?N(u,"unexpected end of the document within a double quoted scalar"):(u.position++,S(ie)||(W=u.position))}N(u,"unexpected end of the stream within a double quoted scalar")}function Qe(u,R){let $=!0,W,F,ie,x=u.tag,B,oe=u.anchor,Q,G,ne,J,ge=Object.create(null),pe,_e,Oe,z=u.input.charCodeAt(u.position);if(z===91)Q=93,J=!1,B=[];else if(z===123)Q=125,J=!0,B={};else return!1;for(u.anchor!==null&&ae(u,u.anchor,B),z=u.input.charCodeAt(++u.position);z!==0;){if(Se(u,!0,R),z=u.input.charCodeAt(u.position),z===Q)return u.position++,u.tag=x,u.anchor=oe,u.kind=J?"mapping":"sequence",u.result=B,!0;if($?z===44&&N(u,"expected the node content, but found ','"):N(u,"missed comma between flow collection entries"),_e=pe=Oe=null,G=ne=!1,z===63){let ve=u.input.charCodeAt(u.position+1);w(ve)&&(G=ne=!0,u.position++,Se(u,!0,R))}W=u.line,F=u.lineStart,ie=u.position,Bt(u,R,o,!1,!0),_e=u.tag,pe=u.result,Se(u,!0,R),z=u.input.charCodeAt(u.position),(ne||u.line===W)&&z===58&&(G=!0,z=u.input.charCodeAt(++u.position),Se(u,!0,R),Bt(u,R,o,!1,!0),Oe=u.result),J?we(u,B,ge,_e,pe,Oe,W,F,ie):G?B.push(we(u,null,ge,_e,pe,Oe,W,F,ie)):B.push(pe),Se(u,!0,R),z=u.input.charCodeAt(u.position),z===44?($=!0,z=u.input.charCodeAt(++u.position)):$=!1}N(u,"unexpected end of the stream within a flow collection")}function be(u,R){let $,W=c,F=!1,ie=!1,x=R,B=0,oe=!1,Q,G=u.input.charCodeAt(u.position);if(G===124)$=!1;else if(G===62)$=!0;else return!1;for(u.kind="scalar",u.result="";G!==0;)if(G=u.input.charCodeAt(++u.position),G===43||G===45)c===W?W=G===43?f:d:N(u,"repeat of a chomping mode identifier");else if((Q=D(G))>=0)Q===0?N(u,"bad explicit indentation width of a block scalar; it cannot be less than one"):ie?N(u,"repeat of an indentation width identifier"):(x=R+Q-1,ie=!0);else break;if(S(G)){do G=u.input.charCodeAt(++u.position);while(S(G));if(G===35)do G=u.input.charCodeAt(++u.position);while(!g(G)&&G!==0)}for(;G!==0;){for(Ue(u),u.lineIndent=0,G=u.input.charCodeAt(u.position);(!ie||u.lineIndent<x)&&G===32;)u.lineIndent++,G=u.input.charCodeAt(++u.position);if(!ie&&u.lineIndent>x&&(x=u.lineIndent),g(G)){B++;continue}if(!ie&&x===0&&N(u,"missing indentation for block scalar"),u.lineIndent<x){W===f?u.result+=e.repeat(`
|
|
73
|
+
`,F?1+B:B):W===c&&F&&(u.result+=`
|
|
74
|
+
`);break}$?S(G)?(oe=!0,u.result+=e.repeat(`
|
|
75
|
+
`,F?1+B:B)):oe?(oe=!1,u.result+=e.repeat(`
|
|
76
|
+
`,B+1)):B===0?F&&(u.result+=" "):u.result+=e.repeat(`
|
|
77
|
+
`,B):u.result+=e.repeat(`
|
|
78
|
+
`,F?1+B:B),F=!0,ie=!0,B=0;let ne=u.position;for(;!g(G)&&G!==0;)G=u.input.charCodeAt(++u.position);xe(u,ne,u.position,!1)}return!0}function lt(u,R){let $=u.tag,W=u.anchor,F=[],ie=!1;if(u.firstTabInLine!==-1)return!1;u.anchor!==null&&ae(u,u.anchor,F);let x=u.input.charCodeAt(u.position);for(;x!==0&&(u.firstTabInLine!==-1&&(u.position=u.firstTabInLine,N(u,"tab characters must not be used in indentation")),x===45);){let B=u.input.charCodeAt(u.position+1);if(!w(B))break;if(ie=!0,u.position++,Se(u,!0,-1)&&u.lineIndent<=R){F.push(null),x=u.input.charCodeAt(u.position);continue}let oe=u.line;if(Bt(u,R,s,!1,!0),F.push(u.result),Se(u,!0,-1),x=u.input.charCodeAt(u.position),(u.line===oe||u.lineIndent>R)&&x!==0)N(u,"bad indentation of a sequence entry");else if(u.lineIndent<R)break}return ie?(u.tag=$,u.anchor=W,u.kind="sequence",u.result=F,!0):!1}function Ee(u,R,$){let W,F,ie,x,B=u.tag,oe=u.anchor,Q={},G=Object.create(null),ne=null,J=null,ge=null,pe=!1,_e=!1;if(u.firstTabInLine!==-1)return!1;u.anchor!==null&&ae(u,u.anchor,Q);let Oe=u.input.charCodeAt(u.position);for(;Oe!==0;){!pe&&u.firstTabInLine!==-1&&(u.position=u.firstTabInLine,N(u,"tab characters must not be used in indentation"));let z=u.input.charCodeAt(u.position+1),ve=u.line;if((Oe===63||Oe===58)&&w(z))Oe===63?(pe&&(we(u,Q,G,ne,J,null,F,ie,x),ne=J=ge=null),_e=!0,pe=!0,W=!0):pe?(pe=!1,W=!0):N(u,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),u.position+=1,Oe=z;else{if(F=u.line,ie=u.lineStart,x=u.position,!Bt(u,$,a,!1,!0))break;if(u.line===ve){for(Oe=u.input.charCodeAt(u.position);S(Oe);)Oe=u.input.charCodeAt(++u.position);if(Oe===58)Oe=u.input.charCodeAt(++u.position),w(Oe)||N(u,"a whitespace character is expected after the key-value separator within a block mapping"),pe&&(we(u,Q,G,ne,J,null,F,ie,x),ne=J=ge=null),_e=!0,pe=!1,W=!1,ne=u.tag,J=u.result;else if(_e)N(u,"can not read an implicit mapping pair; a colon is missed");else return u.tag=B,u.anchor=oe,!0}else if(_e)N(u,"can not read a block mapping entry; a multiline key may not be an implicit key");else return u.tag=B,u.anchor=oe,!0}if((u.line===ve||u.lineIndent>R)&&(pe&&(F=u.line,ie=u.lineStart,x=u.position),Bt(u,R,l,!0,W)&&(pe?J=u.result:ge=u.result),pe||(we(u,Q,G,ne,J,ge,F,ie,x),ne=J=ge=null),Se(u,!0,-1),Oe=u.input.charCodeAt(u.position)),(u.line===ve||u.lineIndent>R)&&Oe!==0)N(u,"bad indentation of a mapping entry");else if(u.lineIndent<R)break}return pe&&we(u,Q,G,ne,J,null,F,ie,x),_e&&(u.tag=B,u.anchor=oe,u.kind="mapping",u.result=Q),_e}function Yt(u){let R=!1,$=!1,W,F,ie=u.input.charCodeAt(u.position);if(ie!==33)return!1;u.tag!==null&&N(u,"duplication of a tag property"),ie=u.input.charCodeAt(++u.position),ie===60?(R=!0,ie=u.input.charCodeAt(++u.position)):ie===33?($=!0,W="!!",ie=u.input.charCodeAt(++u.position)):W="!";let x=u.position;if(R){do ie=u.input.charCodeAt(++u.position);while(ie!==0&&ie!==62);u.position<u.length?(F=u.input.slice(x,u.position),ie=u.input.charCodeAt(++u.position)):N(u,"unexpected end of the stream within a verbatim tag")}else{for(;ie!==0&&!w(ie);)ie===33&&($?N(u,"tag suffix cannot contain exclamation marks"):(W=u.input.slice(x-1,u.position+1),b.test(W)||N(u,"named tag handle cannot contain such characters"),$=!0,x=u.position+1)),ie=u.input.charCodeAt(++u.position);F=u.input.slice(x,u.position),v.test(F)&&N(u,"tag suffix cannot contain flow indicator characters")}F&&!E.test(F)&&N(u,"tag name cannot contain such characters: "+F);try{F=decodeURIComponent(F)}catch{N(u,"tag name is malformed: "+F)}return R?u.tag=F:i.call(u.tagMap,W)?u.tag=u.tagMap[W]+F:W==="!"?u.tag="!"+F:W==="!!"?u.tag="tag:yaml.org,2002:"+F:N(u,'undeclared tag handle "'+W+'"'),!0}function Ot(u){let R=u.input.charCodeAt(u.position);if(R!==38)return!1;u.anchor!==null&&N(u,"duplication of an anchor property"),R=u.input.charCodeAt(++u.position);let $=u.position;for(;R!==0&&!w(R)&&!C(R);)R=u.input.charCodeAt(++u.position);return u.position===$&&N(u,"name of an anchor node must contain at least one character"),u.anchor=u.input.slice($,u.position),!0}function Ge(u){let R=u.input.charCodeAt(u.position);if(R!==42)return!1;R=u.input.charCodeAt(++u.position);let $=u.position;for(;R!==0&&!w(R)&&!C(R);)R=u.input.charCodeAt(++u.position);u.position===$&&N(u,"name of an alias node must contain at least one character");let W=u.input.slice($,u.position);return i.call(u.anchorMap,W)||N(u,'unidentified alias "'+W+'"'),u.result=u.anchorMap[W],Se(u,!0,-1),!0}function Dn(u,R,$,W){let F=L(u);return j(u),K(u,R),u.tag=null,u.anchor=null,u.kind=null,u.result=null,Ee(u,$,W)&&u.kind==="mapping"?(A(u),!0):(I(u),K(u,F),!1)}function Bt(u,R,$,W,F){let ie,x,B=1,oe=!1,Q=!1,G=null,ne,J,ge;u.depth>=u.maxDepth&&N(u,"nesting exceeded maxDepth ("+u.maxDepth+")"),u.depth+=1,u.listener!==null&&u.listener("open",u),u.tag=null,u.anchor=null,u.kind=null,u.result=null;let pe=ie=x=l===$||s===$;if(W&&Se(u,!0,-1)&&(oe=!0,u.lineIndent>R?B=1:u.lineIndent===R?B=0:u.lineIndent<R&&(B=-1)),B===1)for(;;){let _e=u.input.charCodeAt(u.position),Oe=L(u);if(oe&&(_e===33&&u.tag!==null||_e===38&&u.anchor!==null)||!Yt(u)&&!Ot(u))break;G===null&&(G=Oe),Se(u,!0,-1)?(oe=!0,x=pe,u.lineIndent>R?B=1:u.lineIndent===R?B=0:u.lineIndent<R&&(B=-1)):x=!1}if(x&&(x=oe||F),B===1||l===$)if(o===$||a===$?J=R:J=R+1,ge=u.position-u.lineStart,B===1)if(x&&(lt(u,ge)||Ee(u,ge,J))||Qe(u,J))Q=!0;else{let _e=u.input.charCodeAt(u.position);G!==null&&pe&&!x&&_e!==124&&_e!==62&&Dn(u,G,G.position-G.lineStart,J)||ie&&be(u,J)||Ie(u,J)||ke(u,J)?Q=!0:Ge(u)?(Q=!0,(u.tag!==null||u.anchor!==null)&&N(u,"alias node should not have any properties")):te(u,J,o===$)&&(Q=!0,u.tag===null&&(u.tag="?")),u.anchor!==null&&ae(u,u.anchor,u.result)}else B===0&&(Q=x&<(u,ge));if(u.tag===null)u.anchor!==null&&ae(u,u.anchor,u.result);else if(u.tag==="?"){u.result!==null&&u.kind!=="scalar"&&N(u,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+u.kind+'"');for(let _e=0,Oe=u.implicitTypes.length;_e<Oe;_e+=1)if(ne=u.implicitTypes[_e],ne.resolve(u.result)){u.result=ne.construct(u.result),u.tag=ne.tag,u.anchor!==null&&ae(u,u.anchor,u.result);break}}else if(u.tag!=="!"){if(i.call(u.typeMap[u.kind||"fallback"],u.tag))ne=u.typeMap[u.kind||"fallback"][u.tag];else{ne=null;let _e=u.typeMap.multi[u.kind||"fallback"];for(let Oe=0,z=_e.length;Oe<z;Oe+=1)if(u.tag.slice(0,_e[Oe].tag.length)===_e[Oe].tag){ne=_e[Oe];break}}ne||N(u,"unknown tag !<"+u.tag+">"),u.result!==null&&ne.kind!==u.kind&&N(u,"unacceptable node kind for !<"+u.tag+'> tag; it should be "'+ne.kind+'", not "'+u.kind+'"'),ne.resolve(u.result,u.tag)?(u.result=ne.construct(u.result,u.tag),u.anchor!==null&&ae(u,u.anchor,u.result)):N(u,"cannot resolve a node with !<"+u.tag+"> explicit tag")}return u.listener!==null&&u.listener("close",u),u.depth-=1,u.tag!==null||u.anchor!==null||Q}function mt(u){let R=u.position,$=!1,W;for(u.version=null,u.checkLineBreaks=u.legacy,u.tagMap=Object.create(null),u.anchorMap=Object.create(null);(W=u.input.charCodeAt(u.position))!==0&&(Se(u,!0,-1),W=u.input.charCodeAt(u.position),!(u.lineIndent>0||W!==37));){$=!0,W=u.input.charCodeAt(++u.position);let F=u.position;for(;W!==0&&!w(W);)W=u.input.charCodeAt(++u.position);let ie=u.input.slice(F,u.position),x=[];for(ie.length<1&&N(u,"directive name must not be less than one character in length");W!==0;){for(;S(W);)W=u.input.charCodeAt(++u.position);if(W===35){do W=u.input.charCodeAt(++u.position);while(W!==0&&!g(W));break}if(g(W))break;for(F=u.position;W!==0&&!w(W);)W=u.input.charCodeAt(++u.position);x.push(u.input.slice(F,u.position))}W!==0&&Ue(u),i.call(fe,ie)?fe[ie](u,ie,x):U(u,'unknown document directive "'+ie+'"')}if(Se(u,!0,-1),u.lineIndent===0&&u.input.charCodeAt(u.position)===45&&u.input.charCodeAt(u.position+1)===45&&u.input.charCodeAt(u.position+2)===45?(u.position+=3,Se(u,!0,-1)):$&&N(u,"directives end mark is expected"),Bt(u,u.lineIndent-1,l,!1,!0),Se(u,!0,-1),u.checkLineBreaks&&p.test(u.input.slice(R,u.position))&&U(u,"non-ASCII line breaks are interpreted as content"),u.documents.push(u.result),u.position===u.lineStart&&Ye(u)){u.input.charCodeAt(u.position)===46&&(u.position+=3,Se(u,!0,-1));return}u.position<u.length-1&&N(u,"end of the stream or a document separator is expected")}function Ze(u,R){u=String(u),R=R||{},u.length!==0&&(u.charCodeAt(u.length-1)!==10&&u.charCodeAt(u.length-1)!==13&&(u+=`
|
|
79
|
+
`),u.charCodeAt(0)===65279&&(u=u.slice(1)));let $=new de(u,R),W=u.indexOf("\0");for(W!==-1&&($.position=W,N($,"null byte is not allowed in input")),$.input+="\0";$.input.charCodeAt($.position)===32;)$.lineIndent+=1,$.position+=1;for(;$.position<$.length-1;)mt($);return $.documents}function le(u,R,$){R!==null&&typeof R=="object"&&typeof $>"u"&&($=R,R=null);let W=Ze(u,$);if(typeof R!="function")return W;for(let F=0,ie=W.length;F<ie;F+=1)R(W[F])}function ye(u,R){let $=Ze(u,R);if($.length!==0){if($.length===1)return $[0];throw new t("expected a single document in the stream, but found more")}}return Xp.loadAll=le,Xp.load=ye,Xp}function d6(){if(BA)return ev;BA=1;let e=Mu(),t=Iu(),n=tv(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=65279,a=9,s=10,l=13,c=32,d=33,f=34,m=35,p=37,v=38,b=39,E=42,h=44,g=45,S=58,w=61,C=62,O=63,T=64,D=91,q=93,Z=96,re=123,me=124,he=125,de={};de[0]="\\0",de[7]="\\a",de[8]="\\b",de[9]="\\t",de[10]="\\n",de[11]="\\v",de[12]="\\f",de[13]="\\r",de[27]="\\e",de[34]='\\"',de[92]="\\\\",de[133]="\\N",de[160]="\\_",de[8232]="\\L",de[8233]="\\P";let X=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],N=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function U(x,B){if(B===null)return{};let oe={},Q=Object.keys(B);for(let G=0,ne=Q.length;G<ne;G+=1){let J=Q[G],ge=String(B[J]);J.slice(0,2)==="!!"&&(J="tag:yaml.org,2002:"+J.slice(2));let pe=x.compiledTypeMap.fallback[J];pe&&i.call(pe.styleAliases,ge)&&(ge=pe.styleAliases[ge]),oe[J]=ge}return oe}function ae(x){let B,oe,Q=x.toString(16).toUpperCase();if(x<=255)B="x",oe=2;else if(x<=65535)B="u",oe=4;else if(x<=4294967295)B="U",oe=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+B+e.repeat("0",oe-Q.length)+Q}let j=1,A=2;function I(x){this.schema=x.schema||n,this.indent=Math.max(1,x.indent||2),this.noArrayIndent=x.noArrayIndent||!1,this.skipInvalid=x.skipInvalid||!1,this.flowLevel=e.isNothing(x.flowLevel)?-1:x.flowLevel,this.styleMap=U(this.schema,x.styles||null),this.sortKeys=x.sortKeys||!1,this.lineWidth=x.lineWidth||80,this.noRefs=x.noRefs||!1,this.noCompatMode=x.noCompatMode||!1,this.condenseFlow=x.condenseFlow||!1,this.quotingType=x.quotingType==='"'?A:j,this.forceQuotes=x.forceQuotes||!1,this.replacer=typeof x.replacer=="function"?x.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function L(x,B){let oe=e.repeat(" ",B),Q=0,G="",ne=x.length;for(;Q<ne;){let J,ge=x.indexOf(`
|
|
80
|
+
`,Q);ge===-1?(J=x.slice(Q),Q=ne):(J=x.slice(Q,ge+1),Q=ge+1),J.length&&J!==`
|
|
81
|
+
`&&(G+=oe),G+=J}return G}function K(x,B){return`
|
|
82
|
+
`+e.repeat(" ",x.indent*B)}function fe(x,B){for(let oe=0,Q=x.implicitTypes.length;oe<Q;oe+=1)if(x.implicitTypes[oe].resolve(B))return!0;return!1}function xe(x){return x===c||x===a}function ze(x){return x>=32&&x<=126||x>=161&&x<=55295&&x!==8232&&x!==8233||x>=57344&&x<=65533&&x!==o||x>=65536&&x<=1114111}function we(x){return ze(x)&&x!==o&&x!==l&&x!==s}function Ue(x,B,oe){let Q=we(x),G=Q&&!xe(x);return(oe?Q:Q&&x!==h&&x!==D&&x!==q&&x!==re&&x!==he)&&x!==m&&!(B===S&&!G)||we(B)&&!xe(B)&&x===m||B===S&&G}function Se(x){return ze(x)&&x!==o&&!xe(x)&&x!==g&&x!==O&&x!==S&&x!==h&&x!==D&&x!==q&&x!==re&&x!==he&&x!==m&&x!==v&&x!==E&&x!==d&&x!==me&&x!==w&&x!==C&&x!==b&&x!==f&&x!==p&&x!==T&&x!==Z}function Ye(x){return!xe(x)&&x!==S}function jt(x,B){let oe=x.charCodeAt(B),Q;return oe>=55296&&oe<=56319&&B+1<x.length&&(Q=x.charCodeAt(B+1),Q>=56320&&Q<=57343)?(oe-55296)*1024+Q-56320+65536:oe}function te(x){return/^\n* /.test(x)}let Ie=1,ke=2,Qe=3,be=4,lt=5;function Ee(x,B,oe,Q,G,ne,J,ge){let pe,_e=0,Oe=null,z=!1,ve=!1,Be=Q!==-1,Ve=-1,dn=Se(jt(x,0))&&Ye(jt(x,x.length-1));if(B||J)for(pe=0;pe<x.length;_e>=65536?pe+=2:pe++){if(_e=jt(x,pe),!ze(_e))return lt;dn=dn&&Ue(_e,Oe,ge),Oe=_e}else{for(pe=0;pe<x.length;_e>=65536?pe+=2:pe++){if(_e=jt(x,pe),_e===s)z=!0,Be&&(ve=ve||pe-Ve-1>Q&&x[Ve+1]!==" ",Ve=pe);else if(!ze(_e))return lt;dn=dn&&Ue(_e,Oe,ge),Oe=_e}ve=ve||Be&&pe-Ve-1>Q&&x[Ve+1]!==" "}return!z&&!ve?dn&&!J&&!G(x)?Ie:ne===A?lt:ke:oe>9&&te(x)?lt:J?ne===A?lt:ke:ve?be:Qe}function Yt(x,B,oe,Q,G){x.dump=(function(){if(B.length===0)return x.quotingType===A?'""':"''";if(!x.noCompatMode&&(X.indexOf(B)!==-1||N.test(B)))return x.quotingType===A?'"'+B+'"':"'"+B+"'";let ne=x.indent*Math.max(1,oe),J=x.lineWidth===-1?-1:Math.max(Math.min(x.lineWidth,40),x.lineWidth-ne),ge=Q||x.flowLevel>-1&&oe>=x.flowLevel;function pe(_e){return fe(x,_e)}switch(Ee(B,ge,x.indent,J,pe,x.quotingType,x.forceQuotes&&!Q,G)){case Ie:return B;case ke:return"'"+B.replace(/'/g,"''")+"'";case Qe:return"|"+Ot(B,x.indent)+Ge(L(B,ne));case be:return">"+Ot(B,x.indent)+Ge(L(Dn(B,J),ne));case lt:return'"'+mt(B)+'"';default:throw new t("impossible error: invalid scalar style")}})()}function Ot(x,B){let oe=te(x)?String(B):"",Q=x[x.length-1]===`
|
|
83
|
+
`,ne=Q&&(x[x.length-2]===`
|
|
84
|
+
`||x===`
|
|
85
|
+
`)?"+":Q?"":"-";return oe+ne+`
|
|
86
|
+
`}function Ge(x){return x[x.length-1]===`
|
|
87
|
+
`?x.slice(0,-1):x}function Dn(x,B){let oe=/(\n+)([^\n]*)/g,Q=(function(){let ge=x.indexOf(`
|
|
88
|
+
`);return ge=ge!==-1?ge:x.length,oe.lastIndex=ge,Bt(x.slice(0,ge),B)})(),G=x[0]===`
|
|
89
|
+
`||x[0]===" ",ne,J;for(;J=oe.exec(x);){let ge=J[1],pe=J[2];ne=pe[0]===" ",Q+=ge+(!G&&!ne&&pe!==""?`
|
|
90
|
+
`:"")+Bt(pe,B),G=ne}return Q}function Bt(x,B){if(x===""||x[0]===" ")return x;let oe=/ [^ ]/g,Q,G=0,ne,J=0,ge=0,pe="";for(;Q=oe.exec(x);)ge=Q.index,ge-G>B&&(ne=J>G?J:ge,pe+=`
|
|
91
|
+
`+x.slice(G,ne),G=ne+1),J=ge;return pe+=`
|
|
92
|
+
`,x.length-G>B&&J>G?pe+=x.slice(G,J)+`
|
|
93
|
+
`+x.slice(J+1):pe+=x.slice(G),pe.slice(1)}function mt(x){let B="",oe=0;for(let Q=0;Q<x.length;oe>=65536?Q+=2:Q++){oe=jt(x,Q);let G=de[oe];!G&&ze(oe)?(B+=x[Q],oe>=65536&&(B+=x[Q+1])):B+=G||ae(oe)}return B}function Ze(x,B,oe){let Q="",G=x.tag;for(let ne=0,J=oe.length;ne<J;ne+=1){let ge=oe[ne];x.replacer&&(ge=x.replacer.call(oe,String(ne),ge)),($(x,B,ge,!1,!1)||typeof ge>"u"&&$(x,B,null,!1,!1))&&(Q!==""&&(Q+=","+(x.condenseFlow?"":" ")),Q+=x.dump)}x.tag=G,x.dump="["+Q+"]"}function le(x,B,oe,Q){let G="",ne=x.tag;for(let J=0,ge=oe.length;J<ge;J+=1){let pe=oe[J];x.replacer&&(pe=x.replacer.call(oe,String(J),pe)),($(x,B+1,pe,!0,!0,!1,!0)||typeof pe>"u"&&$(x,B+1,null,!0,!0,!1,!0))&&((!Q||G!=="")&&(G+=K(x,B)),x.dump&&s===x.dump.charCodeAt(0)?G+="-":G+="- ",G+=x.dump)}x.tag=ne,x.dump=G||"[]"}function ye(x,B,oe){let Q="",G=x.tag,ne=Object.keys(oe);for(let J=0,ge=ne.length;J<ge;J+=1){let pe="";Q!==""&&(pe+=", "),x.condenseFlow&&(pe+='"');let _e=ne[J],Oe=oe[_e];x.replacer&&(Oe=x.replacer.call(oe,_e,Oe)),$(x,B,_e,!1,!1)&&(x.dump.length>1024&&(pe+="? "),pe+=x.dump+(x.condenseFlow?'"':"")+":"+(x.condenseFlow?"":" "),$(x,B,Oe,!1,!1)&&(pe+=x.dump,Q+=pe))}x.tag=G,x.dump="{"+Q+"}"}function u(x,B,oe,Q){let G="",ne=x.tag,J=Object.keys(oe);if(x.sortKeys===!0)J.sort();else if(typeof x.sortKeys=="function")J.sort(x.sortKeys);else if(x.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let ge=0,pe=J.length;ge<pe;ge+=1){let _e="";(!Q||G!=="")&&(_e+=K(x,B));let Oe=J[ge],z=oe[Oe];if(x.replacer&&(z=x.replacer.call(oe,Oe,z)),!$(x,B+1,Oe,!0,!0,!0))continue;let ve=x.tag!==null&&x.tag!=="?"||x.dump&&x.dump.length>1024;ve&&(x.dump&&s===x.dump.charCodeAt(0)?_e+="?":_e+="? "),_e+=x.dump,ve&&(_e+=K(x,B)),$(x,B+1,z,!0,ve)&&(x.dump&&s===x.dump.charCodeAt(0)?_e+=":":_e+=": ",_e+=x.dump,G+=_e)}x.tag=ne,x.dump=G||"{}"}function R(x,B,oe){let Q=oe?x.explicitTypes:x.implicitTypes;for(let G=0,ne=Q.length;G<ne;G+=1){let J=Q[G];if((J.instanceOf||J.predicate)&&(!J.instanceOf||typeof B=="object"&&B instanceof J.instanceOf)&&(!J.predicate||J.predicate(B))){if(oe?J.multi&&J.representName?x.tag=J.representName(B):x.tag=J.tag:x.tag="?",J.represent){let ge=x.styleMap[J.tag]||J.defaultStyle,pe;if(r.call(J.represent)==="[object Function]")pe=J.represent(B,ge);else if(i.call(J.represent,ge))pe=J.represent[ge](B,ge);else throw new t("!<"+J.tag+'> tag resolver accepts not "'+ge+'" style');x.dump=pe}return!0}}return!1}function $(x,B,oe,Q,G,ne,J){x.tag=null,x.dump=oe,R(x,oe,!1)||R(x,oe,!0);let ge=r.call(x.dump),pe=Q;Q&&(Q=x.flowLevel<0||x.flowLevel>B);let _e=ge==="[object Object]"||ge==="[object Array]",Oe,z;if(_e&&(Oe=x.duplicates.indexOf(oe),z=Oe!==-1),(x.tag!==null&&x.tag!=="?"||z||x.indent!==2&&B>0)&&(G=!1),z&&x.usedDuplicates[Oe])x.dump="*ref_"+Oe;else{if(_e&&z&&!x.usedDuplicates[Oe]&&(x.usedDuplicates[Oe]=!0),ge==="[object Object]")Q&&Object.keys(x.dump).length!==0?(u(x,B,x.dump,G),z&&(x.dump="&ref_"+Oe+x.dump)):(ye(x,B,x.dump),z&&(x.dump="&ref_"+Oe+" "+x.dump));else if(ge==="[object Array]")Q&&x.dump.length!==0?(x.noArrayIndent&&!J&&B>0?le(x,B-1,x.dump,G):le(x,B,x.dump,G),z&&(x.dump="&ref_"+Oe+x.dump)):(Ze(x,B,x.dump),z&&(x.dump="&ref_"+Oe+" "+x.dump));else if(ge==="[object String]")x.tag!=="?"&&Yt(x,x.dump,B,ne,pe);else{if(ge==="[object Undefined]")return!1;if(x.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+ge)}if(x.tag!==null&&x.tag!=="?"){let ve=encodeURI(x.tag[0]==="!"?x.tag.slice(1):x.tag).replace(/!/g,"%21");x.tag[0]==="!"?ve="!"+ve:ve.slice(0,18)==="tag:yaml.org,2002:"?ve="!!"+ve.slice(18):ve="!<"+ve+">",x.dump=ve+" "+x.dump}}return!0}function W(x,B){let oe=[],Q=[];F(x,oe,Q);let G=Q.length;for(let ne=0;ne<G;ne+=1)B.duplicates.push(oe[Q[ne]]);B.usedDuplicates=new Array(G)}function F(x,B,oe){if(x!==null&&typeof x=="object"){let Q=B.indexOf(x);if(Q!==-1)oe.indexOf(Q)===-1&&oe.push(Q);else if(B.push(x),Array.isArray(x))for(let G=0,ne=x.length;G<ne;G+=1)F(x[G],B,oe);else{let G=Object.keys(x);for(let ne=0,J=G.length;ne<J;ne+=1)F(x[G[ne]],B,oe)}}}function ie(x,B){B=B||{};let oe=new I(B);oe.noRefs||W(x,oe);let Q=x;return oe.replacer&&(Q=oe.replacer.call({"":Q},"",Q)),$(oe,0,Q,!0,!0)?oe.dump+`
|
|
94
|
+
`:""}return ev.dump=ie,ev}function f6(){if(PA)return Xn;PA=1;let e=u6(),t=d6();function n(r,i){return function(){throw new Error("Function yaml."+r+" is removed in js-yaml 4. Use yaml."+i+" instead, which is now safe by default.")}}return Xn.Type=or(),Xn.Schema=zA(),Xn.FAILSAFE_SCHEMA=jA(),Xn.JSON_SCHEMA=WA(),Xn.CORE_SCHEMA=YA(),Xn.DEFAULT_SCHEMA=tv(),Xn.load=e.load,Xn.loadAll=e.loadAll,Xn.dump=t.dump,Xn.YAMLException=Iu(),Xn.types={binary:QA(),float:KA(),map:HA(),null:FA(),pairs:JA(),set:eR(),timestamp:VA(),bool:qA(),int:GA(),merge:XA(),omap:ZA(),seq:$A(),str:UA()},Xn.safeLoad=n("safeLoad","load"),Xn.safeLoadAll=n("safeLoadAll","loadAll"),Xn.safeDump=n("safeDump","dump"),Xn}var Xn,Xp,ba,pA,I0,mA,L0,gA,D0,hA,B0,yA,P0,bA,z0,vA,U0,xA,$0,SA,H0,EA,j0,wA,F0,_A,q0,TA,G0,NA,K0,kA,W0,AA,Y0,RA,V0,OA,X0,CA,Q0,MA,Z0,IA,J0,LA,DA,ev,BA,PA,p6,m6,pY,mY,gY,hY,yY,bY,g6,vY,xY,SY,EY,wY,_Y,TY,tR=V(()=>{"use strict";Xn={},Xp={},ba={};ev={};p6=f6(),m6=l6(p6),{Type:pY,Schema:mY,FAILSAFE_SCHEMA:gY,JSON_SCHEMA:hY,CORE_SCHEMA:yY,DEFAULT_SCHEMA:bY,load:g6,loadAll:vY,dump:xY,YAMLException:SY,types:EY,safeLoad:wY,safeLoadAll:_Y,safeDump:TY}=m6});var ho=V(()=>{"use strict";is();tR();wp()});var Qp=V(()=>{"use strict";is()});var nR=V(()=>{"use strict";is();Qp()});var nv=V(()=>{"use strict"});var rR=V(()=>{"use strict";is();Qp();nv()});function Ln(e){return!!e&&typeof e=="object"&&typeof e.$ref=="string"}function Pl(e){let t=e.split("/");return iR(t[t.length-1]??e)}function iR(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function rv(e,t){if(!t.startsWith("#/"))return;let n=e;for(let r of t.slice(2).split("/")){if(n===null||typeof n!="object")return;n=n[iR(r)]}return n}function Jt(e,t){let n=t;for(let r=0;r<16&&Ln(n);r++)n=rv(e,n.$ref);if(!Ln(n))return n}var yo=V(()=>{"use strict"});function ri(e,t,n=0,r=new Set){if(!t||n>v6)return null;if(Ln(t)){if(r.has(t.$ref))return null;let o=Jt(e,t);return o?ri(e,o,n,new Set([...r,t.$ref])):null}if(t.example!==void 0)return t.example;if(Array.isArray(t.examples)&&t.examples.length>0)return t.examples[0];if(t.const!==void 0)return t.const;if(t.default!==void 0)return t.default;if(Array.isArray(t.enum)&&t.enum.length>0)return t.enum[0];if(t.allOf?.length){let o={};for(let a of t.allOf){let s=ri(e,a,n+1,r);s&&typeof s=="object"&&!Array.isArray(s)&&Object.assign(o,s)}for(let[a,s]of Object.entries(t.properties??{}))o[a]=ri(e,s,n+1,r);return o}if(t.oneOf?.length)return ri(e,t.oneOf[0],n+1,r);if(t.anyOf?.length)return ri(e,t.anyOf[0],n+1,r);let i=Array.isArray(t.type)?t.type.find(o=>o!=="null")??t.type[0]:t.type;switch(i){case"object":case void 0:{if(!t.properties&&i===void 0&&!t.items&&!t.additionalProperties)return null;let o={};for(let[a,s]of Object.entries(t.properties??{}))o[a]=ri(e,s,n+1,r);return Object.keys(o).length===0&&t.additionalProperties&&typeof t.additionalProperties=="object"&&(o.key=ri(e,t.additionalProperties,n+1,r)),o}case"array":return[ri(e,t.items,n+1,r)];case"string":return x6(t);case"integer":return t.minimum??1;case"number":return t.minimum??1.5;case"boolean":return!0;case"null":return null;default:return null}}function x6(e){switch(e.format){case"date-time":return"2026-01-15T09:30:00Z";case"date":return"2026-01-15";case"time":return"09:30:00Z";case"email":return"user@example.com";case"uuid":return"3fa85f64-5717-4562-b3fc-2c963f66afa6";case"uri":case"url":return"https://example.com";case"hostname":return"example.com";case"ipv4":return"192.168.1.1";case"ipv6":return"2001:db8::1";case"byte":return"U3dhZ2dlcg==";case"binary":return"<binary data>";case"password":return"********";default:return e.pattern?`<matches ${e.pattern}>`:"string"}}function ii(e){if(!e)return null;let t=Object.keys(e);if(t.length===0)return null;let n=t.find(r=>r.includes("json"))??t[0];return{mediaType:n,media:e[n]}}function bo(e,t){if(t){if(t.example!==void 0)return t.example;if(t.examples){let n=Object.values(t.examples)[0],r=Ln(n)?Jt(e,n):n;if(r&&r.value!==void 0)return r.value}if(t.schema)return ri(e,t.schema)}}var v6,zl=V(()=>{"use strict";yo();v6=6});function Lu(e,t){let n=t.security??e.security??[],r=e.components?.securitySchemes??{},i=[],o=new Set;for(let a of n)for(let s of Object.keys(a??{})){if(o.has(s))continue;o.add(s);let l=r[s];if(!l||typeof l!="object")continue;let c=a[s];i.push({schemeName:s,scheme:l,scopes:Array.isArray(c)?c:[],...S6(l)})}return i}function S6(e){if(e.type==="http"){let t=(e.scheme??"").toLowerCase();return t==="basic"?{kind:"basic"}:t==="bearer"||t==="jwt"||e.bearerFormat?{kind:"bearer"}:{kind:"other"}}if(e.type==="apiKey"){let t=e.name??"X-API-Key";return e.in==="query"?{kind:"apiKeyQuery",paramName:t}:e.in==="cookie"?{kind:"apiKeyCookie",paramName:t}:{kind:"apiKeyHeader",paramName:t}}return e.type==="oauth2"||e.type==="openIdConnect"?{kind:"oauth2"}:{kind:"other"}}function Zp(e){let t=e.scheme??"",n=t.toLowerCase();return n==="basic"?"Basic":n==="jwt"?"JWT":n==="bearer"?e.bearerFormat?.toLowerCase()==="jwt"?"JWT":"Bearer":t||"Bearer"}function Du(e,t){let n=t.trim();return n?/^[A-Za-z][A-Za-z0-9._-]*\s+\S/.test(n)?n:`${e} ${n}`:""}function va(e){let t=e["x-defaultAccessToken"];return typeof t=="string"&&t.trim()?t.trim():e.type==="apiKey"?E6:w6}function iv(e){return Du(Zp(e),va(e))}function oR(e){return/[:_]/.test(e)||e===e.toLowerCase()&&!/\s/.test(e)}function ov(e,t){for(let n of Object.values(e.flows??{})){let r=n.scopes?.[t];if(r)return r}}function aR(e,t){let n=ov(e,t);return n&&oR(t)?n:oR(t)?t.replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase()):t}function Jp(e){let t=new Set,n=[];for(let r of e)for(let i of r.scopes)t.has(i)||(t.add(i),n.push({key:i,label:aR(r.scheme,i),description:ov(r.scheme,i)}));return n}var E6,w6,Bu=V(()=>{"use strict";E6="YOUR_API_KEY_HERE",w6="YOUR_ACCESS_TOKEN_HERE"});function av(e,t){if(t.example!==void 0)return String(t.example);let n=ri(e,t.schema);return n==null?`<${t.name??"value"}>`:typeof n=="object"?JSON.stringify(n):String(n)}function Ul(e,t,n){let r=new Map;for(let i of[...t.parameters??[],...n.parameters??[]]){let o=Jt(e,i);o?.name&&r.set(`${o.in}:${o.name}`,o)}return[...r.values()]}function sv(e,t,n,r,i){let o=(i.servers?.[0]?.url??r.servers?.[0]?.url??e.servers?.[0]?.url??"https://api.example.com").replace(/\/+$/,""),a=Ul(e,r,i),s=n;for(let b of a.filter(E=>E.in==="path"))s=s.replaceAll(`{${b.name}}`,encodeURIComponent(av(e,b)));let c=a.filter(b=>b.in==="query").filter((b,E)=>b.required||E<2).map(b=>({name:b.name,value:av(e,b),required:b.required===!0})),d=[];for(let b of Lu(e,i))b.kind==="bearer"||b.kind==="oauth2"?d.push({name:"Authorization",value:iv(b.scheme)}):b.kind==="basic"?d.push({name:"Authorization",value:"Basic <credentials>"}):b.kind==="apiKeyHeader"?d.push({name:b.paramName,value:va(b.scheme)}):b.kind==="apiKeyQuery"&&c.push({name:b.paramName,value:va(b.scheme),required:!0});for(let b of a.filter(E=>E.in==="header"&&E.required))d.push({name:b.name,value:av(e,b)});let f,m,p=Jt(e,i.requestBody),v=ii(p?.content);return v&&(m=v.mediaType,f=bo(e,v.media),d.push({name:"Content-Type",value:v.mediaType})),{method:t.toUpperCase(),baseUrl:o,path:n,filledPath:s,headers:d,queryParams:c,body:f,contentType:m}}var lv=V(()=>{"use strict";yo();zl();Bu()});function cv(e,t,n=new Set){if(!t)return"any";if(Ln(t)){let r=Jt(e,t),i=Pl(t.$ref);return!r||n.has(t.$ref)?i:cv(e,r,new Set([...n,t.$ref]))}return t.oneOf?.length?`oneOf(${t.oneOf.length})`:t.anyOf?.length?`anyOf(${t.anyOf.length})`:t.allOf?.length?"object":t.type==="array"?`array<${cv(e,t.items,n)}>`:Array.isArray(t.type)?t.type.join(" | "):t.format?`${t.type??"any"}(${t.format})`:t.type??"object"}function sR(e){return e.replace(/\|/g,"\\|").replace(/\n+/g," ").trim()}function _6(e,t,n){if(t.length===0)return"";let r=t.map(i=>{let o=Ln(i.schema)?Jt(e,i.schema):i.schema,a=sR(i.description??o?.description??"");return`| \`${i.name}\` | ${sR(cv(e,i.schema))} | ${i.required?"yes":""} | ${a} |`});return[`## ${n}`,"","| Name | Type | Required | Description |","| --- | --- | --- | --- |",...r,""].join(`
|
|
95
|
+
`)}function lR(e){try{return"```json\n"+JSON.stringify(e,null,2)+"\n```\n"}catch{return""}}function uv(e,t,n,r,i,o){let a=i.summary?.trim()||`${t.toUpperCase()} ${n}`,s=Ul(e,r,i),l=[`# ${a}`,"",`\`${t.toUpperCase()}\` \`${n}\``,""];o&&l.push(`Tag: ${o}`,""),i.deprecated&&l.push("> **Deprecated**",""),i.description?.trim()&&l.push(i.description.trim(),"");for(let[m,p]of[["path","Path parameters"],["query","Query parameters"],["header","Headers"],["cookie","Cookies"]]){let v=_6(e,s.filter(b=>b.in===m),p);v&&l.push(v)}let c=Jt(e,i.requestBody),d=ii(c?.content);if(c&&d){l.push("## Request body",""),l.push(`Content-Type: \`${d.mediaType}\`${c.required?" (required)":""}`,""),c.description?.trim()&&l.push(c.description.trim(),"");let m=bo(e,d.media);m!==void 0&&l.push(lR(m))}let f=Object.entries(i.responses??{}).map(([m,p])=>({status:m,response:Jt(e,p)})).filter(m=>!!m.response).sort((m,p)=>m.status.localeCompare(p.status));if(f.length>0){l.push("## Responses","");for(let{status:m,response:p}of f){l.push(`### ${m}`,""),p.description?.trim()&&l.push(p.description.trim(),"");let v=ii(p.content);if(v){l.push(`Content-Type: \`${v.mediaType}\``,"");let b=bo(e,v.media);b!==void 0&&l.push(lR(b))}}}return l.join(`
|
|
96
|
+
`).trim()+`
|
|
97
|
+
`}function dv(e,t,n="API Reference",r={}){let{showAuth:i=!0,showEndpoints:o=!0}=r,a=e.info??{},l=[`# ${a.title?.trim()||n}`,""];a.version&&l.push(`Version: \`${a.version}\``,""),a.description?.trim()&&l.push(a.description.trim(),"");let c=i?Object.entries(e.components?.securitySchemes??{}):[];if(c.length>0){l.push("## Security","");for(let[d,f]of c){let m=[f?.type,f?.scheme,f?.in?`in ${f.in}`:null,f?.name].filter(Boolean).join(" \xB7 ");l.push(`- **${d}**${m?` \u2014 ${m}`:""}`),f?.description?.trim()&&l.push(` ${f.description.trim()}`)}l.push("")}if(o&&t.length>0){l.push("## Endpoints","");for(let d of t){l.push(`### ${d.tag}`,"");for(let f of d.items){let m=f.summary?.trim()||f.path;l.push(`- \`${f.method.toUpperCase()}\` \`${f.path}\` \u2014 ${m}`)}l.push("")}}return l.join(`
|
|
98
|
+
`).trim()+`
|
|
99
|
+
`}var em=V(()=>{"use strict";yo();zl();lv()});function tm(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"untitled"}var fv=V(()=>{"use strict"});function mv(e,t,n){let r=e.paths?.[n];if(!r||typeof r!="object")return null;let i=r[t];return!i||typeof i!="object"?null:{pathItem:r,op:i}}var cR=V(()=>{"use strict";ho();fv();ul()});var uR=V(()=>{"use strict";is();wp();ho();yo();Bu()});var pV,dR=V(()=>{"use strict";ho();pV=48*1024*1024});var fR=V(()=>{"use strict"});var gv=V(()=>{"use strict";is();ho();yo();Qp();fR()});var pR=V(()=>{"use strict";ho();gv()});var mR=V(()=>{"use strict";ho()});var gR=V(()=>{"use strict";ho();yo();zl()});var xa=V(()=>{"use strict";wp();ho();nR();rR();nv();em();fv();yo();cR();zl();uR();dR();Bu();gv();pR();mR();gR()});function hi(e){let t=typeof e=="number"?e:Number.parseInt(String(e),10);return Number.isFinite(t)?t<300?"var(--success)":t<400?"var(--warning)":t<500?"var(--attn-accent)":"var(--danger)":"var(--text-muted)"}var lm=V(()=>{"use strict"});function GR({size:e=16}){return(0,tn.jsxs)("svg",{width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 12a9 9 0 109-9 9.75 9.75 0 00-6.74 2.74L3 8"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v5h5"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 1.5"})]})}function cm({size:e=15}){return(0,tn.jsxs)("svg",{width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 6h18"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 11v6M14 11v6"})]})}function KR({size:e=14}){return(0,tn.jsxs)("svg",{width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 4V2M15 16v-2M8 9h2M20 9h2M18.36 5.64l1.42-1.42M18.36 12.36l1.42 1.42M11.64 5.64L10.22 4.22"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15l-6.5 6.5a1 1 0 001.4 1.4L10.5 16.3"}),(0,tn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.5 9.5l-4 4"})]})}function um({size:e=14}){return(0,tn.jsxs)("svg",{width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,tn.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,tn.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,tn.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,tn.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function WR({size:e=14}){return(0,tn.jsxs)("svg",{width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,tn.jsx)("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"}),(0,tn.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}var tn,dm=V(()=>{"use strict";tn=M(Y())});function fm(e,t,n=3){if(!e||!e.includes("{{"))return e;let r=new Map(t.map(o=>[o.name,o.value??""])),i=e;for(let o=0;o<n;o++){let a=i.replace(Y6,(s,l)=>r.has(l)?r.get(l):s);if(a===i)break;i=a}return i}function X6(e){return V6+e.replace(/[^a-z0-9]+/gi,"-").toLowerCase().slice(0,80)}function Lv(){return Math.random().toString(36).slice(2,10)}function YR(e,t){if(t)return t;try{return new URL(e).host||e}catch{return e||"Default"}}function Q6(e,t){let n=()=>t.map(i=>({name:i.paramName,value:"",secret:!0})),r=e.filter(i=>i.url).map(i=>({id:Lv(),name:YR(i.url,i.description),server:i.url,inputs:n()}));return r.length===0&&r.push({id:Lv(),name:"Default",server:"",inputs:n()}),{environments:r,activeId:r[0].id}}function Z6(e,t,n){if(!e||typeof e!="object")return null;let r=e;if(!Array.isArray(r.environments)||r.environments.length===0)return null;let i=new Set(n.map(s=>s.paramName)),o=r.environments.filter(s=>!!s&&typeof s.id=="string"&&typeof s.server=="string").map(s=>{let l=new Map((s.inputs??[]).map(d=>[d.name,d])),c=n.map(d=>l.get(d.paramName)??{name:d.paramName,value:"",secret:!0});for(let d of s.inputs??[])!i.has(d.name)&&d.name.trim()&&c.push({name:d.name,value:d.value??"",secret:!!d.secret});return{id:s.id,name:s.name||YR(s.server),server:s.server,inputs:c}});if(o.length===0)return null;let a=o.some(s=>s.id===r.activeId)?r.activeId:o[0].id;return{environments:o,activeId:a}}function VR(e,t,n){let r=X6(e),[i,o]=(0,oi.useState)(()=>{let v=Q6(t,n);if(typeof window>"u")return v;try{let b=window.localStorage.getItem(r);if(b){let E=Z6(JSON.parse(b),t,n);if(E)return E}}catch{}return v});(0,oi.useEffect)(()=>{try{window.localStorage.setItem(r,JSON.stringify(i))}catch{}},[r,i]);let a=i.environments.find(v=>v.id===i.activeId)??i.environments[0],s=(0,oi.useCallback)(v=>{o(b=>({...b,activeId:v}))},[]),l=(0,oi.useCallback)((v,b)=>{o(E=>({...E,environments:E.environments.map(h=>h.id===v?{...h,...b}:h)}))},[]),c=(0,oi.useCallback)((v,b,E)=>{o(h=>({...h,environments:h.environments.map(g=>{if(g.id!==v)return g;let w=g.inputs.some(C=>C.name===b)?g.inputs.map(C=>C.name===b?{...C,...E}:C):[...g.inputs,{name:b,value:"",secret:!1,...E}];return{...g,inputs:w}})}))},[]),d=(0,oi.useCallback)((v,b)=>{let E=b.trim();E&&o(h=>({...h,environments:h.environments.map(g=>g.id===v&&!g.inputs.some(S=>S.name===E)?{...g,inputs:[...g.inputs,{name:E,value:"",secret:!1}]}:g)}))},[]),f=(0,oi.useCallback)((v,b)=>{o(E=>({...E,environments:E.environments.map(h=>h.id===v?{...h,inputs:h.inputs.filter(g=>g.name!==b)}:h)}))},[]),m=(0,oi.useCallback)(v=>{let b=Lv();return o(E=>{let g=(E.environments.find(w=>w.id===E.activeId)?.inputs??[]).map(w=>({name:w.name,value:"",secret:w.secret})),S={id:b,name:v.trim()||`Environment ${E.environments.length+1}`,server:"",inputs:g};return{environments:[...E.environments,S],activeId:b}}),b},[]),p=(0,oi.useCallback)(v=>{o(b=>{if(b.environments.length<=1)return b;let E=b.environments.filter(g=>g.id!==v),h=b.activeId===v?E[0].id:b.activeId;return{environments:E,activeId:h}})},[]);return{state:i,active:a,setActive:s,updateEnv:l,setInput:c,addInput:d,removeInput:f,addEnvironment:m,removeEnvironment:p}}var oi,Y6,V6,Dv=V(()=>{"use strict";"use client";oi=M(Me()),Y6=/\{\{\s*([\w.-]+)\s*\}\}/g;V6="docmind.tryit.env."});function Bv(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function J6(e){let t=[],n=new RegExp(QR.source,"g"),r;for(;(r=n.exec(e))!==null;)t.push({start:r.index,end:r.index+r[0].length,name:r[1],raw:r[0]});return t}function ZR(e,t){for(let n of J6(e))if(t>=n.start&&t<n.end)return n;return null}function e5(e){let t=getComputedStyle(e);return`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`}function pm(e,t){let r=document.createElement("canvas").getContext("2d");return r?(r.font=e5(e),r.measureText(t).width):0}function t5(e,t){let n=getComputedStyle(e),r=Number.parseFloat(n.paddingLeft)||0,i=t-e.getBoundingClientRect().left+e.scrollLeft-r,o=e.value;if(i<=0)return 0;for(let a=0;a<=o.length;a++)if(pm(e,o.slice(0,a))>i)return Math.max(0,a-1);return o.length}function JR(e,t,n,r=0){let i=getComputedStyle(e),o=Number.parseFloat(i.paddingLeft)||0,a=Number.parseFloat(i.paddingTop)||0,s=e.getBoundingClientRect(),l=s.left+o+pm(e,n.slice(0,t.start))-r,c=s.left+o+pm(e,n.slice(0,t.end))-r,d=Number.parseFloat(i.paddingBottom)||0;return new DOMRect(l,s.top+a,Math.max(c-l,24),s.height-a-d)}function eO(e,t){if(!e)return"";let n=0,r="",i=new RegExp(QR.source,"g"),o;for(;(o=i.exec(e))!==null;){r+=Bv(e.slice(n,o.index));let a=o[1],l=t.some(c=>c.name===a)?"tryit-env-var-resolved":"tryit-env-var-unknown";r+=`<span class="${l}">${Bv(o[0])}</span>`,n=o.index+o[0].length}return r+=Bv(e.slice(n)),r}function tO({token:e,anchor:t,inputMeta:n,onChange:r,onClose:i,onMouseEnter:o,onMouseLeave:a}){let s=(0,Lt.useRef)(null),[l,c]=(0,Lt.useState)(n?.value??""),[d,f]=(0,Lt.useState)(!n?.secret),m=n?.secret??!1;(0,Lt.useEffect)(()=>{c(n?.value??"")},[n?.value,e.name]),(0,Lt.useEffect)(()=>{let E=h=>{s.current?.contains(h.target)||i()};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[i]);let p=E=>{c(E),r(E)},v=Math.min(t.left,globalThis.innerWidth-280),b=t.bottom+6;return(0,XR.createPortal)((0,_t.jsxs)("div",{ref:s,className:"tryit-env-popover",style:{top:b,left:v},onMouseDown:E=>E.stopPropagation(),onMouseEnter:o,onMouseLeave:a,children:[(0,_t.jsxs)("div",{className:"tryit-env-popover-head",children:[(0,_t.jsx)("span",{className:"tryit-env-popover-name",children:e.raw}),!n&&(0,_t.jsx)("span",{className:"tryit-env-popover-missing",children:"Not defined in environment"})]}),n?(0,_t.jsxs)("div",{className:"tryit-env-popover-row",children:[(0,_t.jsx)("input",{className:"tryit-env-popover-input",type:m&&!d?"password":"text",value:l,onChange:E=>p(E.target.value),placeholder:"Value",autoFocus:!0,spellCheck:!1,autoComplete:"off"}),m&&(0,_t.jsx)("button",{type:"button",className:"tryit-env-popover-eye","aria-label":d?"Hide value":"Show value",onClick:()=>f(E=>!E),children:d?"Hide":"Show"})]}):(0,_t.jsxs)("p",{className:"tryit-env-popover-hint",children:["Add ",(0,_t.jsx)("code",{children:e.name})," in the environment manager."]})]}),document.body)}function vo({value:e,onChange:t,inputs:n,onInputChange:r,highlight:i=!0,inputClassName:o="tryit-input",className:a,disabled:s,placeholder:l,...c}){let d=(0,Lt.useRef)(null),f=(0,Lt.useRef)(null),m=(0,Lt.useRef)(null),[p,v]=(0,Lt.useState)(null),b=(0,Lt.useRef)(null),E=(0,Lt.useMemo)(()=>eO(e,n),[e,n]),h=()=>{b.current&&(clearTimeout(b.current),b.current=null)},g=()=>{h(),b.current=setTimeout(()=>v(null),120)},S=(0,Lt.useCallback)(C=>{let O=f.current;if(!O||s)return;let T=t5(O,C),D=ZR(e,T);if(!D){g();return}h(),v({token:D,anchor:JR(O,D,e,O.scrollLeft)})},[e,s]);(0,Lt.useEffect)(()=>()=>h(),[]);let w=p?n.find(C=>C.name===p.token.name):void 0;return i?(0,_t.jsxs)("div",{ref:d,className:`tryit-env-input-wrap${a?` ${a}`:""}`,onMouseMove:C=>S(C.clientX),onMouseLeave:()=>g(),children:[(0,_t.jsx)("div",{ref:m,className:`tryit-env-input-mirror ${o}`,"aria-hidden":!0,dangerouslySetInnerHTML:{__html:E}}),(0,_t.jsx)("input",{...c,ref:f,className:`tryit-env-input-field ${o}`,value:e,onChange:C=>t(C.target.value),onScroll:C=>{let O=m.current;O&&(O.scrollLeft=C.currentTarget.scrollLeft)},placeholder:l,disabled:s,spellCheck:!1,autoComplete:"off"}),p&&r&&(0,_t.jsx)(tO,{token:p.token,anchor:p.anchor,inputMeta:w,onChange:C=>r(p.token.name,C),onClose:()=>v(null),onMouseEnter:h,onMouseLeave:g})]}):(0,_t.jsx)("input",{...c,className:`${o}${a?` ${a}`:""}`,value:e,onChange:C=>t(C.target.value),placeholder:l,disabled:s,spellCheck:!1,autoComplete:"off"})}function $u({value:e,onChange:t,inputs:n,onInputChange:r,placeholder:i,inputClassName:o="tryit-input"}){let[a,s]=(0,Lt.useState)(!1);return(0,_t.jsxs)("div",{className:"tryit-sec-secret",children:[(0,_t.jsx)(vo,{value:e,onChange:t,inputs:n,onInputChange:r,highlight:a,inputClassName:o,placeholder:i,type:a?"text":"password",className:"tryit-env-input-wrap-secret"}),(0,_t.jsx)("button",{type:"button",className:"tryit-sec-eye","aria-label":a?"Hide value":"Show value",onClick:()=>s(l=>!l),children:a?(0,_t.jsxs)("svg",{width:"15",height:"15",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,_t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"}),(0,_t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M1 1l22 22"})]}):(0,_t.jsxs)("svg",{width:"15",height:"15",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,_t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,_t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]})}function nO({value:e,onChange:t,inputs:n,onInputChange:r,className:i,placeholder:o}){let a=(0,Lt.useRef)(null),s=(0,Lt.useRef)(null),[l,c]=(0,Lt.useState)(null),d=(0,Lt.useRef)(null),f=(0,Lt.useMemo)(()=>eO(`${e||""}
|
|
100
|
+
`,n),[e,n]),m=()=>{d.current&&(clearTimeout(d.current),d.current=null)},p=()=>{m(),d.current=setTimeout(()=>c(null),120)},v=(0,Lt.useCallback)((E,h)=>{let g=s.current;if(!g)return;let S=getComputedStyle(g),w=Number.parseFloat(S.paddingLeft)||0,C=Number.parseFloat(S.paddingTop)||0,O=Number.parseFloat(S.lineHeight)||20,T=g.getBoundingClientRect(),D=E-T.left+g.scrollLeft-w,q=h-T.top+g.scrollTop-C,Z=Math.max(0,Math.floor(q/O)),re=e.split(`
|
|
101
|
+
`),me=0;for(let U=0;U<Z&&U<re.length;U++)me+=re[U].length+1;let he=re[Z]??"",de=0;for(let U=0;U<=he.length;U++){if(pm(g,he.slice(0,U))>D){de=Math.max(0,U-1);break}de=U}let X=me+de,N=ZR(e,X);if(!N){p();return}m(),c({token:N,anchor:JR(g,N,e,g.scrollLeft)})},[e]);(0,Lt.useEffect)(()=>()=>m(),[]);let b=l?n.find(E=>E.name===l.token.name):void 0;return(0,_t.jsxs)("div",{className:`tryit-env-textarea-wrap${i?` ${i}`:""}`,onMouseMove:E=>v(E.clientX,E.clientY),onMouseLeave:()=>p(),children:[(0,_t.jsx)("pre",{ref:a,className:"tryit-env-textarea-mirror","aria-hidden":!0,dangerouslySetInnerHTML:{__html:f}}),(0,_t.jsx)("textarea",{ref:s,className:"tryit-env-textarea-field",value:e,onChange:E=>t(E.target.value),onScroll:E=>{let h=a.current;h&&(h.scrollTop=E.currentTarget.scrollTop,h.scrollLeft=E.currentTarget.scrollLeft)},placeholder:o,spellCheck:!1}),l&&r&&(0,_t.jsx)(tO,{token:l.token,anchor:l.anchor,inputMeta:b,onChange:E=>r(l.token.name,E),onClose:()=>c(null),onMouseEnter:m,onMouseLeave:p})]})}var Lt,XR,_t,QR,Pv=V(()=>{"use strict";"use client";Lt=M(Me()),XR=M(ms()),_t=M(Y()),QR=/\{\{\s*([\w.-]+)\s*\}\}/g});function zv({env:e,onClose:t}){let{state:n,active:r,setActive:i,updateEnv:o,setInput:a,addInput:s,removeInput:l,addEnvironment:c,removeEnvironment:d}=e,[f,m]=(0,Hr.useState)(r.id),[p,v]=(0,Hr.useState)(!1),[b,E]=(0,Hr.useState)(""),[h,g]=(0,Hr.useState)(""),[S,w]=(0,Hr.useState)(null),[C,O]=(0,Hr.useState)(!1),[T,D]=(0,Hr.useState)(!1),[q,Z]=(0,Hr.useState)(!1),re=n.environments.find(X=>X.id===f)??r,me=fm(re.server,re.inputs)||re.server||"\u2014",he=(0,Hr.useRef)(null);(0,Hr.useEffect)(()=>{if(!T)return;let X=N=>{he.current&&!he.current.contains(N.target)&&D(!1)};return window.addEventListener("mousedown",X),()=>window.removeEventListener("mousedown",X)},[T]);let de=()=>{let X=c(b);m(X),i(X),E(""),v(!1)};return(0,Ne.jsx)("div",{className:"tryit-overlay",onClick:X=>{X.stopPropagation(),t()},role:"presentation",children:(0,Ne.jsxs)("div",{className:"envmgr",onClick:X=>X.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Configure environments",children:[(0,Ne.jsxs)("aside",{className:"envmgr-list",children:[(0,Ne.jsx)("h3",{className:"envmgr-list-title",children:"Environments"}),(0,Ne.jsxs)("div",{className:"envmgr-list-scroll",children:[n.environments.map(X=>{let N=X.id===n.activeId;return(0,Ne.jsxs)("button",{className:`envmgr-item${X.id===f?" envmgr-item-selected":""}`,onClick:()=>{m(X.id),w(null),O(!1),Z(!1),D(!1)},children:[(0,Ne.jsx)("span",{className:`envmgr-item-icon${N?" envmgr-item-icon-active":""}`,"aria-hidden":!0,children:N?"\u2713":(0,Ne.jsx)(um,{size:14})}),(0,Ne.jsx)("span",{className:"envmgr-item-name",children:X.name})]},X.id)}),p&&(0,Ne.jsxs)("div",{className:"envmgr-item envmgr-item-new",children:[(0,Ne.jsx)("span",{className:"envmgr-item-icon","aria-hidden":!0,children:"\uFF0B"}),(0,Ne.jsx)("input",{autoFocus:!0,className:"envmgr-newenv-input",placeholder:"New environment",value:b,onChange:X=>E(X.target.value),onKeyDown:X=>{X.key==="Enter"&&de(),X.key==="Escape"&&(v(!1),E(""))}}),(0,Ne.jsx)("button",{className:"envmgr-icon-btn",onClick:de,"aria-label":"Confirm",children:"\u2713"}),(0,Ne.jsx)("button",{className:"envmgr-icon-btn",onClick:()=>{v(!1),E("")},"aria-label":"Cancel",children:"\u2715"})]})]}),(0,Ne.jsx)("button",{className:"envmgr-newenv",onClick:()=>v(!0),children:"\uFF0B New environment"})]}),(0,Ne.jsxs)("section",{className:"envmgr-editor",children:[(0,Ne.jsxs)("div",{className:"envmgr-editor-head",children:[C?(0,Ne.jsx)("input",{autoFocus:!0,className:"envmgr-rename-input",value:re.name,onChange:X=>o(re.id,{name:X.target.value}),onBlur:()=>O(!1),onKeyDown:X=>{(X.key==="Enter"||X.key==="Escape")&&O(!1)}}):(0,Ne.jsxs)("h2",{className:"envmgr-editor-title",children:[re.name,(0,Ne.jsx)("button",{className:"envmgr-icon-btn",onClick:()=>O(!0),"aria-label":"Rename environment",children:"\u270E"})]}),(0,Ne.jsx)("div",{style:{flex:1}}),n.activeId!==re.id&&(0,Ne.jsx)("button",{className:"envmgr-activate",onClick:()=>i(re.id),children:"Set active"}),n.environments.length>1&&(0,Ne.jsx)("button",{className:"envmgr-delete",onClick:()=>{d(re.id);let X=n.environments.find(N=>N.id!==re.id);X&&m(X.id)},children:"Delete"}),(0,Ne.jsx)("button",{className:"tryit-close",onClick:t,"aria-label":"Close",children:"\u2715"})]}),(0,Ne.jsxs)("div",{className:"envmgr-section",children:[(0,Ne.jsx)("h4",{className:"envmgr-section-title",children:"Server"}),(0,Ne.jsxs)("div",{className:"envmgr-server-card",children:[(0,Ne.jsxs)("div",{className:"envmgr-server-card-main",children:[(0,Ne.jsx)("span",{className:"envmgr-server-pill",children:"server"}),q?(0,Ne.jsxs)("div",{className:"envmgr-server-edit-row",children:[(0,Ne.jsx)(vo,{autoFocus:!0,inputClassName:"tryit-input",value:S??re.server,onChange:X=>w(X),inputs:re.inputs,onInputChange:(X,N)=>a(re.id,X,{value:N}),placeholder:"https://{{host}}",onKeyDown:X=>{X.key==="Enter"&&(o(re.id,{server:(S??re.server).replace(/\/+$/,"")}),w(null),Z(!1)),X.key==="Escape"&&(w(null),Z(!1))}}),(0,Ne.jsx)("button",{className:"envmgr-icon-btn",onClick:()=>{w(null),Z(!1)},"aria-label":"Cancel",children:"\u2715"}),(0,Ne.jsx)("button",{className:"tryit-send",onClick:()=>{o(re.id,{server:(S??re.server).replace(/\/+$/,"")}),w(null),Z(!1)},children:"Save"})]}):(0,Ne.jsx)("p",{className:"envmgr-server-value",title:re.server!==me?`Template: ${re.server}`:void 0,children:me})]}),!q&&(0,Ne.jsxs)("div",{className:"envmgr-server-menu",ref:he,children:[(0,Ne.jsx)("button",{type:"button",className:"envmgr-server-menu-btn","aria-label":"Server options","aria-expanded":T,onClick:()=>D(X=>!X),children:"\u22EE"}),T&&(0,Ne.jsx)("div",{className:"envmgr-server-menu-pop",role:"menu",children:(0,Ne.jsx)("button",{type:"button",role:"menuitem",className:"envmgr-server-menu-item",onClick:()=>{w(re.server),Z(!0),D(!1)},children:"\u270E Edit"})})]})]})]}),(0,Ne.jsxs)("div",{className:"envmgr-section",children:[(0,Ne.jsx)("h4",{className:"envmgr-section-title",children:"Variables"}),(0,Ne.jsxs)("p",{className:"envmgr-hint",children:["Use as ","{{name}}"," in the base URL, params, headers, cookies, or body."]}),(0,Ne.jsxs)("table",{className:"envmgr-table",children:[(0,Ne.jsx)("thead",{children:(0,Ne.jsxs)("tr",{children:[(0,Ne.jsx)("th",{children:"Name"}),(0,Ne.jsx)("th",{children:"Value"}),(0,Ne.jsx)("th",{style:{width:"72px",textAlign:"center"},children:"Secret"}),(0,Ne.jsx)("th",{style:{width:"36px"}})]})}),(0,Ne.jsxs)("tbody",{children:[re.inputs.map(X=>(0,Ne.jsxs)("tr",{children:[(0,Ne.jsx)("td",{className:"envmgr-cell-name",children:X.name}),(0,Ne.jsx)("td",{children:(0,Ne.jsx)("input",{className:"envmgr-cell-input",type:X.secret?"password":"text",value:X.value,placeholder:"Enter value",spellCheck:!1,onChange:N=>a(re.id,X.name,{value:N.target.value})})}),(0,Ne.jsx)("td",{style:{textAlign:"center"},children:(0,Ne.jsx)("button",{role:"switch","aria-checked":X.secret,"aria-label":`${X.name} secret`,className:`envmgr-toggle${X.secret?" envmgr-toggle-on":""}`,onClick:()=>a(re.id,X.name,{secret:!X.secret}),children:(0,Ne.jsx)("span",{className:"envmgr-toggle-knob"})})}),(0,Ne.jsx)("td",{style:{textAlign:"center"},children:(0,Ne.jsx)("button",{className:"envmgr-icon-btn",onClick:()=>l(re.id,X.name),"aria-label":`Remove ${X.name}`,children:"\u2715"})})]},X.name)),(0,Ne.jsxs)("tr",{className:"envmgr-newrow",children:[(0,Ne.jsx)("td",{children:(0,Ne.jsx)("input",{className:"envmgr-cell-input",placeholder:"variable_name",value:h,onChange:X=>g(X.target.value),onKeyDown:X=>{X.key==="Enter"&&(s(re.id,h),g(""))}})}),(0,Ne.jsx)("td",{colSpan:3,children:(0,Ne.jsx)("button",{className:"envmgr-prettify",disabled:!h.trim(),onClick:()=>{s(re.id,h),g("")},children:"Add variable"})})]})]})]})]})]})]})})}var Hr,Ne,rO=V(()=>{"use strict";"use client";Hr=M(Me());dm();Dv();Pv();Ne=M(Y())});function Uv(e){return`'${e.replace(/'/g,"'\\''")}'`}function n5(e){let t=[`curl --request ${e.method} \\`,` --url ${Uv(e.url)}`];for(let[n,r]of Object.entries(e.headers))t[t.length-1]+=" \\",t.push(` --header ${Uv(`${n}: ${r}`)}`);return e.body&&(t[t.length-1]+=" \\",t.push(` --data ${Uv(e.body)}`)),t.join(`
|
|
102
|
+
`)}function r5(e){let t=[` method: '${e.method}'`];if(Object.keys(e.headers).length){let n=Object.entries(e.headers).map(([r,i])=>` '${r}': '${i.replace(/'/g,"\\'")}'`);t.push(` headers: {
|
|
103
|
+
${n.join(`,
|
|
104
|
+
`)}
|
|
105
|
+
}`)}return e.body&&t.push(` body: ${JSON.stringify(e.body)}`),[`const response = await fetch('${e.url}', {`,t.join(`,
|
|
106
|
+
`),"});","","const data = await response.json();","console.log(data);"].join(`
|
|
107
|
+
`)}function i5(e){let t=["import requests","",`url = "${e.url}"`];if(Object.keys(e.headers).length){let r=Object.entries(e.headers).map(([i,o])=>` "${i}": "${o.replace(/"/g,'\\"')}"`);t.push(`headers = {
|
|
108
|
+
${r.join(`,
|
|
109
|
+
`)}
|
|
110
|
+
}`)}else t.push("headers = {}");let n="";return e.body&&(t.push(`payload = ${o5(e.body)}`),n=", data=payload"),t.push("",`response = requests.request("${e.method}", url, headers=headers${n})`,"","print(response.text)"),t.join(`
|
|
111
|
+
`)}function o5(e){return e.includes(`
|
|
112
|
+
`)?`"""${e.replace(/"""/g,'\\"\\"\\"')}"""`:`"${e.replace(/"/g,'\\"')}"`}function a5(e){let t=["package main","","import (",' "fmt"',' "io"',' "net/http"'];e.body&&t.push(' "strings"'),t.push(")","","func main() {"),t.push(` url := "${e.url}"`),e.body?(t.push(` payload := strings.NewReader(${s5(e.body)})`),t.push(` req, _ := http.NewRequest("${e.method}", url, payload)`)):t.push(` req, _ := http.NewRequest("${e.method}", url, nil)`);for(let[n,r]of Object.entries(e.headers))t.push(` req.Header.Add("${n}", "${r.replace(/"/g,'\\"')}")`);return t.push(""," res, _ := http.DefaultClient.Do(req)"," defer res.Body.Close()"," body, _ := io.ReadAll(res.Body)"," fmt.Println(string(body))","}"),t.join(`
|
|
113
|
+
`)}function s5(e){return e.includes("`")?JSON.stringify(e):"`"+e+"`"}function iO(e){return[{id:"curl",label:"cURL",language:"bash",code:n5(e)},{id:"javascript",label:"JavaScript",language:"javascript",code:r5(e)},{id:"python",label:"Python",language:"python",code:i5(e)},{id:"go",label:"Go",language:"go",code:a5(e)}]}var oO=V(()=>{"use strict"});function $v({request:e,onClose:t}){let n=(0,Hu.useMemo)(()=>iO(e),[e]),[r,i]=(0,Hu.useState)(n[0].id),[o,a]=(0,Hu.useState)(!1),s=n.find(c=>c.id===r)??n[0];return(0,_r.jsx)("div",{className:"tryit-overlay",onClick:c=>{c.stopPropagation(),t()},role:"presentation",children:(0,_r.jsxs)("div",{className:"gencode",onClick:c=>c.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Generate code",children:[(0,_r.jsxs)("div",{className:"gencode-head",children:[(0,_r.jsx)("span",{style:{fontSize:"11px",fontWeight:700,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Generate code"}),(0,_r.jsx)("div",{style:{flex:1}}),(0,_r.jsx)("button",{className:"tryit-prettify",onClick:async()=>{try{await navigator.clipboard.writeText(s.code),a(!0),setTimeout(()=>a(!1),1500)}catch{}},children:o?"Copied!":"Copy"}),(0,_r.jsx)("button",{className:"tryit-close",onClick:t,"aria-label":"Close",children:"\u2715"})]}),(0,_r.jsx)("div",{className:"gencode-tabs",children:n.map(c=>(0,_r.jsx)("button",{className:`gencode-tab${r===c.id?" gencode-tab-active":""}`,onClick:()=>i(c.id),children:c.label},c.id))}),(0,_r.jsx)("div",{className:"gencode-body",children:(0,_r.jsx)("pre",{className:"tryit-pre",children:(0,_r.jsx)("code",{children:s.code})})})]})})}var Hu,_r,aO=V(()=>{"use strict";"use client";Hu=M(Me());oO();_r=M(Y())});function u5(e){return l5+e.replace(/[^a-z0-9]+/gi,"-").toLowerCase().slice(0,80)}function d5(){return Math.random().toString(36).slice(2,10)}function f5(e){return Array.isArray(e)?e.filter(t=>!!t&&typeof t=="object"&&typeof t.id=="string"&&typeof t.timestamp=="number"&&typeof t.method=="string"&&typeof t.path=="string"):[]}function sO(e){let t=[],n=new Date,r=n.toDateString(),i=new Date(n.getTime()-864e5).toDateString();for(let o of e){let a=new Date(o.timestamp),s=a.toDateString(),l=s===r?"Today":s===i?"Yesterday":a.toLocaleDateString(void 0,{day:"2-digit",month:"short"}),c=t.find(d=>d.label===l);c||(c={label:l,entries:[]},t.push(c)),c.entries.push(o)}return t}function lO(e){let t=u5(e),[n,r]=(0,wa.useState)(()=>{if(typeof window>"u")return[];try{let s=window.localStorage.getItem(t);return s?f5(JSON.parse(s)):[]}catch{return[]}});(0,wa.useEffect)(()=>{try{window.localStorage.setItem(t,JSON.stringify(n))}catch{}},[t,n]);let i=(0,wa.useCallback)(s=>{r(l=>[{...s,id:d5(),timestamp:Date.now()},...l].slice(0,c5))},[]),o=(0,wa.useCallback)(s=>{r(l=>l.filter(c=>c.id!==s))},[]),a=(0,wa.useCallback)(()=>r([]),[]);return{entries:n,addEntry:i,removeEntry:o,clearAll:a}}var wa,l5,c5,Hv=V(()=>{"use strict";"use client";wa=M(Me()),l5="docmind.tryit.history.",c5=50});function jv({history:e,onClose:t,onSelect:n}){let[r,i]=(0,ql.useState)(""),[o,a]=(0,ql.useState)(new Set),s=(0,ql.useMemo)(()=>{let d=r.trim().toLowerCase();return d?e.entries.filter(f=>f.path.toLowerCase().includes(d)||f.method.toLowerCase().includes(d)||String(f.status??"").includes(d)):e.entries},[e.entries,r]),l=(0,ql.useMemo)(()=>sO(s),[s]),c=d=>{a(f=>{let m=new Set(f);return m.has(d)?m.delete(d):m.add(d),m})};return(0,cn.jsx)("div",{className:"tryit-overlay",onClick:d=>{d.stopPropagation(),t()},role:"presentation",children:(0,cn.jsxs)("div",{className:"tryit-history",onClick:d=>d.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Request history",children:[(0,cn.jsxs)("div",{className:"tryit-history-head",children:[(0,cn.jsx)("input",{className:"tryit-history-search",value:r,onChange:d=>i(d.target.value),placeholder:"Search history",spellCheck:!1,autoFocus:!0}),(0,cn.jsx)("button",{className:"envmgr-icon-btn",onClick:e.clearAll,disabled:e.entries.length===0,"aria-label":"Clear all history",title:"Clear all",children:(0,cn.jsx)(cm,{})}),(0,cn.jsx)("button",{className:"tryit-close",onClick:t,"aria-label":"Close",children:"\u2715"})]}),(0,cn.jsxs)("div",{className:"tryit-history-list",children:[l.length===0&&(0,cn.jsx)("p",{className:"tryit-empty",children:"No requests sent yet."}),l.map(d=>{let f=!o.has(d.label);return(0,cn.jsxs)("div",{className:"tryit-history-group",children:[(0,cn.jsxs)("button",{className:"tryit-history-group-head",onClick:()=>c(d.label),children:[(0,cn.jsx)("span",{className:`tryit-history-caret${f?" tryit-history-caret-open":""}`,"aria-hidden":!0,children:"\u25B6"}),d.label]}),f&&d.entries.map(m=>(0,cn.jsxs)("button",{className:"tryit-history-row",onClick:()=>n(m),children:[(0,cn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",fontWeight:600,color:nu(m.method),minWidth:"38px",textAlign:"left"},children:m.method.toUpperCase()}),(0,cn.jsx)("span",{className:"tryit-history-path",title:m.path,children:m.path}),m.status!==void 0?(0,cn.jsxs)("span",{className:"tryit-history-status",style:{color:hi(m.status)},children:[(0,cn.jsx)("span",{className:"tryit-history-dot",style:{background:hi(m.status)}}),m.status]}):(0,cn.jsxs)("span",{className:"tryit-history-status",style:{color:"var(--danger)"},children:[(0,cn.jsx)("span",{className:"tryit-history-dot",style:{background:"var(--danger)"}}),"error"]})]},m.id))]},d.label)})]})]})})}var ql,cn,cO=V(()=>{"use strict";"use client";ql=M(Me());Ai();Fv();Hv();dm();cn=M(Y())});function p5(e){return e.replace(/(?:\u2026|\.{2,})\s*$/u,"")}function m5(e){if(typeof document>"u")return null;let t=document.fullscreenElement;return t instanceof HTMLElement&&e&&t.contains(e)?t:document.body}function ju({value:e,onChange:t,options:n,placeholder:r="Select",disabled:i=!1,id:o,size:a="default",fitContent:s=!1,searchable:l=!1,onCreateOption:c,leadingIcon:d,style:f,triggerStyle:m}){let[p,v]=(0,un.useState)(!1),[b,E]=(0,un.useState)(null),[h,g]=(0,un.useState)(null),[S,w]=(0,un.useState)(-1),[C,O]=(0,un.useState)(""),T=(0,un.useRef)(null),D=(0,un.useRef)(null),q=(0,un.useRef)(null),Z=(0,un.useRef)(null),re=(0,un.useId)(),me=p5(r),he=n.find(te=>te.value===e),de=a==="compact",X=C.trim().toLowerCase(),N=l&&X?n.filter(te=>`${te.label}
|
|
114
|
+
${te.description??""}`.toLowerCase().includes(X)||te.value.toLowerCase().includes(X)):n,U=c?N.length:-1,ae=N.length+(c?1:0),j=(0,un.useCallback)(()=>{let te=D.current;if(!te)return;let Ie=te.getBoundingClientRect(),ke=4,Qe=l?300:240,be=window.innerHeight-Ie.bottom-ke-8,lt=Ie.top-ke-8,Ee=be<120&<>be,Yt=Math.min(Qe,Math.max(100,Ee?lt:be));E({top:Ee?Ie.top-ke:Ie.bottom+ke,left:Ie.left,width:Ie.width,maxHeight:Yt,openUp:Ee})},[l]);(0,un.useLayoutEffect)(()=>{if(!p){E(null),g(null),O("");return}j();let te=()=>g(m5(D.current));te(),document.addEventListener("fullscreenchange",te);let Ie=N.findIndex(be=>be.value===e&&!be.disabled),ke=N.findIndex(be=>!be.disabled);w(Ie>=0?Ie:ke>=0?ke:U);function Qe(){j()}return window.addEventListener("resize",Qe),window.addEventListener("scroll",Qe,!0),()=>{document.removeEventListener("fullscreenchange",te),window.removeEventListener("resize",Qe),window.removeEventListener("scroll",Qe,!0)}},[p,j,n,e]),(0,un.useEffect)(()=>{if(!p)return;function te(Ie){let ke=Ie.target;T.current?.contains(ke)||q.current?.contains(ke)||v(!1)}return document.addEventListener("mousedown",te),()=>document.removeEventListener("mousedown",te)},[p]),(0,un.useEffect)(()=>{if(!p||S<0)return;Z.current?.querySelector(`[data-select-idx="${S}"]`)?.scrollIntoView({block:"nearest"})},[p,S]),(0,un.useEffect)(()=>{!p||!l||w(te=>{if(te===U&&U>=0||N.length===0)return U;if(te>=0&&te<N.length&&!N[te]?.disabled)return te;let Ie=N.findIndex(ke=>!ke.disabled);return Ie>=0?Ie:U})},[p,l,C,N.length]);function A(te){t(te),v(!1),O(""),D.current?.focus()}function I(){let te=C.trim();v(!1),O(""),c?.onSelect(te)}function L(){if(U>=0&&S===U){I();return}let te=N[S];te&&!te.disabled&&A(te.value)}function K(te){if(ae===0)return;let Ie=S;for(let ke=0;ke<ae;ke++)if(Ie=(Ie+te+ae)%ae,Ie===U||!N[Ie]?.disabled){w(Ie);return}}function fe(te){if(!i)if(te.key==="ArrowDown"||te.key==="ArrowUp"){if(te.preventDefault(),!p){v(!0);return}K(te.key==="ArrowDown"?1:-1)}else if(te.key==="Enter"){if(te.preventDefault(),!p){v(!0);return}L()}else te.key===" "&&!l?(te.preventDefault(),p?L():v(!0)):te.key==="Escape"&&p&&(te.preventDefault(),v(!1))}function xe(te){te.key==="Escape"?(te.preventDefault(),v(!1),D.current?.focus()):te.key==="ArrowDown"?(te.preventDefault(),K(1)):te.key==="ArrowUp"?(te.preventDefault(),K(-1)):(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),L())}let ze=de?7:9,we=de?10:12,Ue=de?13:14,Se=de?7:8,Ye=p&&b&&h?(0,uO.createPortal)((0,Dt.jsxs)("div",{ref:q,onWheel:te=>te.stopPropagation(),style:{position:"fixed",top:b.openUp?void 0:b.top,bottom:b.openUp?window.innerHeight-b.top:void 0,left:b.left,width:Math.max(b.width,180),zIndex:10001,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,boxShadow:"0 8px 24px rgba(0,0,0,0.12)",maxHeight:b.maxHeight,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"},children:[(0,Dt.jsx)("ul",{ref:Z,id:re,role:"listbox",tabIndex:-1,onKeyDown:xe,style:{margin:0,padding:4,listStyle:"none",overflowY:"auto",flex:1,minHeight:0},children:N.length===0?(0,Dt.jsx)("li",{style:{padding:`${ze+1}px ${we}px`,fontSize:de?12.5:13,color:"var(--text-muted)"},children:"No matches"}):N.map((te,Ie)=>{let ke=te.value===e,Qe=Ie===S;return(0,Dt.jsx)("li",{role:"option","aria-selected":ke,children:(0,Dt.jsxs)("button",{type:"button","data-select-idx":Ie,disabled:te.disabled,onClick:()=>{te.disabled||A(te.value)},onMouseEnter:()=>{te.disabled||w(Ie)},style:{width:"100%",display:"flex",alignItems:"center",gap:8,padding:"8px 10px",border:"none",borderRadius:7,background:Qe||ke?"var(--bg-subtle)":"transparent",color:te.disabled?"var(--text-muted)":"var(--text-primary)",fontSize:de?13:14,fontFamily:"inherit",fontWeight:ke?600:400,textAlign:"left",cursor:te.disabled?"default":"pointer",opacity:te.disabled?.5:1},children:[(0,Dt.jsxs)("span",{style:{flex:1,minWidth:0,overflow:"hidden"},children:[(0,Dt.jsx)("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:te.label}),te.description&&(0,Dt.jsx)("span",{style:{display:"block",marginTop:1,fontSize:de?11:12,fontWeight:400,color:"var(--text-muted)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:te.description})]}),ke&&(0,Dt.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"var(--brand)",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0},children:(0,Dt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})]})},te.value)})}),c&&(0,Dt.jsxs)("button",{type:"button",onClick:I,onMouseEnter:()=>w(U),style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,width:"100%",padding:`${ze+1}px ${we}px`,border:"none",borderTop:"1px solid var(--border)",background:S===U?"var(--bg-subtle)":"transparent",color:"var(--brand-dark)",fontSize:de?13:14,fontFamily:"inherit",fontWeight:600,textAlign:"left",cursor:"pointer"},children:[(0,Dt.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.label}),(0,Dt.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0},children:(0,Dt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M12 5v14m7-7H5"})})]})]}),h):null,jt=(0,Dt.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0,color:"var(--text-muted)",transform:p?"rotate(180deg)":"none",transition:"transform 0.15s",pointerEvents:"none"},children:(0,Dt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})});return(0,Dt.jsxs)("div",{ref:T,style:{position:"relative",width:s?"fit-content":"100%",minWidth:0,...f},children:[l?(0,Dt.jsxs)("div",{style:{position:"relative",width:s?"auto":"100%"},children:[d&&(0,Dt.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",left:de?10:12,top:"50%",transform:"translateY(-50%)",display:"flex",color:"var(--text-muted)",pointerEvents:"none"},children:d}),(0,Dt.jsx)("input",{ref:D,type:"text",id:o,disabled:i,role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":p,"aria-controls":re,placeholder:me,value:p?C:he?.label??"",onChange:te=>{O(te.target.value),e&&t(""),p||v(!0)},onFocus:()=>{i||v(!0)},onKeyDown:fe,style:{width:s?"auto":"100%",paddingTop:ze,paddingBottom:ze,paddingLeft:d?de?28:32:we,paddingRight:28,border:"1px solid var(--border)",borderRadius:Se,background:i?"var(--bg-subtle)":"var(--bg)",color:"var(--text-primary)",fontSize:Ue,fontFamily:"inherit",fontWeight:400,boxSizing:"border-box",outline:"none",opacity:i?.7:1,cursor:i?"default":p?"text":"pointer",...m}}),(0,Dt.jsx)("span",{style:{position:"absolute",right:de?10:12,top:"50%",transform:"translateY(-50%)",display:"flex"},children:jt})]}):(0,Dt.jsxs)("button",{ref:D,type:"button",id:o,disabled:i,"aria-haspopup":"listbox","aria-expanded":p,"aria-controls":re,onClick:()=>{i||v(te=>!te)},onKeyDown:fe,style:{width:s?"auto":"100%",display:"flex",alignItems:"center",gap:s?4:8,padding:`${ze}px ${we}px`,border:"1px solid var(--border)",borderRadius:Se,background:i?"var(--bg-subtle)":"var(--bg)",color:he?"var(--text-primary)":"var(--text-muted)",fontSize:Ue,fontFamily:"inherit",fontWeight:400,textAlign:"left",cursor:i?"default":"pointer",boxSizing:"border-box",outline:"none",opacity:i?.7:1,...m},children:[d&&(0,Dt.jsx)("span",{"aria-hidden":!0,style:{display:"flex",alignItems:"center",color:"var(--text-muted)",flexShrink:0},children:d}),(0,Dt.jsx)("span",{style:{flex:s?"0 1 auto":"1 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:he?.label??me}),jt]}),Ye]})}var un,uO,Dt,dO=V(()=>{"use strict";"use client";un=M(Me()),uO=M(ms()),Dt=M(Y())});var gO={};Tm(gO,{default:()=>mO,statusColor:()=>hi});function g5(e,t){let n=(t??"").toLowerCase();if(n.includes("json")||n.includes("+json"))return"json";if(n.includes("html"))return"html";let r=e.trim();if(r){try{return JSON.parse(r),"json"}catch{}if(/^<!DOCTYPE\s+html/i.test(r)||/^<html[\s>]/i.test(r)||r.startsWith("<")&&/<\/\w+>/.test(r))return"html"}return"text"}function Gv(){return Math.random().toString(36).slice(2,9)}function h5(){return{id:`${Date.now()}-${Math.random().toString(36).slice(2,6)}`,name:"",value:"",enabled:!0}}function y5(e){return e.length===0?[{id:Gv(),kind:"none"}]:e.map(t=>({id:Gv(),kind:`doc:${t.paramName}`}))}function b5(e){let t=[];if(e.length>0){t.push({value:"__hdr_documented",label:"Documented",disabled:!0});for(let n of e)t.push({value:`doc:${n.paramName}`,label:n.label})}return t.push({value:"__hdr_other",label:"Other",disabled:!0}),t.push({value:"none",label:"No Auth"}),t.push({value:"basic",label:"Basic Auth"}),t.push({value:"bearer",label:"Bearer Token"}),t.push({value:"apikey",label:"API Key"}),t}function fO(e,t){let n=`${e}:${t}`;try{return btoa(unescape(encodeURIComponent(n)))}catch{return btoa(n)}}function v5(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}function x5(e){let t=e.toLowerCase();return t.includes("json")?"JSON":t.includes("xml")?"XML":t.includes("form-urlencoded")?"Form URL encoded":t.startsWith("text/plain")?"Plain text":e}function S5(e){return e?e.split(/,(?=\s*[^;=\s]+=)/).map(t=>{let[n]=t.split(";"),r=n.indexOf("=");return r===-1?{name:n.trim(),value:""}:{name:n.slice(0,r).trim(),value:n.slice(r+1).trim()}}).filter(t=>t.name):[]}function E5(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function pO(e){return E5(e).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,n=>{let r="jv-number";return/^"/.test(n)?r=/:$/.test(n)?"jv-key":"jv-string":/^(true|false)$/.test(n)?r="jv-bool":n==="null"&&(r="jv-null"),`<span class="${r}">${n}</span>`})}function mO({method:e,servers:t,path:n,params:r,auth:i,bodyExample:o,contentType:a,summary:s,specKey:l,onClose:c}){let d=VR(l,t,i),{active:f}=d,m=lO(l),[p,v]=(0,et.useState)(()=>{let z={};for(let ve of r)z[`${ve.location}:${ve.name}`]=ve.example.startsWith("<")?"":ve.example;return z}),[b,E]=(0,et.useState)(o??""),h=a??"application/json",[g,S]=(0,et.useState)("documented"),[w,C]=(0,et.useState)("text/plain"),O=g==="documented"?h:w,[T,D]=(0,et.useState)({}),[q,Z]=(0,et.useState)([]),[re,me]=(0,et.useState)([]),[he,de]=(0,et.useState)([]),[X,N]=(0,et.useState)(!1),[U,ae]=(0,et.useState)(null),[j,A]=(0,et.useState)(!1),[I,L]=(0,et.useState)(!1),[K,fe]=(0,et.useState)(!1),[xe,ze]=(0,et.useState)(!1),[we,Ue]=(0,et.useState)(!1),[Se,Ye]=(0,et.useState)("body"),[jt,te]=(0,et.useState)("text"),[Ie,ke]=(0,et.useState)(!0),[Qe,be]=(0,et.useState)(!1),[lt,Ee]=(0,et.useState)(()=>y5(i)),Yt=(0,et.useRef)(null),Ot=(0,et.useMemo)(()=>b5(i),[i]),Ge=(0,et.useMemo)(()=>r.filter(z=>z.location==="path"),[r]),Dn=(0,et.useMemo)(()=>r.filter(z=>z.location==="query"),[r]),Bt=(0,et.useMemo)(()=>r.filter(z=>z.location==="header"),[r]),mt=z=>f.inputs.find(ve=>ve.name===z)?.value??"",Ze=z=>fm(z,f.inputs),le=(0,et.useCallback)((z,ve)=>d.setInput(f.id,z,{value:ve}),[d,f.id]),ye=(0,et.useMemo)(()=>{let z=[];return z.push({id:"security",label:"Security",count:lt.filter(ve=>ve.kind!=="none").length}),z.push({id:"headers",label:"Headers",count:Bt.length+re.length}),z.push({id:"body",label:"Body",count:0}),Ge.length&&z.push({id:"path",label:"Path",count:Ge.length}),z.push({id:"query",label:"Query Params",count:Dn.length+q.length}),z.push({id:"cookies",label:"Cookies",count:he.length}),z},[lt,Ge.length,Dn.length,Bt.length,q.length,re.length,he.length]),[u,R]=(0,et.useState)(ye[0]?.id??"body");(0,et.useEffect)(()=>{let z=Be=>{Yt.current&&!Yt.current.contains(Be.target)&&L(!1)};window.addEventListener("mousedown",z);let ve=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("mousedown",z),document.body.style.overflow=ve}},[]);let $=(0,et.useMemo)(()=>{let z=n;for(let ve of Ge){let Be=Ze(p[`path:${ve.name}`]??"");z=z.replaceAll(`{${ve.name}}`,encodeURIComponent(Be||`{${ve.name}}`))}return z},[n,Ge,p,f.inputs]),W=z=>T[z]!==!1,F=(0,et.useMemo)(()=>{let z=[];for(let ve of Dn){let Be=`query:${ve.name}`;if(!W(Be))continue;let Ve=Ze(p[Be]??"");Ve&&z.push(`${encodeURIComponent(ve.name)}=${encodeURIComponent(Ve)}`)}for(let ve of q){if(!ve.enabled)continue;let Be=ve.name.trim(),Ve=Ze(ve.value);Be&&Ve&&z.push(`${encodeURIComponent(Be)}=${encodeURIComponent(Ve)}`)}return z.length?`?${z.join("&")}`:""},[Dn,q,p,f.inputs,T]),ie=`${$}${F}`,x=z=>{let Be=`${Ze(f.server).replace(/\/+$/,"")}${ie}`,Ve={};for(let ft of Bt){let Vt=`header:${ft.name}`;if(!W(Vt))continue;let $e=Ze(p[Vt]??"");$e&&(Ve[ft.name]=$e)}for(let ft of re){if(!ft.enabled)continue;let Vt=ft.name.trim(),$e=Ze(ft.value);Vt&&$e&&(Ve[Vt]=$e)}let dn=he.filter(ft=>ft.enabled).map(ft=>({name:ft.name.trim(),value:Ze(ft.value)})).filter(ft=>ft.name&&ft.value);if(dn.length&&(Ve.Cookie=dn.map(ft=>`${ft.name}=${ft.value}`).join("; ")),z){for(let ft of lt)if(ft.kind!=="none"){if(ft.kind==="basic"){let Vt=Ze(mt(Fu)),$e=Ze(mt(qu));(Vt||$e)&&(Ve.Authorization=`Basic ${fO(Vt,$e)}`);continue}if(ft.kind==="bearer"){let Vt=Ze(mt(gm)).trim();Vt&&(Ve.Authorization=Du("Bearer",Vt));continue}if(ft.kind==="apikey"){let Vt=Ze(mt(Gu)).trim(),$e=Ze(mt(mm)).trim();if(!Vt||!$e)continue;(ft.apiKeyIn??"header")==="query"?Be+=`${Be.includes("?")?"&":"?"}${encodeURIComponent(Vt)}=${encodeURIComponent($e)}`:Ve[Vt]=$e;continue}if(ft.kind.startsWith("doc:")){let Vt=ft.kind.slice(4),$e=i.find(ar=>ar.paramName===Vt);if(!$e)continue;if($e.kind==="basic"){let ar=Ze(mt(Fu)),ai=Ze(mt(qu));(ar||ai)&&(Ve.Authorization=`Basic ${fO(ar,ai)}`);continue}let Bn=Ze(mt($e.paramName)).trim();if(!Bn)continue;$e.kind==="apiKeyQuery"?Be+=`${Be.includes("?")?"&":"?"}${encodeURIComponent($e.paramName)}=${encodeURIComponent(Bn)}`:$e.kind==="bearer"?Ve[$e.paramName]=Du($e.authPrefix??"Bearer",Bn):Ve[$e.paramName]=Bn}}b.trim()&&(Ve["Content-Type"]=O)}return{url:Be,headers:Ve,body:b.trim()?Ze(b):void 0}},B=(()=>{let{url:z,headers:ve,body:Be}=x(!0);return{method:e,url:z,headers:ve,body:Be,contentType:O}})(),oe=async()=>{N(!0),ae(null);let z;try{let{url:Be,headers:Ve,body:dn}=x(!0);z=await(await fetch("/api/specs/proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:Be,method:e,headers:Ve,body:dn})})).json()}catch(Be){z={error:Be instanceof Error?Be.message:"Request failed"}}ae(z);let ve=z.body?g5(z.body,z.headers?.["content-type"]??z.headers?.["Content-Type"]):"text";te(ve),Ye(ve==="html"?"preview":"body"),m.addEntry({method:e,path:ie,status:z.status,error:z.error,response:z.error||z.status===void 0?void 0:{status:z.status,statusText:z.statusText??"",headers:z.headers??{},body:z.body??"",durationMs:z.durationMs??0}}),N(!1)},Q=()=>{try{E(JSON.stringify(JSON.parse(b),null,2))}catch{}},G=U?.body??"",ne=jt==="json",J=jt==="html";if(ne&&G)try{G=JSON.stringify(JSON.parse(G),null,2)}catch{ne=!1}let ge=U?.body?v5(new Blob([U.body]).size):null,pe=U?.headers??{},_e=S5(pe["set-cookie"]),Oe=async()=>{try{await navigator.clipboard.writeText(G),A(!0),setTimeout(()=>A(!1),1500)}catch{}};return(0,k.jsxs)("div",{className:"tryit-overlay",role:"presentation",children:[(0,k.jsxs)("div",{className:"tryit-modal",role:"dialog","aria-modal":"true","aria-label":"Try it console",children:[(0,k.jsxs)("div",{className:"tryit-header",children:[(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",minWidth:0},children:[(0,k.jsx)("span",{style:{fontSize:"11px",fontWeight:500,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em",flexShrink:0},children:"Try it"}),(0,k.jsx)("span",{style:{fontSize:"15px",fontWeight:600,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s??`${e} ${n}`})]}),(0,k.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",flexShrink:0},children:[(0,k.jsxs)("div",{className:"tryit-envswitch",ref:Yt,children:[(0,k.jsxs)("button",{className:"tryit-envtrigger",onClick:()=>L(z=>!z),"aria-haspopup":"menu","aria-expanded":I,children:[(0,k.jsx)("span",{className:"tryit-envtrigger-icon","aria-hidden":!0,children:(0,k.jsx)(um,{size:14})}),(0,k.jsx)("span",{className:"tryit-envtrigger-name",children:f.name}),(0,k.jsx)("span",{"aria-hidden":!0,children:"\u25BE"})]}),I&&(0,k.jsxs)("div",{className:"tryit-envmenu",role:"menu",children:[(0,k.jsx)("div",{className:"tryit-envmenu-head",children:"Environments"}),d.state.environments.map(z=>(0,k.jsxs)("button",{role:"menuitemradio","aria-checked":z.id===f.id,className:"tryit-envmenu-item",onClick:()=>{d.setActive(z.id),L(!1)},children:[(0,k.jsx)("span",{className:"tryit-envmenu-check",children:z.id===f.id?"\u2713":""}),(0,k.jsx)("span",{className:"tryit-envmenu-name",children:z.name})]},z.id)),(0,k.jsx)("div",{className:"tryit-envmenu-divider"}),(0,k.jsxs)("button",{className:"tryit-envmenu-item",onClick:()=>{fe(!0),L(!1)},children:[(0,k.jsx)("span",{className:"tryit-envmenu-check",children:(0,k.jsx)(WR,{size:14})}),(0,k.jsx)("span",{className:"tryit-envmenu-name",children:"Configure environments"})]})]})]}),(0,k.jsx)("button",{className:"tryit-codebtn",onClick:()=>Ue(!0),title:"Request history","aria-label":"Request history",children:(0,k.jsx)(GR,{})}),(0,k.jsx)("button",{className:"tryit-close",onClick:c,"aria-label":"Close",children:"\u2715"})]})]}),(0,k.jsxs)("div",{className:"tryit-urlbar",children:[(0,k.jsx)(jn,{method:e,size:"md"}),(0,k.jsxs)("div",{className:"tryit-urlfield",children:[(0,k.jsxs)("div",{className:"tryit-server-chip-wrap",onMouseEnter:()=>be(!0),onMouseLeave:()=>be(!1),children:[(0,k.jsx)("button",{type:"button",className:"tryit-server-chip",onClick:()=>fe(!0),title:"Configure server",children:"server"}),Qe&&(0,k.jsx)("div",{className:"tryit-server-popover",role:"tooltip",children:(0,k.jsxs)("div",{className:"tryit-server-popover-inner",children:[(0,k.jsx)("span",{className:"tryit-server-popover-url",title:Ze(f.server).replace(/\/+$/,"")||void 0,children:Ze(f.server).replace(/\/+$/,"")||"No server set"}),(0,k.jsxs)("div",{className:"tryit-server-popover-actions",children:[(0,k.jsx)("button",{type:"button",className:"tryit-server-popover-btn",title:"Copy server URL","aria-label":"Copy server URL",onClick:async z=>{z.stopPropagation();try{await navigator.clipboard.writeText(Ze(f.server).replace(/\/+$/,""))}catch{}},children:(0,k.jsxs)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,k.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),(0,k.jsx)("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}),(0,k.jsx)("button",{type:"button",className:"tryit-server-popover-btn",title:"Edit server","aria-label":"Edit server",onClick:z=>{z.stopPropagation(),fe(!0)},children:(0,k.jsxs)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,k.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20h9"}),(0,k.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 3.5a2.12 2.12 0 013 3L7 19l-4 1 1-4L16.5 3.5z"})]})})]})]})})]}),(0,k.jsx)("span",{className:"tryit-url-path",title:ie,children:ie})]}),(0,k.jsx)("button",{className:"tryit-codebtn",onClick:()=>ze(!0),title:"Generate code","aria-label":"Generate code",children:"</>"}),(0,k.jsx)("button",{className:"tryit-send",onClick:oe,disabled:X||!Ze(f.server).trim(),children:X?"Sending\u2026":"Send"})]}),(0,k.jsxs)("div",{className:"tryit-body",children:[(0,k.jsxs)("div",{className:"tryit-request",children:[ye.length>0&&(0,k.jsx)("div",{className:"tryit-tabs",children:ye.map(z=>(0,k.jsxs)("button",{className:`tryit-tab${u===z.id?" tryit-tab-active":""}`,onClick:()=>R(z.id),children:[z.label,z.count>0&&(0,k.jsx)("span",{className:"tryit-tab-count",children:z.count})]},z.id))}),(0,k.jsxs)("div",{className:`tryit-tabpanel${u==="body"?" tryit-tabpanel-fill":""}`,children:[u==="security"&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("p",{className:"tryit-label",style:{marginBottom:12},children:"Authorization"}),lt.map((z,ve)=>{let Be=z.kind.startsWith("doc:")?i.find($e=>$e.paramName===z.kind.slice(4)):null,Ve=z.kind==="basic"||Be?.kind==="basic",dn=z.kind==="apikey",ft=Be?.kind==="apiKeyHeader"||Be?.kind==="apiKeyQuery",Vt=z.kind==="bearer"||Be?.kind==="bearer"||Be?.kind==="other";return(0,k.jsx)("div",{className:"tryit-sec-block",children:(0,k.jsxs)("div",{className:"tryit-sec-layout",children:[(0,k.jsxs)("div",{className:"tryit-sec-type-col",children:[(0,k.jsx)("label",{className:"tryit-sec-type-label",htmlFor:`sec-type-${z.id}`,children:"Auth Type"}),(0,k.jsxs)("div",{className:"tryit-sec-type-row",children:[(0,k.jsx)(ju,{id:`sec-type-${z.id}`,size:"compact",value:z.kind,options:Ot,style:{flex:1,minWidth:0},onChange:$e=>{let Bn=$e;Ee(ar=>ar.map(ai=>ai.id===z.id?{...ai,kind:Bn,apiKeyIn:Bn==="apikey"?ai.apiKeyIn??"header":ai.apiKeyIn}:ai)),Bn==="basic"&&(d.setInput(f.id,Fu,{secret:!1}),d.setInput(f.id,qu,{secret:!0})),Bn==="bearer"&&d.setInput(f.id,gm,{secret:!0}),Bn==="apikey"&&(mt(Gu)||d.setInput(f.id,Gu,{value:"x-api-key",secret:!1}),d.setInput(f.id,mm,{secret:!0}))}}),lt.length>1&&(0,k.jsx)("button",{type:"button",className:"tryit-sec-remove","aria-label":"Remove security",onClick:()=>Ee($e=>$e.filter(Bn=>Bn.id!==z.id)),children:"\u2715"})]}),(0,k.jsx)("p",{className:"tryit-sec-hint",children:z.kind==="none"?"No authentication will be sent with this request.":"The authorization header or query param is generated when you send the request."})]}),(0,k.jsxs)("div",{className:"tryit-sec-fields",children:[Ve&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(xo,{label:"Username",children:(0,k.jsx)(vo,{value:mt(Fu),onChange:$e=>d.setInput(f.id,Fu,{value:$e}),inputs:f.inputs,onInputChange:le,placeholder:"Username",autoComplete:"username"})}),(0,k.jsx)(xo,{label:"Password",children:(0,k.jsx)($u,{value:mt(qu),onChange:$e=>d.setInput(f.id,qu,{value:$e,secret:!0}),inputs:f.inputs,onInputChange:le,placeholder:"Password"})})]}),dn&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(xo,{label:"Key",children:(0,k.jsx)(vo,{value:mt(Gu),onChange:$e=>d.setInput(f.id,Gu,{value:$e}),inputs:f.inputs,onInputChange:le,placeholder:"Key"})}),(0,k.jsx)(xo,{label:"Value",children:(0,k.jsx)($u,{value:mt(mm),onChange:$e=>d.setInput(f.id,mm,{value:$e,secret:!0}),inputs:f.inputs,onInputChange:le,placeholder:"Value"})}),(0,k.jsx)(xo,{label:"Add to",children:(0,k.jsx)(ju,{size:"compact",value:z.apiKeyIn??"header",options:[{value:"header",label:"Header"},{value:"query",label:"Query Params"}],onChange:$e=>Ee(Bn=>Bn.map(ar=>ar.id===z.id?{...ar,apiKeyIn:$e}:ar))})})]}),ft&&Be&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(xo,{label:"Key",children:(0,k.jsx)("input",{className:"tryit-input",value:Be.paramName,readOnly:!0,disabled:!0})}),(0,k.jsx)(xo,{label:"Value",children:(0,k.jsx)($u,{value:mt(Be.paramName),onChange:$e=>d.setInput(f.id,Be.paramName,{value:$e,secret:!0}),inputs:f.inputs,onInputChange:le,placeholder:Be.placeholder||"Value"})}),(0,k.jsx)(xo,{label:"Add to",children:(0,k.jsx)("input",{className:"tryit-input",value:Be.kind==="apiKeyQuery"?"Query Params":"Header",readOnly:!0,disabled:!0})})]}),Vt&&!Ve&&!dn&&!ft&&z.kind!=="none"&&(0,k.jsx)(xo,{label:"Token",children:(0,k.jsx)($u,{value:mt(Be?.paramName??gm),onChange:$e=>d.setInput(f.id,Be?.paramName??gm,{value:$e,secret:!0}),inputs:f.inputs,onInputChange:le,placeholder:Be?.placeholder||"Token"})}),ve===0&<.length===1&&z.kind==="none"&&(0,k.jsx)("p",{style:{margin:0,fontSize:12.5,color:"var(--text-muted)"},children:"Select an auth type to configure credentials."})]})]})},z.id)}),(0,k.jsx)("button",{type:"button",className:"tryit-sec-add",onClick:()=>Ee(z=>[...z,{id:Gv(),kind:i[0]?`doc:${i[0].paramName}`:"bearer"}]),children:"\uFF0B Add security"}),(0,k.jsxs)("p",{className:"tryit-security-note",children:["Credentials are saved to the ",(0,k.jsx)("strong",{children:f.name})," environment in this browser and reused across operations. Reference variables as ","{{name}}"," in the base URL, params, headers, cookies, or body.",(0,k.jsx)("button",{className:"tryit-link-btn",onClick:()=>fe(!0),children:"Manage environments"})]})]}),u==="body"&&(0,k.jsxs)("div",{className:"tryit-body-tab",children:[(0,k.jsxs)("div",{className:"tryit-body-toolbar",children:[(0,k.jsxs)("div",{className:"tryit-body-mode",children:[(0,k.jsx)("span",{className:"tryit-body-ct-label",children:"Content type:"}),(0,k.jsx)(ju,{size:"compact",value:g==="documented"?`doc:${h}`:`other:${w}`,options:[{value:"__hdr_documented",label:"Documented",disabled:!0},{value:`doc:${h}`,label:x5(h)},{value:"__hdr_other",label:"Other",disabled:!0},{value:"other:application/json",label:"JSON"},{value:"other:text/plain",label:"Plain text"},{value:"other:application/xml",label:"XML"},{value:"other:application/x-www-form-urlencoded",label:"Form URL encoded"}],style:{minWidth:140},onChange:z=>{z.startsWith("doc:")?S("documented"):z.startsWith("other:")&&(S("other"),C(z.slice(6)))}})]}),(0,k.jsxs)("button",{type:"button",className:"tryit-prettify",onClick:Q,disabled:!b.trim()||!/json/i.test(O),title:"Prettify JSON",children:[(0,k.jsx)(KR,{}),"Prettify"]})]}),/json/i.test(O)?(0,k.jsx)(T5,{value:b,onChange:E,inputs:f.inputs,onInputChange:le}):(0,k.jsx)(nO,{value:b,onChange:E,inputs:f.inputs,onInputChange:le,className:"tryit-body-editor",placeholder:"Request body"})]}),u==="path"&&Ge.map(z=>(0,k.jsx)(_5,{p:z,value:p[`path:${z.name}`]??"",inputs:f.inputs,onInputChange:le,onChange:ve=>v(Be=>({...Be,[`path:${z.name}`]:ve}))},`path:${z.name}`)),u==="query"&&(0,k.jsx)(qv,{specParams:Dn,values:p,setValues:v,paramEnabled:T,setParamEnabled:D,customRows:q,setCustomRows:Z,inputs:f.inputs,onInputChange:le,location:"query",addLabel:"Add query param"}),u==="headers"&&(0,k.jsx)(qv,{specParams:Bt,values:p,setValues:v,paramEnabled:T,setParamEnabled:D,customRows:re,setCustomRows:me,inputs:f.inputs,onInputChange:le,location:"header",addLabel:"Add header"}),u==="cookies"&&(0,k.jsx)(qv,{specParams:[],values:p,setValues:v,paramEnabled:T,setParamEnabled:D,customRows:he,setCustomRows:de,inputs:f.inputs,onInputChange:le,location:"cookie",addLabel:"Add cookie"})]})]}),(0,k.jsxs)("div",{className:"tryit-response",children:[(0,k.jsxs)("div",{className:"tryit-response-head",children:[U&&!U.error&&U.status!==void 0?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("span",{className:"tryit-status-pill",style:{color:hi(U.status),background:`color-mix(in srgb, ${hi(U.status)} 12%, transparent)`},children:[U.status," ",U.statusText]}),U.durationMs!==void 0&&(0,k.jsx)("span",{style:{fontSize:"12px",color:"var(--text-muted)"},children:U.durationMs>=1e3?`${(U.durationMs/1e3).toFixed(2)} s`:`${U.durationMs} ms`}),ge&&(0,k.jsx)("span",{style:{fontSize:"12px",color:"var(--text-muted)"},children:ge}),U.redirects?(0,k.jsxs)("span",{style:{fontSize:"11px",fontWeight:500,color:"var(--text-muted)"},title:U.finalUrl,children:["\u21AA followed ",U.redirects," redirect",U.redirects>1?"s":""]}):null]}):(0,k.jsx)("span",{style:{fontSize:"11px",fontWeight:500,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Response"}),(0,k.jsx)("span",{style:{flex:1}}),Se==="body"&&G&&(0,k.jsx)("button",{className:"envmgr-icon-btn",onClick:()=>ke(z=>!z),title:Ie?"Disable line wrap":"Wrap lines","aria-pressed":Ie,children:"\u2936"}),Se==="body"&&G&&(0,k.jsx)("button",{className:"tryit-prettify",onClick:Oe,children:j?"Copied!":"Copy"})]}),(0,k.jsxs)("div",{className:"tryit-tabs",children:[(0,k.jsx)("button",{className:`tryit-tab${Se==="body"?" tryit-tab-active":""}`,onClick:()=>Ye("body"),children:"Body"}),J&&G&&(0,k.jsx)("button",{className:`tryit-tab${Se==="preview"?" tryit-tab-active":""}`,onClick:()=>Ye("preview"),children:"Preview"}),(0,k.jsxs)("button",{className:`tryit-tab${Se==="cookies"?" tryit-tab-active":""}`,onClick:()=>Ye("cookies"),children:["Cookies",_e.length>0&&(0,k.jsx)("span",{className:"tryit-tab-count",children:_e.length})]}),(0,k.jsxs)("button",{className:`tryit-tab${Se==="headers"?" tryit-tab-active":""}`,onClick:()=>Ye("headers"),children:["Headers",Object.keys(pe).length>0&&(0,k.jsx)("span",{className:"tryit-tab-count",children:Object.keys(pe).length})]}),ne&&Se==="body"&&G&&(0,k.jsxs)("span",{className:"tryit-response-format",children:["{ }"," JSON"]})]}),(0,k.jsxs)("div",{className:"tryit-response-body",children:[!U&&!X&&Se==="body"&&(0,k.jsxs)("div",{className:"tryit-empty",children:["Click ",(0,k.jsx)("strong",{children:"Send"})," to run the request and see the response here."]}),X&&(0,k.jsx)("div",{className:"tryit-empty",children:"Sending request\u2026"}),U?.error&&(0,k.jsx)("div",{className:"tryit-error",children:U.error}),U&&!U.error&&Se==="body"&&(G?(0,k.jsx)("div",{className:"tryit-json-frame",children:ne?(0,k.jsx)("pre",{className:`tryit-json${Ie?" tryit-json-wrap":""}`,children:(0,k.jsx)("code",{dangerouslySetInnerHTML:{__html:pO(G)}})}):(0,k.jsx)("pre",{className:`tryit-json${Ie?" tryit-json-wrap":""}`,children:(0,k.jsx)("code",{children:G})})}):(0,k.jsx)("div",{className:"tryit-empty",children:"Empty response body."})),U&&!U.error&&Se==="preview"&&J&&(G?(0,k.jsx)("iframe",{title:"Response preview",sandbox:"",srcDoc:G,style:{width:"100%",minHeight:280,border:"none",background:"#fff",borderRadius:8}}):(0,k.jsx)("div",{className:"tryit-empty",children:"Empty response body."})),!U&&!X&&Se==="cookies"&&(0,k.jsx)("div",{className:"tryit-empty",children:"No response yet."}),U&&!U.error&&Se==="cookies"&&(_e.length>0?(0,k.jsxs)("table",{className:"tryit-kv-table",children:[(0,k.jsx)("thead",{children:(0,k.jsxs)("tr",{children:[(0,k.jsx)("th",{children:"Name"}),(0,k.jsx)("th",{children:"Value"})]})}),(0,k.jsx)("tbody",{children:_e.map((z,ve)=>(0,k.jsxs)("tr",{children:[(0,k.jsx)("td",{children:z.name}),(0,k.jsx)("td",{children:z.value})]},ve))})]}):(0,k.jsx)("div",{className:"tryit-empty",children:"No cookies set by this response."})),!U&&!X&&Se==="headers"&&(0,k.jsx)("div",{className:"tryit-empty",children:"No response yet."}),U&&!U.error&&Se==="headers"&&(Object.keys(pe).length>0?(0,k.jsxs)("table",{className:"tryit-kv-table",children:[(0,k.jsx)("thead",{children:(0,k.jsxs)("tr",{children:[(0,k.jsx)("th",{children:"Name"}),(0,k.jsx)("th",{children:"Value"})]})}),(0,k.jsx)("tbody",{children:Object.entries(pe).map(([z,ve])=>(0,k.jsxs)("tr",{children:[(0,k.jsx)("td",{children:z}),(0,k.jsx)("td",{children:ve})]},z))})]}):(0,k.jsx)("div",{className:"tryit-empty",children:"No response headers."}))]})]})]})]}),K&&(0,k.jsx)(zv,{env:d,onClose:()=>fe(!1)}),xe&&(0,k.jsx)($v,{request:B,onClose:()=>ze(!1)}),we&&(0,k.jsx)(jv,{history:m,onClose:()=>Ue(!1),onSelect:z=>{ae(z.response?{...z.response}:{error:z.error??"Request failed"}),Ye("body"),Ue(!1)}})]})}function xo({label:e,children:t}){return(0,k.jsxs)("div",{className:"tryit-sec-row",children:[(0,k.jsx)("span",{className:"tryit-sec-row-label",children:e}),(0,k.jsx)("div",{className:"tryit-sec-row-control",children:t})]})}function w5(e,t){return pO(e).replace(/\{\{\s*([\w.-]+)\s*\}\}/g,(r,i)=>{let o=t.find(s=>s.name===i);return o?`<span class="tryit-env-var-resolved" title="${(o.secret&&o.value?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":o.value||"(empty)").replace(/"/g,""")}">${r}</span>`:`<span class="tryit-env-var-unknown">${r}</span>`})}function _5({p:e,value:t,onChange:n,inputs:r,onInputChange:i}){return(0,k.jsxs)("div",{className:"tryit-field",children:[(0,k.jsxs)("label",{className:"tryit-label",children:[e.name,(0,k.jsxs)("span",{style:{fontWeight:400,color:"var(--text-muted)"},children:[" \xB7 ",e.location]}),e.required&&(0,k.jsx)("span",{style:{color:"var(--danger)"},children:"*"})]}),(0,k.jsx)(vo,{value:t,onChange:n,inputs:r,onInputChange:i,placeholder:e.example})]})}function T5({value:e,onChange:t,inputs:n,onInputChange:r}){let i=(0,et.useRef)(null),o=(0,et.useMemo)(()=>w5(`${e||""}
|
|
115
|
+
`,n),[e,n]);return(0,k.jsxs)("div",{className:"tryit-req-json",children:[(0,k.jsx)("pre",{ref:i,className:"tryit-req-json-hl","aria-hidden":!0,dangerouslySetInnerHTML:{__html:o}}),(0,k.jsx)("textarea",{className:"tryit-req-json-ta",value:e,onChange:a=>t(a.target.value),onScroll:a=>{let s=i.current;s&&(s.scrollTop=a.currentTarget.scrollTop,s.scrollLeft=a.currentTarget.scrollLeft)},placeholder:`{
|
|
116
|
+
|
|
117
|
+
}`,spellCheck:!1})]})}function qv({specParams:e,values:t,setValues:n,paramEnabled:r,setParamEnabled:i,customRows:o,setCustomRows:a,inputs:s,onInputChange:l,location:c,addLabel:d}){let f=(m,p)=>a(v=>v.map(b=>b.id===m?{...b,...p}:b));return(0,k.jsxs)("div",{className:"tryit-param-wrap",children:[(0,k.jsxs)("table",{className:"tryit-param-table",children:[(0,k.jsx)("thead",{children:(0,k.jsxs)("tr",{children:[(0,k.jsx)("th",{className:"tryit-param-check","aria-label":"Enabled"}),(0,k.jsx)("th",{children:"Key"}),(0,k.jsx)("th",{children:"Value"}),(0,k.jsx)("th",{className:"tryit-param-actions"})]})}),(0,k.jsxs)("tbody",{children:[e.map(m=>{let p=`${c}:${m.name}`,v=r[p]!==!1;return(0,k.jsxs)("tr",{className:v?void 0:"tryit-param-off",children:[(0,k.jsx)("td",{className:"tryit-param-check",children:(0,k.jsx)("input",{type:"checkbox",checked:v,onChange:b=>i(E=>({...E,[p]:b.target.checked})),"aria-label":`Include ${m.name}`})}),(0,k.jsx)("td",{children:(0,k.jsxs)("span",{className:"tryit-param-key",children:[m.name,m.required&&(0,k.jsx)("span",{className:"tryit-param-req",children:"*"})]})}),(0,k.jsx)("td",{children:(0,k.jsx)(vo,{inputClassName:"tryit-param-input",value:t[p]??"",onChange:b=>n(E=>({...E,[p]:b})),inputs:s,onInputChange:l,placeholder:m.example,disabled:!v})}),(0,k.jsx)("td",{className:"tryit-param-actions"})]},p)}),o.map(m=>(0,k.jsxs)("tr",{className:m.enabled?void 0:"tryit-param-off",children:[(0,k.jsx)("td",{className:"tryit-param-check",children:(0,k.jsx)("input",{type:"checkbox",checked:m.enabled,onChange:p=>f(m.id,{enabled:p.target.checked}),"aria-label":`Include ${m.name||"row"}`})}),(0,k.jsx)("td",{children:(0,k.jsx)("input",{className:"tryit-param-input",value:m.name,onChange:p=>f(m.id,{name:p.target.value}),placeholder:"Key",spellCheck:!1,disabled:!m.enabled})}),(0,k.jsx)("td",{children:(0,k.jsx)(vo,{inputClassName:"tryit-param-input",value:m.value,onChange:p=>f(m.id,{value:p}),inputs:s,onInputChange:l,placeholder:"Value",disabled:!m.enabled})}),(0,k.jsx)("td",{className:"tryit-param-actions",children:(0,k.jsx)("button",{type:"button",className:"envmgr-icon-btn",onClick:()=>a(p=>p.filter(v=>v.id!==m.id)),"aria-label":`Remove ${m.name||"row"}`,title:"Remove",children:(0,k.jsx)(cm,{size:14})})})]},m.id))]})]}),(0,k.jsxs)("button",{type:"button",className:"tryit-link-btn",onClick:()=>a(m=>[...m,h5()]),children:["+ ",d]})]})}var et,k,Fu,qu,Gu,mm,gm,Fv=V(()=>{"use strict";"use client";et=M(Me());Ai();rO();aO();cO();Dv();Pv();Hv();dm();lm();dO();xa();k=M(Y());Fu="basic_username",qu="basic_password",Gu="apikey_key",mm="apikey_value",gm="Authorization"});var bm=M(Me(),1),wO=M(Ww(),1);var rl=M(Me(),1),Jr=M(Me(),1),io=M(Me(),1);var BI={data:""},PI=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||BI};var zI=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,UI=/\/\*[^]*?\*\/| +/g,Yw=/\n+/g,Zo=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Zo(a,o):o+"{"+Zo(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Zo(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=o[1]=="-"?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Zo.p?Zo.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Qo={},Vw=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Vw(e[n]);return t}return e},$I=(e,t,n,r,i)=>{let o=Vw(e),a=Qo[o]||(Qo[o]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(o));if(!Qo[a]){let l=o!==e?e:(c=>{let d,f,m=[{}];for(;d=zI.exec(c.replace(UI,""));)d[4]?m.shift():d[3]?(f=d[3].replace(Yw," ").trim(),m.unshift(m[0][f]=m[0][f]||{})):m[0][d[1]]=d[2].replace(Yw," ").trim();return m[0]})(e);Qo[a]=Zo(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Qo.g;return n&&(Qo.g=Qo[a]),((l,c,d,f)=>{f?c.data=c.data.replace(f,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(Qo[a],t,r,s),a},HI=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":Zo(s,""):s===!1?"":s}return r+i+(a??"")},"");function Qc(e){let t=this||{},n=e.call?e(t.p):e;return $I(n.unshift?n.raw?HI(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,PI(t.target),t.g,t.o,t.k)}var Xw,dy,fy,q5=Qc.bind({g:1}),hr=Qc.bind({k:1});function Qw(e,t,n,r){Zo.p=t,Xw=e,dy=n,fy=r}function Dr(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:dy&&dy()},s),n.o=/go\d/.test(l),s.className=Qc.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),fy&&c[0]&&fy(s),Xw(c,s)}return t?t(i):i}}var Ga=M(Me(),1);var Jo=M(Me(),1),jI=e=>typeof e=="function",Rf=(e,t)=>jI(e)?e(t):e,FI=(()=>{let e=0;return()=>(++e).toString()})(),Zw=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),qI=20,py="default",Jw=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return Jw(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+o}))}}},Af=[],e_={toasts:[],pausedAt:void 0,settings:{toastLimit:qI}},Ni={},t_=(e,t=py)=>{Ni[t]=Jw(Ni[t]||e_,e),Af.forEach(([n,r])=>{n===t&&r(Ni[t])})},n_=e=>Object.keys(Ni).forEach(t=>t_(e,t)),GI=e=>Object.keys(Ni).find(t=>Ni[t].toasts.some(n=>n.id===e)),Of=(e=py)=>t=>{t_(t,e)},KI={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},WI=(e={},t=py)=>{let[n,r]=(0,rl.useState)(Ni[t]||e_),i=(0,rl.useRef)(Ni[t]);(0,rl.useEffect)(()=>(i.current!==Ni[t]&&r(Ni[t]),Af.push([t,r]),()=>{let a=Af.findIndex(([s])=>s===t);a>-1&&Af.splice(a,1)}),[t]);let o=n.toasts.map(a=>{var s,l,c;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((s=e[a.type])==null?void 0:s.removeDelay)||e?.removeDelay,duration:a.duration||((l=e[a.type])==null?void 0:l.duration)||e?.duration||KI[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...n,toasts:o}},YI=(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?.id||FI()}),Zc=e=>(t,n)=>{let r=YI(t,e,n);return Of(r.toasterId||GI(r.id))({type:2,toast:r}),r.id},Sn=(e,t)=>Zc("blank")(e,t);Sn.error=Zc("error");Sn.success=Zc("success");Sn.loading=Zc("loading");Sn.custom=Zc("custom");Sn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Of(t)(n):n_(n)};Sn.dismissAll=e=>Sn.dismiss(void 0,e);Sn.remove=(e,t)=>{let n={type:4,toastId:e};t?Of(t)(n):n_(n)};Sn.removeAll=e=>Sn.remove(void 0,e);Sn.promise=(e,t,n)=>{let r=Sn.loading(t.loading,{...n,...n?.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?Rf(t.success,i):void 0;return o?Sn.success(o,{id:r,...n,...n?.success}):Sn.dismiss(r),i}).catch(i=>{let o=t.error?Rf(t.error,i):void 0;o?Sn.error(o,{id:r,...n,...n?.error}):Sn.dismiss(r)}),e};var VI=1e3,XI=(e,t="default")=>{let{toasts:n,pausedAt:r}=WI(e,t),i=(0,Jr.useRef)(new Map).current,o=(0,Jr.useCallback)((f,m=VI)=>{if(i.has(f))return;let p=setTimeout(()=>{i.delete(f),a({type:4,toastId:f})},m);i.set(f,p)},[]);(0,Jr.useEffect)(()=>{if(r)return;let f=Date.now(),m=n.map(p=>{if(p.duration===1/0)return;let v=(p.duration||0)+p.pauseDuration-(f-p.createdAt);if(v<0){p.visible&&Sn.dismiss(p.id);return}return setTimeout(()=>Sn.dismiss(p.id,t),v)});return()=>{m.forEach(p=>p&&clearTimeout(p))}},[n,r,t]);let a=(0,Jr.useCallback)(Of(t),[t]),s=(0,Jr.useCallback)(()=>{a({type:5,time:Date.now()})},[a]),l=(0,Jr.useCallback)((f,m)=>{a({type:1,toast:{id:f,height:m}})},[a]),c=(0,Jr.useCallback)(()=>{r&&a({type:6,time:Date.now()})},[r,a]),d=(0,Jr.useCallback)((f,m)=>{let{reverseOrder:p=!1,gutter:v=8,defaultPosition:b}=m||{},E=n.filter(S=>(S.position||b)===(f.position||b)&&S.height),h=E.findIndex(S=>S.id===f.id),g=E.filter((S,w)=>w<h&&S.visible).length;return E.filter(S=>S.visible).slice(...p?[g+1]:[0,g]).reduce((S,w)=>S+(w.height||0)+v,0)},[n]);return(0,Jr.useEffect)(()=>{n.forEach(f=>{if(f.dismissed)o(f.id,f.removeDelay);else{let m=i.get(f.id);m&&(clearTimeout(m),i.delete(f.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:d}}},QI=hr`
|
|
118
|
+
from {
|
|
119
|
+
transform: scale(0) rotate(45deg);
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
to {
|
|
123
|
+
transform: scale(1) rotate(45deg);
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}`,ZI=hr`
|
|
126
|
+
from {
|
|
127
|
+
transform: scale(0);
|
|
128
|
+
opacity: 0;
|
|
129
|
+
}
|
|
130
|
+
to {
|
|
131
|
+
transform: scale(1);
|
|
132
|
+
opacity: 1;
|
|
133
|
+
}`,JI=hr`
|
|
134
|
+
from {
|
|
135
|
+
transform: scale(0) rotate(90deg);
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
to {
|
|
139
|
+
transform: scale(1) rotate(90deg);
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}`,eL=Dr("div")`
|
|
142
|
+
width: 20px;
|
|
143
|
+
opacity: 0;
|
|
144
|
+
height: 20px;
|
|
145
|
+
border-radius: 10px;
|
|
146
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
147
|
+
position: relative;
|
|
148
|
+
transform: rotate(45deg);
|
|
149
|
+
|
|
150
|
+
animation: ${QI} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
151
|
+
forwards;
|
|
152
|
+
animation-delay: 100ms;
|
|
153
|
+
|
|
154
|
+
&:after,
|
|
155
|
+
&:before {
|
|
156
|
+
content: '';
|
|
157
|
+
animation: ${ZI} 0.15s ease-out forwards;
|
|
158
|
+
animation-delay: 150ms;
|
|
159
|
+
position: absolute;
|
|
160
|
+
border-radius: 3px;
|
|
161
|
+
opacity: 0;
|
|
162
|
+
background: ${e=>e.secondary||"#fff"};
|
|
163
|
+
bottom: 9px;
|
|
164
|
+
left: 4px;
|
|
165
|
+
height: 2px;
|
|
166
|
+
width: 12px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&:before {
|
|
170
|
+
animation: ${JI} 0.15s ease-out forwards;
|
|
171
|
+
animation-delay: 180ms;
|
|
172
|
+
transform: rotate(90deg);
|
|
173
|
+
}
|
|
174
|
+
`,tL=hr`
|
|
175
|
+
from {
|
|
176
|
+
transform: rotate(0deg);
|
|
177
|
+
}
|
|
178
|
+
to {
|
|
179
|
+
transform: rotate(360deg);
|
|
180
|
+
}
|
|
181
|
+
`,nL=Dr("div")`
|
|
182
|
+
width: 12px;
|
|
183
|
+
height: 12px;
|
|
184
|
+
box-sizing: border-box;
|
|
185
|
+
border: 2px solid;
|
|
186
|
+
border-radius: 100%;
|
|
187
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
188
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
189
|
+
animation: ${tL} 1s linear infinite;
|
|
190
|
+
`,rL=hr`
|
|
191
|
+
from {
|
|
192
|
+
transform: scale(0) rotate(45deg);
|
|
193
|
+
opacity: 0;
|
|
194
|
+
}
|
|
195
|
+
to {
|
|
196
|
+
transform: scale(1) rotate(45deg);
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}`,iL=hr`
|
|
199
|
+
0% {
|
|
200
|
+
height: 0;
|
|
201
|
+
width: 0;
|
|
202
|
+
opacity: 0;
|
|
203
|
+
}
|
|
204
|
+
40% {
|
|
205
|
+
height: 0;
|
|
206
|
+
width: 6px;
|
|
207
|
+
opacity: 1;
|
|
208
|
+
}
|
|
209
|
+
100% {
|
|
210
|
+
opacity: 1;
|
|
211
|
+
height: 10px;
|
|
212
|
+
}`,oL=Dr("div")`
|
|
213
|
+
width: 20px;
|
|
214
|
+
opacity: 0;
|
|
215
|
+
height: 20px;
|
|
216
|
+
border-radius: 10px;
|
|
217
|
+
background: ${e=>e.primary||"#61d345"};
|
|
218
|
+
position: relative;
|
|
219
|
+
transform: rotate(45deg);
|
|
220
|
+
|
|
221
|
+
animation: ${rL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
222
|
+
forwards;
|
|
223
|
+
animation-delay: 100ms;
|
|
224
|
+
&:after {
|
|
225
|
+
content: '';
|
|
226
|
+
box-sizing: border-box;
|
|
227
|
+
animation: ${iL} 0.2s ease-out forwards;
|
|
228
|
+
opacity: 0;
|
|
229
|
+
animation-delay: 200ms;
|
|
230
|
+
position: absolute;
|
|
231
|
+
border-right: 2px solid;
|
|
232
|
+
border-bottom: 2px solid;
|
|
233
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
234
|
+
bottom: 6px;
|
|
235
|
+
left: 6px;
|
|
236
|
+
height: 10px;
|
|
237
|
+
width: 6px;
|
|
238
|
+
}
|
|
239
|
+
`,aL=Dr("div")`
|
|
240
|
+
position: absolute;
|
|
241
|
+
`,sL=Dr("div")`
|
|
242
|
+
position: relative;
|
|
243
|
+
display: flex;
|
|
244
|
+
justify-content: center;
|
|
245
|
+
align-items: center;
|
|
246
|
+
min-width: 20px;
|
|
247
|
+
min-height: 20px;
|
|
248
|
+
`,lL=hr`
|
|
249
|
+
from {
|
|
250
|
+
transform: scale(0.6);
|
|
251
|
+
opacity: 0.4;
|
|
252
|
+
}
|
|
253
|
+
to {
|
|
254
|
+
transform: scale(1);
|
|
255
|
+
opacity: 1;
|
|
256
|
+
}`,cL=Dr("div")`
|
|
257
|
+
position: relative;
|
|
258
|
+
transform: scale(0.6);
|
|
259
|
+
opacity: 0.4;
|
|
260
|
+
min-width: 20px;
|
|
261
|
+
animation: ${lL} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
262
|
+
forwards;
|
|
263
|
+
`,uL=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?Ga.createElement(cL,null,t):t:n==="blank"?null:Ga.createElement(sL,null,Ga.createElement(nL,{...r}),n!=="loading"&&Ga.createElement(aL,null,n==="error"?Ga.createElement(eL,{...r}):Ga.createElement(oL,{...r})))},dL=e=>`
|
|
264
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
265
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
266
|
+
`,fL=e=>`
|
|
267
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
268
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
269
|
+
`,pL="0%{opacity:0;} 100%{opacity:1;}",mL="0%{opacity:1;} 100%{opacity:0;}",gL=Dr("div")`
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
background: #fff;
|
|
273
|
+
color: #363636;
|
|
274
|
+
line-height: 1.3;
|
|
275
|
+
will-change: transform;
|
|
276
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
277
|
+
max-width: 350px;
|
|
278
|
+
pointer-events: auto;
|
|
279
|
+
padding: 8px 10px;
|
|
280
|
+
border-radius: 8px;
|
|
281
|
+
`,hL=Dr("div")`
|
|
282
|
+
display: flex;
|
|
283
|
+
justify-content: center;
|
|
284
|
+
margin: 4px 10px;
|
|
285
|
+
color: inherit;
|
|
286
|
+
flex: 1 1 auto;
|
|
287
|
+
white-space: pre-line;
|
|
288
|
+
`,yL=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=Zw()?[pL,mL]:[dL(n),fL(n)];return{animation:t?`${hr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${hr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},bL=io.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?yL(e.position||t||"top-center",e.visible):{opacity:0},o=io.createElement(uL,{toast:e}),a=io.createElement(hL,{...e.ariaProps},Rf(e.message,e));return io.createElement(gL,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):io.createElement(io.Fragment,null,o,a))});Qw(Jo.createElement);var vL=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=Jo.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return Jo.createElement("div",{ref:o,className:t,style:n},i)},xL=(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:Zw()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},SL=Qc`
|
|
289
|
+
z-index: 9999;
|
|
290
|
+
> * {
|
|
291
|
+
pointer-events: auto;
|
|
292
|
+
}
|
|
293
|
+
`,kf=16,r_=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=XI(n,o);return Jo.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:kf,left:kf,right:kf,bottom:kf,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(d=>{let f=d.position||t,m=c.calculateOffset(d,{reverseOrder:e,gutter:r,defaultPosition:t}),p=xL(f,m);return Jo.createElement(vL,{id:d.id,key:d.id,onHeightUpdate:c.updateHeight,className:d.visible?SL:"",style:p},d.type==="custom"?Rf(d.message,d):i?i(d):Jo.createElement(bL,{toast:d,position:f}))}))},Cf=Sn;var ea=M(Me()),c_=M(Y()),s_=(0,ea.createContext)({isDark:!1,toggle:()=>{}});function l_({children:e}){let[t,n]=(0,ea.useState)(!1);(0,ea.useEffect)(()=>{let i=localStorage.getItem("theme"),o=window.matchMedia("(prefers-color-scheme: dark)").matches,a=i?i==="dark":o;n(a),document.documentElement.setAttribute("data-theme",a?"dark":"light")},[]);function r(){n(i=>{let o=!i;return localStorage.setItem("theme",o?"dark":"light"),document.documentElement.setAttribute("data-theme",o?"dark":"light"),o})}return(0,c_.jsx)(s_.Provider,{value:{isDark:t,toggle:r},children:e})}var il=()=>(0,ea.useContext)(s_);var ta=M(Me()),f_=M(Y()),u_=(0,ta.createContext)(null),Jc=null,If=null;function d_({value:e,children:t}){return typeof window<"u"&&(Jc??(Jc=e)),(0,f_.jsx)(u_.Provider,{value:e,children:t})}function _L(){return Jc?Promise.resolve(Jc):(If??(If=fetch("/api/settings/public").then(e=>e.ok?e.json():{}).then(e=>(Jc=e,If=null,e)).catch(()=>(If=null,{}))),If)}function yr(){let e=(0,ta.useContext)(u_),[t,n]=(0,ta.useState)(Jc??{});return(0,ta.useEffect)(()=>{if(e)return;let r=!0;return _L().then(i=>{r&&n(i)}),()=>{r=!1}},[e]),e??t}var Lf=M(Me()),g_=M(Y()),p_=(0,Lf.createContext)(null);function m_({value:e,children:t}){return(0,g_.jsx)(p_.Provider,{value:e,children:t})}function ol(){return(0,Lf.useContext)(p_)}var my={indigo:"#6E5CF9",indigoDeep:"#4B3FE4",indigo600:"#4F46E5",cyan:"#22D3EE",ink:"#0B1020"},br=my.indigo,Zt="var(--brand-dark)";var iz=[my.indigo,"#2563eb","#0ea5e9","#0d9488","#16a34a","#ea580c","#dc2626","#db2777","#9333ea"],oz=["#111827","#1e293b",my.indigo600,"#1e3a8a","#0f766e","#9333ea"];var xr=M(Me());async function eu(){}var TL=["admin","administrator"],NL=["admin","administrator","editor","doc_manager","contributor"];var kL=["reader-organisation","reader-client"];function gy(e){return TL.includes(e)}function hy(e){return NL.includes(e)}function h_(e){return kL.includes(e)}function yy(e){return e?gy(e)||hy(e)?!0:e==="reader-organisation":!1}var b_=M(Me());vr();var ki=M(Y());function by({height:e=24,showName:t=!0,href:n,markSize:r,nameSize:i=14}){let o=yr(),{isDark:a}=il(),[s,l]=(0,b_.useState)(null),c=o.brand_color||br,d=o.site_name||"Documentation",f=o.logo_url||"",m=o.logo_dark_url||"",p=a&&m||f,v=r??e+2,b=p&&s!==p?(0,ki.jsx)("img",{src:p,alt:d,onError:()=>l(p),style:{height:`${e}px`,width:"auto",objectFit:"contain",display:"block"}}):(0,ki.jsxs)(ki.Fragment,{children:[(0,ki.jsx)("span",{"aria-hidden":!0,style:{width:`${v}px`,height:`${v}px`,borderRadius:`${Math.round(v*.27)}px`,background:c,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"var(--brand-on)",fontWeight:800,fontSize:`${Math.round(v*.52)}px`,lineHeight:1,letterSpacing:"-0.03em",fontFamily:"var(--font-sans-bold)"},children:d.trim()[0]?.toUpperCase()||"D"}),t&&(0,ki.jsx)("span",{style:{fontWeight:700,fontSize:`${i}px`,color:"var(--text-primary)",letterSpacing:"-0.01em",whiteSpace:"nowrap"},children:d})]}),E=(0,ki.jsx)("span",{style:{display:"inline-flex",alignItems:"center",gap:"8px",minWidth:0},children:b});return n?(0,ki.jsx)(Je,{href:n,style:{display:"inline-flex",alignItems:"center",textDecoration:"none",padding:"4px 6px",borderRadius:"7px",flexShrink:0},children:E}):E}var Bf=M(Me()),Df=M(Y());function al(e,t={}){let n=Bf.default.lazy(async()=>{let o=await e();return{default:"default"in o?o.default:o}}),r=t.loading;function i(o){return(0,Df.jsx)(Bf.Suspense,{fallback:r?(0,Df.jsx)(r,{}):null,children:(0,Df.jsx)(n,{...o})})}return i}function v_(e){return e?e.replace(/[-_]/g," ").replace(/\b\w/g,t=>t.toUpperCase()):""}function x_(e,t){let n=t.gradientStart||e,r=t.gradientEnd||"var(--bg)",i={glowA:n,glowB:r==="var(--bg)"?e:r};if(t.style==="solid"){let s=t.textColor||"#ffffff",l=t.iconColor||s;return{...i,glowA:e,glowB:r,button:{background:e,border:"none",boxShadow:`0 4px 14px ${e}55, 0 1px 3px rgba(0,0,0,0.08)`},labelColor:s,iconColor:l}}if(t.style==="gradient"){let s=t.textColor||e,l=t.iconColor||s;return{...i,button:{background:`linear-gradient(135deg, ${n} 0%, ${r} 100%)`,border:`1px solid color-mix(in srgb, ${n} 40%, var(--border))`,boxShadow:"0 4px 18px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06)"},labelColor:s,iconColor:l}}let o=t.textColor||"var(--brand-dark)",a=`linear-gradient(135deg, ${n}, ${r})`;return{...i,button:{background:"var(--bg)",border:"1px solid var(--border)",boxShadow:"0 2px 10px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04)"},labelColor:o,iconColor:t.iconColor||"#ffffff",iconBadge:{width:26,height:26,borderRadius:8,background:a,color:t.iconColor||"#ffffff"}}}var so=M(Me());ao();var RL=M(Y());var S_=(0,so.createContext)(null);function E_(){let e=(0,so.useContext)(S_);if(!e)throw new Error("useDocsAssistant must be used within DocsAssistantProvider");return e}function ll(){return(0,so.useContext)(S_)}var rr=M(Y());function w_({size:e=16}){return(0,rr.jsx)("svg",{width:e,height:e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,children:(0,rr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})})}function vy({parts:e,iconSize:t=16,label:n="Ask AI"}){if(e.iconBadge){let r=e.iconBadge;return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("span",{style:{width:r.width,height:r.height,borderRadius:r.borderRadius,background:r.background,color:r.color,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,rr.jsx)(w_,{size:t-2})}),(0,rr.jsx)("span",{children:n})]})}return(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("span",{style:{display:"inline-flex",alignItems:"center",color:e.iconColor,flexShrink:0},children:(0,rr.jsx)(w_,{size:t})}),(0,rr.jsx)("span",{children:n})]})}var xy=M(Y());function Sy(){let{enabled:e,open:t,openWithQuery:n,buttonTheme:r,pillLabel:i,pillPosition:o}=E_(),s=yr().brand_color||br;if(!e||t||o==="floating")return null;let l=x_(s,r),{boxShadow:c,...d}=l.button;return(0,xy.jsx)("button",{type:"button",onClick:()=>n(void 0),title:`${i} (\u2318/)`,"aria-label":i,style:{display:"inline-flex",alignItems:"center",gap:8,padding:"7px 16px 7px 10px",borderRadius:999,cursor:"pointer",fontFamily:"inherit",fontSize:13,fontWeight:600,color:l.labelColor,flexShrink:0,boxShadow:typeof c=="string"?c:void 0,transition:"opacity 0.15s",...d},onMouseEnter:f=>{f.currentTarget.style.opacity="0.9"},onMouseLeave:f=>{f.currentTarget.style.opacity="1"},children:(0,xy.jsx)(vy,{parts:l,iconSize:14,label:i})})}function __(e){let t=e.startsWith("/")&&!e.startsWith("//")?e:"/";globalThis.location.assign(t)}var OL="docmind:cache:";function CL(){try{return typeof window<"u"&&!!window.localStorage}catch{return!1}}function ML(){let e=[];try{for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n?.startsWith(OL)&&e.push(n)}}catch{}return e}function T_(){if(CL())try{for(let e of ML())localStorage.removeItem(e)}catch{}}function IL(){typeof document>"u"||(document.cookie="docmind-project=; path=/; max-age=0; SameSite=Lax")}async function N_(){await eu({redirect:!1}),IL(),T_(),__("/login")}var Ey="docmind:projects-changed";var Ae=M(Y()),nD=al(()=>Promise.resolve().then(()=>(L_(),I_)),{ssr:!1}),rD=al(()=>Promise.resolve().then(()=>(lT(),sT)),{ssr:!1});function Ry({session:e,activeProject:t,reader:n=null,basePath:r,homeHref:i,editorHref:o="/editor",assistantEnabled:a=!1,authRequired:s=!0,showNotifications:l=!0,hideSearch:c=!1}){let d=r.endsWith("/preview"),f=yr(),m=ll(),[p,v]=(0,xr.useState)(!1),b=we=>{v(!1),m?.openWithQuery(we)},[E,h]=(0,xr.useState)(!1),[g,S]=(0,xr.useState)(!1),[w,C]=(0,xr.useState)([]),[O,T]=(0,xr.useState)(""),[D,q]=(0,xr.useState)(!1),{isDark:Z,toggle:re}=il(),me=e?.user?.role,he=hy(me??""),de=!e&&!!n,X=!e&&!n,N=e?.user?.name??n?.name??"",U=e?.user?.email??n?.email??"";async function ae(){if(xe(),d){await N_();return}let we=!r,Ue=i??(r||"/");if(!s){e&&await eu({redirect:!1}),globalThis.location.href=Ue;return}let Se=new URLSearchParams;we?(Se.set("next","/"),t&&Se.set("project",t.slug)):Se.set("next",r);let Ye=`/reader/login?${Se.toString()}`;e&&await eu({redirect:!1}),globalThis.location.href=Ye}let j=(0,xr.useCallback)(()=>{e&&fetch("/api/project-context").then(we=>we.json()).then(we=>C(we.projects||[])).catch(()=>{})},[e]);(0,xr.useEffect)(()=>{j()},[j]),(0,xr.useEffect)(()=>(window.addEventListener(Ey,j),()=>window.removeEventListener(Ey,j)),[j]),(0,xr.useEffect)(()=>{g&&j()},[g,j]),(0,xr.useEffect)(()=>{let we=Se=>{(Se.metaKey||Se.ctrlKey)&&Se.key==="k"&&(Se.preventDefault(),v(!0))},Ue=Se=>{Se.target.closest("[data-user-menu]")||(h(!1),S(!1),T(""))};return globalThis.addEventListener("keydown",we),globalThis.addEventListener("click",Ue),()=>{globalThis.removeEventListener("keydown",we),globalThis.removeEventListener("click",Ue)}},[]);let A=f.brand_color||br,I=f.footer_website_url||"";async function L(we){if(we===t?.slug){S(!1);return}q(!0);let Ue=d?"preview":"docs",Ye=await(await fetch("/api/project-context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:we,portal:Ue})})).json().catch(()=>({}));window.location.href=Ye.redirectUrl??`/${we}/${Ue}`}let K=w.filter(we=>!O||we.name.toLowerCase().includes(O.toLowerCase())),fe=!!e&&!(h_(me??"")&&w.length<=1);function xe(){h(!1),S(!1),T("")}return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("header",{style:{height:"52px",background:"var(--bg)",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"center",padding:"0 16px",gap:"8px",flexShrink:0,zIndex:100,position:"relative"},children:[(0,Ae.jsx)("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:(0,Ae.jsx)(by,{href:i??(r||"/"),height:24})}),c?(0,Ae.jsx)("div",{style:{flex:1}}):(0,Ae.jsx)("div",{style:{flex:1,display:"flex",justifyContent:"center",alignItems:"center",padding:"0 16px",minWidth:0},children:(0,Ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%",maxWidth:480},children:[(0,Ae.jsxs)("button",{onClick:()=>v(!0),title:"Search (\u2318K)",style:{display:"flex",alignItems:"center",gap:"8px",padding:"7px 14px",background:`${A}0d`,border:`1px solid ${A}28`,borderRadius:"999px",cursor:"pointer",fontSize:"13px",color:"var(--text-muted)",fontFamily:"inherit",flex:1,minWidth:0,maxWidth:400,width:"100%",justifyContent:"space-between"},children:[(0,Ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px",minWidth:0},children:[(0,Ae.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,Ae.jsx)("span",{children:"Search documentation"})]}),(0,Ae.jsx)("kbd",{style:{fontSize:"10px",background:`${A}15`,border:`1px solid ${A}30`,padding:"1px 6px",borderRadius:"999px",color:Zt,fontFamily:"inherit",lineHeight:1.6,fontWeight:600,flexShrink:0},children:"\u2318K"})]}),a&&!d&&(0,Ae.jsx)(Sy,{})]})}),I&&(0,Ae.jsxs)("a",{href:I,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 14px",background:A,color:"var(--brand-on)",borderRadius:"20px",fontSize:"13px",fontWeight:600,textDecoration:"none",flexShrink:0,transition:"opacity 0.15s"},onMouseEnter:we=>we.currentTarget.style.opacity="0.85",onMouseLeave:we=>we.currentTarget.style.opacity="1",children:[(0,Ae.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),"Website"]}),e&&l&&(0,Ae.jsx)(nD,{docsBasePath:r,projectSlug:t?.slug}),(0,Ae.jsx)("button",{onClick:re,title:Z?"Light mode":"Dark mode",style:{width:"32px",height:"32px",borderRadius:"8px",border:"1px solid var(--border)",background:"var(--bg-subtle)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-secondary)",flexShrink:0},children:Z?(0,Ae.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,Ae.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}),!X&&(0,Ae.jsxs)("div",{style:{position:"relative"},"data-user-menu":!0,children:[(0,Ae.jsxs)("button",{onClick:we=>{we.stopPropagation(),h(Ue=>!Ue)},style:{display:"flex",alignItems:"center",gap:"7px",padding:"3px 8px 3px 3px",border:"1px solid var(--border)",borderRadius:"8px",background:"none",cursor:"pointer",fontFamily:"inherit"},children:[(0,Ae.jsx)("div",{style:{width:"26px",height:"26px",borderRadius:"50%",background:A+"20",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"11px",fontWeight:700,color:Zt,flexShrink:0},children:N?.[0]?.toUpperCase()||"?"}),(0,Ae.jsx)("svg",{width:"11",height:"11",fill:"none",stroke:"var(--text-muted)",viewBox:"0 0 24 24",children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),E&&(0,Ae.jsxs)("div",{style:{position:"absolute",right:0,top:"calc(100% + 6px)",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:"12px",boxShadow:"var(--elevation-lg)",minWidth:"240px",zIndex:200,overflow:"hidden"},children:[fe&&(0,Ae.jsxs)("div",{style:{borderBottom:"1px solid var(--border)"},children:[(0,Ae.jsxs)("button",{onClick:we=>{we.stopPropagation(),S(Ue=>!Ue)},style:{width:"100%",display:"flex",alignItems:"center",gap:"10px",padding:"12px 14px",background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",textAlign:"left"},children:[(0,Ae.jsx)("span",{style:{fontSize:"16px",color:Zt,lineHeight:1},children:"\u25C8"}),(0,Ae.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Ae.jsx)("p",{style:{margin:0,fontSize:"13px",fontWeight:600,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t?.name||"Select project"}),(0,Ae.jsx)("p",{style:{margin:0,fontSize:"11px",color:"var(--text-muted)"},children:"Switch workspace"})]}),(0,Ae.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"var(--text-muted)",viewBox:"0 0 24 24",style:{transform:g?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s",flexShrink:0},children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),g&&(0,Ae.jsxs)("div",{style:{padding:"4px 8px 8px",background:"var(--bg-subtle)",borderTop:"1px solid var(--border)"},children:[(0,Ae.jsx)("input",{value:O,onChange:we=>T(we.target.value),placeholder:"Search projects",style:{width:"100%",padding:"6px 10px",border:"1px solid var(--border)",borderRadius:"6px",fontSize:"12px",background:"var(--bg)",color:"var(--text-primary)",fontFamily:"inherit",outline:"none",boxSizing:"border-box",marginBottom:"4px"}}),(0,Ae.jsxs)("div",{style:{maxHeight:"160px",overflowY:"auto"},children:[K.length===0&&(0,Ae.jsx)("p",{style:{margin:"8px",fontSize:"12px",color:"var(--text-muted)",textAlign:"center"},children:"No projects found"}),K.map(we=>{let Ue=we.slug===t?.slug;return(0,Ae.jsxs)("button",{onClick:()=>L(we.slug),disabled:D,style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",border:"none",borderRadius:"6px",background:Ue?A+"12":"transparent",cursor:"pointer",fontFamily:"inherit",textAlign:"left",marginBottom:"1px"},children:[(0,Ae.jsx)("div",{style:{width:"22px",height:"22px",borderRadius:"5px",background:Ue?A+"25":"var(--bg-muted)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700,color:Ue?Zt:"var(--text-muted)",flexShrink:0},children:we.name[0]?.toUpperCase()}),(0,Ae.jsx)("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:Ue?600:400,color:"var(--text-primary)"},children:we.name}),Ue&&(0,Ae.jsx)("svg",{width:"12",height:"12",fill:"none",viewBox:"0 0 24 24",style:{stroke:Zt,flexShrink:0},children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})]},we.id)})]})]})]}),(0,Ae.jsxs)("div",{style:{padding:"12px 14px",borderBottom:"1px solid var(--border)"},children:[(0,Ae.jsx)("p",{style:{margin:0,fontSize:"13px",fontWeight:600,color:"var(--text-primary)"},children:N}),(0,Ae.jsx)("p",{style:{margin:"2px 0 0",fontSize:"11px",color:"var(--text-muted)"},children:U}),(0,Ae.jsx)("span",{style:{display:"inline-block",marginTop:"6px",fontSize:"10px",padding:"2px 8px",background:A+"15",color:Zt,borderRadius:"20px",fontWeight:600},children:de?"Reader":v_(me)})]}),he&&(0,Ae.jsxs)("a",{href:o,onClick:xe,style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",fontSize:"13px",color:"var(--text-secondary)",textDecoration:"none",borderBottom:"1px solid var(--border)"},children:[(0,Ae.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Editor workspace"]}),(0,Ae.jsxs)("button",{onClick:ae,style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",fontSize:"13px",color:"var(--danger-accent)",background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",textAlign:"left"},children:[(0,Ae.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ae.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),"Sign out"]})]})]})]}),!c&&(0,Ae.jsx)(rD,{open:p,onClose:()=>v(!1),basePath:r,projectSlug:t?.slug,assistantEnabled:a&&!d,onAskAssistant:b,minimal:!0})]})}var cT="api_reference_label",uT="api_reference_hidden",dT="api_reference_icon",fT="api_reference_order";var cl="API Reference";ra();var lo=M(Me());vr();Wa();ul();var iD=new Set(["_next","api","login","reader","auth","mcp","search-mcp","og","rss","llms.txt","llms-full.txt","sitemap.xml","robots.txt","favicon.ico"]),oD=["/docs/auth"];function pT(e){let t=e.split("/").filter(Boolean)[0];if(t&&iD.has(t))return t;for(let n of oD)if(e===n||e.startsWith(n+"/"))return n;return null}function mT(e){return e.landingRoute??`/${e.slug}`}function My(e,t){return`${e==="/"?"":e}/${t}`}function ru(e,t){return`${e.replace(/\/+$/,"")}${Cy(`/${t.replace(/^\/+/,"")}`)}`}function It(e,t,n,r){let i=t==="/"?e||"/":`${e}${Cy(t)}`,o=ei(i,n);return r?`${o}#${r}`:o}var lD=new Set(["editor","admin","onboarding"]);function Hf(e,t,n){if(!e||!(e.endsWith("/docs")||e.endsWith("/preview")))return null;let r=t.trim();if(!r.startsWith("/")||r.startsWith("//"))return null;let i=r.indexOf("#"),o=i>=0?r.slice(0,i):r,a=i>=0?r.slice(i+1):"",s=o.indexOf("?"),l=(s>=0?o.slice(0,s):o)||"/",c=s>=0?o.slice(s+1):"";if(l==="/")return null;if(l===e||l.startsWith(`${e}/`))return ei(`${l}${c?`?${c}`:""}${a?`#${a}`:""}`,n);if(/^\/[^/]+\/(?:docs|preview)(?:\/|$)/.test(l))return null;let f=l.split("/").filter(Boolean)[0];if(!f||lD.has(f)||pT(l))return null;let m=It(e,l,n,a||null);if(!c)return m;let p=m.indexOf("#"),v=p>=0?m.slice(0,p):m,b=p>=0?m.slice(p):"";return`${v}${v.includes("?")?"&":"?"}${c}${b}`}ul();function jf(e,t,n){let r=Ri(e).split("/").filter(Boolean),i="/"+r.join("/"),o=d=>t.find(f=>f.id===d.sectionId),a=n.find(d=>d.route===i);if(a)return{section:o(a)??t[0],page:a};let s=t.find(d=>d.slug===r[0]);if(s&&r.length===1)return{section:s,page:void 0};let l=r.at(-1),c=l?n.find(d=>d.slug===l):void 0;return c?{section:o(c)??s??t[0],page:c}:{section:s??t[0],page:void 0}}function Ff(e,t){if(!t?.length)return!1;let n="/"+Ri(e).split("/").filter(Boolean).join("/"),r=i=>i.kind==="group"?i.children.some(r):i.kind==="doc"?n===i.route:n===i.route||n.startsWith(i.route==="/"?"/":`${i.route}/`);return t.some(r)}ao();zf();Uf();var it=M(Y());function Iy({basePath:e,projectSlug:t,initialNav:n,branchQuery:r}){let i=oo(),o=ol(),[a,s]=(0,lo.useState)(n?.sections??[]),l=yr(),[c,d]=(0,lo.useState)(n?.hasApiSpecs??!1),[f,m]=(0,lo.useState)(!!n),p=e.endsWith("/preview");(0,lo.useEffect)(()=>{n&&(s(n.sections),d(n.hasApiSpecs),m(!0))},[n]);let v=ll(),[b,E]=(0,lo.useState)(!1);if((0,lo.useEffect)(()=>{let I=window.matchMedia("(max-width: 900px)"),L=()=>E(I.matches);return L(),I.addEventListener("change",L),()=>I.removeEventListener("change",L)},[]),(0,lo.useEffect)(()=>{if(n)return;let I=Ka(e),L=!1;return Promise.all([fetch(di("/api/tabs",t,I)).then(K=>K.json()).then(K=>{L||s(Array.isArray(K)?K:[])}),fetch(di(p?"/api/specs?nav=preview":"/api/specs?published=true",t,I)).then(K=>K.ok?K.json():[]).then(K=>{L||d(Array.isArray(K)&&K.length>0)})]).catch(()=>{}).finally(()=>{L||m(!0)}),()=>{L=!0}},[p,t,e,n]),!f)return(0,it.jsx)("div",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg)",flexShrink:0,minHeight:42},"aria-busy":"true"});if(a.length===0&&!c)return null;let h=l.brand_color||br,g=Pf(i,e,t),S=Ff(g,o?.apiTree),w=S?"":o?jf(g,a,o.nav.pages).section?.slug??"":g.split("/").filter(Boolean)[0]??"",C=l[cT]||cl,O=l[uT]==="true",T=l[dT]||null,D=Number(l[fT]),q=Number.isFinite(D)?D:9999,Z=n?.apiReferenceOrder??q,re=o?.apiLandingRoute??null,me=c&&!!re&&(!O||p),he=O&&p,de=.9;he?de=.4:S&&(de=1);let X={display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",fontSize:"13px",fontWeight:400,lineHeight:1.5,borderRadius:6,color:"var(--docs-nav-text)",textDecoration:"none",whiteSpace:"nowrap",transition:"opacity 0.15s, background 0.15s",flexShrink:0},N=[...a.map(I=>({kind:"section",order:I.order??0,section:I})),...me?[{kind:"api",order:Z}]:[]];N.sort((I,L)=>I.order-L.order);let U=!!v?.enabled&&!p,ae=!!v?.open&&!b,j=v?.effectiveWidth??420,A=v?.panelControls;return(0,it.jsx)("div",{style:{borderBottom:"1px solid var(--border)",background:"var(--bg)",flexShrink:0},children:(0,it.jsxs)("nav",{style:{display:"flex",alignItems:"stretch",minHeight:42},children:[(0,it.jsx)("div",{style:{flex:1,display:"flex",alignItems:"center",gap:10,minWidth:0,overflowX:"auto",padding:"5px 20px"},children:N.map(I=>{if(I.kind==="section"){let L=I.section,K=w===L.slug,fe=It(e,mT(L),r);return(0,it.jsxs)(Je,{href:fe,prefetch:!1,onNavigate:xe=>{i===fe.split("?")[0]&&xe.preventDefault()},style:{...X,fontWeight:400,background:K?h:"transparent",color:K?"var(--brand-on)":"var(--docs-nav-text)",opacity:K?1:.9},onMouseEnter:xe=>{K||(xe.currentTarget.style.opacity="1")},onMouseLeave:xe=>{K||(xe.currentTarget.style.opacity="0.9")},children:[L.icon&&(0,it.jsx)("span",{style:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:(0,it.jsx)(hn,{icon:L.icon,size:15})}),L.name]},L.id)}return(0,it.jsxs)(Je,{href:It(e,re,r),prefetch:!1,title:he?`${C} \u2014 hidden from the published docs portal`:void 0,style:{...X,fontWeight:400,background:S?h:"transparent",color:S?"var(--brand-on)":"var(--docs-nav-text)",opacity:de},onMouseEnter:L=>{!S&&!he&&(L.currentTarget.style.opacity="1")},onMouseLeave:L=>{!S&&!he&&(L.currentTarget.style.opacity="0.9")},children:[T?(0,it.jsx)(hn,{icon:T,size:13}):(0,it.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})}),C,he&&(0,it.jsx)("span",{style:{fontSize:"9.5px",fontWeight:700,padding:"1px 6px",borderRadius:"9px",background:"var(--bg-subtle)",border:"1px solid var(--border)",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Hidden"})]},"__api__")})}),U&&ae&&(0,it.jsxs)("div",{style:{width:j,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"0 14px",borderLeft:"1px solid var(--border)",boxSizing:"border-box"},children:[(0,it.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,it.jsx)("span",{style:{width:28,height:28,borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",background:`${h}14`,color:Zt,flexShrink:0},children:(0,it.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})})}),(0,it.jsx)("p",{style:{margin:0,fontSize:14,fontWeight:700,color:"var(--text-primary)"},children:"Ask AI"})]}),(0,it.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2,flexShrink:0},children:[(0,it.jsx)(qf,{label:"New chat",onClick:()=>A?.onNewChat(),children:(0,it.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})}),(0,it.jsx)(qf,{label:"Clear conversation",onClick:()=>A?.onClear(),children:(0,it.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6M9 7V4a1 1 0 011-1h4a1 1 0 011 1v3m-7 0h8"})})}),(0,it.jsx)(qf,{label:v.expanded?"Collapse panel":"Expand panel",onClick:()=>A?.onExpand(),children:v.expanded?(0,it.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 9H5V5m10 4h4V5M9 15H5v4m10-4h4v4"})}):(0,it.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4"})})}),(0,it.jsx)(qf,{label:"Close",onClick:()=>A?.onClose(),children:(0,it.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,it.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]})]})})}function qf({label:e,onClick:t,children:n}){return(0,it.jsx)("button",{type:"button","aria-label":e,title:e,onClick:t,style:{width:30,height:30,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8,border:"1px solid transparent",cursor:"pointer",background:"transparent",color:"var(--text-muted)"},onMouseEnter:r=>{r.currentTarget.style.background="var(--bg-muted)"},onMouseLeave:r=>{r.currentTarget.style.background="transparent"},children:n})}var Sr=M(Me());vr();ao();ra();zf();Uf();function co(e,t,n){return[...e.map(i=>({kind:"page",order:i.order,name:i.title,item:i})),...t.map(i=>({kind:"group",order:i.order,name:i.name,item:i})),...n.map(i=>({kind:"separator",order:i.order,name:i.name,item:i}))].sort((i,o)=>i.order!==o.order?i.order-o.order:i.name.localeCompare(o.name))}var iu={marginLeft:6,paddingLeft:18,borderLeft:"1px solid var(--border)"};function gT(e,t,n){if(!e)return{};let r=t.find(a=>a.slug===e);if(!r?.groupId)return{};let i={},o=r.groupId;for(;o;)i[o]=!0,o=n.find(s=>s.id===o)?.parentId;return i}var pt=M(Me());ao();Ai();ra();Wa();ul();var ou=M(Y());function Ya({onClick:e,direction:t,title:n}){return(0,ou.jsx)("button",{type:"button",className:"docs-sidebar-edge-toggle",onClick:e,title:n,"aria-label":n,children:(0,ou.jsx)("svg",{width:"11",height:"11",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,children:t==="expand"?(0,ou.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"}):(0,ou.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})})}var dl=M(Y());function au({onExpand:e,label:t="Documentation Index",asideClassName:n}){return(0,dl.jsxs)("aside",{className:`${n} docs-sidebar-collapsed-rail`,children:[(0,dl.jsx)(Ya,{onClick:e,direction:"expand",title:"Show sidebar"}),(0,dl.jsx)("button",{type:"button",className:"docs-sidebar-collapsed-rail__body",onClick:e,"aria-label":t,children:(0,dl.jsx)("span",{className:"docs-sidebar-collapsed-rail__label",children:t})})]})}var Le=M(Y()),hT="docmind-apinav-collapsed";function Ly({portalBase:e,tree:t,brandColor:n=br,branchQuery:r=""}){let i=na(),o=Ri(oo()),a=(0,pt.useCallback)(A=>It(e,A.route),[e]),s=(0,pt.useCallback)((A,I)=>It(e,My(A.route,I)),[e]),l=(0,pt.useCallback)((A,I)=>It(e,My(A.route,I)),[e]),c=yr(),[d,f]=(0,pt.useState)(""),m=d.trim().length>0,p=(0,pt.useMemo)(()=>{let A=I=>{let L=Ri(a(I));return o===L||o.startsWith(`${L}/`)};for(let I of t){if(I.kind==="spec"&&A(I))return I.slug;if(I.kind==="group"){for(let L of I.children)if(L.kind==="spec"&&A(L))return L.slug}}return""},[t,o,a]),v=c.sidebar_collapsible!=="false",[b,E]=(0,pt.useState)(!1);(0,pt.useEffect)(()=>{E(localStorage.getItem(hT)==="true")},[]);let h=(0,pt.useCallback)(A=>{E(A);try{localStorage.setItem(hT,String(A))}catch{}},[]),[g,S]=(0,pt.useState)({}),w=(0,pt.useCallback)((A,I)=>{S(L=>({...L,[A]:I}))},[]),C=(0,pt.useCallback)((A,I)=>w(A,!I),[w]),O=(0,pt.useCallback)((A,I)=>{let L=g[A];return L===void 0?I:L},[g]);(0,pt.useEffect)(()=>{let A={},I=L=>{A[L.id]=!0;for(let K of L.groups)(o===Ri(l(L,K.tagRouteSegment))||K.items.some(xe=>o===Ri(s(L,xe.routeSlug))))&&(A[`${L.id}::${K.tagSlug}`]=!0)};for(let L of t)if(L.kind==="group"){let K=L.children.find(fe=>fe.kind==="spec"&&fe.slug===p);if(!K)continue;A[`folder:${L.id}`]=!0,I(K)}else L.kind==="spec"&&L.slug===p&&I(L);Object.keys(A).length!==0&&S(L=>{let K=!1,fe={...L};for(let[xe,ze]of Object.entries(A))fe[xe]!==ze&&(fe[xe]=ze,K=!0);return K?fe:L})},[t,p,o,s,l]);let T=d.trim().toLowerCase(),D=(0,pt.useCallback)(A=>A.summary.toLowerCase().includes(T)||A.path.toLowerCase().includes(T)||A.method.toLowerCase().includes(T),[T]),q=(0,pt.useMemo)(()=>{let A=[],I=(K,fe)=>{m&&!K.title.toLowerCase().includes(T)||A.push({type:"doc",id:`doc:${K.id}`,level:fe,href:It(e,K.route),label:K.title})},L=(K,fe)=>{let xe=m?K.groups.map(Ye=>({g:Ye,items:Ye.items.filter(D)})).filter(Ye=>Ye.items.length>0):K.groups.map(Ye=>({g:Ye,items:Ye.items})),ze=m&&K.name.toLowerCase().includes(T);if(m&&xe.length===0&&!ze)return;let we=K.slug===p,Ue=m?!0:O(K.id,!1);if(A.push({type:"spec",id:`spec:${K.id}`,level:fe,href:a(K),label:K.name,icon:K.icon,expandable:K.groups.length>0,expanded:Ue,active:we}),!Ue)return;A.push({type:"overview",id:`ov:${K.id}`,level:fe+1,href:a(K),label:"Overview"});let Se=m?xe:K.groups.map(Ye=>({g:Ye,items:Ye.items}));for(let{g:Ye,items:jt}of Se){let te=`${K.id}::${Ye.tagSlug}`,Ie=m?!0:O(te,!1),ke=l(K,Ye.tagRouteSegment);if(A.push({type:"group",id:`grp:${te}`,level:fe+1,href:ke,label:Ye.tag,expanded:Ie,active:o===Ri(ke)}),!!Ie)for(let Qe of jt)A.push({type:"op",id:`op:${K.id}:${Qe.slug}`,level:fe+2,href:s(K,Qe.routeSlug),label:Qe.summary,method:Qe.method,deprecated:Qe.deprecated})}};for(let K of t){if(K.kind==="doc"){I(K,0);continue}if(K.kind==="spec"){L(K,0);continue}let fe=m?!0:O(`folder:${K.id}`,!1);if((!m||K.children.some(ze=>ze.kind==="doc"?ze.title.toLowerCase().includes(T):ze.name.toLowerCase().includes(T)||ze.groups.some(we=>we.items.some(D))))&&(A.push({type:"folder",id:`folder:${K.id}`,level:0,label:K.name,icon:K.icon,expanded:fe}),!!fe))for(let ze of K.children)ze.kind==="doc"?I(ze,1):L(ze,1)}return A},[t,e,a,s,l,p,m,T,D,O,o]),Z=(0,pt.useCallback)(A=>{i.push(ei(A,r))},[i,r]),re=(0,pt.useCallback)(A=>o===Ri(A),[o]),me=(0,pt.useRef)(new Map),[he,de]=(0,pt.useState)(null),X=q.some(A=>A.id===he)?he:q[0]?.id??null,N=(0,pt.useCallback)(A=>{A&&(de(A),me.current.get(A)?.focus())},[]),U=(0,pt.useCallback)(A=>A.type==="spec"?{key:A.id.slice(5),open:A.expanded}:A.type==="group"?{key:A.id.slice(4),open:A.expanded}:A.type==="folder"?{key:A.id,open:A.expanded}:null,[]),ae=(0,pt.useCallback)(A=>{if(A.type==="group"){Z(A.href);return}if(A.type==="folder"){let I=U(A);C(I.key,I.open);return}if(A.type==="spec"){let I=U(A);if(A.expandable){I.open?w(I.key,!1):(w(I.key,!0),A.active||Z(A.href));return}Z(A.href);return}"href"in A&&Z(A.href)},[Z,C,w,U]),j=(0,pt.useCallback)(A=>{let I=q.findIndex(K=>K.id===X);if(I<0)return;let L=q[I];switch(A.key){case"ArrowDown":A.preventDefault(),N(q[Math.min(I+1,q.length-1)]?.id);break;case"ArrowUp":A.preventDefault(),N(q[Math.max(I-1,0)]?.id);break;case"Home":A.preventDefault(),N(q[0]?.id);break;case"End":A.preventDefault(),N(q[q.length-1]?.id);break;case"ArrowRight":{A.preventDefault();let K=U(L);K&&!K.open?w(K.key,!0):K&&K.open&&N(q[I+1]?.id);break}case"ArrowLeft":{A.preventDefault();let K=U(L);if(K&&K.open){w(K.key,!1);break}for(let fe=I-1;fe>=0;fe--)if(q[fe].level<L.level){N(q[fe].id);break}break}case"Enter":case" ":A.preventDefault(),ae(L);break}},[q,X,N,U,w,ae]);return v&&b?(0,Le.jsx)(au,{asideClassName:"api-nav-panel docs-sidebar",label:"API Reference",onExpand:()=>h(!1)}):(0,Le.jsxs)("aside",{className:v?"api-nav-panel docs-sidebar--edge-toggle":"api-nav-panel",style:{width:"290px",flexShrink:0,height:"100%",display:"flex",flexDirection:"column",borderRight:"1px solid var(--border)",background:"var(--bg)",overflow:v?"visible":"hidden"},children:[v&&(0,Le.jsx)(Ya,{onClick:()=>h(!0),direction:"collapse",title:"Hide sidebar"}),(0,Le.jsx)("div",{style:{padding:"16px 12px 12px"},children:(0,Le.jsxs)("div",{style:{position:"relative"},children:[(0,Le.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",color:"var(--text-muted)"},children:(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,Le.jsx)("input",{value:d,onChange:A=>f(A.target.value),placeholder:"Search endpoints","aria-label":"Search endpoints",style:{width:"100%",padding:"7px 10px 7px 30px",fontSize:"12.5px",fontFamily:"inherit",color:"var(--text-primary)",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"8px",outline:"none",boxSizing:"border-box"}})]})}),(0,Le.jsxs)("div",{role:"tree","aria-label":"API reference",onKeyDown:j,style:{flex:1,overflowY:"auto",padding:"0 8px 20px",minHeight:0},children:[q.map(A=>{let I=xe=>{xe?me.current.set(A.id,xe):me.current.delete(A.id)},L=A.id===X?0:-1,K=()=>de(A.id);if(A.type==="doc"||A.type==="overview"||A.type==="op")return(0,Le.jsx)(uD,{ref:I,row:A,tabIndex:L,active:re(A.href),brandColor:n,onFocus:K,onActivate:()=>Z(A.href)},A.id);if(A.type==="folder"){let xe=U(A);return(0,Le.jsx)(pD,{ref:I,row:A,tabIndex:L,onFocus:K,onToggle:()=>C(xe.key,xe.open)},A.id)}if(A.type==="spec")return(0,Le.jsx)(dD,{ref:I,row:A,tabIndex:L,brandColor:n,onFocus:K,onActivate:()=>ae(A)},A.id);let fe=U(A);return(0,Le.jsx)(fD,{ref:I,row:A,tabIndex:L,brandColor:n,onFocus:K,onToggle:()=>C(fe.key,fe.open),onNavigate:()=>Z(A.href)},A.id)}),q.length===0&&(0,Le.jsx)("p",{style:{padding:"16px 10px",fontSize:"12.5px",color:"var(--text-muted)",textAlign:"center"},children:m?`No endpoints match \u201C${d}\u201D`:"No API reference content yet."})]})]})}var Dy=({open:e})=>(0,Le.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0,opacity:.55,color:"var(--text-primary)",transform:e?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s"},children:(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.25,d:"M9 5l7 7-7 7"})}),uD=(0,pt.forwardRef)(function({row:t,tabIndex:n,active:r,brandColor:i,onFocus:o,onActivate:a},s){let l=`${10+t.level*14}px`;return(0,Le.jsx)("div",{ref:s,role:"treeitem","aria-selected":r,"aria-level":t.level+1,tabIndex:n,onFocus:o,onClick:a,className:"api-nav-item",style:{display:"flex",alignItems:"center",gap:"7px",cursor:"pointer",padding:`${t.type==="op"?"5px":"6px"} 8px 5px ${l}`,borderRadius:"6px",marginBottom:"1px",minWidth:0,outlineOffset:"-2px",background:r?`${i}12`:"transparent",borderLeft:r?`2px solid ${i}`:"2px solid transparent"},children:t.type==="op"?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)("span",{style:{flex:1,minWidth:0,fontSize:"13px",color:t.deprecated?"var(--text-muted)":r?Zt:"var(--docs-nav-text)",fontWeight:400,lineHeight:1.5},children:[(0,Le.jsx)("span",{style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label.replace(/\s*\(deprecated\)\s*$/i,"")}),t.deprecated&&(0,Le.jsx)("span",{style:{display:"block",fontSize:"11px",color:"var(--text-muted)",fontWeight:400},children:"(Deprecated)"})]}),(0,Le.jsx)(jn,{method:t.method,size:"xs",muted:t.deprecated})]}):(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{flexShrink:0,opacity:.5},children:t.type==="overview"?(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}):(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),(0,Le.jsx)("span",{style:{flex:1,fontSize:"13px",lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r?Zt:"var(--docs-nav-text)",fontWeight:400},children:t.label})]})})}),dD=(0,pt.forwardRef)(function({row:t,tabIndex:n,brandColor:r,onFocus:i,onActivate:o},a){return(0,Le.jsxs)("div",{ref:a,role:"treeitem","aria-expanded":t.expandable?t.expanded:void 0,"aria-selected":!1,"aria-level":t.level+1,tabIndex:n,onFocus:i,onClick:o,className:"api-nav-item",style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",padding:`6px 8px 6px ${10+t.level*14}px`,marginTop:"4px",marginBottom:"1px",borderRadius:"6px",minWidth:0,outlineOffset:"-2px",borderLeft:"2px solid transparent"},children:[(0,Le.jsx)("span",{style:{display:"flex",alignItems:"center",flexShrink:0,visibility:t.expandable?"visible":"hidden"},children:(0,Le.jsx)(Dy,{open:t.expanded})}),t.icon&&(0,Le.jsx)("span",{style:{flexShrink:0,display:"inline-flex",color:t.active?Zt:"var(--text-secondary)"},children:(0,Le.jsx)(hn,{icon:t.icon,size:14})}),(0,Le.jsx)("span",{style:{flex:1,fontSize:"13px",lineHeight:1.5,fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:t.active?Zt:"var(--docs-nav-text)"},children:t.label})]})}),fD=(0,pt.forwardRef)(function({row:t,tabIndex:n,brandColor:r,onFocus:i,onToggle:o,onNavigate:a},s){let l=`${12+t.level*14}px`;return(0,Le.jsxs)("div",{ref:s,role:"treeitem","aria-expanded":t.expanded,"aria-selected":t.active,"aria-level":t.level+1,tabIndex:n,onFocus:i,className:"api-nav-item",style:{display:"flex",alignItems:"center",gap:"6px",padding:`6px 8px 6px ${l}`,borderRadius:"6px",textAlign:"left",minWidth:0,outlineOffset:"-2px",background:t.active?`${r}12`:"transparent",borderLeft:t.active?`2px solid ${r}`:"2px solid transparent"},children:[(0,Le.jsx)("button",{type:"button","aria-label":t.expanded?"Collapse tag":"Expand tag",onClick:c=>{c.stopPropagation(),o()},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",background:"transparent",cursor:"pointer",color:"inherit"},children:(0,Le.jsx)(Dy,{open:t.expanded})}),(0,Le.jsx)("button",{type:"button",onClick:a,style:{flex:1,minWidth:0,padding:0,border:"none",background:"transparent",cursor:"pointer",textAlign:"left",fontSize:"13px",lineHeight:1.5,fontWeight:400,color:t.active?Zt:"var(--docs-nav-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label})]})}),pD=(0,pt.forwardRef)(function({row:t,tabIndex:n,onFocus:r,onToggle:i},o){return(0,Le.jsxs)("div",{ref:o,role:"treeitem","aria-expanded":t.expanded,"aria-selected":!1,"aria-level":t.level+1,tabIndex:n,onFocus:r,onClick:i,className:"api-nav-item",style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",padding:`6px 8px 6px ${10+t.level*14}px`,marginTop:"4px",marginBottom:"1px",borderRadius:"6px",minWidth:0,outlineOffset:"-2px"},children:[(0,Le.jsx)(Dy,{open:t.expanded}),(0,Le.jsx)("span",{style:{flexShrink:0,display:"inline-flex",color:"var(--text-muted)"},children:t.icon?(0,Le.jsx)(hn,{icon:t.icon,size:14}):(0,Le.jsx)("svg",{width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})})}),(0,Le.jsx)("span",{style:{flex:1,fontSize:"13px",lineHeight:1.5,fontWeight:400,color:"var(--docs-nav-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.label})]})});var yT="release_notes",bT="changelog",By="docs",mD=[By,bT,yT];function gD(e){return typeof e=="string"&&mD.includes(e)}function hD(e){return e?gD(e.mode)?e.mode:e.changelog?bT:By:By}function zy(e){return hD(e)===yT}function Py(e){for(let t of[e.releaseDate,e.publishedAt,e.createdAt]){if(!t)continue;let n=t instanceof Date?t:new Date(t);if(!Number.isNaN(n.getTime()))return n}return null}function yD(e,t){let n=Py(e),r=Py(t);if(n&&r&&n.getTime()!==r.getTime())return r.getTime()-n.getTime();if(n&&!r)return-1;if(!n&&r)return 1;let i=e.order??0,o=t.order??0;return i!==o?i-o:(e.title||"").localeCompare(t.title||"")}function Uy(e){return[...e].sort(yD)}function vT(e){return Uy(e)[0]??null}function xT(e){let t=new Map;for(let i of Uy(e)){let o=Py(i),a=o?String(o.getUTCFullYear()):"Undated",s=t.get(a);s?s.push(i):t.set(a,[i])}let n=[...t.keys()].filter(i=>i!=="Undated").sort((i,o)=>Number(o)-Number(i));return(t.has("Undated")?[...n,"Undated"]:n).map(i=>({year:i,releases:t.get(i)}))}function Gf(e){if(!e)return"";let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}function $y(e){return e.version?.trim()||e.title||"Untitled release"}function bD(e,t){let n=e.groupId??null;return n&&!t.has(n)?null:n}function Hy(e,t,n,r=null,i=new Set){if(r&&i.has(r))return[];let o=r?new Set(i).add(r):i,a=new Set(t.map(p=>p.id)),s=t.filter(p=>(p.parentId??null)===r&&!p.hidden),l=n.filter(p=>(p.groupId??null)===r),c=e.filter(p=>bD(p,a)===r),d=co(c.map(p=>({...p,order:p.order??0})),s,l),f=[],m=!1;for(let p of d){if(p.kind==="page"){m||(m=!0,f.push({kind:"years",releases:c}));continue}if(p.kind==="separator"){f.push({kind:"separator",separator:p.item});continue}f.push({kind:"group",group:p.item,children:Hy(e,t,n,p.item.id,o)})}return f}var su=M(Me());vr();ra();var at=M(Y());function vD(e){return e.expanded===!0?!0:!(e.collapsedByDefault??!0)}function ST(e,t){for(let n of e)if(n.kind==="years"&&n.releases.some(r=>r.slug===t)||n.kind==="group"&&ST(n.children,t))return!0;return!1}function ET(e){let t=[];for(let n of e)n.kind==="years"?t.push(...n.releases):n.kind==="group"&&t.push(...ET(n.children));return t}function jy({releases:e,groups:t=[],separators:n=[],basePath:r,activeSlug:i,brandColor:o,branchQuery:a,expandedGroups:s,setExpandedGroups:l}){let c=(0,su.useMemo)(()=>Hy(e,t,n),[e,t,n]),[d,f]=(0,su.useState)({}),m=s??d,p=l??f,v=vT(ET(c))?.id??null;return c.length===0?(0,at.jsx)("p",{style:{margin:"4px 0",padding:"4px 8px",fontSize:"12px",color:"var(--text-muted)"},children:"No releases yet"}):(0,at.jsx)(wT,{nodes:c,depth:0,basePath:r,branchQuery:a,activeSlug:i,brandColor:o,latestId:v,openMap:m,setOpenMap:p})}function wT({nodes:e,depth:t,basePath:n,branchQuery:r,activeSlug:i,brandColor:o,latestId:a,openMap:s,setOpenMap:l}){return(0,at.jsx)(at.Fragment,{children:e.map(c=>{if(c.kind==="separator")return(0,at.jsx)(_D,{name:c.separator.name},c.separator.id);if(c.kind==="years"){let d=c.releases[0]?.id??"years";return(0,at.jsx)(SD,{releases:c.releases,basePath:n,branchQuery:r,activeSlug:i,brandColor:o,latestId:a},`years:${d}`)}return(0,at.jsx)(xD,{group:c.group,childNodes:c.children,depth:t,basePath:n,branchQuery:r,activeSlug:i,brandColor:o,latestId:a,openMap:s,setOpenMap:l},c.group.id)})})}function xD({group:e,childNodes:t,depth:n,basePath:r,branchQuery:i,activeSlug:o,brandColor:a,latestId:s,openMap:l,setOpenMap:c}){let d=ST(t,o),f=e.id in l?l[e.id]:d||vD(e),m=e.icon?(0,at.jsx)(hn,{icon:e.icon,size:14,color:"var(--text-primary)"}):null;return(0,at.jsxs)("div",{style:{marginTop:n===0?10:2},children:[(0,at.jsxs)("button",{type:"button",onClick:()=>c(p=>({...p,[e.id]:!f})),"aria-expanded":f,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"8px",padding:"5px 8px",border:"none",background:"none",cursor:"pointer",fontFamily:"inherit",borderRadius:"6px"},children:[(0,at.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"var(--text-primary)",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0,opacity:.55,marginTop:2,transform:f?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s"},children:(0,at.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.25,d:"M9 5l7 7-7 7"})}),m,(0,at.jsx)("span",{className:"docs-nav-label",title:e.name,style:{fontSize:13,fontWeight:400,color:"var(--docs-nav-text)",flex:1,textAlign:"left",lineHeight:1.5},children:e.name})]}),f&&(0,at.jsx)("div",{style:iu,children:t.length===0?(0,at.jsx)("p",{style:{margin:"4px 0",padding:"4px 8px",fontSize:"12px",color:"var(--text-muted)"},children:"No releases yet"}):(0,at.jsx)(wT,{nodes:t,depth:n+1,basePath:r,branchQuery:i,activeSlug:o,brandColor:a,latestId:s,openMap:l,setOpenMap:c})})]})}function SD({releases:e,basePath:t,branchQuery:n,activeSlug:r,brandColor:i,latestId:o}){let a=xT(e);return(0,at.jsx)("div",{children:a.map((s,l)=>(0,at.jsx)(ED,{year:s.year,releases:s.releases,defaultOpen:l===0,activeSlug:r,latestId:o,brandColor:i,basePath:t,branchQuery:n},s.year))})}function ED({year:e,releases:t,defaultOpen:n,activeSlug:r,latestId:i,brandColor:o,basePath:a,branchQuery:s}){let l=t.some(f=>f.slug===r),[c,d]=(0,su.useState)(n||l);return(0,at.jsxs)("div",{style:{marginTop:10},children:[(0,at.jsxs)("button",{type:"button",onClick:()=>d(f=>!f),"aria-expanded":c,style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"5px 8px",border:"none",background:"none",cursor:"pointer",fontFamily:"inherit",borderRadius:"6px"},children:[(0,at.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"var(--text-primary)",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0,opacity:.55,transform:c?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s"},children:(0,at.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.25,d:"M9 5l7 7-7 7"})}),(0,at.jsx)("span",{style:{flex:1,textAlign:"left",fontSize:13,fontWeight:600,color:"var(--docs-nav-text)",lineHeight:1.5},children:e}),(0,at.jsx)("span",{style:{fontSize:11,fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:t.length})]}),c&&(0,at.jsx)("div",{style:iu,children:t.map(f=>(0,at.jsx)(wD,{release:f,active:f.slug===r,isLatest:f.id===i,brandColor:o,basePath:a,branchQuery:s},f.id))})]})}function wD({release:e,active:t,isLatest:n,brandColor:r,basePath:i,branchQuery:o}){let a=Gf(e.releaseDate??e.publishedAt??null);return e.route?(0,at.jsxs)(Je,{href:It(i,e.route,o),prefetch:!1,onNavigate:s=>{t&&(s.preventDefault(),document.getElementById("docs-content-scroll")?.scrollTo({top:0,behavior:"smooth"}))},style:{display:"block",padding:"5px 8px",borderRadius:"6px",textDecoration:"none",minWidth:0,marginBottom:"1px",background:t?r+"14":"transparent",transition:"color 0.12s, background 0.12s"},children:[(0,at.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px",minWidth:0},children:[(0,at.jsx)("span",{className:"docs-nav-label",title:$y(e),style:{flex:1,fontSize:13,lineHeight:1.45,fontWeight:t?500:400,color:t?Zt:"var(--docs-nav-text)"},children:$y(e)}),n&&(0,at.jsx)("span",{style:{flexShrink:0,marginTop:2,fontSize:"8.5px",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",padding:"1px 5px",borderRadius:"8px",background:r+"1f",color:Zt},children:"Latest"})]}),a&&(0,at.jsx)("span",{style:{display:"block",fontSize:11,color:"var(--text-muted)",marginTop:1},children:a})]}):null}function _D({name:e}){return(0,at.jsx)("div",{className:"docs-nav-label",title:e,style:{marginTop:12,marginBottom:3,padding:"4px 8px",fontSize:13,fontWeight:400,color:"var(--docs-nav-text)",lineHeight:1.5,userSelect:"none"},children:e})}function Va(e,t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])}function _T(e,t,n){let r=new Map,i=new Map,o=new Map,a=new Map,s=new Map,l=new Map,c=new Map;for(let d of e)d.sectionId&&Va(o,d.sectionId,d),d.groupId?Va(r,d.groupId,d):d.sectionId&&Va(i,d.sectionId,d);for(let d of t)d.parentId?Va(a,d.parentId,d):d.sectionId&&Va(s,d.sectionId,d);for(let d of n)d.groupId?Va(l,d.groupId,d):d.sectionId&&Va(c,d.sectionId,d);return{pagesByGroupId:r,ungroupedPagesBySectionId:i,pagesBySectionId:o,childGroupsByParentId:a,rootGroupsBySectionId:s,separatorsByGroupId:l,rootSeparatorsBySectionId:c}}var wt=M(Y());function Fy({basePath:e,projectSlug:t,initialNav:n}){let r=ol(),i=n??r?.nav,o=oo(),[a,s]=(0,Sr.useState)(i?.sections??[]),[l,c]=(0,Sr.useState)(i?.pages??[]),[d,f]=(0,Sr.useState)(i?.groups??[]),[m,p]=(0,Sr.useState)(i?.separators??[]),[v,b]=(0,Sr.useState)(!!i),E=yr(),[h,g]=(0,Sr.useState)({}),[S,w]=(0,Sr.useState)(!1),C=E.sidebar_collapsible!=="false";(0,Sr.useEffect)(()=>{w(localStorage.getItem("docmind-docs-sidebar-collapsed")==="true")},[]);function O(j){w(j),localStorage.setItem("docmind-docs-sidebar-collapsed",String(j))}let T=Pf(o,e,t),D=Ff(T,r?.apiTree),q=jf(T,a,l),Z=q.section,re=q.page?.slug??"";(0,Sr.useEffect)(()=>{if(!re||l.length===0||d.length===0)return;let j=gT(re,l,d);Object.keys(j).length!==0&&g(A=>{let I={...A,...j};return Object.keys(j).every(L=>A[L])?A:I})},[re,l,d]),(0,Sr.useEffect)(()=>{if(i)return;let j=Ka(e),A=!1;return Promise.all([fetch(di("/api/tabs",t,j)).then(I=>I.json()).then(I=>{A||s(Array.isArray(I)?I:[])}),fetch(di("/api/pages?published=true",t,j)).then(I=>I.json()).then(I=>{A||c(Array.isArray(I)?I:[])}),fetch(di("/api/groups?nav=1",t,j)).then(I=>I.json()).then(I=>{A||f(Array.isArray(I)?I:[])}),fetch(di("/api/separators",t,j)).then(I=>I.json()).then(I=>{A||p(Array.isArray(I)?I:[])})]).catch(()=>{}).finally(()=>{A||b(!0)}),()=>{A=!0}},[t,e,i]);let me=E.brand_color||br,he=(0,Sr.useMemo)(()=>_T(l,d,m),[l,d,m]);if(D)return(0,wt.jsx)(Ly,{portalBase:e,tree:r?.apiTree??[],brandColor:me});if(!v||!Z)return(0,wt.jsx)("aside",{"aria-busy":"true",style:{width:280,height:"100%",display:"flex",flexDirection:"column",borderRight:"1px solid var(--border)",background:"var(--bg)",flexShrink:0},children:(0,wt.jsx)("div",{style:{padding:"20px 16px",fontSize:"13px",color:"var(--text-muted)"},children:"Loading\u2026"})});if(C&&S)return(0,wt.jsx)(au,{asideClassName:"docs-sidebar",onExpand:()=>O(!1)});let de=zy(Z),X=he.ungroupedPagesBySectionId.get(Z.id)??[],N=(he.rootGroupsBySectionId.get(Z.id)??[]).filter(j=>!j.hidden),U=he.rootSeparatorsBySectionId.get(Z.id)??[],ae=co(X,N,U);return(0,wt.jsxs)("aside",{className:C?"docs-sidebar docs-sidebar--edge-toggle":"docs-sidebar",style:{width:280,height:"100%",display:"flex",flexDirection:"column",borderRight:"1px solid var(--border)",background:"var(--bg)",flexShrink:0,overflow:C?"visible":"hidden"},children:[C&&(0,wt.jsx)(Ya,{onClick:()=>O(!0),direction:"collapse",title:"Hide sidebar"}),(0,wt.jsx)("nav",{style:{flex:1,overflowY:"auto",padding:"16px 12px",minHeight:0},children:de?(0,wt.jsx)(jy,{releases:he.pagesBySectionId.get(Z.id)??[],groups:d.filter(j=>j.sectionId===Z.id),separators:m.filter(j=>j.sectionId===Z.id),basePath:e,activeSlug:re,brandColor:me,expandedGroups:h,setExpandedGroups:g}):ae.map(j=>j.kind==="separator"?(0,wt.jsx)(NT,{name:j.item.name},j.item.id):j.kind==="page"?(0,wt.jsx)(kT,{page:j.item,active:re===j.item.slug,brandColor:me,basePath:e},j.item.id):(0,wt.jsx)(TT,{group:j.item,pagesByGroupId:he.pagesByGroupId,childGroupsByParentId:he.childGroupsByParentId,separatorsByGroupId:he.separatorsByGroupId,depth:0,activeSlug:re,brandColor:me,basePath:e,expandedGroups:h,setExpandedGroups:g},j.item.id))})]})}function TT({group:e,pagesByGroupId:t,childGroupsByParentId:n,separatorsByGroupId:r,depth:i,activeSlug:o,brandColor:a,basePath:s,expandedGroups:l,setExpandedGroups:c}){let d=t.get(e.id)??[],f=(n.get(e.id)??[]).filter(g=>!g.hidden),m=r.get(e.id)??[],p=co(d,f,m),v=e.id in l?l[e.id]:!(e.collapsedByDefault??!0),b=e.icon?(0,wt.jsx)(hn,{icon:e.icon,size:14,color:"var(--text-primary)"}):null,E=(0,wt.jsx)("span",{className:"docs-nav-label",title:e.name,style:{fontSize:13,fontWeight:400,color:"var(--docs-nav-text)",flex:1,textAlign:"left",lineHeight:1.5},children:e.name}),h={width:"100%",display:"flex",alignItems:"flex-start",gap:"8px",padding:"5px 8px",border:"none",background:"none",fontFamily:"inherit",borderRadius:"6px"};return(0,wt.jsxs)("div",{style:{marginTop:i===0?p.length?10:8:2},children:[(0,wt.jsxs)("button",{type:"button",onClick:()=>c(g=>({...g,[e.id]:!v})),"aria-expanded":v,style:{...h,cursor:"pointer"},children:[(0,wt.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"var(--text-primary)",viewBox:"0 0 24 24","aria-hidden":!0,style:{flexShrink:0,opacity:.55,marginTop:2,transform:v?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s"},children:(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.25,d:"M9 5l7 7-7 7"})}),b,E]}),v&&(0,wt.jsxs)("div",{style:iu,children:[p.map(g=>g.kind==="separator"?(0,wt.jsx)(NT,{name:g.item.name},g.item.id):g.kind==="page"?(0,wt.jsx)(kT,{page:g.item,active:o===g.item.slug,brandColor:a,basePath:s},g.item.id):(0,wt.jsx)(TT,{group:g.item,pagesByGroupId:t,childGroupsByParentId:n,separatorsByGroupId:r,depth:i+1,activeSlug:o,brandColor:a,basePath:s,expandedGroups:l,setExpandedGroups:c},g.item.id)),p.length===0&&(0,wt.jsx)("p",{style:{margin:"4px 0",padding:"4px 8px",fontSize:"12px",color:"var(--text-muted)"},children:"No pages yet"})]})]})}function NT({name:e}){return(0,wt.jsx)("div",{role:"presentation",className:"docs-nav-label",title:e,style:{marginTop:12,marginBottom:3,padding:"4px 8px",fontSize:13,fontWeight:400,color:"var(--docs-nav-text)",lineHeight:1.5,userSelect:"none"},children:e})}function kT({page:e,active:t,brandColor:n,basePath:r}){return e.route?(0,wt.jsxs)(Je,{href:It(r,e.route),prefetch:!1,title:e.title,onNavigate:i=>{t&&(i.preventDefault(),document.getElementById("docs-content-scroll")?.scrollTo({top:0,behavior:"smooth"}))},style:{display:"flex",alignItems:"flex-start",gap:"8px",padding:"5px 8px",borderRadius:"6px",fontSize:13,lineHeight:1.5,fontWeight:400,color:t?Zt:"var(--docs-nav-text)",background:t?n+"14":"transparent",textDecoration:"none",minWidth:0,marginBottom:"1px",transition:"color 0.12s, background 0.12s"},children:[e.icon&&(0,wt.jsx)("span",{style:{flexShrink:0,marginTop:2},children:(0,wt.jsx)(hn,{icon:e.icon,size:14,color:t?Zt:"var(--text-primary)"})}),(0,wt.jsx)("span",{className:"docs-nav-label",style:{flex:1},children:e.title})]}):null}vr();var ek=M(Me());vr();ul();var AT=/\.mdx?$/i;function TD(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("//")||e.startsWith("#")}function Kf(e){return`file:${Oy(e)??e}`}function ND(e){try{return decodeURIComponent(e)}catch{return e}}function kD(e,t){let n=[];for(let r of`${e}/${t}`.split("/"))if(!(r===""||r==="."))if(r===".."){if(n.length===0)return null;n.pop()}else n.push(r);return Oy(n.join("/"))}function AD(e,t){let n=e?.trim();if(!n||TD(n))return null;let[r,i]=n.split("#"),o=ND(r.split("?")[0]);if(!o)return null;let a=[];if(!o.startsWith("/")&&t){let d=t.includes("/")?t.slice(0,t.lastIndexOf("/")):"",f=kD(d,o);f&&(AT.test(f)?a.push(Kf(f)):a.push(Kf(`${f}.md`),Kf(`${f}.mdx`),Kf(`${f}/index.md`)))}let l="/"+o.replace(/\/+$/,"").replace(AT,"").split("/").filter(Boolean).join("/");a.push(l),l.startsWith("/docs/")&&a.push(l.slice(5));let c=l.split("/").filter(Boolean).pop();return c&&a.push(c),{keys:[...new Set(a)],hash:i}}function RT(e,t,n){let r=AD(e,n);if(!r)return null;for(let i of r.keys)if(Object.prototype.hasOwnProperty.call(t,i))return{route:t[i],hash:r.hash};return null}ra();var RD={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",avif:"image/avif",ico:"image/x-icon",bmp:"image/bmp"},OT={pdf:"application/pdf"},OD={mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime"},CT={csv:"text/csv; charset=utf-8",tsv:"text/tab-separated-values; charset=utf-8",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",zip:"application/zip",gz:"application/gzip",tgz:"application/gzip"},MT={...RD,...OT,...OD,...CT};function Wf(e){return e.split(".").pop()?.toLowerCase()??""}function IT(e){return Wf(e)in OT}function LT(e){return Wf(e)in CT}function DT(e){return(e.split(/[?#]/)[0]?.split("/").pop()??"download").replace(/[^A-Za-z0-9._-]/g,"_").slice(0,100)||"download"}function CD(e){let t=[];for(let n of e.split("/"))if(!(!n||n===".")){if(n===".."){t.pop();continue}t.push(n)}return t.join("/")}function MD(e,t){if(!e||/^(https?:|data:|blob:|\/api\/assets\/)/.test(e))return e;if(e.startsWith("/")||!(e.startsWith("./")||e.startsWith("../")))return e.replace(/^\/+/,"");if(!t)return e.replace(/^\.\//,"");let n=t.includes("/")?t.slice(0,t.lastIndexOf("/")):"";return CD(n?`${n}/${e}`:e)}function BT(e,t,n){let[r,i]=e.split("?"),o=new URLSearchParams(i??"");t&&!o.has("ref")&&o.set("ref",t),n&&!o.has("project")&&o.set("project",n);let a=o.toString();return a?`${r}?${a}`:r}function uo(e,t,n,r){if(!e||/^(https?:|data:|blob:)/.test(e))return e;if(e.startsWith("/api/assets/"))return BT(e,t,r);let i=MD(e,n);return i?BT(`/api/assets/${i}`,t,r):e}function qy(e,t,n,r){let i=(e??"").trim();if(!i)return"";let o=uo(i,t,n,r);return o.startsWith("/")&&!o.startsWith("//")||/^https?:\/\//i.test(o)?o:""}function ID(e){let t=e.split("#")[0]?.split("?")[0]??"";try{return decodeURIComponent(t)}catch{return t}}function LD(e){let[t,n]=e.split("?"),r=new URLSearchParams(n??"");r.has("download")||r.set("download","1");let i=r.toString();return i?`${t}?${i}`:t}function PT(e,t,n,r){let i=e.trim();if(!i||/^(https?:|data:|blob:|mailto:|tel:)/i.test(i)||i.startsWith("//")||i.startsWith("#"))return null;let o=ID(i);if(!o||!(Wf(o)in MT))return null;let a=uo(o,t,n,r);if(!a.startsWith("/api/assets/"))return null;let s=LT(o)||IT(o);return{href:s?LD(a):a,downloadName:s?DT(o):null}}function Yf(e){if(!e)return"";let t=e.split("/");return(t[0]===""?t[1]:t[0])??""}var DD=/^#([0-9a-fA-F]{6})$/,BD={blue:"#1d4ed8",green:"#15803d",red:"#dc2626",orange:"#c2410c",purple:"#7e22ce",yellow:"#a16207",gray:"#475569"};var PD=new Set(["gray","blue","green","yellow","orange","red","purple","white","surface","white-destructive","surface-destructive"]);function zD(e){return PD.has(e)}function UD(e){return(e??"").trim().toLowerCase()==="ink"}function Gy(e){let t=(e??"").trim(),n=DD.exec(t);return n?`#${n[1].toLowerCase()}`:BD[t.toLowerCase()]??""}function Vf(e){return UD(e)?"ink":Gy(e)}function Ky(e){return Gy(e)}function zT(e){let t=Vf(e);return t?{color:t,cssVar:t==="ink"?"var(--text-primary)":t}:null}function UT(e){let t=Ky(e);return t?{color:t}:null}function $T(e){let t=(e??"").trim();if(zD(t))return{className:`dm-badge-${t}`};let n=Gy(t);return n?{className:"",style:{background:`color-mix(in srgb, ${n} 18%, var(--bg))`,color:n,borderColor:`color-mix(in srgb, ${n} 45%, transparent)`}}:{className:"dm-badge-gray"}}function Wy(e){if(!e.startsWith("("))return null;let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r==="\\"){n++;continue}if(r==="(")t++;else if(r===")"&&(t--,t===0)){let i=e.slice(1,n);return i?{inner:i,end:n+1}:null}}return null}var $D={info:"Info",note:"Note",tip:"Tip",success:"Check",warning:"Warning",danger:"Danger"};function Xf(e,t={}){let n=Object.entries(t).filter(([,r])=>r).map(([r])=>r);return[Oi(e),...n].filter(Boolean).join(" ")}var HD=/^<span data-color="(#[0-9a-fA-F]{6}|[a-z]+)">/;function jD(e){return/^<(?:p|h[1-6]) style="text-align: (?:center|right|justify)">/.test(e.trim())}function FD(e){return/^<(?:kbd|u|sup|sub)>[\s\S]*<\/(?:kbd|u|sup|sub)>$/.test(e.trim())}function qD(e){let t=HD.exec(e.trim());return!!t&&Vf(t[1])!==""}var Zy=120;var GD="__raw";var FT=720,KD=200,WD=2e3;function Jy(e){let t=typeof e=="number"?e:Number.parseInt(String(e??"").trim(),10);return Number.isFinite(t)?Math.min(WD,Math.max(KD,Math.round(t))):FT}function qT(e,t){return t!=="paragraph"||qD(e)||jD(e)||FD(e)?e:/^<[a-z][a-z0-9-]*(?:\s[^>]*)?\/?>/.test(e)?`\\${e}`:e}function Xy(e){return Array.isArray(e)?`[${e.map(Xy).join(",")}]`:e&&typeof e=="object"?`{${Object.keys(e).filter(n=>n!==GD).sort().map(n=>`${JSON.stringify(n)}:${Xy(e[n])}`).join(",")}}`:JSON.stringify(e)}function Qf(e,t){if(!t)return;let n=t.get(Xy(e));return n&&n.length>0?n.shift():void 0}function Zf(e,t){return Qf(e,t)??QD(e,t)}function eb(e,t){return e?.content?e.content.map(n=>qT(Zf(n,t),n.type)).filter(n=>n!=null).join(`
|
|
294
|
+
|
|
295
|
+
`):""}function _n(e,t=" "){return e.split(`
|
|
296
|
+
`).map(n=>n&&t+n).join(`
|
|
297
|
+
`)}function Oi(e){return Object.entries(e).filter(([,t])=>t!=null&&t!=="").map(([t,n])=>`${t}="${n}"`).join(" ")}function GT(e){let t=e.src??"",n=e.alt??"";return e.darkSrc?`{% img ${Oi({alt:n,title:e.title??void 0,srcSet:`${t} light, ${e.darkSrc} dark`})} /%}`:``}function wn(e,t){return(e??[]).map(n=>qT(Zf(n,t),n.type)).join(`
|
|
298
|
+
|
|
299
|
+
`)}var YD=new Set(["center","right","justify"]);function tb(e){let t=e?.attrs?.textAlign;return typeof t=="string"&&YD.has(t)?t:null}function KT(e){return fl(e).replace(/ {2}\n/g,"<br>")}function WT(e){let t=tb(e),n=t?KT(e.content??[]):fl(e.content??[]);return t?`<p style="text-align: ${t}">${n}</p>`:n}function VD(e){let t=e.attrs?.level??1,n=tb(e),r=n?KT(e.content??[]):fl(e.content??[]);return n?`<h${t} style="text-align: ${n}">${r}</h${t}>`:`${"#".repeat(t)} ${r}`}function Yy(e,t,n,r){return Qf(e,n)??XD(e,t,n,r?.inlineFirstParagraph)}function XD(e,t,n,r=!1){let i=e.content??[];if(i.length===0)return t.trimEnd();let[o,...a]=i,s=o.type==="paragraph",l=s?r?fl(o.content??[]):WT(o):Zf(o,n);if(a.length===0)return`${t}${l}`;let c=a.map(d=>Zf(d,n)).join(`
|
|
300
|
+
|
|
301
|
+
`);return s?`${t}${l}
|
|
302
|
+
|
|
303
|
+
${_n(c)}`:`${t}
|
|
304
|
+
${_n([l,c].join(`
|
|
305
|
+
|
|
306
|
+
`))}`}function QD(e,t){switch(e.type){case"heading":return VD(e);case"paragraph":return WT(e);case"bulletList":return(e.content??[]).map(n=>Yy(n,"- ",t)).join(`
|
|
307
|
+
`);case"orderedList":{let n=Math.max(1,Number(e.attrs?.start)||1);return(e.content??[]).map((r,i)=>Yy(r,`${n+i}. `,t)).join(`
|
|
308
|
+
`)}case"taskList":return(e.content??[]).map(n=>Yy(n,`- [${n.attrs?.checked?"x":" "}] `,t,{inlineFirstParagraph:!0})).join(`
|
|
309
|
+
`);case"blockquote":{let n=Ky(String(e.attrs?.color??"")),r=(e.content??[]).some(o=>tb(o));return!n&&!r?wn(e.content??[],t).split(`
|
|
310
|
+
`).map(o=>o?`> ${o}`:">").join(`
|
|
311
|
+
`):`<Quote${n?` color="${n}"`:""}>
|
|
312
|
+
${_n(wn(e.content??[],t))}
|
|
313
|
+
</Quote>`}case"codeBlock":{let n=e.attrs?.language??"",r=e.content?.[0]?.text??"";return`\`\`\`${n}
|
|
314
|
+
${r}
|
|
315
|
+
\`\`\``}case"mermaid":return`\`\`\`mermaid
|
|
316
|
+
${e.attrs?.code??""}
|
|
317
|
+
\`\`\``;case"rawHtml":return e.attrs?.html??"";case"callout":{let n=$D[e.attrs?.type??"info"]??"Info",r=Oi({title:e.attrs?.title});return`<${n}${r?" "+r:""}>
|
|
318
|
+
${_n(wn(e.content??[],t))}
|
|
319
|
+
</${n}>`}case"customCallout":{let n=Oi({icon:e.attrs?.icon,iconType:e.attrs?.iconType,color:e.attrs?.color});return`<Callout${n?" "+n:""}>
|
|
320
|
+
${_n(wn(e.content??[],t))}
|
|
321
|
+
</Callout>`}case"columns":return`<Columns cols={${e.attrs?.cols??2}}>
|
|
322
|
+
${_n(wn(e.content??[],t))}
|
|
323
|
+
</Columns>`;case"column":return`<Column>
|
|
324
|
+
${_n(wn(e.content??[],t))}
|
|
325
|
+
</Column>`;case"frame":{let n=Oi({caption:e.attrs?.caption});return`<Frame${n?" "+n:""}>
|
|
326
|
+
${_n(wn(e.content??[],t))}
|
|
327
|
+
</Frame>`}case"expandable":{let n=Xf({title:e.attrs?.title},{defaultOpen:e.attrs?.defaultOpen});return`<Expandable${n?" "+n:""}>
|
|
328
|
+
${_n(wn(e.content??[],t))}
|
|
329
|
+
</Expandable>`}case"dialog":{let n=Oi({trigger:e.attrs?.trigger,title:e.attrs?.title});return`<Dialog${n?" "+n:""}>
|
|
330
|
+
${_n(wn(e.content??[],t))}
|
|
331
|
+
</Dialog>`}case"embed":{let n=Oi({src:e.attrs?.src,title:e.attrs?.title,ratio:e.attrs?.ratio});return`<Embed${n?" "+n:""} />`}case"pdf":{let n=Jy(e.attrs?.height),r=Oi({src:e.attrs?.src,title:e.attrs?.title,height:n===FT?"":String(n)});return`<PDF${r?" "+r:""} />`}case"video":{let n=Oi({src:e.attrs?.src,title:e.attrs?.title});return`<Video${n?" "+n:""} />`}case"card":{let n=Xf({title:e.attrs?.title,icon:e.attrs?.icon,href:e.attrs?.href,img:e.attrs?.img,cta:e.attrs?.cta,type:e.attrs?.type},{horizontal:e.attrs?.horizontal,arrow:e.attrs?.arrow});return`<Card${n?" "+n:""}>
|
|
332
|
+
${_n(wn(e.content??[],t))}
|
|
333
|
+
</Card>`}case"cardGroup":return`<CardGroup cols={${e.attrs?.cols??2}}>
|
|
334
|
+
${_n(wn(e.content??[],t))}
|
|
335
|
+
</CardGroup>`;case"steps":return`<Steps>
|
|
336
|
+
${_n(wn(e.content??[],t))}
|
|
337
|
+
</Steps>`;case"step":return`<Step${e.attrs?.title?` title="${e.attrs.title}"`:""}>
|
|
338
|
+
${_n(wn(e.content??[],t))}
|
|
339
|
+
</Step>`;case"tabs":return`<Tabs>
|
|
340
|
+
${_n(wn(e.content??[],t))}
|
|
341
|
+
</Tabs>`;case"tab":return`<Tab${e.attrs?.title?` title="${e.attrs.title}"`:""}>
|
|
342
|
+
${_n(wn(e.content??[],t))}
|
|
343
|
+
</Tab>`;case"accordionGroup":return`<AccordionGroup>
|
|
344
|
+
${_n(wn(e.content??[],t))}
|
|
345
|
+
</AccordionGroup>`;case"accordion":{let n=Xf({title:e.attrs?.title,icon:e.attrs?.icon,description:e.attrs?.description},{defaultOpen:e.attrs?.defaultOpen});return`<Accordion${n?" "+n:""}>
|
|
346
|
+
${_n(wn(e.content??[],t))}
|
|
347
|
+
</Accordion>`}case"codeGroup":return`<CodeGroup>
|
|
348
|
+
${wn(e.content??[],t)}
|
|
349
|
+
</CodeGroup>`;case"update":{let n=Oi({date:e.attrs?.date,version:e.attrs?.version,tags:e.attrs?.tags,rss:e.attrs?.rss,id:e.attrs?.id});return`<Update${n?" "+n:""}>
|
|
350
|
+
${_n(wn(e.content??[],t))}
|
|
351
|
+
</Update>`}case"table":return o3(e,t);case"horizontalRule":return"---";case"image":return GT(e.attrs??{});case"hardBreak":return`
|
|
352
|
+
`;default:return fl(e.content??[])}}function HT(e){return(e.content??[]).map(t=>fl(t.content??[])).join(" ").replace(/\|/g,"\\|").trim()}function Vy(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function ZD(e){return(e??[]).map(t=>{if(t.type==="hardBreak")return"<br>";if(t.type==="image")return"";if(t.type==="badge")return Vy(t.attrs?.text??"");let n=Vy(t.text??""),r=t.marks??[];if(r.some(i=>i.type==="code"))n=`<code>${n}</code>`;else{r.some(o=>o.type==="bold")&&(n=`<strong>${n}</strong>`),r.some(o=>o.type==="italic")&&(n=`<em>${n}</em>`),r.some(o=>o.type==="strike")&&(n=`<s>${n}</s>`),r.some(o=>o.type==="underline")&&(n=`<u>${n}</u>`),r.some(o=>o.type==="superscript")&&(n=`<sup>${n}</sup>`),r.some(o=>o.type==="subscript")&&(n=`<sub>${n}</sub>`);let i=r.find(o=>o.type==="link");i?.attrs?.href&&(n=`<a href="${Vy(String(i.attrs.href))}">${n}</a>`)}return n}).join("")}function JD(e){return(e.content??[]).map(t=>ZD(t.content??[])).join("<br>")}function e3(e){for(let t of e.content??[])for(let n of t.content??[]){let r=Number(n.attrs?.colspan??1),i=Number(n.attrs?.rowspan??1);if(r>1||i>1)return!0}return!1}function t3(e){return(e.content??[]).some(t=>Number(t.attrs?.height)>0)}function Qy(e){for(let t of e.content??[])for(let n of t.content??[]){let r=n.attrs?.colwidth;if(Array.isArray(r)&&r.some(i=>typeof i=="number"&&i>0))return!0}return!1}function n3(e){return e3(e)||!!e.attrs?.fixedWidths||!!e.attrs?.numberedRows||!!e.attrs?.wrapText||(Number(e.attrs?.frozenColumns)||0)>0||(Number(e.attrs?.frozenRows)||0)>0||t3(e)||Qy(e)}function jT(e,t){return e>1?` ${t}="${e}"`:""}function r3(e){if(!Array.isArray(e))return"";let t=e.map(n=>typeof n=="number"&&Number.isFinite(n)&&n>0?Math.round(n):0);return t.some(n=>n>0)?` colwidth="${t.join(",")}"`:""}function i3(e){let t=e.content??[],n=[],r=[];e.attrs?.fixedWidths&&(n.push("dm-table-fixed"),r.push('data-fixed-widths="true"')),e.attrs?.numberedRows&&(n.push("dm-table-numbered"),r.push('data-numbered-rows="true"')),e.attrs?.wrapText&&(n.push("dm-table-wrap"),r.push('data-wrap-text="true"'));let i=Math.max(0,Number(e.attrs?.frozenColumns)||0);i>0&&(n.push("dm-table-frozen"),r.push(`data-frozen-columns="${i}"`)),((Number(e.attrs?.frozenRows)||0)>0?1:0)>0&&(n.push("dm-table-frozen-rows"),r.push('data-frozen-rows="1"'));let a=t[0],s=[];if(a&&Qy(e))for(let f of a.content??[]){let m=Math.max(1,Number(f.attrs?.colspan??1)||1),p=Array.isArray(f.attrs?.colwidth)?f.attrs.colwidth:null;for(let v=0;v<m;v++){let b=typeof p?.[v]=="number"&&p[v]>0?Math.round(p[v]):0;s.push(b)}}let l=s.reduce((f,m)=>f+(m>0?m:Zy),0),c=["<table"];if(Qy(e)||e.attrs?.fixedWidths||e.attrs?.wrapText){let f=l>0?` min-width: max(100%, ${l}px);`:" min-width: 100%;",m=e.attrs?.wrapText?"width: 100%;":"width: max-content;";c.push(` style="${m}${f} table-layout: fixed"`)}n.length&&c.push(` class="${n.join(" ")}"`),r.length&&c.push(` ${r.join(" ")}`),c.push(">");let d=[c.join("")];if(s.some(f=>f>0)){d.push("<colgroup>");for(let f of s)d.push(f>0?`<col style="width: ${f}px" />`:"<col />");d.push("</colgroup>")}for(let f of t){let m=Number(f.attrs?.height),p=m>0?`<tr data-height="${m}" style="height: ${m}px">`:"<tr>";d.push(p);for(let v of f.content??[]){let b=v.type==="tableHeader"?"th":"td",E=Math.max(1,Number(v.attrs?.colspan??1)||1),h=Math.max(1,Number(v.attrs?.rowspan??1)||1);d.push(`<${b}${jT(E,"colspan")}${jT(h,"rowspan")}${r3(v.attrs?.colwidth)}>${JD(v)}</${b}>`)}d.push("</tr>")}return d.push("</table>"),d.join(`
|
|
353
|
+
`)}function o3(e,t){let n=e.content??[];if(n.length===0)return"";if(n3(e))return i3(e);let r=(n[0].content??[]).map(HT),i=r.length||1,o=Qf(n[0],t)??`| ${r.join(" | ")} |`,a=`| ${Array.from({length:i},()=>"---").join(" | ")} |`,s=n.slice(1).map(l=>Qf(l,t)??(()=>{let c=(l.content??[]).map(HT);for(;c.length<i;)c.push("");return`| ${c.join(" | ")} |`})());return[o,a,...s].join(`
|
|
354
|
+
`)}var a3=/<\/?(?:u|sup|sub|kbd|br|Badge|span)(?:\s[^>]*)?\s*\/?>/g;function s3(e){return e.replace(a3,t=>`\\${t}`)}function fl(e){return(e??[]).map(t=>{if(t.type==="hardBreak")return`
|
|
355
|
+
`;if(t.type==="image")return GT(t.attrs??{});if(t.type==="badge"){let h=typeof t.attrs?.className=="string"&&/^http-(get|post|put|patch|delete)$/i.test(t.attrs.className)?t.attrs.className.toLowerCase():"";if(h)return`<span class="${h}">${t.attrs?.text??""}</span>`;let g=Xf({color:t.attrs?.color,size:t.attrs?.size,shape:t.attrs?.shape,icon:t.attrs?.icon,iconType:t.attrs?.iconType,className:t.attrs?.className},{stroke:t.attrs?.stroke,disabled:t.attrs?.disabled});return`<Badge${g?" "+g:""}>${t.attrs?.text??""}</Badge>`}let n=t.text??"",r=t.marks??[];if(r.length===0)return s3(n);let i=n,o=r.some(h=>h.type==="code"),a=r.some(h=>h.type==="bold"),s=r.some(h=>h.type==="italic"),l=r.some(h=>h.type==="strike"),c=r.some(h=>h.type==="underline"),d=r.some(h=>h.type==="superscript"),f=r.some(h=>h.type==="subscript"),m=r.some(h=>h.type==="kbd"),p=r.some(h=>h.type==="highlight"),v=r.find(h=>h.type==="link");o&&(i=`\`${i}\``),a&&s?i=`***${i}***`:a?i=`**${i}**`:s&&(i=`*${i}*`),l&&(i=`~~${i}~~`),c&&(i=`<u>${i}</u>`),d&&(i=`<sup>${i}</sup>`),f&&(i=`<sub>${i}</sub>`),m&&(i=`<kbd>${i}</kbd>`),p&&(i=`==${i}==`);let b=r.find(h=>h.type==="textColor"),E=Vf(typeof b?.attrs?.color=="string"?b.attrs.color:"");return E&&(i=`<span data-color="${E}">${i}</span>`),v&&(i=`[${i}](${v.attrs?.href??""})`),i}).join("")}var nb=Zy;function YT(e,t=nb){return e.reduce((n,r)=>n+(r>0?r:t),0)}function l3(e){return e.length>0&&e.every(t=>t>0)}function VT(e,t={}){if(t.wrap)return{width:"100%",minWidth:"100%"};if(e.length===0)return{width:"",minWidth:"100%"};if(l3(e)){let r=YT(e,t.renderMin);return{width:`${r}px`,minWidth:`${r}px`}}return{width:"",minWidth:`max(100%, ${YT(e,t.renderMin)}px)`}}function Jf(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function XT(e){return e.content?.map(t=>t.text??"").join("")??""}function QT(e){if(!e||typeof e!="object")return e;let t=e;if(!Array.isArray(t.content))return e;let n=new Map;function r(i){for(let o of i){if(!o||typeof o!="object")continue;let a=o;if(a.type==="heading"){let s=XT(a),l=Jf(s);if(l){let c=(n.get(l)??0)+1;n.set(l,c),a.attrs={...a.attrs,id:c===1?l:`${l}-${c}`}}}Array.isArray(a.content)&&r(a.content)}}return r(t.content),e}function ZT(e){if(!e||typeof e!="object")return[];let t=e;if(!Array.isArray(t.content))return[];let n=[],r=new Map;function i(o){for(let a of o){if(!a||typeof a!="object")continue;let s=a;if(s.type==="heading"&&(s.attrs?.level??0)<=3){let l=XT(s);if(!l)continue;let c=s.attrs?.level??1,d=typeof s.attrs?.id=="string"?s.attrs.id:"";if(!d){let f=Jf(l),m=(r.get(f)??0)+1;r.set(f,m),d=m===1?f:`${f}-${m}`}n.push({level:c,text:l,id:d})}Array.isArray(s.content)&&i(s.content)}}return i(t.content),n}function JT(e){return(e||"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function rb(e,t){return JT([e,t].filter(Boolean).join("-"))||"entry"}function ep(e){let t=[],n=new Set;for(let r of(e||"").split(",").map(i=>i.trim()).filter(Boolean))n.has(r)||(n.add(r),t.push(r));return t}function e2(e){let t=e?.content??[],n=[],r=new Map;for(let i of t){if(i?.type!=="update")continue;let o=String(i.attrs?.date??""),a=String(i.attrs?.version??""),s=ep(String(i.attrs?.tags??"")),l=String(i.attrs?.rss??""),c=String(i.attrs?.id??"").trim()&&JT(i.attrs.id)||rb(o,a),d=r.get(c)??0;r.set(c,d+1),d>0&&(c=`${c}-${d+1}`),n.push({anchor:c,date:o,version:a,tags:s,rss:l,content:i.content??[]})}return n}function t2(e){let t=[],n=new Set;for(let r of e)for(let i of r.tags)n.has(i)||(n.add(i),t.push(i));return t}function tp(e){return ep(e??"")}var E2=M(S2(),1);var ap=E2.default;function sp(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Z3(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],h=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],w={type:b,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},C={className:"function.dispatch",relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},O=[C,f,s,n,e.C_BLOCK_COMMENT_MODE,d,c],T={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:O.concat([{begin:/\(/,end:/\)/,keywords:w,contains:O.concat(["self"]),relevance:0}]),relevance:0},D={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:w,relevance:0},{begin:p,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(T,D,C,O,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:w,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function w2(e){let t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Z3(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function _2(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});let i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},m=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${m.join("|")})`,relevance:10}),v={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],E=["true","false"],h={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],w=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:E,built_in:[...g,...S,"set","shopt",...w,...C]},contains:[p,e.SHEBANG(),v,f,o,a,h,s,l,c,d,n]}}function T2(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",E={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[f,s,n,e.C_BLOCK_COMMENT_MODE,d,c],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:h.concat([{begin:/\(/,end:/\)/,keywords:E,contains:h.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:E,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(m,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"</",contains:[].concat(g,S,h,[f,{begin:e.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:c,keywords:E}}}function N2(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",v=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],h=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],w={type:b,keyword:v,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},C={className:"function.dispatch",relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},O=[C,f,s,n,e.C_BLOCK_COMMENT_MODE,d,c],T={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:O.concat([{begin:/\(/,end:/\)/,keywords:w,contains:O.concat(["self"]),relevance:0}]),relevance:0},D={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:w,relevance:0},{begin:p,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(T,D,C,O,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:w,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function k2(e){let t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(d,{illegal:/\n/}),m={className:"subst",begin:/\{/,end:/\}/,keywords:a},p=e.inherit(m,{illegal:/\n/}),v={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]},E=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});m.contains=[b,v,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[E,v,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[c,b,v,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},S=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",w={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},h,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+S+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[h,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},w]}}var J3=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e4=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t4=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n4=[...e4,...t4],r4=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i4=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o4=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a4=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function A2(e){let t=e.regex,n=J3(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i4.join("|")+")"},{begin:":(:)?("+o4.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a4.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:r4.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n4.join("|")+")\\b"}]}}function R2(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function O2(e){let o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function C2(e){let t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function M2(e){let t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,f=t.either(l,c,d),m=t.concat(f,"(\\s*\\.\\s*",f,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:m,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}var gl="[0-9](_*[0-9])*",lp=`\\.(${gl})`,cp="[0-9a-fA-F](_*[0-9a-fA-F])*",I2={className:"number",variants:[{begin:`(\\b(${gl})((${lp})|\\.)?|(${lp}))[eE][+-]?(${gl})[fFdD]?\\b`},{begin:`\\b(${gl})((${lp})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${lp})[fFdD]?\\b`},{begin:`\\b(${gl})[fFdD]\\b`},{begin:`\\b0[xX]((${cp})\\.?|(${cp})?\\.(${cp}))[pP][+-]?(${gl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${cp})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function L2(e,t,n){return n===-1?"":e.replace(t,r=>L2(e,t,n-1))}function D2(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",r=n+L2("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,I2,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I2,c]}}var B2="[A-Za-z$_][0-9A-Za-z$_]*",s4=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],l4=["true","false","null","undefined","NaN","Infinity"],P2=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],z2=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],U2=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c4=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],u4=[].concat(U2,P2,z2);function $2(e){let t=e.regex,n=(ae,{after:j})=>{let A="</"+ae[0].slice(1);return ae.input.indexOf(A,j)!==-1},r=B2,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ae,j)=>{let A=ae[0].length+ae.index,I=ae.input[A];if(I==="<"||I===","){j.ignoreMatch();return}I===">"&&(n(ae,{after:A})||j.ignoreMatch());let L,K=ae.input.substring(A);if(L=K.match(/^\s*=/)){j.ignoreMatch();return}if((L=K.match(/^\s+extends\s+/))&&L.index===0){j.ignoreMatch();return}}},s={$pattern:B2,keyword:s4,literal:l4,built_in:u4,"variable.language":c4},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,m]},g={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,v,b,E,{match:/\$\d+/},f];m.contains=S.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(S)});let w=[].concat(g,m.contains),C=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(w)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C},T={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...P2,...z2]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function me(ae){return t.concat("(?!",ae.join("|"),")")}let he={match:t.concat(/\b/,me([...U2,"super","import"].map(ae=>`${ae}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},de={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:D},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,v,b,E,g,{match:/\$\d+/},f,D,{scope:"attr",match:r+t.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},de,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},he,re,T,X,{match:/\$[(.]/}]}}function H2(e){let t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var hl="[0-9](_*[0-9])*",up=`\\.(${hl})`,dp="[0-9a-fA-F](_*[0-9a-fA-F])*",d4={className:"number",variants:[{begin:`(\\b(${hl})((${up})|\\.)?|(${up}))[eE][+-]?(${hl})[fFdD]?\\b`},{begin:`\\b(${hl})((${up})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${up})[fFdD]?\\b`},{begin:`\\b(${hl})[fFdD]\\b`},{begin:`\\b0[xX]((${dp})\\.?|(${dp})?\\.(${dp}))[pP][+-]?(${hl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${dp})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function j2(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);let s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},c=d4,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=f;return m.variants[1].contains=[f],f.variants[1].contains=[m],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,l,a,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
356
|
+
`},c]}}var f4=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),p4=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],m4=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],g4=[...p4,...m4],h4=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),F2=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),q2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y4=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),b4=F2.concat(q2).sort().reverse();function G2(e){let t=f4(e),n=b4,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(S){return{className:"string",begin:"~?"+S+".*?"+S}},c=function(S,w,C){return{className:S,begin:w,relevance:C}},d={$pattern:/[a-z-]+/,keyword:r,attribute:h4.join(" ")},f={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,f,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let m=s.concat({begin:/\{/,end:/\}/,contains:a}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},v={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y4.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},b={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:s,relevance:0}},E={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:m}},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+g4.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+F2.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+q2.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:m},{begin:"!important"},t.FUNCTION_DISPATCH]},g={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[h]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,E,g,v,h,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function K2(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function W2(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}function Y2(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(c,{contains:[]}),m=e.inherit(d,{contains:[]});c.contains.push(m),d.contains.push(f);let p=[n,l];return[c,d,f,m].forEach(h=>{h.contains=h.contains.concat(p)}),p=p.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,o,c,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function V2(e){let t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function X2(e){let t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,o,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],m=(b,E,h="\\1")=>{let g=h==="\\1"?h:t.concat(h,E);return t.concat(t.concat("(?:",b,")"),E,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,h,r)},p=(b,E,h)=>t.concat(t.concat("(?:",b,")"),E,/(?:\\.|[^\\\/])*?/,h,r),v=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:m("s|tr|y",t.either(...f,{capture:!0}))},{begin:m("s|tr|y","\\(","\\)")},{begin:m("s|tr|y","\\[","\\]")},{begin:m("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...f,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=v,a.contains=v,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:v}}function Q2(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(de,X)=>{X.data._beginMatch=de[1]||de[2]},"on:end":(de,X)=>{X.data._beginMatch!==de[1]&&X.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
|
|
357
|
+
]`,v={scope:"string",variants:[d,c,f,m]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},E=["false","null","true"],h=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],g=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],w={keyword:h,literal:(de=>{let X=[];return de.forEach(N=>{X.push(N),N.toLowerCase()===N?X.push(N.toUpperCase()):X.push(N.toLowerCase())}),X})(E),built_in:g},C=de=>de.map(X=>X.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",C(g).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},T=t.concat(r,"\\b(?!\\()"),D={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),T],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),T],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},q={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},Z={relevance:0,begin:/\(/,end:/\)/,keywords:w,contains:[q,a,D,e.C_BLOCK_COMMENT_MODE,v,b,O]},re={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",C(h).join("\\b|"),"|",C(g).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Z]};Z.contains.push(re);let me=[q,D,e.C_BLOCK_COMMENT_MODE,v,b,O],he={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...me]},...me,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:w,contains:[he,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},a,re,D,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:w,contains:["self",he,a,D,e.C_BLOCK_COMMENT_MODE,v,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},v,b]}}function Z2(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function J2(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function eN(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},d={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},m="[0-9](_?[0-9])*",p=`(\\b(${m}))?\\.(${m})|\\b(${m})\\.`,v=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${m})|(${p}))[eE][+-]?(${m})[jJ]?(?=${v})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${v})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${v})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`},{begin:`\\b(${m})[jJ](?=${v})`}]},E={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,b,f,e.HASH_COMMENT_MODE]}]};return c.contains=[f,b,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,E,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,h,f]}]}}function tN(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function nN(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function rN(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:a},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},m="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",v={className:"number",relevance:0,variants:[{begin:`\\b(${m})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},O=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:n}],relevance:0},v,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);d.contains=O,b.contains=O;let Z=[{begin:/^\s*=>/,starts:{end:"$",contains:O}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:O}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(Z).concat(c).concat(O)}}function iN(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:s,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:d}},{className:"punctuation",begin:"->"},o]}}var v4=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),x4=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],S4=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],E4=[...x4,...S4],w4=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),_4=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),T4=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),N4=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function oN(e){let t=v4(e),n=T4,r=_4,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+E4.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+N4.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:w4.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function aN(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sN(e){let t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],m=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,v=[...c,...l].filter(C=>!d.includes(C)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},E={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},h={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function g(C){return t.concat(/\b/,t.either(...C.map(O=>O.replace(/\s+/,"\\s+"))),/\b/)}let S={scope:"keyword",match:g(m),relevance:0};function w(C,{exceptions:O,when:T}={}){let D=T;return O=O||[],C.map(q=>q.match(/\|\d+$/)||O.includes(q)?q:D(q)?`${q}|0`:q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:w(v,{when:C=>C.length<3}),literal:o,type:s,built_in:f},contains:[{scope:"type",match:g(a)},S,h,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,E]}}function dN(e){return e?typeof e=="string"?e:e.source:null}function uu(e){return At("(?=",e,")")}function At(...e){return e.map(n=>dN(n)).join("")}function k4(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ir(...e){return"("+(k4(e).capture?"":"?:")+e.map(r=>dN(r)).join("|")+")"}var mb=e=>At(/\b/,e,/\w$/.test(e)?/\b/:/\B/),A4=["Protocol","Type"].map(mb),lN=["init","self"].map(mb),R4=["Any","Self"],fb=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],cN=["false","nil","true"],O4=["assignment","associativity","higherThan","left","lowerThan","none","right"],C4=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],uN=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],fN=ir(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),pN=ir(fN,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),pb=At(fN,pN,"*"),mN=ir(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),pp=ir(mN,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ci=At(mN,pp,"*"),fp=At(/[A-Z]/,pp,"*"),M4=["attached","autoclosure",At(/convention\(/,ir("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",At(/objc\(/,Ci,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],I4=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function gN(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,ir(...A4,...lN)],className:{2:"keyword"}},o={match:At(/\./,ir(...fb)),relevance:0},a=fb.filter(be=>typeof be=="string").concat(["_|0"]),s=fb.filter(be=>typeof be!="string").concat(R4).map(mb),l={variants:[{className:"keyword",match:ir(...s,...lN)}]},c={$pattern:ir(/\b\w+/,/#\w+/),keyword:a.concat(C4),literal:cN},d=[i,o,l],f={match:At(/\./,ir(...uN)),relevance:0},m={className:"built_in",match:At(/\b/,ir(...uN),/(?=\()/)},p=[f,m],v={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:pb},{match:`\\.(\\.|${pN})+`}]},E=[v,b],h="([0-9]_*)+",g="([0-9a-fA-F]_*)+",S={className:"number",relevance:0,variants:[{match:`\\b(${h})(\\.(${h}))?([eE][+-]?(${h}))?\\b`},{match:`\\b0x(${g})(\\.(${g}))?([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},w=(be="")=>({className:"subst",variants:[{match:At(/\\/,be,/[0\\tnr"']/)},{match:At(/\\/,be,/u\{[0-9a-fA-F]{1,8}\}/)}]}),C=(be="")=>({className:"subst",match:At(/\\/,be,/[\t ]*(?:[\r\n]|\r\n)/)}),O=(be="")=>({className:"subst",label:"interpol",begin:At(/\\/,be,/\(/),end:/\)/}),T=(be="")=>({begin:At(be,/"""/),end:At(/"""/,be),contains:[w(be),C(be),O(be)]}),D=(be="")=>({begin:At(be,/"/),end:At(/"/,be),contains:[w(be),O(be)]}),q={className:"string",variants:[T(),T("#"),T("##"),T("###"),D(),D("#"),D("##"),D("###")]},Z=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],re={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Z},me=be=>{let lt=At(be,/\//),Ee=At(/\//,be);return{begin:lt,end:Ee,contains:[...Z,{scope:"comment",begin:`#(?!.*${Ee})`,end:/$/}]}},he={scope:"regexp",variants:[me("###"),me("##"),me("#"),re]},de={match:At(/`/,Ci,/`/)},X={className:"variable",match:/\$\d+/},N={className:"variable",match:`\\$${pp}+`},U=[de,X,N],ae={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:I4,contains:[...E,S,q]}]}},j={scope:"keyword",match:At(/@/,ir(...M4),uu(ir(/\(/,/\s+/)))},A={scope:"meta",match:At(/@/,Ci)},I=[ae,j,A],L={match:uu(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:At(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,pp,"+")},{className:"type",match:fp,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:At(/\s+&\s+/,uu(fp)),relevance:0}]},K={begin:/</,end:/>/,keywords:c,contains:[...r,...d,...I,v,L]};L.contains.push(K);let fe={match:At(Ci,/\s*:/),keywords:"_|0",relevance:0},xe={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",fe,...r,he,...d,...p,...E,S,q,...U,...I,L]},ze={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,L]},we={begin:ir(uu(At(Ci,/\s*:/)),uu(At(Ci,/\s+/,Ci,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ci}]},Ue={begin:/\(/,end:/\)/,keywords:c,contains:[we,...r,...d,...E,S,q,...I,L,xe],endsParent:!0,illegal:/["']/},Se={match:[/(func|macro)/,/\s+/,ir(de.match,Ci,pb)],className:{1:"keyword",3:"title.function"},contains:[ze,Ue,t],illegal:[/\[/,/%/]},Ye={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ze,Ue,t],illegal:/\[|%/},jt={match:[/operator/,/\s+/,pb],className:{1:"keyword",3:"title"}},te={begin:[/precedencegroup/,/\s+/,fp],className:{1:"keyword",3:"title"},contains:[L],keywords:[...O4,...cN],end:/}/},Ie={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},ke={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Qe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ci,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[ze,...d,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:fp},...d],relevance:0}]};for(let be of q.variants){let lt=be.contains.find(Yt=>Yt.label==="interpol");lt.keywords=c;let Ee=[...d,...p,...E,S,q,...U];lt.contains=[...Ee,{begin:/\(/,end:/\)/,contains:["self",...Ee]}]}return{name:"Swift",keywords:c,contains:[...r,Se,Ye,Ie,ke,Qe,jt,te,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},he,...d,...p,...E,S,q,...U,...I,L,xe]}}var mp="[A-Za-z$_][0-9A-Za-z$_]*",hN=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],yN=["true","false","null","undefined","NaN","Infinity"],bN=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],vN=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xN=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],SN=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],EN=[].concat(xN,bN,vN);function L4(e){let t=e.regex,n=(ae,{after:j})=>{let A="</"+ae[0].slice(1);return ae.input.indexOf(A,j)!==-1},r=mp,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ae,j)=>{let A=ae[0].length+ae.index,I=ae.input[A];if(I==="<"||I===","){j.ignoreMatch();return}I===">"&&(n(ae,{after:A})||j.ignoreMatch());let L,K=ae.input.substring(A);if(L=K.match(/^\s*=/)){j.ignoreMatch();return}if((L=K.match(/^\s+extends\s+/))&&L.index===0){j.ignoreMatch();return}}},s={$pattern:mp,keyword:hN,literal:yN,built_in:EN,"variable.language":SN},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,m]},g={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,v,b,E,{match:/\$\d+/},f];m.contains=S.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(S)});let w=[].concat(g,m.contains),C=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(w)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C},T={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...bN,...vN]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Z={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function me(ae){return t.concat("(?!",ae.join("|"),")")}let he={match:t.concat(/\b/,me([...xN,"super","import"].map(ae=>`${ae}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},de={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:C,CLASS_REFERENCE:D},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,v,b,E,g,{match:/\$\d+/},f,D,{scope:"attr",match:r+t.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:C}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},Z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},de,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},he,re,T,X,{match:/\$[(.]/}]}}function wN(e){let t=e.regex,n=L4(e),r=mp,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:mp,keyword:hN.concat(l),literal:yN,built_in:EN.concat(i),"variable.language":SN},d={className:"meta",begin:"@"+r},f=(b,E,h)=>{let g=b.contains.findIndex(S=>S.label===E);if(g===-1)throw new Error("can not find mode to replace");b.contains.splice(g,1,h)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(d);let m=n.contains.find(b=>b.scope==="attr"),p=Object.assign({},m,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,m,p]),n.contains=n.contains.concat([d,o,a,p]),f(n,"shebang",e.SHEBANG()),f(n,"use_strict",s);let v=n.contains.find(b=>b.label==="func.def");return v.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function _N(e){let t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),m=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,d,f,m,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[m]}]}}function TN(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");let n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,l,c,s]}}function NN(e){let t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},v={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},E=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},v,b,o,a],h=[...E];return h.pop(),h.push(s),p.contains=h,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:E}}var gb={arduino:w2,bash:_2,c:T2,cpp:N2,csharp:k2,css:A2,diff:R2,go:O2,graphql:C2,ini:M2,java:D2,javascript:$2,json:H2,kotlin:j2,less:G2,lua:K2,makefile:W2,markdown:Y2,objectivec:V2,perl:X2,php:Q2,"php-template":Z2,plaintext:J2,python:eN,"python-repl":tN,r:nN,ruby:rN,rust:iN,scss:oN,shell:aN,sql:sN,swift:gN,typescript:wN,vbnet:_N,wasm:TN,xml:sp,yaml:NN};var kN={},D4="hljs-";function yb(e){let t=ap.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,c,d){let f=d||kN,m=typeof f.prefix=="string"?f.prefix:D4;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:hb,classPrefix:m});let p=t.highlight(c,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});let v=p._emitter.root,b=v.data;return b.language=p.language,b.relevance=p.relevance,v}function r(l,c){let f=(c||kN).subset||i(),m=-1,p=0,v;for(;++m<f.length;){let b=f[m];if(!t.getLanguage(b))continue;let E=n(b,l,c);E.data&&E.data.relevance!==void 0&&E.data.relevance>p&&(p=E.data.relevance,v=E)}return v||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function o(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let d;for(d in l)Object.hasOwn(l,d)&&t.registerLanguage(d,l[d])}}function a(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let d;for(d in l)if(Object.hasOwn(l,d)){let f=l[d];t.registerAliases(typeof f=="string"?f:[...f],{languageName:d})}}}function s(l){return!!t.getLanguage(l)}}var hb=class{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;let n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){let r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){let n=this,r=t.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}};var yl=class{constructor(t,n,r){this.maxEntries=t;this.ttlMs=n;this.entries=new Map;this.bytes=0;this.hits=0;this.misses=0;this.evictions=0;this.maxBytes=r?.maxBytes??1/0,this.sizeOf=r?.sizeOf}get(t){let n=this.entries.get(t);if(!n){this.misses++;return}if(Date.now()>n.expiresAt){this.drop(t,n),this.misses++;return}return this.entries.delete(t),this.entries.set(t,n),this.hits++,n.value}set(t,n){let r=this.sizeOf?this.sizeOf(n):0;if(r>this.maxBytes)return;let i=this.entries.get(t);for(i&&this.drop(t,i);this.entries.size>=this.maxEntries||this.entries.size>0&&this.bytes+r>this.maxBytes;){let o=this.entries.keys().next().value;if(o===void 0)break;this.drop(o,this.entries.get(o)),this.evictions++}this.entries.set(t,{value:n,expiresAt:Date.now()+this.ttlMs,bytes:r}),this.bytes+=r}delete(t){let n=this.entries.get(t);n&&this.drop(t,n)}deleteWhere(t){for(let n of[...this.entries.keys()])t(n)&&this.delete(n)}clear(){this.entries.clear(),this.bytes=0}stats(){return{hits:this.hits,misses:this.misses,evictions:this.evictions,entryCount:this.entries.size,approxBytes:this.bytes}}drop(t,n){this.entries.delete(t),this.bytes-=n.bytes}};var vb=yb(gb);vb.register("html",sp);var B4=[{value:"",label:"Plain text"},{value:"bash",label:"Bash"},{value:"c",label:"C"},{value:"cpp",label:"C++"},{value:"csharp",label:"C#"},{value:"css",label:"CSS"},{value:"diff",label:"Diff"},{value:"go",label:"Go"},{value:"html",label:"HTML"},{value:"java",label:"Java"},{value:"javascript",label:"JavaScript"},{value:"json",label:"JSON"},{value:"kotlin",label:"Kotlin"},{value:"markdown",label:"Markdown"},{value:"php",label:"PHP"},{value:"python",label:"Python"},{value:"ruby",label:"Ruby"},{value:"rust",label:"Rust"},{value:"sql",label:"SQL"},{value:"typescript",label:"TypeScript"},{value:"xml",label:"XML"},{value:"yaml",label:"YAML"}];function RN(e){let t=CN(e);return B4.find(r=>r.value===t)?.label??"Plain text"}function ON(e,t=[]){return e.flatMap(n=>{let r=[...t,...n.properties?n.properties.className:[]];return n.children?ON(n.children,r):{text:n.value,classes:r}})}function P4(e){return e.value||e.children||[]}function CN(e){return typeof e=="string"?e.trim().toLowerCase():""}function bb(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function z4(e,t){return(e.listLanguages?.()??[]).includes(t)||!!ap.getLanguage(t)||!!e.registered?.(t)}var U4=3600*1e3,AN=new yl(2e3,U4,{maxBytes:24*1024*1024,sizeOf:e=>e.bytes}),$4=80;function MN(e,t,n){let r=t??"",i=CN(n);if(!i||!z4(e,i))return bb(r);let o=r.length>=$4,a=o?`${i}\0${r}`:"";if(o){let l=AN.get(a);if(l)return l.html}let s;try{let l=P4(e.highlight(i,r));s=ON(l).map(({text:c,classes:d})=>{let f=bb(c??"");return d.length?`<span class="${d.join(" ")}">${f}</span>`:f}).join("")}catch{s=bb(r)}return o&&AN.set(a,{html:s,bytes:(a.length+s.length)*2}),s}var hp=M(Me());function IN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H4(e){if(Array.isArray(e))return e}function j4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function F4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
358
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q4(e,t){return H4(e)||j4(e,t)||G4(e,t)||F4()}function G4(e,t){if(e){if(typeof e=="string")return IN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IN(e,t):void 0}}var YN=Object.entries,LN=Object.setPrototypeOf,K4=Object.isFrozen,W4=Object.getPrototypeOf,Y4=Object.getOwnPropertyDescriptor,Fn=Object.freeze,qn=Object.seal,xl=Object.create,VN=typeof Reflect<"u"&&Reflect,Tb=VN.apply,Nb=VN.construct;Fn||(Fn=function(t){return t});qn||(qn=function(t){return t});Tb||(Tb=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});Nb||(Nb=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});var bl=yn(Array.prototype.forEach),V4=yn(Array.prototype.lastIndexOf),DN=yn(Array.prototype.pop),vl=yn(Array.prototype.push),X4=yn(Array.prototype.splice),aa=Array.isArray,pu=yn(String.prototype.toLowerCase),xb=yn(String.prototype.toString),BN=yn(String.prototype.match),du=yn(String.prototype.replace),PN=yn(String.prototype.indexOf),Q4=yn(String.prototype.trim),Z4=yn(Number.prototype.toString),J4=yn(Boolean.prototype.toString),zN=typeof BigInt>"u"?null:yn(BigInt.prototype.toString),UN=typeof Symbol>"u"?null:yn(Symbol.prototype.toString),Mn=yn(Object.prototype.hasOwnProperty),fu=yn(Object.prototype.toString),Cn=yn(RegExp.prototype.test),Za=eB(TypeError);function yn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Tb(e,t,r)}}function eB(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Nb(e,n)}}function ct(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pu;if(LN&&LN(e,null),!aa(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){let o=n(i);o!==i&&(K4(t)||(t[r]=o),i=o)}e[i]=!0}return e}function tB(e){for(let t=0;t<e.length;t++)Mn(e,t)||(e[t]=null);return e}function Yn(e){let t=xl(null);for(let r of YN(e)){var n=q4(r,2);let i=n[0],o=n[1];Mn(e,i)&&(aa(o)?t[i]=tB(o):o&&typeof o=="object"&&o.constructor===Object?t[i]=Yn(o):t[i]=o)}return t}function nB(e){switch(typeof e){case"string":return e;case"number":return Z4(e);case"boolean":return J4(e);case"bigint":return zN?zN(e):"0";case"symbol":return UN?UN(e):"Symbol()";case"undefined":return fu(e);case"function":case"object":{if(e===null)return fu(e);let t=e,n=fi(t,"toString");if(typeof n=="function"){let r=n(t);return typeof r=="string"?r:fu(r)}return fu(e)}default:return fu(e)}}function fi(e,t){for(;e!==null;){let r=Y4(e,t);if(r){if(r.get)return yn(r.get);if(typeof r.value=="function")return yn(r.value)}e=W4(e)}function n(){return null}return n}function rB(e){try{return Cn(e,""),!0}catch{return!1}}var $N=Fn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sb=Fn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Eb=Fn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),iB=Fn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wb=Fn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oB=Fn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),HN=Fn(["#text"]),jN=Fn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),_b=Fn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),FN=Fn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),gp=Fn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),aB=qn(/{{[\w\W]*|^[\w\W]*}}/g),sB=qn(/<%[\w\W]*|^[\w\W]*%>/g),lB=qn(/\${[\w\W]*/g),cB=qn(/^data-[\-\w.\u00B7-\uFFFF]+$/),uB=qn(/^aria-[\-\w]+$/),qN=qn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dB=qn(/^(?:\w+script|data):/i),fB=qn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pB=qn(/^html$/i),mB=qn(/^[a-z][.\w]*(-[.\w]+)+$/i),GN=qn(/<[/\w!]/g),KN=qn(/<[/\w]/g),gB=qn(/<\/no(script|embed|frames)/i),hB=qn(/\/>/i),Br={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yB=function(){return typeof window>"u"?null:window},bB=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));let o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},WN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},oa=function(t,n,r,i){return Mn(t,n)&&aa(t[n])?ct(i.base?Yn(i.base):{},t[n],i.transform):r};function XN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yB(),t=ce=>XN(ce);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==Br.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let o=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let d=e.DOMParser,f=e.trustedTypes,m=s.prototype,p=fi(m,"cloneNode"),v=fi(m,"remove"),b=fi(m,"nextSibling"),E=fi(m,"childNodes"),h=fi(m,"parentNode"),g=fi(m,"shadowRoot"),S=fi(m,"attributes"),w=a&&a.prototype?fi(a.prototype,"nodeType"):null,C=a&&a.prototype?fi(a.prototype,"nodeName"):null,O=a&&a.prototype?fi(a.prototype,"ownerDocument"):null;if(typeof o=="function"){let ce=n.createElement("template");ce.content&&ce.content.ownerDocument&&(n=ce.content.ownerDocument)}let T,D="",q,Z=!1,re=0,me=function(){if(re>0)throw Za('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},he=function(_){me(),re++;try{return T.createHTML(_)}finally{re--}},de=function(_){me(),re++;try{return T.createScriptURL(_)}finally{re--}},X=function(){return Z||(q=bB(f,i),Z=!0),q},N=n,U=N.implementation,ae=N.createNodeIterator,j=N.createDocumentFragment,A=N.getElementsByTagName,I=r.importNode,L=WN();t.isSupported=typeof YN=="function"&&typeof h=="function"&&U&&U.createHTMLDocument!==void 0;let K=aB,fe=sB,xe=lB,ze=cB,we=uB,Ue=dB,Se=fB,Ye=mB,jt=qN,te=null,Ie=ct({},[...$N,...Sb,...Eb,...wb,...HN]),ke=null,Qe=ct({},[...jN,..._b,...FN,...gp]),be=Object.seal(xl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),lt=null,Ee=null,Yt=Object.seal(xl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ot=!0,Ge=!0,Dn=!1,Bt=!0,mt=!1,Ze=!0,le=!1,ye=!1,u=null,R=null,$=!1,W=!1,F=!1,ie=!1,x=!0,B=!1,oe="user-content-",Q=!0,G=!1,ne={},J=null,ge=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),pe=null,_e=ct({},["audio","video","img","source","image","track"]),Oe=null,z=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ve="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml",dn=Ve,ft=!1,Vt=null,$e=ct({},[ve,Be,Ve],xb),Bn=Fn(["mi","mo","mn","ms","mtext"]),ar=ct({},Bn),ai=Fn(["annotation-xml"]),vm=ct({},ai),_O=ct({},["title","style","font","a","script"]),Wl=null,TO=["application/xhtml+xml","text/html"],NO="text/html",Xt=null,ls=null,kO=n.createElement("form"),Vv=function(_){return _ instanceof RegExp||_ instanceof Function},xm=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ls&&ls===_)return;(!_||typeof _!="object")&&(_={}),_=Yn(_),Wl=TO.indexOf(_.PARSER_MEDIA_TYPE)===-1?NO:_.PARSER_MEDIA_TYPE,Xt=Wl==="application/xhtml+xml"?xb:pu,te=oa(_,"ALLOWED_TAGS",Ie,{transform:Xt}),ke=oa(_,"ALLOWED_ATTR",Qe,{transform:Xt}),Vt=oa(_,"ALLOWED_NAMESPACES",$e,{transform:xb}),Oe=oa(_,"ADD_URI_SAFE_ATTR",z,{transform:Xt,base:z}),pe=oa(_,"ADD_DATA_URI_TAGS",_e,{transform:Xt,base:_e}),J=oa(_,"FORBID_CONTENTS",ge,{transform:Xt}),lt=oa(_,"FORBID_TAGS",Yn({}),{transform:Xt}),Ee=oa(_,"FORBID_ATTR",Yn({}),{transform:Xt}),ne=Mn(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Yn(_.USE_PROFILES):_.USE_PROFILES:!1,Ot=_.ALLOW_ARIA_ATTR!==!1,Ge=_.ALLOW_DATA_ATTR!==!1,Dn=_.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mt=_.SAFE_FOR_TEMPLATES||!1,Ze=_.SAFE_FOR_XML!==!1,le=_.WHOLE_DOCUMENT||!1,W=_.RETURN_DOM||!1,F=_.RETURN_DOM_FRAGMENT||!1,ie=_.RETURN_TRUSTED_TYPE||!1,$=_.FORCE_BODY||!1,x=_.SANITIZE_DOM!==!1,B=_.SANITIZE_NAMED_PROPS||!1,Q=_.KEEP_CONTENT!==!1,G=_.IN_PLACE||!1,jt=rB(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:qN,dn=typeof _.NAMESPACE=="string"?_.NAMESPACE:Ve,ar=Mn(_,"MATHML_TEXT_INTEGRATION_POINTS")&&_.MATHML_TEXT_INTEGRATION_POINTS&&typeof _.MATHML_TEXT_INTEGRATION_POINTS=="object"?Yn(_.MATHML_TEXT_INTEGRATION_POINTS):ct({},Bn),vm=Mn(_,"HTML_INTEGRATION_POINTS")&&_.HTML_INTEGRATION_POINTS&&typeof _.HTML_INTEGRATION_POINTS=="object"?Yn(_.HTML_INTEGRATION_POINTS):ct({},ai);let P=Mn(_,"CUSTOM_ELEMENT_HANDLING")&&_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING=="object"?Yn(_.CUSTOM_ELEMENT_HANDLING):xl(null);if(be=xl(null),Mn(P,"tagNameCheck")&&Vv(P.tagNameCheck)&&(be.tagNameCheck=P.tagNameCheck),Mn(P,"attributeNameCheck")&&Vv(P.attributeNameCheck)&&(be.attributeNameCheck=P.attributeNameCheck),Mn(P,"allowCustomizedBuiltInElements")&&typeof P.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=P.allowCustomizedBuiltInElements),qn(be),mt&&(Ge=!1),F&&(W=!0),ne&&(te=ct({},HN),ke=xl(null),ne.html===!0&&(ct(te,$N),ct(ke,jN)),ne.svg===!0&&(ct(te,Sb),ct(ke,_b),ct(ke,gp)),ne.svgFilters===!0&&(ct(te,Eb),ct(ke,_b),ct(ke,gp)),ne.mathMl===!0&&(ct(te,wb),ct(ke,FN),ct(ke,gp))),Yt.tagCheck=null,Yt.attributeCheck=null,Mn(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?Yt.tagCheck=_.ADD_TAGS:aa(_.ADD_TAGS)&&(te===Ie&&(te=Yn(te)),ct(te,_.ADD_TAGS,Xt))),Mn(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?Yt.attributeCheck=_.ADD_ATTR:aa(_.ADD_ATTR)&&(ke===Qe&&(ke=Yn(ke)),ct(ke,_.ADD_ATTR,Xt))),Mn(_,"ADD_URI_SAFE_ATTR")&&aa(_.ADD_URI_SAFE_ATTR)&&ct(Oe,_.ADD_URI_SAFE_ATTR,Xt),Mn(_,"FORBID_CONTENTS")&&aa(_.FORBID_CONTENTS)&&(J===ge&&(J=Yn(J)),ct(J,_.FORBID_CONTENTS,Xt)),Mn(_,"ADD_FORBID_CONTENTS")&&aa(_.ADD_FORBID_CONTENTS)&&(J===ge&&(J=Yn(J)),ct(J,_.ADD_FORBID_CONTENTS,Xt)),Q&&(te["#text"]=!0),le&&ct(te,["html","head","body"]),te.table&&(ct(te,["tbody"]),delete lt.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Za('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Za('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let se=T;T=_.TRUSTED_TYPES_POLICY;try{D=he("")}catch(Re){throw T=se,Re}}else _.TRUSTED_TYPES_POLICY===null?(T=void 0,D=""):(T===void 0&&(T=X()),T&&typeof D=="string"&&(D=he("")));Fn&&Fn(_),ls=_},Xv=ct({},[...Sb,...Eb,...iB]),Qv=ct({},[...wb,...oB]),AO=function(_,P,se){return P.namespaceURI===Ve?_==="svg":P.namespaceURI===ve?_==="svg"&&(se==="annotation-xml"||ar[se]):!!Xv[_]},RO=function(_,P,se){return P.namespaceURI===Ve?_==="math":P.namespaceURI===Be?_==="math"&&vm[se]:!!Qv[_]},OO=function(_,P,se){return P.namespaceURI===Be&&!vm[se]||P.namespaceURI===ve&&!ar[se]?!1:!Qv[_]&&(_O[_]||!Xv[_])},CO=function(_){let P=h(_);(!P||!P.tagName)&&(P={namespaceURI:dn,tagName:"template"});let se=pu(_.tagName),Re=pu(P.tagName);return Vt[_.namespaceURI]?_.namespaceURI===Be?AO(se,P,Re):_.namespaceURI===ve?RO(se,P,Re):_.namespaceURI===Ve?OO(se,P,Re):!!(Wl==="application/xhtml+xml"&&Vt[_.namespaceURI]):!1},Eo=function(_){vl(t.removed,{element:_});try{h(_).removeChild(_)}catch{if(v(_),!h(_))throw Za("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ku=function(_){Yl(_);let P=E(_);if(P){let Re=[];bl(P,Ce=>{vl(Re,Ce)}),bl(Re,Ce=>{try{v(Ce)}catch{}})}let se=S(_);if(se)for(let Re=se.length-1;Re>=0;--Re){let Ce=se[Re],Ke=Ce&&Ce.name;if(typeof Ke=="string")try{_.removeAttribute(Ke)}catch{}}},_a=function(_,P){try{vl(t.removed,{attribute:P.getAttributeNode(_),from:P})}catch{vl(t.removed,{attribute:null,from:P})}if(P.removeAttribute(_),_==="is")if(W||F)try{Eo(P)}catch{}else try{P.setAttribute(_,"")}catch{}},MO=function(_){let P=S(_);if(P)for(let se=P.length-1;se>=0;--se){let Re=P[se],Ce=Re&&Re.name;if(!(typeof Ce!="string"||ke[Xt(Ce)]))try{_.removeAttribute(Ce)}catch{}}},Yl=function(_){let P=[_];for(;P.length>0;){let se=P.pop();(w?w(se):se.nodeType)===Br.element&&MO(se);let Ce=E(se);if(Ce)for(let Ke=Ce.length-1;Ke>=0;--Ke)P.push(Ce[Ke])}},IO=function(_){if(!Ze)return;let P=[_];for(;P.length>0;){let se=P.pop(),Re=w?w(se):se.nodeType;if(Re===Br.processingInstruction||Re===Br.comment&&Cn(KN,se.data)){try{v(se)}catch{}continue}if(Re===Br.element){let Ke=se,Tt=Xt(C?C(se):se.nodeName);try{Ke.hasAttribute&&Ke.hasAttribute("patchsrc")&&Ke.removeAttribute("patchsrc"),Ke.hasAttribute&&Ke.hasAttribute("for")&&Tt!=="label"&&Tt!=="output"&&Ke.removeAttribute("for")}catch{}}let Ce=E(se);if(Ce)for(let Ke=Ce.length-1;Ke>=0;--Ke)P.push(Ce[Ke])}},Zv=function(_){let P=null,se=null;if($)_="<remove></remove>"+_;else{let Ke=BN(_,/^[\r\n\t ]+/);se=Ke&&Ke[0]}Wl==="application/xhtml+xml"&&dn===Ve&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");let Re=T?he(_):_;if(dn===Ve)try{P=new d().parseFromString(Re,Wl)}catch{}if(!P||!P.documentElement){P=U.createDocument(dn,"template",null);try{P.documentElement.innerHTML=ft?D:Re}catch{}}let Ce=P.body||P.documentElement;return _&&se&&Ce.insertBefore(n.createTextNode(se),Ce.childNodes[0]||null),dn===Ve?A.call(P,le?"html":"body")[0]:le?P.documentElement:Ce},Jv=function(_){let P=O?O(_):_.ownerDocument;return ae.call(P||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Wu=function(_){return _=du(_,K," "),_=du(_,fe," "),_=du(_,xe," "),_},Sm=function(_){var P;_.normalize();let se=O?O(_):_.ownerDocument,Re=ae.call(se||_,_,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),Ce=Re.nextNode();for(;Ce;)Ce.data=Wu(Ce.data),Ce=Re.nextNode();let Ke=(P=_.querySelectorAll)===null||P===void 0?void 0:P.call(_,"template");Ke&&bl(Ke,Tt=>{cs(Tt.content)&&Sm(Tt.content)})},Yu=function(_){let P=C?C(_):null;return typeof P!="string"||Xt(P)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==S(_)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==w(_)||_.childNodes!==E(_)},cs=function(_){if(!w||typeof _!="object"||_===null)return!1;try{return w(_)===Br.documentFragment}catch{return!1}},Vl=function(_){if(!w||typeof _!="object"||_===null)return!1;try{return typeof w(_)=="number"}catch{return!1}};function bi(ce,_,P){ce.length!==0&&bl(ce,se=>{se.call(t,_,P,ls)})}let LO=function(_,P){return!!(Ze&&_.hasChildNodes()&&!Vl(_.firstElementChild)&&Cn(GN,_.textContent)&&Cn(GN,_.innerHTML)||Ze&&_.namespaceURI===Ve&&P==="style"&&Vl(_.firstElementChild)||_.nodeType===Br.processingInstruction||Ze&&_.nodeType===Br.comment&&Cn(KN,_.data))},DO=function(_,P,se){if(!lt[P]&&r1(P)&&(be.tagNameCheck instanceof RegExp&&Cn(be.tagNameCheck,P)||be.tagNameCheck instanceof Function&&be.tagNameCheck(P)))return!1;if(Q&&!J[P]){let Re=h(_),Ce=E(_);if(Ce&&Re){let Ke=Ce.length;for(let Tt=Ke-1;Tt>=0;--Tt){let Qt=_===se?p(Ce[Tt],!0):Ce[Tt];Re.insertBefore(Qt,b(_))}}}return Eo(_),!0},e1=function(_,P,se,Re){return _.length===0?P:P===se||P===Re?Yn(P):P},t1=function(_,P){if(bi(L.beforeSanitizeElements,_,null),_!==P&&h(_)===null)return G&&Yl(_),!0;if(Yu(_))return Eo(_),!0;let se=Xt(C?C(_):_.nodeName);if(te=e1(L.uponSanitizeElement,te,Ie,u),bi(L.uponSanitizeElement,_,{tagName:se,allowedTags:te}),_!==P&&h(_)===null)return G&&Yl(_),!0;if(LO(_,se))return Eo(_),!0;if(lt[se]||!(Yt.tagCheck instanceof Function&&Yt.tagCheck(se))&&!te[se]){let Ce=DO(_,se,P);return Ce===!1&&bi(L.afterSanitizeElements,_,null),Ce}if((w?w(_):_.nodeType)===Br.element&&!CO(_)||(se==="noscript"||se==="noembed"||se==="noframes")&&Cn(gB,_.innerHTML))return Eo(_),!0;if(mt&&_.nodeType===Br.text){let Ce=Wu(_.textContent);_.textContent!==Ce&&(vl(t.removed,{element:_.cloneNode()}),_.textContent=Ce)}return bi(L.afterSanitizeElements,_,null),!1},n1=function(_,P,se){if(Ee[P]||Ze&&P==="patchsrc"||Ze&&P==="for"&&_!=="label"&&_!=="output"||x&&(P==="id"||P==="name")&&(se in n||se in kO))return!1;let Re=ke[P]||Yt.attributeCheck instanceof Function&&Yt.attributeCheck(P,_);if(!(Ge&&Cn(ze,P))){if(!(Ot&&Cn(we,P))){if(Re){if(!Oe[P]){if(!Cn(jt,du(se,Se,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&_!=="script"&&PN(se,"data:")===0&&pe[_])){if(!(Dn&&!Cn(Ue,du(se,Se,"")))){if(se)return!1}}}}}else if(!(r1(_)&&(be.tagNameCheck instanceof RegExp&&Cn(be.tagNameCheck,_)||be.tagNameCheck instanceof Function&&be.tagNameCheck(_))&&(be.attributeNameCheck instanceof RegExp&&Cn(be.attributeNameCheck,P)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(P,_))||P==="is"&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&Cn(be.tagNameCheck,se)||be.tagNameCheck instanceof Function&&be.tagNameCheck(se))))return!1}}return!0},BO=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),r1=function(_){return!BO[pu(_)]&&Cn(Ye,_)},PO=function(_,P,se,Re){if(T&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!se)switch(f.getAttributeType(_,P)){case"TrustedHTML":return he(Re);case"TrustedScriptURL":return de(Re)}return Re},zO=function(_,P,se,Re){try{se?_.setAttributeNS(se,P,Re):_.setAttribute(P,Re),Yu(_)?Eo(_):DN(t.removed)}catch{_a(P,_)}},i1=function(_){bi(L.beforeSanitizeAttributes,_,null);let P=_.attributes;if(!P||Yu(_))return;ke=e1(L.uponSanitizeAttribute,ke,Qe,R);let se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0},Re=P.length,Ce=Xt(_.nodeName);for(;Re--;){let Ke=P[Re],Tt=Ke.name,Qt=Ke.namespaceURI,sr=Ke.value,lr=Xt(Tt),wm=sr,Jn=Tt==="value"?wm:Q4(wm);if(se.attrName=lr,se.attrValue=Jn,se.keepAttr=!0,se.forceKeepAttr=void 0,bi(L.uponSanitizeAttribute,_,se),Jn=se.attrValue,B&&(lr==="id"||lr==="name")&&PN(Jn,oe)!==0&&(_a(Tt,_),Jn=oe+Jn),Ze&&Cn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Jn)){_a(Tt,_);continue}if(lr==="attributename"&&BN(Jn,"href")){_a(Tt,_);continue}if(!se.forceKeepAttr){if(!se.keepAttr){_a(Tt,_);continue}if(!Bt&&Cn(hB,Jn)){_a(Tt,_);continue}if(mt&&(Jn=Wu(Jn)),!n1(Ce,lr,Jn)){_a(Tt,_);continue}Jn=PO(Ce,lr,Qt,Jn),Jn!==wm&&zO(_,Tt,Qt,Jn)}}bi(L.afterSanitizeAttributes,_,null)},Vu=function(_){let P=null,se=Jv(_);for(bi(L.beforeSanitizeShadowDOM,_,null);P=se.nextNode();)if(bi(L.uponSanitizeShadowNode,P,null),t1(P,_),i1(P),cs(P.content)&&Vu(P.content),(w?w(P):P.nodeType)===Br.element){let Ce=g(P);cs(Ce)&&(Em(Ce),Vu(Ce))}bi(L.afterSanitizeShadowDOM,_,null)},Em=function(_){let P=[{node:_,shadow:null}];for(;P.length>0;){let se=P.pop();if(se.shadow){Vu(se.shadow);continue}let Re=se.node,Ke=(w?w(Re):Re.nodeType)===Br.element,Tt=E(Re);if(Tt)for(let Qt=Tt.length-1;Qt>=0;--Qt)P.push({node:Tt[Qt],shadow:null});if(Ke){let Qt=C?C(Re):null;if(typeof Qt=="string"&&Xt(Qt)==="template"){let sr=Re.content;cs(sr)&&P.push({node:sr,shadow:null})}}if(Ke){let Qt=g(Re);cs(Qt)&&P.push({node:null,shadow:Qt},{node:Qt,shadow:null})}}};return t.sanitize=function(ce){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=null,se=null,Re=null,Ce=null;if(ft=!ce,ft&&(ce="<!-->"),typeof ce!="string"&&!Vl(ce)&&(ce=nB(ce),typeof ce!="string"))throw Za("dirty is not a string, aborting");if(!t.isSupported)return ce;ye?(te=u,ke=R):xm(_),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(te=Yn(te)),L.uponSanitizeAttribute.length>0&&(ke=Yn(ke)),t.removed=[];let Ke=G&&typeof ce!="string"&&Vl(ce);if(Ke){IO(ce);let sr=C?C(ce):ce.nodeName;if(typeof sr=="string"){let lr=Xt(sr);if(!te[lr]||lt[lr])throw Ku(ce),Za("root node is forbidden and cannot be sanitized in-place")}if(Yu(ce))throw Ku(ce),Za("root node is clobbered and cannot be sanitized in-place");try{Em(ce)}catch(lr){throw Ku(ce),lr}}else if(Vl(ce))P=Zv("<!---->"),se=P.ownerDocument.importNode(ce,!0),se.nodeType===Br.element&&se.nodeName==="BODY"||se.nodeName==="HTML"?P=se:P.appendChild(se),Em(se);else{if(!W&&!mt&&!le&&ce.indexOf("<")===-1)return T&&ie?he(ce):ce;if(P=Zv(ce),!P)return W?null:ie?D:""}P&&$&&Eo(P.firstChild);let Tt=Ke?ce:P;try{let sr=Jv(Tt);for(;Re=sr.nextNode();)t1(Re,Tt),i1(Re),cs(Re.content)&&Vu(Re.content)}catch(sr){throw Ke&&(Ku(ce),bl(t.removed,lr=>{lr.element&&Yl(lr.element)})),sr}if(Ke)return bl(t.removed,sr=>{sr.element&&Yl(sr.element)}),mt&&Sm(ce),ce;if(W){if(mt&&Sm(P),F)for(Ce=j.call(P.ownerDocument);P.firstChild;)Ce.appendChild(P.firstChild);else Ce=P;return(ke.shadowroot||ke.shadowrootmode)&&(Ce=I.call(r,Ce,!0)),Ce}let Qt=le?P.outerHTML:P.innerHTML;return le&&te["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&Cn(pB,P.ownerDocument.doctype.name)&&(Qt="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
|
|
359
|
+
`+Qt),mt&&(Qt=Wu(Qt)),T&&ie?he(Qt):Qt},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xm(ce),ye=!0,u=te,R=ke},t.clearConfig=function(){ls=null,ye=!1,u=null,R=null,T=q,D=""},t.isValidAttribute=function(ce,_,P){ls||xm({});let se=Xt(ce),Re=Xt(_);return n1(se,Re,P)},t.addHook=function(ce,_){typeof _=="function"&&Mn(L,ce)&&vl(L[ce],_)},t.removeHook=function(ce,_){if(Mn(L,ce)){if(_!==void 0){let P=V4(L[ce],_);return P===-1?void 0:X4(L[ce],P,1)[0]}return DN(L[ce])}},t.removeHooks=function(ce){Mn(L,ce)&&(L[ce]=[])},t.removeAllHooks=function(){L=WN()},t}var QN=XN();var kb=M(Y()),vB={FORBID_TAGS:["script"],FORBID_ATTR:["srcdoc"],ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","target"]};function Ab({html:e}){let[t,n]=(0,hp.useState)("");return(0,hp.useEffect)(()=>{n(QN.sanitize(e,vB))},[e]),(0,kb.jsx)("div",{"data-raw-html":"",className:"dm-raw-html",children:(0,kb.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})}var yp=M(Me()),ZN=M(Y());function Rb({className:e,lightSrc:t,darkSrc:n,alt:r,title:i}){let[o,a]=(0,yp.useState)(null);return(0,yp.useEffect)(()=>{let s=document.documentElement,l=()=>a(s.getAttribute("data-theme")==="dark"?n:t);l();let c=new MutationObserver(l);return c.observe(s,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[t,n]),(0,ZN.jsx)("img",{className:e,src:o??void 0,alt:r,title:i,loading:"lazy",onError:()=>{o&&o!==t&&a(t)}})}var H=M(Y());function bp({content:e,basePath:t,branchQuery:n,pageLinks:r,assetRef:i,assetPath:o,projectSlug:a}){let s={basePath:t,branchQuery:n,pageLinks:r??{},assetRef:i,assetPath:o,projectSlug:a||Yf(t)};return(0,H.jsx)("div",{className:"ProseMirror dm-reader-doc",children:xt(e?.content,s)})}function xt(e,t){return e?.length?e.map((n,r)=>(0,H.jsx)(ek.default.Fragment,{children:XB(n,t)},r)):null}function tk(e,t){if(t.basePath===void 0)return null;let n=RT(e,t.pageLinks,t.assetPath);return n?It(t.basePath,n.route,t.branchQuery,n.hash):null}function xB(e){return!e.startsWith("/api/assets/")||e.includes("download=")?e:`${e}${e.includes("?")?"&":"?"}download=1`}function nk(e,t){return t.basePath===void 0?null:PT(e,t.assetRef,t.assetPath,t.projectSlug)}function rk(e,t){return Hf(t.basePath,e,t.branchQuery)}function SB(e,t,n,r){let i=typeof t?.href=="string"?t.href:"",o=tk(i,n);if(o)return(0,H.jsx)(Je,{href:o,prefetch:!1,children:e},r);let a=nk(i,n);if(a)return(0,H.jsx)("a",{href:a.href,...a.downloadName?{download:a.downloadName}:{},children:e},r);let s=rk(i,n);if(s)return(0,H.jsx)(Je,{href:s,prefetch:!1,children:e},r);let l=/^[a-z]+:\/\//i.test(i);return(0,H.jsx)("a",{href:i||void 0,...l?{target:"_blank",rel:"noopener noreferrer"}:{},children:e},r)}function EB(e,t){let n=e.text??"",r=e.marks??[];for(let i=r.length-1;i>=0;i--){let o=r[i];switch(o.type){case"bold":n=(0,H.jsx)("strong",{children:n},i);break;case"italic":n=(0,H.jsx)("em",{children:n},i);break;case"strike":n=(0,H.jsx)("s",{children:n},i);break;case"underline":n=(0,H.jsx)("u",{children:n},i);break;case"code":n=(0,H.jsx)("code",{children:n},i);break;case"kbd":n=(0,H.jsx)("kbd",{children:n},i);break;case"highlight":n=(0,H.jsx)("mark",{children:n},i);break;case"subscript":n=(0,H.jsx)("sub",{children:n},i);break;case"superscript":n=(0,H.jsx)("sup",{children:n},i);break;case"textColor":{let a=zT(typeof o.attrs?.color=="string"?o.attrs.color:"");a&&(n=(0,H.jsx)("span",{className:"dm-author-color","data-color":a.color,style:{"--dm-author":a.cssVar},children:n},i));break}case"link":n=SB(n,o.attrs,t,i);break;default:break}}return n}function ik(e){return e?.textAlign&&e.textAlign!=="left"?{textAlign:e.textAlign}:void 0}function wB(e,t){let r=`h${Math.min(6,Math.max(1,Number(e.attrs?.level)||1))}`,o=(typeof e.attrs?.id=="string"?e.attrs.id:"")||Jf(Ob(e))||void 0;return(0,H.jsx)(r,{id:o,style:ik(e.attrs),children:xt(e.content,t)})}function Ob(e){return typeof e.text=="string"?e.text:(e.content??[]).map(Ob).join("")}function _B({node:e}){let n=(typeof e.attrs?.language=="string"?e.attrs.language:"").trim().toLowerCase(),r=Ob(e),i=MN(vb,r,n);return(0,H.jsxs)("div",{className:"dm-code-block","data-language":n||"plain",children:[(0,H.jsxs)("div",{className:"dm-code-block-chrome",children:[(0,H.jsx)("span",{className:"dm-code-block-lang-label",children:RN(n)}),(0,H.jsx)("button",{type:"button",className:"dm-code-block-copy","data-dm-copy":"",title:"Copy code","aria-label":"Copy code",children:(0,H.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:[(0,H.jsx)("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),(0,H.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15V5a2 2 0 012-2h10"})]})})]}),(0,H.jsx)("pre",{className:"dm-code-block-pre",children:(0,H.jsx)("code",{className:"dm-code-block-highlighted",dangerouslySetInnerHTML:{__html:i}})})]})}function TB(e){let t=e.content?.[0],n=[];for(let r of t?.content??[]){let i=r.attrs?.colwidth,o=Number(r.attrs?.colspan)||1;if(Array.isArray(i)&&i.length>0)for(let a=0;a<o;a++)n.push(Number(i[a])||0);else for(let a=0;a<o;a++)n.push(0)}return n}function NB(e,t){let n=e.length;if(n===0)return{};let r={},i=e.some(a=>a>0);if(t&&!i){for(let a=0;a<n;a++)r["--dm-freeze-"+(a+1)]=`calc(${a} * 100% / ${n})`;return r}let o=0;for(let a=0;a<n;a++)r["--dm-freeze-"+(a+1)]=`${o}px`,o+=e[a]>0?e[a]:nb;return r}function kB(e,t){let n=TB(e),r=n.some(d=>d>0),i=!!e.attrs?.wrapText,o=Math.max(0,Number(e.attrs?.frozenColumns)||0),a=(Number(e.attrs?.frozenRows)||0)>0?1:0,s=VT(n,{wrap:i}),l=[e.attrs?.fixedWidths?"dm-table-fixed":"",e.attrs?.numberedRows?"dm-table-numbered":"",i?"dm-table-wrap":"",o>0?"dm-table-frozen":"",a>0?"dm-table-frozen-rows":""].filter(Boolean).join(" ")||void 0,c={width:s.width||void 0,minWidth:s.minWidth,...o>0?NB(n,i):{}};return(0,H.jsx)("div",{className:"tableWrapper",children:(0,H.jsxs)("table",{className:l,...e.attrs?.fixedWidths?{"data-fixed-widths":"true"}:{},...e.attrs?.numberedRows?{"data-numbered-rows":"true"}:{},...i?{"data-wrap-text":"true"}:{},...o>0?{"data-frozen-columns":String(o)}:{},...a>0?{"data-frozen-rows":"1"}:{},style:c,children:[r&&(0,H.jsx)("colgroup",{children:n.map((d,f)=>(0,H.jsx)("col",{style:d>0?{width:`${d}px`,minWidth:`${d}px`}:void 0},f))}),(0,H.jsx)("tbody",{children:xt(e.content,t)})]})})}function AB(e,t){let n=Number(e.attrs?.height)||0;return(0,H.jsx)("tr",{...n>0?{"data-height":String(n)}:{},style:n>0?{height:`${n}px`}:void 0,children:xt(e.content,t)})}function JN(e,t,n){let r=n?"th":"td",i=Number(e.attrs?.colspan)||1,o=Number(e.attrs?.rowspan)||1;return(0,H.jsx)(r,{colSpan:i>1?i:void 0,rowSpan:o>1?o:void 0,children:xt(e.content,t)})}function RB(e,t){let n=e.attrs??{},r=uo(String(n.src??""),t.assetRef,t.assetPath,t.projectSlug),i=typeof n.alt=="string"?n.alt:"",o=typeof n.title=="string"&&n.title?n.title:void 0,a=typeof n.darkSrc=="string"&&n.darkSrc?uo(n.darkSrc,t.assetRef,t.assetPath,t.projectSlug):null;return a?(0,H.jsx)(Rb,{className:"docmind-img",lightSrc:r,darkSrc:a,alt:i,title:o}):(0,H.jsx)("img",{className:"docmind-img",src:r,alt:i,title:o,loading:"lazy"})}function OB(e,t){let n=String(e.attrs?.type??"info"),r=typeof e.attrs?.title=="string"?e.attrs.title:"";return(0,H.jsx)("div",{"data-callout":"","data-callout-type":n,className:`callout callout-${n}`,children:(0,H.jsxs)("div",{className:"callout-content",children:[r&&(0,H.jsx)("div",{className:"callout-title",children:r}),(0,H.jsx)("div",{className:"callout-body",children:xt(e.content,t)})]})})}function CB(e,t){let{icon:n="",color:r=""}=e.attrs??{},i=r?{borderColor:`color-mix(in srgb, ${r} 35%, var(--border))`,background:`color-mix(in srgb, ${r} 8%, var(--bg))`}:void 0;return(0,H.jsxs)("div",{"data-custom-callout":"",className:"dm-custom-callout",style:i,children:[n&&(0,H.jsx)("div",{className:"dm-custom-callout-icon",style:r?{color:r}:void 0,children:(0,H.jsx)(hn,{icon:n,size:18,color:r||"var(--brand)"})}),(0,H.jsx)("div",{className:"dm-custom-callout-body",children:xt(e.content,t)})]})}function MB(e,t){let{title:n="",icon:r="",href:i="",img:o="",cta:a="",type:s="",horizontal:l=!1,arrow:c=!1}=e.attrs??{},d="dm-card"+(l?" dm-card-horizontal":"")+(s?` dm-card-type-${s}`:""),f=(0,H.jsxs)(H.Fragment,{children:[o&&(0,H.jsx)("img",{src:o,alt:n||"",className:"dm-card-img"}),(0,H.jsxs)("div",{className:"dm-card-main",children:[(0,H.jsxs)("div",{className:"dm-card-header",children:[r&&(0,H.jsx)("div",{className:"dm-card-icon",children:(0,H.jsx)(hn,{icon:r,size:22,color:"var(--brand)"})}),n&&(0,H.jsx)("span",{className:"dm-card-title",children:n})]}),xt(e.content,t),i&&(a||c)&&(0,H.jsxs)("div",{className:"dm-card-cta",children:[a||"Learn more",c&&(0,H.jsx)("span",{className:"dm-card-cta-arrow",children:"\u2192"})]})]})]});if(!i)return(0,H.jsx)("div",{"data-card":"",className:d,children:f});let m=tk(i,t);if(m)return(0,H.jsx)(Je,{"data-card":"",className:d,href:m,prefetch:!1,style:{textDecoration:"none"},children:f});let p=nk(i,t);if(p)return(0,H.jsx)("a",{"data-card":"",className:d,href:p.href,style:{textDecoration:"none"},...p.downloadName?{download:p.downloadName}:{},children:f});let v=rk(i,t);if(v)return(0,H.jsx)(Je,{"data-card":"",className:d,href:v,prefetch:!1,style:{textDecoration:"none"},children:f});let b=/^[a-z]+:\/\//i.test(i);return(0,H.jsx)("a",{"data-card":"",className:d,href:i,style:{textDecoration:"none"},...b?{target:"_blank",rel:"noopener noreferrer"}:{},children:f})}function IB(e,t){let n=Number(e.attrs?.cols)||2;return(0,H.jsx)("div",{className:"dm-card-group-outer",children:(0,H.jsx)("div",{className:"dm-card-group",style:{display:"grid",gap:"1rem",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,width:"100%"},children:xt(e.content,t)})})}function LB(e,t){let n=Number(e.attrs?.cols)||2;return(0,H.jsx)("div",{"data-columns":"",className:"dm-columns","data-cols":String(n),style:{display:"grid",gap:"1rem",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`},children:xt(e.content,t)})}function DB(e,t){return(0,H.jsx)("div",{"data-steps":"",className:"dm-steps",children:xt(e.content,t)})}function BB(e,t){let n=typeof e.attrs?.title=="string"?e.attrs.title:"";return(0,H.jsxs)("div",{"data-step":"",className:"dm-step","data-title":"",children:[n&&(0,H.jsx)("div",{className:"dm-step-header",children:(0,H.jsx)("span",{className:"dm-step-title-display dm-step-title-readonly",children:n})}),xt(e.content,t)]})}function PB(e,t){let n=e.attrs??{},r=String(n.date??""),i=String(n.version??""),o=ep(String(n.tags??"")),a=n.id&&String(n.id)||rb(r,i);return(0,H.jsxs)("div",{"data-update":"",id:a,className:"dm-update","data-date":r,"data-version":i,"data-tags":o.join(","),children:[(0,H.jsxs)("div",{className:"dm-update-meta",children:[(0,H.jsx)("time",{className:"dm-update-date",children:r||"Undated"}),i&&(0,H.jsx)("span",{className:"dm-update-version",children:i}),o.length>0&&(0,H.jsx)("span",{className:"dm-update-tags",children:o.map(s=>(0,H.jsx)("span",{className:"dm-update-tag",children:s},s))}),(0,H.jsx)("a",{className:"dm-update-anchor",href:`#${a}`,"aria-label":"Link to this entry",children:"#"})]}),(0,H.jsx)("div",{className:"dm-update-body",children:xt(e.content,t)})]})}function zB(e,t){let n=(e.content??[]).map((r,i)=>typeof r.attrs?.title=="string"&&r.attrs.title?r.attrs.title:`Tab ${i+1}`);return(0,H.jsxs)("div",{"data-tabs":"",className:"dm-tabs",children:[(0,H.jsx)("div",{className:"dm-tab-bar",children:n.map((r,i)=>(0,H.jsx)("div",{className:"dm-tab-btn-wrap"+(i===0?" active":""),children:(0,H.jsx)("button",{type:"button",className:"dm-tab-btn"+(i===0?" active":""),"data-dm-tab-idx":i,children:r})},i))}),(0,H.jsx)("div",{children:(e.content??[]).map((r,i)=>(0,H.jsx)("div",{"data-tab":"",className:"dm-tab","data-title":n[i],style:i===0?void 0:{display:"none"},children:xt(r.content,t)},i))})]})}function UB(e,t){return(0,H.jsx)("div",{"data-accordiongroup":"",className:"dm-accordion-group",children:xt(e.content,t)})}function $B(e,t){let n=e.attrs??{},r=typeof n.title=="string"?n.title:"",i=typeof n.icon=="string"?n.icon:"",o=typeof n.description=="string"?n.description:"",a=n.defaultOpen===!0;return(0,H.jsxs)("div",{"data-accordion":"",className:"dm-accordion"+(a?"":" collapsed"),children:[(0,H.jsxs)("button",{type:"button",className:"dm-accordion-header","data-enhanced":"1","data-dm-toggle":"accordion",children:[i&&(0,H.jsx)("span",{className:"dm-accordion-icon",children:(0,H.jsx)(hn,{icon:i,size:15,color:"currentColor"})}),(0,H.jsxs)("span",{className:"dm-accordion-header-text",children:[(0,H.jsx)("span",{children:r||"Details"}),o&&(0,H.jsx)("span",{className:"dm-accordion-description",children:o})]})]}),(0,H.jsx)("div",{className:"dm-accordion-body",style:a?void 0:{display:"none"},children:xt(e.content,t)})]})}function HB(e,t){let n=typeof e.attrs?.title=="string"?e.attrs.title:"",r=e.attrs?.defaultOpen===!0;return(0,H.jsxs)("div",{"data-expandable":"",className:"dm-expandable"+(r?"":" collapsed"),children:[(0,H.jsx)("button",{type:"button",className:"dm-expandable-header","data-dm-toggle":"expandable",children:n||"Details"}),(0,H.jsx)("div",{className:"dm-expandable-body",style:r?void 0:{display:"none"},children:xt(e.content,t)})]})}function jB(e,t){let n=typeof e.attrs?.trigger=="string"&&e.attrs.trigger?e.attrs.trigger:"Open dialog",r=typeof e.attrs?.title=="string"?e.attrs.title:"";return(0,H.jsxs)("div",{"data-dialog":"",className:"dm-dialog",children:[(0,H.jsx)("button",{type:"button",className:"dm-dialog-trigger","data-dm-dialog-open":"",children:n}),(0,H.jsx)("div",{className:"dm-dialog-overlay",style:{display:"none"},children:(0,H.jsxs)("div",{className:"dm-dialog-modal",role:"dialog","aria-modal":"true",children:[r&&(0,H.jsx)("h3",{className:"dm-dialog-title",children:r}),(0,H.jsx)("div",{className:"dm-dialog-body",children:xt(e.content,t)}),(0,H.jsx)("div",{className:"dm-dialog-actions",children:(0,H.jsx)("button",{type:"button",className:"dm-dialog-close","data-dm-dialog-close":"",children:"Close"})})]})})]})}function FB(e,t){let n=typeof e.attrs?.caption=="string"?e.attrs.caption:"";return(0,H.jsxs)("div",{"data-frame":"",className:"dm-frame",children:[(0,H.jsx)("div",{className:"dm-frame-content",children:xt(e.content,t)}),n&&(0,H.jsx)("div",{className:"dm-frame-caption",children:n})]})}function qB(e){let t=e.attrs??{},n=String(t.className??""),r=/^http-(get|post|put|patch|delete)$/i.test(n)?n:"",i=$T(typeof t.color=="string"?t.color:""),o=["dm-badge",r||i.className,!r&&(t.size?`dm-badge-${t.size}`:"dm-badge-md"),t.shape==="pill"?"dm-badge-pill":"",t.stroke?"dm-badge-stroke":"",t.disabled?"dm-badge-disabled":"",n&&!r?n:""].filter(Boolean).join(" ");return(0,H.jsxs)("span",{"data-badge":"",className:o,style:r?void 0:i.style,children:[t.icon&&(0,H.jsx)(hn,{icon:t.icon,size:11,color:"currentColor"}),String(t.text??"")]})}var GB=/^\d+(\.\d+)?\s*\/\s*\d+(\.\d+)?$/;function KB(e){let t=String(e??"").trim();return GB.test(t)?t:"16 / 9"}function WB(e,t){let n=String(e.attrs?.src??"").trim(),r=qy(n,t.assetRef,t.assetPath,t.projectSlug);return r?(0,H.jsx)("div",{"data-video":"",className:"dm-video",children:(0,H.jsx)("video",{className:"dm-video-player",src:r,controls:!0,preload:"metadata",playsInline:!0})}):(0,H.jsx)("div",{"data-video":"",className:"dm-video",children:(0,H.jsx)("div",{className:"dm-video-placeholder"})})}function YB(e){let t=String(e.attrs?.src??"").trim(),n=/^https?:\/\//i.test(t)?t:"",r=String(e.attrs?.title??"");return(0,H.jsx)("div",{"data-embed":"",className:"dm-embed",children:(0,H.jsx)("div",{className:"dm-embed-ratio",style:{aspectRatio:KB(e.attrs?.ratio)},children:n?(0,H.jsx)("iframe",{src:n,title:r||"Embedded content",className:"dm-embed-frame",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0}):(0,H.jsx)("div",{className:"dm-embed-placeholder"})})})}function VB(e,t){let n=String(e.attrs?.src??"").trim(),r=qy(n,t.assetRef,t.assetPath,t.projectSlug),i=String(e.attrs?.title??"").trim(),o=(n.split(/[?#]/)[0].split("/").pop()??"").trim(),a=i||o||"Document.pdf",s=Jy(e.attrs?.height);return(0,H.jsxs)("div",{"data-pdf":"",className:"dm-pdf",children:[(0,H.jsxs)("div",{className:"dm-pdf-bar",children:[(0,H.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[(0,H.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),(0,H.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2v6h6"})]}),(0,H.jsx)("span",{className:"dm-pdf-name",children:a}),r&&(0,H.jsx)("a",{className:"dm-pdf-download",href:xB(r),download:!0,children:"Download"})]}),(0,H.jsx)("div",{className:"dm-pdf-body",style:{height:`${s}px`},children:r?(0,H.jsx)("iframe",{src:r,title:a,className:"dm-pdf-frame",loading:"lazy"}):(0,H.jsx)("div",{className:"dm-pdf-placeholder"})})]})}function XB(e,t){switch(e.type){case"text":return EB(e,t);case"paragraph":return(0,H.jsx)("p",{style:ik(e.attrs),children:xt(e.content,t)});case"heading":return wB(e,t);case"bulletList":return(0,H.jsx)("ul",{children:xt(e.content,t)});case"orderedList":{let n=Number(e.attrs?.start)||1;return(0,H.jsx)("ol",{start:n!==1?n:void 0,children:xt(e.content,t)})}case"listItem":return(0,H.jsx)("li",{children:xt(e.content,t)});case"taskList":return(0,H.jsx)("ul",{"data-type":"taskList",children:xt(e.content,t)});case"taskItem":{let n=e.attrs?.checked===!0;return(0,H.jsxs)("li",{"data-type":"taskItem","data-checked":n?"true":"false",children:[(0,H.jsxs)("label",{children:[(0,H.jsx)("input",{type:"checkbox",checked:n,disabled:!0,readOnly:!0}),(0,H.jsx)("span",{})]}),(0,H.jsx)("div",{children:xt(e.content,t)})]})}case"blockquote":{let n=UT(typeof e.attrs?.color=="string"?e.attrs.color:"");return(0,H.jsx)("blockquote",{...n?{"data-accent":n.color,style:{"--dm-accent":n.color}}:{},children:xt(e.content,t)})}case"horizontalRule":return(0,H.jsx)("hr",{});case"hardBreak":return(0,H.jsx)("br",{});case"codeBlock":return(0,H.jsx)(_B,{node:e});case"codeGroup":return(0,H.jsx)("div",{"data-codegroup":"",className:"dm-code-group",children:xt(e.content,t)});case"table":return kB(e,t);case"tableRow":return AB(e,t);case"tableCell":return JN(e,t,!1);case"tableHeader":return JN(e,t,!0);case"image":return RB(e,t);case"callout":return OB(e,t);case"customCallout":return CB(e,t);case"card":return MB(e,t);case"cardGroup":return IB(e,t);case"columns":return LB(e,t);case"column":return(0,H.jsx)("div",{"data-column":"",className:"dm-column",children:xt(e.content,t)});case"steps":return DB(e,t);case"step":return BB(e,t);case"update":return PB(e,t);case"tabs":return zB(e,t);case"tab":return(0,H.jsx)("div",{"data-tab":"",className:"dm-tab",children:xt(e.content,t)});case"accordionGroup":return UB(e,t);case"accordion":return $B(e,t);case"expandable":return HB(e,t);case"dialog":return jB(e,t);case"frame":return FB(e,t);case"badge":return qB(e);case"embed":return YB(e);case"video":return WB(e,t);case"pdf":return VB(e,t);case"mermaid":return(0,H.jsx)("div",{"data-mermaid":"","data-code":String(e.attrs?.code??""),className:"dm-mermaid",children:String(e.attrs?.code??"")});case"rawHtml":return(0,H.jsx)(Ab,{html:String(e.attrs?.html??"")});default:return e.content?(0,H.jsx)("div",{children:xt(e.content,t)}):null}}Wa();var ti=M(Me()),Tn=M(Y()),vp=null;function ok(){return document.documentElement.getAttribute("data-theme")==="dark"?"dark":"neutral"}function QB(){let e=window;return e.mermaid?Promise.resolve(e.mermaid):vp||(vp=new Promise((t,n)=>{let r=()=>{e.mermaid.initialize({startOnLoad:!1,theme:ok()}),t(e.mermaid)},i=document.getElementById("dm-mermaid-script");if(i){i.addEventListener("load",r),i.addEventListener("error",()=>n(new Error("mermaid load failed")));return}let o=document.createElement("script");o.id="dm-mermaid-script",o.src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",o.onload=r,o.onerror=()=>n(new Error("mermaid load failed")),document.body.appendChild(o)}),vp)}function Sl({scopeSelector:e=".dm-reader-doc"}){let[t,n]=(0,ti.useState)(null),[r,i]=(0,ti.useState)(null),o=(0,ti.useRef)(!1);return(0,ti.useEffect)(()=>{let a=s=>{let l=s.target;if(!l?.closest(e))return;let c=l.closest("[data-dm-copy]");if(c){let h=c.closest(".dm-code-block")?.querySelector(".dm-code-block-highlighted")?.textContent??"";navigator.clipboard?.writeText(h).then(()=>{c.dataset.copied="true",setTimeout(()=>{delete c.dataset.copied},1500)}).catch(()=>{});return}let d=l.closest("[data-dm-tab-idx]");if(d){let E=Number(d.dataset.dmTabIdx)||0,h=d.closest(".dm-tabs");if(!h)return;h.querySelectorAll(":scope > .dm-tab-bar .dm-tab-btn").forEach((S,w)=>{S.classList.toggle("active",w===E),S.parentElement?.classList.toggle("active",w===E)}),h.querySelector(":scope > div:not(.dm-tab-bar)")?.querySelectorAll(":scope > [data-tab]").forEach((S,w)=>{S.style.display=w===E?"":"none"});return}let f=l.closest("[data-dm-toggle]");if(f){let E=f.closest("[data-accordion], [data-expandable]"),h=E?.querySelector(":scope > .dm-accordion-body, :scope > .dm-expandable-body");if(!E||!h)return;let g=E.classList.toggle("collapsed");h.style.display=g?"none":"";return}let m=l.closest("[data-dm-dialog-open]");if(m){let E=m.closest("[data-dialog]")?.querySelector(".dm-dialog-overlay");E&&(E.style.display="");return}let p=l.closest("[data-dm-dialog-close]");if(p){let E=p.closest(".dm-dialog-overlay");E&&(E.style.display="none");return}if(l.classList.contains("dm-dialog-overlay")){l.style.display="none";return}let v=l.closest("[data-mermaid][data-rendered]");if(v){let E=v.querySelector("svg")?.parentElement?.innerHTML;E&&i(E);return}let b=l.closest("img.docmind-img");b?.src&&n({src:b.src,alt:b.alt||"",title:b.title||""})};return document.addEventListener("click",a),()=>document.removeEventListener("click",a)},[e]),(0,ti.useEffect)(()=>{let a=s=>{s.key==="Escape"&&(n(null),i(null),document.querySelectorAll(`${e} .dm-dialog-overlay`).forEach(l=>{l.style.display="none"}))};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),(0,ti.useEffect)(()=>{o.current=!0;let a=()=>{let l=document.querySelectorAll(`${e} [data-mermaid][data-code]`);l.length!==0&&QB().then(async c=>{c.initialize({startOnLoad:!1,theme:ok()});for(let d of l){let f=d.dataset.code??"";if(f)try{let{svg:m}=await c.render(`dm-reader-mmd-${Math.random().toString(36).slice(2)}`,f);if(!o.current)return;d.innerHTML=m,d.dataset.rendered="1",d.style.cursor="zoom-in",d.title="Click to zoom"}catch{}}}).catch(()=>{})};a();let s=new MutationObserver(l=>{l.some(c=>c.attributeName==="data-theme")&&a()});return s.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>{o.current=!1,s.disconnect()}},[e]),(0,Tn.jsxs)(Tn.Fragment,{children:[t&&(0,Tn.jsxs)("div",{className:"docmind-lightbox",onClick:()=>n(null),children:[(0,Tn.jsx)("img",{src:t.src,alt:t.alt,onClick:a=>a.stopPropagation()}),(0,Tn.jsx)("button",{className:"docmind-lightbox-close",onClick:()=>n(null),"aria-label":"Close",children:"\u2715"}),(t.title||t.alt)&&(0,Tn.jsx)("p",{className:"docmind-lightbox-caption",children:t.title||t.alt})]}),r&&(0,Tn.jsx)(ZB,{svg:r,onClose:()=>i(null)})]})}function ZB({svg:e,onClose:t}){let[n,r]=(0,ti.useState)(1),[i,o]=(0,ti.useState)({x:0,y:0}),a=(0,ti.useRef)(null),s=l=>Math.min(6,Math.max(.4,l));return(0,Tn.jsxs)("div",{className:"dm-mermaid-zoom",onClick:t,style:{position:"fixed",inset:0,zIndex:1e4,background:"rgba(15,23,42,0.82)",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,Tn.jsx)("style",{children:".dm-zoom-svg svg{width:100%!important;height:auto!important;max-width:100%!important;max-height:78vh!important;display:block}"}),(0,Tn.jsx)("div",{onClick:l=>l.stopPropagation(),onWheel:l=>{l.preventDefault(),r(c=>s(c-l.deltaY*.0016))},onPointerDown:l=>{a.current={x:l.clientX,y:l.clientY,px:i.x,py:i.y},l.currentTarget.setPointerCapture?.(l.pointerId)},onPointerMove:l=>{let c=a.current;c&&o({x:c.px+(l.clientX-c.x),y:c.py+(l.clientY-c.y)})},onPointerUp:()=>{a.current=null},onPointerLeave:()=>{a.current=null},style:{width:"94vw",height:"90vh",overflow:"hidden",touchAction:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:a.current?"grabbing":"grab"},children:(0,Tn.jsx)("div",{style:{transform:`translate(${i.x}px, ${i.y}px) scale(${n})`,transition:a.current?"none":"transform 0.08s ease-out",background:"var(--bg, #fff)",borderRadius:12,padding:24,boxShadow:"0 24px 64px rgba(0,0,0,0.45)",width:"min(1400px, 86vw)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,Tn.jsx)("div",{className:"dm-zoom-svg",style:{width:"100%",display:"flex",justifyContent:"center"},dangerouslySetInnerHTML:{__html:e}})})}),(0,Tn.jsxs)("div",{onClick:l=>l.stopPropagation(),style:{position:"fixed",top:18,right:22,display:"flex",gap:6},children:[(0,Tn.jsx)("button",{type:"button",onClick:()=>r(l=>s(l+.3)),"aria-label":"Zoom in",style:Cb,children:"+"}),(0,Tn.jsx)("button",{type:"button",onClick:()=>r(l=>s(l-.3)),"aria-label":"Zoom out",style:Cb,children:"\u2212"}),(0,Tn.jsx)("button",{type:"button",onClick:t,"aria-label":"Close",style:Cb,children:"\u2715"})]})]})}var Cb={width:34,height:34,borderRadius:8,border:"1px solid var(--border)",background:"var(--bg, #fff)",color:"var(--text-primary)",cursor:"pointer",fontSize:16,fontWeight:600,display:"flex",alignItems:"center",justifyContent:"center"};var xp=M(Me()),Mb=M(Y());function JB(e){return e===1?"0px":e===2?"12px":"24px"}function ak(e){let t=document.getElementById("docs-content-scroll");if(t instanceof HTMLElement)return t;let n=e?.parentElement??null;for(;n;){let{overflowY:r}=getComputedStyle(n);if(r==="auto"||r==="scroll")return n;n=n.parentElement}return document.documentElement}function eP(e,t){if(e.length===0)return"";let r=t.getBoundingClientRect().top+Math.min(96,t.clientHeight*.2),i=e[0].id;for(let o of e)if(o.getBoundingClientRect().top<=r+1)i=o.id;else break;return i}function tP(e){return e.map(t=>document.getElementById(t.id)).filter(Boolean)}function Ib({headings:e}){let[t,n]=(0,xp.useState)("");return(0,xp.useEffect)(()=>{if(e.length===0)return;let r=0,i=null,o=[],a=null,s,l=()=>{if(r=0,!i||o.length===0)return;let m=eP(o,i);n(p=>p===m?p:m)},c=()=>{r||(r=requestAnimationFrame(l))},d=()=>{r&&cancelAnimationFrame(r),r=0,i?.removeEventListener("scroll",c),window.removeEventListener("resize",c)},f=()=>(o=tP(e),o.length===0?!1:(d(),i=ak(o[0]),i.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),l(),!0));if(!f()){let m=document.getElementById("docs-content-scroll")??document.body;a=new MutationObserver(()=>{f()&&(a?.disconnect(),a=null)}),a.observe(m,{childList:!0,subtree:!0}),s=window.setTimeout(()=>{f(),a?.disconnect(),a=null},2500)}return()=>{d(),a?.disconnect(),s&&window.clearTimeout(s)}},[e]),e.length===0?null:(0,Mb.jsx)("nav",{style:{display:"flex",flexDirection:"column",gap:3,borderLeft:"1px solid var(--border)"},children:e.map(r=>{let i=t===r.id;return(0,Mb.jsx)("a",{className:"docs-toc-link",href:`#${r.id}`,"aria-current":i?"location":void 0,title:r.text,onClick:o=>{o.preventDefault();let a=document.getElementById(r.id),s=ak(a);if(a&&s!==document.documentElement){let l=a.getBoundingClientRect().top-s.getBoundingClientRect().top+s.scrollTop-12;s.scrollTo({top:l,behavior:"smooth"})}else a?.scrollIntoView({behavior:"smooth",block:"start"});n(r.id)},style:{fontSize:13,color:i?"var(--text-primary)":"var(--docs-nav-text)",textDecoration:"none",padding:"4px 10px",borderRadius:"4px",lineHeight:1.5,paddingLeft:`calc(10px + ${JB(r.level)})`,borderLeft:`2px solid ${i?"var(--text-primary)":"transparent"}`,marginLeft:-1,transition:"color 0.15s, border-color 0.15s",fontWeight:i?600:400},children:r.text},r.id)})})}var El=M(Me()),Rt=M(Y());function mu({pageId:e}){let[t,n]=(0,El.useState)(null),[r,i]=(0,El.useState)(!1),[o,a]=(0,El.useState)(""),[s,l]=(0,El.useState)(!1),[c,d]=(0,El.useState)(!1);async function f(v){n(v),i(!0),a("")}async function m(v){if(!t||c)return;d(!0);let b=t==="yes"?"like":"dislike",E=v?o.trim():"";await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageId:e,vote:b,...E?{note:E}:{}})}).catch(()=>{}),i(!1),l(!0),d(!1)}return s?(0,Rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,Rt.jsx)("p",{style:{margin:0,fontSize:14,color:"var(--text-muted)",fontWeight:400},children:"Thank you for your feedback!"}),(0,Rt.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,borderRadius:"50%",border:"1.5px solid var(--text-muted)",color:"var(--text-muted)",flexShrink:0},children:(0,Rt.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Rt.jsx)("path",{d:"M5 13l4 4L19 7"})})})]}):(0,Rt.jsxs)("div",{children:[(0,Rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,Rt.jsx)("p",{style:{margin:0,fontSize:14,color:"var(--text-primary)",fontWeight:400},children:"Was this helpful?"}),(0,Rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Rt.jsx)(sk,{kind:"up",active:t==="yes",onClick:()=>f("yes"),label:"Yes, helpful"}),(0,Rt.jsx)(sk,{kind:"down",active:t==="no",onClick:()=>f("no"),label:"No, not helpful"})]})]}),r&&t&&(0,Rt.jsxs)("div",{style:{marginTop:12,maxWidth:440,animation:"fadeIn 0.15s ease-out"},children:[(0,Rt.jsx)("p",{style:{margin:"0 0 8px",fontSize:12,color:"var(--text-muted)"},children:t==="yes"?"What was most helpful?":"What could be improved?"}),(0,Rt.jsx)("textarea",{value:o,onChange:v=>a(v.target.value),rows:3,style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border)",borderRadius:8,fontSize:14,resize:"vertical",outline:"none",fontFamily:"inherit",background:"var(--bg)",color:"var(--text-primary)",boxSizing:"border-box",minHeight:72},onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&m(!0)}}),(0,Rt.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,Rt.jsx)("button",{type:"button",onClick:()=>void m(!1),disabled:c,style:{padding:"6px 12px",background:"transparent",color:"var(--text-muted)",border:"none",borderRadius:6,fontSize:13,cursor:c?"default":"pointer",fontFamily:"inherit"},children:"Skip note"}),(0,Rt.jsx)("button",{type:"button",onClick:()=>void m(!0),disabled:c||!o.trim(),style:{padding:"6px 14px",background:o.trim()?"var(--bg-subtle)":"var(--bg-muted)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,fontSize:13,fontWeight:500,cursor:c||!o.trim()?"default":"pointer",fontFamily:"inherit",opacity:o.trim()?1:.55},children:"Submit"})]})]})]})}function sk({kind:e,active:t,onClick:n,label:r}){return(0,Rt.jsx)("button",{type:"button","aria-label":r,"aria-pressed":t,onClick:n,style:{width:32,height:32,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:8,cursor:"pointer",padding:0,border:"1px solid var(--border)",background:t?"var(--brand)":"var(--bg-muted)",color:t?"var(--brand-on)":"var(--text-primary)",transition:"background 0.12s, color 0.12s, border-color 0.12s"},children:e==="up"?(0,Rt.jsx)(nP,{}):(0,Rt.jsx)(rP,{})})}function nP(){return(0,Rt.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,Rt.jsx)("path",{d:"M7 10v12"}),(0,Rt.jsx)("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z"})]})}function rP(){return(0,Rt.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,Rt.jsx)("path",{d:"M17 14V2"}),(0,Rt.jsx)("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22h0a3.13 3.13 0 0 1-3-3.88Z"})]})}var Ja=M(Me()),on=M(Y());function Lb({markdown:e}){let[t,n]=(0,Ja.useState)(null),[r,i]=(0,Ja.useState)(!1),o=(0,Ja.useRef)(null);(0,Ja.useEffect)(()=>{if(!r)return;function l(c){o.current?.contains(c.target)||i(!1)}return globalThis.addEventListener("mousedown",l),()=>globalThis.removeEventListener("mousedown",l)},[r]);function a(l,c){navigator.clipboard.writeText(l).then(()=>{n(c),setTimeout(()=>n(null),1600)}).catch(()=>{})}function s(){let l=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=utf-8"}));globalThis.open(l,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(l),6e4),i(!1)}return(0,on.jsxs)("div",{ref:o,style:{position:"relative",display:"inline-flex",flexShrink:0},children:[(0,on.jsxs)("button",{type:"button",onClick:()=>a(globalThis.location.href,"link"),title:"Copy page link",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,padding:"6px 10px",border:"1px solid var(--border)",borderRight:"none",borderRadius:"7px 0 0 7px",background:"var(--bg)",color:t==="link"?"var(--brand-dark)":"var(--text-secondary)",fontSize:12,cursor:"pointer",fontFamily:"inherit",minWidth:68},children:[(0,on.jsx)(ck,{}),t==="link"?"Copied":"Copy"]}),(0,on.jsx)("button",{type:"button","aria-label":"More copy options","aria-expanded":r,onClick:()=>i(l=>!l),style:{width:30,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--border)",borderRadius:"0 7px 7px 0",background:r?"var(--bg-subtle)":"var(--bg)",color:"var(--text-secondary)",cursor:"pointer"},children:(0,on.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{transform:r?"rotate(180deg)":"none",transition:"transform 0.15s"},children:(0,on.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),r&&(0,on.jsxs)("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:0,zIndex:300,width:278,padding:6,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,boxShadow:"0 14px 36px rgba(0,0,0,0.14)"},children:[(0,on.jsx)(lk,{icon:(0,on.jsx)(ck,{}),title:t==="markdown"?"Copied for LLM":"Copy for LLM",description:"Copy page as Markdown for LLMs",onClick:()=>{a(e,"markdown"),i(!1)}}),(0,on.jsx)(lk,{icon:(0,on.jsx)(iP,{}),title:"View as Markdown",description:"Open this page as Markdown",onClick:s})]})]})}function lk({icon:e,title:t,description:n,onClick:r}){return(0,on.jsxs)("button",{type:"button",onClick:r,style:{width:"100%",display:"flex",alignItems:"center",gap:10,padding:"10px",border:"none",borderRadius:7,background:"transparent",cursor:"pointer",color:"var(--text-primary)",fontFamily:"inherit",textAlign:"left"},children:[(0,on.jsx)("span",{style:{width:32,height:32,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--border)",borderRadius:7,color:"var(--text-secondary)",flexShrink:0},children:e}),(0,on.jsxs)("span",{style:{minWidth:0},children:[(0,on.jsx)("span",{style:{display:"block",fontSize:13,fontWeight:600},children:t}),(0,on.jsx)("span",{style:{display:"block",marginTop:2,fontSize:11.5,color:"var(--text-muted)"},children:n})]})]})}function ck(){return(0,on.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,on.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}function iP(){return(0,on.jsx)("svg",{width:"15",height:"15",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,on.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M3 6h18v12H3V6Zm3 8v-4l2 2 2-2v4m3-2h3m0 0-1.5-1.5M16 12l-1.5 1.5"})})}var Pr=M(Y());function gu(){let e=yr(),{isDark:t}=il();if(e.footer_enabled==="false")return null;let n=e.site_name||"Documentation",r=e.brand_color||br,i=e.footer_logo_url||t&&e.logo_dark_url||e.logo_url,o=e.footer_website_url,a=e.footer_text||`\xA9 ${n}. All rights reserved.`,s=i?(0,Pr.jsx)("img",{src:i,alt:n,style:{height:"20px",width:"auto",display:"block"}}):(0,Pr.jsx)("span",{style:{fontSize:"14px",fontWeight:700,color:Zt,letterSpacing:"-0.02em"},children:n});return(0,Pr.jsxs)("div",{style:{marginTop:"48px",paddingTop:"24px",borderTop:"1px solid var(--border)",display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",gap:"12px"},children:[(0,Pr.jsx)("div",{children:o?(0,Pr.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",display:"inline-flex",alignItems:"center"},children:s}):s}),(0,Pr.jsx)("p",{style:{margin:0,fontSize:"12px",color:"var(--text-muted)",whiteSpace:"nowrap"},children:a}),(0,Pr.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:o&&(0,Pr.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",title:o,style:{color:"var(--text-muted)",display:"flex",alignItems:"center"},children:(0,Pr.jsxs)("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,Pr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z"}),(0,Pr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"})]})})})]})}var sa=M(Me());ao();var pi=M(Y());function oP({children:e,entries:t,allTags:n}){let r=na(),i=oo(),o=sl(),a=(0,sa.useMemo)(()=>tp(o.get("tags")),[o]),s=(0,sa.useRef)(null);function l(d){let f=new URLSearchParams(Array.from(o.entries()));d.length===0?f.delete("tags"):f.set("tags",d.join(","));let m=f.toString();r.replace(m?`${i}?${m}`:i,{scroll:!1})}function c(d){l(a.includes(d)?a.filter(f=>f!==d):[...a,d])}return(0,sa.useEffect)(()=>{let d=s.current;if(!d)return;(()=>{let m=Array.from(d.querySelectorAll("[data-update]")),p=0;m.forEach((b,E)=>{let h=t[E];h&&(b.id=h.anchor);let g=h?h.tags:(b.getAttribute("data-tags")||"").split(",").map(w=>w.trim()).filter(Boolean),S=a.length===0||g.some(w=>a.includes(w));b.classList.toggle("dm-update--hidden",!S),S&&p++});let v=d.querySelector("[data-cl-empty]");if(v&&(v.style.display=m.length>0&&p===0?"":"none"),m.length>0&&globalThis.location.hash){let b=d.querySelector(globalThis.location.hash);b&&!b.classList.contains("dm-update--hidden")&&!b.dataset.clScrolled&&(b.dataset.clScrolled="1",b.scrollIntoView({block:"start"}))}})()},[a,t]),(0,pi.jsxs)("div",{children:[n.length>0&&(0,pi.jsxs)("div",{className:"dm-cl-filter",role:"group","aria-label":"Filter changelog by tag",children:[n.map(d=>{let f=a.includes(d);return(0,pi.jsx)("button",{type:"button",className:"dm-cl-chip","aria-pressed":f,onClick:()=>c(d),children:d},d)}),a.length>0&&(0,pi.jsx)("button",{type:"button",className:"dm-cl-clear",onClick:()=>l([]),children:"Clear filter"})]}),(0,pi.jsxs)("div",{ref:s,className:"docs-prose",children:[e,(0,pi.jsxs)("p",{className:"dm-cl-empty","data-cl-empty":"",style:{display:"none"},children:["No entries match the selected ",a.length===1?"tag":"tags","."]})]})]})}function Db(e){return(0,pi.jsx)(sa.Suspense,{fallback:(0,pi.jsx)("div",{className:"docs-prose",children:e.children}),children:(0,pi.jsx)(oP,{...e})})}var fo=M(Me());ao();var la=M(Y());function uk(e){let t=document.getElementById("docs-content-scroll");if(t instanceof HTMLElement)return t;let n=e?.parentElement??null;for(;n;){let{overflowY:r}=getComputedStyle(n);if(r==="auto"||r==="scroll")return n;n=n.parentElement}return document.documentElement}function aP(e,t){if(e.length===0)return"";let r=t.getBoundingClientRect().top+Math.min(96,t.clientHeight*.2),i=e[0].id;for(let o of e)if(o.getBoundingClientRect().top<=r+1)i=o.id;else break;return i}function sP({entries:e}){let t=sl(),n=(0,fo.useMemo)(()=>tp(t.get("tags")),[t]),r=(0,fo.useMemo)(()=>e.filter(a=>n.length===0||a.tags.some(s=>n.includes(s))),[e,n]),[i,o]=(0,fo.useState)("");return(0,fo.useEffect)(()=>{if(r.length===0)return;let a=r.map(f=>document.getElementById(f.anchor)).filter(Boolean);if(a.length===0)return;let s=uk(a[0]),l=0,c=()=>{l=0;let f=aP(a,s);o(m=>m===f?m:f)},d=()=>{l||(l=requestAnimationFrame(c))};return c(),s.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),()=>{l&&cancelAnimationFrame(l),s.removeEventListener("scroll",d),window.removeEventListener("resize",d)}},[r]),r.length===0?null:(0,la.jsx)("nav",{className:"dm-cl-toc","aria-label":"Changelog entries",children:r.map(a=>(0,la.jsxs)("a",{href:`#${a.anchor}`,"aria-current":i===a.anchor,className:"dm-cl-toc-item",onClick:s=>{s.preventDefault();let l=document.getElementById(a.anchor),c=uk(l);if(l&&c!==document.documentElement){let d=l.getBoundingClientRect().top-c.getBoundingClientRect().top+c.scrollTop-12;c.scrollTo({top:d,behavior:"smooth"})}else l?.scrollIntoView({behavior:"smooth",block:"start"});o(a.anchor)},children:[(0,la.jsx)("span",{className:"dm-cl-toc-date",children:a.date||"Undated"}),a.version&&(0,la.jsx)("span",{className:"dm-cl-toc-version",children:a.version})]},a.anchor))})}function Bb(e){return(0,la.jsx)(fo.Suspense,{fallback:null,children:(0,la.jsx)(sP,{...e})})}var Er=M(Me());var ln=M(Me()),pk=M(ms());var dk=/@\[([^\]]+)\]\(user:([^)]+)\)/g;function lP(e,t){return`@[${e}](user:${t})`}function Pb(e){return e.replace(dk,(t,n)=>`@${n}`)}function zb(e){let t=[],n=new RegExp(dk.source,"g"),r;for(;(r=n.exec(e))!==null;)t.push({name:r[1],userId:r[2]});return t}function cP(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ub(e,t){if(t.length===0)return e;let n=e,r=[...new Map(t.map(i=>[`${i.userId}:${i.name}`,i])).values()];r.sort((i,o)=>o.name.length-i.name.length);for(let{name:i,userId:o}of r){let a=new RegExp(`@${cP(i)}(?=\\s|$|[^\\w])`,"g");n=n.replace(a,lP(i,o))}return n}var ni=M(Y()),fk=220;function $b({value:e,onChange:t,placeholder:n,rows:r=3,disabled:i,autoFocus:o,className:a,style:s,onKeyDown:l}){let c=(0,ln.useRef)(null),[d,f]=(0,ln.useState)(()=>Pb(e)),[m,p]=(0,ln.useState)(()=>zb(e)),[v,b]=(0,ln.useState)(!1),[E,h]=(0,ln.useState)(""),[g,S]=(0,ln.useState)([]),[w,C]=(0,ln.useState)(!1),[O,T]=(0,ln.useState)(null),[D,q]=(0,ln.useState)(0),[Z,re]=(0,ln.useState)(null),[me,he]=(0,ln.useState)(null);(0,ln.useEffect)(()=>{Ub(d,m)!==e&&(f(Pb(e)),p(zb(e)))},[e]);let de=(0,ln.useCallback)((I,L)=>{f(I),p(L),t(Ub(I,L))},[t]),X=(0,ln.useCallback)(()=>{let I=c.current;if(!I)return;let L=I.getBoundingClientRect(),fe=window.innerHeight-L.bottom<fk+12&&L.top>fk+12;he({left:L.left,width:L.width,top:fe?L.top-4:L.bottom+4,above:fe})},[]);(0,ln.useEffect)(()=>{if(!v){he(null);return}return X(),window.addEventListener("scroll",X,!0),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,!0),window.removeEventListener("resize",X)}},[v,d,X]);let N=(0,ln.useCallback)(async I=>{C(!0),T(null);try{let L=await fetch(`/api/mentions/candidates?q=${encodeURIComponent(I)}`).catch(()=>null);if(!L){S([]),T("Could not load teammates");return}if(L.status===401){S([]),T("Sign in to mention teammates");return}if(!L.ok){S([]),T("Could not load teammates");return}let K=await L.json();S(Array.isArray(K)?K:[]),q(0)}finally{C(!1)}},[]);(0,ln.useEffect)(()=>{if(!v)return;let I=setTimeout(()=>{N(E)},120);return()=>clearTimeout(I)},[v,E,N]);function U(I,L){let K=I.slice(0,L),fe=K.lastIndexOf("@");if(fe<0){b(!1),re(null),T(null);return}let xe=K.slice(fe+1);if(xe.includes(" ")||xe.includes(`
|
|
360
|
+
`)){b(!1),re(null),T(null);return}re(fe),h(xe),b(!0)}function ae(I){let L=c.current;if(!L||Z===null)return;let K=L.selectionStart??d.length,fe=`@${I.name}`,xe=`${d.slice(0,Z)}${fe} ${d.slice(K)}`,ze=[...m,{name:I.name,userId:I.id}];de(xe,ze),b(!1),re(null),requestAnimationFrame(()=>{let we=Z+fe.length+1;L.focus(),L.setSelectionRange(we,we)})}function j(I){let L=m.filter(K=>I.includes(`@${K.name}`));de(I,L)}let A=v&&me&&typeof document<"u"?(0,pk.createPortal)((0,ni.jsx)("ul",{className:"mention-dropdown mention-dropdown-fixed",role:"listbox",style:{position:"fixed",left:me.left,width:me.width,...me.above?{top:me.top,transform:"translateY(-100%)"}:{top:me.top},zIndex:1100},children:w?(0,ni.jsx)("li",{className:"mention-dropdown-status",children:"Loading teammates\u2026"}):O?(0,ni.jsx)("li",{className:"mention-dropdown-status",children:O}):g.length===0?(0,ni.jsx)("li",{className:"mention-dropdown-status",children:"No teammates found"}):g.map((I,L)=>(0,ni.jsx)("li",{children:(0,ni.jsxs)("button",{type:"button",role:"option","aria-selected":L===D,className:L===D?"mention-dropdown-item mention-dropdown-item-active":"mention-dropdown-item",onMouseDown:K=>{K.preventDefault(),ae(I)},children:[(0,ni.jsx)("span",{className:"mention-dropdown-name",children:I.name}),(0,ni.jsx)("span",{className:"mention-dropdown-email",children:I.email})]})},I.id))}),document.body):null;return(0,ni.jsxs)("div",{className:`mention-textarea-wrap${a?` ${a}`:""}`,style:{position:"relative",...s},children:[(0,ni.jsx)("textarea",{ref:c,value:d,disabled:i,autoFocus:o,rows:r,placeholder:n,spellCheck:!0,onChange:I=>{j(I.target.value),U(I.target.value,I.target.selectionStart??I.target.value.length)},onClick:I=>U(I.currentTarget.value,I.currentTarget.selectionStart??0),onKeyUp:I=>U(I.currentTarget.value,I.currentTarget.selectionStart??0),onKeyDown:I=>{if(v&&!w&&g.length>0){if(I.key==="ArrowDown"){I.preventDefault(),q(L=>(L+1)%g.length);return}if(I.key==="ArrowUp"){I.preventDefault(),q(L=>(L-1+g.length)%g.length);return}if(I.key==="Enter"||I.key==="Tab"){I.preventDefault(),ae(g[D]);return}if(I.key==="Escape"){b(!1);return}}l?.(I)},className:"mention-textarea-input"}),A]})}var Gn=M(Y());function Hb({commentKey:e,brandColor:t,children:n}){let r=(0,Er.useRef)(null),[i,o]=(0,Er.useState)(""),[a,s]=(0,Er.useState)(null),[l,c]=(0,Er.useState)(!1),[d,f]=(0,Er.useState)(!1),[m,p]=(0,Er.useState)(""),[v,b]=(0,Er.useState)(!1);(0,Er.useEffect)(()=>{function O(){if(d)return;let T=globalThis.getSelection();if(!T||T.isCollapsed||!T.toString().trim()){c(!1);return}let D=r.current;if(!D){c(!1);return}let q=T.anchorNode!=null&&D.contains(T.anchorNode),Z=T.focusNode!=null&&D.contains(T.focusNode);if(!q&&!Z){c(!1);return}if((T.anchorNode instanceof Element?T.anchorNode:T.anchorNode?.parentElement)?.closest(".tryit-overlay")){c(!1);return}let me=T.getRangeAt(0).getBoundingClientRect();s({top:me.top,bottom:me.bottom,left:me.left,width:me.width}),o(T.toString().trim()),c(!0)}return document.addEventListener("selectionchange",O),()=>document.removeEventListener("selectionchange",O)},[d]);let E=(0,Er.useCallback)(()=>{f(!0),c(!1)},[]),h=(0,Er.useCallback)(async()=>{if(m.trim()){b(!0);try{let O=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageId:e,anchorText:i||null,from:null,to:null,content:m})}),T=await O.json();if(!O.ok){Cf.error(T.error??"Could not add comment");return}f(!1),p(""),o(""),window.dispatchEvent(new CustomEvent("docmind:comment:added",{detail:T})),Cf.success("Comment added")}catch{Cf.error("Could not add comment")}finally{b(!1)}}},[m,i,e]),g=typeof globalThis<"u"?globalThis.innerHeight:800,S=typeof globalThis<"u"?globalThis.innerWidth:1200,w=a?Math.min(a.bottom+10,g-280):g/2,C=a?Math.min(Math.max(a.left,16),S-332):S/2-154;return(0,Gn.jsxs)("div",{ref:r,children:[n,l&&a&&!d&&(0,Gn.jsxs)("button",{onClick:E,style:{position:"fixed",zIndex:1e3,transform:"translateX(-50%)",top:a.top-42,left:a.left+a.width/2,padding:"5px 10px",background:"var(--text-primary)",color:"var(--bg)",border:"none",borderRadius:"6px",fontSize:"12px",cursor:"pointer",fontFamily:"inherit",display:"flex",alignItems:"center",gap:"5px",boxShadow:"0 4px 12px rgba(0,0,0,0.2)"},children:[(0,Gn.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:(0,Gn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"})}),"Add comment"]}),d&&(0,Gn.jsxs)(Gn.Fragment,{children:[(0,Gn.jsx)("button",{"aria-label":"Close comment composer",onClick:()=>{f(!1),p("")},style:{position:"fixed",inset:0,zIndex:999,background:"transparent",border:"none",cursor:"default",padding:0}}),(0,Gn.jsxs)("div",{style:{position:"fixed",top:w,left:C,zIndex:1e3,width:"316px",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:"12px",boxShadow:"0 12px 40px rgba(0,0,0,0.16)",padding:"14px"},children:[i&&(0,Gn.jsx)("div",{style:{marginBottom:"10px",padding:"7px 10px",background:"var(--draft-bg)",borderLeft:"3px solid var(--warning-accent)",borderRadius:"6px"},children:(0,Gn.jsxs)("p",{style:{margin:0,fontSize:"12px",fontStyle:"italic",color:"var(--warning-strong)",lineHeight:1.5},children:["\u201C",i.slice(0,100),i.length>100?"\u2026":"","\u201D"]})}),(0,Gn.jsx)($b,{value:m,onChange:p,placeholder:"Add a comment\u2026 (type @ to mention)",autoFocus:!0,rows:3,onKeyDown:O=>{(O.metaKey||O.ctrlKey)&&O.key==="Enter"&&h()}}),(0,Gn.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"10px"},children:[(0,Gn.jsx)("button",{onClick:()=>{f(!1),p("")},style:{padding:"6px 12px",fontSize:"12.5px",fontFamily:"inherit",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:"7px",color:"var(--text-secondary)",cursor:"pointer"},children:"Cancel"}),(0,Gn.jsx)("button",{onClick:h,disabled:v||!m.trim(),style:{padding:"6px 14px",fontSize:"12.5px",fontWeight:600,fontFamily:"inherit",background:t,border:`1px solid ${t}`,borderRadius:"7px",color:"var(--brand-on)",cursor:v||!m.trim()?"default":"pointer",opacity:v||!m.trim()?.6:1},children:v?"Adding\u2026":"Comment"})]})]})]})]})}var mk=M(Y());function jb({children:e}){return ll()?.open?null:(0,mk.jsx)("aside",{style:{width:250,flexShrink:0,padding:"30px 24px 48px 0",overflowY:"auto"},className:"hidden lg:block",children:e})}ra();var uP=1;function gk(e,t={}){let n=t.limit??uP,r=[],i=new Set;function o(s){if(typeof s!="string"||!s.trim())return;let l=uo(s,t.assetRef,t.assetPath,t.projectSlug);!l||i.has(l)||(i.add(l),r.push(l))}function a(s){if(!(!s||r.length>=n)){s.type==="image"&&o(s.attrs?.src);for(let l of s.content??[]){if(r.length>=n)return;a(l)}}}return a(e),r.slice(0,n)}var dP=1800*1e3,fP=.4,hk=new yl(500,dP,{maxBytes:64*1024*1024,sizeOf:e=>(JSON.stringify(e.contentWithIds)?.length??0)*2+e.markdownBody.length*2+e.preloadImageUrls.reduce((t,n)=>t+n.length*2,0)+e.tocHeadings.length*128});function yk(e,t={}){let{cacheKey:n,isChangelog:r=!1,imageOptions:i={}}=t,o=n?[n,r?"cl":"doc",i.assetRef??"",i.assetPath??"",i.projectSlug??"",i.limit??""].join("|"):null;if(o){let c=hk.get(o);if(c)return c}let a=o?performance.now():0,s=QT(structuredClone(e)),l={contentWithIds:s,tocHeadings:r?[]:ZT(s),markdownBody:eb(e),preloadImageUrls:gk(s,i)};return o&&performance.now()-a>=fP&&hk.set(o,l),l}var hu=M(Y());function Fb({hrefs:e,priority:t=!1}){let n=[...new Set(e.filter(r=>!!r?.trim()))];return n.length===0?null:(0,hu.jsx)(hu.Fragment,{children:n.map((r,i)=>(0,hu.jsx)("link",{rel:"preload",as:"image",href:r,fetchPriority:t&&i===0?"high":"auto"},r))})}vr();var Ep=M(Me());function bk(e){return e.filter(t=>t.type==="group"||t.type==="page")}function Sp(e,t){if(e==null)return!0;let n=e;return n.includes("*")||n.includes(t)}function vk(e,t,n,r){return gy(e)?!0:r&&!Sp(r.allowedRoles??["*"],e)||!n?!1:Sp(t?.allowedRoles,e)}function pP(e,t){return{id:e.id,title:e.title,slug:e.slug,route:e.route!==void 0?e.route:t.routeOf?.(e)??null}}function xk(e,t,n,r,i,o,a,s){let l=t&&Sp(e.allowedRoles,a.role);if(!l)return;let c=n.filter(p=>p.groupId===e.id),d=r.filter(p=>p.parentId===e.id&&!p.hidden),f=i.filter(p=>p.groupId===e.id),m=co(c,d,f);for(let p of m)if(p.kind==="page"){let v=p.item;vk(a.role,v,l,o)&&s.push(pP(v,a))}else p.kind==="group"&&xk(p.item,l,n,r,i,o,a,s)}function Sk(e,t,n,r){let i=t.groups.find(a=>a.id===e&&!a.hidden);if(!i)return null;let o=[];return xk(i,!0,t.pages,t.groups,t.separators,n,r,o),o[0]?.route??null}var mP={requirePublished:!1,role:"admin"};function wk(e){return{sections:e.sections.map(t=>({id:t.id,name:t.name,landingRoute:t.landingRoute??null,mode:t.mode,changelog:t.changelog})),pages:e.pages.map(t=>({id:t.id,title:t.title,sectionId:t.sectionId,groupId:t.groupId,order:t.order,route:t.route})),groups:e.groups.map(t=>({id:t.id,name:t.name,sectionId:t.sectionId,parentId:t.parentId,order:t.order,hidden:t.hidden})),separators:e.separators}}function gP(e,t){let n=e.find(s=>s.type==="tab");if(!n)return null;let r=e.filter(s=>s.type==="group"),i=r.length>0?r.at(-1).id:null,o=e.find(s=>s.current),a=null;return o?.id&&o.id!=="current-page"?a=o.id:o?.route&&(a=t.pages.find(s=>s.route===o.route)?.id??null),{sectionId:n.id,pageGroupId:i,currentPageId:a}}function Ek(e,t){if(t.kind==="tab")return e.sections.filter(a=>a.landingRoute).map(a=>({label:a.name,route:a.landingRoute,active:a.id===t.focusId}));let n=e.groups.find(a=>a.id===t.focusId);if(!n)return[];let r=t.pageGroupId===t.focusId,i=r?t.focusId:n.parentId,o=r?t.currentPageId??"":t.focusId;return hP(e,t.sectionId,i,o,t)}function hP(e,t,n,r,i){let o=e.sections.find(p=>p.id===t);if(!o)return[];let a=e.pages.filter(p=>p.sectionId===t&&(n?p.groupId===n:!p.groupId)).map(p=>({id:p.id,title:p.title,slug:"",groupId:p.groupId,order:p.order,route:p.route})),s=e.groups.filter(p=>p.sectionId===t&&!p.hidden&&p.parentId===n).map(p=>({id:p.id,name:p.name,order:p.order,parentId:p.parentId,hidden:!1})),l=e.separators.filter(p=>p.sectionId===t&&(n?p.groupId===n:!p.groupId)),c=co(a,s,l),d={id:t,mode:o.mode??null,changelog:o.changelog??null},f={pages:e.pages.filter(p=>p.sectionId===t).map(p=>({id:p.id,title:p.title,slug:"",groupId:p.groupId,sectionId:p.sectionId,order:p.order,route:p.route})),groups:e.groups.filter(p=>p.sectionId===t&&!p.hidden).map(p=>({id:p.id,name:p.name,order:p.order,parentId:p.parentId,hidden:!1})),separators:e.separators.filter(p=>p.sectionId===t)},m=[];for(let p of c)if(p.kind!=="separator")if(p.kind==="page"){let v=p.item;v.route&&m.push({label:v.title,route:v.route,active:v.id===r})}else{let v=p.item,b=Sk(v.id,f,d,mP);b&&m.push({label:v.name,route:b,active:v.id===r})}return m}function _k(e,t){let n=gP(e,t);return n?e.map(r=>{if(r.type==="tab"){let i=Ek(t,{...n,kind:"tab",focusId:r.id});return i.length>1?{...r,siblings:i}:r}if(r.type==="group"){let i=Ek(t,{...n,kind:"group",focusId:r.id});return i.length>1?{...r,siblings:i}:r}return r}):e}vr();var wl=M(Me());var zr=M(Y());function qb({itemId:e,label:t,siblings:n,basePath:r,branchQuery:i="",openMenuId:o,setOpenMenuId:a,href:s,current:l=!1}){let c=(0,wl.useId)(),d=(0,wl.useRef)(null),f=o===e;(0,wl.useEffect)(()=>{if(!f)return;function v(E){E.key==="Escape"&&a(null)}function b(E){let h=E.target;d.current?.contains(h)||a(null)}return document.addEventListener("keydown",v),document.addEventListener("mousedown",b),document.addEventListener("touchstart",b),()=>{document.removeEventListener("keydown",v),document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",b)}},[f,a]);let m=l?{color:"var(--text-secondary)",fontWeight:500}:{color:"var(--text-muted)",textDecoration:"none"},p=s&&!l?(0,zr.jsx)(Je,{href:It(r,s,i),prefetch:!1,title:t,style:{...m,maxWidth:"min(36vw, 280px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t}):(0,zr.jsx)("span",{title:t,className:l?"docs-breadcrumb__current":void 0,style:{...m,maxWidth:l?"min(48vw, 420px)":"min(36vw, 280px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t});return(0,zr.jsxs)("span",{ref:d,className:"docs-breadcrumb-menu",style:{display:"inline-flex",alignItems:"center",gap:2,minWidth:0},children:[p,(0,zr.jsx)("button",{type:"button",className:"docs-breadcrumb-menu__trigger","aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?c:void 0,title:`${t} \u2014 more in this section`,onClick:()=>a(f?null:e),children:(0,zr.jsx)("svg",{width:"10",height:"10",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":!0,children:(0,zr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 9l6 6 6-6"})})}),f&&(0,zr.jsx)("ul",{id:c,className:"docs-breadcrumb-menu__list",role:"menu",children:n.map(v=>(0,zr.jsx)("li",{role:"none",children:(0,zr.jsxs)(Je,{role:"menuitem",href:It(r,v.route,i),prefetch:!1,className:v.active?"docs-breadcrumb-menu__item docs-breadcrumb-menu__item--active":"docs-breadcrumb-menu__item",onClick:()=>a(null),children:[v.active&&(0,zr.jsx)("svg",{className:"docs-breadcrumb-menu__check",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":!0,children:(0,zr.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}),v.label]})},v.route))})]})}var Mi=M(Y());function yP(){return(0,Mi.jsx)("span",{className:"docs-breadcrumb__sep","aria-hidden":!0,style:{flexShrink:0,opacity:.5,userSelect:"none"},children:"/"})}function Gb({trail:e,basePath:t,branchQuery:n=""}){let r=ol(),[i,o]=(0,Ep.useState)(null),a=(0,Ep.useMemo)(()=>{let c=r?_k(e,wk(r.nav)):e;return bk(c)},[e,r]);if(a.length===0)return null;let s={color:"var(--text-muted)",textDecoration:"none"},l={color:"var(--text-secondary)",fontWeight:500};return(0,Mi.jsx)("nav",{"aria-label":"Breadcrumb",className:"docs-breadcrumb",style:{display:"flex",alignItems:"center",gap:8,fontSize:12,color:"var(--text-muted)",marginBottom:16,flexWrap:"wrap"},children:a.map((c,d)=>(0,Mi.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8,minWidth:0},children:[d>0&&(0,Mi.jsx)(yP,{}),c.siblings&&c.siblings.length>1&&c.type==="group"?(0,Mi.jsx)(qb,{itemId:c.id,label:c.label,siblings:c.siblings,basePath:t,branchQuery:n,openMenuId:i,setOpenMenuId:o,href:c.route,current:c.current}):c.current?(0,Mi.jsx)("span",{className:"docs-breadcrumb__current",title:c.label,style:{...l,maxWidth:"min(48vw, 420px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.label}):c.route?(0,Mi.jsx)(Je,{href:It(t,c.route,n),prefetch:!1,title:c.label,style:{...s,maxWidth:"min(36vw, 280px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.label}):(0,Mi.jsx)("span",{title:c.label,style:{...s,maxWidth:"min(36vw, 280px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c.label})]},c.id))})}var ue=M(Y());function Wb({content:e,page:t,prevPage:n,nextPage:r,basePath:i,branchQuery:o,tabRoute:a,breadcrumbs:s,previewBanner:l,CommentsSection:c,isChangelog:d,rssHref:f,pageLinks:m,release:p,viewerRole:v="",renderCacheKey:b,projectSlug:E}){let h=E||Yf(i),g=t.publishedAt?typeof t.publishedAt=="string"?new Date(t.publishedAt):t.publishedAt:null,S=yy(v)&&(!!t.author?.name||!!g),w=!!t.author?.name&&yy(v),C=d?e2(e):[],O=C.map(X=>({anchor:X.anchor,date:X.date,version:X.version,tags:X.tags})),T=d?t2(C):[],{contentWithIds:D,tocHeadings:q,markdownBody:Z,preloadImageUrls:re}=yk(e,{cacheKey:b,isChangelog:d,imageOptions:{assetRef:l?.branch,assetPath:t.githubPath,projectSlug:h}}),me=`# ${t.title}
|
|
361
|
+
|
|
362
|
+
${Z}`.trim(),he=d?(0,ue.jsxs)(Db,{entries:O,allTags:T,children:[(0,ue.jsx)(bp,{content:e,basePath:i,branchQuery:o,pageLinks:m,assetRef:l?.branch,assetPath:t.githubPath,projectSlug:h}),(0,ue.jsx)(Sl,{})]}):(0,ue.jsxs)("div",{className:"docs-prose",children:[(0,ue.jsx)(Fb,{hrefs:re}),(0,ue.jsx)(bp,{content:D,basePath:i,branchQuery:o,pageLinks:m,assetRef:l?.branch,assetPath:t.githubPath,projectSlug:h}),(0,ue.jsx)(Sl,{})]}),de=(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("div",{style:{marginBottom:24},children:(0,ue.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"16px"},children:[(0,ue.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,ue.jsxs)("h1",{style:{margin:"0 0 8px",fontSize:30,fontWeight:500,color:"var(--brand-heading)",lineHeight:1.2,letterSpacing:"-0.02em",display:"flex",alignItems:"center",gap:10},children:[t.icon&&(0,ue.jsx)(hn,{icon:t.icon,size:25,color:"var(--brand-heading)"}),t.title]}),t.excerpt&&(0,ue.jsx)("p",{style:{margin:0,fontSize:16,fontWeight:400,color:"var(--docs-body-text)",lineHeight:1.6},children:t.excerpt})]}),(0,ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[f&&(0,ue.jsxs)("a",{href:f,className:"dm-cl-rss",target:"_blank",rel:"noopener noreferrer",title:"Subscribe via RSS",children:[(0,ue.jsxs)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:[(0,ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 11a9 9 0 019 9M4 4a16 16 0 0116 16"}),(0,ue.jsx)("circle",{cx:"5",cy:"19",r:"1.5",fill:"currentColor",stroke:"none"})]}),"RSS"]}),(0,ue.jsx)(Lb,{markdown:me})]})]})}),he]});return(0,ue.jsxs)("div",{style:{display:"flex",height:"100%",minHeight:0},children:[(0,ue.jsx)("div",{style:{flex:1,minWidth:0,minHeight:0,overflowY:"auto"},id:"docs-content-scroll",className:"docs-main-scroll",children:(0,ue.jsxs)("div",{className:"docs-content-container",children:[l&&(0,ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 16px",marginBottom:"28px",borderRadius:"8px",fontSize:"12px",fontWeight:500,background:l.type==="draft"?"var(--draft-bg)":l.type==="unpublished_changes"?"var(--attn-bg)":"var(--success-bg)",border:`1px solid ${l.type==="draft"?"var(--warning-border)":l.type==="unpublished_changes"?"var(--attn-border)":"var(--success-border)"}`,color:l.type==="draft"?"var(--warning-strong)":l.type==="unpublished_changes"?"var(--attn-strong)":"var(--success-strong)",flexWrap:"wrap"},children:[(0,ue.jsx)("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"10px",fontWeight:700,fontSize:"10px",letterSpacing:"0.04em",background:l.type==="draft"?"var(--warning-border)":l.type==="unpublished_changes"?"var(--attn-border)":"var(--success-border)",flexShrink:0},children:l.type==="draft"?"DRAFT":l.type==="unpublished_changes"?"UNPUBLISHED CHANGES":"LIVE"}),l.branch&&(0,ue.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",padding:"2px 8px",borderRadius:"10px",fontWeight:600,fontSize:"10px",fontFamily:"var(--font-mono)",flexShrink:0,background:"color-mix(in srgb, currentColor 14%, transparent)",color:"inherit"},children:["Previewing branch: ",l.branch]}),(0,ue.jsx)("span",{style:{flex:1},children:l.type==="draft"?"This page is a draft \u2014 not visible in the public documentation.":l.type==="unpublished_changes"?"This page has unpublished edits. You are viewing the latest draft content.":l.branch?"This is not the live site \u2014 you are viewing a branch preview.":"This page is live. You are viewing the published content."}),(0,ue.jsxs)("div",{style:{display:"flex",gap:"8px",flexShrink:0},children:[(0,ue.jsx)(Je,{href:l.editHref,style:{fontSize:"11px",padding:"4px 10px",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:"6px",color:"var(--text-secondary)",textDecoration:"none"},children:"Edit"}),l.liveHref&&l.type!=="draft"&&(0,ue.jsx)(Je,{href:l.liveHref,style:{fontSize:"11px",padding:"4px 10px",background:l.brandColor,color:"var(--brand-on)",borderRadius:"6px",textDecoration:"none"},children:"View live \u2192"})]})]}),s!==void 0?s&&(0,ue.jsx)(Gb,{trail:s,basePath:i,branchQuery:o}):(0,ue.jsx)(bP,{basePath:i,branchQuery:o,tabRoute:a??null,page:t}),p?(0,ue.jsx)(xP,{version:p.version,releaseDate:p.releaseDate,publishedAt:g,isLatest:p.isLatest,title:t.title}):S&&(0,ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,fontSize:11.5,color:"var(--text-muted)",flexWrap:"wrap"},children:[w&&t.author?.name?(0,ue.jsx)("span",{children:t.author.name}):null,w&&t.author?.name&&g?(0,ue.jsx)("span",{"aria-hidden":!0,children:"\xB7"}):null,g&&(0,ue.jsxs)("span",{children:["Updated ",g.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]})]}),c?(0,ue.jsx)(Hb,{commentKey:t.id,brandColor:"var(--brand)",children:de}):de,c,(0,ue.jsx)("div",{style:{marginTop:"48px",paddingTop:"28px",borderTop:"1px solid var(--border)"},children:(0,ue.jsx)(mu,{pageId:t.id})}),(n?.route||r?.route)&&(0,ue.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px",marginTop:"48px"},children:[n?.route?(0,ue.jsxs)(Je,{href:It(i,n.route,o),prefetch:!1,style:{padding:"18px 20px",border:"1px solid var(--border)",borderRadius:"12px",textDecoration:"none",background:"var(--bg)",transition:"border-color 0.15s, background 0.15s"},children:[(0,ue.jsxs)("p",{style:{margin:"0 0 5px",fontSize:"11px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em",display:"flex",alignItems:"center",gap:"4px"},children:[(0,ue.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Previous"]}),(0,ue.jsx)("p",{style:{margin:0,fontSize:"14px",fontWeight:600,color:"var(--text-primary)"},children:n.title})]}):(0,ue.jsx)("div",{}),r?.route?(0,ue.jsxs)(Je,{href:It(i,r.route,o),prefetch:!1,style:{padding:"18px 20px",border:"1px solid var(--border)",borderRadius:"12px",textDecoration:"none",background:"var(--bg)",textAlign:"right",transition:"border-color 0.15s, background 0.15s"},children:[(0,ue.jsxs)("p",{style:{margin:"0 0 5px",fontSize:"11px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"4px"},children:["Next",(0,ue.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]}),(0,ue.jsx)("p",{style:{margin:0,fontSize:"14px",fontWeight:600,color:"var(--text-primary)"},children:r.title})]}):(0,ue.jsx)("div",{})]}),(0,ue.jsx)(gu,{})]})}),(0,ue.jsx)(jb,{children:(0,ue.jsxs)("div",{style:{position:"sticky",top:30},children:[(0,ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,margin:"0 0 10px",paddingLeft:10},children:[(0,ue.jsx)(vP,{}),(0,ue.jsx)("p",{style:{margin:0,fontSize:13,fontWeight:400,color:"var(--docs-nav-text)",lineHeight:1.5},children:d?"Updates":"On this page"})]}),d?(0,ue.jsx)(Bb,{entries:O}):(0,ue.jsx)(Ib,{headings:q})]})})]})}function bP({basePath:e,branchQuery:t,tabRoute:n,page:r}){return(0,ue.jsxs)("nav",{style:{display:"flex",alignItems:"center",gap:6,fontSize:11.5,color:"var(--text-muted)",marginBottom:16,flexWrap:"wrap"},children:[(0,ue.jsx)(Je,{href:ei(`${e}`,t),prefetch:!1,style:{color:"var(--text-muted)",textDecoration:"none"},children:e.endsWith("/preview")?"Preview":"Docs"}),(0,ue.jsx)(Kb,{}),n?(0,ue.jsx)(Je,{href:It(e,n,t),prefetch:!1,style:{color:"var(--text-muted)",textDecoration:"none"},children:r.section.name}):(0,ue.jsx)("span",{style:{color:"var(--text-muted)"},children:r.section.name}),r.group&&(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Kb,{}),(0,ue.jsx)("span",{style:{color:"var(--text-muted)"},children:r.group.name})]}),(0,ue.jsx)(Kb,{}),(0,ue.jsx)("span",{style:{color:"var(--text-secondary)",fontWeight:500},children:r.title})]})}function Kb(){return(0,ue.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{flexShrink:0,color:"var(--border-strong)"},children:(0,ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}function vP(){return(0,ue.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,style:{flexShrink:0,color:"var(--docs-nav-text)"},children:[(0,ue.jsx)("path",{d:"M2.5 4h11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,ue.jsx)("path",{d:"M2.5 8h8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,ue.jsx)("path",{d:"M2.5 12h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function xP({version:e,releaseDate:t,publishedAt:n,isLatest:r,title:i}){let o=Gf(t??n??null),a=!!e&&e.trim()!==""&&e.trim()!==i.trim();return!o&&!a&&!r?null:(0,ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:18,flexWrap:"wrap"},children:[a&&(0,ue.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,padding:"2px 9px",borderRadius:10,background:"var(--brand-light)",color:"var(--brand-dark)",fontWeight:600},children:e}),o&&(0,ue.jsx)("span",{style:{fontSize:12.5,color:"var(--text-muted)"},children:o}),r&&(0,ue.jsx)("span",{style:{fontSize:"9.5px",fontWeight:700,letterSpacing:"0.05em",textTransform:"uppercase",padding:"2px 8px",borderRadius:10,background:"var(--brand)",color:"var(--brand-on)"},children:"Latest"})]})}vr();Wa();xa();em();Ai();var kR=M(Me());function Sa(e,t=!0){let n=`${e.baseUrl}${e.filledPath}`;if(!t||e.queryParams.length===0)return n;let r=e.queryParams.map(i=>`${encodeURIComponent(i.name)}=${encodeURIComponent(i.value)}`).join("&");return`${n}?${r}`}function Ea(e,t=2){if(e.body===void 0)return null;try{return JSON.stringify(e.body,null,t)}catch{return null}}function rm(e,t){return e.split(`
|
|
363
|
+
`).map((n,r)=>r===0?n:t+n).join(`
|
|
364
|
+
`)}var hR={id:"curl",label:"cURL",language:"bash",generate(e){let t=[],n=Sa(e);t.push(`curl --request ${e.method} \\`),t.push(` --url '${n}' \\`);for(let o of e.headers)t.push(` --header '${o.name}: ${o.value}' \\`);let r=Ea(e);if(r!==null){let o=r.replace(/'/g,"'\\''");t.push(` --data '${o}' \\`)}let i=t.pop();return t.push(i.replace(/ \\$/,"")),t.join(`
|
|
365
|
+
`)}};function yR(e,t){let n=Sa(e),r=Ea(e),i=[];if(i.push(`const response = await fetch('${n}', {`),i.push(` method: '${e.method}',`),e.headers.length>0){i.push(" headers: {");for(let o of e.headers)i.push(` '${o.name}': '${o.value}',`);i.push(" },")}return r!==null&&i.push(` body: JSON.stringify(${rm(r," ")}),`),i.push("});"),i.push(""),t?(i.push("if (!response.ok) {"),i.push(" throw new Error(`Request failed: ${response.status}`);"),i.push("}"),i.push("const data: unknown = await response.json();")):i.push("const data = await response.json();"),i.push("console.log(data);"),i.join(`
|
|
366
|
+
`)}var bR={id:"javascript",label:"JavaScript",language:"javascript",generate:e=>yR(e,!1)},vR={id:"typescript",label:"TypeScript",language:"typescript",generate:e=>yR(e,!0)};function $l(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function hv(e,t=0){let n=" ".repeat(t+1),r=" ".repeat(t);if(e==null)return"None";if(typeof e=="boolean")return e?"True":"False";if(typeof e=="number")return String(e);if(typeof e=="string")return $l(e);if(Array.isArray(e))return e.length===0?"[]":`[
|
|
367
|
+
${e.map(o=>n+hv(o,t+1)).join(`,
|
|
368
|
+
`)}
|
|
369
|
+
${r}]`;let i=Object.entries(e);return i.length===0?"{}":`{
|
|
370
|
+
${i.map(([o,a])=>`${n}${$l(o)}: ${hv(a,t+1)}`).join(`,
|
|
371
|
+
`)}
|
|
372
|
+
${r}}`}var xR={id:"python",label:"Python",language:"python",generate(e){let t=["import requests",""];if(t.push(`url = "${e.baseUrl}${e.filledPath}"`),t.push(""),e.headers.length>0){t.push("headers = {");for(let r of e.headers)t.push(` ${$l(r.name)}: ${$l(r.value)},`);t.push("}"),t.push("")}if(e.queryParams.length>0){t.push("params = {");for(let r of e.queryParams)t.push(` ${$l(r.name)}: ${$l(r.value)},`);t.push("}"),t.push("")}e.body!==void 0&&(t.push(`payload = ${rm(hv(e.body),"")}`),t.push(""));let n=["url"];return e.headers.length>0&&n.push("headers=headers"),e.queryParams.length>0&&n.push("params=params"),e.body!==void 0&&n.push("json=payload"),t.push(`response = requests.${e.method.toLowerCase()}(${n.join(", ")})`),t.push("print(response.json())"),t.join(`
|
|
373
|
+
`)}};var SR={id:"java",label:"Java",language:"java",generate(e){let t=Sa(e),n=Ea(e),r=[];if(r.push("HttpClient client = HttpClient.newHttpClient();"),r.push(""),n!==null){let i=n.replace(/\\/g,"\\\\").replace(/"/g,'\\"').split(`
|
|
374
|
+
`).map(o=>` "${o}\\n"`).join(` +
|
|
375
|
+
`);r.push(`String body =
|
|
376
|
+
${i};`),r.push("")}r.push("HttpRequest request = HttpRequest.newBuilder()"),r.push(` .uri(URI.create("${t}"))`);for(let i of e.headers)r.push(` .header("${i.name}", "${i.value}")`);return n!==null?r.push(` .method("${e.method}", HttpRequest.BodyPublishers.ofString(body))`):r.push(` .method("${e.method}", HttpRequest.BodyPublishers.noBody())`),r.push(" .build();"),r.push(""),r.push("HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());"),r.push("System.out.println(response.body());"),r.join(`
|
|
377
|
+
`)}};var ER={id:"go",label:"Go",language:"go",generate(e){let t=Sa(e),n=Ea(e),r=[];r.push("package main"),r.push(""),r.push("import ("),r.push(' "fmt"'),r.push(' "io"'),r.push(' "net/http"'),n!==null&&r.push(' "strings"'),r.push(")"),r.push(""),r.push("func main() {"),r.push(` url := "${t}"`),r.push(""),n!==null?(r.push(` payload := strings.NewReader(\`${n}\`)`),r.push(""),r.push(` req, _ := http.NewRequest("${e.method}", url, payload)`)):r.push(` req, _ := http.NewRequest("${e.method}", url, nil)`),r.push("");for(let i of e.headers)r.push(` req.Header.Add("${i.name}", "${i.value}")`);return e.headers.length>0&&r.push(""),r.push(" res, err := http.DefaultClient.Do(req)"),r.push(" if err != nil {"),r.push(" panic(err)"),r.push(" }"),r.push(" defer res.Body.Close()"),r.push(""),r.push(" body, _ := io.ReadAll(res.Body)"),r.push(" fmt.Println(string(body))"),r.push("}"),r.join(`
|
|
378
|
+
`)}};lv();var yv=[hR,bR,vR,xR,SR,ER];function wR(e){return yv.map(t=>{let n;try{n=t.generate(e)}catch{n=`// Failed to generate ${t.label} sample for this operation`}return{id:t.id,label:t.label,language:t.language,code:n}})}var bv=yv.map(e=>({id:e.id,label:e.label})),vv=bv.map(e=>e.id);function O6(){return{showDownload:!0,downloadJson:!0,downloadYaml:!0,downloadPostman:!0,showLanguages:!0,languages:[...vv],showServers:!0,showAuth:!1,showEndpoints:!1,icon:null}}function _R(e){let t=O6();if(!e||typeof e!="object")return t;let n=e,r=(o,a)=>typeof o=="boolean"?o:a,i=t.languages;return Array.isArray(n.languages)&&(i=vv.filter(o=>n.languages.includes(o))),{showDownload:r(n.showDownload,t.showDownload),downloadJson:r(n.downloadJson,t.downloadJson),downloadYaml:r(n.downloadYaml,t.downloadYaml),downloadPostman:r(n.downloadPostman,t.downloadPostman),showLanguages:r(n.showLanguages,t.showLanguages),languages:i,showServers:r(n.showServers,t.showServers),showAuth:r(n.showAuth,t.showAuth),showEndpoints:r(n.showEndpoints,t.showEndpoints),icon:typeof n.icon=="string"&&n.icon.trim()?n.icon:null}}function TR(e){return e.languages.length>0?e.languages:vv}var st=M(Y());function Sv({specId:e,specSlug:t,layer:n,config:r,servers:i,projectSlug:o}){let a=o?`&project=${encodeURIComponent(o)}`:"",s=[r.downloadJson&&{format:"json",label:"JSON",filename:`${t}.json`},r.downloadYaml&&{format:"yaml",label:"YAML",filename:`${t}.yaml`}].filter(Boolean),l=bv.filter(b=>r.languages.includes(b.id)),c=r.showDownload&&s.length>0,d=r.showLanguages&&l.length>0,f=r.showServers&&i.length>0,m=r.downloadPostman;if(!c&&!d&&!f&&!m)return null;let p=`/api/specs/${e}/download?format=postman&layer=${n}${a}`,v=`${t}.postman_collection.json`;return(0,st.jsxs)("aside",{className:"api-overview-aside",style:{width:"300px",flexShrink:0,position:"sticky",top:"20px",display:"flex",flexDirection:"column",gap:"16px"},children:[c&&(0,st.jsx)(xv,{title:"Download OpenAPI description",children:s.map(({format:b,label:E,filename:h})=>(0,st.jsxs)("a",{href:`/api/specs/${e}/download?format=${b}&layer=${n}${a}`,download:h,className:"api-nav-item",style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"8px",textDecoration:"none",color:"var(--text-secondary)"},children:[(0,st.jsx)(M6,{label:E}),(0,st.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:"12.5px",color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h}),(0,st.jsx)(NR,{})]},b))}),d&&(0,st.jsx)(xv,{title:"Languages",children:(0,st.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:l.map(b=>(0,st.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:"5px",padding:"4px 9px",fontSize:"12px",fontWeight:500,color:"var(--text-secondary)",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"7px"},children:[(0,st.jsx)("span",{style:{width:"6px",height:"6px",borderRadius:"50%",background:"var(--brand)"}}),b.label]},b.id))})}),f&&(0,st.jsx)(xv,{title:i.length===1?"Server":"Servers",children:(0,st.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:i.map((b,E)=>(0,st.jsx)(C6,{server:b},`${b.url}-${E}`))})}),m&&(0,st.jsxs)("a",{href:p,download:v,className:"api-collection-download","aria-label":"Download API Collection",children:[(0,st.jsx)("span",{className:"api-collection-download-label",children:"Download API Collection"}),(0,st.jsx)(NR,{})]})]})}function xv({title:e,children:t}){return(0,st.jsxs)("section",{style:{border:"1px solid var(--border)",borderRadius:"12px",padding:"14px 14px 12px",background:"var(--bg)"},children:[(0,st.jsx)("h2",{style:{margin:"0 0 10px",fontSize:"13px",fontWeight:600,color:"var(--text-secondary)",letterSpacing:"normal"},children:e}),t]})}function C6({server:e}){let[t,n]=(0,kR.useState)(!1),r=async()=>{try{await navigator.clipboard.writeText(e.url),n(!0),setTimeout(()=>n(!1),1500)}catch{}};return(0,st.jsxs)("div",{children:[(0,st.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 10px",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"8px"},children:[(0,st.jsx)("code",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:"12px",color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.url}),(0,st.jsx)("button",{onClick:r,title:"Copy URL",className:"api-copy-btn",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",padding:0,background:"transparent",border:"1px solid var(--border)",borderRadius:"6px",cursor:"pointer",color:t?"var(--success)":"var(--text-muted)"},children:t?(0,st.jsx)(L6,{}):(0,st.jsx)(I6,{})})]}),e.description&&(0,st.jsx)("p",{style:{margin:"4px 2px 0",fontSize:"11.5px",color:"var(--text-muted)",lineHeight:1.4},children:e.description})]})}function M6({label:e}){return(0,st.jsx)("span",{style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"7px",background:"var(--brand-light)",color:"var(--brand-dark)",fontSize:"8.5px",fontWeight:700,letterSpacing:"0.02em"},children:e})}function NR(){return(0,st.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",style:{flexShrink:0},children:(0,st.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 10l5 5 5-5M12 15V3"})})}function I6(){return(0,st.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[(0,st.jsx)("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),(0,st.jsx)("path",{d:"M5 15V5a2 2 0 012-2h10"})]})}function L6(){return(0,st.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,children:(0,st.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}function Ev(e){let t=e.trim();return t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&(t=t.slice(0,-1)),t.split("|").map(n=>n.trim())}function wv(e){let t=Ev(e);return t.length===0?!1:t.every(n=>/^:?-{3,}:?$/.test(n))}function AR(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.includes("|"))for(;n+1<e.length;){let i=e[n+1];if(!i.trim()||i.trimStart().startsWith("|")||wv(i)||/^(#{1,6}\s|```|\s*([-*+]|\d+\.)\s)/.test(i))break;r=`${r.replace(/\s*$/,"")} ${i.trim()}`,n++}t.push(r),n++}return t}function RR(e){if(!e.includes("|"))return e;let t=e.replace(/\s+(\|\s*:?-+:?(?:\s+:?-+:?)*\s*\|)\s+/g,`
|
|
379
|
+
$1
|
|
380
|
+
`);return t=t.replace(/(\|)\s+(\|)/g,`$1
|
|
381
|
+
$2`),t}function _v(e,t){if(t+1>=e.length)return null;let n=e[t],r=e[t+1];if(!n.includes("|")||!wv(r))return null;let i=Ev(n);if(i.length===0)return null;let o=[i],a=t+2;for(;a<e.length;){let s=e[a];if(!s.trim()||!s.includes("|")||wv(s))break;let l=Ev(s);for(;l.length<i.length;)l.push("");o.push(l.slice(0,i.length)),a++}return{rows:o,next:a}}function D6(e){let t=e.trim();return/^(https?:|\/|#)/.test(t)?t:"#"}function OR(e){let t=[],n=/<a\s+href=["']([^"']+)["'][^>]*>([\s\S]*?)<\/a>/gi,r=0,i;for(;(i=n.exec(e))!==null;){i.index>r&&t.push({kind:"text",value:e.slice(r,i.index)});let o=D6(i[1]),a=i[2].trim()||o;t.push({kind:"anchor",href:o,label:a}),r=i.index+i[0].length}return r<e.length&&t.push({kind:"text",value:e.slice(r)}),t.length===0&&t.push({kind:"text",value:e}),t}var Hl=M(Me()),IR=M(Y()),CR=(0,Hl.createContext)({});function im({basePath:e,branchQuery:t,assetPath:n,assetRef:r,projectSlug:i,children:o}){let a=(0,Hl.useMemo)(()=>({basePath:e,branchQuery:t,assetPath:n,assetRef:r,projectSlug:i}),[e,t,n,r,i]);return(0,IR.jsx)(CR.Provider,{value:a,children:o})}function MR(){return(0,Hl.use)(CR)}var en=M(Y());function DR(e,t){return Hf(t.basePath,e,t.branchQuery)??e}function B6(e,t){return/^(https?:|data:|blob:)/.test(e)?e:uo(e,t.assetRef,t.assetPath,t.projectSlug)}var BR={color:"var(--brand-dark)",textDecoration:"underline",textUnderlineOffset:"2px"};function PR(e,t,n){let r=n?";if(o<0)return null;let a=Wy(e.slice(o+1));return!a||/\s/.test(a.inner)?null:{label:e.slice(i,o),dest:a.inner,end:o+1+a.end}}function P6(e,t){let n=PR(e,t,!0);return n?{alt:n.label,src:n.dest,end:n.end}:null}function z6(e,t){for(let n=e.indexOf("[",t);n>=0;n=e.indexOf("[",n+1)){let r=PR(e,n,!1);if(r)return{label:r.label,dest:r.dest,start:n,end:r.end}}return null}function Tv(e,t,n){let r=[],i=/(`[^`]+`)|(\*\*[^*]+\*\*)|(\*[^*]+\*)/g,o=0,a=0;for(;o<e.length;){i.lastIndex=o;let s=i.exec(e),l=z6(e,o),c=s?.index??Number.POSITIVE_INFINITY,d=l?.start??Number.POSITIVE_INFINITY;if(!s&&!l){r.push(e.slice(o));break}if(l&&d<=c){d>o&&r.push(e.slice(o,d));let p=DR(/^(https?:|\/|#)/.test(l.dest)?l.dest:"#",n);r.push((0,en.jsx)("a",{href:p,target:p.startsWith("http")?"_blank":void 0,rel:"noopener noreferrer",style:BR,children:l.label},`${t}-${a++}`)),o=l.end;continue}if(!s)break;s.index>o&&r.push(e.slice(o,s.index));let f=s[0],m=`${t}-${a++}`;f.startsWith("`")?r.push((0,en.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"0.9em",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"4px",padding:"1px 5px"},children:f.slice(1,-1)},m)):f.startsWith("**")?r.push((0,en.jsx)("strong",{children:f.slice(2,-2)},m)):r.push((0,en.jsx)("em",{children:f.slice(1,-1)},m)),o=s.index+f.length}return r}function LR(e,t,n){let r=[],i=0,o=0;for(let a=e.indexOf("![");a>=0;a=e.indexOf("![",i)){let s=P6(e,a);if(!s){r.push(...Tv(e.slice(i,a+2),`${t}-t${o++}`,n)),i=a+2;continue}a>i&&r.push(...Tv(e.slice(i,a),`${t}-t${o}`,n)),r.push((0,en.jsx)("img",{className:"docmind-img",src:B6(s.src,n),alt:s.alt},`${t}-img${o}`)),i=s.end,o++}return i<e.length&&r.push(...Tv(e.slice(i),`${t}-t${o}`,n)),r}function Pu(e,t,n){let r=[],i=0;for(let o of OR(e)){if(o.kind==="text"){r.push(...LR(o.value,`${t}-t${i++}`,n));continue}let a=DR(o.href,n),s=a.startsWith("http");r.push((0,en.jsx)("a",{href:a,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,style:BR,children:LR(o.label,`${t}-al${i}`,n)},`${t}-a${i++}`))}return r}function U6({rows:e,compact:t,portal:n}){let[r,...i]=e,o=t?"14px":"16px",a=t?"8px 12px":"10px 14px";return(0,en.jsx)("div",{style:{margin:t?"0 0 12px":"0 0 14px",overflowX:"auto",border:"1px solid var(--border)",borderRadius:"8px"},children:(0,en.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:o,lineHeight:t?1.55:1.6},children:[(0,en.jsx)("thead",{children:(0,en.jsx)("tr",{children:r.map((s,l)=>(0,en.jsx)("th",{style:{textAlign:"left",padding:a,fontWeight:700,color:"var(--text-primary)",background:"var(--bg-subtle)",borderBottom:"1px solid var(--border)",borderRight:l<r.length-1?"1px solid var(--border)":void 0},children:Pu(s,`th-${l}`,n)},l))})}),(0,en.jsx)("tbody",{children:i.map((s,l)=>(0,en.jsx)("tr",{children:s.map((c,d)=>(0,en.jsx)("td",{style:{padding:a,verticalAlign:"top",color:"var(--docs-body-text)",fontWeight:400,borderBottom:l<i.length-1?"1px solid var(--border)":void 0,borderRight:d<s.length-1?"1px solid var(--border)":void 0},children:Pu(c,`td-${l}-${d}`,n)},d))},l))})]})})}function Qn({text:e,muted:t,compact:n=!1}){let r=MR();if(!e?.trim())return null;let i=[],o=AR(RR(e.replaceAll(`\r
|
|
382
|
+
`,`
|
|
383
|
+
`).replaceAll("\r",`
|
|
384
|
+
`)).split(`
|
|
385
|
+
`)),a=0,s=0,l=t?"var(--text-secondary)":"var(--docs-body-text)",c=n?"14px":"16px",d=n?"15px":"18px",f={margin:n?"0 0 10px":"0 0 12px",fontSize:c,lineHeight:n?1.55:1.6,color:l,fontWeight:400};for(;a<o.length;){let m=o[a];if(!m.trim()){a++;continue}if(m.trim().startsWith("```")){let E=[];for(a++;a<o.length&&!o[a].trim().startsWith("```");)E.push(o[a++]);a++,i.push((0,en.jsx)("pre",{style:{margin:"0 0 10px",padding:"12px 14px",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"8px",overflowX:"auto",fontSize:"12.5px",fontFamily:"var(--font-mono)",lineHeight:1.6,color:"var(--text-secondary)"},children:E.join(`
|
|
386
|
+
`)},s++));continue}let p=_v(o,a);if(p){i.push((0,en.jsx)(U6,{rows:p.rows,compact:n,portal:r},s++)),a=p.next;continue}let v=/^(#{1,6})\s+(.*)/.exec(m);if(v){i.push((0,en.jsx)("p",{style:{...f,fontWeight:700,color:"var(--brand-heading)",fontSize:d,lineHeight:1.4,marginTop:i.length?n?"16px":"20px":0},children:Pu(v[2],`h${s}`,r)},s++)),a++;continue}if(/^\s*([-*+]|\d+\.)\s+/.test(m)){let E=/^\s*\d+\.\s+/.test(m),h=[];for(;a<o.length;){if(!o[a].trim()){let S=a+1;for(;S<o.length&&!o[S].trim();)S++;if(S<o.length&&/^\s*([-*+]|\d+\.)\s+/.test(o[S])){a=S;continue}break}if(!/^\s*([-*+]|\d+\.)\s+/.test(o[a]))break;h.push(o[a].replace(/^\s*([-*+]|\d+\.)\s+/,"")),a++}let g=E?"ol":"ul";i.push((0,en.jsx)(g,{style:{...f,paddingLeft:"22px",listStyleType:E?"decimal":"disc",listStylePosition:"outside"},children:h.map((S,w)=>(0,en.jsx)("li",{style:{marginBottom:"4px",display:"list-item"},children:Pu(S,`li${s}-${w}`,r)},w))},s++));continue}let b=[m];for(a++;a<o.length&&o[a].trim()&&!/^(#{1,6}\s|```|\s*([-*+]|\d+\.)\s)/.test(o[a])&&!_v(o,a);)b.push(o[a]),a++;i.push((0,en.jsx)("p",{style:f,children:Pu(b.join(" "),`p${s}`,r)},s++))}return(0,en.jsx)("div",{className:n?"api-md api-md-compact":"api-md",children:i})}var zR=M(Y());function os(){return(0,zR.jsx)(Sl,{scopeSelector:".api-md"})}var as=M(Me()),Nn=M(Y());function ss({markdown:e}){let[t,n]=(0,as.useState)(!1),[r,i]=(0,as.useState)(!1),o=(0,as.useRef)(null);(0,as.useEffect)(()=>{if(!r)return;function l(c){o.current?.contains(c.target)||i(!1)}return globalThis.addEventListener("mousedown",l),()=>globalThis.removeEventListener("mousedown",l)},[r]);function a(){navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1600)}).catch(()=>{})}function s(){let l=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=utf-8"}));globalThis.open(l,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(l),6e4),i(!1)}return(0,Nn.jsxs)("div",{ref:o,style:{position:"relative",display:"inline-flex",flexShrink:0},children:[(0,Nn.jsxs)("button",{type:"button",onClick:a,title:"Copy as Markdown",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,padding:"6px 10px",border:"1px solid var(--border)",borderRight:"none",borderRadius:"7px 0 0 7px",background:"var(--bg)",color:t?"var(--brand-dark)":"var(--text-secondary)",fontSize:12,cursor:"pointer",fontFamily:"inherit",minWidth:68},children:[(0,Nn.jsx)($6,{}),t?"Copied":"Copy"]}),(0,Nn.jsx)("button",{type:"button","aria-label":"More copy options","aria-expanded":r,onClick:()=>i(l=>!l),style:{width:30,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--border)",borderRadius:"0 7px 7px 0",background:r?"var(--bg-subtle)":"var(--bg)",color:"var(--text-secondary)",cursor:"pointer"},children:(0,Nn.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{transform:r?"rotate(180deg)":"none",transition:"transform 0.15s"},children:(0,Nn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),r&&(0,Nn.jsx)("div",{style:{position:"absolute",top:"calc(100% + 8px)",right:0,zIndex:300,width:278,padding:6,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,boxShadow:"0 14px 36px rgba(0,0,0,0.14)"},children:(0,Nn.jsxs)("button",{type:"button",onClick:s,style:{width:"100%",display:"flex",alignItems:"center",gap:10,padding:"10px",border:"none",borderRadius:7,background:"transparent",cursor:"pointer",color:"var(--text-primary)",fontFamily:"inherit",textAlign:"left"},children:[(0,Nn.jsx)("span",{style:{width:32,height:32,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--border)",borderRadius:7,color:"var(--text-secondary)",flexShrink:0},children:(0,Nn.jsx)(H6,{})}),(0,Nn.jsxs)("span",{style:{minWidth:0},children:[(0,Nn.jsx)("span",{style:{display:"block",fontSize:13,fontWeight:600},children:"View as Markdown"}),(0,Nn.jsx)("span",{style:{display:"block",marginTop:2,fontSize:11.5,color:"var(--text-muted)"},children:"Open this page as Markdown"})]})]})})]})}function $6(){return(0,Nn.jsx)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,Nn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}function H6(){return(0,Nn.jsx)("svg",{width:"15",height:"15",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Nn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M3 6h18v12H3V6Zm3 8v-4l2 2 2-2v4m3-2h3m0 0-1.5-1.5M16 12l-1.5 1.5"})})}var Fe=M(Y());function UR(e,t){return t?t.type==="http"&&(t.scheme?.toLowerCase()==="bearer"||t.scheme?.toLowerCase()==="jwt"||t.scheme)?"Authorization":t.type==="apiKey"&&t.name||e:e}function Nv({doc:e,groups:t,basePath:n,branchQuery:r,specId:i,specSlug:o,layer:a,config:s,sectionLabel:l=cl,projectSlug:c,footer:d}){let f=e.info??{},m=Object.entries(e.components?.securitySchemes??{}),p=t.reduce((h,g)=>h+g.count,0),v=(e.servers??[]).filter(h=>typeof h.url=="string").map(h=>({url:h.url,description:h.description})),b=m.map(([h,g])=>UR(h,g)).join(" and "),E=dv(e,t,l,{showAuth:s.showAuth,showEndpoints:s.showEndpoints});return(0,Fe.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"40px",alignItems:"flex-start",maxWidth:"1180px",margin:"0 auto",padding:"48px 48px 80px"},children:[(0,Fe.jsx)(os,{}),(0,Fe.jsxs)("div",{className:"api-reference-content",style:{flex:"1 1 460px",minWidth:0},children:[(0,Fe.jsx)("p",{style:{margin:"0 0 10px",fontSize:"12px",fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em"},children:l}),(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px",marginBottom:"8px"},children:[(0,Fe.jsx)("h1",{style:{flex:1,minWidth:0,margin:0,fontSize:"var(--api-page-title)",fontWeight:500,color:"var(--brand-heading)",lineHeight:1.2,letterSpacing:"-0.02em"},children:f.title??l}),(0,Fe.jsx)(ss,{markdown:E})]}),(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"24px",flexWrap:"wrap"},children:[f.version&&(0,Fe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",padding:"2px 9px",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"10px",color:"var(--text-secondary)"},children:["v",f.version]}),(0,Fe.jsxs)("span",{style:{fontSize:"12.5px",color:"var(--text-muted)"},children:[p," endpoint",p===1?"":"s"," \xB7 ",t.length," group",t.length===1?"":"s"]}),f.license?.name&&(0,Fe.jsxs)("span",{style:{fontSize:"12.5px",color:"var(--text-muted)"},children:["\xB7 ",f.license.name]})]}),f.description&&(0,Fe.jsx)(Qn,{text:f.description,compact:!0}),s.showAuth&&m.length>0&&(0,Fe.jsx)("section",{style:{marginTop:"36px"},children:(0,Fe.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:"10px",padding:"14px 16px",background:"var(--bg-subtle)"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"},children:[(0,Fe.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,style:{color:"var(--brand-dark)",flexShrink:0},children:[(0,Fe.jsx)("path",{d:"M12 3l7 3v5c0 4.5-2.8 8.4-7 10-4.2-1.6-7-5.5-7-10V6l7-3z",stroke:"currentColor",strokeWidth:"1.8",strokeLinejoin:"round"}),(0,Fe.jsx)("path",{d:"M9.5 12.2l1.8 1.8 3.4-3.6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Fe.jsx)("h2",{style:{margin:0,fontSize:"14px",fontWeight:700,color:"var(--brand-heading)"},children:"Security"})]}),(0,Fe.jsx)("p",{style:{margin:"0 0 12px",fontSize:"13px",fontWeight:600,color:"var(--text-primary)"},children:b}),m.map(([h,g])=>(0,Fe.jsxs)("div",{style:{padding:"10px 0",borderTop:"1px solid var(--border)"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",flexWrap:"wrap"},children:[(0,Fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",fontWeight:600,color:"var(--text-primary)"},children:UR(h,g)}),(0,Fe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11.5px",color:"var(--text-muted)"},children:[g?.type,g?.scheme?` \xB7 ${g.scheme}`:"",g?.in?` \xB7 in ${g.in}`:"",g?.name&&g.type==="apiKey"?` \xB7 ${g.name}`:""]})]}),g?.description&&(0,Fe.jsx)("div",{style:{marginTop:"4px"},children:(0,Fe.jsx)(Qn,{text:g.description,compact:!0})})]},h))]})}),s.showEndpoints&&t.length>0&&(0,Fe.jsxs)("section",{style:{marginTop:"36px"},children:[(0,Fe.jsx)("h2",{className:"api-section-title",style:{marginBottom:"12px",fontSize:"18px",fontWeight:600},children:"Endpoints"}),(0,Fe.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},children:t.map(h=>{let g=e.tags?.find(w=>typeof w.name=="string"&&tm(w.name)===h.tagSlug),S=[...h.items].sort((w,C)=>Number(w.deprecated)-Number(C.deprecated));return(0,Fe.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:"12px",padding:"16px 18px"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",marginBottom:"4px"},children:[(0,Fe.jsx)("h3",{style:{margin:0,fontSize:"14px",fontWeight:700,color:"var(--brand-heading)"},children:h.tag}),(0,Fe.jsx)("span",{style:{fontSize:"11px",fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:h.count})]}),g?.description&&(0,Fe.jsx)("div",{style:{margin:"0 0 10px",lineHeight:1.5},children:(0,Fe.jsx)(Qn,{text:g.description,compact:!0})}),(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[S.slice(0,5).map(w=>(0,Fe.jsxs)(Je,{href:ei(ru(n,w.routeSlug),r),prefetch:!1,className:"api-nav-item",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 6px",borderRadius:"6px",textDecoration:"none",minWidth:0},children:[(0,Fe.jsx)(jn,{method:w.method,size:"xs",muted:w.deprecated}),(0,Fe.jsxs)("span",{style:{flex:1,fontSize:"12.5px",lineHeight:1.5,fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:w.deprecated?"var(--text-muted)":"var(--docs-nav-text)"},children:[w.summary.replace(/\s*\(deprecated\)\s*$/i,""),w.deprecated?" (Deprecated)":""]})]},w.slug)),S.length>5&&(0,Fe.jsxs)(Je,{href:ei(ru(n,S[0].routeSlug),r),prefetch:!1,style:{fontSize:"12px",color:"var(--brand-dark)",textDecoration:"none",padding:"4px 6px"},children:["View all ",h.count," \u2192"]})]})]},h.tagSlug)})})]}),d]}),(0,Fe.jsx)(Sv,{specId:i,specSlug:o,layer:a,config:s,servers:v,projectSlug:c})]})}vr();Wa();Ai();var $R=M(Y());function zu({style:e}){return(0,$R.jsx)("span",{style:{flexShrink:0,verticalAlign:"middle",fontSize:"11px",fontWeight:700,padding:"3px 8px",background:"var(--warning-soft)",color:"var(--warning-strong)",borderRadius:"6px",lineHeight:1.2,...e},children:"DEPRECATED"})}var Wt=M(Y());function j6(e){let t=e?.trim();if(!t)return;let n=" (deprecated)";return t.toLowerCase().endsWith(n)?t.slice(0,-n.length).trim():t}function F6(e,t,n){let r=[`# ${e}`,""];if(t?.trim()&&r.push(t.trim(),""),n.length>0){r.push("## Operations","");for(let i of n)r.push(`- \`${i.method.toUpperCase()}\` ${i.path}${i.op.summary?` \u2014 ${i.op.summary}`:""}`)}return r.join(`
|
|
387
|
+
`)}function kv({title:e,description:t,operations:n,specBasePath:r,branchQuery:i="",footer:o}){let a=F6(e,t,n);return(0,Wt.jsxs)("div",{style:{maxWidth:"1280px",margin:"0 auto",padding:"40px 40px 80px"},children:[(0,Wt.jsx)(os,{}),(0,Wt.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"36px",alignItems:"flex-start"},children:[(0,Wt.jsxs)("div",{className:"api-reference-content",style:{flex:"1 1 420px",minWidth:0},children:[(0,Wt.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px",marginBottom:"20px"},children:[(0,Wt.jsx)("h1",{style:{flex:1,minWidth:0,margin:0,fontSize:"var(--api-page-title)",fontWeight:500,color:"var(--brand-heading)",lineHeight:1.2,letterSpacing:"-0.02em"},children:e}),(0,Wt.jsx)(ss,{markdown:a})]}),t&&(0,Wt.jsx)("div",{style:{marginBottom:"28px"},children:(0,Wt.jsx)(Qn,{text:t})})]}),n.length>0&&(0,Wt.jsx)("aside",{style:{flex:"0 1 460px",width:"100%",maxWidth:"460px",minWidth:300,position:"sticky",top:"24px",alignSelf:"flex-start"},children:(0,Wt.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:"12px",padding:"16px 18px",background:"var(--bg-subtle)"},children:[(0,Wt.jsx)("h2",{style:{margin:"0 0 12px",fontSize:"13px",fontWeight:700,color:"var(--brand-heading)",textTransform:"uppercase",letterSpacing:"0.04em"},children:"Operations"}),(0,Wt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:n.map(s=>{let l=s.routeSlug?ei(ru(r,s.routeSlug),i):void 0,c=s.op.deprecated===!0,d=j6(s.op.summary),f=(0,Wt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",minWidth:0},children:[(0,Wt.jsx)(jn,{method:s.method,size:"xs",muted:c}),(0,Wt.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:"12px",color:"var(--text-secondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.path}),c&&(0,Wt.jsx)(zu,{})]});return(0,Wt.jsxs)("div",{className:"api-op-hover",children:[l?(0,Wt.jsx)(Je,{href:l,prefetch:!1,className:"api-nav-item",style:{display:"block",padding:"6px 8px",borderRadius:"8px",textDecoration:"none",border:"1px solid var(--border)",background:"var(--bg)"},children:f}):(0,Wt.jsx)("div",{style:{padding:"6px 8px",borderRadius:"8px",border:"1px solid var(--border)",background:"var(--bg)"},children:f}),d&&(0,Wt.jsx)("span",{className:"api-op-hover-tip",role:"tooltip",children:d})]},`${s.method}:${s.path}`)})})]})})]}),o&&(0,Wt.jsx)("div",{style:{maxWidth:"760px"},children:o})]})}xa();yo();zl();Bu();em();var HR=new WeakMap;function jR(e,t,n,r,i,o){let a=HR.get(e);a||(a=new Map,HR.set(e,a));let s=`${t} ${n}`,l=a.get(s);if(l)return l;let c=q6(e,t,n,r,i,o);return a.set(s,c),c}function q6(e,t,n,r,i,o){let a=Ul(e,r,i),s=Lu(e,i),l=Jt(e,i.requestBody),c=ii(l?.content),d=sv(e,t,n,r,i),f=wR(d),m=Object.entries(i.responses??{}).map(([T,D])=>({status:T,response:Jt(e,D)})).filter(T=>T.response!==void 0).sort((T,D)=>T.status.localeCompare(D.status)),p=m.map(({status:T,response:D})=>{let q=ii(D.content),Z=q?bo(e,q.media):void 0,re=null;if(Z!==void 0)try{re=JSON.stringify(Z,null,2)}catch{re=null}return{status:T,description:D.description??null,example:re}}),v=a.filter(T=>T.in==="path"||T.in==="query"||T.in==="header").map(T=>({name:T.name,location:T.in,required:T.required===!0,example:d.queryParams.find(D=>D.name===T.name)?.value??T.name})),b=[],E=new Set;for(let T of s){let D=null;if(T.kind==="apiKeyHeader")D={kind:"apiKeyHeader",paramName:T.paramName,label:T.paramName,placeholder:va(T.scheme)};else if(T.kind==="apiKeyQuery")D={kind:"apiKeyQuery",paramName:T.paramName,label:T.paramName,placeholder:va(T.scheme)};else if(T.kind==="basic")D={kind:"basic",paramName:"Authorization",label:"Basic Auth",placeholder:"username"};else if(T.kind==="apiKeyCookie")D=null;else{let q=T.kind==="oauth2"?"Bearer":Zp(T.scheme);D={kind:"bearer",paramName:"Authorization",label:`${q} token`,placeholder:va(T.scheme),authPrefix:q}}D&&!E.has(D.paramName)&&(E.add(D.paramName),b.push(D))}let h=d.body!==void 0?JSON.stringify(d.body,null,2):null,g=d.baseUrl,S=(i.servers??r.servers??e.servers??[]).map(T=>({url:(T.url??"").replace(/\/+$/,""),description:T.description})).filter(T=>T.url),w=[{url:g,description:S.find(T=>T.url===g)?.description},...S.filter(T=>T.url!==g)],C=(e.info?.title?.trim()||g||"api").toLowerCase(),O=uv(e,t,n,r,i,o);return{pathParams:a.filter(T=>T.in==="path"),queryParams:a.filter(T=>T.in==="query"),headerParams:a.filter(T=>T.in==="header"),cookieParams:a.filter(T=>T.in==="cookie"),security:s,requestBody:l,bodyMedia:c,allSnippets:f,responses:m,responseExamples:p,tryItParams:v,tryItAuth:b,tryItBody:h,tryItContentType:d.contentType??null,tryItServers:w,specKey:C,pageMarkdown:O}}Ai();xa();var qe=M(Y()),G6=8;function om(e,t){return t?(Ln(t)?Jt(e,t):t)?.["x-internal"]===!0:!1}function Uu(e,t,n=new Set){if(!t)return"any";if(Ln(t)){let o=Jt(e,t),a=Pl(t.$ref);if(!o||n.has(t.$ref))return a;let s=Uu(e,o,new Set([...n,t.$ref]));return/^(object|any)/.test(s)?a:s}if(t.oneOf?.length)return`one of ${t.oneOf.length}`;if(t.anyOf?.length)return`any of ${t.anyOf.length}`;if(t.allOf?.length)return"object";let r=Array.isArray(t.type)?t.type.filter(o=>o!=="null").join(" | ")||"any":t.type;if(r==="array")return`${Uu(e,t.items,n)}[]`;if(!r)return t.properties?"object":"any";let i=r;return t.format&&(i+=`<${t.format}>`),t.enum&&(i=`enum<${r}>`),i}function K6(e){let t=[];return e.default!==void 0&&t.push(`default: ${JSON.stringify(e.default)}`),e.minimum!==void 0&&t.push(`min: ${e.minimum}`),e.maximum!==void 0&&t.push(`max: ${e.maximum}`),e.minLength!==void 0&&t.push(`minLength: ${e.minLength}`),e.maxLength!==void 0&&t.push(`maxLength: ${e.maxLength}`),e.pattern&&t.push(`pattern: ${e.pattern}`),e.example!==void 0&&typeof e.example!="object"&&t.push(`example: ${JSON.stringify(e.example)}`),t}function W6({values:e}){return(0,qe.jsxs)("div",{className:"schema-enum-chips",children:[e.slice(0,12).map((t,n)=>(0,qe.jsx)("span",{className:"schema-enum-chip",children:typeof t=="string"?t:JSON.stringify(t)},n)),e.length>12&&(0,qe.jsxs)("span",{className:"schema-enum-more",children:["+",e.length-12," more"]})]})}function FR(e){let t=[...e.allOf??[]];return e.properties&&Object.keys(e.properties).length>0&&t.push({type:"object",properties:e.properties,required:e.required}),t}function am(e,t,n){return t?Ln(t)?n.has(t.$ref)?{resolved:null,seenRefs:n,circular:!0}:{resolved:Jt(e,t)??null,seenRefs:new Set([...n,t.$ref]),circular:!1}:{resolved:t,seenRefs:n,circular:!1}:{resolved:null,seenRefs:n,circular:!1}}function Av({doc:e,schema:t,name:n,required:r,depth:i,seenRefs:o,redactInternal:a}){let{resolved:s,seenRefs:l,circular:c}=am(e,t,o);if(a&&om(e,t))return null;let d=Uu(e,t),f=s?.description,m=s?K6(s):[],p=null;if(!c&&s&&i<G6)if(s.allOf?.length)p=FR(s).map((E,h)=>(0,qe.jsx)(jl,{doc:e,schema:E,depth:i,seenRefs:l,redactInternal:a},h));else if(s.oneOf?.length||s.anyOf?.length){let E=s.oneOf??s.anyOf??[],h=s.oneOf?"One of":"Any of";p=E.filter(g=>!(a&&om(e,g))).map((g,S)=>{let w=Ln(g)?Pl(g.$ref):Jt(e,g)?.title??`Option ${S+1}`;return(0,qe.jsxs)("div",{className:"schema-variant",children:[(0,qe.jsxs)("p",{className:"schema-variant-label",children:[h,": ",w]}),(0,qe.jsx)(jl,{doc:e,schema:g,depth:i,seenRefs:l,redactInternal:a})]},S)})}else if(s.type==="array"||s.items){let E=am(e,s.items,l);E.resolved&&(E.resolved.properties||E.resolved.oneOf||E.resolved.anyOf||E.resolved.allOf)&&(p=(0,qe.jsx)(jl,{doc:e,schema:s.items,depth:i,seenRefs:l,redactInternal:a}))}else s.properties&&Object.keys(s.properties).length>0&&(p=(0,qe.jsx)(jl,{doc:e,schema:s,depth:i,seenRefs:l,redactInternal:a}));let v=(0,qe.jsxs)("div",{className:"schema-row-header",children:[n&&(0,qe.jsx)("span",{className:"schema-prop-name",children:n}),(0,qe.jsx)("span",{className:"schema-prop-type",children:d}),r&&(0,qe.jsx)("span",{className:"schema-badge-required",children:"required"}),s?.deprecated&&(0,qe.jsx)("span",{className:"schema-badge-deprecated",children:"deprecated"}),s?.nullable&&(0,qe.jsx)("span",{className:"schema-badge-nullable",children:"nullable"})]}),b=(0,qe.jsxs)(qe.Fragment,{children:[f&&(0,qe.jsx)("div",{className:"schema-desc",children:(0,qe.jsx)(Qn,{text:f,compact:!0})}),m.length>0&&(0,qe.jsx)("p",{className:"schema-notes",children:m.join(" \xB7 ")}),s?.enum&&(0,qe.jsx)(W6,{values:s.enum}),c&&(0,qe.jsx)("p",{className:"schema-circular",children:"circular reference"})]});return p?(0,qe.jsxs)("details",{className:"schema-details",open:i<1,children:[(0,qe.jsxs)("summary",{className:"schema-summary",children:[(0,qe.jsx)("span",{className:"schema-caret",children:"\u25B6"}),(0,qe.jsxs)("div",{className:"schema-summary-main",children:[v,b]})]}),(0,qe.jsx)("div",{className:"schema-children",children:p})]}):(0,qe.jsxs)("div",{className:"schema-row",children:[v,b]})}function jl({doc:e,schema:t,depth:n,seenRefs:r,redactInternal:i}){let{resolved:o,seenRefs:a,circular:s}=am(e,t,r);if(s)return(0,qe.jsx)("p",{className:"schema-circular-child",children:"circular reference"});if(!o)return null;if(o.allOf?.length)return(0,qe.jsx)(qe.Fragment,{children:FR(o).map((d,f)=>(0,qe.jsx)(jl,{doc:e,schema:d,depth:n,seenRefs:a,redactInternal:i},f))});let l=new Set(o.required??[]),c=Object.entries(o.properties??{}).filter(([,d])=>!(i&&om(e,d)));return c.length===0?(0,qe.jsx)(Av,{doc:e,schema:o.items??o,depth:n+1,seenRefs:a,redactInternal:i}):(0,qe.jsx)(qe.Fragment,{children:c.map(([d,f])=>(0,qe.jsx)(Av,{doc:e,schema:f,name:d,required:l.has(d),depth:n+1,seenRefs:a,redactInternal:i},d))})}function sm({doc:e,schema:t,redactInternal:n=!1}){if(!t||n&&om(e,t))return null;let{resolved:r,seenRefs:i}=am(e,t,new Set);return r&&!r.oneOf&&!r.anyOf&&(r.properties||r.allOf)?(0,qe.jsx)("div",{children:(0,qe.jsx)(jl,{doc:e,schema:t,depth:0,seenRefs:new Set,redactInternal:n})}):(0,qe.jsx)("div",{children:(0,qe.jsx)(Av,{doc:e,schema:t,depth:0,seenRefs:i,redactInternal:n})})}xa();var Zn=M(Y());function Fl({doc:e,params:t,title:n}){return t.length===0?null:(0,Zn.jsxs)("section",{style:{marginTop:"28px"},children:[(0,Zn.jsx)("h3",{className:"api-section-title",children:n}),(0,Zn.jsx)("div",{className:"api-schema",children:t.map(r=>{let i=Ln(r.schema)?Jt(e,r.schema):r.schema;return(0,Zn.jsxs)("div",{style:{padding:"10px 0",borderBottom:"1px solid var(--border)"},children:[(0,Zn.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",flexWrap:"wrap"},children:[(0,Zn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"12px",fontWeight:600,color:"var(--text-primary)"},children:r.name}),(0,Zn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",color:"var(--text-muted)"},children:Uu(e,r.schema)}),r.required&&(0,Zn.jsx)("span",{style:{fontSize:"10px",fontWeight:600,color:"var(--danger)"},children:"required"}),r.deprecated&&(0,Zn.jsx)("span",{style:{fontSize:"10px",fontWeight:600,color:"var(--warning)"},children:"deprecated"})]}),(r.description||i?.description)&&(0,Zn.jsx)("div",{style:{marginTop:"3px"},children:(0,Zn.jsx)(Qn,{text:r.description??i?.description,compact:!0})}),i?.default!==void 0&&(0,Zn.jsxs)("p",{style:{margin:"3px 0 0",fontSize:"11px",fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:["default: ",JSON.stringify(i.default)]}),i?.enum&&(0,Zn.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",marginTop:"6px"},children:i.enum.slice(0,12).map((o,a)=>(0,Zn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",padding:"1px 7px",background:"var(--bg-subtle)",border:"1px solid var(--border)",borderRadius:"10px",color:"var(--text-secondary)"},children:typeof o=="string"?o:JSON.stringify(o)},a))})]},`${r.in}:${r.name}`)})})]})}var Rv=M(Me());Ai();var gi=M(Y());function Ov({snippets:e,method:t,path:n}){let[r,i]=(0,Rv.useState)(e[0]?.id??""),[o,a]=(0,Rv.useState)(!1),s=e.find(c=>c.id===r)??e[0];return s?(0,gi.jsxs)("div",{style:{background:"var(--bg)",borderRadius:"12px",border:"1px solid var(--border)",overflow:"hidden"},children:[(0,gi.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 14px",borderBottom:"1px solid var(--border)",background:"var(--bg-subtle)",minWidth:0},children:[(0,gi.jsx)(jn,{method:t,size:"xs"}),(0,gi.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:"12px",color:"var(--text-secondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),(0,gi.jsx)("button",{onClick:async()=>{try{await navigator.clipboard.writeText(s.code),a(!0),setTimeout(()=>a(!1),1500)}catch{}},className:"api-copy-btn",title:"Copy to clipboard",style:{flexShrink:0,padding:"3px 9px",fontSize:"11px",fontFamily:"inherit",color:o?"var(--success, #16a34a)":"var(--text-muted)",background:"transparent",border:"1px solid var(--border)",borderRadius:"6px",cursor:"pointer"},children:o?"Copied!":"Copy"})]}),(0,gi.jsx)("div",{style:{display:"flex",alignItems:"center",borderBottom:"1px solid var(--border)",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"thin",background:"var(--bg-subtle)"},children:e.map(c=>(0,gi.jsx)("button",{onClick:()=>i(c.id),className:"api-code-tab",style:{padding:"8px 12px",fontSize:"12px",fontWeight:600,fontFamily:"inherit",color:c.id===s.id?"var(--text-primary)":"var(--text-muted)",background:"none",border:"none",cursor:"pointer",whiteSpace:"nowrap",borderBottom:c.id===s.id?"2px solid var(--brand)":"2px solid transparent",marginBottom:"-1px",flexShrink:0},children:c.label},c.id))}),(0,gi.jsx)("pre",{style:{margin:0,padding:"14px 16px",overflowX:"auto",maxHeight:"420px",overflowY:"auto",fontSize:"12.5px",lineHeight:1.65,fontFamily:"var(--font-mono)",color:"var(--text-primary)",background:"var(--bg)"},children:(0,gi.jsx)("code",{children:s.code})})]}):null}var Cv=M(Me());lm();var yi=M(Y());function Mv({examples:e}){let[t,n]=(0,Cv.useState)(e[0]?.status??""),[r,i]=(0,Cv.useState)(!1),o=e.find(s=>s.status===t)??e[0];if(!o)return null;let a=async()=>{if(o.example)try{await navigator.clipboard.writeText(o.example),i(!0),setTimeout(()=>i(!1),1500)}catch{}};return(0,yi.jsxs)("div",{style:{background:"var(--bg)",borderRadius:"12px",border:"1px solid var(--border)",overflow:"hidden"},children:[(0,yi.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"2px",padding:"8px 10px 0",borderBottom:"1px solid var(--border)",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"thin",background:"var(--bg-subtle)"},children:[(0,yi.jsx)("span",{style:{fontSize:"11px",fontWeight:700,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em",padding:"0 6px 8px"},children:"Response"}),e.map(s=>(0,yi.jsxs)("button",{onClick:()=>n(s.status),style:{display:"flex",alignItems:"center",gap:"5px",padding:"0 8px 8px",fontSize:"12px",fontWeight:600,fontFamily:"var(--font-mono)",color:s.status===o.status?"var(--text-primary)":"var(--text-muted)",background:"none",border:"none",cursor:"pointer",borderBottom:s.status===o.status?"2px solid var(--brand)":"2px solid transparent",marginBottom:"-1px",flexShrink:0},children:[(0,yi.jsx)("span",{style:{width:"7px",height:"7px",borderRadius:"50%",background:hi(s.status),flexShrink:0}}),s.status]},s.status)),o.example&&(0,yi.jsx)("button",{type:"button",onClick:a,className:"api-copy-btn",title:"Copy to clipboard",style:{marginLeft:"auto",flexShrink:0,marginBottom:"6px",padding:"3px 9px",fontSize:"11px",fontFamily:"inherit",color:r?"var(--success, #16a34a)":"var(--text-muted)",background:"transparent",border:"1px solid var(--border)",borderRadius:"6px",cursor:"pointer"},children:r?"Copied!":"Copy"})]}),o.example?(0,yi.jsx)("pre",{style:{margin:0,padding:"14px 16px",overflowX:"auto",maxHeight:"360px",overflowY:"auto",fontSize:"12.5px",lineHeight:1.65,fontFamily:"var(--font-mono)",color:"var(--text-primary)",background:"var(--bg)"},children:(0,yi.jsx)("code",{children:o.example})}):(0,yi.jsx)("p",{style:{margin:0,padding:"14px 16px",fontSize:"12.5px",color:"var(--text-muted)"},children:o.description??"No example available for this response."})]})}var qR=M(Me());lm();var Pi=M(Y());function Iv({items:e}){let t=Math.max(0,e.findIndex(o=>o.status.startsWith("2"))),[n,r]=(0,qR.useState)(t),i=e[n]??e[0];return i?(0,Pi.jsxs)("div",{children:[(0,Pi.jsx)("div",{role:"tablist","aria-label":"Responses",style:{display:"flex",flexWrap:"wrap",gap:"6px",marginBottom:"14px"},children:e.map((o,a)=>{let s=a===n,l=hi(o.status);return(0,Pi.jsxs)("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>r(a),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"5px 11px",fontSize:"13px",fontFamily:"var(--font-mono)",fontWeight:600,cursor:"pointer",borderRadius:"8px",border:"1px solid",transition:"all 0.12s",borderColor:s?"transparent":"var(--border)",background:s?"var(--bg-subtle)":"transparent",color:s?"var(--text-primary)":"var(--text-secondary)"},children:[(0,Pi.jsx)("span",{style:{width:"8px",height:"8px",borderRadius:"50%",background:l,flexShrink:0}}),o.status]},o.status)})}),(0,Pi.jsxs)("div",{role:"tabpanel",children:[(i.description||i.mediaType)&&(0,Pi.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"10px",marginBottom:"10px",flexWrap:"wrap"},children:[i.description&&(0,Pi.jsx)("span",{style:{fontSize:"13px",color:"var(--text-secondary)"},children:i.description}),i.mediaType&&(0,Pi.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",color:"var(--text-muted)"},children:i.mediaType})]}),i.panel]})]}):null}var hO=M(Me()),yO=M(ms());Ai();var So=M(Y()),N5=al(()=>Promise.resolve().then(()=>(Fv(),gO)),{ssr:!1});function Kv({method:e,servers:t,path:n,params:r,auth:i,bodyExample:o,contentType:a,summary:s,specKey:l}){let[c,d]=(0,hO.useState)(!1);return(0,So.jsxs)("div",{style:{background:"var(--bg-subtle)",borderRadius:"12px",border:"1px solid var(--border)",overflow:"hidden"},children:[(0,So.jsxs)("button",{onClick:()=>d(!0),style:{width:"100%",display:"flex",alignItems:"center",gap:"8px",padding:"12px 14px",background:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},children:[(0,So.jsx)("span",{style:{fontSize:"12px",fontWeight:700,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"Try it"}),(0,So.jsx)(jn,{method:e,size:"xs"}),(0,So.jsx)("span",{style:{flex:1}}),(0,So.jsx)("span",{style:{fontSize:"11px",fontWeight:600,color:"var(--brand-dark)"},children:"Open console \u2192"})]}),c&&typeof document<"u"&&(0,yO.createPortal)((0,So.jsx)(N5,{method:e.toUpperCase(),servers:t,path:n,params:r,auth:i,bodyExample:o,contentType:a,summary:s,specKey:l,onClose:()=>d(!1)}),document.body)]})}var Kl=M(Me());xa();var Gl=M(Y());function hm({scopes:e,compact:t=!1,label:n="Required scopes"}){if(e.length===0)return null;let r=t?{fontSize:11,fontWeight:600,padding:"3px 8px",borderRadius:999,background:"color-mix(in srgb, var(--brand) 10%, transparent)",color:"var(--brand-dark)",border:"1px solid color-mix(in srgb, var(--brand) 22%, transparent)",whiteSpace:"nowrap"}:{fontSize:12,fontWeight:600,padding:"4px 10px",borderRadius:999,background:"color-mix(in srgb, var(--brand) 12%, transparent)",color:"var(--brand-dark)",border:"1px solid color-mix(in srgb, var(--brand) 28%, transparent)",whiteSpace:"nowrap"};return(0,Gl.jsxs)("div",{style:{marginTop:t?8:12},children:[n&&(0,Gl.jsx)("p",{style:{margin:"0 0 8px",fontSize:t?11:12,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.04em"},children:n}),(0,Gl.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:t?5:6},children:e.map(i=>(0,Gl.jsx)("span",{title:i.description&&i.description!==i.label?i.description:i.key,style:r,children:i.label},i.key))})]})}var vt=M(Y());function bO(e){return e.kind==="bearer"?"Authorization":e.kind==="basic"?"Basic auth":e.kind==="apiKeyHeader"||e.kind==="apiKeyQuery"||e.kind==="apiKeyCookie"?e.paramName||e.schemeName:e.kind==="oauth2"?"OAuth 2.0":e.schemeName}function k5(e){let t=[];return e.kind==="bearer"?(t.push({label:"HTTP Authorization Scheme",value:"http"}),t.push({label:"Bearer Format",value:e.scheme.bearerFormat||"JWT"})):e.kind==="basic"?t.push({label:"HTTP Authorization Scheme",value:"basic"}):e.kind==="apiKeyHeader"?t.push({label:"Header parameter name",value:e.paramName||"x-api-key"}):e.kind==="apiKeyQuery"?t.push({label:"Query parameter name",value:e.paramName||"api_key"}):e.kind==="apiKeyCookie"?t.push({label:"Cookie parameter name",value:e.paramName||"api_key"}):e.kind==="oauth2"?t.push({label:"Type",value:"OAuth 2.0"}):t.push({label:"Type",value:e.scheme.type||"custom"}),t}function vO(){return(0,vt.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,style:{flexShrink:0,color:"var(--brand-dark)"},children:[(0,vt.jsx)("path",{d:"M12 3l7 3v5c0 4.5-2.8 8.4-7 10-4.2-1.6-7-5.5-7-10V6l7-3z",stroke:"currentColor",strokeWidth:"1.8",strokeLinejoin:"round"}),(0,vt.jsx)("path",{d:"M9.5 12.2l1.8 1.8 3.4-3.6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})}function A5({sec:e}){let t=Jp([e]);return(0,vt.jsx)(hm,{scopes:t})}function Wv({security:e}){let[t,n]=(0,Kl.useState)(!1),r=(0,Kl.useId)();if(e.length===0)return null;let i=e.map(bO).join(" and "),o=Jp(e);return(0,vt.jsxs)("section",{style:{marginTop:"28px"},children:[(0,vt.jsxs)("div",{style:{border:"1px solid var(--border)",borderRadius:"10px",padding:"14px 16px",background:"var(--bg-subtle)"},children:[(0,vt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[(0,vt.jsx)(vO,{}),(0,vt.jsx)("h3",{style:{margin:0,flex:1,fontSize:"14px",fontWeight:700,color:"var(--brand-heading)"},children:"Security"}),(0,vt.jsx)("button",{type:"button",onClick:()=>n(!0),style:{border:"none",background:"none",padding:0,cursor:"pointer",fontSize:"12.5px",fontWeight:600,color:"var(--brand-dark)",fontFamily:"inherit"},children:"View security details"})]}),(0,vt.jsx)("p",{style:{margin:0,fontSize:"13px",fontWeight:600,color:"var(--text-primary)"},children:i}),o.length>0&&(0,vt.jsx)(hm,{scopes:o,compact:!0,label:null})]}),t&&(0,vt.jsx)(R5,{titleId:r,security:e,onClose:()=>n(!1)})]})}function R5({security:e,onClose:t,titleId:n}){return(0,Kl.useEffect)(()=>{let r=i=>{i.key==="Escape"&&t()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t]),(0,vt.jsx)("div",{role:"presentation",onClick:t,style:{position:"fixed",inset:0,zIndex:80,background:"rgba(15, 23, 42, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",padding:24},children:(0,vt.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":n,onClick:r=>r.stopPropagation(),style:{width:"100%",maxWidth:480,maxHeight:"85vh",overflow:"auto",background:"var(--bg)",borderRadius:12,border:"1px solid var(--border)",boxShadow:"0 20px 50px rgba(0,0,0,0.18)",padding:"20px 22px 22px"},children:[(0,vt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16},children:[(0,vt.jsx)(vO,{}),(0,vt.jsx)("h2",{id:n,style:{margin:0,flex:1,fontSize:18,fontWeight:700,color:"var(--text-primary)"},children:"Security"}),(0,vt.jsx)("button",{type:"button",onClick:t,"aria-label":"Close",style:{border:"none",background:"var(--bg-subtle)",width:28,height:28,borderRadius:6,cursor:"pointer",color:"var(--text-muted)",fontSize:18,lineHeight:1,fontFamily:"inherit"},children:"\xD7"})]}),e.map((r,i)=>(0,vt.jsxs)("div",{style:{marginBottom:i<e.length-1?18:0},children:[i>0&&(0,vt.jsx)("p",{style:{margin:"0 0 14px",fontSize:12,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.04em"},children:"and"}),(0,vt.jsx)("h3",{style:{margin:"0 0 8px",fontSize:15,fontWeight:700,color:"var(--text-primary)"},children:bO(r)}),r.scheme.description&&(0,vt.jsx)("div",{style:{marginBottom:10},children:(0,vt.jsx)(Qn,{text:r.scheme.description,compact:!0})}),(0,vt.jsx)("div",{style:{borderTop:"1px solid var(--border)"},children:k5(r).map(o=>(0,vt.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gap:16,padding:"10px 0",borderBottom:"1px solid var(--border)",fontSize:13},children:[(0,vt.jsx)("span",{style:{color:"var(--text-secondary)"},children:o.label}),(0,vt.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontWeight:600,color:"var(--text-primary)",textAlign:"right"},children:o.value})]},o.label))}),(0,vt.jsx)(A5,{sec:r})]},r.schemeName))]})})}var Xe=M(Y());function Yv({doc:e,method:t,path:n,pathItem:r,op:i,tag:o,languages:a,footer:s,redactInternal:l=!1,hidden:c=!1}){let d=jR(e,t,n,r,i,o),f=a&&a.length>0?d.allSnippets.filter(p=>a.includes(p.id)):d.allSnippets,m=f.length>0?f:d.allSnippets;return(0,Xe.jsxs)("div",{style:{display:"flex",gap:"36px",alignItems:"flex-start",maxWidth:"1280px",margin:"0 auto",padding:"40px 40px 80px"},children:[(0,Xe.jsx)(os,{}),(0,Xe.jsxs)("div",{className:"api-reference-content",style:{flex:1,minWidth:0},children:[(0,Xe.jsx)("p",{style:{margin:"0 0 10px",fontSize:"12px",fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em"},children:o}),(0,Xe.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px",marginBottom:"14px"},children:[(0,Xe.jsxs)("h1",{style:{flex:1,minWidth:0,margin:0,fontSize:"var(--api-page-title)",fontWeight:500,color:"var(--brand-heading)",lineHeight:1.2,letterSpacing:"-0.02em"},children:[i.summary??`${t.toUpperCase()} ${n}`,i.deprecated&&(0,Xe.jsx)(zu,{style:{marginLeft:"10px"}}),c&&(0,Xe.jsx)("span",{style:{marginLeft:"10px",verticalAlign:"middle",fontSize:"11px",fontWeight:700,padding:"3px 8px",background:"var(--bg-muted)",color:"var(--text-secondary)",borderRadius:"6px"},children:"INTERNAL"})]}),(0,Xe.jsx)(ss,{markdown:d.pageMarkdown})]}),(0,Xe.jsxs)("div",{className:"api-op-pathbar",style:{borderLeft:`3px solid ${nu(t)}`},children:[(0,Xe.jsx)(jn,{method:t,size:"md"}),(0,Xe.jsx)("code",{className:"api-op-path",children:n})]}),i.description&&(0,Xe.jsx)(Qn,{text:i.description,compact:!0}),(0,Xe.jsx)(Wv,{security:d.security}),(0,Xe.jsx)(Fl,{doc:e,params:d.pathParams,title:"Path parameters"}),(0,Xe.jsx)(Fl,{doc:e,params:d.queryParams,title:"Query parameters"}),(0,Xe.jsx)(Fl,{doc:e,params:d.headerParams,title:"Headers"}),(0,Xe.jsx)(Fl,{doc:e,params:d.cookieParams,title:"Cookies"}),d.requestBody&&d.bodyMedia&&(0,Xe.jsxs)("section",{style:{marginTop:"28px"},children:[(0,Xe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"10px"},children:[(0,Xe.jsx)("h3",{className:"api-section-title",children:"Request body"}),(0,Xe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"11px",color:"var(--text-muted)"},children:d.bodyMedia.mediaType}),d.requestBody.required&&(0,Xe.jsx)("span",{style:{fontSize:"10.5px",fontWeight:600,color:"var(--danger)"},children:"required"})]}),d.requestBody.description&&(0,Xe.jsx)("div",{style:{marginTop:"4px"},children:(0,Xe.jsx)(Qn,{text:d.requestBody.description,compact:!0})}),(0,Xe.jsx)("div",{className:"api-schema",style:{marginTop:"4px"},children:(0,Xe.jsx)(sm,{doc:e,schema:d.bodyMedia.media.schema,redactInternal:l})})]}),d.responses.length>0&&(0,Xe.jsxs)("section",{style:{marginTop:"28px"},children:[(0,Xe.jsx)("h3",{className:"api-section-title",style:{marginBottom:"12px"},children:"Responses"}),(0,Xe.jsx)("div",{className:"api-schema",children:(0,Xe.jsx)(Iv,{items:d.responses.map(({status:p,response:v})=>{let b=ii(v.content);return{status:p,description:v.description??null,mediaType:b?.mediaType??null,panel:b?.media.schema?(0,Xe.jsx)(sm,{doc:e,schema:b.media.schema,redactInternal:l}):(0,Xe.jsx)("p",{style:{margin:"8px 0",fontSize:"12.5px",color:"var(--text-muted)"},children:"No response body."})}})})})]}),s]}),(0,Xe.jsxs)("div",{className:"api-right-panel",style:{width:"430px",flexShrink:0,position:"sticky",top:"20px",display:"flex",flexDirection:"column",gap:"14px",maxHeight:"calc(100dvh - 160px)",overflowY:"auto"},children:[(0,Xe.jsx)(Ov,{snippets:m,method:t,path:n}),d.responseExamples.length>0&&(0,Xe.jsx)(Mv,{examples:d.responseExamples}),!i["x-hideReplay"]&&(0,Xe.jsx)(Kv,{method:t.toUpperCase(),servers:d.tryItServers,path:n,params:d.tryItParams,auth:d.tryItAuth,bodyExample:d.tryItBody,contentType:d.tryItContentType,summary:i.summary,specKey:d.specKey})]})]})}vr();var kn=M(Y());function ym({feedbackId:e,prev:t,next:n,comments:r}){return(0,kn.jsxs)("div",{children:[r,e&&(0,kn.jsx)("div",{style:{marginTop:"48px",paddingTop:"28px",borderTop:"1px solid var(--border)"},children:(0,kn.jsx)(mu,{pageId:e})}),(t||n)&&(0,kn.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px",marginTop:"48px"},children:[t?(0,kn.jsxs)(Je,{href:t.href,prefetch:!1,style:{padding:"18px 20px",border:"1px solid var(--border)",borderRadius:"12px",textDecoration:"none",background:"var(--bg)",transition:"border-color 0.15s, background 0.15s",minWidth:0},children:[(0,kn.jsxs)("p",{style:{margin:"0 0 5px",fontSize:"11px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em",display:"flex",alignItems:"center",gap:"4px"},children:[(0,kn.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,kn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Previous"]}),(0,kn.jsx)("p",{style:{margin:0,fontSize:"14px",fontWeight:600,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.title})]}):(0,kn.jsx)("div",{}),n?(0,kn.jsxs)(Je,{href:n.href,prefetch:!1,style:{padding:"18px 20px",border:"1px solid var(--border)",borderRadius:"12px",textDecoration:"none",background:"var(--bg)",textAlign:"right",transition:"border-color 0.15s, background 0.15s",minWidth:0},children:[(0,kn.jsxs)("p",{style:{margin:"0 0 5px",fontSize:"11px",color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.06em",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"4px"},children:["Next",(0,kn.jsx)("svg",{width:"12",height:"12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,kn.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]}),(0,kn.jsx)("p",{style:{margin:0,fontSize:"14px",fontWeight:600,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n.title})]}):(0,kn.jsx)("div",{})]}),(0,kn.jsx)(gu,{})]})}xa();var Pe=M(Y(),1),xO=_R(null);function SO({payload:e}){let{view:t,basePath:n,project:r,role:i}=e;switch(t.kind){case"doc":return(0,Pe.jsx)(Wb,{content:t.content,isChangelog:t.isChangelog,rssHref:null,release:t.release,page:{...t.page,author:null,publishedAt:null},prevPage:t.prevPage,nextPage:t.nextPage,basePath:n,projectSlug:r,pageLinks:t.pageLinks,breadcrumbs:t.breadcrumbs,viewerRole:i});case"spec":return(0,Pe.jsx)(im,{basePath:n,projectSlug:r,assetPath:t.assetPath,children:(0,Pe.jsx)(Nv,{doc:t.doc,groups:t.groups,basePath:t.specBase,specId:t.specId,specSlug:t.specSlug,layer:"published",config:xO,sectionLabel:e.settings.api_reference_label||cl,projectSlug:r,footer:(0,Pe.jsx)(ym,{feedbackId:`api:${t.specSlug}`,next:t.next})})});case"tag":return(0,Pe.jsx)(im,{basePath:n,projectSlug:r,assetPath:t.assetPath,children:(0,Pe.jsx)(kv,{title:t.title,description:t.description,operations:t.operations,specBasePath:t.specBase})});case"operation":{let o=mv(t.doc,t.method,t.path);return o?(0,Pe.jsx)(im,{basePath:n,projectSlug:r,assetPath:t.assetPath,children:(0,Pe.jsx)(Yv,{doc:t.doc,method:t.method,path:t.path,pathItem:o.pathItem,op:o.op,tag:t.tag,languages:TR(xO),redactInternal:!0,footer:(0,Pe.jsx)(ym,{feedbackId:`api:${t.specSlug}:${t.opSlug}`,prev:t.prev,next:t.next})})}):(0,Pe.jsx)(EO,{title:"Operation not found",message:`${t.method.toUpperCase()} ${t.path} is not in the spec.`})}case"notice":return(0,Pe.jsx)(EO,{title:t.title,message:t.message});case"redirect":return null}}function EO({title:e,message:t}){return(0,Pe.jsxs)("div",{className:"docs-content-container",style:{maxWidth:760,margin:"0 auto",padding:"64px 40px"},children:[(0,Pe.jsx)("h1",{style:{margin:"0 0 12px",fontSize:28,fontWeight:500,color:"var(--brand-heading)"},children:e}),(0,Pe.jsx)("p",{style:{color:"var(--docs-body-text)",lineHeight:1.6},children:t})]})}function O5({payload:e}){let{basePath:t,project:n,nav:r}=e,i={id:n,name:e.settings.site_name||n,slug:n};return(0,Pe.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100dvh",overflow:"hidden",background:"var(--bg)"},children:[(0,Pe.jsx)(Ry,{session:null,activeProject:i,basePath:t,homeHref:e.homeHref,assistantEnabled:!1,authRequired:!1,showNotifications:!1}),r?(0,Pe.jsxs)(m_,{value:{nav:r,apiTree:e.apiTree,apiLandingRoute:e.apiLandingRoute},children:[(0,Pe.jsx)(Iy,{basePath:t,projectSlug:n,initialNav:{sections:r.sections,hasApiSpecs:r.hasApiSpecs,apiReferenceOrder:r.apiReferenceOrder}}),(0,Pe.jsxs)("div",{style:{display:"flex",flex:1,minHeight:0,overflow:"hidden"},children:[(0,Pe.jsx)(Fy,{basePath:t,projectSlug:n}),(0,Pe.jsx)("main",{className:"docs-main-scroll",style:{flex:1,overflowY:"auto",background:"var(--bg)",minWidth:0,transition:"margin 0.2s ease"},children:(0,Pe.jsx)(SO,{payload:e})})]})]}):(0,Pe.jsx)("main",{className:"docs-main-scroll",style:{flex:1,overflowY:"auto",background:"var(--bg)"},children:(0,Pe.jsx)(SO,{payload:e})})]})}function C5({payload:e}){let{problems:t,role:n}=e,[r,i]=(0,bm.useState)(!1),o=t.errors>0?`\u2715 ${t.errors} error${t.errors===1?"":"s"} \u2014 Publish would be blocked`:t.findings.length===0?"\u2713 No problems \u2014 this would publish":"\u2713 Would publish",a=[["Every project",e.roles.filter(s=>s.source==="system")],["In navigation.yaml",e.roles.filter(s=>s.source==="navigation")],["Other",e.roles.filter(s=>s.source==="config")]];return(0,Pe.jsxs)("div",{className:"dmp-bar",children:[(0,Pe.jsxs)("div",{className:"dmp-role",children:[(0,Pe.jsx)("span",{className:"dmp-pill",children:"Local preview"}),(0,Pe.jsxs)("label",{children:["View as"," ",(0,Pe.jsx)("select",{value:n,onChange:s=>{globalThis.location.search=`?as=${encodeURIComponent(s.target.value)}`},children:a.filter(([,s])=>s.length>0).map(([s,l])=>(0,Pe.jsx)("optgroup",{label:s,children:l.map(c=>(0,Pe.jsx)("option",{value:c.name,children:c.label},c.name))},s))})]})]}),(0,Pe.jsxs)("div",{className:t.errors>0?"dmp-problems dmp-problems-error":"dmp-problems",children:[(0,Pe.jsxs)("button",{type:"button",onClick:()=>i(s=>!s),disabled:t.findings.length===0,children:[o,t.warnings>0&&` \xB7 ${t.warnings} warning${t.warnings===1?"":"s"}`]}),r&&t.findings.length>0&&(0,Pe.jsx)("ul",{children:t.findings.map((s,l)=>(0,Pe.jsxs)("li",{className:s.severity==="error"?"dmp-p-error":"dmp-p-warning",children:[(0,Pe.jsxs)("span",{className:"dmp-p-loc",children:[s.file??"(site)",s.line?`:${s.line}`:""]}),(0,Pe.jsx)("span",{children:s.message}),(0,Pe.jsx)("code",{children:s.code})]},l))})]})]})}function M5({payload:e}){return(0,bm.useEffect)(()=>{let t=e.settings.site_name||"Docs",n="title"in e.view?e.view.title:"";if(document.title=`${n?`${n} \xB7 `:""}${t} (preview)`,location.hash){let r=decodeURIComponent(location.hash.slice(1));requestAnimationFrame(()=>document.getElementById(r)?.scrollIntoView())}},[e]),(0,Pe.jsxs)(l_,{children:[(0,Pe.jsxs)(d_,{value:e.settings,children:[(0,Pe.jsx)(O5,{payload:e}),(0,Pe.jsx)(C5,{payload:e})]}),(0,Pe.jsx)(r_,{position:"top-right",toastOptions:{duration:2e3}})]})}function I5(){let e=null,t=new EventSource("/__docmind/events");t.addEventListener("hello",n=>{let r=n.data;e!==null&&r!==e&&location.reload(),e=r}),t.addEventListener("reload",()=>location.reload())}async function L5(){let t=JSON.parse(document.getElementById("dm-boot")?.textContent??"{}").basePath??"",n=decodeURIComponent(location.pathname),r=n.startsWith(t)?n.slice(t.length):n,o=await(await fetch(`/__docmind/view?route=${encodeURIComponent(r)}`,{cache:"no-store"})).json(),a=o.view;if(a.kind==="redirect"){location.replace(It(o.basePath,a.route)+location.hash);return}(0,wO.createRoot)(document.getElementById("root")).render((0,Pe.jsx)(M5,{payload:o})),I5()}L5();})();
|
|
388
|
+
/*! Bundled license information:
|
|
389
|
+
|
|
390
|
+
react/cjs/react.production.js:
|
|
391
|
+
(**
|
|
392
|
+
* @license React
|
|
393
|
+
* react.production.js
|
|
394
|
+
*
|
|
395
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the MIT license found in the
|
|
398
|
+
* LICENSE file in the root directory of this source tree.
|
|
399
|
+
*)
|
|
400
|
+
|
|
401
|
+
scheduler/cjs/scheduler.production.js:
|
|
402
|
+
(**
|
|
403
|
+
* @license React
|
|
404
|
+
* scheduler.production.js
|
|
405
|
+
*
|
|
406
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
407
|
+
*
|
|
408
|
+
* This source code is licensed under the MIT license found in the
|
|
409
|
+
* LICENSE file in the root directory of this source tree.
|
|
410
|
+
*)
|
|
411
|
+
|
|
412
|
+
react-dom/cjs/react-dom.production.js:
|
|
413
|
+
(**
|
|
414
|
+
* @license React
|
|
415
|
+
* react-dom.production.js
|
|
416
|
+
*
|
|
417
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
418
|
+
*
|
|
419
|
+
* This source code is licensed under the MIT license found in the
|
|
420
|
+
* LICENSE file in the root directory of this source tree.
|
|
421
|
+
*)
|
|
422
|
+
|
|
423
|
+
react-dom/cjs/react-dom-client.production.js:
|
|
424
|
+
(**
|
|
425
|
+
* @license React
|
|
426
|
+
* react-dom-client.production.js
|
|
427
|
+
*
|
|
428
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
429
|
+
*
|
|
430
|
+
* This source code is licensed under the MIT license found in the
|
|
431
|
+
* LICENSE file in the root directory of this source tree.
|
|
432
|
+
*)
|
|
433
|
+
|
|
434
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
435
|
+
(**
|
|
436
|
+
* @license React
|
|
437
|
+
* react-jsx-runtime.production.js
|
|
438
|
+
*
|
|
439
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
440
|
+
*
|
|
441
|
+
* This source code is licensed under the MIT license found in the
|
|
442
|
+
* LICENSE file in the root directory of this source tree.
|
|
443
|
+
*)
|
|
444
|
+
|
|
445
|
+
dompurify/dist/purify.es.mjs:
|
|
446
|
+
(*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE *)
|
|
447
|
+
*/
|