var f0=e=>{throw TypeError(e)};var Uc=(e,t,n)=>t.has(e)||f0("Cannot "+n);var V=(e,t,n)=>(Uc(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>t.has(e)?f0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),be=(e,t,n,r)=>(Uc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Et=(e,t,n)=>(Uc(e,t,"access private method"),n);var ru=(e,t,n,r)=>({set _(i){be(e,t,i,n)},get _(){return V(e,t,r)}});function Dv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var el=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ly={exports:{}},Kl={},cy={exports:{}},ve={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ho=Symbol.for("react.element"),Mv=Symbol.for("react.portal"),Fv=Symbol.for("react.fragment"),Bv=Symbol.for("react.strict_mode"),jv=Symbol.for("react.profiler"),Uv=Symbol.for("react.provider"),Hv=Symbol.for("react.context"),zv=Symbol.for("react.forward_ref"),Vv=Symbol.for("react.suspense"),Yv=Symbol.for("react.memo"),$v=Symbol.for("react.lazy"),h0=Symbol.iterator;function Wv(e){return e===null||typeof e!="object"?null:(e=h0&&e[h0]||e["@@iterator"],typeof e=="function"?e:null)}var dy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fy=Object.assign,hy={};function os(e,t,n){this.props=e,this.context=t,this.refs=hy,this.updater=n||dy}os.prototype.isReactComponent={};os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function py(){}py.prototype=os.prototype;function Th(e,t,n){this.props=e,this.context=t,this.refs=hy,this.updater=n||dy}var vh=Th.prototype=new py;vh.constructor=Th;fy(vh,os.prototype);vh.isPureReactComponent=!0;var p0=Array.isArray,my=Object.prototype.hasOwnProperty,wh={current:null},gy={key:!0,ref:!0,__self:!0,__source:!0};function yy(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)my.call(t,r)&&!gy.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var u=Array(o),l=0;l<o;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:Ho,type:e,key:a,ref:s,props:i,_owner:wh.current}}function qv(e,t){return{$$typeof:Ho,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ch(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ho}function Gv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var m0=/\/+/g;function Hc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gv(""+e.key):t.toString(36)}function Lu(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ho:case Mv:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Hc(s,0):r,p0(i)?(n="",e!=null&&(n=e.replace(m0,"$&/")+"/"),Lu(i,t,n,"",function(l){return l})):i!=null&&(Ch(i)&&(i=qv(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(m0,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",p0(e))for(var o=0;o<e.length;o++){a=e[o];var u=r+Hc(a,o);s+=Lu(a,t,n,u,i)}else if(u=Wv(e),typeof u=="function")for(e=u.call(e),o=0;!(a=e.next()).done;)a=a.value,u=r+Hc(a,o++),s+=Lu(a,t,n,u,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function iu(e,t,n){if(e==null)return e;var r=[],i=0;return Lu(e,r,"","",function(a){return t.call(n,a,i++)}),r}function Qv(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 Ut={current:null},Ru={transition:null},Kv={ReactCurrentDispatcher:Ut,ReactCurrentBatchConfig:Ru,ReactCurrentOwner:wh};function xy(){throw Error("act(...) is not supported in production builds of React.")}ve.Children={map:iu,forEach:function(e,t,n){iu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return iu(e,function(){t++}),t},toArray:function(e){return iu(e,function(t){return t})||[]},only:function(e){if(!Ch(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Component=os;ve.Fragment=Fv;ve.Profiler=jv;ve.PureComponent=Th;ve.StrictMode=Bv;ve.Suspense=Vv;ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kv;ve.act=xy;ve.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=fy({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=wh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(u in t)my.call(t,u)&&!gy.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&o!==void 0?o[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){o=Array(u);for(var l=0;l<u;l++)o[l]=arguments[l+2];r.children=o}return{$$typeof:Ho,type:e.type,key:i,ref:a,props:r,_owner:s}};ve.createContext=function(e){return e={$$typeof:Hv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Uv,_context:e},e.Consumer=e};ve.createElement=yy;ve.createFactory=function(e){var t=yy.bind(null,e);return t.type=e,t};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:zv,render:e}};ve.isValidElement=Ch;ve.lazy=function(e){return{$$typeof:$v,_payload:{_status:-1,_result:e},_init:Qv}};ve.memo=function(e,t){return{$$typeof:Yv,type:e,compare:t===void 0?null:t}};ve.startTransition=function(e){var t=Ru.transition;Ru.transition={};try{e()}finally{Ru.transition=t}};ve.unstable_act=xy;ve.useCallback=function(e,t){return Ut.current.useCallback(e,t)};ve.useContext=function(e){return Ut.current.useContext(e)};ve.useDebugValue=function(){};ve.useDeferredValue=function(e){return Ut.current.useDeferredValue(e)};ve.useEffect=function(e,t){return Ut.current.useEffect(e,t)};ve.useId=function(){return Ut.current.useId()};ve.useImperativeHandle=function(e,t,n){return Ut.current.useImperativeHandle(e,t,n)};ve.useInsertionEffect=function(e,t){return Ut.current.useInsertionEffect(e,t)};ve.useLayoutEffect=function(e,t){return Ut.current.useLayoutEffect(e,t)};ve.useMemo=function(e,t){return Ut.current.useMemo(e,t)};ve.useReducer=function(e,t,n){return Ut.current.useReducer(e,t,n)};ve.useRef=function(e){return Ut.current.useRef(e)};ve.useState=function(e){return Ut.current.useState(e)};ve.useSyncExternalStore=function(e,t,n){return Ut.current.useSyncExternalStore(e,t,n)};ve.useTransition=function(){return Ut.current.useTransition()};ve.version="18.3.1";cy.exports=ve;var T=cy.exports;const X=Ql(T),by=Dv({__proto__:null,default:X},[T]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xv=T,Jv=Symbol.for("react.element"),Zv=Symbol.for("react.fragment"),ew=Object.prototype.hasOwnProperty,tw=Xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nw={key:!0,ref:!0,__self:!0,__source:!0};function Ey(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)ew.call(t,r)&&!nw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Jv,type:e,key:a,ref:s,props:i,_owner:tw.current}}Kl.Fragment=Zv;Kl.jsx=Ey;Kl.jsxs=Ey;ly.exports=Kl;var c=ly.exports,Ty={exports:{}},pn={},vy={exports:{}},wy={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(D,G){var C=D.length;D.push(G);e:for(;0<C;){var re=C-1>>>1,le=D[re];if(0<i(le,G))D[re]=G,D[C]=le,C=re;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var G=D[0],C=D.pop();if(C!==G){D[0]=C;e:for(var re=0,le=D.length,k=le>>>1;re<k;){var Ee=2*(re+1)-1,He=D[Ee],he=Ee+1,Ze=D[he];if(0>i(He,C))he<le&&0>i(Ze,He)?(D[re]=Ze,D[he]=C,re=he):(D[re]=He,D[Ee]=C,re=Ee);else if(he<le&&0>i(Ze,C))D[re]=Ze,D[he]=C,re=he;else break e}}return G}function i(D,G){var C=D.sortIndex-G.sortIndex;return C!==0?C:D.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var u=[],l=[],f=1,h=null,p=3,m=!1,x=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(D){for(var G=n(l);G!==null;){if(G.callback===null)r(l);else if(G.startTime<=D)r(l),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(l)}}function _(D){if(b=!1,E(D),!x)if(n(u)!==null)x=!0,ie(I);else{var G=n(l);G!==null&&se(_,G.startTime-D)}}function I(D,G){x=!1,b&&(b=!1,y(M),M=-1),m=!0;var C=p;try{for(E(G),h=n(u);h!==null&&(!(h.expirationTime>G)||D&&!W());){var re=h.callback;if(typeof re=="function"){h.callback=null,p=h.priorityLevel;var le=re(h.expirationTime<=G);G=e.unstable_now(),typeof le=="function"?h.callback=le:h===n(u)&&r(u),E(G)}else r(u);h=n(u)}if(h!==null)var k=!0;else{var Ee=n(l);Ee!==null&&se(_,Ee.startTime-G),k=!1}return k}finally{h=null,p=C,m=!1}}var N=!1,L=null,M=-1,$=5,H=-1;function W(){return!(e.unstable_now()-H<$)}function F(){if(L!==null){var D=e.unstable_now();H=D;var G=!0;try{G=L(!0,D)}finally{G?K():(N=!1,L=null)}}else N=!1}var K;if(typeof g=="function")K=function(){g(F)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,te=z.port2;z.port1.onmessage=F,K=function(){te.postMessage(null)}}else K=function(){v(F,0)};function ie(D){L=D,N||(N=!0,K())}function se(D,G){M=v(function(){D(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,ie(I))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var G=3;break;default:G=p}var C=p;p=G;try{return D()}finally{p=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var C=p;p=D;try{return G()}finally{p=C}},e.unstable_scheduleCallback=function(D,G,C){var re=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?re+C:re):C=re,D){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=C+le,D={id:f++,callback:G,priorityLevel:D,startTime:C,expirationTime:le,sortIndex:-1},C>re?(D.sortIndex=C,t(l,D),n(u)===null&&D===n(l)&&(b?(y(M),M=-1):b=!0,se(_,C-re))):(D.sortIndex=le,t(u,D),x||m||(x=!0,ie(I))),D},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(D){var G=p;return function(){var C=p;p=G;try{return D.apply(this,arguments)}finally{p=C}}}})(wy);vy.exports=wy;var rw=vy.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var iw=T,hn=rw;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Cy=new Set,oo={};function ra(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(oo[e]=t,e=0;e<t.length;e++)Cy.add(t[e])}var Ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hd=Object.prototype.hasOwnProperty,aw=/^[: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]*$/,g0={},y0={};function sw(e){return Hd.call(y0,e)?!0:Hd.call(g0,e)?!1:aw.test(e)?y0[e]=!0:(g0[e]=!0,!1)}function ow(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uw(e,t,n,r){if(t===null||typeof t>"u"||ow(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ht(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bt[e]=new Ht(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];bt[t]=new Ht(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bt[e]=new Ht(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bt[e]=new Ht(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){bt[e]=new Ht(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bt[e]=new Ht(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bt[e]=new Ht(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bt[e]=new Ht(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bt[e]=new Ht(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ah=/[\-:]([a-z])/g;function _h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ah,_h);bt[t]=new Ht(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ah,_h);bt[t]=new Ht(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ah,_h);bt[t]=new Ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){bt[e]=new Ht(e,1,!1,e.toLowerCase(),null,!1,!1)});bt.xlinkHref=new Ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){bt[e]=new Ht(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nh(e,t,n,r){var i=bt.hasOwnProperty(t)?bt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(uw(t,n,i,r)&&(n=null),r||i===null?sw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Fr=iw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,au=Symbol.for("react.element"),fa=Symbol.for("react.portal"),ha=Symbol.for("react.fragment"),kh=Symbol.for("react.strict_mode"),zd=Symbol.for("react.profiler"),Ay=Symbol.for("react.provider"),_y=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),Vd=Symbol.for("react.suspense"),Yd=Symbol.for("react.suspense_list"),Ih=Symbol.for("react.memo"),Gr=Symbol.for("react.lazy"),Ny=Symbol.for("react.offscreen"),x0=Symbol.iterator;function Es(e){return e===null||typeof e!="object"?null:(e=x0&&e[x0]||e["@@iterator"],typeof e=="function"?e:null)}var Ye=Object.assign,zc;function Ms(e){if(zc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zc=t&&t[1]||""}return`
`+zc+e}var Vc=!1;function Yc(e,t){if(!e||Vc)return"";Vc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
`),a=r.stack.split(`
`),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==a[o]){var u=`
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=o);break}}}finally{Vc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ms(e):""}function lw(e){switch(e.tag){case 5:return Ms(e.type);case 16:return Ms("Lazy");case 13:return Ms("Suspense");case 19:return Ms("SuspenseList");case 0:case 2:case 15:return e=Yc(e.type,!1),e;case 11:return e=Yc(e.type.render,!1),e;case 1:return e=Yc(e.type,!0),e;default:return""}}function $d(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ha:return"Fragment";case fa:return"Portal";case zd:return"Profiler";case kh:return"StrictMode";case Vd:return"Suspense";case Yd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _y:return(e.displayName||"Context")+".Consumer";case Ay:return(e._context.displayName||"Context")+".Provider";case Sh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ih:return t=e.displayName||null,t!==null?t:$d(e.type)||"Memo";case Gr:t=e._payload,e=e._init;try{return $d(e(t))}catch{}}return null}function cw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $d(t);case 8:return t===kh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dw(e){var t=ky(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function su(e){e._valueTracker||(e._valueTracker=dw(e))}function Sy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ky(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wd(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function b0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Iy(e,t){t=t.checked,t!=null&&Nh(e,"checked",t,!1)}function qd(e,t){Iy(e,t);var n=bi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gd(e,t.type,bi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Gd(e,t,n){(t!=="number"||tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fs=Array.isArray;function ka(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=""+bi(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 Qd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(J(91));return Ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function T0(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(J(92));if(Fs(n)){if(1<n.length)throw Error(J(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bi(n)}}function Oy(e,t){var n=bi(t.value),r=bi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function v0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ly(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Kd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ly(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ou,Ry=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ou=ou||document.createElement("div"),ou.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ou.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fw=["Webkit","ms","Moz","O"];Object.keys(zs).forEach(function(e){fw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zs[t]=zs[e]})});function Py(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zs.hasOwnProperty(e)&&zs[e]?(""+t).trim():t+"px"}function Dy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Py(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var hw=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xd(e,t){if(t){if(hw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function Jd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zd=null;function Oh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ef=null,Sa=null,Ia=null;function w0(e){if(e=Yo(e)){if(typeof ef!="function")throw Error(J(280));var t=e.stateNode;t&&(t=tc(t),ef(e.stateNode,e.type,t))}}function My(e){Sa?Ia?Ia.push(e):Ia=[e]:Sa=e}function Fy(){if(Sa){var e=Sa,t=Ia;if(Ia=Sa=null,w0(e),t)for(e=0;e<t.length;e++)w0(t[e])}}function By(e,t){return e(t)}function jy(){}var $c=!1;function Uy(e,t,n){if($c)return e(t,n);$c=!0;try{return By(e,t,n)}finally{$c=!1,(Sa!==null||Ia!==null)&&(jy(),Fy())}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var r=tc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(J(231,t,typeof n));return n}var tf=!1;if(Ir)try{var Ts={};Object.defineProperty(Ts,"passive",{get:function(){tf=!0}}),window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{tf=!1}function pw(e,t,n,r,i,a,s,o,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(f){this.onError(f)}}var Vs=!1,nl=null,rl=!1,nf=null,mw={onError:function(e){Vs=!0,nl=e}};function gw(e,t,n,r,i,a,s,o,u){Vs=!1,nl=null,pw.apply(mw,arguments)}function yw(e,t,n,r,i,a,s,o,u){if(gw.apply(this,arguments),Vs){if(Vs){var l=nl;Vs=!1,nl=null}else throw Error(J(198));rl||(rl=!0,nf=l)}}function ia(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Hy(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 C0(e){if(ia(e)!==e)throw Error(J(188))}function xw(e){var t=e.alternate;if(!t){if(t=ia(e),t===null)throw Error(J(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return C0(i),e;if(a===r)return C0(i),t;a=a.sibling}throw Error(J(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(J(189))}}if(n.alternate!==r)throw Error(J(190))}if(n.tag!==3)throw Error(J(188));return n.stateNode.current===n?e:t}function zy(e){return e=xw(e),e!==null?Vy(e):null}function Vy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vy(e);if(t!==null)return t;e=e.sibling}return null}var Yy=hn.unstable_scheduleCallback,A0=hn.unstable_cancelCallback,bw=hn.unstable_shouldYield,Ew=hn.unstable_requestPaint,Xe=hn.unstable_now,Tw=hn.unstable_getCurrentPriorityLevel,Lh=hn.unstable_ImmediatePriority,$y=hn.unstable_UserBlockingPriority,il=hn.unstable_NormalPriority,vw=hn.unstable_LowPriority,Wy=hn.unstable_IdlePriority,Xl=null,cr=null;function ww(e){if(cr&&typeof cr.onCommitFiberRoot=="function")try{cr.onCommitFiberRoot(Xl,e,void 0,(e.current.flags&128)===128)}catch{}}var jn=Math.clz32?Math.clz32:_w,Cw=Math.log,Aw=Math.LN2;function _w(e){return e>>>=0,e===0?32:31-(Cw(e)/Aw|0)|0}var uu=64,lu=4194304;function Bs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=Bs(o):(a&=s,a!==0&&(r=Bs(a)))}else s=n&~i,s!==0?r=Bs(s):a!==0&&(r=Bs(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jn(t),i=1<<n,r|=e[n],t&=~i;return r}function Nw(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-jn(a),o=1<<s,u=i[s];u===-1?(!(o&n)||o&r)&&(i[s]=Nw(o,t)):u<=t&&(e.expiredLanes|=o),a&=~o}}function rf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function qy(){var e=uu;return uu<<=1,!(uu&4194240)&&(uu=64),e}function Wc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jn(t),e[t]=n}function Sw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jn(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Rh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Se=0;function Gy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qy,Ph,Ky,Xy,Jy,af=!1,cu=[],li=null,ci=null,di=null,co=new Map,fo=new Map,Xr=[],Iw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _0(e,t){switch(e){case"focusin":case"focusout":li=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fo.delete(t.pointerId)}}function vs(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Yo(t),t!==null&&Ph(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ow(e,t,n,r,i){switch(t){case"focusin":return li=vs(li,e,t,n,r,i),!0;case"dragenter":return ci=vs(ci,e,t,n,r,i),!0;case"mouseover":return di=vs(di,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return co.set(a,vs(co.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,fo.set(a,vs(fo.get(a)||null,e,t,n,r,i)),!0}return!1}function Zy(e){var t=Bi(e.target);if(t!==null){var n=ia(t);if(n!==null){if(t=n.tag,t===13){if(t=Hy(n),t!==null){e.blockedOn=t,Jy(e.priority,function(){Ky(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 Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zd=r,n.target.dispatchEvent(r),Zd=null}else return t=Yo(n),t!==null&&Ph(t),e.blockedOn=n,!1;t.shift()}return!0}function N0(e,t,n){Pu(e)&&n.delete(t)}function Lw(){af=!1,li!==null&&Pu(li)&&(li=null),ci!==null&&Pu(ci)&&(ci=null),di!==null&&Pu(di)&&(di=null),co.forEach(N0),fo.forEach(N0)}function ws(e,t){e.blockedOn===t&&(e.blockedOn=null,af||(af=!0,hn.unstable_scheduleCallback(hn.unstable_NormalPriority,Lw)))}function ho(e){function t(i){return ws(i,e)}if(0<cu.length){ws(cu[0],e);for(var n=1;n<cu.length;n++){var r=cu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(li!==null&&ws(li,e),ci!==null&&ws(ci,e),di!==null&&ws(di,e),co.forEach(t),fo.forEach(t),n=0;n<Xr.length;n++)r=Xr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xr.length&&(n=Xr[0],n.blockedOn===null);)Zy(n),n.blockedOn===null&&Xr.shift()}var Oa=Fr.ReactCurrentBatchConfig,sl=!0;function Rw(e,t,n,r){var i=Se,a=Oa.transition;Oa.transition=null;try{Se=1,Dh(e,t,n,r)}finally{Se=i,Oa.transition=a}}function Pw(e,t,n,r){var i=Se,a=Oa.transition;Oa.transition=null;try{Se=4,Dh(e,t,n,r)}finally{Se=i,Oa.transition=a}}function Dh(e,t,n,r){if(sl){var i=sf(e,t,n,r);if(i===null)nd(e,t,r,ol,n),_0(e,r);else if(Ow(i,e,t,n,r))r.stopPropagation();else if(_0(e,r),t&4&&-1<Iw.indexOf(e)){for(;i!==null;){var a=Yo(i);if(a!==null&&Qy(a),a=sf(e,t,n,r),a===null&&nd(e,t,r,ol,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else nd(e,t,r,null,n)}}var ol=null;function sf(e,t,n,r){if(ol=null,e=Oh(r),e=Bi(e),e!==null)if(t=ia(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hy(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 ol=e,null}function ex(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Tw()){case Lh:return 1;case $y:return 4;case il:case vw:return 16;case Wy:return 536870912;default:return 16}default:return 16}}var ai=null,Mh=null,Du=null;function tx(){if(Du)return Du;var e,t=Mh,n=t.length,r,i="value"in ai?ai.value:ai.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return Du=i.slice(e,1<r?1-r:void 0)}function Mu(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 du(){return!0}function k0(){return!1}function mn(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?du:k0,this.isPropagationStopped=k0,this}return Ye(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=du)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=du)},persist:function(){},isPersistent:du}),t}var us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fh=mn(us),Vo=Ye({},us,{view:0,detail:0}),Dw=mn(Vo),qc,Gc,Cs,Jl=Ye({},Vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bh,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!==Cs&&(Cs&&e.type==="mousemove"?(qc=e.screenX-Cs.screenX,Gc=e.screenY-Cs.screenY):Gc=qc=0,Cs=e),qc)},movementY:function(e){return"movementY"in e?e.movementY:Gc}}),S0=mn(Jl),Mw=Ye({},Jl,{dataTransfer:0}),Fw=mn(Mw),Bw=Ye({},Vo,{relatedTarget:0}),Qc=mn(Bw),jw=Ye({},us,{animationName:0,elapsedTime:0,pseudoElement:0}),Uw=mn(jw),Hw=Ye({},us,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zw=mn(Hw),Vw=Ye({},us,{data:0}),I0=mn(Vw),Yw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$w={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"},Ww={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ww[e])?!!t[e]:!1}function Bh(){return qw}var Gw=Ye({},Vo,{key:function(e){if(e.key){var t=Yw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$w[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bh,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qw=mn(Gw),Kw=Ye({},Jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O0=mn(Kw),Xw=Ye({},Vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bh}),Jw=mn(Xw),Zw=Ye({},us,{propertyName:0,elapsedTime:0,pseudoElement:0}),eC=mn(Zw),tC=Ye({},Jl,{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}),nC=mn(tC),rC=[9,13,27,32],jh=Ir&&"CompositionEvent"in window,Ys=null;Ir&&"documentMode"in document&&(Ys=document.documentMode);var iC=Ir&&"TextEvent"in window&&!Ys,nx=Ir&&(!jh||Ys&&8<Ys&&11>=Ys),L0=" ",R0=!1;function rx(e,t){switch(e){case"keyup":return rC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ix(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function aC(e,t){switch(e){case"compositionend":return ix(t);case"keypress":return t.which!==32?null:(R0=!0,L0);case"textInput":return e=t.data,e===L0&&R0?null:e;default:return null}}function sC(e,t){if(pa)return e==="compositionend"||!jh&&rx(e,t)?(e=tx(),Du=Mh=ai=null,pa=!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 nx&&t.locale!=="ko"?null:t.data;default:return null}}var oC={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 P0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oC[e.type]:t==="textarea"}function ax(e,t,n,r){My(r),t=ul(t,"onChange"),0<t.length&&(n=new Fh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $s=null,po=null;function uC(e){gx(e,0)}function Zl(e){var t=ya(e);if(Sy(t))return e}function lC(e,t){if(e==="change")return t}var sx=!1;if(Ir){var Kc;if(Ir){var Xc="oninput"in document;if(!Xc){var D0=document.createElement("div");D0.setAttribute("oninput","return;"),Xc=typeof D0.oninput=="function"}Kc=Xc}else Kc=!1;sx=Kc&&(!document.documentMode||9<document.documentMode)}function M0(){$s&&($s.detachEvent("onpropertychange",ox),po=$s=null)}function ox(e){if(e.propertyName==="value"&&Zl(po)){var t=[];ax(t,po,e,Oh(e)),Uy(uC,t)}}function cC(e,t,n){e==="focusin"?(M0(),$s=t,po=n,$s.attachEvent("onpropertychange",ox)):e==="focusout"&&M0()}function dC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zl(po)}function fC(e,t){if(e==="click")return Zl(t)}function hC(e,t){if(e==="input"||e==="change")return Zl(t)}function pC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hn=typeof Object.is=="function"?Object.is:pC;function mo(e,t){if(Hn(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(!Hd.call(t,i)||!Hn(e[i],t[i]))return!1}return!0}function F0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B0(e,t){var n=F0(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=F0(n)}}function ux(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ux(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lx(){for(var e=window,t=tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tl(e.document)}return t}function Uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mC(e){var t=lx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ux(n.ownerDocument.documentElement,n)){if(r!==null&&Uh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=B0(n,a);var s=B0(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gC=Ir&&"documentMode"in document&&11>=document.documentMode,ma=null,of=null,Ws=null,uf=!1;function j0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uf||ma==null||ma!==tl(r)||(r=ma,"selectionStart"in r&&Uh(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}),Ws&&mo(Ws,r)||(Ws=r,r=ul(of,"onSelect"),0<r.length&&(t=new Fh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ma)))}function fu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ga={animationend:fu("Animation","AnimationEnd"),animationiteration:fu("Animation","AnimationIteration"),animationstart:fu("Animation","AnimationStart"),transitionend:fu("Transition","TransitionEnd")},Jc={},cx={};Ir&&(cx=document.createElement("div").style,"AnimationEvent"in window||(delete ga.animationend.animation,delete ga.animationiteration.animation,delete ga.animationstart.animation),"TransitionEvent"in window||delete ga.transitionend.transition);function ec(e){if(Jc[e])return Jc[e];if(!ga[e])return e;var t=ga[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cx)return Jc[e]=t[n];return e}var dx=ec("animationend"),fx=ec("animationiteration"),hx=ec("animationstart"),px=ec("transitionend"),mx=new Map,U0="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function _i(e,t){mx.set(e,t),ra(t,[e])}for(var Zc=0;Zc<U0.length;Zc++){var ed=U0[Zc],yC=ed.toLowerCase(),xC=ed[0].toUpperCase()+ed.slice(1);_i(yC,"on"+xC)}_i(dx,"onAnimationEnd");_i(fx,"onAnimationIteration");_i(hx,"onAnimationStart");_i("dblclick","onDoubleClick");_i("focusin","onFocus");_i("focusout","onBlur");_i(px,"onTransitionEnd");Wa("onMouseEnter",["mouseout","mouseover"]);Wa("onMouseLeave",["mouseout","mouseover"]);Wa("onPointerEnter",["pointerout","pointerover"]);Wa("onPointerLeave",["pointerout","pointerover"]);ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ra("onBeforeInput",["compositionend","keypress","textInput","paste"]);ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var js="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(" "),bC=new Set("cancel close invalid load scroll toggle".split(" ").concat(js));function H0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yw(r,t,void 0,e),e.currentTarget=null}function gx(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 a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],u=o.instance,l=o.currentTarget;if(o=o.listener,u!==a&&i.isPropagationStopped())break e;H0(i,o,l),a=u}else for(s=0;s<r.length;s++){if(o=r[s],u=o.instance,l=o.currentTarget,o=o.listener,u!==a&&i.isPropagationStopped())break e;H0(i,o,l),a=u}}}if(rl)throw e=nf,rl=!1,nf=null,e}function Me(e,t){var n=t[hf];n===void 0&&(n=t[hf]=new Set);var r=e+"__bubble";n.has(r)||(yx(t,e,2,!1),n.add(r))}function td(e,t,n){var r=0;t&&(r|=4),yx(n,e,r,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function go(e){if(!e[hu]){e[hu]=!0,Cy.forEach(function(n){n!=="selectionchange"&&(bC.has(n)||td(n,!1,e),td(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,td("selectionchange",!1,t))}}function yx(e,t,n,r){switch(ex(t)){case 1:var i=Rw;break;case 4:i=Pw;break;default:i=Dh}n=i.bind(null,t,n,e),i=void 0,!tf||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 nd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Bi(o),s===null)return;if(u=s.tag,u===5||u===6){r=a=s;continue e}o=o.parentNode}}r=r.return}Uy(function(){var l=a,f=Oh(n),h=[];e:{var p=mx.get(e);if(p!==void 0){var m=Fh,x=e;switch(e){case"keypress":if(Mu(n)===0)break e;case"keydown":case"keyup":m=Qw;break;case"focusin":x="focus",m=Qc;break;case"focusout":x="blur",m=Qc;break;case"beforeblur":case"afterblur":m=Qc;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":m=S0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Fw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Jw;break;case dx:case fx:case hx:m=Uw;break;case px:m=eC;break;case"scroll":m=Dw;break;case"wheel":m=nC;break;case"copy":case"cut":case"paste":m=zw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=O0}var b=(t&4)!==0,v=!b&&e==="scroll",y=b?p!==null?p+"Capture":null:p;b=[];for(var g=l,E;g!==null;){E=g;var _=E.stateNode;if(E.tag===5&&_!==null&&(E=_,y!==null&&(_=lo(g,y),_!=null&&b.push(yo(g,_,E)))),v)break;g=g.return}0<b.length&&(p=new m(p,x,null,n,f),h.push({event:p,listeners:b}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==Zd&&(x=n.relatedTarget||n.fromElement)&&(Bi(x)||x[Or]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=l,x=x?Bi(x):null,x!==null&&(v=ia(x),x!==v||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=l),m!==x)){if(b=S0,_="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=O0,_="onPointerLeave",y="onPointerEnter",g="pointer"),v=m==null?p:ya(m),E=x==null?p:ya(x),p=new b(_,g+"leave",m,n,f),p.target=v,p.relatedTarget=E,_=null,Bi(f)===l&&(b=new b(y,g+"enter",x,n,f),b.target=E,b.relatedTarget=v,_=b),v=_,m&&x)t:{for(b=m,y=x,g=0,E=b;E;E=ua(E))g++;for(E=0,_=y;_;_=ua(_))E++;for(;0<g-E;)b=ua(b),g--;for(;0<E-g;)y=ua(y),E--;for(;g--;){if(b===y||y!==null&&b===y.alternate)break t;b=ua(b),y=ua(y)}b=null}else b=null;m!==null&&z0(h,p,m,b,!1),x!==null&&v!==null&&z0(h,v,x,b,!0)}}e:{if(p=l?ya(l):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var I=lC;else if(P0(p))if(sx)I=hC;else{I=dC;var N=cC}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(I=fC);if(I&&(I=I(e,l))){ax(h,I,n,f);break e}N&&N(e,p,l),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&Gd(p,"number",p.value)}switch(N=l?ya(l):window,e){case"focusin":(P0(N)||N.contentEditable==="true")&&(ma=N,of=l,Ws=null);break;case"focusout":Ws=of=ma=null;break;case"mousedown":uf=!0;break;case"contextmenu":case"mouseup":case"dragend":uf=!1,j0(h,n,f);break;case"selectionchange":if(gC)break;case"keydown":case"keyup":j0(h,n,f)}var L;if(jh)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else pa?rx(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(nx&&n.locale!=="ko"&&(pa||M!=="onCompositionStart"?M==="onCompositionEnd"&&pa&&(L=tx()):(ai=f,Mh="value"in ai?ai.value:ai.textContent,pa=!0)),N=ul(l,M),0<N.length&&(M=new I0(M,e,null,n,f),h.push({event:M,listeners:N}),L?M.data=L:(L=ix(n),L!==null&&(M.data=L)))),(L=iC?aC(e,n):sC(e,n))&&(l=ul(l,"onBeforeInput"),0<l.length&&(f=new I0("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:l}),f.data=L))}gx(h,t)})}function yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ul(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=lo(e,n),a!=null&&r.unshift(yo(e,a,i)),a=lo(e,t),a!=null&&r.push(yo(e,a,i))),e=e.return}return r}function ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function z0(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,u=o.alternate,l=o.stateNode;if(u!==null&&u===r)break;o.tag===5&&l!==null&&(o=l,i?(u=lo(n,a),u!=null&&s.unshift(yo(n,u,o))):i||(u=lo(n,a),u!=null&&s.push(yo(n,u,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var EC=/\r\n?/g,TC=/\u0000|\uFFFD/g;function V0(e){return(typeof e=="string"?e:""+e).replace(EC,`
`).replace(TC,"")}function pu(e,t,n){if(t=V0(t),V0(e)!==t&&n)throw Error(J(425))}function ll(){}var lf=null,cf=null;function df(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ff=typeof setTimeout=="function"?setTimeout:void 0,vC=typeof clearTimeout=="function"?clearTimeout:void 0,Y0=typeof Promise=="function"?Promise:void 0,wC=typeof queueMicrotask=="function"?queueMicrotask:typeof Y0<"u"?function(e){return Y0.resolve(null).then(e).catch(CC)}:ff;function CC(e){setTimeout(function(){throw e})}function rd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ho(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ho(t)}function fi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ls=Math.random().toString(36).slice(2),or="__reactFiber$"+ls,xo="__reactProps$"+ls,Or="__reactContainer$"+ls,hf="__reactEvents$"+ls,AC="__reactListeners$"+ls,_C="__reactHandles$"+ls;function Bi(e){var t=e[or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Or]||n[or]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$0(e);e!==null;){if(n=e[or])return n;e=$0(e)}return t}e=n,n=e.parentNode}return null}function Yo(e){return e=e[or]||e[Or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ya(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function tc(e){return e[xo]||null}var pf=[],xa=-1;function Ni(e){return{current:e}}function Be(e){0>xa||(e.current=pf[xa],pf[xa]=null,xa--)}function Le(e,t){xa++,pf[xa]=e.current,e.current=t}var Ei={},_t=Ni(Ei),Gt=Ni(!1),Xi=Ei;function qa(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qt(e){return e=e.childContextTypes,e!=null}function cl(){Be(Gt),Be(_t)}function W0(e,t,n){if(_t.current!==Ei)throw Error(J(168));Le(_t,t),Le(Gt,n)}function xx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(J(108,cw(e)||"Unknown",i));return Ye({},n,r)}function dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Xi=_t.current,Le(_t,e),Le(Gt,Gt.current),!0}function q0(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=xx(e,t,Xi),r.__reactInternalMemoizedMergedChildContext=e,Be(Gt),Be(_t),Le(_t,e)):Be(Gt),Le(Gt,n)}var Cr=null,nc=!1,id=!1;function bx(e){Cr===null?Cr=[e]:Cr.push(e)}function NC(e){nc=!0,bx(e)}function ki(){if(!id&&Cr!==null){id=!0;var e=0,t=Se;try{var n=Cr;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cr=null,nc=!1}catch(i){throw Cr!==null&&(Cr=Cr.slice(e+1)),Yy(Lh,ki),i}finally{Se=t,id=!1}}return null}var ba=[],Ea=0,fl=null,hl=0,wn=[],Cn=0,Ji=null,_r=1,Nr="";function Pi(e,t){ba[Ea++]=hl,ba[Ea++]=fl,fl=e,hl=t}function Ex(e,t,n){wn[Cn++]=_r,wn[Cn++]=Nr,wn[Cn++]=Ji,Ji=e;var r=_r;e=Nr;var i=32-jn(r)-1;r&=~(1<<i),n+=1;var a=32-jn(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,_r=1<<32-jn(t)+i|n<<i|r,Nr=a+e}else _r=1<<a|n<<i|r,Nr=e}function Hh(e){e.return!==null&&(Pi(e,1),Ex(e,1,0))}function zh(e){for(;e===fl;)fl=ba[--Ea],ba[Ea]=null,hl=ba[--Ea],ba[Ea]=null;for(;e===Ji;)Ji=wn[--Cn],wn[Cn]=null,Nr=wn[--Cn],wn[Cn]=null,_r=wn[--Cn],wn[Cn]=null}var dn=null,ln=null,Ue=!1,Fn=null;function Tx(e,t){var n=Nn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function G0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dn=e,ln=fi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dn=e,ln=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ji!==null?{id:_r,overflow:Nr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Nn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,dn=e,ln=null,!0):!1;default:return!1}}function mf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gf(e){if(Ue){var t=ln;if(t){var n=t;if(!G0(e,t)){if(mf(e))throw Error(J(418));t=fi(n.nextSibling);var r=dn;t&&G0(e,t)?Tx(r,n):(e.flags=e.flags&-4097|2,Ue=!1,dn=e)}}else{if(mf(e))throw Error(J(418));e.flags=e.flags&-4097|2,Ue=!1,dn=e}}}function Q0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dn=e}function mu(e){if(e!==dn)return!1;if(!Ue)return Q0(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!df(e.type,e.memoizedProps)),t&&(t=ln)){if(mf(e))throw vx(),Error(J(418));for(;t;)Tx(e,t),t=fi(t.nextSibling)}if(Q0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ln=fi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ln=null}}else ln=dn?fi(e.stateNode.nextSibling):null;return!0}function vx(){for(var e=ln;e;)e=fi(e.nextSibling)}function Ga(){ln=dn=null,Ue=!1}function Vh(e){Fn===null?Fn=[e]:Fn.push(e)}var kC=Fr.ReactCurrentBatchConfig;function As(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(J(309));var r=n.stateNode}if(!r)throw Error(J(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(J(284));if(!n._owner)throw Error(J(290,e))}return e}function gu(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function K0(e){var t=e._init;return t(e._payload)}function wx(e){function t(y,g){if(e){var E=y.deletions;E===null?(y.deletions=[g],y.flags|=16):E.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=gi(y,g),y.index=0,y.sibling=null,y}function a(y,g,E){return y.index=E,e?(E=y.alternate,E!==null?(E=E.index,E<g?(y.flags|=2,g):E):(y.flags|=2,g)):(y.flags|=1048576,g)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function o(y,g,E,_){return g===null||g.tag!==6?(g=dd(E,y.mode,_),g.return=y,g):(g=i(g,E),g.return=y,g)}function u(y,g,E,_){var I=E.type;return I===ha?f(y,g,E.props.children,_,E.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Gr&&K0(I)===g.type)?(_=i(g,E.props),_.ref=As(y,g,E),_.return=y,_):(_=Vu(E.type,E.key,E.props,null,y.mode,_),_.ref=As(y,g,E),_.return=y,_)}function l(y,g,E,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==E.containerInfo||g.stateNode.implementation!==E.implementation?(g=fd(E,y.mode,_),g.return=y,g):(g=i(g,E.children||[]),g.return=y,g)}function f(y,g,E,_,I){return g===null||g.tag!==7?(g=qi(E,y.mode,_,I),g.return=y,g):(g=i(g,E),g.return=y,g)}function h(y,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return g=dd(""+g,y.mode,E),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case au:return E=Vu(g.type,g.key,g.props,null,y.mode,E),E.ref=As(y,null,g),E.return=y,E;case fa:return g=fd(g,y.mode,E),g.return=y,g;case Gr:var _=g._init;return h(y,_(g._payload),E)}if(Fs(g)||Es(g))return g=qi(g,y.mode,E,null),g.return=y,g;gu(y,g)}return null}function p(y,g,E,_){var I=g!==null?g.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return I!==null?null:o(y,g,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case au:return E.key===I?u(y,g,E,_):null;case fa:return E.key===I?l(y,g,E,_):null;case Gr:return I=E._init,p(y,g,I(E._payload),_)}if(Fs(E)||Es(E))return I!==null?null:f(y,g,E,_,null);gu(y,E)}return null}function m(y,g,E,_,I){if(typeof _=="string"&&_!==""||typeof _=="number")return y=y.get(E)||null,o(g,y,""+_,I);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case au:return y=y.get(_.key===null?E:_.key)||null,u(g,y,_,I);case fa:return y=y.get(_.key===null?E:_.key)||null,l(g,y,_,I);case Gr:var N=_._init;return m(y,g,E,N(_._payload),I)}if(Fs(_)||Es(_))return y=y.get(E)||null,f(g,y,_,I,null);gu(g,_)}return null}function x(y,g,E,_){for(var I=null,N=null,L=g,M=g=0,$=null;L!==null&&M<E.length;M++){L.index>M?($=L,L=null):$=L.sibling;var H=p(y,L,E[M],_);if(H===null){L===null&&(L=$);break}e&&L&&H.alternate===null&&t(y,L),g=a(H,g,M),N===null?I=H:N.sibling=H,N=H,L=$}if(M===E.length)return n(y,L),Ue&&Pi(y,M),I;if(L===null){for(;M<E.length;M++)L=h(y,E[M],_),L!==null&&(g=a(L,g,M),N===null?I=L:N.sibling=L,N=L);return Ue&&Pi(y,M),I}for(L=r(y,L);M<E.length;M++)$=m(L,y,M,E[M],_),$!==null&&(e&&$.alternate!==null&&L.delete($.key===null?M:$.key),g=a($,g,M),N===null?I=$:N.sibling=$,N=$);return e&&L.forEach(function(W){return t(y,W)}),Ue&&Pi(y,M),I}function b(y,g,E,_){var I=Es(E);if(typeof I!="function")throw Error(J(150));if(E=I.call(E),E==null)throw Error(J(151));for(var N=I=null,L=g,M=g=0,$=null,H=E.next();L!==null&&!H.done;M++,H=E.next()){L.index>M?($=L,L=null):$=L.sibling;var W=p(y,L,H.value,_);if(W===null){L===null&&(L=$);break}e&&L&&W.alternate===null&&t(y,L),g=a(W,g,M),N===null?I=W:N.sibling=W,N=W,L=$}if(H.done)return n(y,L),Ue&&Pi(y,M),I;if(L===null){for(;!H.done;M++,H=E.next())H=h(y,H.value,_),H!==null&&(g=a(H,g,M),N===null?I=H:N.sibling=H,N=H);return Ue&&Pi(y,M),I}for(L=r(y,L);!H.done;M++,H=E.next())H=m(L,y,M,H.value,_),H!==null&&(e&&H.alternate!==null&&L.delete(H.key===null?M:H.key),g=a(H,g,M),N===null?I=H:N.sibling=H,N=H);return e&&L.forEach(function(F){return t(y,F)}),Ue&&Pi(y,M),I}function v(y,g,E,_){if(typeof E=="object"&&E!==null&&E.type===ha&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case au:e:{for(var I=E.key,N=g;N!==null;){if(N.key===I){if(I=E.type,I===ha){if(N.tag===7){n(y,N.sibling),g=i(N,E.props.children),g.return=y,y=g;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Gr&&K0(I)===N.type){n(y,N.sibling),g=i(N,E.props),g.ref=As(y,N,E),g.return=y,y=g;break e}n(y,N);break}else t(y,N);N=N.sibling}E.type===ha?(g=qi(E.props.children,y.mode,_,E.key),g.return=y,y=g):(_=Vu(E.type,E.key,E.props,null,y.mode,_),_.ref=As(y,g,E),_.return=y,y=_)}return s(y);case fa:e:{for(N=E.key;g!==null;){if(g.key===N)if(g.tag===4&&g.stateNode.containerInfo===E.containerInfo&&g.stateNode.implementation===E.implementation){n(y,g.sibling),g=i(g,E.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=fd(E,y.mode,_),g.return=y,y=g}return s(y);case Gr:return N=E._init,v(y,g,N(E._payload),_)}if(Fs(E))return x(y,g,E,_);if(Es(E))return b(y,g,E,_);gu(y,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,E),g.return=y,y=g):(n(y,g),g=dd(E,y.mode,_),g.return=y,y=g),s(y)):n(y,g)}return v}var Qa=wx(!0),Cx=wx(!1),pl=Ni(null),ml=null,Ta=null,Yh=null;function $h(){Yh=Ta=ml=null}function Wh(e){var t=pl.current;Be(pl),e._currentValue=t}function yf(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 La(e,t){ml=e,Yh=Ta=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wt=!0),e.firstContext=null)}function Sn(e){var t=e._currentValue;if(Yh!==e)if(e={context:e,memoizedValue:t,next:null},Ta===null){if(ml===null)throw Error(J(308));Ta=e,ml.dependencies={lanes:0,firstContext:e}}else Ta=Ta.next=e;return t}var ji=null;function qh(e){ji===null?ji=[e]:ji.push(e)}function Ax(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Lr(e,r)}function Lr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qr=!1;function Gh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _x(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Lr(e,n)}return i=r.interleaved,i===null?(t.next=t,qh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Lr(e,n)}function Fu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rh(e,n)}}function X0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gl(e,t,n,r){var i=e.updateQueue;Qr=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,l=u.next;u.next=null,s===null?a=l:s.next=l,s=u;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=l:o.next=l,f.lastBaseUpdate=u))}if(a!==null){var h=i.baseState;s=0,f=l=u=null,o=a;do{var p=o.lane,m=o.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var x=e,b=o;switch(p=t,m=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){h=x.call(m,h,p);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,p=typeof x=="function"?x.call(m,h,p):x,p==null)break e;h=Ye({},h,p);break e;case 2:Qr=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else m={eventTime:m,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(l=f=m,u=h):f=f.next=m,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(u=h),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ea|=s,e.lanes=s,e.memoizedState=h}}function J0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(J(191,i));i.call(r)}}}var $o={},dr=Ni($o),bo=Ni($o),Eo=Ni($o);function Ui(e){if(e===$o)throw Error(J(174));return e}function Qh(e,t){switch(Le(Eo,t),Le(bo,e),Le(dr,$o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kd(t,e)}Be(dr),Le(dr,t)}function Ka(){Be(dr),Be(bo),Be(Eo)}function Nx(e){Ui(Eo.current);var t=Ui(dr.current),n=Kd(t,e.type);t!==n&&(Le(bo,e),Le(dr,n))}function Kh(e){bo.current===e&&(Be(dr),Be(bo))}var ze=Ni(0);function yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ad=[];function Xh(){for(var e=0;e<ad.length;e++)ad[e]._workInProgressVersionPrimary=null;ad.length=0}var Bu=Fr.ReactCurrentDispatcher,sd=Fr.ReactCurrentBatchConfig,Zi=0,Ve=null,st=null,dt=null,xl=!1,qs=!1,To=0,SC=0;function Tt(){throw Error(J(321))}function Jh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hn(e[n],t[n]))return!1;return!0}function Zh(e,t,n,r,i,a){if(Zi=a,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bu.current=e===null||e.memoizedState===null?RC:PC,e=n(r,i),qs){a=0;do{if(qs=!1,To=0,25<=a)throw Error(J(301));a+=1,dt=st=null,t.updateQueue=null,Bu.current=DC,e=n(r,i)}while(qs)}if(Bu.current=bl,t=st!==null&&st.next!==null,Zi=0,dt=st=Ve=null,xl=!1,t)throw Error(J(300));return e}function ep(){var e=To!==0;return To=0,e}function Kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Ve.memoizedState=dt=e:dt=dt.next=e,dt}function In(){if(st===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=st.next;var t=dt===null?Ve.memoizedState:dt.next;if(t!==null)dt=t,st=e;else{if(e===null)throw Error(J(310));st=e,e={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},dt===null?Ve.memoizedState=dt=e:dt=dt.next=e}return dt}function vo(e,t){return typeof t=="function"?t(e):t}function od(e){var t=In(),n=t.queue;if(n===null)throw Error(J(311));n.lastRenderedReducer=e;var r=st,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var o=s=null,u=null,l=a;do{var f=l.lane;if((Zi&f)===f)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var h={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(o=u=h,s=r):u=u.next=h,Ve.lanes|=f,ea|=f}l=l.next}while(l!==null&&l!==a);u===null?s=r:u.next=o,Hn(r,t.memoizedState)||(Wt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Ve.lanes|=a,ea|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ud(e){var t=In(),n=t.queue;if(n===null)throw Error(J(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Hn(a,t.memoizedState)||(Wt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function kx(){}function Sx(e,t){var n=Ve,r=In(),i=t(),a=!Hn(r.memoizedState,i);if(a&&(r.memoizedState=i,Wt=!0),r=r.queue,tp(Lx.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||dt!==null&&dt.memoizedState.tag&1){if(n.flags|=2048,wo(9,Ox.bind(null,n,r,i,t),void 0,null),ht===null)throw Error(J(349));Zi&30||Ix(n,t,i)}return i}function Ix(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ox(e,t,n,r){t.value=n,t.getSnapshot=r,Rx(t)&&Px(e)}function Lx(e,t,n){return n(function(){Rx(t)&&Px(e)})}function Rx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hn(e,n)}catch{return!0}}function Px(e){var t=Lr(e,1);t!==null&&Un(t,e,1,-1)}function Z0(e){var t=Kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=LC.bind(null,Ve,e),[t.memoizedState,e]}function wo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Dx(){return In().memoizedState}function ju(e,t,n,r){var i=Kn();Ve.flags|=e,i.memoizedState=wo(1|t,n,void 0,r===void 0?null:r)}function rc(e,t,n,r){var i=In();r=r===void 0?null:r;var a=void 0;if(st!==null){var s=st.memoizedState;if(a=s.destroy,r!==null&&Jh(r,s.deps)){i.memoizedState=wo(t,n,a,r);return}}Ve.flags|=e,i.memoizedState=wo(1|t,n,a,r)}function em(e,t){return ju(8390656,8,e,t)}function tp(e,t){return rc(2048,8,e,t)}function Mx(e,t){return rc(4,2,e,t)}function Fx(e,t){return rc(4,4,e,t)}function Bx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jx(e,t,n){return n=n!=null?n.concat([e]):null,rc(4,4,Bx.bind(null,t,e),n)}function np(){}function Ux(e,t){var n=In();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hx(e,t){var n=In();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zx(e,t,n){return Zi&21?(Hn(n,t)||(n=qy(),Ve.lanes|=n,ea|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wt=!0),e.memoizedState=n)}function IC(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=sd.transition;sd.transition={};try{e(!1),t()}finally{Se=n,sd.transition=r}}function Vx(){return In().memoizedState}function OC(e,t,n){var r=mi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yx(e))$x(t,n);else if(n=Ax(e,t,n,r),n!==null){var i=jt();Un(n,e,r,i),Wx(n,t,r)}}function LC(e,t,n){var r=mi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yx(e))$x(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Hn(o,s)){var u=t.interleaved;u===null?(i.next=i,qh(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Ax(e,t,i,r),n!==null&&(i=jt(),Un(n,e,r,i),Wx(n,t,r))}}function Yx(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function $x(e,t){qs=xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rh(e,n)}}var bl={readContext:Sn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},RC={readContext:Sn,useCallback:function(e,t){return Kn().memoizedState=[e,t===void 0?null:t],e},useContext:Sn,useEffect:em,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ju(4194308,4,Bx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){return ju(4,2,e,t)},useMemo:function(e,t){var n=Kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=OC.bind(null,Ve,e),[r.memoizedState,e]},useRef:function(e){var t=Kn();return e={current:e},t.memoizedState=e},useState:Z0,useDebugValue:np,useDeferredValue:function(e){return Kn().memoizedState=e},useTransition:function(){var e=Z0(!1),t=e[0];return e=IC.bind(null,e[1]),Kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ve,i=Kn();if(Ue){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),ht===null)throw Error(J(349));Zi&30||Ix(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,em(Lx.bind(null,r,a,e),[e]),r.flags|=2048,wo(9,Ox.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Kn(),t=ht.identifierPrefix;if(Ue){var n=Nr,r=_r;n=(r&~(1<<32-jn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=To++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=SC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},PC={readContext:Sn,useCallback:Ux,useContext:Sn,useEffect:tp,useImperativeHandle:jx,useInsertionEffect:Mx,useLayoutEffect:Fx,useMemo:Hx,useReducer:od,useRef:Dx,useState:function(){return od(vo)},useDebugValue:np,useDeferredValue:function(e){var t=In();return zx(t,st.memoizedState,e)},useTransition:function(){var e=od(vo)[0],t=In().memoizedState;return[e,t]},useMutableSource:kx,useSyncExternalStore:Sx,useId:Vx,unstable_isNewReconciler:!1},DC={readContext:Sn,useCallback:Ux,useContext:Sn,useEffect:tp,useImperativeHandle:jx,useInsertionEffect:Mx,useLayoutEffect:Fx,useMemo:Hx,useReducer:ud,useRef:Dx,useState:function(){return ud(vo)},useDebugValue:np,useDeferredValue:function(e){var t=In();return st===null?t.memoizedState=e:zx(t,st.memoizedState,e)},useTransition:function(){var e=ud(vo)[0],t=In().memoizedState;return[e,t]},useMutableSource:kx,useSyncExternalStore:Sx,useId:Vx,unstable_isNewReconciler:!1};function Rn(e,t){if(e&&e.defaultProps){t=Ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ic={isMounted:function(e){return(e=e._reactInternals)?ia(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jt(),i=mi(e),a=Sr(r,i);a.payload=t,n!=null&&(a.callback=n),t=hi(e,a,i),t!==null&&(Un(t,e,i,r),Fu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jt(),i=mi(e),a=Sr(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=hi(e,a,i),t!==null&&(Un(t,e,i,r),Fu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jt(),r=mi(e),i=Sr(n,r);i.tag=2,t!=null&&(i.callback=t),t=hi(e,i,r),t!==null&&(Un(t,e,r,n),Fu(t,e,r))}};function tm(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!mo(n,r)||!mo(i,a):!0}function qx(e,t,n){var r=!1,i=Ei,a=t.contextType;return typeof a=="object"&&a!==null?a=Sn(a):(i=Qt(t)?Xi:_t.current,r=t.contextTypes,a=(r=r!=null)?qa(e,i):Ei),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ic,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function nm(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&&ic.enqueueReplaceState(t,t.state,null)}function bf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Gh(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Sn(a):(a=Qt(t)?Xi:_t.current,i.context=qa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(xf(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ic.enqueueReplaceState(i,i.state,null),gl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Xa(e,t){try{var n="",r=t;do n+=lw(r),r=r.return;while(r);var i=n}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function ld(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ef(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MC=typeof WeakMap=="function"?WeakMap:Map;function Gx(e,t,n){n=Sr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,If=r),Ef(e,t)},n}function Qx(e,t,n){n=Sr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ef(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Ef(e,t),typeof r!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function rm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MC;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=KC.bind(null,e,t,n),t.then(e,e))}function im(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function am(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Sr(-1,1),t.tag=2,hi(n,t,1))),n.lanes|=1),e)}var FC=Fr.ReactCurrentOwner,Wt=!1;function Pt(e,t,n,r){t.child=e===null?Cx(t,null,n,r):Qa(t,e.child,n,r)}function sm(e,t,n,r,i){n=n.render;var a=t.ref;return La(t,i),r=Zh(e,t,n,r,a,i),n=ep(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rr(e,t,i)):(Ue&&n&&Hh(t),t.flags|=1,Pt(e,t,r,i),t.child)}function om(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!cp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Kx(e,t,a,r,i)):(e=Vu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:mo,n(s,r)&&e.ref===t.ref)return Rr(e,t,i)}return t.flags|=1,e=gi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Kx(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(mo(a,r)&&e.ref===t.ref)if(Wt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Wt=!0);else return t.lanes=e.lanes,Rr(e,t,i)}return Tf(e,t,n,r,i)}function Xx(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(wa,on),on|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(wa,on),on|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Le(wa,on),on|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Le(wa,on),on|=r;return Pt(e,t,i,n),t.child}function Jx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tf(e,t,n,r,i){var a=Qt(n)?Xi:_t.current;return a=qa(t,a),La(t,i),n=Zh(e,t,n,r,a,i),r=ep(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rr(e,t,i)):(Ue&&r&&Hh(t),t.flags|=1,Pt(e,t,n,i),t.child)}function um(e,t,n,r,i){if(Qt(n)){var a=!0;dl(t)}else a=!1;if(La(t,i),t.stateNode===null)Uu(e,t),qx(t,n,r),bf(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var u=s.context,l=n.contextType;typeof l=="object"&&l!==null?l=Sn(l):(l=Qt(n)?Xi:_t.current,l=qa(t,l));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||u!==l)&&nm(t,s,r,l),Qr=!1;var p=t.memoizedState;s.state=p,gl(t,r,s,i),u=t.memoizedState,o!==r||p!==u||Gt.current||Qr?(typeof f=="function"&&(xf(t,n,f,r),u=t.memoizedState),(o=Qr||tm(t,n,o,r,p,u,l))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=l,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,_x(e,t),o=t.memoizedProps,l=t.type===t.elementType?o:Rn(t.type,o),s.props=l,h=t.pendingProps,p=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Sn(u):(u=Qt(n)?Xi:_t.current,u=qa(t,u));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==h||p!==u)&&nm(t,s,r,u),Qr=!1,p=t.memoizedState,s.state=p,gl(t,r,s,i);var x=t.memoizedState;o!==h||p!==x||Gt.current||Qr?(typeof m=="function"&&(xf(t,n,m,r),x=t.memoizedState),(l=Qr||tm(t,n,l,r,p,x,u)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=l):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return vf(e,t,n,r,a,i)}function vf(e,t,n,r,i,a){Jx(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&q0(t,n,!1),Rr(e,t,a);r=t.stateNode,FC.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Qa(t,e.child,null,a),t.child=Qa(t,null,o,a)):Pt(e,t,o,a),t.memoizedState=r.state,i&&q0(t,n,!0),t.child}function Zx(e){var t=e.stateNode;t.pendingContext?W0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&W0(e,t.context,!1),Qh(e,t.containerInfo)}function lm(e,t,n,r,i){return Ga(),Vh(i),t.flags|=256,Pt(e,t,n,r),t.child}var wf={dehydrated:null,treeContext:null,retryLane:0};function Cf(e){return{baseLanes:e,cachePool:null,transitions:null}}function eb(e,t,n){var r=t.pendingProps,i=ze.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le(ze,i&1),e===null)return gf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=oc(s,r,0,null),e=qi(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Cf(n),t.memoizedState=wf,e):rp(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return BC(e,t,s,r,o,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,o=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=gi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=gi(o,a):(a=qi(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?Cf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=wf,r}return a=e.child,e=a.sibling,r=gi(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function rp(e,t){return t=oc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yu(e,t,n,r){return r!==null&&Vh(r),Qa(t,e.child,null,n),e=rp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BC(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=ld(Error(J(422))),yu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=oc({mode:"visible",children:r.children},i,0,null),a=qi(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Qa(t,e.child,null,s),t.child.memoizedState=Cf(s),t.memoizedState=wf,a);if(!(t.mode&1))return yu(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,a=Error(J(419)),r=ld(a,r,void 0),yu(e,t,s,r)}if(o=(s&e.childLanes)!==0,Wt||o){if(r=ht,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Lr(e,i),Un(r,e,i,-1))}return lp(),r=ld(Error(J(421))),yu(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=XC.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ln=fi(i.nextSibling),dn=t,Ue=!0,Fn=null,e!==null&&(wn[Cn++]=_r,wn[Cn++]=Nr,wn[Cn++]=Ji,_r=e.id,Nr=e.overflow,Ji=t),t=rp(t,r.children),t.flags|=4096,t)}function cm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yf(e.return,t,n)}function cd(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function tb(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Pt(e,t,r.children,n),r=ze.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cm(e,n,t);else if(e.tag===19)cm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Le(ze,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&yl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cd(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cd(t,!0,n,null,a);break;case"together":cd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Uu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,n=gi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jC(e,t,n){switch(t.tag){case 3:Zx(t),Ga();break;case 5:Nx(t);break;case 1:Qt(t.type)&&dl(t);break;case 4:Qh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Le(pl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Le(ze,ze.current&1),t.flags|=128,null):n&t.child.childLanes?eb(e,t,n):(Le(ze,ze.current&1),e=Rr(e,t,n),e!==null?e.sibling:null);Le(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,Xx(e,t,n)}return Rr(e,t,n)}var nb,Af,rb,ib;nb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Af=function(){};rb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ui(dr.current);var a=null;switch(n){case"input":i=Wd(e,i),r=Wd(e,r),a=[];break;case"select":i=Ye({},i,{value:void 0}),r=Ye({},r,{value:void 0}),a=[];break;case"textarea":i=Qd(e,i),r=Qd(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ll)}Xd(n,r);var s;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var o=i[l];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(oo.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in r){var u=r[l];if(o=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&u!==o&&(u!=null||o!=null))if(l==="style")if(o){for(s in o)!o.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&o[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(a||(a=[]),a.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(a=a||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(oo.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Me("scroll",e),a||o===u||(a=[])):(a=a||[]).push(l,u))}n&&(a=a||[]).push("style",n);var l=a;(t.updateQueue=l)&&(t.flags|=4)}};ib=function(e,t,n,r){n!==r&&(t.flags|=4)};function _s(e,t){if(!Ue)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 vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function UC(e,t,n){var r=t.pendingProps;switch(zh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return Qt(t.type)&&cl(),vt(t),null;case 3:return r=t.stateNode,Ka(),Be(Gt),Be(_t),Xh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fn!==null&&(Rf(Fn),Fn=null))),Af(e,t),vt(t),null;case 5:Kh(t);var i=Ui(Eo.current);if(n=t.type,e!==null&&t.stateNode!=null)rb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(J(166));return vt(t),null}if(e=Ui(dr.current),mu(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[or]=t,r[xo]=a,e=(t.mode&1)!==0,n){case"dialog":Me("cancel",r),Me("close",r);break;case"iframe":case"object":case"embed":Me("load",r);break;case"video":case"audio":for(i=0;i<js.length;i++)Me(js[i],r);break;case"source":Me("error",r);break;case"img":case"image":case"link":Me("error",r),Me("load",r);break;case"details":Me("toggle",r);break;case"input":b0(r,a),Me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Me("invalid",r);break;case"textarea":T0(r,a),Me("invalid",r)}Xd(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?r.textContent!==o&&(a.suppressHydrationWarning!==!0&&pu(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&pu(r.textContent,o,e),i=["children",""+o]):oo.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&Me("scroll",r)}switch(n){case"input":su(r),E0(r,a,!0);break;case"textarea":su(r),v0(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=ll)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ly(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[or]=t,e[xo]=r,nb(e,t,!1,!1),t.stateNode=e;e:{switch(s=Jd(n,r),n){case"dialog":Me("cancel",e),Me("close",e),i=r;break;case"iframe":case"object":case"embed":Me("load",e),i=r;break;case"video":case"audio":for(i=0;i<js.length;i++)Me(js[i],e);i=r;break;case"source":Me("error",e),i=r;break;case"img":case"image":case"link":Me("error",e),Me("load",e),i=r;break;case"details":Me("toggle",e),i=r;break;case"input":b0(e,r),i=Wd(e,r),Me("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ye({},r,{value:void 0}),Me("invalid",e);break;case"textarea":T0(e,r),i=Qd(e,r),Me("invalid",e);break;default:i=r}Xd(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var u=o[a];a==="style"?Dy(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ry(e,u)):a==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&uo(e,u):typeof u=="number"&&uo(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(oo.hasOwnProperty(a)?u!=null&&a==="onScroll"&&Me("scroll",e):u!=null&&Nh(e,a,u,s))}switch(n){case"input":su(e),E0(e,r,!1);break;case"textarea":su(e),v0(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bi(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ka(e,!!r.multiple,a,!1):r.defaultValue!=null&&ka(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ll)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return vt(t),null;case 6:if(e&&t.stateNode!=null)ib(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(J(166));if(n=Ui(Eo.current),Ui(dr.current),mu(t)){if(r=t.stateNode,n=t.memoizedProps,r[or]=t,(a=r.nodeValue!==n)&&(e=dn,e!==null))switch(e.tag){case 3:pu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pu(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[or]=t,t.stateNode=r}return vt(t),null;case 13:if(Be(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&ln!==null&&t.mode&1&&!(t.flags&128))vx(),Ga(),t.flags|=98560,a=!1;else if(a=mu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(J(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(J(317));a[or]=t}else Ga(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vt(t),a=!1}else Fn!==null&&(Rf(Fn),Fn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ze.current&1?ut===0&&(ut=3):lp())),t.updateQueue!==null&&(t.flags|=4),vt(t),null);case 4:return Ka(),Af(e,t),e===null&&go(t.stateNode.containerInfo),vt(t),null;case 10:return Wh(t.type._context),vt(t),null;case 17:return Qt(t.type)&&cl(),vt(t),null;case 19:if(Be(ze),a=t.memoizedState,a===null)return vt(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)_s(a,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=yl(e),s!==null){for(t.flags|=128,_s(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Le(ze,ze.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xe()>Ja&&(t.flags|=128,r=!0,_s(a,!1),t.lanes=4194304)}else{if(!r)if(e=yl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_s(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ue)return vt(t),null}else 2*Xe()-a.renderingStartTime>Ja&&n!==1073741824&&(t.flags|=128,r=!0,_s(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ze.current,Le(ze,r?n&1|2:n&1),t):(vt(t),null);case 22:case 23:return up(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?on&1073741824&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function HC(e,t){switch(zh(t),t.tag){case 1:return Qt(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),Be(Gt),Be(_t),Xh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kh(t),null;case 13:if(Be(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(ze),null;case 4:return Ka(),null;case 10:return Wh(t.type._context),null;case 22:case 23:return up(),null;case 24:return null;default:return null}}var xu=!1,At=!1,zC=typeof WeakSet=="function"?WeakSet:Set,oe=null;function va(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qe(e,t,r)}else n.current=null}function _f(e,t,n){try{n()}catch(r){qe(e,t,r)}}var dm=!1;function VC(e,t){if(lf=sl,e=lx(),Uh(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,u=-1,l=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(o=s+i),h!==a||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++l===i&&(o=s),p===a&&++f===r&&(u=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(cf={focusedElem:e,selectionRange:n},sl=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,v=x.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Rn(t.type,b),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(_){qe(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return x=dm,dm=!1,x}function Gs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&_f(t,n,a)}i=i.next}while(i!==r)}}function ac(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ab(e){var t=e.alternate;t!==null&&(e.alternate=null,ab(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[or],delete t[xo],delete t[hf],delete t[AC],delete t[_C])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sb(e){return e.tag===5||e.tag===3||e.tag===4}function fm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ll));else if(r!==4&&(e=e.child,e!==null))for(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}function Sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sf(e,t,n),e=e.sibling;e!==null;)Sf(e,t,n),e=e.sibling}var gt=null,Mn=!1;function Hr(e,t,n){for(n=n.child;n!==null;)ob(e,t,n),n=n.sibling}function ob(e,t,n){if(cr&&typeof cr.onCommitFiberUnmount=="function")try{cr.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:At||va(n,t);case 6:var r=gt,i=Mn;gt=null,Hr(e,t,n),gt=r,Mn=i,gt!==null&&(Mn?(e=gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):gt.removeChild(n.stateNode));break;case 18:gt!==null&&(Mn?(e=gt,n=n.stateNode,e.nodeType===8?rd(e.parentNode,n):e.nodeType===1&&rd(e,n),ho(e)):rd(gt,n.stateNode));break;case 4:r=gt,i=Mn,gt=n.stateNode.containerInfo,Mn=!0,Hr(e,t,n),gt=r,Mn=i;break;case 0:case 11:case 14:case 15:if(!At&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&_f(n,t,s),i=i.next}while(i!==r)}Hr(e,t,n);break;case 1:if(!At&&(va(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){qe(n,t,o)}Hr(e,t,n);break;case 21:Hr(e,t,n);break;case 22:n.mode&1?(At=(r=At)||n.memoizedState!==null,Hr(e,t,n),At=r):Hr(e,t,n);break;default:Hr(e,t,n)}}function hm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zC),t.forEach(function(r){var i=JC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ln(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:gt=o.stateNode,Mn=!1;break e;case 3:gt=o.stateNode.containerInfo,Mn=!0;break e;case 4:gt=o.stateNode.containerInfo,Mn=!0;break e}o=o.return}if(gt===null)throw Error(J(160));ob(a,s,i),gt=null,Mn=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){qe(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ub(t,e),t=t.sibling}function ub(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ln(t,e),Qn(e),r&4){try{Gs(3,e,e.return),ac(3,e)}catch(b){qe(e,e.return,b)}try{Gs(5,e,e.return)}catch(b){qe(e,e.return,b)}}break;case 1:Ln(t,e),Qn(e),r&512&&n!==null&&va(n,n.return);break;case 5:if(Ln(t,e),Qn(e),r&512&&n!==null&&va(n,n.return),e.flags&32){var i=e.stateNode;try{uo(i,"")}catch(b){qe(e,e.return,b)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,o=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&Iy(i,a),Jd(o,s);var l=Jd(o,a);for(s=0;s<u.length;s+=2){var f=u[s],h=u[s+1];f==="style"?Dy(i,h):f==="dangerouslySetInnerHTML"?Ry(i,h):f==="children"?uo(i,h):Nh(i,f,h,l)}switch(o){case"input":qd(i,a);break;case"textarea":Oy(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var m=a.value;m!=null?ka(i,!!a.multiple,m,!1):p!==!!a.multiple&&(a.defaultValue!=null?ka(i,!!a.multiple,a.defaultValue,!0):ka(i,!!a.multiple,a.multiple?[]:"",!1))}i[xo]=a}catch(b){qe(e,e.return,b)}}break;case 6:if(Ln(t,e),Qn(e),r&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(b){qe(e,e.return,b)}}break;case 3:if(Ln(t,e),Qn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ho(t.containerInfo)}catch(b){qe(e,e.return,b)}break;case 4:Ln(t,e),Qn(e);break;case 13:Ln(t,e),Qn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(sp=Xe())),r&4&&hm(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(At=(l=At)||f,Ln(t,e),At=l):Ln(t,e),Qn(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!f&&e.mode&1)for(oe=e,f=e.child;f!==null;){for(h=oe=f;oe!==null;){switch(p=oe,m=p.child,p.tag){case 0:case 11:case 14:case 15:Gs(4,p,p.return);break;case 1:va(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){qe(r,n,b)}}break;case 5:va(p,p.return);break;case 22:if(p.memoizedState!==null){mm(h);continue}}m!==null?(m.return=p,oe=m):mm(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,l?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=Py("display",s))}catch(b){qe(e,e.return,b)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(b){qe(e,e.return,b)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ln(t,e),Qn(e),r&4&&hm(e);break;case 21:break;default:Ln(t,e),Qn(e)}}function Qn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(sb(n)){var r=n;break e}n=n.return}throw Error(J(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(uo(i,""),r.flags&=-33);var a=fm(e);Sf(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=fm(e);kf(e,o,s);break;default:throw Error(J(161))}}catch(u){qe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function YC(e,t,n){oe=e,lb(e)}function lb(e,t,n){for(var r=(e.mode&1)!==0;oe!==null;){var i=oe,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||xu;if(!s){var o=i.alternate,u=o!==null&&o.memoizedState!==null||At;o=xu;var l=At;if(xu=s,(At=u)&&!l)for(oe=i;oe!==null;)s=oe,u=s.child,s.tag===22&&s.memoizedState!==null?gm(i):u!==null?(u.return=s,oe=u):gm(i);for(;a!==null;)oe=a,lb(a),a=a.sibling;oe=i,xu=o,At=l}pm(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,oe=a):pm(e)}}function pm(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:At||ac(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!At)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Rn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&J0(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}J0(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var f=l.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&ho(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}At||t.flags&512&&Nf(t)}catch(p){qe(t,t.return,p)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function mm(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function gm(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ac(4,t)}catch(u){qe(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){qe(t,i,u)}}var a=t.return;try{Nf(t)}catch(u){qe(t,a,u)}break;case 5:var s=t.return;try{Nf(t)}catch(u){qe(t,s,u)}}}catch(u){qe(t,t.return,u)}if(t===e){oe=null;break}var o=t.sibling;if(o!==null){o.return=t.return,oe=o;break}oe=t.return}}var $C=Math.ceil,El=Fr.ReactCurrentDispatcher,ip=Fr.ReactCurrentOwner,kn=Fr.ReactCurrentBatchConfig,_e=0,ht=null,tt=null,yt=0,on=0,wa=Ni(0),ut=0,Co=null,ea=0,sc=0,ap=0,Qs=null,$t=null,sp=0,Ja=1/0,wr=null,Tl=!1,If=null,pi=null,bu=!1,si=null,vl=0,Ks=0,Of=null,Hu=-1,zu=0;function jt(){return _e&6?Xe():Hu!==-1?Hu:Hu=Xe()}function mi(e){return e.mode&1?_e&2&&yt!==0?yt&-yt:kC.transition!==null?(zu===0&&(zu=qy()),zu):(e=Se,e!==0||(e=window.event,e=e===void 0?16:ex(e.type)),e):1}function Un(e,t,n,r){if(50<Ks)throw Ks=0,Of=null,Error(J(185));zo(e,n,r),(!(_e&2)||e!==ht)&&(e===ht&&(!(_e&2)&&(sc|=n),ut===4&&Jr(e,yt)),Kt(e,r),n===1&&_e===0&&!(t.mode&1)&&(Ja=Xe()+500,nc&&ki()))}function Kt(e,t){var n=e.callbackNode;kw(e,t);var r=al(e,e===ht?yt:0);if(r===0)n!==null&&A0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&A0(n),t===1)e.tag===0?NC(ym.bind(null,e)):bx(ym.bind(null,e)),wC(function(){!(_e&6)&&ki()}),n=null;else{switch(Gy(r)){case 1:n=Lh;break;case 4:n=$y;break;case 16:n=il;break;case 536870912:n=Wy;break;default:n=il}n=yb(n,cb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cb(e,t){if(Hu=-1,zu=0,_e&6)throw Error(J(327));var n=e.callbackNode;if(Ra()&&e.callbackNode!==n)return null;var r=al(e,e===ht?yt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=wl(e,r);else{t=r;var i=_e;_e|=2;var a=fb();(ht!==e||yt!==t)&&(wr=null,Ja=Xe()+500,Wi(e,t));do try{GC();break}catch(o){db(e,o)}while(!0);$h(),El.current=a,_e=i,tt!==null?t=0:(ht=null,yt=0,t=ut)}if(t!==0){if(t===2&&(i=rf(e),i!==0&&(r=i,t=Lf(e,i))),t===1)throw n=Co,Wi(e,0),Jr(e,r),Kt(e,Xe()),n;if(t===6)Jr(e,r);else{if(i=e.current.alternate,!(r&30)&&!WC(i)&&(t=wl(e,r),t===2&&(a=rf(e),a!==0&&(r=a,t=Lf(e,a))),t===1))throw n=Co,Wi(e,0),Jr(e,r),Kt(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(J(345));case 2:Di(e,$t,wr);break;case 3:if(Jr(e,r),(r&130023424)===r&&(t=sp+500-Xe(),10<t)){if(al(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){jt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ff(Di.bind(null,e,$t,wr),t);break}Di(e,$t,wr);break;case 4:if(Jr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-jn(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=Xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$C(r/1960))-r,10<r){e.timeoutHandle=ff(Di.bind(null,e,$t,wr),r);break}Di(e,$t,wr);break;case 5:Di(e,$t,wr);break;default:throw Error(J(329))}}}return Kt(e,Xe()),e.callbackNode===n?cb.bind(null,e):null}function Lf(e,t){var n=Qs;return e.current.memoizedState.isDehydrated&&(Wi(e,t).flags|=256),e=wl(e,t),e!==2&&(t=$t,$t=n,t!==null&&Rf(t)),e}function Rf(e){$t===null?$t=e:$t.push.apply($t,e)}function WC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Hn(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jr(e,t){for(t&=~ap,t&=~sc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jn(t),r=1<<n;e[n]=-1,t&=~r}}function ym(e){if(_e&6)throw Error(J(327));Ra();var t=al(e,0);if(!(t&1))return Kt(e,Xe()),null;var n=wl(e,t);if(e.tag!==0&&n===2){var r=rf(e);r!==0&&(t=r,n=Lf(e,r))}if(n===1)throw n=Co,Wi(e,0),Jr(e,t),Kt(e,Xe()),n;if(n===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Di(e,$t,wr),Kt(e,Xe()),null}function op(e,t){var n=_e;_e|=1;try{return e(t)}finally{_e=n,_e===0&&(Ja=Xe()+500,nc&&ki())}}function ta(e){si!==null&&si.tag===0&&!(_e&6)&&Ra();var t=_e;_e|=1;var n=kn.transition,r=Se;try{if(kn.transition=null,Se=1,e)return e()}finally{Se=r,kn.transition=n,_e=t,!(_e&6)&&ki()}}function up(){on=wa.current,Be(wa)}function Wi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vC(n)),tt!==null)for(n=tt.return;n!==null;){var r=n;switch(zh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cl();break;case 3:Ka(),Be(Gt),Be(_t),Xh();break;case 5:Kh(r);break;case 4:Ka();break;case 13:Be(ze);break;case 19:Be(ze);break;case 10:Wh(r.type._context);break;case 22:case 23:up()}n=n.return}if(ht=e,tt=e=gi(e.current,null),yt=on=t,ut=0,Co=null,ap=sc=ea=0,$t=Qs=null,ji!==null){for(t=0;t<ji.length;t++)if(n=ji[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}ji=null}return e}function db(e,t){do{var n=tt;try{if($h(),Bu.current=bl,xl){for(var r=Ve.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}xl=!1}if(Zi=0,dt=st=Ve=null,qs=!1,To=0,ip.current=null,n===null||n.return===null){ut=1,Co=t,tt=null;break}e:{var a=e,s=n.return,o=n,u=t;if(t=yt,o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,f=o,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=im(s);if(m!==null){m.flags&=-257,am(m,s,o,a,t),m.mode&1&&rm(a,l,t),t=m,u=l;var x=t.updateQueue;if(x===null){var b=new Set;b.add(u),t.updateQueue=b}else x.add(u);break e}else{if(!(t&1)){rm(a,l,t),lp();break e}u=Error(J(426))}}else if(Ue&&o.mode&1){var v=im(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),am(v,s,o,a,t),Vh(Xa(u,o));break e}}a=u=Xa(u,o),ut!==4&&(ut=2),Qs===null?Qs=[a]:Qs.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=Gx(a,u,t);X0(a,y);break e;case 1:o=u;var g=a.type,E=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(pi===null||!pi.has(E)))){a.flags|=65536,t&=-t,a.lanes|=t;var _=Qx(a,o,t);X0(a,_);break e}}a=a.return}while(a!==null)}pb(n)}catch(I){t=I,tt===n&&n!==null&&(tt=n=n.return);continue}break}while(!0)}function fb(){var e=El.current;return El.current=bl,e===null?bl:e}function lp(){(ut===0||ut===3||ut===2)&&(ut=4),ht===null||!(ea&268435455)&&!(sc&268435455)||Jr(ht,yt)}function wl(e,t){var n=_e;_e|=2;var r=fb();(ht!==e||yt!==t)&&(wr=null,Wi(e,t));do try{qC();break}catch(i){db(e,i)}while(!0);if($h(),_e=n,El.current=r,tt!==null)throw Error(J(261));return ht=null,yt=0,ut}function qC(){for(;tt!==null;)hb(tt)}function GC(){for(;tt!==null&&!bw();)hb(tt)}function hb(e){var t=gb(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?pb(e):tt=t,ip.current=null}function pb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=HC(n,t),n!==null){n.flags&=32767,tt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,tt=null;return}}else if(n=UC(n,t,on),n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);ut===0&&(ut=5)}function Di(e,t,n){var r=Se,i=kn.transition;try{kn.transition=null,Se=1,QC(e,t,n,r)}finally{kn.transition=i,Se=r}return null}function QC(e,t,n,r){do Ra();while(si!==null);if(_e&6)throw Error(J(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Sw(e,a),e===ht&&(tt=ht=null,yt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bu||(bu=!0,yb(il,function(){return Ra(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=kn.transition,kn.transition=null;var s=Se;Se=1;var o=_e;_e|=4,ip.current=null,VC(e,n),ub(n,e),mC(cf),sl=!!lf,cf=lf=null,e.current=n,YC(n),Ew(),_e=o,Se=s,kn.transition=a}else e.current=n;if(bu&&(bu=!1,si=e,vl=i),a=e.pendingLanes,a===0&&(pi=null),ww(n.stateNode),Kt(e,Xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Tl)throw Tl=!1,e=If,If=null,e;return vl&1&&e.tag!==0&&Ra(),a=e.pendingLanes,a&1?e===Of?Ks++:(Ks=0,Of=e):Ks=0,ki(),null}function Ra(){if(si!==null){var e=Gy(vl),t=kn.transition,n=Se;try{if(kn.transition=null,Se=16>e?16:e,si===null)var r=!1;else{if(e=si,si=null,vl=0,_e&6)throw Error(J(331));var i=_e;for(_e|=4,oe=e.current;oe!==null;){var a=oe,s=a.child;if(oe.flags&16){var o=a.deletions;if(o!==null){for(var u=0;u<o.length;u++){var l=o[u];for(oe=l;oe!==null;){var f=oe;switch(f.tag){case 0:case 11:case 15:Gs(8,f,a)}var h=f.child;if(h!==null)h.return=f,oe=h;else for(;oe!==null;){f=oe;var p=f.sibling,m=f.return;if(ab(f),f===l){oe=null;break}if(p!==null){p.return=m,oe=p;break}oe=m}}}var x=a.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var v=b.sibling;b.sibling=null,b=v}while(b!==null)}}oe=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,oe=s;else e:for(;oe!==null;){if(a=oe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Gs(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,oe=y;break e}oe=a.return}}var g=e.current;for(oe=g;oe!==null;){s=oe;var E=s.child;if(s.subtreeFlags&2064&&E!==null)E.return=s,oe=E;else e:for(s=g;oe!==null;){if(o=oe,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:ac(9,o)}}catch(I){qe(o,o.return,I)}if(o===s){oe=null;break e}var _=o.sibling;if(_!==null){_.return=o.return,oe=_;break e}oe=o.return}}if(_e=i,ki(),cr&&typeof cr.onPostCommitFiberRoot=="function")try{cr.onPostCommitFiberRoot(Xl,e)}catch{}r=!0}return r}finally{Se=n,kn.transition=t}}return!1}function xm(e,t,n){t=Xa(n,t),t=Gx(e,t,1),e=hi(e,t,1),t=jt(),e!==null&&(zo(e,1,t),Kt(e,t))}function qe(e,t,n){if(e.tag===3)xm(e,e,n);else for(;t!==null;){if(t.tag===3){xm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pi===null||!pi.has(r))){e=Xa(n,e),e=Qx(t,e,1),t=hi(t,e,1),e=jt(),t!==null&&(zo(t,1,e),Kt(t,e));break}}t=t.return}}function KC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=jt(),e.pingedLanes|=e.suspendedLanes&n,ht===e&&(yt&n)===n&&(ut===4||ut===3&&(yt&130023424)===yt&&500>Xe()-sp?Wi(e,0):ap|=n),Kt(e,t)}function mb(e,t){t===0&&(e.mode&1?(t=lu,lu<<=1,!(lu&130023424)&&(lu=4194304)):t=1);var n=jt();e=Lr(e,t),e!==null&&(zo(e,t,n),Kt(e,n))}function XC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mb(e,n)}function JC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(t),mb(e,n)}var gb;gb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wt=!1,jC(e,t,n);Wt=!!(e.flags&131072)}else Wt=!1,Ue&&t.flags&1048576&&Ex(t,hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Uu(e,t),e=t.pendingProps;var i=qa(t,_t.current);La(t,n),i=Zh(null,t,r,e,i,n);var a=ep();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qt(r)?(a=!0,dl(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Gh(t),i.updater=ic,t.stateNode=i,i._reactInternals=t,bf(t,r,e,n),t=vf(null,t,r,!0,a,n)):(t.tag=0,Ue&&a&&Hh(t),Pt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Uu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=eA(r),e=Rn(r,e),i){case 0:t=Tf(null,t,r,e,n);break e;case 1:t=um(null,t,r,e,n);break e;case 11:t=sm(null,t,r,e,n);break e;case 14:t=om(null,t,r,Rn(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),Tf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),um(e,t,r,i,n);case 3:e:{if(Zx(t),e===null)throw Error(J(387));r=t.pendingProps,a=t.memoizedState,i=a.element,_x(e,t),gl(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Xa(Error(J(423)),t),t=lm(e,t,r,n,i);break e}else if(r!==i){i=Xa(Error(J(424)),t),t=lm(e,t,r,n,i);break e}else for(ln=fi(t.stateNode.containerInfo.firstChild),dn=t,Ue=!0,Fn=null,n=Cx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ga(),r===i){t=Rr(e,t,n);break e}Pt(e,t,r,n)}t=t.child}return t;case 5:return Nx(t),e===null&&gf(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,df(r,i)?s=null:a!==null&&df(r,a)&&(t.flags|=32),Jx(e,t),Pt(e,t,s,n),t.child;case 6:return e===null&&gf(t),null;case 13:return eb(e,t,n);case 4:return Qh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qa(t,null,r,n):Pt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),sm(e,t,r,i,n);case 7:return Pt(e,t,t.pendingProps,n),t.child;case 8:return Pt(e,t,t.pendingProps.children,n),t.child;case 12:return Pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Le(pl,r._currentValue),r._currentValue=s,a!==null)if(Hn(a.value,s)){if(a.children===i.children&&!Gt.current){t=Rr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Sr(-1,n&-n),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),yf(a.return,n,t),o.lanes|=n;break}u=u.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(J(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),yf(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Pt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,La(t,n),i=Sn(i),r=r(i),t.flags|=1,Pt(e,t,r,n),t.child;case 14:return r=t.type,i=Rn(r,t.pendingProps),i=Rn(r.type,i),om(e,t,r,i,n);case 15:return Kx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Rn(r,i),Uu(e,t),t.tag=1,Qt(r)?(e=!0,dl(t)):e=!1,La(t,n),qx(t,r,i),bf(t,r,i,n),vf(null,t,r,!0,e,n);case 19:return tb(e,t,n);case 22:return Xx(e,t,n)}throw Error(J(156,t.tag))};function yb(e,t){return Yy(e,t)}function ZC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(e,t,n,r){return new ZC(e,t,n,r)}function cp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eA(e){if(typeof e=="function")return cp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sh)return 11;if(e===Ih)return 14}return 2}function gi(e,t){var n=e.alternate;return n===null?(n=Nn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vu(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")cp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ha:return qi(n.children,i,a,t);case kh:s=8,i|=8;break;case zd:return e=Nn(12,n,t,i|2),e.elementType=zd,e.lanes=a,e;case Vd:return e=Nn(13,n,t,i),e.elementType=Vd,e.lanes=a,e;case Yd:return e=Nn(19,n,t,i),e.elementType=Yd,e.lanes=a,e;case Ny:return oc(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ay:s=10;break e;case _y:s=9;break e;case Sh:s=11;break e;case Ih:s=14;break e;case Gr:s=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=Nn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function qi(e,t,n,r){return e=Nn(7,e,r,t),e.lanes=n,e}function oc(e,t,n,r){return e=Nn(22,e,r,t),e.elementType=Ny,e.lanes=n,e.stateNode={isHidden:!1},e}function dd(e,t,n){return e=Nn(6,e,null,t),e.lanes=n,e}function fd(e,t,n){return t=Nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tA(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wc(0),this.expirationTimes=Wc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dp(e,t,n,r,i,a,s,o,u){return e=new tA(e,t,n,o,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Nn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gh(a),e}function nA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function xb(e){if(!e)return Ei;e=e._reactInternals;e:{if(ia(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var n=e.type;if(Qt(n))return xx(e,n,t)}return t}function bb(e,t,n,r,i,a,s,o,u){return e=dp(n,r,!0,e,i,a,s,o,u),e.context=xb(null),n=e.current,r=jt(),i=mi(n),a=Sr(r,i),a.callback=t??null,hi(n,a,i),e.current.lanes=i,zo(e,i,r),Kt(e,r),e}function uc(e,t,n,r){var i=t.current,a=jt(),s=mi(i);return n=xb(n),t.context===null?t.context=n:t.pendingContext=n,t=Sr(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hi(i,t,s),e!==null&&(Un(e,i,s,a),Fu(e,i,s)),s}function Cl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fp(e,t){bm(e,t),(e=e.alternate)&&bm(e,t)}function rA(){return null}var Eb=typeof reportError=="function"?reportError:function(e){console.error(e)};function hp(e){this._internalRoot=e}lc.prototype.render=hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));uc(e,t,null,null)};lc.prototype.unmount=hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ta(function(){uc(null,e,null,null)}),t[Or]=null}};function lc(e){this._internalRoot=e}lc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xr.length&&t!==0&&t<Xr[n].priority;n++);Xr.splice(n,0,e),n===0&&Zy(e)}};function pp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Em(){}function iA(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var l=Cl(s);a.call(l)}}var s=bb(t,r,e,0,null,!1,!1,"",Em);return e._reactRootContainer=s,e[Or]=s.current,go(e.nodeType===8?e.parentNode:e),ta(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var l=Cl(u);o.call(l)}}var u=dp(e,0,!1,null,null,!1,!1,"",Em);return e._reactRootContainer=u,e[Or]=u.current,go(e.nodeType===8?e.parentNode:e),ta(function(){uc(t,u,n,r)}),u}function dc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var u=Cl(s);o.call(u)}}uc(t,s,e,i)}else s=iA(n,t,e,i,r);return Cl(s)}Qy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bs(t.pendingLanes);n!==0&&(Rh(t,n|1),Kt(t,Xe()),!(_e&6)&&(Ja=Xe()+500,ki()))}break;case 13:ta(function(){var r=Lr(e,1);if(r!==null){var i=jt();Un(r,e,1,i)}}),fp(e,1)}};Ph=function(e){if(e.tag===13){var t=Lr(e,134217728);if(t!==null){var n=jt();Un(t,e,134217728,n)}fp(e,134217728)}};Ky=function(e){if(e.tag===13){var t=mi(e),n=Lr(e,t);if(n!==null){var r=jt();Un(n,e,t,r)}fp(e,t)}};Xy=function(){return Se};Jy=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}};ef=function(e,t,n){switch(t){case"input":if(qd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=tc(r);if(!i)throw Error(J(90));Sy(r),qd(r,i)}}}break;case"textarea":Oy(e,n);break;case"select":t=n.value,t!=null&&ka(e,!!n.multiple,t,!1)}};By=op;jy=ta;var aA={usingClientEntryPoint:!1,Events:[Yo,ya,tc,My,Fy,op]},Ns={findFiberByHostInstance:Bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sA={bundleType:Ns.bundleType,version:Ns.version,rendererPackageName:Ns.rendererPackageName,rendererConfig:Ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zy(e),e===null?null:e.stateNode},findFiberByHostInstance:Ns.findFiberByHostInstance||rA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{Xl=Eu.inject(sA),cr=Eu}catch{}}pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aA;pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pp(t))throw Error(J(200));return nA(e,t,null,n)};pn.createRoot=function(e,t){if(!pp(e))throw Error(J(299));var n=!1,r="",i=Eb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dp(e,1,!1,null,null,n,!1,r,i),e[Or]=t.current,go(e.nodeType===8?e.parentNode:e),new hp(t)};pn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=zy(t),e=e===null?null:e.stateNode,e};pn.flushSync=function(e){return ta(e)};pn.hydrate=function(e,t,n){if(!cc(t))throw Error(J(200));return dc(null,e,t,!0,n)};pn.hydrateRoot=function(e,t,n){if(!pp(e))throw Error(J(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=Eb;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=bb(t,null,e,1,n??null,i,!1,a,s),e[Or]=t.current,go(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lc(t)};pn.render=function(e,t,n){if(!cc(t))throw Error(J(200));return dc(null,e,t,!1,n)};pn.unmountComponentAtNode=function(e){if(!cc(e))throw Error(J(40));return e._reactRootContainer?(ta(function(){dc(null,null,e,!1,function(){e._reactRootContainer=null,e[Or]=null})}),!0):!1};pn.unstable_batchedUpdates=op;pn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cc(n))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return dc(e,t,n,!1,r)};pn.version="18.3.1-next-f1338f8080-20240426";function Tb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tb)}catch(e){console.error(e)}}Tb(),Ty.exports=pn;var cs=Ty.exports;const vb=Ql(cs);var wb,Tm=cs;wb=Tm.createRoot,Tm.hydrateRoot;const oA=1,uA=1e6;let hd=0;function lA(){return hd=(hd+1)%Number.MAX_SAFE_INTEGER,hd.toString()}const pd=new Map,vm=e=>{if(pd.has(e))return;const t=setTimeout(()=>{pd.delete(e),Xs({type:"REMOVE_TOAST",toastId:e})},uA);pd.set(e,t)},cA=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,oA)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?vm(n):e.toasts.forEach(r=>{vm(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Yu=[];let $u={toasts:[]};function Xs(e){$u=cA($u,e),Yu.forEach(t=>{t($u)})}function dA({...e}){const t=lA(),n=i=>Xs({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Xs({type:"DISMISS_TOAST",toastId:t});return Xs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function fA(){const[e,t]=T.useState($u);return T.useEffect(()=>(Yu.push(t),()=>{const n=Yu.indexOf(t);n>-1&&Yu.splice(n,1)}),[e]),{...e,toast:dA,dismiss:n=>Xs({type:"DISMISS_TOAST",toastId:n})}}function Ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function hA(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Cb(...e){return t=>e.forEach(n=>hA(n,t))}function Zt(...e){return T.useCallback(Cb(...e),e)}function mp(e,t=[]){let n=[];function r(a,s){const o=T.createContext(s),u=n.length;n=[...n,s];function l(h){const{scope:p,children:m,...x}=h,b=(p==null?void 0:p[e][u])||o,v=T.useMemo(()=>x,Object.values(x));return c.jsx(b.Provider,{value:v,children:m})}function f(h,p){const m=(p==null?void 0:p[e][u])||o,x=T.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return l.displayName=a+"Provider",[l,f]}const i=()=>{const a=n.map(s=>T.createContext(s));return function(o){const u=(o==null?void 0:o[e])||a;return T.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[r,pA(i,...t)]}function pA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...o,...h}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ao=T.forwardRef((e,t)=>{const{children:n,...r}=e,i=T.Children.toArray(n),a=i.find(mA);if(a){const s=a.props.children,o=i.map(u=>u===a?T.Children.count(s)>1?T.Children.only(null):T.isValidElement(s)?s.props.children:null:u);return c.jsx(Pf,{...r,ref:t,children:T.isValidElement(s)?T.cloneElement(s,void 0,o):null})}return c.jsx(Pf,{...r,ref:t,children:n})});Ao.displayName="Slot";var Pf=T.forwardRef((e,t)=>{const{children:n,...r}=e;if(T.isValidElement(n)){const i=yA(n);return T.cloneElement(n,{...gA(r,n.props),ref:t?Cb(t,i):i})}return T.Children.count(n)>1?T.Children.only(null):null});Pf.displayName="SlotClone";var Ab=({children:e})=>c.jsx(c.Fragment,{children:e});function mA(e){return T.isValidElement(e)&&e.type===Ab}function gA(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{a(...o),i(...o)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function yA(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function xA(e){const t=e+"CollectionProvider",[n,r]=mp(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:b}=m,v=X.useRef(null),y=X.useRef(new Map).current;return c.jsx(i,{scope:x,itemMap:y,collectionRef:v,children:b})};s.displayName=t;const o=e+"CollectionSlot",u=X.forwardRef((m,x)=>{const{scope:b,children:v}=m,y=a(o,b),g=Zt(x,y.collectionRef);return c.jsx(Ao,{ref:g,children:v})});u.displayName=o;const l=e+"CollectionItemSlot",f="data-radix-collection-item",h=X.forwardRef((m,x)=>{const{scope:b,children:v,...y}=m,g=X.useRef(null),E=Zt(x,g),_=a(l,b);return X.useEffect(()=>(_.itemMap.set(g,{ref:g,...y}),()=>void _.itemMap.delete(g))),c.jsx(Ao,{[f]:"",ref:E,children:v})});h.displayName=l;function p(m){const x=a(e+"CollectionConsumer",m);return X.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((_,I)=>y.indexOf(_.ref.current)-y.indexOf(I.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},p,r]}var bA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Nt=bA.reduce((e,t)=>{const n=T.forwardRef((r,i)=>{const{asChild:a,...s}=r,o=a?Ao:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(o,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gp(e,t){e&&cs.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _b(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var EA="DismissableLayer",Df="dismissableLayer.update",TA="dismissableLayer.pointerDownOutside",vA="dismissableLayer.focusOutside",wm,Nb=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kb=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...u}=e,l=T.useContext(Nb),[f,h]=T.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=T.useState({}),x=Zt(t,L=>h(L)),b=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(v),g=f?b.indexOf(f):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,I=CA(L=>{const M=L.target,$=[...l.branches].some(H=>H.contains(M));!_||$||(i==null||i(L),s==null||s(L),L.defaultPrevented||o==null||o())},p),N=AA(L=>{const M=L.target;[...l.branches].some(H=>H.contains(M))||(a==null||a(L),s==null||s(L),L.defaultPrevented||o==null||o())},p);return _b(L=>{g===l.layers.size-1&&(r==null||r(L),!L.defaultPrevented&&o&&(L.preventDefault(),o()))},p),T.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(wm=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Cm(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=wm)}},[f,p,n,l]),T.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Cm())},[f,l]),T.useEffect(()=>{const L=()=>m({});return document.addEventListener(Df,L),()=>document.removeEventListener(Df,L)},[]),c.jsx(Nt.div,{...u,ref:x,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:Ge(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ge(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ge(e.onPointerDownCapture,I.onPointerDownCapture)})});kb.displayName=EA;var wA="DismissableLayerBranch",Sb=T.forwardRef((e,t)=>{const n=T.useContext(Nb),r=T.useRef(null),i=Zt(t,r);return T.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(Nt.div,{...e,ref:i})});Sb.displayName=wA;function CA(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let u=function(){Ib(TA,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function AA(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=T.useRef(!1);return T.useEffect(()=>{const i=a=>{a.target&&!r.current&&Ib(vA,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Cm(){const e=new CustomEvent(Df);document.dispatchEvent(e)}function Ib(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?gp(i,a):i.dispatchEvent(a)}var _A=kb,NA=Sb,hr=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},kA="Portal",Ob=T.forwardRef((e,t)=>{var o;const{container:n,...r}=e,[i,a]=T.useState(!1);hr(()=>a(!0),[]);const s=n||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return s?vb.createPortal(c.jsx(Nt.div,{...r,ref:t}),s):null});Ob.displayName=kA;function SA(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var Lb=e=>{const{present:t,children:n}=e,r=IA(t),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),a=Zt(r.ref,OA(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:a}):null};Lb.displayName="Presence";function IA(e){const[t,n]=T.useState(),r=T.useRef({}),i=T.useRef(e),a=T.useRef("none"),s=e?"mounted":"unmounted",[o,u]=SA(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const l=Tu(r.current);a.current=o==="mounted"?l:"none"},[o]),hr(()=>{const l=r.current,f=i.current;if(f!==e){const p=a.current,m=Tu(l);e?u("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),hr(()=>{if(t){const l=h=>{const m=Tu(r.current).includes(h.animationName);h.target===t&&m&&cs.flushSync(()=>u("ANIMATION_END"))},f=h=>{h.target===t&&(a.current=Tu(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:T.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Tu(e){return(e==null?void 0:e.animationName)||"none"}function OA(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rb({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=LA({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,o=On(n),u=T.useCallback(l=>{if(a){const h=typeof l=="function"?l(e):l;h!==e&&o(h)}else i(l)},[a,e,i,o]);return[s,u]}function LA({defaultProp:e,onChange:t}){const n=T.useState(e),[r]=n,i=T.useRef(r),a=On(t);return T.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var RA="VisuallyHidden",fc=T.forwardRef((e,t)=>c.jsx(Nt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));fc.displayName=RA;var PA=fc,yp="ToastProvider",[xp,DA,MA]=xA("Toast"),[Pb,cF]=mp("Toast",[MA]),[FA,hc]=Pb(yp),Db=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:s}=e,[o,u]=T.useState(null),[l,f]=T.useState(0),h=T.useRef(!1),p=T.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yp}\`. Expected non-empty \`string\`.`),c.jsx(xp.Provider,{scope:t,children:c.jsx(FA,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:o,onViewportChange:u,onToastAdd:T.useCallback(()=>f(m=>m+1),[]),onToastRemove:T.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:s})})};Db.displayName=yp;var Mb="ToastViewport",BA=["F8"],Mf="toast.viewportPause",Ff="toast.viewportResume",Fb=T.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=BA,label:i="Notifications ({hotkey})",...a}=e,s=hc(Mb,n),o=DA(n),u=T.useRef(null),l=T.useRef(null),f=T.useRef(null),h=T.useRef(null),p=Zt(t,h,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;T.useEffect(()=>{const v=y=>{var E;r.every(_=>y[_]||y.code===_)&&((E=h.current)==null||E.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),T.useEffect(()=>{const v=u.current,y=h.current;if(x&&v&&y){const g=()=>{if(!s.isClosePausedRef.current){const N=new CustomEvent(Mf);y.dispatchEvent(N),s.isClosePausedRef.current=!0}},E=()=>{if(s.isClosePausedRef.current){const N=new CustomEvent(Ff);y.dispatchEvent(N),s.isClosePausedRef.current=!1}},_=N=>{!v.contains(N.relatedTarget)&&E()},I=()=>{v.contains(document.activeElement)||E()};return v.addEventListener("focusin",g),v.addEventListener("focusout",_),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",I),window.addEventListener("blur",g),window.addEventListener("focus",E),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",_),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",I),window.removeEventListener("blur",g),window.removeEventListener("focus",E)}}},[x,s.isClosePausedRef]);const b=T.useCallback(({tabbingDirection:v})=>{const g=o().map(E=>{const _=E.ref.current,I=[_,...XA(_)];return v==="forwards"?I:I.reverse()});return(v==="forwards"?g.reverse():g).flat()},[o]);return T.useEffect(()=>{const v=h.current;if(v){const y=g=>{var I,N,L;const E=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!E){const M=document.activeElement,$=g.shiftKey;if(g.target===v&&$){(I=l.current)==null||I.focus();return}const F=b({tabbingDirection:$?"backwards":"forwards"}),K=F.findIndex(z=>z===M);md(F.slice(K+1))?g.preventDefault():$?(N=l.current)==null||N.focus():(L=f.current)==null||L.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[o,b]),c.jsxs(NA,{ref:u,role:"region","aria-label":i.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&c.jsx(Bf,{ref:l,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"forwards"});md(v)}}),c.jsx(xp.Slot,{scope:n,children:c.jsx(Nt.ol,{tabIndex:-1,...a,ref:p})}),x&&c.jsx(Bf,{ref:f,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"backwards"});md(v)}})]})});Fb.displayName=Mb;var Bb="ToastFocusProxy",Bf=T.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=hc(Bb,n);return c.jsx(fc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var l;const o=s.relatedTarget;!((l=a.viewport)!=null&&l.contains(o))&&r()}})});Bf.displayName=Bb;var pc="Toast",jA="toast.swipeStart",UA="toast.swipeMove",HA="toast.swipeCancel",zA="toast.swipeEnd",jb=T.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...s}=e,[o=!0,u]=Rb({prop:r,defaultProp:i,onChange:a});return c.jsx(Lb,{present:n||o,children:c.jsx($A,{open:o,...s,ref:t,onClose:()=>u(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:Ge(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ge(e.onSwipeMove,l=>{const{x:f,y:h}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Ge(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ge(e.onSwipeEnd,l=>{const{x:f,y:h}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),u(!1)})})})});jb.displayName=pc;var[VA,YA]=Pb(pc,{onClose(){}}),$A=T.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:a,onClose:s,onEscapeKeyDown:o,onPause:u,onResume:l,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:m,...x}=e,b=hc(pc,n),[v,y]=T.useState(null),g=Zt(t,z=>y(z)),E=T.useRef(null),_=T.useRef(null),I=i||b.duration,N=T.useRef(0),L=T.useRef(I),M=T.useRef(0),{onToastAdd:$,onToastRemove:H}=b,W=On(()=>{var te;(v==null?void 0:v.contains(document.activeElement))&&((te=b.viewport)==null||te.focus()),s()}),F=T.useCallback(z=>{!z||z===1/0||(window.clearTimeout(M.current),N.current=new Date().getTime(),M.current=window.setTimeout(W,z))},[W]);T.useEffect(()=>{const z=b.viewport;if(z){const te=()=>{F(L.current),l==null||l()},ie=()=>{const se=new Date().getTime()-N.current;L.current=L.current-se,window.clearTimeout(M.current),u==null||u()};return z.addEventListener(Mf,ie),z.addEventListener(Ff,te),()=>{z.removeEventListener(Mf,ie),z.removeEventListener(Ff,te)}}},[b.viewport,I,u,l,F]),T.useEffect(()=>{a&&!b.isClosePausedRef.current&&F(I)},[a,I,b.isClosePausedRef,F]),T.useEffect(()=>($(),()=>H()),[$,H]);const K=T.useMemo(()=>v?Wb(v):null,[v]);return b.viewport?c.jsxs(c.Fragment,{children:[K&&c.jsx(WA,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),c.jsx(VA,{scope:n,onClose:W,children:cs.createPortal(c.jsx(xp.ItemSlot,{scope:n,children:c.jsx(_A,{asChild:!0,onEscapeKeyDown:Ge(o,()=>{b.isFocusedToastEscapeKeyDownRef.current||W(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Nt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":b.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ge(e.onKeyDown,z=>{z.key==="Escape"&&(o==null||o(z.nativeEvent),z.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:Ge(e.onPointerDown,z=>{z.button===0&&(E.current={x:z.clientX,y:z.clientY})}),onPointerMove:Ge(e.onPointerMove,z=>{if(!E.current)return;const te=z.clientX-E.current.x,ie=z.clientY-E.current.y,se=!!_.current,D=["left","right"].includes(b.swipeDirection),G=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,C=D?G(0,te):0,re=D?0:G(0,ie),le=z.pointerType==="touch"?10:2,k={x:C,y:re},Ee={originalEvent:z,delta:k};se?(_.current=k,vu(UA,h,Ee,{discrete:!1})):Am(k,b.swipeDirection,le)?(_.current=k,vu(jA,f,Ee,{discrete:!1}),z.target.setPointerCapture(z.pointerId)):(Math.abs(te)>le||Math.abs(ie)>le)&&(E.current=null)}),onPointerUp:Ge(e.onPointerUp,z=>{const te=_.current,ie=z.target;if(ie.hasPointerCapture(z.pointerId)&&ie.releasePointerCapture(z.pointerId),_.current=null,E.current=null,te){const se=z.currentTarget,D={originalEvent:z,delta:te};Am(te,b.swipeDirection,b.swipeThreshold)?vu(zA,m,D,{discrete:!0}):vu(HA,p,D,{discrete:!0}),se.addEventListener("click",G=>G.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),WA=e=>{const{__scopeToast:t,children:n,...r}=e,i=hc(pc,t),[a,s]=T.useState(!1),[o,u]=T.useState(!1);return QA(()=>s(!0)),T.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),o?null:c.jsx(Ob,{asChild:!0,children:c.jsx(fc,{...r,children:a&&c.jsxs(c.Fragment,{children:[i.label," ",n]})})})},qA="ToastTitle",Ub=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Nt.div,{...r,ref:t})});Ub.displayName=qA;var GA="ToastDescription",Hb=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(Nt.div,{...r,ref:t})});Hb.displayName=GA;var zb="ToastAction",Vb=T.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx($b,{altText:n,asChild:!0,children:c.jsx(bp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${zb}\`. Expected non-empty \`string\`.`),null)});Vb.displayName=zb;var Yb="ToastClose",bp=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=YA(Yb,n);return c.jsx($b,{asChild:!0,children:c.jsx(Nt.button,{type:"button",...r,ref:t,onClick:Ge(e.onClick,i.onClose)})})});bp.displayName=Yb;var $b=T.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return c.jsx(Nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Wb(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),KA(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Wb(r))}}),t}function vu(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?gp(i,a):i.dispatchEvent(a)}var Am=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t==="left"||t==="right"?a&&r>n:!a&&i>n};function QA(e=()=>{}){const t=On(e);hr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function KA(e){return e.nodeType===e.ELEMENT_NODE}function XA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function md(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var JA=Db,qb=Fb,Gb=jb,Qb=Ub,Kb=Hb,Xb=Vb,Jb=bp;function Zb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Zb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function eE(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zb(e))&&(r&&(r+=" "),r+=t);return r}const _m=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Nm=eE,tE=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Nm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(l=>{const f=n==null?void 0:n[l],h=a==null?void 0:a[l];if(f===null)return null;const p=_m(f)||_m(h);return i[l][p]}),o=n&&Object.entries(n).reduce((l,f)=>{let[h,p]=f;return p===void 0||(l[h]=p),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:h,className:p,...m}=f;return Object.entries(m).every(x=>{let[b,v]=x;return Array.isArray(v)?v.includes({...a,...o}[b]):{...a,...o}[b]===v})?[...l,h,p]:l},[]);return Nm(e,s,u,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nE=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var e3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t3=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...o},u)=>T.createElement("svg",{ref:u,...e3,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:nE("lucide",i),...o},[...s.map(([l,f])=>T.createElement(l,f)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const we=(e,t)=>{const n=T.forwardRef(({className:r,...i},a)=>T.createElement(t3,{ref:a,iconNode:t,className:nE(`lucide-${ZA(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n3=we("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r3=we("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i3=we("Axe",[["path",{d:"m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9",key:"csbz4o"}],["path",{d:"M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z",key:"113wfo"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Za=we("Backpack",[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ep=we("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a3=we("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s3=we("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o3=we("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rE=we("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iE=we("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u3=we("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wo=we("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l3=we("Flashlight",[["path",{d:"M18 6c0 2-2 2-2 4v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4V2h12z",key:"1orkel"}],["line",{x1:"6",x2:"18",y1:"6",y2:"6",key:"1z11jq"}],["line",{x1:"12",x2:"12",y1:"12",y2:"12",key:"1f4yc1"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c3=we("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d3=we("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f3=we("Infinity",[["path",{d:"M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z",key:"1z0uae"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h3=we("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const p3=we("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m3=we("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g3=we("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Al=we("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y3=we("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x3=we("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b3=we("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E3=we("NotebookPen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T3=we("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aE=we("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v3=we("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w3=we("Pickaxe",[["path",{d:"M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912",key:"we99rg"}],["path",{d:"M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393",key:"1w6hck"}],["path",{d:"M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z",key:"15hgfx"}],["path",{d:"M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319",key:"452b4h"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C3=we("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const A3=we("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sE=we("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _3=we("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N3=we("Tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k3=we("TreePine",[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S3=we("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oE=we("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Tp="-",I3=e=>{const t=L3(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const o=s.split(Tp);return o[0]===""&&o.length!==1&&o.shift(),uE(o,t)||O3(s)},getConflictingClassGroupIds:(s,o)=>{const u=n[s]||[];return o&&r[s]?[...u,...r[s]]:u}}},uE=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?uE(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(Tp);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},km=/^\[(.+)\]$/,O3=e=>{if(km.test(e)){const t=km.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},L3=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return P3(Object.entries(e.classGroups),n).forEach(([a,s])=>{jf(s,r,a,t)}),r},jf=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:Sm(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(R3(i)){jf(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,s])=>{jf(s,Sm(t,a),n,r)})})},Sm=(e,t)=>{let n=e;return t.split(Tp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},R3=e=>e.isThemeGetter,P3=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[t+s,o])):a);return[n,i]}):e,D3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return i(a,s),s},set(a,s){n.has(a)?n.set(a,s):i(a,s)}}},lE="!",M3=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,s=o=>{const u=[];let l=0,f=0,h;for(let v=0;v<o.length;v++){let y=o[v];if(l===0){if(y===i&&(r||o.slice(v,v+a)===t)){u.push(o.slice(f,v)),f=v+a;continue}if(y==="/"){h=v;continue}}y==="["?l++:y==="]"&&l--}const p=u.length===0?o:o.substring(f),m=p.startsWith(lE),x=m?p.substring(1):p,b=h&&h>f?h-f:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},F3=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},B3=e=>({cache:D3(e.cacheSize),parseClassName:M3(e),...I3(e)}),j3=/\s+/,U3=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(j3);let o="";for(let u=s.length-1;u>=0;u-=1){const l=s[u],{modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(l);let x=!!m,b=r(x?p.substring(0,m):p);if(!b){if(!x){o=l+(o.length>0?" "+o:o);continue}if(b=r(p),!b){o=l+(o.length>0?" "+o:o);continue}x=!1}const v=F3(f).join(":"),y=h?v+lE:v,g=y+b;if(a.includes(g))continue;a.push(g);const E=i(b,x);for(let _=0;_<E.length;++_){const I=E[_];a.push(y+I)}o=l+(o.length>0?" "+o:o)}return o};function H3(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=cE(t))&&(r&&(r+=" "),r+=n);return r}const cE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cE(e[r]))&&(n&&(n+=" "),n+=t);return n};function z3(e,...t){let n,r,i,a=s;function s(u){const l=t.reduce((f,h)=>h(f),e());return n=B3(l),r=n.cache.get,i=n.cache.set,a=o,o(u)}function o(u){const l=r(u);if(l)return l;const f=U3(u,n);return i(u,f),f}return function(){return a(H3.apply(null,arguments))}}const De=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},dE=/^\[(?:([a-z-]+):)?(.+)\]$/i,V3=/^\d+\/\d+$/,Y3=new Set(["px","full","screen"]),$3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,G3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,br=e=>Pa(e)||Y3.has(e)||V3.test(e),zr=e=>ds(e,"length",r_),Pa=e=>!!e&&!Number.isNaN(Number(e)),gd=e=>ds(e,"number",Pa),ks=e=>!!e&&Number.isInteger(Number(e)),K3=e=>e.endsWith("%")&&Pa(e.slice(0,-1)),xe=e=>dE.test(e),Vr=e=>$3.test(e),X3=new Set(["length","size","percentage"]),J3=e=>ds(e,X3,fE),Z3=e=>ds(e,"position",fE),e_=new Set(["image","url"]),t_=e=>ds(e,e_,a_),n_=e=>ds(e,"",i_),Ss=()=>!0,ds=(e,t,n)=>{const r=dE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},r_=e=>W3.test(e)&&!q3.test(e),fE=()=>!1,i_=e=>G3.test(e),a_=e=>Q3.test(e),s_=()=>{const e=De("colors"),t=De("spacing"),n=De("blur"),r=De("brightness"),i=De("borderColor"),a=De("borderRadius"),s=De("borderSpacing"),o=De("borderWidth"),u=De("contrast"),l=De("grayscale"),f=De("hueRotate"),h=De("invert"),p=De("gap"),m=De("gradientColorStops"),x=De("gradientColorStopPositions"),b=De("inset"),v=De("margin"),y=De("opacity"),g=De("padding"),E=De("saturate"),_=De("scale"),I=De("sepia"),N=De("skew"),L=De("space"),M=De("translate"),$=()=>["auto","contain","none"],H=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",xe,t],F=()=>[xe,t],K=()=>["",br,zr],z=()=>["auto",Pa,xe],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ie=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",xe],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[Pa,xe];return{cacheSize:500,separator:":",theme:{colors:[Ss],spacing:[br,zr],blur:["none","",Vr,xe],brightness:re(),borderColor:[e],borderRadius:["none","","full",Vr,xe],borderSpacing:F(),borderWidth:K(),contrast:re(),grayscale:G(),hueRotate:re(),invert:G(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[K3,zr],inset:W(),margin:W(),opacity:re(),padding:F(),saturate:re(),scale:re(),sepia:G(),skew:re(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",xe]}],container:["container"],columns:[{columns:[Vr]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),xe]}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ks,xe]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xe]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",ks,xe]}],"grid-cols":[{"grid-cols":[Ss]}],"col-start-end":[{col:["auto",{span:["full",ks,xe]},xe]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Ss]}],"row-start-end":[{row:["auto",{span:[ks,xe]},xe]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xe,t]}],"min-w":[{"min-w":[xe,t,"min","max","fit"]}],"max-w":[{"max-w":[xe,t,"none","full","min","max","fit","prose",{screen:[Vr]},Vr]}],h:[{h:[xe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Vr,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gd]}],"font-family":[{font:[Ss]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xe]}],"line-clamp":[{"line-clamp":["none",Pa,gd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",br,xe]}],"list-image":[{"list-image":["none",xe]}],"list-style-type":[{list:["none","disc","decimal",xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",br,zr]}],"underline-offset":[{"underline-offset":["auto",br,xe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Z3]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",J3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},t_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...ie(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:ie()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...ie()]}],"outline-offset":[{"outline-offset":[br,xe]}],"outline-w":[{outline:[br,zr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[br,zr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Vr,n_]}],"shadow-color":[{shadow:[Ss]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Vr,xe]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xe]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",xe]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ks,xe]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[br,zr,gd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},o_=z3(s_);function kt(...e){return o_(eE(e))}const u_=JA,hE=T.forwardRef(({className:e,...t},n)=>c.jsx(qb,{ref:n,className:kt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));hE.displayName=qb.displayName;const l_=tE("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),pE=T.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(Gb,{ref:r,className:kt(l_({variant:t}),e),...n}));pE.displayName=Gb.displayName;const c_=T.forwardRef(({className:e,...t},n)=>c.jsx(Xb,{ref:n,className:kt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));c_.displayName=Xb.displayName;const mE=T.forwardRef(({className:e,...t},n)=>c.jsx(Jb,{ref:n,className:kt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(oE,{className:"h-4 w-4"})}));mE.displayName=Jb.displayName;const gE=T.forwardRef(({className:e,...t},n)=>c.jsx(Qb,{ref:n,className:kt("text-sm font-semibold",e),...t}));gE.displayName=Qb.displayName;const yE=T.forwardRef(({className:e,...t},n)=>c.jsx(Kb,{ref:n,className:kt("text-sm opacity-90",e),...t}));yE.displayName=Kb.displayName;function d_(){const{toasts:e}=fA();return c.jsxs(u_,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return c.jsxs(pE,{...a,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(gE,{children:n}),r&&c.jsx(yE,{children:r})]}),i,c.jsx(mE,{})]},t)}),c.jsx(hE,{})]})}var _l=["light","dark"],vp="(prefers-color-scheme: dark)",f_=typeof window>"u",wp=T.createContext(void 0),h_={setTheme:e=>{},themes:[]},mc=()=>{var e;return(e=T.useContext(wp))!=null?e:h_},p_=e=>T.useContext(wp)?e.children:T.createElement(g_,{...e}),m_=["light","dark"],g_=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:a=m_,defaultTheme:s=n?"system":"light",attribute:o="data-theme",value:u,children:l,nonce:f})=>{let[h,p]=T.useState(()=>Im(i,s)),[m,x]=T.useState(()=>Im(i)),b=u?Object.values(u):a,v=T.useCallback(_=>{let I=_;if(!I)return;_==="system"&&n&&(I=Om());let N=u?u[I]:I,L=t?x_():null,M=document.documentElement;if(o==="class"?(M.classList.remove(...b),N&&M.classList.add(N)):N?M.setAttribute(o,N):M.removeAttribute(o),r){let $=_l.includes(s)?s:null,H=_l.includes(I)?I:$;M.style.colorScheme=H}L==null||L()},[]),y=T.useCallback(_=>{let I=typeof _=="function"?_(_):_;p(I);try{localStorage.setItem(i,I)}catch{}},[e]),g=T.useCallback(_=>{let I=Om(_);x(I),h==="system"&&n&&!e&&v("system")},[h,e]);T.useEffect(()=>{let _=window.matchMedia(vp);return _.addListener(g),g(_),()=>_.removeListener(g)},[g]),T.useEffect(()=>{let _=I=>{if(I.key!==i)return;let N=I.newValue||s;y(N)};return window.addEventListener("storage",_),()=>window.removeEventListener("storage",_)},[y]),T.useEffect(()=>{v(e??h)},[e,h]);let E=T.useMemo(()=>({theme:h,setTheme:y,forcedTheme:e,resolvedTheme:h==="system"?m:h,themes:n?[...a,"system"]:a,systemTheme:n?m:void 0}),[h,y,e,m,n,a]);return T.createElement(wp.Provider,{value:E},T.createElement(y_,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:a,defaultTheme:s,attribute:o,value:u,children:l,attrs:b,nonce:f}),l)},y_=T.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:s,attrs:o,nonce:u})=>{let l=a==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?_l.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(x,b=!1,v=!0)=>{let y=s?s[x]:x,g=b?x+"|| ''":`'${y}'`,E="";return i&&v&&!b&&_l.includes(x)&&(E+=`d.style.colorScheme = '${x}';`),n==="class"?b||y?E+=`c.add(${g})`:E+="null":y&&(E+=`d[s](n,${g})`),E},m=e?`!function(){${f}${p(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${l})){var t='${vp}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${p(s?"x[e]":"e",!0)}}${l?"":"else{"+p(a,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${p(s?"x[e]":"e",!0)}}else{${p(a,!1,!1)};}${h}}catch(t){}}();`;return T.createElement("script",{nonce:u,dangerouslySetInnerHTML:{__html:m}})}),Im=(e,t)=>{if(f_)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},x_=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Om=e=>(e||(e=window.matchMedia(vp)),e.matches?"dark":"light"),b_=e=>{switch(e){case"success":return v_;case"info":return C_;case"warning":return w_;case"error":return A_;default:return null}},E_=Array(12).fill(0),T_=({visible:e})=>X.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},X.createElement("div",{className:"sonner-spinner"},E_.map((t,n)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),v_=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),w_=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),C_=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),A_=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),__=()=>{let[e,t]=X.useState(document.hidden);return X.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Uf=1,N_=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Uf++,a=this.toasts.find(o=>o.id===i),s=e.dismissible===void 0?!0:e.dismissible;return a?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...e,id:i,title:n}),{...o,...e,id:i,dismissible:s,title:n}):o):this.addToast({title:n,...r,dismissible:s,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(async a=>{if(S_(a)&&!a.ok){i=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,o=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:s,description:o})}else if(t.success!==void 0){i=!1;let s=typeof t.success=="function"?await t.success(a):t.success,o=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:s,description:o})}}).catch(async a=>{if(t.error!==void 0){i=!1;let s=typeof t.error=="function"?await t.error(a):t.error,o=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:s,description:o})}}).finally(()=>{var a;i&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Uf++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},sn=new N_,k_=(e,t)=>{let n=(t==null?void 0:t.id)||Uf++;return sn.addToast({title:e,...t,id:n}),n},S_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",I_=k_,O_=()=>sn.toasts,Hf=Object.assign(I_,{success:sn.success,info:sn.info,warning:sn.warning,error:sn.error,custom:sn.custom,message:sn.message,promise:sn.promise,dismiss:sn.dismiss,loading:sn.loading},{getHistory:O_});function L_(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}L_(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function wu(e){return e.label!==void 0}var R_=3,P_="32px",D_=4e3,M_=356,F_=14,B_=20,j_=200;function U_(...e){return e.filter(Boolean).join(" ")}var H_=e=>{var t,n,r,i,a,s,o,u,l,f;let{invert:h,toast:p,unstyled:m,interacting:x,setHeights:b,visibleToasts:v,heights:y,index:g,toasts:E,expanded:_,removeToast:I,defaultRichColors:N,closeButton:L,style:M,cancelButtonStyle:$,actionButtonStyle:H,className:W="",descriptionClassName:F="",duration:K,position:z,gap:te,loadingIcon:ie,expandByDefault:se,classNames:D,icons:G,closeButtonAriaLabel:C="Close toast",pauseWhenPageIsHidden:re,cn:le}=e,[k,Ee]=X.useState(!1),[He,he]=X.useState(!1),[Ze,Qe]=X.useState(!1),[lt,pt]=X.useState(!1),[gn,$n]=X.useState(0),[yn,Wn]=X.useState(0),jr=X.useRef(null),xn=X.useRef(null),Li=g===0,O=g+1<=v,R=p.type,U=p.dismissible!==!1,ae=p.className||"",ne=p.descriptionClassName||"",Z=X.useMemo(()=>y.findIndex(pe=>pe.toastId===p.id)||0,[y,p.id]),ce=X.useMemo(()=>{var pe;return(pe=p.closeButton)!=null?pe:L},[p.closeButton,L]),Ce=X.useMemo(()=>p.duration||K||D_,[p.duration,K]),B=X.useRef(0),Y=X.useRef(0),fe=X.useRef(0),ye=X.useRef(null),[Ae,mt]=z.split("-"),bn=X.useMemo(()=>y.reduce((pe,Pe,Oe)=>Oe>=Z?pe:pe+Pe.height,0),[y,Z]),Lt=__(),xr=p.invert||h,En=R==="loading";Y.current=X.useMemo(()=>Z*te+bn,[Z,bn]),X.useEffect(()=>{Ee(!0)},[]),X.useLayoutEffect(()=>{if(!k)return;let pe=xn.current,Pe=pe.style.height;pe.style.height="auto";let Oe=pe.getBoundingClientRect().height;pe.style.height=Pe,Wn(Oe),b(qn=>qn.find(Gn=>Gn.toastId===p.id)?qn.map(Gn=>Gn.toastId===p.id?{...Gn,height:Oe}:Gn):[{toastId:p.id,height:Oe,position:p.position},...qn])},[k,p.title,p.description,b,p.id]);let $e=X.useCallback(()=>{he(!0),$n(Y.current),b(pe=>pe.filter(Pe=>Pe.toastId!==p.id)),setTimeout(()=>{I(p)},j_)},[p,I,b,Y]);X.useEffect(()=>{if(p.promise&&R==="loading"||p.duration===1/0||p.type==="loading")return;let pe,Pe=Ce;return _||x||re&&Lt?(()=>{if(fe.current<B.current){let Oe=new Date().getTime()-B.current;Pe=Pe-Oe}fe.current=new Date().getTime()})():Pe!==1/0&&(B.current=new Date().getTime(),pe=setTimeout(()=>{var Oe;(Oe=p.onAutoClose)==null||Oe.call(p,p),$e()},Pe)),()=>clearTimeout(pe)},[_,x,se,p,Ce,$e,p.promise,R,re,Lt]),X.useEffect(()=>{let pe=xn.current;if(pe){let Pe=pe.getBoundingClientRect().height;return Wn(Pe),b(Oe=>[{toastId:p.id,height:Pe,position:p.position},...Oe]),()=>b(Oe=>Oe.filter(qn=>qn.toastId!==p.id))}},[b,p.id]),X.useEffect(()=>{p.delete&&$e()},[$e,p.delete]);function Ur(){return G!=null&&G.loading?X.createElement("div",{className:"sonner-loader","data-visible":R==="loading"},G.loading):ie?X.createElement("div",{className:"sonner-loader","data-visible":R==="loading"},ie):X.createElement(T_,{visible:R==="loading"})}return X.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:xn,className:le(W,ae,D==null?void 0:D.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[R],(n=p==null?void 0:p.classNames)==null?void 0:n[R]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:N,"data-styled":!(p.jsx||p.unstyled||m),"data-mounted":k,"data-promise":!!p.promise,"data-removed":He,"data-visible":O,"data-y-position":Ae,"data-x-position":mt,"data-index":g,"data-front":Li,"data-swiping":Ze,"data-dismissible":U,"data-type":R,"data-invert":xr,"data-swipe-out":lt,"data-expanded":!!(_||se&&k),style:{"--index":g,"--toasts-before":g,"--z-index":E.length-g,"--offset":`${He?gn:Y.current}px`,"--initial-height":se?"auto":`${yn}px`,...M,...p.style},onPointerDown:pe=>{En||!U||(jr.current=new Date,$n(Y.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(Qe(!0),ye.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,Pe,Oe,qn;if(lt||!U)return;ye.current=null;let Gn=Number(((pe=xn.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount").replace("px",""))||0),nu=new Date().getTime()-((Pe=jr.current)==null?void 0:Pe.getTime()),Pv=Math.abs(Gn)/nu;if(Math.abs(Gn)>=B_||Pv>.11){$n(Y.current),(Oe=p.onDismiss)==null||Oe.call(p,p),$e(),pt(!0);return}(qn=xn.current)==null||qn.style.setProperty("--swipe-amount","0px"),Qe(!1)},onPointerMove:pe=>{var Pe;if(!ye.current||!U)return;let Oe=pe.clientY-ye.current.y,qn=pe.clientX-ye.current.x,Gn=(Ae==="top"?Math.min:Math.max)(0,Oe),nu=pe.pointerType==="touch"?10:2;Math.abs(Gn)>nu?(Pe=xn.current)==null||Pe.style.setProperty("--swipe-amount",`${Oe}px`):Math.abs(qn)>nu&&(ye.current=null)}},ce&&!p.jsx?X.createElement("button",{"aria-label":C,"data-disabled":En,"data-close-button":!0,onClick:En||!U?()=>{}:()=>{var pe;$e(),(pe=p.onDismiss)==null||pe.call(p,p)},className:le(D==null?void 0:D.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||X.isValidElement(p.title)?p.jsx||p.title:X.createElement(X.Fragment,null,R||p.icon||p.promise?X.createElement("div",{"data-icon":"",className:le(D==null?void 0:D.icon,(a=p==null?void 0:p.classNames)==null?void 0:a.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Ur():null,p.type!=="loading"?p.icon||(G==null?void 0:G[R])||b_(R):null):null,X.createElement("div",{"data-content":"",className:le(D==null?void 0:D.content,(s=p==null?void 0:p.classNames)==null?void 0:s.content)},X.createElement("div",{"data-title":"",className:le(D==null?void 0:D.title,(o=p==null?void 0:p.classNames)==null?void 0:o.title)},p.title),p.description?X.createElement("div",{"data-description":"",className:le(F,ne,D==null?void 0:D.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},p.description):null),X.isValidElement(p.cancel)?p.cancel:p.cancel&&wu(p.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||$,onClick:pe=>{var Pe,Oe;wu(p.cancel)&&U&&((Oe=(Pe=p.cancel).onClick)==null||Oe.call(Pe,pe),$e())},className:le(D==null?void 0:D.cancelButton,(l=p==null?void 0:p.classNames)==null?void 0:l.cancelButton)},p.cancel.label):null,X.isValidElement(p.action)?p.action:p.action&&wu(p.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||H,onClick:pe=>{var Pe,Oe;wu(p.action)&&(pe.defaultPrevented||((Oe=(Pe=p.action).onClick)==null||Oe.call(Pe,pe),$e()))},className:le(D==null?void 0:D.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function Lm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var z_=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:a,className:s,offset:o,theme:u="light",richColors:l,duration:f,style:h,visibleToasts:p=R_,toastOptions:m,dir:x=Lm(),gap:b=F_,loadingIcon:v,icons:y,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:E,cn:_=U_}=e,[I,N]=X.useState([]),L=X.useMemo(()=>Array.from(new Set([n].concat(I.filter(re=>re.position).map(re=>re.position)))),[I,n]),[M,$]=X.useState([]),[H,W]=X.useState(!1),[F,K]=X.useState(!1),[z,te]=X.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=X.useRef(null),se=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=X.useRef(null),G=X.useRef(!1),C=X.useCallback(re=>{var le;(le=I.find(k=>k.id===re.id))!=null&&le.delete||sn.dismiss(re.id),N(k=>k.filter(({id:Ee})=>Ee!==re.id))},[I]);return X.useEffect(()=>sn.subscribe(re=>{if(re.dismiss){N(le=>le.map(k=>k.id===re.id?{...k,delete:!0}:k));return}setTimeout(()=>{vb.flushSync(()=>{N(le=>{let k=le.findIndex(Ee=>Ee.id===re.id);return k!==-1?[...le.slice(0,k),{...le[k],...re},...le.slice(k+1)]:[re,...le]})})})}),[]),X.useEffect(()=>{if(u!=="system"){te(u);return}u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:re})=>{te(re?"dark":"light")})},[u]),X.useEffect(()=>{I.length<=1&&W(!1)},[I]),X.useEffect(()=>{let re=le=>{var k,Ee;r.every(He=>le[He]||le.code===He)&&(W(!0),(k=ie.current)==null||k.focus()),le.code==="Escape"&&(document.activeElement===ie.current||(Ee=ie.current)!=null&&Ee.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[r]),X.useEffect(()=>{if(ie.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,G.current=!1)}},[ie.current]),I.length?X.createElement("section",{"aria-label":`${g} ${se}`,tabIndex:-1},L.map((re,le)=>{var k;let[Ee,He]=re.split("-");return X.createElement("ol",{key:re,dir:x==="auto"?Lm():x,tabIndex:-1,ref:ie,className:s,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":Ee,"data-x-position":He,style:{"--front-toast-height":`${((k=M[0])==null?void 0:k.height)||0}px`,"--offset":typeof o=="number"?`${o}px`:o||P_,"--width":`${M_}px`,"--gap":`${b}px`,...h},onBlur:he=>{G.current&&!he.currentTarget.contains(he.relatedTarget)&&(G.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||G.current||(G.current=!0,D.current=he.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{F||W(!1)},onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},I.filter(he=>!he.position&&le===0||he.position===re).map((he,Ze)=>{var Qe,lt;return X.createElement(H_,{key:he.id,icons:y,index:Ze,toast:he,defaultRichColors:l,duration:(Qe=m==null?void 0:m.duration)!=null?Qe:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:t,visibleToasts:p,closeButton:(lt=m==null?void 0:m.closeButton)!=null?lt:a,interacting:F,position:re,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:C,toasts:I.filter(pt=>pt.position==he.position),heights:M.filter(pt=>pt.position==he.position),setHeights:$,expandByDefault:i,gap:b,loadingIcon:v,expanded:H,pauseWhenPageIsHidden:E,cn:_})}))})):null};const V_=({...e})=>{const{theme:t="system"}=mc();return c.jsx(z_,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function Y_(e,t=[]){let n=[];function r(a,s){const o=T.createContext(s),u=n.length;n=[...n,s];const l=h=>{var y;const{scope:p,children:m,...x}=h,b=((y=p==null?void 0:p[e])==null?void 0:y[u])||o,v=T.useMemo(()=>x,Object.values(x));return c.jsx(b.Provider,{value:v,children:m})};l.displayName=a+"Provider";function f(h,p){var b;const m=((b=p==null?void 0:p[e])==null?void 0:b[u])||o,x=T.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,f]}const i=()=>{const a=n.map(s=>T.createContext(s));return function(o){const u=(o==null?void 0:o[e])||a;return T.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[r,$_(i,...t)]}function $_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...o,...h}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var W_="DismissableLayer",zf="dismissableLayer.update",q_="dismissableLayer.pointerDownOutside",G_="dismissableLayer.focusOutside",Rm,xE=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bE=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...u}=e,l=T.useContext(xE),[f,h]=T.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=T.useState({}),x=Zt(t,L=>h(L)),b=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(v),g=f?b.indexOf(f):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,_=g>=y,I=X_(L=>{const M=L.target,$=[...l.branches].some(H=>H.contains(M));!_||$||(i==null||i(L),s==null||s(L),L.defaultPrevented||o==null||o())},p),N=J_(L=>{const M=L.target;[...l.branches].some(H=>H.contains(M))||(a==null||a(L),s==null||s(L),L.defaultPrevented||o==null||o())},p);return _b(L=>{g===l.layers.size-1&&(r==null||r(L),!L.defaultPrevented&&o&&(L.preventDefault(),o()))},p),T.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Rm=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Pm(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Rm)}},[f,p,n,l]),T.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Pm())},[f,l]),T.useEffect(()=>{const L=()=>m({});return document.addEventListener(zf,L),()=>document.removeEventListener(zf,L)},[]),c.jsx(Nt.div,{...u,ref:x,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:Ge(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ge(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ge(e.onPointerDownCapture,I.onPointerDownCapture)})});bE.displayName=W_;var Q_="DismissableLayerBranch",K_=T.forwardRef((e,t)=>{const n=T.useContext(xE),r=T.useRef(null),i=Zt(t,r);return T.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(Nt.div,{...e,ref:i})});K_.displayName=Q_;function X_(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let u=function(){EE(q_,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function J_(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=T.useRef(!1);return T.useEffect(()=>{const i=a=>{a.target&&!r.current&&EE(G_,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pm(){const e=new CustomEvent(zf);document.dispatchEvent(e)}function EE(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?gp(i,a):i.dispatchEvent(a)}var Z_=by.useId||(()=>{}),eN=0;function tN(e){const[t,n]=T.useState(Z_());return hr(()=>{n(r=>r??String(eN++))},[e]),t?`radix-${t}`:""}const nN=["top","right","bottom","left"],Ti=Math.min,un=Math.max,Nl=Math.round,Cu=Math.floor,vi=e=>({x:e,y:e}),rN={left:"right",right:"left",bottom:"top",top:"bottom"},iN={start:"end",end:"start"};function Vf(e,t,n){return un(e,Ti(t,n))}function Pr(e,t){return typeof e=="function"?e(t):e}function Dr(e){return e.split("-")[0]}function fs(e){return e.split("-")[1]}function Cp(e){return e==="x"?"y":"x"}function Ap(e){return e==="y"?"height":"width"}function wi(e){return["top","bottom"].includes(Dr(e))?"y":"x"}function _p(e){return Cp(wi(e))}function aN(e,t,n){n===void 0&&(n=!1);const r=fs(e),i=_p(e),a=Ap(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=kl(s)),[s,kl(s)]}function sN(e){const t=kl(e);return[Yf(e),t,Yf(t)]}function Yf(e){return e.replace(/start|end/g,t=>iN[t])}function oN(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:s;default:return[]}}function uN(e,t,n,r){const i=fs(e);let a=oN(Dr(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(Yf)))),a}function kl(e){return e.replace(/left|right|bottom|top/g,t=>rN[t])}function lN(e){return{top:0,right:0,bottom:0,left:0,...e}}function TE(e){return typeof e!="number"?lN(e):{top:e,right:e,bottom:e,left:e}}function Sl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Dm(e,t,n){let{reference:r,floating:i}=e;const a=wi(t),s=_p(t),o=Ap(s),u=Dr(t),l=a==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,p=r[o]/2-i[o]/2;let m;switch(u){case"top":m={x:f,y:r.y-i.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-i.width,y:h};break;default:m={x:r.x,y:r.y}}switch(fs(t)){case"start":m[s]-=p*(n&&l?-1:1);break;case"end":m[s]+=p*(n&&l?-1:1);break}return m}const cN=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=Dm(l,r,u),p=r,m={},x=0;for(let b=0;b<o.length;b++){const{name:v,fn:y}=o[b],{x:g,y:E,data:_,reset:I}=await y({x:f,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});f=g??f,h=E??h,m={...m,[v]:{...m[v],..._}},I&&x<=50&&(x++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(l=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:h}=Dm(l,p,u)),b=-1)}return{x:f,y:h,placement:p,strategy:i,middlewareData:m}};async function _o(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=Pr(t,e),x=TE(m),v=o[p?h==="floating"?"reference":"floating":h],y=Sl(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:l,rootBoundary:f,strategy:u})),g=h==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),_=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Sl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:E,strategy:u}):g);return{top:(y.top-I.top+x.top)/_.y,bottom:(I.bottom-y.bottom+x.bottom)/_.y,left:(y.left-I.left+x.left)/_.x,right:(I.right-y.right+x.right)/_.x}}const dN=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:u}=t,{element:l,padding:f=0}=Pr(e,t)||{};if(l==null)return{};const h=TE(f),p={x:n,y:r},m=_p(i),x=Ap(m),b=await s.getDimensions(l),v=m==="y",y=v?"top":"left",g=v?"bottom":"right",E=v?"clientHeight":"clientWidth",_=a.reference[x]+a.reference[m]-p[m]-a.floating[x],I=p[m]-a.reference[m],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let L=N?N[E]:0;(!L||!await(s.isElement==null?void 0:s.isElement(N)))&&(L=o.floating[E]||a.floating[x]);const M=_/2-I/2,$=L/2-b[x]/2-1,H=Ti(h[y],$),W=Ti(h[g],$),F=H,K=L-b[x]-W,z=L/2-b[x]/2+M,te=Vf(F,z,K),ie=!u.arrow&&fs(i)!=null&&z!==te&&a.reference[x]/2-(z<F?H:W)-b[x]/2<0,se=ie?z<F?z-F:z-K:0;return{[m]:p[m]+se,data:{[m]:te,centerOffset:z-te-se,...ie&&{alignmentOffset:se}},reset:ie}}}),fN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...v}=Pr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Dr(i),g=wi(o),E=Dr(o)===o,_=await(u.isRTL==null?void 0:u.isRTL(l.floating)),I=p||(E||!b?[kl(o)]:sN(o)),N=x!=="none";!p&&N&&I.push(...uN(o,b,x,_));const L=[o,...I],M=await _o(t,v),$=[];let H=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&$.push(M[y]),h){const z=aN(i,s,_);$.push(M[z[0]],M[z[1]])}if(H=[...H,{placement:i,overflows:$}],!$.every(z=>z<=0)){var W,F;const z=(((W=a.flip)==null?void 0:W.index)||0)+1,te=L[z];if(te)return{data:{index:z,overflows:H},reset:{placement:te}};let ie=(F=H.filter(se=>se.overflows[0]<=0).sort((se,D)=>se.overflows[1]-D.overflows[1])[0])==null?void 0:F.placement;if(!ie)switch(m){case"bestFit":{var K;const se=(K=H.filter(D=>{if(N){const G=wi(D.placement);return G===g||G==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(G=>G>0).reduce((G,C)=>G+C,0)]).sort((D,G)=>D[1]-G[1])[0])==null?void 0:K[0];se&&(ie=se);break}case"initialPlacement":ie=o;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};function Mm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fm(e){return nN.some(t=>e[t]>=0)}const hN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Pr(e,t);switch(r){case"referenceHidden":{const a=await _o(t,{...i,elementContext:"reference"}),s=Mm(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Fm(s)}}}case"escaped":{const a=await _o(t,{...i,altBoundary:!0}),s=Mm(a,n.floating);return{data:{escapedOffsets:s,escaped:Fm(s)}}}default:return{}}}}};async function pN(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Dr(n),o=fs(n),u=wi(n)==="y",l=["left","top"].includes(s)?-1:1,f=a&&u?-1:1,h=Pr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof x=="number"&&(m=o==="end"?x*-1:x),u?{x:m*f,y:p*l}:{x:p*l,y:m*f}}const mN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,u=await pN(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},gN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:v=>{let{x:y,y:g}=v;return{x:y,y:g}}},...u}=Pr(e,t),l={x:n,y:r},f=await _o(t,u),h=wi(Dr(i)),p=Cp(h);let m=l[p],x=l[h];if(a){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",g=m+f[v],E=m-f[y];m=Vf(g,m,E)}if(s){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=x+f[v],E=x-f[y];x=Vf(g,x,E)}const b=o.fn({...t,[p]:m,[h]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[h]:s}}}}}},yN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:u=!0,crossAxis:l=!0}=Pr(e,t),f={x:n,y:r},h=wi(i),p=Cp(h);let m=f[p],x=f[h];const b=Pr(o,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const E=p==="y"?"height":"width",_=a.reference[p]-a.floating[E]+v.mainAxis,I=a.reference[p]+a.reference[E]-v.mainAxis;m<_?m=_:m>I&&(m=I)}if(l){var y,g;const E=p==="y"?"width":"height",_=["top","left"].includes(Dr(i)),I=a.reference[h]-a.floating[E]+(_&&((y=s.offset)==null?void 0:y[h])||0)+(_?0:v.crossAxis),N=a.reference[h]+a.reference[E]+(_?0:((g=s.offset)==null?void 0:g[h])||0)-(_?v.crossAxis:0);x<I?x=I:x>N&&(x=N)}return{[p]:m,[h]:x}}}},xN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:o}=t,{apply:u=()=>{},...l}=Pr(e,t),f=await _o(t,l),h=Dr(i),p=fs(i),m=wi(i)==="y",{width:x,height:b}=a.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=p===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(y=h,v=p==="end"?"top":"bottom");const g=b-f.top-f.bottom,E=x-f.left-f.right,_=Ti(b-f[v],g),I=Ti(x-f[y],E),N=!t.middlewareData.shift;let L=_,M=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=g),N&&!p){const H=un(f.left,0),W=un(f.right,0),F=un(f.top,0),K=un(f.bottom,0);m?M=x-2*(H!==0||W!==0?H+W:un(f.left,f.right)):L=b-2*(F!==0||K!==0?F+K:un(f.top,f.bottom))}await u({...t,availableWidth:M,availableHeight:L});const $=await s.getDimensions(o.floating);return x!==$.width||b!==$.height?{reset:{rects:!0}}:{}}}};function gc(){return typeof window<"u"}function hs(e){return vE(e)?(e.nodeName||"").toLowerCase():"#document"}function fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gr(e){var t;return(t=(vE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vE(e){return gc()?e instanceof Node||e instanceof fn(e).Node:!1}function zn(e){return gc()?e instanceof Element||e instanceof fn(e).Element:!1}function pr(e){return gc()?e instanceof HTMLElement||e instanceof fn(e).HTMLElement:!1}function Bm(e){return!gc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fn(e).ShadowRoot}function qo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function bN(e){return["table","td","th"].includes(hs(e))}function yc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Np(e){const t=kp(),n=zn(e)?Vn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function EN(e){let t=Ci(e);for(;pr(t)&&!es(t);){if(Np(t))return t;if(yc(t))return null;t=Ci(t)}return null}function kp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function es(e){return["html","body","#document"].includes(hs(e))}function Vn(e){return fn(e).getComputedStyle(e)}function xc(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ci(e){if(hs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bm(e)&&e.host||gr(e);return Bm(t)?t.host:t}function wE(e){const t=Ci(e);return es(t)?e.ownerDocument?e.ownerDocument.body:e.body:pr(t)&&qo(t)?t:wE(t)}function No(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=wE(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=fn(i);if(a){const o=$f(s);return t.concat(s,s.visualViewport||[],qo(i)?i:[],o&&n?No(o):[])}return t.concat(i,No(i,[],n))}function $f(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CE(e){const t=Vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=pr(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=Nl(n)!==a||Nl(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function Sp(e){return zn(e)?e:e.contextElement}function Da(e){const t=Sp(e);if(!pr(t))return vi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=CE(t);let s=(a?Nl(n.width):n.width)/r,o=(a?Nl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const TN=vi(0);function AE(e){const t=fn(e);return!kp()||!t.visualViewport?TN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fn(e)?!1:t}function na(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Sp(e);let s=vi(1);t&&(r?zn(r)&&(s=Da(r)):s=Da(e));const o=vN(a,n,r)?AE(a):vi(0);let u=(i.left+o.x)/s.x,l=(i.top+o.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a){const p=fn(a),m=r&&zn(r)?fn(r):r;let x=p,b=$f(x);for(;b&&r&&m!==x;){const v=Da(b),y=b.getBoundingClientRect(),g=Vn(b),E=y.left+(b.clientLeft+parseFloat(g.paddingLeft))*v.x,_=y.top+(b.clientTop+parseFloat(g.paddingTop))*v.y;u*=v.x,l*=v.y,f*=v.x,h*=v.y,u+=E,l+=_,x=fn(b),b=$f(x)}}return Sl({width:f,height:h,x:u,y:l})}function wN(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=gr(r),o=t?yc(t.floating):!1;if(r===s||o&&a)return n;let u={scrollLeft:0,scrollTop:0},l=vi(1);const f=vi(0),h=pr(r);if((h||!h&&!a)&&((hs(r)!=="body"||qo(s))&&(u=xc(r)),pr(r))){const p=na(r);l=Da(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x,y:n.y*l.y-u.scrollTop*l.y+f.y}}function CN(e){return Array.from(e.getClientRects())}function Wf(e,t){const n=xc(e).scrollLeft;return t?t.left+n:na(gr(e)).left+n}function AN(e){const t=gr(e),n=xc(e),r=e.ownerDocument.body,i=un(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=un(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Wf(e);const o=-n.scrollTop;return Vn(r).direction==="rtl"&&(s+=un(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function _N(e,t){const n=fn(e),r=gr(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;const l=kp();(!l||l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o,y:u}}function NN(e,t){const n=na(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=pr(e)?Da(e):vi(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,u=i*a.x,l=r*a.y;return{width:s,height:o,x:u,y:l}}function jm(e,t,n){let r;if(t==="viewport")r=_N(e,n);else if(t==="document")r=AN(gr(e));else if(zn(t))r=NN(t,n);else{const i=AE(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Sl(r)}function _E(e,t){const n=Ci(e);return n===t||!zn(n)||es(n)?!1:Vn(n).position==="fixed"||_E(n,t)}function kN(e,t){const n=t.get(e);if(n)return n;let r=No(e,[],!1).filter(o=>zn(o)&&hs(o)!=="body"),i=null;const a=Vn(e).position==="fixed";let s=a?Ci(e):e;for(;zn(s)&&!es(s);){const o=Vn(s),u=Np(s);!u&&o.position==="fixed"&&(i=null),(a?!u&&!i:!u&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qo(s)&&!u&&_E(e,s))?r=r.filter(f=>f!==s):i=o,s=Ci(s)}return t.set(e,r),r}function SN(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?yc(t)?[]:kN(t,this._c):[].concat(n),r],o=s[0],u=s.reduce((l,f)=>{const h=jm(t,f,i);return l.top=un(h.top,l.top),l.right=Ti(h.right,l.right),l.bottom=Ti(h.bottom,l.bottom),l.left=un(h.left,l.left),l},jm(t,o,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function IN(e){const{width:t,height:n}=CE(e);return{width:t,height:n}}function ON(e,t,n){const r=pr(t),i=gr(t),a=n==="fixed",s=na(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const u=vi(0);if(r||!r&&!a)if((hs(t)!=="body"||qo(i))&&(o=xc(t)),r){const m=na(t,!0,a,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else i&&(u.x=Wf(i));let l=0,f=0;if(i&&!r&&!a){const m=i.getBoundingClientRect();f=m.top+o.scrollTop,l=m.left+o.scrollLeft-Wf(i,m)}const h=s.left+o.scrollLeft-u.x-l,p=s.top+o.scrollTop-u.y-f;return{x:h,y:p,width:s.width,height:s.height}}function yd(e){return Vn(e).position==="static"}function Um(e,t){if(!pr(e)||Vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return gr(e)===n&&(n=n.ownerDocument.body),n}function NE(e,t){const n=fn(e);if(yc(e))return n;if(!pr(e)){let i=Ci(e);for(;i&&!es(i);){if(zn(i)&&!yd(i))return i;i=Ci(i)}return n}let r=Um(e,t);for(;r&&bN(r)&&yd(r);)r=Um(r,t);return r&&es(r)&&yd(r)&&!Np(r)?n:r||EN(e)||n}const LN=async function(e){const t=this.getOffsetParent||NE,n=this.getDimensions,r=await n(e.floating);return{reference:ON(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function RN(e){return Vn(e).direction==="rtl"}const PN={convertOffsetParentRelativeRectToViewportRelativeRect:wN,getDocumentElement:gr,getClippingRect:SN,getOffsetParent:NE,getElementRects:LN,getClientRects:CN,getDimensions:IN,getScale:Da,isElement:zn,isRTL:RN};function DN(e,t){let n=null,r;const i=gr(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,u){o===void 0&&(o=!1),u===void 0&&(u=1),a();const{left:l,top:f,width:h,height:p}=e.getBoundingClientRect();if(o||t(),!h||!p)return;const m=Cu(f),x=Cu(i.clientWidth-(l+h)),b=Cu(i.clientHeight-(f+p)),v=Cu(l),g={rootMargin:-m+"px "+-x+"px "+-b+"px "+-v+"px",threshold:un(0,Ti(1,u))||1};let E=!0;function _(I){const N=I[0].intersectionRatio;if(N!==u){if(!E)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(_,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return s(!0),a}function MN(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Sp(e),f=i||a?[...l?No(l):[],...No(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const h=l&&o?DN(l,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(y=>{let[g]=y;g&&g.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let x,b=u?na(e):null;u&&v();function v(){const y=na(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,x=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(g=>{i&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),h==null||h(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(x)}}const FN=mN,BN=gN,jN=fN,UN=xN,HN=hN,Hm=dN,zN=yN,VN=(e,t,n)=>{const r=new Map,i={platform:PN,...n},a={...i.platform,_c:r};return cN(e,t,{...i,platform:a})};var Wu=typeof document<"u"?T.useLayoutEffect:T.useEffect;function Il(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Il(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Il(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function kE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zm(e,t){const n=kE(e);return Math.round(t*n)/n}function xd(e){const t=T.useRef(e);return Wu(()=>{t.current=e}),t}function YN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:u,open:l}=e,[f,h]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=T.useState(r);Il(p,r)||m(r);const[x,b]=T.useState(null),[v,y]=T.useState(null),g=T.useCallback(D=>{D!==N.current&&(N.current=D,b(D))},[]),E=T.useCallback(D=>{D!==L.current&&(L.current=D,y(D))},[]),_=a||x,I=s||v,N=T.useRef(null),L=T.useRef(null),M=T.useRef(f),$=u!=null,H=xd(u),W=xd(i),F=xd(l),K=T.useCallback(()=>{if(!N.current||!L.current)return;const D={placement:t,strategy:n,middleware:p};W.current&&(D.platform=W.current),VN(N.current,L.current,D).then(G=>{const C={...G,isPositioned:F.current!==!1};z.current&&!Il(M.current,C)&&(M.current=C,cs.flushSync(()=>{h(C)}))})},[p,t,n,W,F]);Wu(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(D=>({...D,isPositioned:!1})))},[l]);const z=T.useRef(!1);Wu(()=>(z.current=!0,()=>{z.current=!1}),[]),Wu(()=>{if(_&&(N.current=_),I&&(L.current=I),_&&I){if(H.current)return H.current(_,I,K);K()}},[_,I,K,H,$]);const te=T.useMemo(()=>({reference:N,floating:L,setReference:g,setFloating:E}),[g,E]),ie=T.useMemo(()=>({reference:_,floating:I}),[_,I]),se=T.useMemo(()=>{const D={position:n,left:0,top:0};if(!ie.floating)return D;const G=zm(ie.floating,f.x),C=zm(ie.floating,f.y);return o?{...D,transform:"translate("+G+"px, "+C+"px)",...kE(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:C}},[n,o,ie.floating,f.x,f.y]);return T.useMemo(()=>({...f,update:K,refs:te,elements:ie,floatingStyles:se}),[f,K,te,ie,se])}const $N=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hm({element:r.current,padding:i}).fn(n):{}:r?Hm({element:r,padding:i}).fn(n):{}}}},WN=(e,t)=>({...FN(e),options:[e,t]}),qN=(e,t)=>({...BN(e),options:[e,t]}),GN=(e,t)=>({...zN(e),options:[e,t]}),QN=(e,t)=>({...jN(e),options:[e,t]}),KN=(e,t)=>({...UN(e),options:[e,t]}),XN=(e,t)=>({...HN(e),options:[e,t]}),JN=(e,t)=>({...$N(e),options:[e,t]});var ZN="Arrow",SE=T.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return c.jsx(Nt.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});SE.displayName=ZN;var ek=SE;function tk(e){const[t,n]=T.useState(void 0);return hr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,o=l.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ip="Popper",[IE,OE]=mp(Ip),[nk,LE]=IE(Ip),RE=e=>{const{__scopePopper:t,children:n}=e,[r,i]=T.useState(null);return c.jsx(nk,{scope:t,anchor:r,onAnchorChange:i,children:n})};RE.displayName=Ip;var PE="PopperAnchor",DE=T.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=LE(PE,n),s=T.useRef(null),o=Zt(t,s);return T.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(Nt.div,{...i,ref:o})});DE.displayName=PE;var Op="PopperContent",[rk,ik]=IE(Op),ME=T.forwardRef((e,t)=>{var Ze,Qe,lt,pt,gn,$n;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...b}=e,v=LE(Op,n),[y,g]=T.useState(null),E=Zt(t,yn=>g(yn)),[_,I]=T.useState(null),N=tk(_),L=(N==null?void 0:N.width)??0,M=(N==null?void 0:N.height)??0,$=r+(a!=="center"?"-"+a:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},W=Array.isArray(l)?l:[l],F=W.length>0,K={padding:H,boundary:W.filter(sk),altBoundary:F},{refs:z,floatingStyles:te,placement:ie,isPositioned:se,middlewareData:D}=YN({strategy:"fixed",placement:$,whileElementsMounted:(...yn)=>MN(...yn,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[WN({mainAxis:i+M,alignmentAxis:s}),u&&qN({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?GN():void 0,...K}),u&&QN({...K}),KN({...K,apply:({elements:yn,rects:Wn,availableWidth:jr,availableHeight:xn})=>{const{width:Li,height:O}=Wn.reference,R=yn.floating.style;R.setProperty("--radix-popper-available-width",`${jr}px`),R.setProperty("--radix-popper-available-height",`${xn}px`),R.setProperty("--radix-popper-anchor-width",`${Li}px`),R.setProperty("--radix-popper-anchor-height",`${O}px`)}}),_&&JN({element:_,padding:o}),ok({arrowWidth:L,arrowHeight:M}),p&&XN({strategy:"referenceHidden",...K})]}),[G,C]=jE(ie),re=On(x);hr(()=>{se&&(re==null||re())},[se,re]);const le=(Ze=D.arrow)==null?void 0:Ze.x,k=(Qe=D.arrow)==null?void 0:Qe.y,Ee=((lt=D.arrow)==null?void 0:lt.centerOffset)!==0,[He,he]=T.useState();return hr(()=>{y&&he(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:se?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(pt=D.transformOrigin)==null?void 0:pt.x,(gn=D.transformOrigin)==null?void 0:gn.y].join(" "),...(($n=D.hide)==null?void 0:$n.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(rk,{scope:n,placedSide:G,onArrowChange:I,arrowX:le,arrowY:k,shouldHideArrow:Ee,children:c.jsx(Nt.div,{"data-side":G,"data-align":C,...b,ref:E,style:{...b.style,animation:se?void 0:"none"}})})})});ME.displayName=Op;var FE="PopperArrow",ak={top:"bottom",right:"left",bottom:"top",left:"right"},BE=T.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=ik(FE,r),s=ak[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(ek,{...i,ref:n,style:{...i.style,display:"block"}})})});BE.displayName=FE;function sk(e){return e!==null}var ok=e=>({name:"transformOrigin",options:e,fn(t){var v,y,g;const{placement:n,rects:r,middlewareData:i}=t,s=((v=i.arrow)==null?void 0:v.centerOffset)!==0,o=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,f]=jE(n),h={start:"0%",center:"50%",end:"100%"}[f],p=(((y=i.arrow)==null?void 0:y.x)??0)+o/2,m=(((g=i.arrow)==null?void 0:g.y)??0)+u/2;let x="",b="";return l==="bottom"?(x=s?h:`${p}px`,b=`${-u}px`):l==="top"?(x=s?h:`${p}px`,b=`${r.floating.height+u}px`):l==="right"?(x=`${-u}px`,b=s?h:`${m}px`):l==="left"&&(x=`${r.floating.width+u}px`,b=s?h:`${m}px`),{data:{x,y:b}}}});function jE(e){const[t,n="center"]=e.split("-");return[t,n]}var uk=RE,lk=DE,ck=ME,dk=BE;function fk(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var UE=e=>{const{present:t,children:n}=e,r=hk(t),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),a=Zt(r.ref,pk(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:a}):null};UE.displayName="Presence";function hk(e){const[t,n]=T.useState(),r=T.useRef({}),i=T.useRef(e),a=T.useRef("none"),s=e?"mounted":"unmounted",[o,u]=fk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const l=Au(r.current);a.current=o==="mounted"?l:"none"},[o]),hr(()=>{const l=r.current,f=i.current;if(f!==e){const p=a.current,m=Au(l);e?u("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),hr(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,h=m=>{const b=Au(r.current).includes(m.animationName);if(m.target===t&&b&&(u("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(a.current=Au(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:T.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Au(e){return(e==null?void 0:e.animationName)||"none"}function pk(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var[bc,dF]=Y_("Tooltip",[OE]),Ec=OE(),HE="TooltipProvider",mk=700,qf="tooltip.open",[gk,Lp]=bc(HE),zE=e=>{const{__scopeTooltip:t,delayDuration:n=mk,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,o]=T.useState(!0),u=T.useRef(!1),l=T.useRef(0);return T.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),c.jsx(gk,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:T.useCallback(()=>{window.clearTimeout(l.current),o(!1)},[]),onClose:T.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:T.useCallback(f=>{u.current=f},[]),disableHoverableContent:i,children:a})};zE.displayName=HE;var Tc="Tooltip",[yk,vc]=bc(Tc),VE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,u=Lp(Tc,e.__scopeTooltip),l=Ec(t),[f,h]=T.useState(null),p=tN(),m=T.useRef(0),x=s??u.disableHoverableContent,b=o??u.delayDuration,v=T.useRef(!1),[y=!1,g]=Rb({prop:r,defaultProp:i,onChange:L=>{L?(u.onOpen(),document.dispatchEvent(new CustomEvent(qf))):u.onClose(),a==null||a(L)}}),E=T.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),_=T.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,g(!0)},[g]),I=T.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g(!1)},[g]),N=T.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,g(!0),m.current=0},b)},[b,g]);return T.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(uk,{...l,children:c.jsx(yk,{scope:t,contentId:p,open:y,stateAttribute:E,trigger:f,onTriggerChange:h,onTriggerEnter:T.useCallback(()=>{u.isOpenDelayed?N():_()},[u.isOpenDelayed,N,_]),onTriggerLeave:T.useCallback(()=>{x?I():(window.clearTimeout(m.current),m.current=0)},[I,x]),onOpen:_,onClose:I,disableHoverableContent:x,children:n})})};VE.displayName=Tc;var Gf="TooltipTrigger",YE=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=vc(Gf,n),a=Lp(Gf,n),s=Ec(n),o=T.useRef(null),u=Zt(t,o,i.onTriggerChange),l=T.useRef(!1),f=T.useRef(!1),h=T.useCallback(()=>l.current=!1,[]);return T.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(lk,{asChild:!0,...s,children:c.jsx(Nt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:Ge(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:Ge(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:Ge(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ge(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:Ge(e.onBlur,i.onClose),onClick:Ge(e.onClick,i.onClose)})})});YE.displayName=Gf;var xk="TooltipPortal",[fF,bk]=bc(xk,{forceMount:void 0}),ts="TooltipContent",$E=T.forwardRef((e,t)=>{const n=bk(ts,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=vc(ts,e.__scopeTooltip);return c.jsx(UE,{present:r||s.open,children:s.disableHoverableContent?c.jsx(WE,{side:i,...a,ref:t}):c.jsx(Ek,{side:i,...a,ref:t})})}),Ek=T.forwardRef((e,t)=>{const n=vc(ts,e.__scopeTooltip),r=Lp(ts,e.__scopeTooltip),i=T.useRef(null),a=Zt(t,i),[s,o]=T.useState(null),{trigger:u,onClose:l}=n,f=i.current,{onPointerInTransitChange:h}=r,p=T.useCallback(()=>{o(null),h(!1)},[h]),m=T.useCallback((x,b)=>{const v=x.currentTarget,y={x:x.clientX,y:x.clientY},g=Ck(y,v.getBoundingClientRect()),E=Ak(y,g),_=_k(b.getBoundingClientRect()),I=kk([...E,..._]);o(I),h(!0)},[h]);return T.useEffect(()=>()=>p(),[p]),T.useEffect(()=>{if(u&&f){const x=v=>m(v,f),b=v=>m(v,u);return u.addEventListener("pointerleave",x),f.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",b)}}},[u,f,m,p]),T.useEffect(()=>{if(s){const x=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},g=(u==null?void 0:u.contains(v))||(f==null?void 0:f.contains(v)),E=!Nk(y,s);g?p():E&&(p(),l())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,f,s,l,p]),c.jsx(WE,{...e,ref:a})}),[Tk,vk]=bc(Tc,{isInside:!1}),WE=T.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,u=vc(ts,n),l=Ec(n),{onClose:f}=u;return T.useEffect(()=>(document.addEventListener(qf,f),()=>document.removeEventListener(qf,f)),[f]),T.useEffect(()=>{if(u.trigger){const h=p=>{const m=p.target;m!=null&&m.contains(u.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,f]),c.jsx(bE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(ck,{"data-state":u.stateAttribute,...l,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Ab,{children:r}),c.jsx(Tk,{scope:n,isInside:!0,children:c.jsx(PA,{id:u.contentId,role:"tooltip",children:i||r})})]})})});$E.displayName=ts;var qE="TooltipArrow",wk=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ec(n);return vk(qE,n).isInside?null:c.jsx(dk,{...i,...r,ref:t})});wk.displayName=qE;function Ck(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ak(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function _k(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Nk(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a].x,u=t[a].y,l=t[s].x,f=t[s].y;u>r!=f>r&&n<(l-o)*(r-u)/(f-u)+o&&(i=!i)}return i}function kk(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Sk(t)}function Sk(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ik=zE,Ok=VE,Lk=YE,GE=$E;const Rk=Ik,Pk=Ok,Dk=Lk,QE=T.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(GE,{ref:r,sideOffset:t,className:kt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));QE.displayName=GE.displayName;var wc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cc=typeof window>"u"||"Deno"in globalThis;function Pn(){}function Mk(e,t){return typeof e=="function"?e(t):e}function Fk(e){return typeof e=="number"&&e>=0&&e!==1/0}function Bk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vm(e,t){return typeof e=="function"?e(t):e}function jk(e,t){return typeof e=="function"?e(t):e}function Ym(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==Rp(s,t.options))return!1}else if(!So(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function $m(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ko(t.options.mutationKey)!==ko(a))return!1}else if(!So(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Rp(e,t){return((t==null?void 0:t.queryKeyHashFn)||ko)(e)}function ko(e){return JSON.stringify(e,(t,n)=>Qf(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function So(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!So(e[n],t[n])):!1}function KE(e,t){if(e===t)return e;const n=Wm(e)&&Wm(t);if(n||Qf(e)&&Qf(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let u=0;for(let l=0;l<s;l++){const f=n?l:a[l];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(o[f]=void 0,u++):(o[f]=KE(e[f],t[f]),o[f]===e[f]&&e[f]!==void 0&&u++)}return i===s&&u===i?e:o}return t}function Wm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Qf(e){if(!qm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Uk(e){return new Promise(t=>{setTimeout(t,e)})}function Hk(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?KE(e,t):t}function zk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Vk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var XE=Symbol();function JE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===XE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var zi,ei,Fa,ty,Yk=(ty=class extends wc{constructor(){super();ke(this,zi);ke(this,ei);ke(this,Fa);be(this,Fa,t=>{if(!Cc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,ei)||this.setEventListener(V(this,Fa))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,ei))==null||t.call(this),be(this,ei,void 0))}setEventListener(t){var n;be(this,Fa,t),(n=V(this,ei))==null||n.call(this),be(this,ei,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,zi)!==t&&(be(this,zi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,zi)=="boolean"?V(this,zi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zi=new WeakMap,ei=new WeakMap,Fa=new WeakMap,ty),ZE=new Yk,Ba,ti,ja,ny,$k=(ny=class extends wc{constructor(){super();ke(this,Ba,!0);ke(this,ti);ke(this,ja);be(this,ja,t=>{if(!Cc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,ti)||this.setEventListener(V(this,ja))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,ti))==null||t.call(this),be(this,ti,void 0))}setEventListener(t){var n;be(this,ja,t),(n=V(this,ti))==null||n.call(this),be(this,ti,t(this.setOnline.bind(this)))}setOnline(t){V(this,Ba)!==t&&(be(this,Ba,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Ba)}},Ba=new WeakMap,ti=new WeakMap,ja=new WeakMap,ny),Ol=new $k;function Wk(e){return Math.min(1e3*2**e,3e4)}function e2(e){return(e??"online")==="online"?Ol.isOnline():!0}var t2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function bd(e){return e instanceof t2}function n2(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((y,g)=>{a=y,s=g}),u=y=>{var g;r||(x(new t2(y)),(g=e.abort)==null||g.call(e))},l=()=>{t=!0},f=()=>{t=!1},h=()=>ZE.isFocused()&&(e.networkMode==="always"||Ol.isOnline())&&e.canRun(),p=()=>e2(e.networkMode)&&e.canRun(),m=y=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,y),i==null||i(),a(y))},x=y=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,y),i==null||i(),s(y))},b=()=>new Promise(y=>{var g;i=E=>{(r||h())&&y(E)},(g=e.onPause)==null||g.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),v=()=>{if(r)return;let y;const g=n===0?e.initialPromise:void 0;try{y=g??e.fn()}catch(E){y=Promise.reject(E)}Promise.resolve(y).then(m).catch(E=>{var M;if(r)return;const _=e.retry??(Cc?0:3),I=e.retryDelay??Wk,N=typeof I=="function"?I(n,E):I,L=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,E);if(t||!L){x(E);return}n++,(M=e.onFail)==null||M.call(e,n,E),Uk(N).then(()=>h()?void 0:b()).then(()=>{t?x(E):v()})})};return{promise:o,cancel:u,continue:()=>(i==null||i(),o),cancelRetry:l,continueRetry:f,canStart:p,start:()=>(p()?v():b().then(v),o)}}function qk(){let e=[],t=0,n=o=>{o()},r=o=>{o()},i=o=>setTimeout(o,0);const a=o=>{t?e.push(o):i(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&i(()=>{r(()=>{o.forEach(u=>{n(u)})})})};return{batch:o=>{let u;t++;try{u=o()}finally{t--,t||s()}return u},batchCalls:o=>(...u)=>{a(()=>{o(...u)})},schedule:a,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Mt=qk(),Vi,ry,r2=(ry=class{constructor(){ke(this,Vi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fk(this.gcTime)&&be(this,Vi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Cc?1/0:5*60*1e3))}clearGcTimeout(){V(this,Vi)&&(clearTimeout(V(this,Vi)),be(this,Vi,void 0))}},Vi=new WeakMap,ry),Ua,Ha,vn,Ct,jo,Yi,Dn,vr,iy,Gk=(iy=class extends r2{constructor(t){super();ke(this,Dn);ke(this,Ua);ke(this,Ha);ke(this,vn);ke(this,Ct);ke(this,jo);ke(this,Yi);be(this,Yi,!1),be(this,jo,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,vn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,Ua,Kk(this.options)),this.state=t.state??V(this,Ua),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,Ct))==null?void 0:t.promise}setOptions(t){this.options={...V(this,jo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,vn).remove(this)}setData(t,n){const r=Hk(this.state.data,t,this.options);return Et(this,Dn,vr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Et(this,Dn,vr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=V(this,Ct))==null?void 0:r.promise;return(i=V(this,Ct))==null||i.cancel(t),n?n.then(Pn).catch(Pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Ua))}isActive(){return this.observers.some(t=>jk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Bk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,Ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,vn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,Ct)&&(V(this,Yi)?V(this,Ct).cancel({revert:!0}):V(this,Ct).cancelRetry()),this.scheduleGc()),V(this,vn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Et(this,Dn,vr).call(this,{type:"invalidate"})}fetch(t,n){var u,l,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,Ct))return V(this,Ct).continueRetry(),V(this,Ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(be(this,Yi,!0),r.signal)})},a=()=>{const h=JE(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),be(this,Yi,!1),this.options.persister?this.options.persister(h,p,this):h(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),be(this,Ha,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&Et(this,Dn,vr).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const o=h=>{var p,m,x,b;bd(h)&&h.silent||Et(this,Dn,vr).call(this,{type:"error",error:h}),bd(h)||((m=(p=V(this,vn).config).onError)==null||m.call(p,h,this),(b=(x=V(this,vn).config).onSettled)==null||b.call(x,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return be(this,Ct,n2({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,m,x,b;if(h===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){o(v);return}(m=(p=V(this,vn).config).onSuccess)==null||m.call(p,h,this),(b=(x=V(this,vn).config).onSettled)==null||b.call(x,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(h,p)=>{Et(this,Dn,vr).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{Et(this,Dn,vr).call(this,{type:"pause"})},onContinue:()=>{Et(this,Dn,vr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),V(this,Ct).start()}},Ua=new WeakMap,Ha=new WeakMap,vn=new WeakMap,Ct=new WeakMap,jo=new WeakMap,Yi=new WeakMap,Dn=new WeakSet,vr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Qk(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return bd(i)&&i.revert&&V(this,Ha)?{...V(this,Ha),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Mt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,vn).notify({query:this,type:"updated",action:t})})},iy);function Qk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:e2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Kk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zn,ay,Xk=(ay=class extends wc{constructor(t={}){super();ke(this,Zn);this.config=t,be(this,Zn,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??Rp(i,n);let s=this.get(a);return s||(s=new Gk({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){V(this,Zn).has(t.queryHash)||(V(this,Zn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,Zn).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,Zn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,Zn).get(t)}getAll(){return[...V(this,Zn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ym(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ym(t,r)):n}notify(t){Mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zn=new WeakMap,ay),er,Rt,$i,tr,$r,sy,Jk=(sy=class extends r2{constructor(t){super();ke(this,tr);ke(this,er);ke(this,Rt);ke(this,$i);this.mutationId=t.mutationId,be(this,Rt,t.mutationCache),be(this,er,[]),this.state=t.state||Zk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,er).includes(t)||(V(this,er).push(t),this.clearGcTimeout(),V(this,Rt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,er,V(this,er).filter(n=>n!==t)),this.scheduleGc(),V(this,Rt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,er).length||(this.state.status==="pending"?this.scheduleGc():V(this,Rt).remove(this))}continue(){var t;return((t=V(this,$i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,u,l,f,h,p,m,x,b,v,y,g,E,_,I,N,L;be(this,$i,n2({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,$)=>{Et(this,tr,$r).call(this,{type:"failed",failureCount:M,error:$})},onPause:()=>{Et(this,tr,$r).call(this,{type:"pause"})},onContinue:()=>{Et(this,tr,$r).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Rt).canRun(this)}));const n=this.state.status==="pending",r=!V(this,$i).canStart();try{if(!n){Et(this,tr,$r).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=V(this,Rt).config).onMutate)==null?void 0:a.call(i,t,this));const $=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));$!==this.state.context&&Et(this,tr,$r).call(this,{type:"pending",context:$,variables:t,isPaused:r})}const M=await V(this,$i).start();return await((l=(u=V(this,Rt).config).onSuccess)==null?void 0:l.call(u,M,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,M,t,this.state.context)),await((m=(p=V(this,Rt).config).onSettled)==null?void 0:m.call(p,M,null,this.state.variables,this.state.context,this)),await((b=(x=this.options).onSettled)==null?void 0:b.call(x,M,null,t,this.state.context)),Et(this,tr,$r).call(this,{type:"success",data:M}),M}catch(M){try{throw await((y=(v=V(this,Rt).config).onError)==null?void 0:y.call(v,M,t,this.state.context,this)),await((E=(g=this.options).onError)==null?void 0:E.call(g,M,t,this.state.context)),await((I=(_=V(this,Rt).config).onSettled)==null?void 0:I.call(_,void 0,M,this.state.variables,this.state.context,this)),await((L=(N=this.options).onSettled)==null?void 0:L.call(N,void 0,M,t,this.state.context)),M}finally{Et(this,tr,$r).call(this,{type:"error",error:M})}}finally{V(this,Rt).runNext(this)}}},er=new WeakMap,Rt=new WeakMap,$i=new WeakMap,tr=new WeakSet,$r=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Mt.batch(()=>{V(this,er).forEach(r=>{r.onMutationUpdate(t)}),V(this,Rt).notify({mutation:this,type:"updated",action:t})})},sy);function Zk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var an,Uo,oy,eS=(oy=class extends wc{constructor(t={}){super();ke(this,an);ke(this,Uo);this.config=t,be(this,an,new Map),be(this,Uo,Date.now())}build(t,n,r){const i=new Jk({mutationCache:this,mutationId:++ru(this,Uo)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=_u(t),r=V(this,an).get(n)??[];r.push(t),V(this,an).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=_u(t);if(V(this,an).has(n)){const i=(r=V(this,an).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?V(this,an).delete(n):V(this,an).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,an).get(_u(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,an).get(_u(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,an).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$m(n,r))}findAll(t={}){return this.getAll().filter(n=>$m(t,n))}notify(t){Mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Mt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pn))))}},an=new WeakMap,Uo=new WeakMap,oy);function _u(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Gm(e){return{onFetch:(t,n)=>{var f,h,p,m,x;const r=t.options,i=(p=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let o={pages:[],pageParams:[]},u=0;const l=async()=>{let b=!1;const v=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},y=JE(t.options,t.fetchOptions),g=async(E,_,I)=>{if(b)return Promise.reject();if(_==null&&E.pages.length)return Promise.resolve(E);const N={queryKey:t.queryKey,pageParam:_,direction:I?"backward":"forward",meta:t.options.meta};v(N);const L=await y(N),{maxPages:M}=t.options,$=I?Vk:zk;return{pages:$(E.pages,L,M),pageParams:$(E.pageParams,_,M)}};if(i&&a.length){const E=i==="backward",_=E?tS:Qm,I={pages:a,pageParams:s},N=_(r,I);o=await g(I,N,E)}else{const E=e??a.length;do{const _=u===0?s[0]??r.initialPageParam:Qm(r,o);if(u>0&&_==null)break;o=await g(o,_),u++}while(u<E)}return o};t.options.persister?t.fetchFn=()=>{var b,v;return(v=(b=t.options).persister)==null?void 0:v.call(b,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Qm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function tS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var We,ni,ri,za,Va,ii,Ya,$a,uy,nS=(uy=class{constructor(e={}){ke(this,We);ke(this,ni);ke(this,ri);ke(this,za);ke(this,Va);ke(this,ii);ke(this,Ya);ke(this,$a);be(this,We,e.queryCache||new Xk),be(this,ni,e.mutationCache||new eS),be(this,ri,e.defaultOptions||{}),be(this,za,new Map),be(this,Va,new Map),be(this,ii,0)}mount(){ru(this,ii)._++,V(this,ii)===1&&(be(this,Ya,ZE.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,We).onFocus())})),be(this,$a,Ol.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,We).onOnline())})))}unmount(){var e,t;ru(this,ii)._--,V(this,ii)===0&&((e=V(this,Ya))==null||e.call(this),be(this,Ya,void 0),(t=V(this,$a))==null||t.call(this),be(this,$a,void 0))}isFetching(e){return V(this,We).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,We).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,We).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Vm(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,We).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=V(this,We).get(r.queryHash),a=i==null?void 0:i.state.data,s=Mk(t,a);if(s!==void 0)return V(this,We).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Mt.batch(()=>V(this,We).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,We).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,We);Mt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,We),r={type:"active",...e};return Mt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Mt.batch(()=>V(this,We).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Pn).catch(Pn)}invalidateQueries(e={},t={}){return Mt.batch(()=>{if(V(this,We).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Mt.batch(()=>V(this,We).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Pn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,We).build(this,t);return n.isStaleByTime(Vm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pn).catch(Pn)}fetchInfiniteQuery(e){return e.behavior=Gm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pn).catch(Pn)}ensureInfiniteQueryData(e){return e.behavior=Gm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ol.isOnline()?V(this,ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,We)}getMutationCache(){return V(this,ni)}getDefaultOptions(){return V(this,ri)}setDefaultOptions(e){be(this,ri,e)}setQueryDefaults(e,t){V(this,za).set(ko(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,za).values()];let n={};return t.forEach(r=>{So(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,Va).set(ko(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,Va).values()];let n={};return t.forEach(r=>{So(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===XE&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,We).clear(),V(this,ni).clear()}},We=new WeakMap,ni=new WeakMap,ri=new WeakMap,za=new WeakMap,Va=new WeakMap,ii=new WeakMap,Ya=new WeakMap,$a=new WeakMap,uy),rS=T.createContext(void 0),iS=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(rS.Provider,{value:e,children:t}));/**
* @remix-run/router v1.19.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Io.apply(this,arguments)}var oi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(oi||(oi={}));const Km="popstate";function aS(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:s,hash:o}=r.location;return Kf("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ll(i)}return oS(t,n,null,e)}function rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sS(){return Math.random().toString(36).substr(2,8)}function Xm(e,t){return{usr:e.state,key:e.key,idx:t}}function Kf(e,t,n,r){return n===void 0&&(n=null),Io({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ps(t):t,{state:n,key:t&&t.key||r||sS()})}function Ll(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ps(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function oS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=oi.Pop,u=null,l=f();l==null&&(l=0,s.replaceState(Io({},s.state,{idx:l}),""));function f(){return(s.state||{idx:null}).idx}function h(){o=oi.Pop;let v=f(),y=v==null?null:v-l;l=v,u&&u({action:o,location:b.location,delta:y})}function p(v,y){o=oi.Push;let g=Kf(b.location,v,y);l=f()+1;let E=Xm(g,l),_=b.createHref(g);try{s.pushState(E,"",_)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(_)}a&&u&&u({action:o,location:b.location,delta:1})}function m(v,y){o=oi.Replace;let g=Kf(b.location,v,y);l=f();let E=Xm(g,l),_=b.createHref(g);s.replaceState(E,"",_),a&&u&&u({action:o,location:b.location,delta:0})}function x(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof v=="string"?v:Ll(v);return g=g.replace(/ $/,"%20"),rt(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let b={get action(){return o},get location(){return e(i,s)},listen(v){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Km,h),u=v,()=>{i.removeEventListener(Km,h),u=null}},createHref(v){return t(i,v)},createURL:x,encodeLocation(v){let y=x(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:m,go(v){return s.go(v)}};return b}var Jm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jm||(Jm={}));function uS(e,t,n){return n===void 0&&(n="/"),lS(e,t,n,!1)}function lS(e,t,n,r){let i=typeof t=="string"?ps(t):t,a=Pp(i.pathname||"/",n);if(a==null)return null;let s=a2(e);cS(s);let o=null;for(let u=0;o==null&&u<s.length;++u){let l=TS(a);o=bS(s[u],l,r)}return o}function a2(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,s,o)=>{let u={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};u.relativePath.startsWith("/")&&(rt(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let l=yi([r,u.relativePath]),f=n.concat(u);a.children&&a.children.length>0&&(rt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),a2(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:yS(l,a.index),routesMeta:f})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let u of s2(a.path))i(a,s,u)}),t}function s2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=s2(r.join("/")),o=[];return o.push(...s.map(u=>u===""?a:[a,u].join("/"))),i&&o.push(...s),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function cS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dS=/^:[\w-]+$/,fS=3,hS=2,pS=1,mS=10,gS=-2,Zm=e=>e==="*";function yS(e,t){let n=e.split("/"),r=n.length;return n.some(Zm)&&(r+=gS),t&&(r+=hS),n.filter(i=>!Zm(i)).reduce((i,a)=>i+(dS.test(a)?fS:a===""?pS:mS),r)}function xS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function bS(e,t,n){let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o<r.length;++o){let u=r[o],l=o===r.length-1,f=a==="/"?t:t.slice(a.length)||"/",h=eg({path:u.relativePath,caseSensitive:u.caseSensitive,end:l},f),p=u.route;if(!h&&l&&n&&!r[r.length-1].route.index&&(h=eg({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!h)return null;Object.assign(i,h.params),s.push({params:i,pathname:yi([a,h.pathname]),pathnameBase:AS(yi([a,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(a=yi([a,h.pathnameBase]))}return s}function eg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ES(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((l,f,h)=>{let{paramName:p,isOptional:m}=f;if(p==="*"){let b=o[h]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const x=o[h];return m&&!x?l[p]=void 0:l[p]=(x||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:s,pattern:e}}function ES(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),i2(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,u)=>(r.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function TS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return i2(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Pp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ps(e):e;return{pathname:n?n.startsWith("/")?n:wS(n,t):t,search:_S(r),hash:NS(i)}}function wS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ed(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function CS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function o2(e,t){let n=CS(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function u2(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ps(e):(i=Io({},e),rt(!i.pathname||!i.pathname.includes("?"),Ed("?","pathname","search",i)),rt(!i.pathname||!i.pathname.includes("#"),Ed("#","pathname","hash",i)),rt(!i.search||!i.search.includes("#"),Ed("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}o=h>=0?t[h]:"/"}let u=vS(i,o),l=s&&s!=="/"&&s.endsWith("/"),f=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(l||f)&&(u.pathname+="/"),u}const yi=e=>e.join("/").replace(/\/\/+/g,"/"),AS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_S=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const l2=["post","put","patch","delete"];new Set(l2);const SS=["get",...l2];new Set(SS);/**
* React Router v6.26.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}const Dp=T.createContext(null),IS=T.createContext(null),aa=T.createContext(null),Ac=T.createContext(null),Si=T.createContext({outlet:null,matches:[],isDataRoute:!1}),c2=T.createContext(null);function OS(e,t){let{relative:n}=t===void 0?{}:t;Go()||rt(!1);let{basename:r,navigator:i}=T.useContext(aa),{hash:a,pathname:s,search:o}=f2(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:yi([r,s])),i.createHref({pathname:u,search:o,hash:a})}function Go(){return T.useContext(Ac)!=null}function Br(){return Go()||rt(!1),T.useContext(Ac).location}function d2(e){T.useContext(aa).static||T.useLayoutEffect(e)}function Qo(){let{isDataRoute:e}=T.useContext(Si);return e?$S():LS()}function LS(){Go()||rt(!1);let e=T.useContext(Dp),{basename:t,future:n,navigator:r}=T.useContext(aa),{matches:i}=T.useContext(Si),{pathname:a}=Br(),s=JSON.stringify(o2(i,n.v7_relativeSplatPath)),o=T.useRef(!1);return d2(()=>{o.current=!0}),T.useCallback(function(l,f){if(f===void 0&&(f={}),!o.current)return;if(typeof l=="number"){r.go(l);return}let h=u2(l,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:yi([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,a,e])}function RS(){let{matches:e}=T.useContext(Si),t=e[e.length-1];return t?t.params:{}}function f2(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(aa),{matches:i}=T.useContext(Si),{pathname:a}=Br(),s=JSON.stringify(o2(i,r.v7_relativeSplatPath));return T.useMemo(()=>u2(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function PS(e,t){return DS(e,t)}function DS(e,t,n,r){Go()||rt(!1);let{navigator:i}=T.useContext(aa),{matches:a}=T.useContext(Si),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let l=Br(),f;if(t){var h;let v=typeof t=="string"?ps(t):t;u==="/"||(h=v.pathname)!=null&&h.startsWith(u)||rt(!1),f=v}else f=l;let p=f.pathname||"/",m=p;if(u!=="/"){let v=u.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=uS(e,{pathname:m}),b=US(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:yi([u,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:yi([u,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r);return t&&b?T.createElement(Ac.Provider,{value:{location:Oo({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:oi.Pop}},b):b}function MS(){let e=YS(),t=kS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,null)}const FS=T.createElement(MS,null);class BS extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?T.createElement(Si.Provider,{value:this.props.routeContext},T.createElement(c2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jS(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(Dp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Si.Provider,{value:t},r)}function US(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let f=s.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);f>=0||rt(!1),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<s.length;f++){let h=s[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=f),h.route.id){let{loaderData:p,errors:m}=n,x=h.route.loader&&p[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||x){u=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}return s.reduceRight((f,h,p)=>{let m,x=!1,b=null,v=null;n&&(m=o&&h.route.id?o[h.route.id]:void 0,b=h.route.errorElement||FS,u&&(l<0&&p===0?(x=!0,v=null):l===p&&(x=!0,v=h.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,p+1)),g=()=>{let E;return m?E=b:x?E=v:h.route.Component?E=T.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=f,T.createElement(jS,{match:h,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:E})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?T.createElement(BS,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var h2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(h2||{}),Rl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rl||{});function HS(e){let t=T.useContext(Dp);return t||rt(!1),t}function zS(e){let t=T.useContext(IS);return t||rt(!1),t}function VS(e){let t=T.useContext(Si);return t||rt(!1),t}function p2(e){let t=VS(),n=t.matches[t.matches.length-1];return n.route.id||rt(!1),n.route.id}function YS(){var e;let t=T.useContext(c2),n=zS(Rl.UseRouteError),r=p2(Rl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $S(){let{router:e}=HS(h2.UseNavigateStable),t=p2(Rl.UseNavigateStable),n=T.useRef(!1);return d2(()=>{n.current=!0}),T.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Oo({fromRouteId:t},a)))},[e,t])}function wt(e){rt(!1)}function WS(e){let{basename:t="/",children:n=null,location:r,navigationType:i=oi.Pop,navigator:a,static:s=!1,future:o}=e;Go()&&rt(!1);let u=t.replace(/^\/*/,"/"),l=T.useMemo(()=>({basename:u,navigator:a,static:s,future:Oo({v7_relativeSplatPath:!1},o)}),[u,o,a,s]);typeof r=="string"&&(r=ps(r));let{pathname:f="/",search:h="",hash:p="",state:m=null,key:x="default"}=r,b=T.useMemo(()=>{let v=Pp(f,u);return v==null?null:{location:{pathname:v,search:h,hash:p,state:m,key:x},navigationType:i}},[u,f,h,p,m,x,i]);return b==null?null:T.createElement(aa.Provider,{value:l},T.createElement(Ac.Provider,{children:n,value:b}))}function qS(e){let{children:t,location:n}=e;return PS(Xf(t),n)}new Promise(()=>{});function Xf(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let a=[...t,i];if(r.type===T.Fragment){n.push.apply(n,Xf(r.props.children,a));return}r.type!==wt&&rt(!1),!r.props.index||!r.props.children||rt(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Xf(r.props.children,a)),n.push(s)}),n}/**
* React Router DOM v6.26.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Jf(){return Jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jf.apply(this,arguments)}function GS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function QS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KS(e,t){return e.button===0&&(!t||t==="_self")&&!QS(e)}const XS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],JS="6";try{window.__reactRouterVersion=JS}catch{}const ZS="startTransition",tg=by[ZS];function e6(e){let{basename:t,children:n,future:r,window:i}=e,a=T.useRef();a.current==null&&(a.current=aS({window:i,v5Compat:!0}));let s=a.current,[o,u]=T.useState({action:s.action,location:s.location}),{v7_startTransition:l}=r||{},f=T.useCallback(h=>{l&&tg?tg(()=>u(h)):u(h)},[u,l]);return T.useLayoutEffect(()=>s.listen(f),[s,f]),T.createElement(WS,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s,future:r})}const t6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",n6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:s,state:o,target:u,to:l,preventScrollReset:f,unstable_viewTransition:h}=t,p=GS(t,XS),{basename:m}=T.useContext(aa),x,b=!1;if(typeof l=="string"&&n6.test(l)&&(x=l,t6))try{let E=new URL(window.location.href),_=l.startsWith("//")?new URL(E.protocol+l):new URL(l),I=Pp(_.pathname,m);_.origin===E.origin&&I!=null?l=I+_.search+_.hash:b=!0}catch{}let v=OS(l,{relative:i}),y=r6(l,{replace:s,state:o,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:h});function g(E){r&&r(E),E.defaultPrevented||y(E)}return T.createElement("a",Jf({},p,{href:x||v,onClick:b||a?r:g,ref:n,target:u}))});var ng;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ng||(ng={}));var rg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rg||(rg={}));function r6(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:o}=t===void 0?{}:t,u=Qo(),l=Br(),f=f2(e,{relative:s});return T.useCallback(h=>{if(KS(h,n)){h.preventDefault();let p=r!==void 0?r:Ll(l)===Ll(f);u(e,{replace:p,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:o})}},[l,u,f,r,i,n,e,a,s,o])}const i6=tE("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-muted",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Xt=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const s=r?Ao:"button";return c.jsx(s,{className:kt(i6({variant:t,size:n,className:e})),ref:a,...i})});Xt.displayName="Button";const Pl=({className:e="",size:t=24,variant:n="icon"})=>n==="logo"?c.jsx("img",{src:"/img/trailcraft-mark.png",alt:"",width:t,height:t,className:`inline-block object-contain ${e}`,"aria-hidden":"true"}):c.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[c.jsx("ellipse",{cx:"12",cy:"18.2",rx:"8",ry:"3.1"}),c.jsx("ellipse",{cx:"12",cy:"12.8",rx:"5.6",ry:"2.6"}),c.jsx("ellipse",{cx:"12",cy:"7.6",rx:"3.4",ry:"2.3"})]}),m2="braintrailz-theme",Zf="braintrailz-theme-preference";function a6(e){return e==="/blog"||e.startsWith("/blog/")}function ig(){try{const e=localStorage.getItem(m2);if(e==="light"||e==="dark")return e}catch{}return null}function s6(e){if(e.stored===null&&a6(e.pathname))return"light"}function o6(){window.dispatchEvent(new Event(Zf))}function u6(e){return window.addEventListener(Zf,e),()=>window.removeEventListener(Zf,e)}const ag=()=>{const{forcedTheme:e,resolvedTheme:t,setTheme:n}=mc(),[r,i]=T.useState(!1);T.useEffect(()=>{i(!0)},[]);const a=(e??t)==="dark";return c.jsx(Xt,{type:"button",variant:"ghost",size:"icon","aria-label":r&&a?"Switch to light mode":"Switch to dark mode",onClick:()=>{n(a?"light":"dark"),o6()},className:"text-foreground hover:bg-braintrailz-blue/20",children:r?a?c.jsx(_3,{size:20}):c.jsx(x3,{size:20}):c.jsx("span",{className:"h-5 w-5"})})},en=()=>{const[e,t]=T.useState(!1),[n,r]=T.useState(!1),i=Qo(),a=Br(),s=a.pathname==="/";T.useEffect(()=>{const h=()=>{r(window.scrollY>50)};return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]);const o=h=>{if(t(!1),a.pathname!=="/")i("/",{state:{scrollTo:h}});else{const p=document.getElementById(h);p&&p.scrollIntoView({behavior:"smooth"})}},u=()=>{if(t(!1),a.pathname!=="/")i("/",{state:{scrollTo:"contact",intent:"half-day"}});else{i("/",{state:{scrollTo:"contact",intent:"half-day"}});const h=document.getElementById("contact");h&&h.scrollIntoView({behavior:"smooth"})}},l=h=>{t(!1),s&&(h.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))},f=!s||n;return c.jsxs("header",{className:`fixed w-full z-50 transition-all duration-300 ${f?"bg-braintrailz-darker/90 backdrop-blur-md shadow-md":"bg-transparent"}`,children:[c.jsxs("nav",{className:"container-custom flex items-center justify-between py-4",children:[c.jsx("div",{className:"flex flex-col items-start",children:c.jsxs(Ft,{to:"/",onClick:l,className:"text-2xl font-bold text-foreground flex items-center",children:[c.jsx("div",{className:"bg-white rounded-full p-1 ring-1 ring-black/10 dark:ring-0",children:c.jsx("img",{src:"/logo.png",alt:"Braintrailz",className:"h-8 w-auto"})}),c.jsxs("span",{className:"ml-0 pl-1",children:["rain",c.jsx("span",{className:"text-gradient",children:"Trailz"})]})]})}),c.jsxs("div",{className:"md:hidden flex items-center gap-1",children:[c.jsx(ag,{}),c.jsx(Xt,{variant:"ghost",size:"icon",onClick:()=>t(!e),className:"text-foreground hover:bg-braintrailz-blue/20",children:e?c.jsx(oE,{size:24}):c.jsx(y3,{size:24})})]}),c.jsxs("div",{className:"hidden md:flex md:items-center md:gap-6",children:[c.jsx("button",{type:"button",onClick:()=>o("offer"),className:"text-foreground hover:text-braintrailz-blue transition-colors",children:"Work with me"}),c.jsx("button",{type:"button",onClick:()=>o("engagement"),className:"text-foreground hover:text-braintrailz-blue transition-colors",children:"How it works"}),c.jsx("button",{type:"button",onClick:()=>o("proof"),className:"text-foreground hover:text-braintrailz-blue transition-colors",children:"Proof"}),c.jsxs(Ft,{to:"/trailcraft",className:"text-muted-foreground hover:text-braintrailz-blue transition-colors inline-flex items-center gap-1",children:[c.jsx(Pl,{className:"h-4 w-4"}),"Trailcraft"]}),c.jsxs(Ft,{to:"/backpack",className:"text-muted-foreground hover:text-braintrailz-blue transition-colors inline-flex items-center gap-1",children:[c.jsx(Za,{className:"h-4 w-4"}),"Backpack"]}),c.jsx(Xt,{onClick:u,className:"bg-gradient-hero hover:opacity-90 text-white",children:"Book a half-day"}),c.jsx(ag,{})]})]}),e&&c.jsx("div",{className:"md:hidden bg-braintrailz-dark border-t border-braintrailz-blue/20",children:c.jsxs("div",{className:"container-custom py-4 flex flex-col space-y-3",children:[c.jsx("button",{type:"button",onClick:()=>o("offer"),className:"text-left py-2 text-foreground hover:text-braintrailz-blue",children:"Work with me"}),c.jsx("button",{type:"button",onClick:()=>o("engagement"),className:"text-left py-2 text-foreground hover:text-braintrailz-blue",children:"How it works"}),c.jsx("button",{type:"button",onClick:()=>o("proof"),className:"text-left py-2 text-foreground hover:text-braintrailz-blue",children:"Proof"}),c.jsxs(Ft,{to:"/trailcraft",className:"py-2 text-muted-foreground hover:text-braintrailz-blue inline-flex items-center gap-1.5",onClick:()=>t(!1),children:[c.jsx(Pl,{className:"h-5 w-5"}),"Trailcraft"]}),c.jsxs(Ft,{to:"/backpack",className:"py-2 text-muted-foreground hover:text-braintrailz-blue inline-flex items-center gap-1.5",onClick:()=>t(!1),children:[c.jsx(Za,{className:"h-5 w-5"}),"Backpack"]}),c.jsx(Xt,{onClick:u,className:"bg-gradient-hero hover:opacity-90 text-white w-full",children:"Book a half-day"})]})})]})},l6=()=>{const e=Qo(),t=()=>{e("/",{state:{scrollTo:"contact",intent:"half-day"}});const r=document.getElementById("contact");r&&r.scrollIntoView({behavior:"smooth"})},n=()=>{const r=document.getElementById("engagement");r&&r.scrollIntoView({behavior:"smooth"})};return c.jsxs("section",{className:"min-h-[90vh] flex items-center relative overflow-hidden",id:"home",children:[c.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url('back.png')",backgroundPosition:"center top"},children:c.jsx("div",{className:"hero-overlay"})}),c.jsxs("div",{className:"absolute inset-0 z-10 pointer-events-none",children:[c.jsx("div",{className:"absolute top-1/3 left-1/4 w-96 h-96 bg-braintrailz-blue/10 rounded-full filter blur-3xl"}),c.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-96 h-96 bg-braintrailz-purple/10 rounded-full filter blur-3xl"})]}),c.jsx("div",{className:"container-custom relative z-20 pt-28 pb-16",children:c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("p",{className:"text-sm font-semibold tracking-wide text-braintrailz-blue mb-4",children:"Fractional CTO · AI advisor"}),c.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6 animate-fade-in",children:"Marc J. Greenberg"}),c.jsx("p",{className:"text-2xl md:text-3xl font-semibold mb-6 leading-snug",children:"A technical right arm for operators who are behind on AI and need someone who has shipped."}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8 max-w-2xl",children:"I help teams in hospitality, proptech, and payments solve challenging software and product problems with AI and technology. You focus on your customers, I'll handle the tech. After one working session, you'll have a clear, actionable punch list instead of a slide deck."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 sm:items-center",children:[c.jsxs(Xt,{onClick:t,className:"bg-gradient-hero hover:opacity-90 text-white px-8 py-6 text-lg",children:["Book a half-day",c.jsx(r3,{className:"ml-2 h-5 w-5"})]}),c.jsx(Xt,{variant:"outline",className:"border-braintrailz-blue text-braintrailz-blue hover:bg-braintrailz-blue/10 px-8 py-6 text-lg",onClick:n,children:"See how an engagement works"})]}),c.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"Half-day starts at $7,500. Remote from Delray Beach, or on site with travel."})]})})]})},c6=[{label:"40 years",detail:"shipping software"},{label:"AI Advisory",detail:"The Margin Stack",href:"/blog/the-margin-stack"},{label:"Proptech at scale",detail:"BuildingLink, 5,000 buildings"},{label:"Shipping now",detail:"BLT, AI-native POS"}],d6=()=>c.jsx("section",{className:"border-y border-braintrailz-blue/20 bg-braintrailz-dark",children:c.jsx("div",{className:"container-custom py-8",children:c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6",children:c6.map(e=>c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-semibold text-foreground",children:e.label}),"href"in e&&e.href?c.jsx(Ft,{to:e.href,className:"text-sm text-muted-foreground hover:text-braintrailz-blue transition-colors",children:e.detail}):c.jsx("div",{className:"text-sm text-muted-foreground",children:e.detail})]},e.label))})})}),f6=[{intent:"half-day",kicker:"Start here",name:"Half-day strategy session",price:"$7,500 + travel",summary:"4 hours with your team. A week of prep by email. You leave with the work.",points:["Custom session using the Functional Technology Framework","Immediate punch list and bloodspots","Technology projects for the next 1 to 6 months"],cta:"Book a half-day",featured:!0},{intent:"engaged",kicker:"90-day sprint",name:"CTO Engaged",price:"$10,000 / month",summary:"I sit in the chair. Strategy, vendors, stand-ups, the map.",points:["Functional Technology Systems Map in the first 30 days","Weekly sprint planning and daily stand-ups","Hire, train, evaluate, and fire vendors and contractors","3-month minimum"],cta:"Talk about Engaged",featured:!1},{intent:"advisor",kicker:"After we have a map",name:"CTO Advisor",price:"$5,000 / month",summary:"I stay in the loop without owning the calendar. Lowest financial risk once the path is clear.",points:["Opens after a half-day or a 90-day Engaged sprint","Twice-monthly sprint planning, quarterly planning","Unlimited email","6-month commitment"],cta:"Talk about Advisor",featured:!1}],h6=()=>{const e=Qo(),t=n=>{e("/",{state:{scrollTo:"contact",intent:n}});const r=document.getElementById("contact");r&&r.scrollIntoView({behavior:"smooth"})};return c.jsx("section",{className:"section-padding",id:"offer",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs("div",{className:"max-w-3xl mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What you can buy"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"One person. Three ways to hire me. Most people start with the half-day because it turns a vague AI worry into a list of work."})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:f6.map(n=>c.jsxs("div",{className:`flex flex-col rounded-xl border p-6 bg-braintrailz-dark ${n.featured?"border-braintrailz-blue/60 shadow-lg shadow-braintrailz-blue/10":"border-braintrailz-blue/20"}`,children:[c.jsx("div",{className:"text-sm font-semibold text-braintrailz-blue mb-2",children:n.kicker}),c.jsx("h3",{className:"text-xl font-bold mb-1",children:n.name}),c.jsx("p",{className:"text-lg font-semibold mb-3",children:n.price}),c.jsx("p",{className:"text-muted-foreground mb-4",children:n.summary}),c.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 mb-6 flex-grow",children:n.points.map(r=>c.jsx("li",{className:"pl-4 relative before:content-[''] before:absolute before:left-0 before:top-2 before:h-1.5 before:w-1.5 before:rounded-full before:bg-braintrailz-blue",children:r},r))}),c.jsx(Xt,{onClick:()=>t(n.intent),className:n.featured?"w-full bg-gradient-hero hover:opacity-90 text-white":"w-full border-braintrailz-blue text-braintrailz-blue hover:bg-braintrailz-blue/10",variant:n.featured?"default":"outline",children:n.cta})]},n.name))}),c.jsxs("p",{className:"mt-8 text-sm text-muted-foreground",children:["Full detail on"," ",c.jsx("button",{type:"button",onClick:()=>e("/pricing"),className:"text-braintrailz-blue hover:underline",children:"the pricing page"}),". Invoiced by Codemarc Consulting LLC."]})]})})},sg=[{number:"01",title:"Half-day",description:"A week of prep by email, then four hours with your team. You leave with a punch list, and the roadmap for the next 1 to 6 months of technology work."},{number:"02",title:"90-day Engaged sprint",description:"If the punch list is real, I sit in the chair. Map in 30 days. Weekly planning. Daily stand-ups. Vendors and contractors get managed. Short-term, high-octane."},{number:"03",title:"Advisor",description:"Once the path is clear, I stay as a strategic advisor. Twice-monthly planning, unlimited email, lowest ongoing spend. You do not start here."}],p6=()=>c.jsx("section",{className:"section-padding bg-braintrailz-dark",id:"engagement",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs("div",{className:"max-w-3xl mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How an engagement actually works"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"This is not a five-step agency waterfall. It is a sequence that earns the next conversation. I do not run your sales. I am the technical right arm once the problem is real."})]}),c.jsx("div",{className:"max-w-4xl",children:sg.map((e,t)=>c.jsxs("div",{className:"relative flex items-start mb-12 last:mb-0",children:[t<sg.length-1&&c.jsx("div",{className:"absolute top-12 bottom-0 left-6 w-0.5 bg-gradient-to-b from-braintrailz-blue to-braintrailz-purple"}),c.jsx("div",{className:"flex-shrink-0 mr-6",children:c.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-hero flex items-center justify-center",children:c.jsx("span",{className:"text-white font-bold",children:e.number})})}),c.jsxs("div",{className:"pt-1.5",children:[c.jsx("h3",{className:"text-xl font-bold mb-2",children:e.title}),c.jsx("p",{className:"text-muted-foreground max-w-2xl",children:e.description})]})]},e.number))})]})}),m6=["Operators and founders in hospitality, restaurants, proptech, or payments who need a technical right arm","Accounting and advisory firms that need a senior leader to build and operationalize an AI strategy","Teams that know they are 6 to 10 months behind on AI and want a map, not a vendor tour","Leaders who want a CTO-level peer in the room, then someone who will stay and execute","A real software company that needs an engineering leader who still builds: management, architecture, ideation, shipping. I am a builder"],g6=["A ticket queue with a title. Staff-aug, body shop, or a manager seat that never touches the product. I am a builder","Anyone who wants me to run sales, marketing, or the pipeline","A research graduate with no shipping experience. That is not my profile","A free architecture review dressed up as a coffee chat","A spray-and-pray recruiter blast with no real problem attached. If the seat is real and the work is mine, we can talk"],y6=()=>c.jsx("section",{className:"section-padding",id:"who",children:c.jsxs("div",{className:"container-custom",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-10",children:"Who this is for"}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[c.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[c.jsx("h3",{className:"text-lg font-semibold text-braintrailz-blue mb-4",children:"Hire me if"}),c.jsx("ul",{className:"space-y-3 text-muted-foreground",children:m6.map(e=>c.jsx("li",{children:e},e))})]}),c.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[c.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Skip me if"}),c.jsx("ul",{className:"space-y-3 text-muted-foreground",children:g6.map(e=>c.jsx("li",{children:e},e))})]})]})]})}),x6=({title:e,description:t,image:n,tags:r,link:i})=>c.jsxs("div",{className:"rounded-lg overflow-hidden bg-braintrailz-dark border border-braintrailz-blue/20 card-hover",children:[c.jsx("div",{className:"h-48 overflow-hidden relative",children:c.jsx("a",{href:i,target:i!=null&&i.startsWith("http")?"_blank":void 0,rel:i!=null&&i.startsWith("http")?"noopener noreferrer":void 0,children:c.jsx("img",{src:n,alt:e,className:"w-full h-full object-cover transition-transform duration-500 hover:scale-105"})})}),c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex justify-between items-start mb-3",children:[c.jsx("h3",{className:"text-xl font-bold text-foreground",children:c.jsx("a",{href:i,target:i!=null&&i.startsWith("http")?"_blank":void 0,rel:i!=null&&i.startsWith("http")?"noopener noreferrer":void 0,children:e})}),i&&c.jsx("a",{href:i,target:i!=null&&i.startsWith("http")?"_blank":void 0,rel:i!=null&&i.startsWith("http")?"noopener noreferrer":void 0,className:"text-braintrailz-blue hover:text-braintrailz-purple transition-colors",children:c.jsx(Wo,{size:18})})]}),c.jsx("p",{className:"text-muted-foreground mb-4",children:t}),c.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((a,s)=>{const o=typeof a=="string"?a:a.label,u=typeof a=="string"?void 0:a.link,l=u==null?void 0:u.startsWith("http"),f=c.jsx("span",{className:"inline-block bg-braintrailz-blue/10 text-foreground hover:text-braintrailz-blue transition-colors text-xs px-2 py-1 rounded",children:o});return u?c.jsx("a",{href:u,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,children:f},s):c.jsx("span",{children:f},s)})})]})]}),b6=[{title:"Beyond Limited Thinking",description:"AI-native POS for restaurants and hospitality. Payments freedom, not another terminal lease. This is what I am shipping now. Proof I still build, not just advise.",image:"/img/pos.png",link:"https://bltwai.com",tags:[{label:"Hospitality",link:"https://bltwai.com"},{label:"Payments",link:"https://bae.bltcore.com"}]},{title:"Trailcraft",description:"Build the tool. Publish the method. Field guides and maps left for the next person on the path, including Repack and the recruiter book.",image:"/img/trailcraft-hero.jpg",tags:[{label:"Methods",link:"/trailcraft"},{label:"Repack",link:"/trailcraft/repack"},{label:"Recruiter",link:"/recruiter/"}],link:"/trailcraft"}],E6=()=>c.jsx("section",{className:"section-padding bg-braintrailz-dark",id:"proof",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs("div",{className:"max-w-3xl mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Proof I ship"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"IBM Boca Raton. Twenty years at Information Builders and iWay. BuildingLink across 5,000 buildings. Logistics AI. Office of the CTO at Partech. Then Braintrailz. The current proof is BLT."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl",children:b6.map(e=>c.jsx(x6,{...e},e.title))})]})}),T6=()=>c.jsx("section",{className:"section-padding",id:"method",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs("div",{className:"max-w-3xl mb-10",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How I work is public"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"You do not have to care about the trail language to hire me. It is here so you can see the kit and the method before we get on a call."})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[c.jsxs(Ft,{to:"/trailcraft",className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6 card-hover",children:[c.jsx(Pl,{className:"h-8 w-8 mb-3 text-braintrailz-blue"}),c.jsx("h3",{className:"text-xl font-bold mb-2",children:"Trailcraft"}),c.jsx("p",{className:"text-muted-foreground",children:"The methods I leave on the path. Repack, field guides, maps. Proof that I publish the work, not just talk about process."})]}),c.jsxs(Ft,{to:"/backpack",className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6 card-hover",children:[c.jsx(Za,{className:"h-8 w-8 mb-3 text-braintrailz-blue"}),c.jsx("h3",{className:"text-xl font-bold mb-2",children:"Backpack"}),c.jsx("p",{className:"text-muted-foreground",children:"The tools I actually carry. If you want to know what I will show up with, look here first."})]})]})]})});var Ko=e=>e.type==="checkbox",Ca=e=>e instanceof Date,Dt=e=>e==null;const g2=e=>typeof e=="object";var it=e=>!Dt(e)&&!Array.isArray(e)&&g2(e)&&!Ca(e),v6=e=>it(e)&&e.target?Ko(e.target)?e.target.checked:e.target.value:e,w6=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,C6=(e,t)=>e.has(w6(t)),A6=e=>{const t=e.constructor&&e.constructor.prototype;return it(t)&&t.hasOwnProperty("isPrototypeOf")},Mp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Tn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Mp&&(e instanceof Blob||e instanceof FileList))&&(n||it(e)))if(t=n?[]:{},!n&&!A6(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Tn(e[r]));else return e;return t}var _c=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>e===void 0,ue=(e,t,n)=>{if(!t||!it(e))return n;const r=_c(t.split(/[,[\].]+?/)).reduce((i,a)=>Dt(i)?i:i[a],e);return Ke(r)||r===e?Ke(e[t])?n:e[t]:r},Jn=e=>typeof e=="boolean",Fp=e=>/^\w*$/.test(e),y2=e=>_c(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Fe=(e,t,n)=>{let r=-1;const i=Fp(t)?[t]:y2(t),a=i.length,s=a-1;for(;++r<a;){const o=i[r];let u=n;if(r!==s){const l=e[o];u=it(l)||Array.isArray(l)?l:isNaN(+i[r+1])?{}:[]}if(o==="__proto__")return;e[o]=u,e=e[o]}return e};const og={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Bn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Er={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};X.createContext(null);var _6=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Bn.all&&(t._proxyFormState[s]=!r||Bn.all),e[s]}});return i},Yt=e=>it(e)&&!Object.keys(e).length,N6=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Yt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===Bn.all)},qu=e=>Array.isArray(e)?e:[e];function k6(e){const t=X.useRef(e);t.current=e,X.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var lr=e=>typeof e=="string",S6=(e,t,n,r,i)=>lr(e)?(r&&t.watch.add(e),ue(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ue(n,a))):(r&&(t.watchAll=!0),n),I6=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ug=e=>({isOnSubmit:!e||e===Bn.onSubmit,isOnBlur:e===Bn.onBlur,isOnChange:e===Bn.onChange,isOnAll:e===Bn.all,isOnTouch:e===Bn.onTouched}),lg=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Js=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=ue(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Js(o,t))break}else if(it(o)&&Js(o,t))break}}};var O6=(e,t,n)=>{const r=qu(ue(e,n));return Fe(r,"root",t[n]),Fe(e,n,r),e},Bp=e=>e.type==="file",kr=e=>typeof e=="function",Dl=e=>{if(!Mp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Gu=e=>lr(e),jp=e=>e.type==="radio",Ml=e=>e instanceof RegExp;const cg={value:!1,isValid:!1},dg={value:!0,isValid:!0};var x2=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ke(e[0].attributes.value)?Ke(e[0].value)||e[0].value===""?dg:{value:e[0].value,isValid:!0}:dg:cg}return cg};const fg={isValid:!1,value:null};var b2=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,fg):fg;function hg(e,t,n="validate"){if(Gu(e)||Array.isArray(e)&&e.every(Gu)||Jn(e)&&!e)return{type:n,message:Gu(e)?e:"",ref:t}}var la=e=>it(e)&&!Ml(e)?e:{value:e,message:""},pg=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:u,minLength:l,min:f,max:h,pattern:p,validate:m,name:x,valueAsNumber:b,mount:v,disabled:y}=e._f,g=ue(t,x);if(!v||y)return{};const E=s?s[0]:a,_=F=>{r&&E.reportValidity&&(E.setCustomValidity(Jn(F)?"":F||""),E.reportValidity())},I={},N=jp(a),L=Ko(a),M=N||L,$=(b||Bp(a))&&Ke(a.value)&&Ke(g)||Dl(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,H=I6.bind(null,x,n,I),W=(F,K,z,te=Er.maxLength,ie=Er.minLength)=>{const se=F?K:z;I[x]={type:F?te:ie,message:se,ref:a,...H(F?te:ie,se)}};if(i?!Array.isArray(g)||!g.length:o&&(!M&&($||Dt(g))||Jn(g)&&!g||L&&!x2(s).isValid||N&&!b2(s).isValid)){const{value:F,message:K}=Gu(o)?{value:!!o,message:o}:la(o);if(F&&(I[x]={type:Er.required,message:K,ref:E,...H(Er.required,K)},!n))return _(K),I}if(!$&&(!Dt(f)||!Dt(h))){let F,K;const z=la(h),te=la(f);if(!Dt(g)&&!isNaN(g)){const ie=a.valueAsNumber||g&&+g;Dt(z.value)||(F=ie>z.value),Dt(te.value)||(K=ie<te.value)}else{const ie=a.valueAsDate||new Date(g),se=C=>new Date(new Date().toDateString()+" "+C),D=a.type=="time",G=a.type=="week";lr(z.value)&&g&&(F=D?se(g)>se(z.value):G?g>z.value:ie>new Date(z.value)),lr(te.value)&&g&&(K=D?se(g)<se(te.value):G?g<te.value:ie<new Date(te.value))}if((F||K)&&(W(!!F,z.message,te.message,Er.max,Er.min),!n))return _(I[x].message),I}if((u||l)&&!$&&(lr(g)||i&&Array.isArray(g))){const F=la(u),K=la(l),z=!Dt(F.value)&&g.length>+F.value,te=!Dt(K.value)&&g.length<+K.value;if((z||te)&&(W(z,F.message,K.message),!n))return _(I[x].message),I}if(p&&!$&&lr(g)){const{value:F,message:K}=la(p);if(Ml(F)&&!g.match(F)&&(I[x]={type:Er.pattern,message:K,ref:a,...H(Er.pattern,K)},!n))return _(K),I}if(m){if(kr(m)){const F=await m(g,t),K=hg(F,E);if(K&&(I[x]={...K,...H(Er.validate,K.message)},!n))return _(K.message),I}else if(it(m)){let F={};for(const K in m){if(!Yt(F)&&!n)break;const z=hg(await m[K](g,t),E,K);z&&(F={...z,...H(K,z.message)},_(z.message),n&&(I[x]=F))}if(!Yt(F)&&(I[x]={ref:E,...F},!n))return I}}return _(!0),I};function L6(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ke(e)?r++:e[t[r++]];return e}function R6(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ke(e[t]))return!1;return!0}function at(e,t){const n=Array.isArray(t)?t:Fp(t)?[t]:y2(t),r=n.length===1?e:L6(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(it(r)&&Yt(r)||Array.isArray(r)&&R6(r))&&at(e,n.slice(0,-1)),e}var Td=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},Fl=e=>Dt(e)||!g2(e);function Zr(e,t){if(Fl(e)||Fl(t))return e===t;if(Ca(e)&&Ca(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Ca(a)&&Ca(s)||it(a)&&it(s)||Array.isArray(a)&&Array.isArray(s)?!Zr(a,s):a!==s)return!1}}return!0}var E2=e=>e.type==="select-multiple",P6=e=>jp(e)||Ko(e),vd=e=>Dl(e)&&e.isConnected,T2=e=>{for(const t in e)if(kr(e[t]))return!0;return!1};function Bl(e,t={}){const n=Array.isArray(e);if(it(e)||n)for(const r in e)Array.isArray(e[r])||it(e[r])&&!T2(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Bl(e[r],t[r])):Dt(e[r])||(t[r]=!0);return t}function v2(e,t,n){const r=Array.isArray(e);if(it(e)||r)for(const i in e)Array.isArray(e[i])||it(e[i])&&!T2(e[i])?Ke(t)||Fl(n[i])?n[i]=Array.isArray(e[i])?Bl(e[i],[]):{...Bl(e[i])}:v2(e[i],Dt(t)?{}:t[i],n[i]):n[i]=!Zr(e[i],t[i]);return n}var Nu=(e,t)=>v2(e,t,Bl(t)),w2=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ke(e)?e:t?e===""?NaN:e&&+e:n&&lr(e)?new Date(e):r?r(e):e;function wd(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Bp(t)?t.files:jp(t)?b2(e.refs).value:E2(t)?[...t.selectedOptions].map(({value:n})=>n):Ko(t)?x2(e.refs).value:w2(Ke(t.value)?e.ref.value:t.value,e)}var D6=(e,t,n,r)=>{const i={};for(const a of e){const s=ue(t,a);s&&Fe(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Is=e=>Ke(e)?e:Ml(e)?e.source:it(e)?Ml(e.value)?e.value.source:e.value:e;const mg="AsyncFunction";var M6=e=>(!e||!e.validate)&&!!(kr(e.validate)&&e.validate.constructor.name===mg||it(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===mg)),F6=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function gg(e,t,n){const r=ue(e,n);if(r||Fp(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=ue(t,a),o=ue(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var B6=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,j6=(e,t)=>!_c(ue(e,t)).length&&at(e,t);const U6={mode:Bn.onSubmit,reValidateMode:Bn.onChange,shouldFocusError:!0};function H6(e={}){let t={...U6,...e},n={submitCount:0,isDirty:!1,isLoading:kr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=it(t.defaultValues)||it(t.values)?Tn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Tn(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Td(),array:Td(),state:Td()},p=ug(t.mode),m=ug(t.reValidateMode),x=t.criteriaMode===Bn.all,b=O=>R=>{clearTimeout(l),l=setTimeout(O,R)},v=async O=>{if(f.isValid||O){const R=t.resolver?Yt((await M()).errors):await H(r,!0);R!==n.isValid&&h.state.next({isValid:R})}},y=(O,R)=>{(f.isValidating||f.validatingFields)&&((O||Array.from(o.mount)).forEach(U=>{U&&(R?Fe(n.validatingFields,U,R):at(n.validatingFields,U))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Yt(n.validatingFields)}))},g=(O,R=[],U,ae,ne=!0,Z=!0)=>{if(ae&&U){if(s.action=!0,Z&&Array.isArray(ue(r,O))){const ce=U(ue(r,O),ae.argA,ae.argB);ne&&Fe(r,O,ce)}if(Z&&Array.isArray(ue(n.errors,O))){const ce=U(ue(n.errors,O),ae.argA,ae.argB);ne&&Fe(n.errors,O,ce),j6(n.errors,O)}if(f.touchedFields&&Z&&Array.isArray(ue(n.touchedFields,O))){const ce=U(ue(n.touchedFields,O),ae.argA,ae.argB);ne&&Fe(n.touchedFields,O,ce)}f.dirtyFields&&(n.dirtyFields=Nu(i,a)),h.state.next({name:O,isDirty:F(O,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Fe(a,O,R)},E=(O,R)=>{Fe(n.errors,O,R),h.state.next({errors:n.errors})},_=O=>{n.errors=O,h.state.next({errors:n.errors,isValid:!1})},I=(O,R,U,ae)=>{const ne=ue(r,O);if(ne){const Z=ue(a,O,Ke(U)?ue(i,O):U);Ke(Z)||ae&&ae.defaultChecked||R?Fe(a,O,R?Z:wd(ne._f)):te(O,Z),s.mount&&v()}},N=(O,R,U,ae,ne)=>{let Z=!1,ce=!1;const Ce={name:O},B=!!(ue(r,O)&&ue(r,O)._f&&ue(r,O)._f.disabled);if(!U||ae){f.isDirty&&(ce=n.isDirty,n.isDirty=Ce.isDirty=F(),Z=ce!==Ce.isDirty);const Y=B||Zr(ue(i,O),R);ce=!!(!B&&ue(n.dirtyFields,O)),Y||B?at(n.dirtyFields,O):Fe(n.dirtyFields,O,!0),Ce.dirtyFields=n.dirtyFields,Z=Z||f.dirtyFields&&ce!==!Y}if(U){const Y=ue(n.touchedFields,O);Y||(Fe(n.touchedFields,O,U),Ce.touchedFields=n.touchedFields,Z=Z||f.touchedFields&&Y!==U)}return Z&&ne&&h.state.next(Ce),Z?Ce:{}},L=(O,R,U,ae)=>{const ne=ue(n.errors,O),Z=f.isValid&&Jn(R)&&n.isValid!==R;if(e.delayError&&U?(u=b(()=>E(O,U)),u(e.delayError)):(clearTimeout(l),u=null,U?Fe(n.errors,O,U):at(n.errors,O)),(U?!Zr(ne,U):ne)||!Yt(ae)||Z){const ce={...ae,...Z&&Jn(R)?{isValid:R}:{},errors:n.errors,name:O};n={...n,...ce},h.state.next(ce)}},M=async O=>{y(O,!0);const R=await t.resolver(a,t.context,D6(O||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return y(O),R},$=async O=>{const{errors:R}=await M(O);if(O)for(const U of O){const ae=ue(R,U);ae?Fe(n.errors,U,ae):at(n.errors,U)}else n.errors=R;return R},H=async(O,R,U={valid:!0})=>{for(const ae in O){const ne=O[ae];if(ne){const{_f:Z,...ce}=ne;if(Z){const Ce=o.array.has(Z.name),B=ne._f&&M6(ne._f);B&&f.validatingFields&&y([ae],!0);const Y=await pg(ne,a,x,t.shouldUseNativeValidation&&!R,Ce);if(B&&f.validatingFields&&y([ae]),Y[Z.name]&&(U.valid=!1,R))break;!R&&(ue(Y,Z.name)?Ce?O6(n.errors,Y,Z.name):Fe(n.errors,Z.name,Y[Z.name]):at(n.errors,Z.name))}!Yt(ce)&&await H(ce,R,U)}}return U.valid},W=()=>{for(const O of o.unMount){const R=ue(r,O);R&&(R._f.refs?R._f.refs.every(U=>!vd(U)):!vd(R._f.ref))&&he(O)}o.unMount=new Set},F=(O,R)=>(O&&R&&Fe(a,O,R),!Zr(re(),i)),K=(O,R,U)=>S6(O,o,{...s.mount?a:Ke(R)?i:lr(O)?{[O]:R}:R},U,R),z=O=>_c(ue(s.mount?a:i,O,e.shouldUnregister?ue(i,O,[]):[])),te=(O,R,U={})=>{const ae=ue(r,O);let ne=R;if(ae){const Z=ae._f;Z&&(!Z.disabled&&Fe(a,O,w2(R,Z)),ne=Dl(Z.ref)&&Dt(R)?"":R,E2(Z.ref)?[...Z.ref.options].forEach(ce=>ce.selected=ne.includes(ce.value)):Z.refs?Ko(Z.ref)?Z.refs.length>1?Z.refs.forEach(ce=>(!ce.defaultChecked||!ce.disabled)&&(ce.checked=Array.isArray(ne)?!!ne.find(Ce=>Ce===ce.value):ne===ce.value)):Z.refs[0]&&(Z.refs[0].checked=!!ne):Z.refs.forEach(ce=>ce.checked=ce.value===ne):Bp(Z.ref)?Z.ref.value="":(Z.ref.value=ne,Z.ref.type||h.values.next({name:O,values:{...a}})))}(U.shouldDirty||U.shouldTouch)&&N(O,ne,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&C(O)},ie=(O,R,U)=>{for(const ae in R){const ne=R[ae],Z=`${O}.${ae}`,ce=ue(r,Z);(o.array.has(O)||!Fl(ne)||ce&&!ce._f)&&!Ca(ne)?ie(Z,ne,U):te(Z,ne,U)}},se=(O,R,U={})=>{const ae=ue(r,O),ne=o.array.has(O),Z=Tn(R);Fe(a,O,Z),ne?(h.array.next({name:O,values:{...a}}),(f.isDirty||f.dirtyFields)&&U.shouldDirty&&h.state.next({name:O,dirtyFields:Nu(i,a),isDirty:F(O,Z)})):ae&&!ae._f&&!Dt(Z)?ie(O,Z,U):te(O,Z,U),lg(O,o)&&h.state.next({...n}),h.values.next({name:s.mount?O:void 0,values:{...a}})},D=async O=>{s.mount=!0;const R=O.target;let U=R.name,ae=!0;const ne=ue(r,U),Z=()=>R.type?wd(ne._f):v6(O),ce=Ce=>{ae=Number.isNaN(Ce)||Zr(Ce,ue(a,U,Ce))};if(ne){let Ce,B;const Y=Z(),fe=O.type===og.BLUR||O.type===og.FOCUS_OUT,ye=!F6(ne._f)&&!t.resolver&&!ue(n.errors,U)&&!ne._f.deps||B6(fe,ue(n.touchedFields,U),n.isSubmitted,m,p),Ae=lg(U,o,fe);Fe(a,U,Y),fe?(ne._f.onBlur&&ne._f.onBlur(O),u&&u(0)):ne._f.onChange&&ne._f.onChange(O);const mt=N(U,Y,fe,!1),bn=!Yt(mt)||Ae;if(!fe&&h.values.next({name:U,type:O.type,values:{...a}}),ye)return f.isValid&&(e.mode==="onBlur"?fe&&v():v()),bn&&h.state.next({name:U,...Ae?{}:mt});if(!fe&&Ae&&h.state.next({...n}),t.resolver){const{errors:Lt}=await M([U]);if(ce(Y),ae){const xr=gg(n.errors,r,U),En=gg(Lt,r,xr.name||U);Ce=En.error,U=En.name,B=Yt(Lt)}}else y([U],!0),Ce=(await pg(ne,a,x,t.shouldUseNativeValidation))[U],y([U]),ce(Y),ae&&(Ce?B=!1:f.isValid&&(B=await H(r,!0)));ae&&(ne._f.deps&&C(ne._f.deps),L(U,B,Ce,mt))}},G=(O,R)=>{if(ue(n.errors,R)&&O.focus)return O.focus(),1},C=async(O,R={})=>{let U,ae;const ne=qu(O);if(t.resolver){const Z=await $(Ke(O)?O:ne);U=Yt(Z),ae=O?!ne.some(ce=>ue(Z,ce)):U}else O?(ae=(await Promise.all(ne.map(async Z=>{const ce=ue(r,Z);return await H(ce&&ce._f?{[Z]:ce}:ce)}))).every(Boolean),!(!ae&&!n.isValid)&&v()):ae=U=await H(r);return h.state.next({...!lr(O)||f.isValid&&U!==n.isValid?{}:{name:O},...t.resolver||!O?{isValid:U}:{},errors:n.errors}),R.shouldFocus&&!ae&&Js(r,G,O?ne:o.mount),ae},re=O=>{const R={...s.mount?a:i};return Ke(O)?R:lr(O)?ue(R,O):O.map(U=>ue(R,U))},le=(O,R)=>({invalid:!!ue((R||n).errors,O),isDirty:!!ue((R||n).dirtyFields,O),error:ue((R||n).errors,O),isValidating:!!ue(n.validatingFields,O),isTouched:!!ue((R||n).touchedFields,O)}),k=O=>{O&&qu(O).forEach(R=>at(n.errors,R)),h.state.next({errors:O?n.errors:{}})},Ee=(O,R,U)=>{const ae=(ue(r,O,{_f:{}})._f||{}).ref,ne=ue(n.errors,O)||{},{ref:Z,message:ce,type:Ce,...B}=ne;Fe(n.errors,O,{...B,...R,ref:ae}),h.state.next({name:O,errors:n.errors,isValid:!1}),U&&U.shouldFocus&&ae&&ae.focus&&ae.focus()},He=(O,R)=>kr(O)?h.values.subscribe({next:U=>O(K(void 0,R),U)}):K(O,R,!0),he=(O,R={})=>{for(const U of O?qu(O):o.mount)o.mount.delete(U),o.array.delete(U),R.keepValue||(at(r,U),at(a,U)),!R.keepError&&at(n.errors,U),!R.keepDirty&&at(n.dirtyFields,U),!R.keepTouched&&at(n.touchedFields,U),!R.keepIsValidating&&at(n.validatingFields,U),!t.shouldUnregister&&!R.keepDefaultValue&&at(i,U);h.values.next({values:{...a}}),h.state.next({...n,...R.keepDirty?{isDirty:F()}:{}}),!R.keepIsValid&&v()},Ze=({disabled:O,name:R,field:U,fields:ae,value:ne})=>{if(Jn(O)&&s.mount||O){const Z=O?void 0:Ke(ne)?wd(U?U._f:ue(ae,R)._f):ne;Fe(a,R,Z),N(R,Z,!1,!1,!0)}},Qe=(O,R={})=>{let U=ue(r,O);const ae=Jn(R.disabled)||Jn(e.disabled);return Fe(r,O,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:O}},name:O,mount:!0,...R}}),o.mount.add(O),U?Ze({field:U,disabled:Jn(R.disabled)?R.disabled:e.disabled,name:O,value:R.value}):I(O,!0,R.value),{...ae?{disabled:R.disabled||e.disabled}:{},...t.progressive?{required:!!R.required,min:Is(R.min),max:Is(R.max),minLength:Is(R.minLength),maxLength:Is(R.maxLength),pattern:Is(R.pattern)}:{},name:O,onChange:D,onBlur:D,ref:ne=>{if(ne){Qe(O,R),U=ue(r,O);const Z=Ke(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,ce=P6(Z),Ce=U._f.refs||[];if(ce?Ce.find(B=>B===Z):Z===U._f.ref)return;Fe(r,O,{_f:{...U._f,...ce?{refs:[...Ce.filter(vd),Z,...Array.isArray(ue(i,O))?[{}]:[]],ref:{type:Z.type,name:O}}:{ref:Z}}}),I(O,!1,void 0,Z)}else U=ue(r,O,{}),U._f&&(U._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(C6(o.array,O)&&s.action)&&o.unMount.add(O)}}},lt=()=>t.shouldFocusError&&Js(r,G,o.mount),pt=O=>{Jn(O)&&(h.state.next({disabled:O}),Js(r,(R,U)=>{const ae=ue(r,U);ae&&(R.disabled=ae._f.disabled||O,Array.isArray(ae._f.refs)&&ae._f.refs.forEach(ne=>{ne.disabled=ae._f.disabled||O}))},0,!1))},gn=(O,R)=>async U=>{let ae;U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let ne=Tn(a);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Z,values:ce}=await M();n.errors=Z,ne=ce}else await H(r);if(at(n.errors,"root"),Yt(n.errors)){h.state.next({errors:{}});try{await O(ne,U)}catch(Z){ae=Z}}else R&&await R({...n.errors},U),lt(),setTimeout(lt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Yt(n.errors)&&!ae,submitCount:n.submitCount+1,errors:n.errors}),ae)throw ae},$n=(O,R={})=>{ue(r,O)&&(Ke(R.defaultValue)?se(O,Tn(ue(i,O))):(se(O,R.defaultValue),Fe(i,O,Tn(R.defaultValue))),R.keepTouched||at(n.touchedFields,O),R.keepDirty||(at(n.dirtyFields,O),n.isDirty=R.defaultValue?F(O,Tn(ue(i,O))):F()),R.keepError||(at(n.errors,O),f.isValid&&v()),h.state.next({...n}))},yn=(O,R={})=>{const U=O?Tn(O):i,ae=Tn(U),ne=Yt(O),Z=ne?i:ae;if(R.keepDefaultValues||(i=U),!R.keepValues){if(R.keepDirtyValues)for(const ce of o.mount)ue(n.dirtyFields,ce)?Fe(Z,ce,ue(a,ce)):se(ce,ue(Z,ce));else{if(Mp&&Ke(O))for(const ce of o.mount){const Ce=ue(r,ce);if(Ce&&Ce._f){const B=Array.isArray(Ce._f.refs)?Ce._f.refs[0]:Ce._f.ref;if(Dl(B)){const Y=B.closest("form");if(Y){Y.reset();break}}}}r={}}a=e.shouldUnregister?R.keepDefaultValues?Tn(i):{}:Tn(Z),h.array.next({values:{...Z}}),h.values.next({values:{...Z}})}o={mount:R.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!R.keepIsValid||!!R.keepDirtyValues,s.watch=!!e.shouldUnregister,h.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:ne?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!Zr(O,i)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ne?{}:R.keepDirtyValues?R.keepDefaultValues&&a?Nu(i,a):n.dirtyFields:R.keepDefaultValues&&O?Nu(i,O):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Wn=(O,R)=>yn(kr(O)?O(a):O,R);return{control:{register:Qe,unregister:he,getFieldState:le,handleSubmit:gn,setError:Ee,_executeSchema:M,_getWatch:K,_getDirty:F,_updateValid:v,_removeUnmounted:W,_updateFieldArray:g,_updateDisabledField:Ze,_getFieldArray:z,_reset:yn,_resetDefaultValues:()=>kr(t.defaultValues)&&t.defaultValues().then(O=>{Wn(O,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:O=>{n={...n,...O}},_disableForm:pt,_subjects:h,_proxyFormState:f,_setErrors:_,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(O){s=O},get _defaultValues(){return i},get _names(){return o},set _names(O){o=O},get _formState(){return n},set _formState(O){n=O},get _options(){return t},set _options(O){t={...t,...O}}},trigger:C,register:Qe,handleSubmit:gn,watch:He,setValue:se,getValues:re,reset:Wn,resetField:$n,clearErrors:k,unregister:he,setError:Ee,setFocus:(O,R={})=>{const U=ue(r,O),ae=U&&U._f;if(ae){const ne=ae.refs?ae.refs[0]:ae.ref;ne.focus&&(ne.focus(),R.shouldSelect&&ne.select())}},getFieldState:le}}function z6(e={}){const t=X.useRef(),n=X.useRef(),[r,i]=X.useState({isDirty:!1,isValidating:!1,isLoading:kr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:kr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...H6(e),formState:r});const a=t.current.control;return a._options=e,k6({subject:a._subjects.state,next:s=>{N6(s,a._proxyFormState,a._updateFormState)&&i({...a._formState})}}),X.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),X.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),X.useEffect(()=>{e.values&&!Zr(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),X.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),X.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),X.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=_6(r,a),t.current}const Qu=T.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:kt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Qu.displayName="Input";const C2=T.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:kt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));C2.displayName="Textarea";const V6={"half-day":"Half-day strategy session",engaged:"CTO Engaged",advisor:"CTO Advisor",other:"Not sure yet"},Y6=()=>{var f;const e=Br(),[t,n]=T.useState(!1),r=((f=e.state)==null?void 0:f.intent)||"half-day",{register:i,handleSubmit:a,reset:s,setValue:o,formState:{errors:u}}=z6({defaultValues:{intent:r}});T.useEffect(()=>{var h;(h=e.state)!=null&&h.intent&&o("intent",e.state.intent)},[e.state,o]);const l=async h=>{n(!0);try{const p=new FormData;for(const[x,b]of Object.entries(h))b&&p.append(x,b);if(p.set("intent",V6[h.intent]||h.intent),!(await fetch("https://formspree.io/f/xyzwjkdb",{method:"POST",body:p,headers:{Accept:"application/json"}})).ok)throw new Error("Failed to send message");Hf.success("Got it. I will get back to you within 24 hours."),s({intent:"half-day"})}catch(p){Hf.error("That did not send. Email me directly and I will pick it up."),console.error("Form submission error:",p)}finally{n(!1)}};return c.jsxs("section",{className:"section-padding bg-braintrailz-dark relative",id:"contact",children:[c.jsxs("div",{className:"absolute inset-0 z-0 overflow-hidden",children:[c.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-braintrailz-purple/10 rounded-full filter blur-3xl"}),c.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-braintrailz-blue/10 rounded-full filter blur-3xl"})]}),c.jsxs("div",{className:"container-custom relative z-10",children:[c.jsxs("div",{className:"max-w-3xl mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Book a working session"}),c.jsx("p",{className:"text-muted-foreground max-w-2xl",children:"Tell me the problem. I reply within 24 hours. Most first conversations are about the half-day."})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 max-w-5xl",children:[c.jsxs("div",{className:"bg-braintrailz-darker p-8 rounded-lg border border-braintrailz-blue/20 shadow-lg",children:[c.jsx("h3",{className:"text-xl font-bold mb-6",children:"Start here"}),c.jsxs("form",{action:"https://formspree.io/f/xyzwjkdb",method:"POST",onSubmit:a(l),className:"space-y-6",children:[c.jsx("input",{type:"hidden",name:"_subject",value:"Braintrailz engagement request"}),c.jsx("input",{type:"hidden",name:"_template",value:"table"}),c.jsx("input",{type:"hidden",name:"_captcha",value:"false"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"name",className:"text-sm text-muted-foreground",children:"Your name"}),c.jsx(Qu,{id:"name",className:`bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue ${u.name?"border-red-500":""}`,...i("name",{required:"Name is required"})}),u.name&&c.jsx("p",{className:"text-sm text-red-500",children:u.name.message})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"email",className:"text-sm text-muted-foreground",children:"Email"}),c.jsx(Qu,{id:"email",type:"email",className:`bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue ${u.email?"border-red-500":""}`,...i("email",{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}})}),u.email&&c.jsx("p",{className:"text-sm text-red-500",children:u.email.message})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"company",className:"text-sm text-muted-foreground",children:"Company (optional)"}),c.jsx(Qu,{id:"company",className:"bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue",...i("company")})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"intent",className:"text-sm text-muted-foreground",children:"What you want"}),c.jsxs("select",{id:"intent",className:"flex h-10 w-full rounded-md border border-braintrailz-blue/20 bg-braintrailz-dark px-3 py-2 text-sm text-foreground",...i("intent"),children:[c.jsx("option",{value:"half-day",children:"Half-day strategy session"}),c.jsx("option",{value:"engaged",children:"CTO Engaged"}),c.jsx("option",{value:"advisor",children:"CTO Advisor"}),c.jsx("option",{value:"other",children:"Not sure yet"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"message",className:"text-sm text-muted-foreground",children:"The problem"}),c.jsx(C2,{id:"message",placeholder:"What is stuck? Hospitality, proptech, payments, or something else. What does done look like in 90 days?",className:`bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue min-h-[150px] ${u.message?"border-red-500":""}`,...i("message",{required:"A short note helps me reply well",minLength:{value:10,message:"Give me at least a sentence"}})}),u.message&&c.jsx("p",{className:"text-sm text-red-500",children:u.message.message})]}),c.jsx(Xt,{type:"submit",className:"w-full bg-gradient-hero hover:opacity-90 text-white",disabled:t,children:t?"Sending...":c.jsxs(c.Fragment,{children:[c.jsx(C3,{className:"mr-2 h-4 w-4"})," Send"]})}),c.jsxs("p",{className:"text-xs text-center text-muted-foreground mt-4",children:["Or email"," ",c.jsx("a",{href:"mailto:info@codemarc.net",className:"text-braintrailz-blue hover:underline",children:"info@codemarc.net"})]})]})]}),c.jsx("div",{className:"flex flex-col justify-center",children:c.jsxs("div",{className:"space-y-8",children:[c.jsx("h3",{className:"text-xl font-bold",children:"Direct"}),c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 mt-1",children:c.jsx(m3,{className:"h-5 w-5 text-braintrailz-blue"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-medium",children:"Email"}),c.jsx("a",{href:"mailto:info@codemarc.net",className:"text-muted-foreground hover:text-braintrailz-blue",children:"info@codemarc.net"})]})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 mt-1",children:c.jsx(v3,{className:"h-5 w-5 text-braintrailz-blue"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-medium",children:"Phone"}),c.jsx("a",{href:"tel:+15612310111",className:"text-muted-foreground hover:text-braintrailz-blue",children:"+1 (561) 231-0111"})]})]}),c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"mr-4 mt-1",children:c.jsx(g3,{className:"h-5 w-5 text-braintrailz-blue"})}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-medium",children:"Where"}),c.jsx("p",{className:"text-muted-foreground",children:"Delray Beach, FL. Remote first. On site when the work needs it."})]})]})]})})]})]})]})},$6=[{to:"/",label:"Work with me",state:{scrollTo:"offer"}},{to:"/pricing",label:"Pricing"},{to:"/blog",label:"Blog"}],W6=[{to:"/privacy",label:"Privacy"},{to:"/terms",label:"Terms"},{to:"/sitemap",label:"Sitemap"}],tn=()=>{const e=new Date().getFullYear();return c.jsx("footer",{className:"bg-braintrailz-darker py-12 border-t border-braintrailz-blue/20",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs(Ft,{to:"/",className:"inline-block text-2xl font-bold text-foreground",children:["Brain",c.jsx("span",{className:"text-gradient",children:"Trailz"})]}),c.jsxs("div",{className:"mt-2 flex flex-col gap-6 sm:flex-row sm:items-start sm:justify-between",children:[c.jsxs("div",{children:[c.jsxs("p",{className:"text-muted-foreground max-w-md",children:["The practice of Marc J. Greenberg ",c.jsx("br",{}),"Fractional CTO and AI advisor"]}),c.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Invoiced by"," ",c.jsx("a",{href:"https://codemarc.net",className:"hover:text-braintrailz-blue",children:"Codemarc Consulting LLC"}),". Delray Beach, FL."]})]}),c.jsxs("div",{className:"flex flex-col gap-3 sm:items-end",children:[c.jsx("nav",{"aria-label":"Footer",className:"flex flex-wrap gap-x-5 gap-y-2 text-sm text-muted-foreground sm:justify-end",children:$6.map(t=>c.jsx(Ft,{to:t.to,state:t.state,className:"hover:text-braintrailz-blue",children:t.label},t.label))}),c.jsxs("div",{className:"flex space-x-4",children:[c.jsxs("a",{href:"https://github.com/braintrailz",className:"text-muted-foreground hover:text-braintrailz-blue",children:[c.jsx("span",{className:"sr-only",children:"GitHub"}),c.jsx("svg",{role:"img",viewBox:"0 0 24 24",className:"h-5 w-5 fill-current","aria-hidden":"true",children:c.jsx("path",{d:"M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"})})]}),c.jsxs("a",{href:"https://x.com/braintrailz",className:"text-muted-foreground hover:text-braintrailz-blue",children:[c.jsx("span",{className:"sr-only",children:"X"}),c.jsx("svg",{role:"img",viewBox:"0 0 24 24",className:"h-5 w-5 fill-current","aria-hidden":"true",children:c.jsx("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})})]}),c.jsxs("a",{href:"https://www.linkedin.com/in/grey-matters-13535835b",className:"text-muted-foreground hover:text-braintrailz-blue",children:[c.jsx("span",{className:"sr-only",children:"LinkedIn"}),c.jsx("svg",{role:"img",viewBox:"0 0 24 24",className:"h-5 w-5 fill-current","aria-hidden":"true",children:c.jsx("path",{d:"M22 3.47059V20.5294C22 20.9194 21.845 21.2935 21.5692 21.5693C21.2935 21.8451 20.9194 22 20.5294 22H3.47056C3.08053 22 2.70648 21.8451 2.43069 21.5693C2.15491 21.2935 1.99997 20.9194 1.99997 20.5294V3.47059C1.99997 3.08056 2.15491 2.70651 2.43069 2.43073C2.70648 2.15494 3.08053 2 3.47056 2H20.5294C20.9194 2 21.2935 2.15494 21.5692 2.43073C21.845 2.70651 22 3.08056 22 3.47059ZM7.88232 9.64706H4.94115V19.0588H7.88232V9.64706ZM8.14703 6.41176C8.14858 6.18929 8.10629 5.96869 8.02258 5.76255C7.93888 5.55642 7.81539 5.36879 7.65916 5.21039C7.50294 5.05198 7.31705 4.92589 7.1121 4.83933C6.90715 4.75277 6.68715 4.70742 6.46468 4.70588H6.41173C5.95931 4.70588 5.52541 4.88561 5.20549 5.20552C4.88558 5.52544 4.70585 5.95934 4.70585 6.41176C4.70585 6.86419 4.88558 7.29809 5.20549 7.61801C5.52541 7.93792 5.95931 8.11765 6.41173 8.11765ZM19.0588 13.3412C19.0588 10.5118 17.2588 9.41177 15.4706 9.41177C14.8851 9.38245 14.3021 9.50715 13.7798 9.77345C13.2576 10.0397 12.8142 10.4383 12.4941 10.9294H12.4117V9.64706H9.64703V19.0588H12.5882V14.0529C12.5457 13.5403 12.7072 13.0315 13.0376 12.6372C13.368 12.2429 13.8407 11.9949 14.3529 11.9471H14.4647C15.4 11.9471 16.0941 12.5353 16.0941 14.0176V19.0588H19.0353L19.0588 13.3412Z"})})]})]})]})]}),c.jsx("div",{className:"border-t border-braintrailz-blue/10 my-8"}),c.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between text-sm text-muted-foreground",children:[c.jsx("p",{children:c.jsxs("a",{href:"/analytics",className:"hover:text-braintrailz-blue",children:["© ",e," Codemarc Consulting LLC. All rights reserved."]})}),c.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-2",children:[W6.map(t=>c.jsx(Ft,{to:t.to,className:"hover:text-braintrailz-blue",children:t.label},t.to)),c.jsx("a",{href:"/old-trail/",className:"hover:text-braintrailz-blue",children:"Old trail"})]})]})]})})},q6=()=>{const e=Br();return T.useEffect(()=>{var t;if((t=e.state)!=null&&t.scrollTo){const n=document.getElementById(e.state.scrollTo);n&&n.scrollIntoView({behavior:"smooth"});return}window.scrollTo(0,0)},[e]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsx(l6,{}),c.jsx(d6,{}),c.jsx(h6,{}),c.jsx(p6,{}),c.jsx(y6,{}),c.jsx(E6,{}),c.jsx(T6,{}),c.jsx(Y6,{}),c.jsx(tn,{})]})},A2=()=>{const e=Br();return T.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-braintrailz-darker text-foreground",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-braintrailz-blue hover:underline",children:"Return to Home"})]})})},nr=T.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:kt("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));nr.displayName="Card";const rr=T.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:kt("flex flex-col space-y-1.5 p-6",e),...t}));rr.displayName="CardHeader";const ir=T.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:kt("text-2xl font-semibold leading-none tracking-tight",e),...t}));ir.displayName="CardTitle";const G6=T.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:kt("text-sm text-muted-foreground",e),...t}));G6.displayName="CardDescription";const ar=T.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:kt("p-6 pt-0",e),...t}));ar.displayName="CardContent";const Nc=T.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:kt("flex items-center p-6 pt-0",e),...t}));Nc.displayName="CardFooter";const _2=X.forwardRef(({href:e,children:t,className:n="",icon:r,style:i,tooltip:a},s)=>{const o=f=>{try{return`https://www.google.com/s2/favicons?domain=${new URL(f).hostname}&sz=32`}catch{return""}},u=o(r)||o(e),l=c.jsxs("a",{ref:s,href:e,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-muted-foreground hover:text-braintrailz-blue transition-colors group ${n}`,style:i,children:[u&&c.jsx("img",{src:u,alt:"",className:"w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity"}),c.jsx("span",{className:"text-left",children:t})]});return a?c.jsxs(Pk,{delayDuration:0,children:[c.jsx(Dk,{asChild:!0,children:l}),c.jsx(QE,{side:"top",className:"z-[100] bg-braintrailz-dark border-braintrailz-blue/20 text-foreground",children:a})]}):l});_2.displayName="FaviconLink";const Q6="August 23, 2026",K6=e=>{switch(e){case 2:return"col-span-2";case 3:return"col-span-3";default:return""}},X6=e=>{switch(e){case 2:return"md:col-span-2 lg:col-span-2";case 3:return"md:col-span-2 lg:col-span-3";default:return""}},J6=()=>{T.useEffect(()=>{window.scrollTo(0,0)},[]);const e=[{icon:c.jsx(a3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Good Vibes",description:[{text:"Lovable",link:"https://lovable.dev"},{text:"Replit",link:"https://replit.com"},{text:"Base44",link:"https://base44.com/"},{text:"Softgen",link:"https://softgen.ai"},{text:"Bolt",link:"https://bolt.new"},{text:"v0",link:"https://v0.dev/"},{text:"Refine",link:"https://ai.refine.dev/"},{text:"Rork",link:"https://rork.com/"},{text:"Ghostty",link:"https://ghostty.org/"},{text:"Fontsource",link:"https://fontsource.org/"},{text:"Drizzle",link:"https://drizzle.team"},{text:"n8n",link:"https://n8n.io/"},{text:"Obot",link:"https://obot.ai/"}],category:[]},{icon:c.jsx(iE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Trail Guidez",description:[{text:"Cursor",link:"https://cursor.sh"},{text:"Antigravity",link:"https://antigravity.google/blog"},{text:"Trae",link:"https://www.trae.ai"},{text:"Kilo",link:"https://kilo.ai/"},{text:"Ollama",link:"https://ollama.com/"},{text:"Continue",link:"https://www.continue.dev/"},{text:"Goose",link:"https://goose-docs.ai/",cols:1}],category:[]},{icon:c.jsx(N3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Base Camp",description:[{text:"Gamma",link:"https://gamma.app"},{text:"Granola",link:"https://www.granola.ai/"},{text:"Notebook",link:"https://notebooklm.google.com"},{text:"Tally",link:"https://tally.so"},{text:"Taskade",link:"https://taskade.com"},{text:"Tidycal",link:"https://tidycal.com"},{text:"ChatPRD",link:"https://chatprd.com/"},{font:10,text:"Superwhisper",link:"https://superwhisper.com",cols:1},{text:"ElevenLabs",link:"https://elevenlabs.io",cols:1},{font:10,text:"Superhuman",link:"https://superhuman.com",cols:1},{text:"Apollo",link:"https://www.apollo.io/"}],category:[]},{icon:c.jsx(l3,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),title:"Search and Chat",description:[{text:"Deepseek",link:"https://deepseek.com",cols:1},{text:"T3 Chat",link:"https://t3.chat"},{text:"Grok",link:"https://grok.com",icon:"https://x.com"},{text:"Claude",link:"https://anthropic.com"},{text:"ChatGPT",link:"https://chatgpt.com"},{text:"Perplexity",link:"https://perplexity.ai"},{text:"Gemini",link:"https://gemini.google.com"},{text:"Google AI Studio",link:"https://aistudio.google.com/",cols:1},{text:"Meta.ai",link:"https://meta.ai"},{text:"Qwen",link:"https://chat.qwen.ai/",tooltip:"Alibaba Cloud"},{text:"Huggingface",link:"https://huggingface.co",cols:1}],category:[]},{icon:c.jsx(i3,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),title:"Terminal / CLI",description:[{font:10,text:"Codex",link:"https://github.com/openai/codex"},{font:10,text:"Claude Code",link:"https://claude.com/product/claude-code"},{font:10,text:"Cursor CLI",link:"https://cursor.com/cli"},{font:10,text:"Grok Build",link:"https://x.ai/cli"},{font:10,text:"Muse Code",link:"https://dev.meta.ai/"},{font:10,text:"T3 Code",link:"https://t3.gg"},{font:10,text:"Gemini CLI",link:"https://github.com/google-gemini/gemini-cli"},{font:10,text:"AWS Q CLI",link:"https://aws.amazon.com/developer/learning/q-developer-cli/"},{font:10,text:"OpenCode",link:"https://opencode.ai/docs/"}],category:[]},{icon:c.jsx(s3,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),title:"Thinking aHead",html:c.jsx(c.Fragment,{children:c.jsxs("p",{className:"text-md italic text-muted-foreground mb-2 text-center",style:{marginTop:"-1rem"},children:[c.jsx("a",{href:"https://www.lennysnewsletter.com/",children:"Lenny's Newsletter"}),c.jsx("br",{}),c.jsx("br",{}),c.jsx("a",{href:"https://www.youtube.com/@t3dotgg",children:"Theo Browne"}),"        ",c.jsx("a",{href:"https://addyosmani.com/",children:"Addy Osmani"}),c.jsx("br",{}),c.jsx("br",{}),c.jsx("a",{href:"https://a16z.com/ai/",children:"a16z 100"}),"          ",c.jsx("a",{href:"https://www.youtube.com/@allin",children:"All-In"}),"          ",c.jsx("a",{href:"https://www.synthesia.io/post/ai-tools/",children:"Synthesia"}),c.jsx("br",{}),c.jsx("br",{}),c.jsx("a",{href:"https://github.com/steven2358/awesome-generative-ai?tab=readme-ov-file",children:"Awesome Generative AI"})]})}),category:[]},{icon:c.jsx(w3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Mining for Gold",description:[{text:"Grok Bot",link:"https://x.ai/bot",tooltip:"AI teammates on a cloud computer."},{text:"Cline",link:"https://github.com/cline/cline"},{text:"Pi.dev",link:"https://pi.dev/",tooltip:"a minimal agent harness."},{text:"OpenHands",link:"https://www.openhands.dev/"},{text:"OpenManus",link:"https://github.com/FoundationAgents/OpenManus"},{text:"NVIDIABuild",link:"https://build.nvidia.com/"},{text:"MixRoute",link:"https://mixroute.ai/"}],category:[]},{icon:c.jsx(o3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Go Pro",description:[{text:"Remotion",link:"https://www.remotion.dev/",tooltip:"Make videos programmatically."},{text:"Veo",link:"https://deepmind.google/models/veo/"},{text:"Higgsfield",link:"https://higgsfield.ai/"},{text:"HeyGen",link:"https://www.heygen.com/"},{text:"Whisk",link:"https://labs.google/fx/tools/whisk"},{text:"Mux",link:"https://www.mux.com/"}],category:[]},{icon:c.jsx(k3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Sustainable Development",html:c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-lg italic text-muted-foreground mb-2 text-center",style:{marginTop:"-1rem"},children:"Sometimes you need to lighten up the load"}),c.jsx("p",{className:"text-center text-sm mb-4",children:c.jsx("a",{href:"/trailcraft/repack",className:"text-braintrailz-blue hover:text-foreground transition-colors",children:"Ready to Repack? Preserve what the trail taught you."})}),c.jsxs("div",{className:"min-h-36 text-xs text-left text-muted-foreground",children:[c.jsx("a",{href:"https://app.gluegroups.com",children:"[Glue]"})," - was not sticky enough  •  ",c.jsx("a",{href:"https://linear.app/",children:"[Linear]"})," - done for now replaced with jira/confluence  •  ",c.jsx("a",{href:"https://www.tabnine.com/",children:"[Tabnine]"})," - not used anymore  •  ",c.jsx("a",{href:"https://windsurf.com",children:"[Windsurf]"})," - done for now replaced with Antigravity  •  ",c.jsx("a",{href:"https://openclaw.ai/",children:"[OpenClaw]"})," - too much hype, not enough substance  •  ",c.jsx("a",{href:"https://prisma.io",children:"[Prisma]"})," - replaced with Drizzle for T3 type-safety  •  ",c.jsx("a",{href:"https://devin.ai/",children:"[Devin]"})," - usage-based billing friction  •  ",c.jsx("a",{href:"https://fine.dev",children:"[Fine]"})," - not used anymore  •  ",c.jsx("a",{href:"https://bubble.io/",children:"[Bubble]"})," - not used anymore  •  ",c.jsx("a",{href:"https://retool.com/",children:"[Retool]"})," - not used anymore"]})]}),category:[]}];return c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsxs("main",{children:[c.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsx("div",{className:"container-custom",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[c.jsx(Za,{className:"inline h-9 w-9 mb-2 mr-1"}),c.jsx("span",{className:"text-gradient",children:"Back"}),"Pack"]}),c.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Last updated ",Q6]}),c.jsx("p",{className:"text-lg italic text-muted-foreground mt-0",children:"Every trailblazer needs the right tools."})]})})}),c.jsx("section",{className:"py-8 bg-braintrailz-darker",children:c.jsx("div",{className:"container-custom",children:c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(t=>c.jsxs(nr,{className:`bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover min-h-[280px] flex flex-col ${X6(t.cols)}`,children:[c.jsx(rr,{children:c.jsxs(ir,{className:"text-xl text-center flex items-center justify-center gap-2",children:[c.jsx("span",{className:"pr-1 mt-3 text-lg",children:t.icon}),t.title]})}),c.jsx(ar,{className:"flex-grow",children:"html"in t&&t.html?t.html:Array.isArray(t.description)?c.jsx("div",{className:"grid grid-cols-3 gap-x-6 gap-y-4",children:t.description.map((n,r)=>{var s;if(!((s=n.text)!=null&&s.trim()))return c.jsx("div",{className:"h-6"},`${t.title}-empty-${r}`);const i=typeof n.font=="string"?n.font:"",a=typeof n.font=="number"?{fontSize:`${n.font}pt`}:void 0;return c.jsx(_2,{href:n.link,icon:n.icon,tooltip:n.tooltip,className:`justify-start ${K6(n.cols)}${i?` ${i}`:""}`,style:a,children:n.text},`${t.title}-desc-${r}`)})}):c.jsx("p",{className:"text-muted-foreground text-center",children:t.description})}),c.jsx(Nc,{className:"justify-center gap-2",children:Array.isArray(t.category)?t.category.map((n,r)=>c.jsx("span",{className:"text-xs text-braintrailz-blue bg-braintrailz-blue/10 px-3 py-1 rounded-full",children:n},`${t.title}-${n}-${r}`)):c.jsx("span",{className:"text-xs text-braintrailz-blue bg-braintrailz-blue/10 px-3 py-1 rounded-full",children:t.category})})]},`tool-${t.title}`))})})})]}),c.jsx(tn,{})]})},Z6=()=>(T.useEffect(()=>{window.scrollTo(0,0)},[]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsx("main",{children:c.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:[c.jsx(d3,{className:"inline h-9 w-9 mb-2 mr-1"}),c.jsx("span",{className:"text-gradient",children:"Meet "}),"Grey Matters"]}),c.jsxs("p",{className:"text-lg italic text-muted-foreground mt-0",children:["Every trailblazer needs a right hand man to help them find ",c.jsx("br",{}),"the right path, right focus, right tools and right mindset."]})]}),c.jsx("div",{className:"my-10 flex justify-center",children:c.jsxs("video",{autoPlay:!0,controls:!0,className:"w-full max-w-2xl rounded-lg shadow-lg",poster:"/greymatters-poster.png",children:[c.jsx("source",{src:"https://codemarc.net/vids/v2/video.mp4",type:"video/mp4"}),c.jsx("track",{kind:"captions"}),"Your browser does not support the video tag."]})}),c.jsxs("div",{className:"my-10 flex justify-center",children:[c.jsx(Xt,{variant:"link",className:"border-braintrailz-blue text-foreground hover:bg-braintrailz-blue/10 px-4 py-2 text-xs mr-6",onClick:()=>window.open("https://chatgpt.com/g/g-D2Dqz1XIy-voice-style-tone-ai-prompt-snippet-generator","_blank"),title:"Voice/Style/Tone AI Prompt Snippet Generator",children:"vst4chatgpt"}),c.jsx(Xt,{variant:"link",className:"border-braintrailz-blue text-foreground hover:bg-braintrailz-blue/10 px-4 py-2 text-xs mr-6",onClick:()=>window.open("https://runwayml.com","_blank"),title:"a cloud-based ai platform to create, edit, and enhance visual content",children:"runwayml.com"}),c.jsx(Xt,{variant:"link",className:"border-braintrailz-blue text-foreground hover:bg-braintrailz-blue/10 px-4 py-2 text-xs mr-6",onClick:()=>window.open("https://heygen.com","_blank"),title:"Create and translate videos with AI",children:"heygen.com"})]})]})})}),c.jsx(tn,{})]})),eI=()=>c.jsxs(c.Fragment,{children:[c.jsx(en,{}),c.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:c.jsxs("div",{className:"container-custom pt-32 pb-16",children:[c.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Terms of Service"}),c.jsxs("div",{className:"prose prose-invert max-w-none",children:[c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Acceptance of Terms"}),c.jsx("p",{className:"text-muted-foreground",children:"By accessing and using Braintrailz's services, you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use our services."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. Description of Service"}),c.jsx("p",{className:"text-muted-foreground",children:"Braintrailz provides AI-powered development tools and services designed to enhance the software development process. Our services may include, but are not limited to, code analysis, development assistance, and related tools."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. User Responsibilities"}),c.jsx("p",{className:"text-muted-foreground",children:"Users are responsible for maintaining the confidentiality of their account information and for all activities that occur under their account. Users must not use our services for any illegal or unauthorized purposes."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Intellectual Property"}),c.jsx("p",{className:"text-muted-foreground",children:"All content, features, and functionality of our services are owned by Braintrailz and are protected by international copyright, trademark, and other intellectual property laws."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. Limitation of Liability"}),c.jsx("p",{className:"text-muted-foreground",children:"Braintrailz shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use or inability to use our services."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Changes to Terms"}),c.jsx("p",{className:"text-muted-foreground",children:"We reserve the right to modify these terms at any time. We will notify users of any material changes by posting the new terms on this page."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. Contact Information"}),c.jsx("p",{className:"text-muted-foreground",children:"For any questions about these Terms of Service, please contact us at support@braintrailz.com"})]}),c.jsx("div",{className:"text-sm text-muted-foreground mt-12",children:c.jsxs("p",{children:["Last updated: ",new Date().toLocaleDateString()]})})]})]})}),c.jsx(tn,{})]}),tI=()=>c.jsxs(c.Fragment,{children:[c.jsx(en,{}),c.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:c.jsxs("div",{className:"container-custom pt-32 pb-16",children:[c.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Privacy Policy"}),c.jsxs("div",{className:"prose prose-invert max-w-none",children:[c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Introduction"}),c.jsx("p",{className:"text-muted-foreground",children:"At Braintrailz, we take your privacy seriously. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our services. Please read this privacy policy carefully. If you do not agree with the terms of this privacy policy, please do not access our services."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. Information We Collect"}),c.jsx("p",{className:"text-muted-foreground mb-4",children:"We may collect information about you in various ways, including:"}),c.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[c.jsx("li",{children:"Personal information (name, email address, company information)"}),c.jsx("li",{children:"Usage data (how you interact with our services)"}),c.jsx("li",{children:"Technical data (IP address, browser type, device information)"}),c.jsx("li",{children:"Code and project data (when using our development tools)"})]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. How We Use Your Information"}),c.jsx("p",{className:"text-muted-foreground mb-4",children:"We use the information we collect to:"}),c.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[c.jsx("li",{children:"Provide and maintain our services"}),c.jsx("li",{children:"Improve and personalize your experience"}),c.jsx("li",{children:"Communicate with you about updates and support"}),c.jsx("li",{children:"Analyze usage patterns to enhance our services"}),c.jsx("li",{children:"Protect against unauthorized access and fraud"})]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Data Security"}),c.jsx("p",{className:"text-muted-foreground",children:"We implement appropriate technical and organizational security measures to protect your personal information. However, no method of transmission over the Internet or electronic storage is 100% secure, and we cannot guarantee absolute security."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. Data Sharing and Disclosure"}),c.jsx("p",{className:"text-muted-foreground",children:"We may share your information with:"}),c.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[c.jsx("li",{children:"Service providers who assist in our operations"}),c.jsx("li",{children:"Legal authorities when required by law"}),c.jsx("li",{children:"Business partners with your consent"})]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Your Rights"}),c.jsx("p",{className:"text-muted-foreground mb-4",children:"You have the right to:"}),c.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[c.jsx("li",{children:"Access your personal information"}),c.jsx("li",{children:"Correct inaccurate data"}),c.jsx("li",{children:"Request deletion of your data"}),c.jsx("li",{children:"Object to processing of your data"}),c.jsx("li",{children:"Data portability"})]})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. Cookies and Tracking"}),c.jsx("p",{className:"text-muted-foreground",children:"We use cookies and similar tracking technologies to track activity on our services and hold certain information. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"8. Children's Privacy"}),c.jsx("p",{className:"text-muted-foreground",children:"Our services are not intended for use by children under the age of 13. We do not knowingly collect personal information from children under 13."})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"9. Changes to This Policy"}),c.jsx("p",{className:"text-muted-foreground",children:'We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Last updated" date.'})]}),c.jsxs("section",{className:"mb-8",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"10. Contact Us"}),c.jsx("p",{className:"text-muted-foreground",children:"If you have any questions about this Privacy Policy, please contact us at privacy@braintrailz.com"})]}),c.jsx("div",{className:"text-sm text-muted-foreground mt-12",children:c.jsxs("p",{children:["Last updated: ",new Date().toLocaleDateString()]})})]})]})}),c.jsx(tn,{})]}),nI=[{title:"Home",path:"/",description:"Marc J. Greenberg. Fractional CTO and AI advisor for hospitality, proptech, and payments."},{title:"Pricing",path:"/pricing",description:"Half-day, CTO Engaged, and CTO Advisor. How to hire Marc."},{title:"Blog",path:"/blog",description:"Notes and field writing from Marc."},{title:"Trailcraft",path:"/trailcraft",description:"The methods left on the trail. Gear gets you there. Craft keeps the next person on the path."},{title:"Repack",path:"/trailcraft/repack",description:"Conserve what the trail taught you. Clear the clutter. Repack for the trail ahead."},{title:"Backpack",path:"/backpack",description:"The tools Marc actually carries."},{title:"Meet Grey Matters",path:"/greymatters",description:"A right hand for path, tools, and mindset."},{title:"Terms of Service",path:"/terms",description:"Legal terms for Braintrailz services."},{title:"Privacy Policy",path:"/privacy",description:"How information is collected, used, and protected."}],rI=()=>c.jsxs(c.Fragment,{children:[c.jsx(en,{}),c.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:c.jsxs("div",{className:"container-custom pt-32 pb-16",children:[c.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Sitemap"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"Every public page on Braintrailz."}),c.jsx("div",{className:"grid gap-6",children:nI.map(e=>c.jsxs("div",{className:"bg-braintrailz-dark p-6 rounded-lg border border-braintrailz-blue/20",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-2",children:c.jsx("a",{href:e.path,className:"text-foreground hover:text-braintrailz-blue transition-colors",children:e.title})}),c.jsx("p",{className:"text-muted-foreground mb-2",children:e.description}),c.jsx("a",{href:e.path,className:"text-braintrailz-blue hover:text-braintrailz-blue/80 transition-colors",children:"Visit page"})]},e.path))})]})}),c.jsx(tn,{})]}),iI=[{intent:"half-day",kicker:"Start here",name:"Half-day strategy session",price:"$7,500 + travel",descr:"4-hour working session for your team",featured:!0,features:["Prep by email for 7 to 14 days before we meet","Custom session using the Functional Technology Framework","Immediate punch list and bloodspots","Technology projects for the next 1 to 6 months"],cta:"Book a half-day"},{intent:"engaged",kicker:"90-day sprint",name:"CTO Engaged",price:"$10,000 / month",descr:"I sit in the chair as your fractional CTO",featured:!1,features:["Functional Technology Systems Map in the first 30 days","Weekly sprint planning, daily stand-ups","Hire, train, evaluate, and fire vendors, employees, and contractors","3-month minimum. Short-term, high-octane"],cta:"Talk about Engaged"},{intent:"advisor",kicker:"After we have a map",name:"CTO Advisor",price:"$5,000 / month",descr:"Strategic advisor once the path is clear",featured:!1,features:["Opens after a half-day or a 90-day Engaged sprint","Twice-monthly sprint planning, quarterly planning","Unlimited email, access to project SOPs","6-month commitment"],cta:"Talk about Advisor"}],aI=()=>{const e=Qo();T.useEffect(()=>{window.scrollTo(0,0)},[]);const t=n=>{e("/",{state:{scrollTo:"contact",intent:n}})};return c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsx("main",{className:"pt-32 pb-24",children:c.jsxs("div",{className:"container-custom",children:[c.jsxs("div",{className:"max-w-3xl mb-16",children:[c.jsx("p",{className:"text-sm font-semibold text-braintrailz-blue mb-3",children:"Marc J. Greenberg"}),c.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"How to hire me"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Three offers. One person. Most people start with the half-day because it turns a vague AI worry into a list of work. Invoiced by Codemarc Consulting LLC."})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:iI.map(n=>c.jsxs("div",{className:`flex flex-col rounded-xl border bg-braintrailz-dark p-8 ${n.featured?"border-braintrailz-blue/60 shadow-lg shadow-braintrailz-blue/10":"border-braintrailz-blue/20"}`,children:[c.jsx("div",{className:"text-sm font-semibold text-braintrailz-blue mb-2",children:n.kicker}),c.jsx("h2",{className:"text-xl font-bold",children:n.name}),c.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:n.descr}),c.jsx("p",{className:"text-lg font-semibold mt-4",children:n.price}),c.jsx("ul",{className:"mt-6 space-y-3 text-sm text-muted-foreground flex-grow",children:n.features.map(r=>c.jsxs("li",{className:"flex gap-x-3",children:[c.jsx(rE,{className:"h-5 w-5 flex-none text-braintrailz-blue","aria-hidden":"true"}),r]},r))}),c.jsx(Xt,{onClick:()=>t(n.intent),className:`mt-8 w-full ${n.featured?"bg-gradient-hero hover:opacity-90 text-white":"border-braintrailz-blue text-braintrailz-blue hover:bg-braintrailz-blue/10"}`,variant:n.featured?"default":"outline",children:n.cta})]},n.name))}),c.jsxs("div",{className:"max-w-3xl mt-16 space-y-6 text-muted-foreground",children:[c.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"What happens in the half-day"}),c.jsx("p",{children:"You get a week of written prep, then four hours. I do not show up to pitch tools. We name the bloodspots, the next 1 to 6 months of work, and what you can ignore. If we continue, it is Engaged or Advisor. If we do not, you still have the list."}),c.jsx("p",{children:"I do not run sales or marketing. I take technical direction and client management once the problem is identified."})]})]})}),c.jsx(tn,{})]})},sI=[{kind:"Skill",title:"Aristotle Skill",claim:"Channel a thinker's worldview, not a costume.",description:"An agent skill for Claude, Codex, Grok, and Muse. Ground answers in what they actually wrote, reason in their method, and tutor instead of lecture. Fork the roster. Add the next Aristotle.",icon:c.jsx(sE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/aristotle-skill",external:!0},{label:"Ship the Engine",href:"https://blog.codemarc.net/ship-the-engine",external:!0}]},{kind:"Skill",title:"Solid Skill",claim:"Cut word salad and word vomit. Name the pattern.",description:"Writing is solid when it has no voids. Diagnose vomit vs salad, run the shuffle test, then return two cuts so you start catching it yourself. Same shape as Aristotle: build the tool, publish the method.",icon:c.jsx(aE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/solid-skill",external:!0}]}],oI=[{kind:"Field guide",title:"I Built My Own Recruiter",claim:"Run your job search like a software project.",description:"Part memoir, part manual. Score, sweep, outreach — then fork the method for your own search. The first published sibling on this trail.",icon:c.jsx(Ep,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),links:[{label:"Read the book",href:"/recruiter/"}]}],yg=({project:e})=>c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover flex flex-col",children:[c.jsxs(rr,{children:[c.jsx("div",{className:"flex justify-center",children:e.icon}),c.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold text-center",children:e.kind}),c.jsx(ir,{className:"text-xl text-center",children:e.title}),c.jsx("p",{className:"text-muted-foreground text-center italic",children:e.claim})]}),c.jsx(ar,{className:"flex-grow",children:c.jsx("p",{className:"text-muted-foreground text-center",children:e.description})}),c.jsx(Nc,{className:"justify-center gap-4 flex-wrap",children:e.links.map(t=>c.jsxs("a",{href:t.href,...t.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:[t.label,t.external&&c.jsx(Wo,{className:"ml-1 h-3.5 w-3.5"})]},t.href))})]}),uI=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="Skills | Braintrailz Mission Projects",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsxs("main",{children:[c.jsx("section",{className:"pt-32 pb-8 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsx("div",{className:"container-custom",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:"Pillar 3"}),c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:[c.jsx(S3,{className:"inline h-9 w-9 mb-2 mr-1"}),c.jsx("span",{className:"text-gradient",children:"Skills"})]}),c.jsx("p",{className:"text-lg italic text-muted-foreground mb-4",children:"Build the tool. Publish the method."}),c.jsx("p",{className:"text-muted-foreground",children:"Community-first tools that help people think better, work better, and focus better. Values-led, rapidly deployed, built to earn trust rather than revenue."})]})})}),c.jsx("section",{className:"py-8 bg-braintrailz-darker",children:c.jsxs("div",{className:"container-custom space-y-14",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Skills"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:sI.map(e=>c.jsx(yg,{project:e},e.title))})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Field guide"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto md:justify-items-center",children:c.jsx("div",{className:"md:col-span-2 max-w-xl mx-auto w-full",children:c.jsx(yg,{project:oI[0]})})})]})]})})]}),c.jsx(tn,{})]})),lI="September 6, 2026",xg=[{kind:"Method",title:"Repack",claim:"Conserve the knowledge. Clear the clutter.",description:"The practice of AI conservation. Preserve what your experiments taught you, then rebuild your Backpack for the trail ahead.",icon:c.jsx(T3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open Repack",href:"/trailcraft/repack"}]},{kind:"Method",title:"Aristotle Skill",claim:"Channel a thinker's worldview, not a costume.",description:"An agent skill for Claude, Codex, Grok, and Muse. Ground answers in what they actually wrote, reason in their method, and tutor instead of lecture. Fork the roster. Add the next Aristotle.",icon:c.jsx(sE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/aristotle-skill",external:!0},{label:"Ship the Engine",href:"https://blog.codemarc.net/ship-the-engine",external:!0}]},{kind:"Method",title:"Solid Skill",claim:"Cut word salad and word vomit. Name the pattern.",description:"Writing is solid when it has no voids. Diagnose vomit vs salad, run the shuffle test, then return two cuts so you start catching it yourself. Same shape as Aristotle: build the tool, publish the method.",icon:c.jsx(aE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/solid-skill",external:!0}]},{kind:"Marinating",title:"Trailhead",claim:"One golden record. Yours.",description:"Contacts scatter across LinkedIn, Gmail, and three phones. Merge the duplicates, log the touchpoints, and keep a private source of truth.",icon:c.jsx(u3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open Trailhead",href:"https://trailhead.braintrailz.com/",external:!0}]},{kind:"Method",title:"Muse CLI Chat",claim:"Wrap the harness. Don't rebuild it.",description:"<div>Unofficial VS Code and Cursor sidebar for Meta's Muse Code.</div><div>Same agent, next to your files.</div><div>Written with Muse, about Muse, so you can use more Muse.</div><div>Fork it. Fill the next gap.</div>",icon:c.jsx(f3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Cursor/VS Code Extension",href:"https://open-vsx.org/extension/codemarc/muse-cli-chat",external:!0},{label:"Inception: A Muse Inside Muse",href:"https://blog.codemarc.net/inception-a-muse-inside-muse",external:!0}]}],cI=[{kind:"Field guide",title:"I Built My Own Recruiter",claim:"Run your job search like a software project.",description:"Part memoir, part manual. Score, sweep, outreach, then fork the method for your own search. The first published sibling on this trail.",icon:c.jsx(Ep,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),links:[{label:"Read the book",href:"/recruiter/"}]}],dI=[{kind:"Method",title:"Tech Ecosystem Map Skill",claim:"The map is not the territory.",description:"An agent skill for Claude, Codex, Grok, and Muse. Real-geography, layered maps of a region's tech, AI, and capital ecosystem. Real coastline, real neighborhoods, live-verified companies. Fork it. Map the next region.",icon:c.jsx(h3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/tech-ecosystem-map-skill",external:!0}]},{kind:"Map",title:"AI Map of South Florida",claim:"Jupiter to Homestead.",description:"AI companies, AI-adjacent players, finance and crypto names, and pre-AI tech anchors. Neighborhood positions, not street addresses.",icon:c.jsx(Al,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open the map",href:"/trailcraft/maps/sofla"}]},{kind:"Map",title:"AI Map of the Research Triangle",claim:"Raleigh, Durham, Chapel Hill.",description:"Capital, biotech, established tech, and AI companies around RTP. Neighborhood positions, not street addresses.",icon:c.jsx(Al,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),links:[{label:"Open the map",href:"/trailcraft/maps/rdu"}]}],fI=[{kind:"Marinating",title:"Logz",claim:"Logbook keeps your trail.",description:"A quiet companion for builders. Capture ideas, prompts, decisions, and process as you go. Still steeping.",icon:c.jsx(E3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open Logz",href:"https://logz.bltcore.com/",external:!0}]},{kind:"Marinating",title:"LinkedTwin",claim:"No followers. No likes. Just real work.",description:"A professional network for people tired of polish. Presence earned through contribution and dialogue, not performance.",icon:c.jsx(b3,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open LinkedTwin",href:"https://linkedtwin.net/",external:!0}]}],Os=({cairn:e})=>c.jsxs(nr,{className:"h-full bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover flex flex-col",children:[c.jsxs(rr,{children:[c.jsx("div",{className:"flex justify-center",children:e.icon}),c.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold text-center",children:e.kind}),c.jsx(ir,{className:"text-xl text-center",children:e.title}),c.jsx("p",{className:"text-muted-foreground text-center italic",children:e.claim})]}),c.jsx(ar,{className:"flex-grow",children:typeof e.description=="string"&&e.description.trim().startsWith("<")?c.jsx("p",{className:"text-muted-foreground text-center",dangerouslySetInnerHTML:{__html:e.description}}):c.jsx("p",{className:"text-muted-foreground text-center",children:e.description})}),c.jsx(Nc,{className:"justify-center gap-4 flex-wrap mt-auto",children:e.links.map(t=>c.jsxs("a",{href:t.href,...t.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:[t.label,t.external&&c.jsx(Wo,{className:"ml-1 h-3.5 w-3.5"})]},t.href))})]}),hI=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="Trailcraft | Braintrailz",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsxs("main",{children:[c.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsx("div",{className:"container-custom",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[c.jsx(Pl,{variant:"logo",size:40,className:"mr-2 mb-1 align-middle"}),c.jsx("span",{className:"text-gradient",children:"Trail"}),"Craft"]}),c.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Last updated ",lI]}),c.jsx("p",{className:"text-lg italic text-muted-foreground mt-0",children:"Gear gets you there. Craft keeps the next person on the path."})]})})}),c.jsx("section",{className:"py-8 bg-braintrailz-darker",children:c.jsxs("div",{className:"container-custom space-y-14",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Methods"}),c.jsxs("div",{className:"space-y-8 max-w-5xl mx-auto",children:[c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-stretch",children:xg.slice(0,3).map(e=>c.jsx(Os,{cairn:e},e.title))}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-stretch",children:xg.slice(3).map(e=>c.jsx(Os,{cairn:e},e.title))})]})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Field guides"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto md:justify-items-center",children:c.jsx("div",{className:"md:col-span-2 max-w-xl mx-auto w-full",children:c.jsx(Os,{cairn:cI[0]})})})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Maps"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto items-stretch",children:dI.map(e=>c.jsx(Os,{cairn:e},e.title))})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Marinating"}),c.jsx("p",{className:"text-sm italic text-muted-foreground text-center mb-6",children:"Basic ideas still on the fire. Fork later. Taste now."}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto items-stretch",children:fI.map(e=>c.jsx(Os,{cairn:e},e.title))})]})]})})]}),c.jsx(tn,{})]})),bg="/mapdata/sofla.html",pI=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="AI Map of South Florida | Trailcraft",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsxs("main",{children:[c.jsx("section",{className:"pt-32 pb-6 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsx("div",{className:"container-custom",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsxs("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:[c.jsx(Ft,{to:"/trailcraft",className:"hover:text-foreground transition-colors",children:"Trailcraft"})," / ","Maps"]}),c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[c.jsx(Al,{className:"inline h-9 w-9 mb-2 mr-2 text-braintrailz-blue"}),c.jsx("span",{className:"text-gradient",children:"AI Map"})," of South Florida"]}),c.jsx("p",{className:"text-lg italic text-muted-foreground",children:"A technology map of the region. Jupiter to Homestead. Atlantic Ocean to Gulf of America."})]})})}),c.jsxs("section",{className:"pb-10 bg-braintrailz-darker",children:[c.jsx("div",{className:"overflow-x-auto",children:c.jsx("iframe",{src:bg,title:"AI Map of South Florida",className:"block border-0 bg-[#e7e3d6] mx-auto",style:{width:1780,height:1580}})}),c.jsx("p",{className:"text-center mt-6",children:c.jsxs("a",{href:bg,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:["Open the poster on its own",c.jsx(Wo,{className:"ml-1 h-3.5 w-3.5"})]})})]})]}),c.jsx(tn,{})]})),Eg="/mapdata/rdu.html",mI=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="AI Map of the Research Triangle | Trailcraft",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsxs("main",{children:[c.jsx("section",{className:"pt-32 pb-6 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsx("div",{className:"container-custom",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsxs("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:[c.jsx(Ft,{to:"/trailcraft",className:"hover:text-foreground transition-colors",children:"Trailcraft"})," / ","Maps"]}),c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[c.jsx(Al,{className:"inline h-9 w-9 mb-2 mr-2 text-braintrailz-blue"}),c.jsx("span",{className:"text-gradient",children:"AI Map"})," Research Triangle"]}),c.jsx("p",{className:"text-lg italic text-muted-foreground",children:"A technology map of the region. Raleigh, Durham, Chapel Hill."})]})})}),c.jsxs("section",{className:"pb-10 bg-braintrailz-darker",children:[c.jsx("div",{className:"overflow-x-auto",children:c.jsx("iframe",{src:Eg,title:"AI Map of the Research Triangle",className:"block border-0 bg-[#f4f1e7] mx-auto",style:{width:1820,height:1400}})}),c.jsx("p",{className:"text-center mt-6",children:c.jsxs("a",{href:Eg,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:["Open the poster on its own",c.jsx(Wo,{className:"ml-1 h-3.5 w-3.5"})]})})]})]}),c.jsx(tn,{})]})),gI=[["Survey","What am I carrying?","Make a Trail Map of the tools, prompts, skills, and dependencies in use."],["Conserve","What knowledge must not be lost?","Extract the lessons, decisions, and working principles before changing the setup."],["Trace","Where did it come from?","Keep the source, creator, license, provenance, and evidence behind each lesson."],["Cull / Cache","What leaves active use?","Remove stale or redundant gear and place useful inactive gear in the Gear Locker."],["Pack","What does the next trail require?","Rebuild the smallest active Backpack that can do the work ahead."],["Blaze","Can someone follow this path?","Leave reusable instructions, context, and decisions for the next traveler."],["Log","What did this Repack teach us?","Record the discoveries and dead ends so the next repack starts further along."]],yI=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="Repack | Trailcraft | Braintrailz",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),c.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[c.jsx(en,{}),c.jsxs("main",{children:[c.jsx("section",{className:"pt-32 pb-12 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:c.jsxs("div",{className:"container-custom max-w-4xl text-center",children:[c.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:"Trailcraft Method"}),c.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-5",children:[c.jsx(Za,{className:"inline h-10 w-10 mb-2 mr-2"}),c.jsx("span",{className:"text-gradient",children:"Repack"})]}),c.jsx("p",{className:"text-2xl md:text-3xl font-semibold mb-5",children:"Return to Base Camp without losing the trail."}),c.jsx("p",{className:"text-lg italic text-muted-foreground max-w-2xl mx-auto",children:"Repack is the practice of AI conservation: preserve what your experiments taught you, clear what no longer serves you, and rebuild your Backpack for the trail ahead."})]})}),c.jsx("section",{className:"py-8 bg-braintrailz-darker",children:c.jsxs("div",{className:"container-custom max-w-5xl space-y-14",children:[c.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[c.jsxs(rr,{children:[c.jsx(iE,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),c.jsx(ir,{children:"Base Camp"})]}),c.jsx(ar,{className:"text-muted-foreground",children:"Where durable knowledge, provenance, decisions, and TrailLore survive every reset."})]}),c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[c.jsxs(rr,{children:[c.jsx(Za,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),c.jsx(ir,{children:"Backpack"})]}),c.jsx(ar,{className:"text-muted-foreground",children:"The small, active set of tools and capabilities required for the current journey."})]}),c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[c.jsxs(rr,{children:[c.jsx(n3,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),c.jsx(ir,{children:"TrailLore"})]}),c.jsx(ar,{className:"text-muted-foreground",children:"The durable lessons extracted from journeys, experiments, successes, and dead ends."})]})]}),c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Conserve before you cull"}),c.jsx("p",{className:"text-muted-foreground",children:"A reset clears configuration. A Repack separates configuration from learning first, so you can empty the Backpack without losing what the trail taught you."})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-8",children:[c.jsx(c3,{className:"h-7 w-7 text-braintrailz-blue"}),c.jsx("h2",{className:"text-2xl font-bold",children:"The Repack method"})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:gI.map(([e,t,n],r)=>c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[c.jsxs(rr,{className:"flex-row items-start gap-4 space-y-0",children:[c.jsx("span",{className:"text-sm text-braintrailz-blue font-semibold pt-1",children:String(r+1).padStart(2,"0")}),c.jsxs("div",{children:[c.jsx(ir,{className:"text-xl",children:e}),c.jsx("p",{className:"text-sm italic text-muted-foreground mt-1",children:t})]})]}),c.jsx(ar,{className:"text-muted-foreground",children:n})]},e))})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[c.jsxs(rr,{children:[c.jsx(A3,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),c.jsx(ir,{children:"Leave a Trail Card"})]}),c.jsx(ar,{className:"text-muted-foreground",children:"For every tool, skill, plugin, or repository, record its source, creator, license, purpose, what worked, what did not, what changed, the TrailLore it produced, and where it belongs now."})]}),c.jsxs(nr,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[c.jsxs(rr,{children:[c.jsx(Ep,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),c.jsx(ir,{children:"Field report: Solid"})]}),c.jsx(ar,{className:"text-muted-foreground",children:"The path from Stop Slop and Unslop to Solid is the kind of journey Repack preserves: observe, use, reject, adapt, and credit the work that helped establish the trail."})]})]}),c.jsx("p",{className:"text-center text-lg italic text-muted-foreground",children:"The Backpack shows what we carry. Trailcraft records what we learn. Repack is how we move between them."})]})})]}),c.jsx(tn,{})]})),xI=`---
title: Finding / Founding Braintrailz
date: 2026-08-29
summary: Treking across 30 Years of Deep Thoughts
image: /img/finding-founding-braintrailz-og.jpg
trailBackground: true
---
### Treking across 30 Years of Deep Thoughts
I have a habit of rediscovering the same problem in different forms.
Sometimes it takes me a while to notice.
BrainTrailz is a good example.
I have been using the name for years. I have described trails as paths through problems, accumulated knowledge, experiments, things learned along the way. I built a whole vocabulary around it: trails, Trailcraft, the Backpack, trail guides.
I thought I understood where the idea came from.
I'm no longer sure I did.
Because recently, while working on something called the BrainTrailz Protocol, I realized that BrainTrailz may have a much longer lineage than I thought.
Maybe thirty years longer.
## Before There Were BrainTrailz
I spent a large part of my career in integration software.
Back then, the problem was fairly straightforward to describe and remarkably difficult to solve.
Companies had lots of systems.
The systems were built by different vendors, ran on different platforms, spoke different protocols, represented data differently, and generally had no interest in cooperating with one another.
Everybody's first instinct was to connect System A to System B.
Then A to C.
Then B to D.
Keep going and pretty soon you have created spaghetti.
The important architectural realization was that the problem wasn't really how to connect two systems.
The problem was how to create a common way for **any system to participate**.
That led to adapters, common contracts, metadata, reusable services, routing, transformation and all the things that eventually became integration platforms, ESBs and iWay.
One of the architectural ideas I worked on was a universal adapter framework.
The details aren't especially important today.
The lesson is.
**Keep the center clean. Put the differences at the edges.**
If a new system shows up, you shouldn't redesign everything in the middle.
You write another adapter.
That idea got buried pretty deeply in my brain.
## Then the Systems Learned to Talk
Fast-forward a couple of decades.
Now the things we are connecting aren't just applications and databases.
They're intelligent.
ChatGPT, Claude, Gemini, Cursor, Codex, Grok, Muse, etc...
Whatever appears six months from now.
And something strange has happened.
We built astonishingly capable systems, but when we move between them, we are back in the integration business.
Except this time **the human is the integration layer**.
I work on something in ChatGPT.
Then I move into Cursor to build it.
Cursor doesn't quite know what ChatGPT knows, so I explain it again.
Later I want Claude's opinion.
I explain it again.
Maybe Claude gives me an interesting insight, so when I go back to Cursor I explain that.
Then I pick up my phone and open ChatGPT.
Now I'm explaining the explanation of the explanation.
We solved this problem once.
We called it point-to-point integration.
It didn't scale then either.
## And That Is Where BrainTrailz Came Back
The original idea behind BrainTrailz was always about continuity.
You move.
The environment changes.
The trail continues.
Over time I expanded the idea.
BrainTrailz became a place for experiments, ideas, things I built, things I learned and paths I wanted other people to be able to follow.
Trailcraft became the practice of figuring out how to get from an unclear problem to a working answer.
The Backpack became the tools I carried with me.
All of that still makes sense.
But underneath it was something simpler that I had nearly lost sight of.
**The trail isn't the conversation.**
The conversation is just where something happened.
The trail is what continues.
That distinction suddenly matters a great deal in an AI world.
## The Wrong Unit Is the Chat
Every AI company is working on memory.
That's useful.
But memory usually answers a question like:
**What should this AI remember about Marc?**
That isn't quite the problem I want to solve.
The question I care about is:
**What does the next capable participant need to know to continue this work?**
Those are very different things.
A project has a purpose.
It has a current state.
Things have been decided.
Things have happened.
There are things we should do next.
There are artifacts worth knowing about.
That state should not disappear because I closed one application and opened another.
And it shouldn't belong to OpenAI, Anthropic, Google, Cursor or anyone else.
It belongs to the work.
And ultimately it belongs to me.
That's the trail.
## One Plus N
Once I saw the problem that way, another old idea came roaring back.
Don't integrate ChatGPT with Claude.
Don't integrate Claude with Cursor.
Don't integrate Cursor with Gemini.
That road ends exactly where it ended thirty years ago.
Instead:
**One trail. N participants.**
The trail has a stable contract.
Every capable participant can read it.
Every participant can contribute useful things back to it.
Every participant is replaceable.
The weird behavior of a particular AI belongs in an adapter at the edge.
The center should know as little as possible about who is using it.
If another AI appears next year, BrainTrailz shouldn't need a redesign.
Give the new participant an adapter.
Welcome to the trail.
It is such an old integration idea that I am slightly embarrassed by how satisfying it was to rediscover it.
## Then We Played Telephone
Of course, an idea like this can become architecture astronautics very quickly.
Add agents.
Add orchestration.
Add a vector database.
Add embeddings.
Add a knowledge graph.
Add twelve services.
Draw an impressive diagram.
Congratulations. You now have a product that doesn't exist.
I wanted to know whether the central idea was actually true.
So we played Telephone.
We created one small canonical trail.
The first AI read it.
It added something.
Then another AI entered without getting a recap from me.
It got only the trail.
Could it tell what was originally true?
Could it distinguish that from what another AI had added later?
Could another participant do the same?
And another?
Most importantly, after passing through all of them, was the original meaning still intact?
That is a surprisingly important question.
Because AI systems are very good at interpretation.
Interpretation is useful.
Interpretation is also how Telephone works.
One person whispers something to another person, who passes along what they understood, who passes along what *they* understood.
Eventually everybody is still talking about roughly the same thing.
But it isn't the same thing anymore.
A trail changes that architecture.
The participants don't inherit one another's whispers.
They keep returning to the card sitting in the middle of the room.
Interpretation can change.
New knowledge can accumulate.
Decisions can be made.
But the system doesn't casually rewrite history because one AI summarized another AI's summary.
That little experiment worked.
And for me, that is where BrainTrailz stopped being only a metaphor.
## The Funny Part
The funny part is that this new thing is made out of ideas from several different periods of my life.
BrainTrailz contributed the idea of continuity.
Trailcraft contributed the idea that the path itself has value.
Integration architecture contributed the contract.
Adapters contributed the 1 + N model.
AI created the new version of the problem.
MCP happened to provide a convenient doorway.
Git and JSON gave us a deliberately boring way to prove it.
None of those things alone is BrainTrailz Protocol.
The interesting thing is where they meet.
And apparently I have been walking toward that intersection for a very long time.
## Maybe That's What a Brain Trail Actually Is
I've spent most of my career moving between technologies.
Mainframes and PCs.
Operating systems.
Enterprise software.
Integration.
Cloud.
Data.
Distributed systems.
Now AI.
The technologies keep changing.
The recurring ideas don't change nearly as much.
Systems need contracts.
Boundaries matter.
Point-to-point solutions eventually hurt.
Adapters are cheaper than redesigning the center.
Humans should not have to compensate forever for bad architecture.
And useful knowledge should survive the tool that created it.
Maybe that is the real lineage of BrainTrailz.
Not a product name.
Not a website.
Not even a protocol.
A trail is what remains when the tools change.
Which leads to the shortest description of the whole thing I have found so far:
**Conversations are transient.**
**Trails persist.**
`,bI=`---
title: The Margin Stack
date: 2026-08-31
summary: What happens to margin, capacity, and client relationships when AI makes billable hours nearly free to produce, and why professional services firms need an answer now.
showTitle: false
image: /img/tms2-og.jpg
---

There's a question every partner at a professional services firm should be asking right now, and most aren't asking it clearly enough: if AI can compress the cost of delivering an hour of work without changing what the client pays for it, what happens to margin, capacity, and who wins the next decade of client relationships?
It's already happening in accounting, in law, in consulting, in any practice built on the billable hour. The firms that answer it first will have a structural advantage that's very hard for the rest of the field to close later.
## The Business Model Nobody Says Out Loud
Professional services firms run on a pyramid. A small group of partners and directors sell the work and provide judgment. A much larger base of managers, seniors, and associates actually produces it. The economics depend on one unglamorous fact: junior hours are cheap to produce and expensive to sell.
A first-year associate earning $80,000 a year might bill 1,600 hours at $175 an hour. That's $280,000 in revenue against a fully loaded cost of roughly $110,000. The spread, something like $170,000 per junior staff member, is what funds the partnership.
AI doesn't threaten that pyramid directly. It threatens the specific assumption underneath it: that junior labor is the only way to execute process-intensive work. Document review, drafting, first-pass analysis, financial modeling scaffolding. A meaningful share of what junior staff spend their hours on isn't really judgment work. It's process work wearing a judgment-work invoice.
## Borrow a Framework From Fast Food
There's an old business parable about a burger chain that sells hamburgers at a loss. The burger is the draw. The real money is in the combo.
The burger is the core engagement itself: the forensic review, the valuation, the litigation support. It's the reason the client called. It's relationship-anchoring, and it's usually margin-thin, because clients are price-sensitive on the thing they can compare against a competitor's quote.
The fries are AI-augmented delivery: the same output, produced at a fraction of the cost, with the margin expansion happening entirely inside the firm, invisible on the client's invoice.
The drink is the ongoing advisory relationship: the retainer, the standing engagement that firms leave on the table after every matter closes because the team was too buried in process work to even propose it.
The combo is what happens when a firm stops selling hours and starts selling infrastructure: the firm itself, an ongoing capability the client can't easily walk away from.
The restaurant doesn't win because the burger is good. It wins because almost nobody orders just the burger.
## What the Math Actually Looks Like
Take a representative $50,000 engagement, a solvency analysis or forensic review, structured and document-intensive, exactly the kind of work that scales well with AI-assisted document analysis and drafting.
Under a traditional staffing model, that engagement might run 20 senior hours, 40 mid-level hours, and 80 junior hours, for an estimated cost to deliver of about $28,000. Margin: roughly 44 percent.
Restructure the same engagement around an AI-augmented team, and senior and mid-level hours can drop by roughly 40 percent, junior hours by roughly two-thirds, with AI agents absorbing the equivalent of about 60 hours of process work. The invoice to the client doesn't change.
That AI contribution has a real cost. Document-heavy work like this, run through frontier models, typically costs somewhere in the low hundreds of dollars in compute and tooling for an engagement this size, a rounding error next to the labor it replaces, but not zero, and it belongs in the math rather than left out of it. Folding in a generous $300 to $500 for that cost, the total cost to deliver comes in around $11,300 to $11,500. Margin: roughly 77 percent.
That's still nearly doubling the net on the same engagement, at the same price, with the same deliverable quality. What changed was how much of the team's time went into work that never should have required a human in the first place, and the AI's own cost stayed small enough not to matter.
## Capacity Is the Bigger Story
Margin gets the headline, but capacity is the more durable advantage. If a team of two juniors, one senior, and two AI agents can deliver what previously required four juniors and two seniors, that same team can now run multiple engagements at once. In a business development-constrained world, that's revenue growth without proportional headcount growth.
This also reframes the growth conversation. It's no longer just "how do we hire more people." It becomes "how do we make each team dramatically more productive while keeping the client relationship intact."
## The Industry Already Feels This Coming
Leadership at the larger firms already senses this. One national accounting and advisory firm, a couple hundred professionals in its advisory practice, appointed its first Chief AI Officer in early 2025 with a mandate to find where AI adds client and operational value. Its CEO has said publicly, in effect, that staying competitive means getting more innovative products and information to clients faster, and that AI is a path to that. The intent is there at the top of a lot of firms right now. What's usually missing is the operational bridge from that intent down to how an actual engagement gets staffed and priced.
## Three Questions Worth Asking Before You Do Anything Else
Before any firm restructures how it delivers work, three questions deserve an honest answer, not the reflexive one.
What is the actual cost-to-bill ratio on a representative engagement today? Most partners are guessing.
What percentage of current junior hours are truly judgment-based versus process-based? The instinctive answer is "most of it is judgment." Looked at closely, the process share is usually 40 to 60 percent. That's where the leverage lives.
What would it mean for growth if process-intensive work became nearly free to staff? That's the real strategic question.
## Where to Start
Not with a firm-wide initiative. With one contained pilot, in one practice area, on one well-defined, document-intensive engagement type. Staff it with an AI-augmented team, track cost to deliver, time to completion, and partner review burden against a comparable historical engagement, and measure whether quality holds. If it does, that pilot becomes the evidence base for a much bigger conversation.
The burger is the engagement. The fries are the margin nobody is capturing yet. The drink is the retainer sitting untapped after every matter closes. Most firms already have all three ingredients sitting in the kitchen. What's missing is the combo menu, and an operational model to serve it consistently at scale.
---
_Marc J. <font color="green">Green</font>berg is Co-Founder and CTO of Beyond Limited Thinking, and works with advisory and professional services firms as a fractional CTO through Braintrailz and Codemarc Consulting, helping practice leaders turn AI from a headcount question into a margin and capacity question._
`;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function N2(e){return typeof e>"u"||e===null}function EI(e){return typeof e=="object"&&e!==null}function TI(e){return Array.isArray(e)?e:N2(e)?[]:[e]}function vI(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function wI(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function CI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var AI=N2,_I=EI,NI=TI,kI=wI,SI=CI,II=vI,ot={isNothing:AI,isObject:_I,toArray:NI,repeat:kI,isNegativeZero:SI,extend:II};function k2(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
`+e.mark.snippet),r+" "+n):r}function Lo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=k2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Lo.prototype=Object.create(Error.prototype);Lo.prototype.constructor=Lo;Lo.prototype.toString=function(t){return this.name+": "+k2(this,t)};var Bt=Lo;function Cd(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(a=" ... ",t=r-o+a.length),n-r>o&&(s=" ...",n=r+o-s.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function Ad(e,t){return ot.repeat(" ",t-e.length)+e}function OI(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,s=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var o="",u,l,f=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)l=Cd(e.buffer,r[s-u],i[s-u],e.position-(r[s]-r[s-u]),h),o=ot.repeat(" ",t.indent)+Ad((e.line-u+1).toString(),f)+" | "+l.str+`
`+o;for(l=Cd(e.buffer,r[s],i[s],e.position,h),o+=ot.repeat(" ",t.indent)+Ad((e.line+1).toString(),f)+" | "+l.str+`
`,o+=ot.repeat("-",t.indent+f+3+l.pos)+`^
`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)l=Cd(e.buffer,r[s+u],i[s+u],e.position-(r[s]-r[s+u]),h),o+=ot.repeat(" ",t.indent)+Ad((e.line+u+1).toString(),f)+" | "+l.str+`
`;return o.replace(/\n$/,"")}var LI=OI,RI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],PI=["scalar","sequence","mapping"];function DI(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function MI(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(RI.indexOf(n)===-1)throw new Bt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=DI(t.styleAliases||null),PI.indexOf(this.kind)===-1)throw new Bt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xt=MI;function Tg(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,s){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=s)}),n[i]=r}),n}function FI(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function eh(e){return this.extend(e)}eh.prototype.extend=function(t){var n=[],r=[];if(t instanceof xt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Bt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof xt))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Bt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Bt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof xt))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(eh.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Tg(i,"implicit"),i.compiledExplicit=Tg(i,"explicit"),i.compiledTypeMap=FI(i.compiledImplicit,i.compiledExplicit),i};var S2=eh,I2=new xt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),O2=new xt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),L2=new xt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),R2=new S2({explicit:[I2,O2,L2]});function BI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function jI(){return null}function UI(e){return e===null}var P2=new xt("tag:yaml.org,2002:null",{kind:"scalar",resolve:BI,construct:jI,predicate:UI,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function HI(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function zI(e){return e==="true"||e==="True"||e==="TRUE"}function VI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var D2=new xt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:HI,construct:zI,predicate:VI,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function YI(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function $I(e){return 48<=e&&e<=55}function WI(e){return 48<=e&&e<=57}function qI(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!YI(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!$I(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!WI(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function GI(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function QI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ot.isNegativeZero(e)}var M2=new xt("tag:yaml.org,2002:int",{kind:"scalar",resolve:qI,construct:GI,predicate:QI,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),KI=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function XI(e){return!(e===null||!KI.test(e)||e[e.length-1]==="_")}function JI(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var ZI=/^[-+]?[0-9]+e/;function e4(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ot.isNegativeZero(e))return"-0.0";return n=e.toString(10),ZI.test(n)?n.replace("e",".e"):n}function t4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ot.isNegativeZero(e))}var F2=new xt("tag:yaml.org,2002:float",{kind:"scalar",resolve:XI,construct:JI,predicate:t4,represent:e4,defaultStyle:"lowercase"}),B2=R2.extend({implicit:[P2,D2,M2,F2]}),j2=B2,U2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),H2=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 n4(e){return e===null?!1:U2.exec(e)!==null||H2.exec(e)!==null}function r4(e){var t,n,r,i,a,s,o,u=0,l=null,f,h,p;if(t=U2.exec(e),t===null&&(t=H2.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],h=+(t[11]||0),l=(f*60+h)*6e4,t[9]==="-"&&(l=-l)),p=new Date(Date.UTC(n,r,i,a,s,o,u)),l&&p.setTime(p.getTime()-l),p}function i4(e){return e.toISOString()}var z2=new xt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:n4,construct:r4,instanceOf:Date,represent:i4});function a4(e){return e==="<<"||e===null}var V2=new xt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a4}),Up=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function s4(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=Up;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function o4(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=Up,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):n===18?(o.push(s>>10&255),o.push(s>>2&255)):n===12&&o.push(s>>4&255),new Uint8Array(o)}function u4(e){var t="",n=0,r,i,a=e.length,s=Up;for(r=0;r<a;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function l4(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Y2=new xt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s4,construct:o4,predicate:l4,represent:u4}),c4=Object.prototype.hasOwnProperty,d4=Object.prototype.toString;function f4(e){if(e===null)return!0;var t=[],n,r,i,a,s,o=e;for(n=0,r=o.length;n<r;n+=1){if(i=o[n],s=!1,d4.call(i)!=="[object Object]")return!1;for(a in i)if(c4.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function h4(e){return e!==null?e:[]}var $2=new xt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:f4,construct:h4}),p4=Object.prototype.toString;function m4(e){if(e===null)return!0;var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],p4.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function g4(e){if(e===null)return[];var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var W2=new xt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:m4,construct:g4}),y4=Object.prototype.hasOwnProperty;function x4(e){if(e===null)return!0;var t,n=e;for(t in n)if(y4.call(n,t)&&n[t]!==null)return!1;return!0}function b4(e){return e!==null?e:{}}var q2=new xt("tag:yaml.org,2002:set",{kind:"mapping",resolve:x4,construct:b4}),Hp=j2.extend({implicit:[z2,V2],explicit:[Y2,$2,W2,q2]}),Ai=Object.prototype.hasOwnProperty,jl=1,G2=2,Q2=3,Ul=4,_d=1,E4=2,vg=3,T4=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v4=/[\x85\u2028\u2029]/,w4=/[,\[\]\{\}]/,K2=/^(?:!|!!|![a-z\-]+!)$/i,X2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wg(e){return Object.prototype.toString.call(e)}function fr(e){return e===10||e===13}function Gi(e){return e===9||e===32}function qt(e){return e===9||e===32||e===10||e===13}function Aa(e){return e===44||e===91||e===93||e===123||e===125}function C4(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function A4(e){return e===120?2:e===117?4:e===85?8:0}function _4(e){return 48<=e&&e<=57?e-48:-1}function Cg(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"Â…":e===95?"Â ":e===76?"\u2028":e===80?"\u2029":""}function N4(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var J2=new Array(256),Z2=new Array(256);for(var ca=0;ca<256;ca++)J2[ca]=Cg(ca)?1:0,Z2[ca]=Cg(ca);function k4(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Hp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=LI(n),new Bt(t,n)}function de(e,t){throw eT(e,t)}function Hl(e,t){e.onWarning&&e.onWarning.call(null,eT(e,t))}var Ag={YAML:function(t,n,r){var i,a,s;t.version!==null&&de(t,"duplication of %YAML directive"),r.length!==1&&de(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&de(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&de(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Hl(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&de(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],K2.test(i)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),Ai.call(t.tagMap,i)&&de(t,'there is a previously declared suffix for "'+i+'" tag handle'),X2.test(a)||de(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{de(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function xi(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||de(e,"expected valid JSON character");else T4.test(o)&&de(e,"the stream contains non-printable characters");e.result+=o}}function _g(e,t,n,r){var i,a,s,o;for(ot.isObject(n)||de(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,o=i.length;s<o;s+=1)a=i[s],Ai.call(t,a)||(t[a]=n[a],r[a]=!0)}function _a(e,t,n,r,i,a,s,o,u){var l,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,f=i.length;l<f;l+=1)Array.isArray(i[l])&&de(e,"nested arrays are not supported inside keys"),typeof i=="object"&&wg(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&wg(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(l=0,f=a.length;l<f;l+=1)_g(e,t,a[l],n);else _g(e,t,a,n);else!e.json&&!Ai.call(n,i)&&Ai.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,de(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function zp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):de(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Gi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(fr(i))for(zp(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Hl(e,"deficient indentation"),r}function kc(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||qt(n)))}function Vp(e,t){t===1?e.result+=" ":t>1&&(e.result+=ot.repeat(`
`,t-1))}function S4(e,t,n){var r,i,a,s,o,u,l,f,h=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),qt(m)||Aa(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),qt(i)||n&&Aa(i)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),qt(i)||n&&Aa(i))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),qt(r))break}else{if(e.position===e.lineStart&&kc(e)||n&&Aa(m))break;if(fr(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,nt(e,!1,-1),e.lineIndent>=t){o=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=l,e.lineIndent=f;break}}o&&(xi(e,a,s,!1),Vp(e,e.line-u),a=s=e.position,o=!1),Gi(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return xi(e,a,s,!1),e.result?!0:(e.kind=h,e.result=p,!1)}function I4(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xi(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else fr(n)?(xi(e,r,i,!0),Vp(e,nt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&kc(e)?de(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);de(e,"unexpected end of the stream within a single quoted scalar")}function O4(e,t){var n,r,i,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return xi(e,n,e.position,!0),e.position++,!0;if(o===92){if(xi(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),fr(o))nt(e,!1,t);else if(o<256&&J2[o])e.result+=Z2[o],e.position++;else if((s=A4(o))>0){for(i=s,a=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=C4(o))>=0?a=(a<<4)+s:de(e,"expected hexadecimal character");e.result+=N4(a),e.position++}else de(e,"unknown escape sequence");n=r=e.position}else fr(o)?(xi(e,n,r,!0),Vp(e,nt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&kc(e)?de(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}de(e,"unexpected end of the stream within a double quoted scalar")}function L4(e,t){var n=!0,r,i,a,s=e.tag,o,u=e.anchor,l,f,h,p,m,x=Object.create(null),b,v,y,g;if(g=e.input.charCodeAt(e.position),g===91)f=93,m=!1,o=[];else if(g===123)f=125,m=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(nt(e,!0,t),g=e.input.charCodeAt(e.position),g===f)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=o,!0;n?g===44&&de(e,"expected the node content, but found ','"):de(e,"missed comma between flow collection entries"),v=b=y=null,h=p=!1,g===63&&(l=e.input.charCodeAt(e.position+1),qt(l)&&(h=p=!0,e.position++,nt(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,ns(e,t,jl,!1,!0),v=e.tag,b=e.result,nt(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===r)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),nt(e,!0,t),ns(e,t,jl,!1,!0),y=e.result),m?_a(e,o,x,v,b,y,r,i,a):h?o.push(_a(e,null,x,v,b,y,r,i,a)):o.push(b),nt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(n=!0,g=e.input.charCodeAt(++e.position)):n=!1}de(e,"unexpected end of the stream within a flow collection")}function R4(e,t){var n,r,i=_d,a=!1,s=!1,o=t,u=0,l=!1,f,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)_d===i?i=h===43?vg:E4:de(e,"repeat of a chomping mode identifier");else if((f=_4(h))>=0)f===0?de(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?de(e,"repeat of an indentation width identifier"):(o=t+f-1,s=!0);else break;if(Gi(h)){do h=e.input.charCodeAt(++e.position);while(Gi(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!fr(h)&&h!==0)}for(;h!==0;){for(zp(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),fr(h)){u++;continue}if(e.lineIndent<o){i===vg?e.result+=ot.repeat(`
`,a?1+u:u):i===_d&&a&&(e.result+=`
`);break}for(r?Gi(h)?(l=!0,e.result+=ot.repeat(`
`,a?1+u:u)):l?(l=!1,e.result+=ot.repeat(`
`,u+1)):u===0?a&&(e.result+=" "):e.result+=ot.repeat(`
`,u):e.result+=ot.repeat(`
`,a?1+u:u),a=!0,s=!0,u=0,n=e.position;!fr(h)&&h!==0;)h=e.input.charCodeAt(++e.position);xi(e,n,e.position,!1)}return!0}function Ng(e,t){var n,r=e.tag,i=e.anchor,a=[],s,o=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!qt(s))));){if(o=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){a.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,ns(e,t,Q2,!1,!0),a.push(e.result),nt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)de(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function P4(e,t,n){var r,i,a,s,o,u,l=e.tag,f=e.anchor,h={},p=Object.create(null),m=null,x=null,b=null,v=!1,y=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(g===63||g===58)&&qt(r))g===63?(v&&(_a(e,h,p,m,x,null,s,o,u),m=x=b=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):de(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=r;else{if(s=e.line,o=e.lineStart,u=e.position,!ns(e,n,G2,!1,!0))break;if(e.line===a){for(g=e.input.charCodeAt(e.position);Gi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),qt(g)||de(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(_a(e,h,p,m,x,null,s,o,u),m=x=b=null),y=!0,v=!1,i=!1,m=e.tag,x=e.result;else if(y)de(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=f,!0}else if(y)de(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=f,!0}if((e.line===a||e.lineIndent>t)&&(v&&(s=e.line,o=e.lineStart,u=e.position),ns(e,t,Ul,!0,i)&&(v?x=e.result:b=e.result),v||(_a(e,h,p,m,x,b,s,o,u),m=x=b=null),nt(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&g!==0)de(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&_a(e,h,p,m,x,null,s,o,u),y&&(e.tag=l,e.anchor=f,e.kind="mapping",e.result=h),y}function D4(e){var t,n=!1,r=!1,i,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&de(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):de(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!qt(s);)s===33&&(r?de(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),K2.test(i)||de(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),w4.test(a)&&de(e,"tag suffix cannot contain flow indicator characters")}a&&!X2.test(a)&&de(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{de(e,"tag name is malformed: "+a)}return n?e.tag=a:Ai.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:de(e,'undeclared tag handle "'+i+'"'),!0}function M4(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&de(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qt(n)&&!Aa(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function F4(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qt(r)&&!Aa(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Ai.call(e.anchorMap,n)||de(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],nt(e,!0,-1),!0}function ns(e,t,n,r,i){var a,s,o,u=1,l=!1,f=!1,h,p,m,x,b,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=Ul===n||Q2===n,r&&nt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;D4(e)||M4(e);)nt(e,!0,-1)?(l=!0,o=a,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):o=!1;if(o&&(o=l||i),(u===1||Ul===n)&&(jl===n||G2===n?b=t:b=t+1,v=e.position-e.lineStart,u===1?o&&(Ng(e,v)||P4(e,v,b))||L4(e,b)?f=!0:(s&&R4(e,b)||I4(e,b)||O4(e,b)?f=!0:F4(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&de(e,"alias node should not have any properties")):S4(e,b,jl===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=o&&Ng(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&de(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,p=e.implicitTypes.length;h<p;h+=1)if(x=e.implicitTypes[h],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ai.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,m=e.typeMap.multi[e.kind||"fallback"],h=0,p=m.length;h<p;h+=1)if(e.tag.slice(0,m[h].tag.length)===m[h].tag){x=m[h];break}x||de(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&de(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):de(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function B4(e){var t=e.position,n,r,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(nt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!qt(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&de(e,"directive name must not be less than one character in length");s!==0;){for(;Gi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!fr(s));break}if(fr(s))break;for(n=e.position;s!==0&&!qt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&zp(e),Ai.call(Ag,r)?Ag[r](e,r,i):Hl(e,'unknown document directive "'+r+'"')}if(nt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,nt(e,!0,-1)):a&&de(e,"directives end mark is expected"),ns(e,e.lineIndent-1,Ul,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&v4.test(e.input.slice(t,e.position))&&Hl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&kc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)de(e,"end of the stream or a document separator is expected");else return}function tT(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new k4(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,de(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)B4(n);return n.documents}function j4(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=tT(e,n);if(typeof t!="function")return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function U4(e,t){var n=tT(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Bt("expected a single document in the stream, but found more")}}var H4=j4,z4=U4,nT={loadAll:H4,load:z4},rT=Object.prototype.toString,iT=Object.prototype.hasOwnProperty,Yp=65279,V4=9,Ro=10,Y4=13,$4=32,W4=33,q4=34,th=35,G4=37,Q4=38,K4=39,X4=42,aT=44,J4=45,zl=58,Z4=61,eO=62,tO=63,nO=64,sT=91,oT=93,rO=96,uT=123,iO=124,lT=125,St={};St[0]="\\0";St[7]="\\a";St[8]="\\b";St[9]="\\t";St[10]="\\n";St[11]="\\v";St[12]="\\f";St[13]="\\r";St[27]="\\e";St[34]='\\"';St[92]="\\\\";St[133]="\\N";St[160]="\\_";St[8232]="\\L";St[8233]="\\P";var aO=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],sO=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function oO(e,t){var n,r,i,a,s,o,u;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)s=r[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&iT.call(u.styleAliases,o)&&(o=u.styleAliases[o]),n[s]=o;return n}function uO(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Bt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+ot.repeat("0",r-t.length)+t}var lO=1,Po=2;function cO(e){this.schema=e.schema||Hp,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ot.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=oO(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Po:lO,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function kg(e,t){for(var n=ot.repeat(" ",t),r=0,i=-1,a="",s,o=e.length;r<o;)i=e.indexOf(`
`,r),i===-1?(s=e.slice(r),r=o):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
`&&(a+=n),a+=s;return a}function nh(e,t){return`
`+ot.repeat(" ",e.indent*t)}function dO(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Vl(e){return e===$4||e===V4}function Do(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Yp||65536<=e&&e<=1114111}function Sg(e){return Do(e)&&e!==Yp&&e!==Y4&&e!==Ro}function Ig(e,t,n){var r=Sg(e),i=r&&!Vl(e);return(n?r:r&&e!==aT&&e!==sT&&e!==oT&&e!==uT&&e!==lT)&&e!==th&&!(t===zl&&!i)||Sg(t)&&!Vl(t)&&e===th||t===zl&&i}function fO(e){return Do(e)&&e!==Yp&&!Vl(e)&&e!==J4&&e!==tO&&e!==zl&&e!==aT&&e!==sT&&e!==oT&&e!==uT&&e!==lT&&e!==th&&e!==Q4&&e!==X4&&e!==W4&&e!==iO&&e!==Z4&&e!==eO&&e!==K4&&e!==q4&&e!==G4&&e!==nO&&e!==rO}function hO(e){return!Vl(e)&&e!==zl}function Us(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function cT(e){var t=/^\n* /;return t.test(e)}var dT=1,rh=2,fT=3,hT=4,da=5;function pO(e,t,n,r,i,a,s,o){var u,l=0,f=null,h=!1,p=!1,m=r!==-1,x=-1,b=fO(Us(e,0))&&hO(Us(e,e.length-1));if(t||s)for(u=0;u<e.length;l>=65536?u+=2:u++){if(l=Us(e,u),!Do(l))return da;b=b&&Ig(l,f,o),f=l}else{for(u=0;u<e.length;l>=65536?u+=2:u++){if(l=Us(e,u),l===Ro)h=!0,m&&(p=p||u-x-1>r&&e[x+1]!==" ",x=u);else if(!Do(l))return da;b=b&&Ig(l,f,o),f=l}p=p||m&&u-x-1>r&&e[x+1]!==" "}return!h&&!p?b&&!s&&!i(e)?dT:a===Po?da:rh:n>9&&cT(e)?da:s?a===Po?da:rh:p?hT:fT}function mO(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===Po?'""':"''";if(!e.noCompatMode&&(aO.indexOf(t)!==-1||sO.test(t)))return e.quotingType===Po?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return dO(e,l)}switch(pO(t,o,e.indent,s,u,e.quotingType,e.forceQuotes&&!r,i)){case dT:return t;case rh:return"'"+t.replace(/'/g,"''")+"'";case fT:return"|"+Og(t,e.indent)+Lg(kg(t,a));case hT:return">"+Og(t,e.indent)+Lg(kg(gO(t,s),a));case da:return'"'+yO(t)+'"';default:throw new Bt("impossible error: invalid scalar style")}}()}function Og(e,t){var n=cT(e)?String(t):"",r=e[e.length-1]===`
`,i=r&&(e[e.length-2]===`
`||e===`
`),a=i?"+":r?"":"-";return n+a+`
`}function Lg(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function gO(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(`
`);return l=l!==-1?l:e.length,n.lastIndex=l,Rg(e.slice(0,l),t)}(),i=e[0]===`
`||e[0]===" ",a,s;s=n.exec(e);){var o=s[1],u=s[2];a=u[0]===" ",r+=o+(!i&&!a&&u!==""?`
`:"")+Rg(u,t),i=a}return r}function Rg(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,a,s=0,o=0,u="";r=n.exec(e);)o=r.index,o-i>t&&(a=s>i?s:o,u+=`
`+e.slice(i,a),i=a+1),s=o;return u+=`
`,e.length-i>t&&s>i?u+=e.slice(i,s)+`
`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function yO(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Us(e,i),r=St[n],!r&&Do(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||uO(n);return t}function xO(e,t,n){var r="",i=e.tag,a,s,o;for(a=0,s=n.length;a<s;a+=1)o=n[a],e.replacer&&(o=e.replacer.call(n,String(a),o)),(Mr(e,t,o,!1,!1)||typeof o>"u"&&Mr(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function Pg(e,t,n,r){var i="",a=e.tag,s,o,u;for(s=0,o=n.length;s<o;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),(Mr(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Mr(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=nh(e,t)),e.dump&&Ro===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function bO(e,t,n){var r="",i=e.tag,a=Object.keys(n),s,o,u,l,f;for(s=0,o=a.length;s<o;s+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=a[s],l=n[u],e.replacer&&(l=e.replacer.call(n,u,l)),Mr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mr(e,t,l,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}function EO(e,t,n,r){var i="",a=e.tag,s=Object.keys(n),o,u,l,f,h,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Bt("sortKeys must be a boolean or a function");for(o=0,u=s.length;o<u;o+=1)p="",(!r||i!=="")&&(p+=nh(e,t)),l=s[o],f=n[l],e.replacer&&(f=e.replacer.call(n,l,f)),Mr(e,t+1,l,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Ro===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,h&&(p+=nh(e,t)),Mr(e,t+1,f,!0,h)&&(e.dump&&Ro===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=a,e.dump=i||"{}"}function Dg(e,t,n){var r,i,a,s,o,u;for(i=n?e.explicitTypes:e.implicitTypes,a=0,s=i.length;a<s;a+=1)if(o=i[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(u=e.styleMap[o.tag]||o.defaultStyle,rT.call(o.represent)==="[object Function]")r=o.represent(t,u);else if(iT.call(o.represent,u))r=o.represent[u](t,u);else throw new Bt("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Mr(e,t,n,r,i,a,s){e.tag=null,e.dump=n,Dg(e,n,!1)||Dg(e,n,!0);var o=rT.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=o==="[object Object]"||o==="[object Array]",h,p;if(f&&(h=e.duplicates.indexOf(n),p=h!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(f&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(EO(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(bO(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Pg(e,t-1,e.dump,i):Pg(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(xO(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&mO(e,e.dump,t,a,u);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Bt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function TO(e,t){var n=[],r=[],i,a;for(ih(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function ih(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)ih(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)ih(e[r[i]],t,n)}function vO(e,t){t=t||{};var n=new cO(t);n.noRefs||TO(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Mr(n,0,r,!0,!0)?n.dump+`
`:""}var wO=vO,CO={dump:wO};function $p(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var AO=xt,_O=S2,NO=R2,kO=B2,SO=j2,IO=Hp,OO=nT.load,LO=nT.loadAll,RO=CO.dump,PO=Bt,DO={binary:Y2,float:F2,map:L2,null:P2,pairs:W2,set:q2,timestamp:z2,bool:D2,int:M2,merge:V2,omap:$2,seq:O2,str:I2},MO=$p("safeLoad","load"),FO=$p("safeLoadAll","loadAll"),BO=$p("safeDump","dump"),Mg={Type:AO,Schema:_O,FAILSAFE_SCHEMA:NO,JSON_SCHEMA:kO,CORE_SCHEMA:SO,DEFAULT_SCHEMA:IO,load:OO,loadAll:LO,dump:RO,YAMLException:PO,types:DO,safeLoad:MO,safeLoadAll:FO,safeDump:BO};const jO=/^\d{4}-\d{2}-\d{2}$/,UO=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/;function HO(e){return(e.split("/").pop()??e).replace(/\.md$/,"")}function Nd(e,t,n){if(typeof e!="string"||e.trim()==="")throw new Error(`Invalid blog post ${n}: missing ${t}`);return e.trim()}function zO(e){if(!(typeof e!="string"||e.trim()===""))return e.trim()}function VO(e,t){const n=e.match(UO);if(!n)throw new Error(`Invalid blog post ${t}: missing frontmatter`);const r=Mg.load(n[1],{schema:Mg.JSON_SCHEMA});if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`Invalid blog post ${t}: frontmatter must be a mapping`);return{data:r,content:n[2]??""}}function YO(e,t){const{data:n,content:r}=VO(t,e),i=Nd(n.title,"title",e),a=Nd(n.date,"date",e),s=Nd(n.summary,"summary",e);if(!jO.test(a))throw new Error(`Invalid blog post ${e}: date must be YYYY-MM-DD`);const o=HO(e);if(!o)throw new Error(`Invalid blog post ${e}: empty slug`);const u=zO(n.image);return{slug:o,title:i,date:a,summary:s,showTitle:n.showTitle!==!1,trailBackground:n.trailBackground===!0,body:r.trim(),image:u}}function $O(e){return Object.entries(e).map(([t,n])=>YO(t,n)).sort((t,n)=>t.date!==n.date?t.date<n.date?1:-1:t.slug<n.slug?-1:t.slug>n.slug?1:0)}function WO(e,t){return t.find(n=>n.slug===e)}function pT(e){const[t,n,r]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,r)).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}const qO=Object.assign({"../../content/blog/finding-founding-braintrailz.md":xI,"../../content/blog/the-margin-stack.md":bI}),ah=$O(qO);function GO(e){return WO(e,ah)}const QO=()=>(T.useEffect(()=>{window.scrollTo(0,0)},[]),c.jsxs(c.Fragment,{children:[c.jsx(en,{}),c.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:c.jsxs("div",{className:"container-custom pt-32 pb-16",children:[c.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Blog"}),ah.length===0?c.jsx("p",{className:"text-muted-foreground",children:"No posts yet."}):c.jsx("ul",{className:"grid gap-6",children:ah.map(e=>c.jsx("li",{children:c.jsxs(Ft,{to:`/blog/${e.slug}`,className:"group block bg-braintrailz-dark p-6 rounded-lg border border-braintrailz-blue/20 transition-colors",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:pT(e.date)}),c.jsx("h2",{className:"text-2xl font-semibold mb-2 text-foreground group-hover:text-braintrailz-blue transition-colors",children:e.title}),c.jsx("p",{className:"text-muted-foreground mb-2",children:e.summary}),c.jsx("span",{className:"text-braintrailz-blue group-hover:text-braintrailz-blue/80 transition-colors",children:"Read post"})]})},e.slug))})]})}),c.jsx(tn,{})]}));function Fg(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function mT(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const KO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JO={};function Bg(e,t){return(JO.jsx?XO:KO).test(e)}const ZO=/[ \t\n\f\r]/g;function e5(e){return typeof e=="object"?e.type==="text"?jg(e.value):!1:jg(e)}function jg(e){return e.replace(ZO,"")===""}class Xo{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Xo.prototype.normal={};Xo.prototype.property={};Xo.prototype.space=void 0;function gT(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Xo(n,r,t)}function Mo(e){return e.toLowerCase()}class nn{constructor(t,n){this.attribute=n,this.property=t}}nn.prototype.attribute="";nn.prototype.booleanish=!1;nn.prototype.boolean=!1;nn.prototype.commaOrSpaceSeparated=!1;nn.prototype.commaSeparated=!1;nn.prototype.defined=!1;nn.prototype.mustUseProperty=!1;nn.prototype.number=!1;nn.prototype.overloadedBoolean=!1;nn.prototype.property="";nn.prototype.spaceSeparated=!1;nn.prototype.space=void 0;let t5=0;const ge=sa(),et=sa(),sh=sa(),ee=sa(),Ie=sa(),Qi=sa(),rn=sa();function sa(){return 2**++t5}const oh=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:et,commaOrSpaceSeparated:rn,commaSeparated:Qi,number:ee,overloadedBoolean:sh,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),kd=Object.keys(oh);class Wp extends nn{constructor(t,n,r,i){let a=-1;if(super(t,n),Ug(this,"space",i),typeof r=="number")for(;++a<kd.length;){const s=kd[a];Ug(this,kd[a],(r&oh[s])===oh[s])}}}Wp.prototype.defined=!0;function Ug(e,t,n){n&&(e[t]=n)}function ms(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Wp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Mo(r)]=r,n[Mo(a.attribute)]=r}return new Xo(t,n,e.space)}const yT=ms({properties:{ariaActiveDescendant:null,ariaAtomic:et,ariaAutoComplete:null,ariaBusy:et,ariaChecked:et,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:et,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:et,ariaFlowTo:Ie,ariaGrabbed:et,ariaHasPopup:null,ariaHidden:et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:ee,ariaLive:null,ariaModal:et,ariaMultiLine:et,ariaMultiSelectable:et,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:et,ariaReadOnly:et,ariaRelevant:null,ariaRequired:et,ariaRoleDescription:Ie,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:et,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xT(e,t){return t in e?e[t]:t}function bT(e,t){return xT(e,t.toLowerCase())}const n5=ms({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qi,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alpha:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Ie,autoFocus:ge,autoPlay:ge,blocking:Ie,capture:null,charSet:null,checked:ge,cite:null,className:Ie,closedBy:null,colorSpace:null,cols:ee,colSpan:ee,command:null,commandFor:null,content:null,contentEditable:et,controls:ge,controlsList:Ie,coords:ee|Qi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:sh,draggable:et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Ie,height:ee,hidden:sh,high:ee,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:ge,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:ee,pattern:null,ping:Ie,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Ie,required:ge,reversed:ge,rows:ee,rowSpan:ee,sandbox:Ie,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootCustomElementRegistry:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shadowRootSerializable:ge,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:et,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:et,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ge,disablePictureInPicture:ge,disableRemotePlayback:ge,exportParts:Qi,part:Ie,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:bT}),r5=ms({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rn,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qi,g2:Qi,glyphName:Qi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rn,rev:rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rn,requiredFeatures:rn,requiredFonts:rn,requiredFormats:rn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rn,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xT}),ET=ms({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),TT=ms({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bT}),vT=ms({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),i5={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},a5=/[A-Z]/g,Hg=/-[a-z]/g,s5=/^data[-\w.:]+$/i;function Sc(e,t){const n=Mo(t);let r=t,i=nn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&s5.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Hg,u5);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Hg.test(a)){let s=a.replace(a5,o5);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Wp}return new i(r,t)}function o5(e){return"-"+e.toLowerCase()}function u5(e){return e.charAt(1).toUpperCase()}const Jo=gT([yT,n5,ET,TT,vT],"html"),Ii=gT([yT,r5,ET,TT,vT],"svg");function zg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function wT(e){return e.join(" ").trim()}var qp={},Vg=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l5=/\n/g,c5=/^\s*/,d5=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f5=/^:\s*/,h5=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,p5=/^[;\s]*/,m5=/^\s+|\s+$/g,g5=`
`,Yg="/",$g="*",Fi="",y5="comment",x5="declaration";function b5(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var b=x.match(l5);b&&(n+=b.length);var v=x.lastIndexOf(g5);r=~v?x.length-v:r+x.length}function a(){var x={line:n,column:r};return function(b){return b.position=new s(x),l(),b}}function s(x){this.start=x,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(x){var b=new Error(t.source+":"+n+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function u(x){var b=x.exec(e);if(b){var v=b[0];return i(v),e=e.slice(v.length),b}}function l(){u(c5)}function f(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=a();if(!(Yg!=e.charAt(0)||$g!=e.charAt(1))){for(var b=2;Fi!=e.charAt(b)&&($g!=e.charAt(b)||Yg!=e.charAt(b+1));)++b;if(b+=2,Fi===e.charAt(b-1))return o("End of comment missing");var v=e.slice(2,b-2);return r+=2,i(v),e=e.slice(b),r+=2,x({type:y5,comment:v})}}function p(){var x=a(),b=u(d5);if(b){if(h(),!u(f5))return o("property missing ':'");var v=u(h5),y=x({type:x5,property:Wg(b[0].replace(Vg,Fi)),value:v?Wg(v[0].replace(Vg,Fi)):Fi});return u(p5),y}}function m(){var x=[];f(x);for(var b;b=p();)b!==!1&&(x.push(b),f(x));return x}return l(),m()}function Wg(e){return e?e.replace(m5,Fi):Fi}var E5=b5,T5=el&&el.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qp,"__esModule",{value:!0});qp.default=w5;const v5=T5(E5);function w5(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,v5.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:o}=a;i?t(s,o,a):o&&(n=n||{},n[s]=o)}),n}var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});Ic.camelCase=void 0;var C5=/^--[a-zA-Z0-9_-]+$/,A5=/-([a-z])/g,_5=/^[^-]+$/,N5=/^-(webkit|moz|ms|o|khtml)-/,k5=/^-(ms)-/,S5=function(e){return!e||_5.test(e)||C5.test(e)},I5=function(e,t){return t.toUpperCase()},qg=function(e,t){return"".concat(t,"-")},O5=function(e,t){return t===void 0&&(t={}),S5(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(k5,qg):e=e.replace(N5,qg),e.replace(A5,I5))};Ic.camelCase=O5;var L5=el&&el.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},R5=L5(qp),P5=Ic;function uh(e,t){var n={};return!e||typeof e!="string"||(0,R5.default)(e,function(r,i){r&&i&&(n[(0,P5.camelCase)(r,t)]=i)}),n}uh.default=uh;var D5=uh;const M5=Ql(D5),Oc=CT("end"),yr=CT("start");function CT(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function F5(e){const t=yr(e),n=Oc(e);if(t&&n)return{start:t,end:n}}function Zs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gg(e.position):"start"in e||"end"in e?Gg(e):"line"in e||"column"in e?lh(e):""}function lh(e){return Qg(e&&e.line)+":"+Qg(e&&e.column)}function Gg(e){return lh(e&&e.start)+"-"+lh(e&&e.end)}function Qg(e){return e&&typeof e=="number"?e:1}class It extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Zs(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}It.prototype.file="";It.prototype.name="";It.prototype.reason="";It.prototype.message="";It.prototype.stack="";It.prototype.column=void 0;It.prototype.line=void 0;It.prototype.ancestors=void 0;It.prototype.cause=void 0;It.prototype.fatal=void 0;It.prototype.place=void 0;It.prototype.ruleId=void 0;It.prototype.source=void 0;const Gp={}.hasOwnProperty,B5=new Map,j5=/[A-Z]/g,U5=new Set(["table","tbody","thead","tfoot","tr"]),H5=new Set(["td","th"]),AT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function z5(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=K5(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Q5(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ii:Jo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=_T(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function _T(e,t,n){if(t.type==="element")return V5(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Y5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return W5(e,t,n);if(t.type==="mdxjsEsm")return $5(e,t);if(t.type==="root")return q5(e,t,n);if(t.type==="text")return G5(e,t)}function V5(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ii,e.schema=i),e.ancestors.push(t);const a=kT(e,t.tagName,!1),s=X5(e,t);let o=Kp(e,t);return U5.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!e5(u):!0})),NT(e,s,a,t),Qp(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Y5(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Fo(e,t.position)}function $5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Fo(e,t.position)}function W5(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ii,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:kT(e,t.name,!0),s=J5(e,t),o=Kp(e,t);return NT(e,s,a,t),Qp(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function q5(e,t,n){const r={};return Qp(r,Kp(e,t)),e.create(t,e.Fragment,r,n)}function G5(e,t){return t.value}function NT(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Qp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Q5(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function K5(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=yr(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function X5(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Gp.call(t.properties,i)){const a=Z5(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&H5.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function J5(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Fo(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Fo(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Kp(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:B5;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const l=i.get(u)||0;s=u+"-"+l,i.set(u,l+1)}}const o=_T(e,a,s);o!==void 0&&n.push(o)}return n}function Z5(e,t,n){const r=Sc(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?mT(n):wT(n)),r.property==="style"){let i=typeof n=="object"?n:eL(e,String(n));return e.stylePropertyNameCase==="css"&&(i=tL(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?i5[r.property]||r.property:r.attribute,n]}}function eL(e,t){try{return M5(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new It("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=AT+"#cannot-parse-style-attribute",i}}function kT(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=Bg(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=Bg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Gp.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Fo(e)}function Fo(e,t){const n=new It("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=AT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function tL(e){const t={};let n;for(n in e)Gp.call(e,n)&&(t[nL(n)]=e[n]);return t}function nL(e){let t=e.replace(j5,rL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function rL(e){return"-"+e.toLowerCase()}const Sd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},iL={};function aL(e,t){const n=iL,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ST(e,r,i)}function ST(e,t,n){if(sL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Kg(e.children,t,n)}return Array.isArray(e)?Kg(e,t,n):""}function Kg(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ST(e[i],t,n);return r.join("")}function sL(e){return!!(e&&typeof e=="object")}const Xg=document.createElement("i");function Xp(e){const t="&"+e+";";Xg.innerHTML=t;const n=Xg.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function mr(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function An(e,t){return e.length>0?(mr(e,e.length,0,t),e):t}const Jg={}.hasOwnProperty;function oL(e){const t={};let n=-1;for(;++n<e.length;)uL(t,e[n]);return t}function uL(e,t){let n;for(n in t){const i=(Jg.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){Jg.call(i,s)||(i[s]=[]);const o=a[s];lL(i[s],Array.isArray(o)?o:o?[o]:[])}}}function lL(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);mr(e,0,0,r)}function IT(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ma(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ur=Oi(/[A-Za-z]/),cn=Oi(/[\dA-Za-z]/),cL=Oi(/[#-'*+\--9=?A-Z^-~]/);function ch(e){return e!==null&&(e<32||e===127)}const dh=Oi(/\d/),dL=Oi(/[\dA-Fa-f]/),fL=Oi(/[!-/:-@[-`{-~]/);function me(e){return e!==null&&e<-2}function Jt(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const hL=Oi(new RegExp("\\p{P}|\\p{S}","u")),pL=Oi(/\s/);function Oi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gs(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&cn(e.charCodeAt(n+1))&&cn(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Re(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ne(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ne(u)&&a++<i?(e.consume(u),o):(e.exit(n),t(u))}}const mL={tokenize:gL};function gL(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Re(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return me(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const yL={tokenize:xL},Zg={tokenize:bL};function xL(e){const t=this,n=[];let r=0,i,a,s;return o;function o(E){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,u,l)(E)}return l(E)}function u(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const _=t.events.length;let I=_,N;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){N=t.events[I][1].end;break}y(r);let L=_;for(;L<t.events.length;)t.events[L][1].end={...N},L++;return mr(t.events,I+1,0,t.events.slice(_)),t.events.length=L,l(E)}return o(E)}function l(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return x(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Zg,f,h)(E)}function f(E){return i&&g(),y(r),p(E)}function h(E){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(E)}function p(E){return t.containerState={},e.attempt(Zg,m,x)(E)}function m(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function x(E){if(E===null){i&&g(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(E)}function b(E){if(E===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return me(E)?(e.consume(E),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(E),b)}function v(E,_){const I=t.sliceStream(E);if(_&&I.push(null),E.previous=a,a&&(a.next=E),a=E,i.defineSkip(E.start),i.write(I),t.parser.lazy[E.start.line]){let N=i.events.length;for(;N--;)if(i.events[N][1].start.offset<s&&(!i.events[N][1].end||i.events[N][1].end.offset>s))return;const L=t.events.length;let M=L,$,H;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if($){H=t.events[M][1].end;break}$=!0}for(y(r),N=L;N<t.events.length;)t.events[N][1].end={...H},N++;mr(t.events,M+1,0,t.events.slice(L)),t.events.length=N}}function y(E){let _=n.length;for(;_-- >E;){const I=n[_];t.containerState=I[1],I[0].exit.call(t,e)}n.length=E}function g(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function bL(e,t,n){return Re(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function e1(e){if(e===null||Jt(e)||pL(e))return 1;if(hL(e))return 2}function Jp(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const fh={name:"attention",resolveAll:EL,tokenize:TL};function EL(e,t){let n=-1,r,i,a,s,o,u,l,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},p={...e[n][1].start};t1(h,-u),t1(p,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=An(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=An(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=An(l,Jp(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=An(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,l=An(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,mr(e,r-1,n-r+3,l),n=r+l.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function TL(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=e1(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const l=e.exit("attentionSequence"),f=e1(u),h=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return l._open=!!(a===42?h:h&&(i||!p)),l._close=!!(a===42?p:p&&(f||!h)),t(u)}}function t1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vL={name:"autolink",tokenize:wL};function wL(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return ur(m)?(e.consume(m),s):m===64?n(m):l(m)}function s(m){return m===43||m===45||m===46||cn(m)?(r=1,o(m)):l(m)}function o(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||cn(m))&&r++<32?(e.consume(m),o):(r=0,l(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||ch(m)?n(m):(e.consume(m),u)}function l(m){return m===64?(e.consume(m),f):cL(m)?(e.consume(m),l):n(m)}function f(m){return cn(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||cn(m))&&r++<63){const x=m===45?p:h;return e.consume(m),x}return n(m)}}const Lc={partial:!0,tokenize:CL};function CL(e,t,n){return r;function r(a){return Ne(a)?Re(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||me(a)?t(a):n(a)}}const OT={continuation:{tokenize:_L},exit:NL,name:"blockQuote",tokenize:AL};function AL(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return Ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function _L(e,t,n){const r=this;return i;function i(s){return Ne(s)?Re(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(OT,t,n)(s)}}function NL(e){e.exit("blockQuote")}const LT={name:"characterEscape",tokenize:kL};function kL(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return fL(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const RT={name:"characterReference",tokenize:SL};function SL(e,t,n){const r=this;let i=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=cn,f(h))}function l(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=dL,f):(e.enter("characterReferenceValue"),a=7,s=dh,f(h))}function f(h){if(h===59&&i){const p=e.exit("characterReferenceValue");return s===cn&&!Xp(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<a?(e.consume(h),f):n(h)}}const n1={partial:!0,tokenize:OL},r1={concrete:!0,name:"codeFenced",tokenize:IL};function IL(e,t,n){const r=this,i={partial:!0,tokenize:I};let a=0,s=0,o;return u;function u(N){return l(N)}function l(N){const L=r.events[r.events.length-1];return a=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,o=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(N)}function f(N){return N===o?(s++,e.consume(N),f):s<3?n(N):(e.exit("codeFencedFenceSequence"),Ne(N)?Re(e,h,"whitespace")(N):h(N))}function h(N){return N===null||me(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(n1,b,_)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(N))}function p(N){return N===null||me(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(N)):Ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Re(e,m,"whitespace")(N)):N===96&&N===o?n(N):(e.consume(N),p)}function m(N){return N===null||me(N)?h(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===null||me(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(N)):N===96&&N===o?n(N):(e.consume(N),x)}function b(N){return e.attempt(i,_,v)(N)}function v(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),y}function y(N){return a>0&&Ne(N)?Re(e,g,"linePrefix",a+1)(N):g(N)}function g(N){return N===null||me(N)?e.check(n1,b,_)(N):(e.enter("codeFlowValue"),E(N))}function E(N){return N===null||me(N)?(e.exit("codeFlowValue"),g(N)):(e.consume(N),E)}function _(N){return e.exit("codeFenced"),t(N)}function I(N,L,M){let $=0;return H;function H(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),W}function W(te){return N.enter("codeFencedFence"),Ne(te)?Re(N,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):F(te)}function F(te){return te===o?(N.enter("codeFencedFenceSequence"),K(te)):M(te)}function K(te){return te===o?($++,N.consume(te),K):$>=s?(N.exit("codeFencedFenceSequence"),Ne(te)?Re(N,z,"whitespace")(te):z(te)):M(te)}function z(te){return te===null||me(te)?(N.exit("codeFencedFence"),L(te)):M(te)}}}function OL(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Id={name:"codeIndented",tokenize:RL},LL={partial:!0,tokenize:PL};function RL(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Re(e,a,"linePrefix",5)(l)}function a(l){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):me(l)?e.attempt(LL,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||me(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function PL(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):me(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Re(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):me(s)?i(s):n(s)}}const DL={name:"codeText",previous:FL,resolve:ML,tokenize:BL};function ML(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function FL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function BL(e,t,n){let r=0,i,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),i=0,f(h)):me(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(h))}function l(h){return h===null||h===32||h===96||me(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),l)}function f(h){return h===96?(e.consume(h),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",l(h))}}class jL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ls(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ls(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ls(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ls(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ls(this.left,n.reverse())}}}function Ls(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function PT(e){const t={};let n=-1,r,i,a,s,o,u,l;const f=new jL(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,UL(f,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=f.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,n),o.unshift(r),f.splice(i,n-i+1,o))}}return mr(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!l}function UL(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let f,h,p=-1,m=n,x=0,b=0;const v=[b];for(;m;){for(;e.get(++i)[1]!==m;);a.push(i),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(b=p+1,v.push(b),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):v.pop(),p=v.length;p--;){const y=o.slice(v[p],v[p+1]),g=a.pop();u.push([g,g+y.length-1]),e.splice(g,2,y)}for(u.reverse(),p=-1;++p<u.length;)l[x+u[p][0]]=x+u[p][1],x+=u[p][1]-u[p][0]-1;return l}const HL={resolve:VL,tokenize:YL},zL={partial:!0,tokenize:$L};function VL(e){return PT(e),e}function YL(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):me(o)?e.check(zL,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function $L(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Re(e,a,"linePrefix")}function a(s){if(s===null||me(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function DT(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let f=0;return h;function h(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||ch(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||me(y)?n(y):(e.consume(y),y===92?x:m)}function x(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function b(y){return!f&&(y===null||y===41||Jt(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):f<l&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||ch(y)?n(y):(e.consume(y),y===92?v:b)}function v(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function MT(e,t,n,r,i,a){const s=this;let o=0,u;return l;function l(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(a),f}function f(m){return o>999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):me(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||me(m)||o++>999?(e.exit("chunkString"),f(m)):(e.consume(m),u||(u=!Ne(m)),m===92?p:h)}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,h):h(m)}}function FT(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,u):n(p)}function u(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),u(s)):p===null?n(p):me(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Re(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===s||p===null||me(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?h:f)}function h(p){return p===s||p===92?(e.consume(p),f):f(p)}}function eo(e,t){let n;return r;function r(i){return me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ne(i)?Re(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const WL={name:"definition",tokenize:GL},qL={partial:!0,tokenize:QL};function GL(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return MT.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Jt(m)?eo(e,l)(m):l(m)}function l(m){return DT(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(qL,h,h)(m)}function h(m){return Ne(m)?Re(e,p,"whitespace")(m):p(m)}function p(m){return m===null||me(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function QL(e,t,n){return r;function r(o){return Jt(o)?eo(e,i)(o):n(o)}function i(o){return FT(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ne(o)?Re(e,s,"whitespace")(o):s(o)}function s(o){return o===null||me(o)?t(o):n(o)}}const KL={name:"hardBreakEscape",tokenize:XL};function XL(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return me(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const JL={name:"headingAtx",resolve:ZL,tokenize:eR};function ZL(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},mr(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function eR(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||Jt(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||me(f)?(e.exit("atxHeading"),t(f)):Ne(f)?Re(e,o,"whitespace")(f):(e.enter("atxHeadingText"),l(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),o(f))}function l(f){return f===null||f===35||Jt(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),l)}}const tR=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],i1=["pre","script","style","textarea"],nR={concrete:!0,name:"htmlFlow",resolveTo:aR,tokenize:sR},rR={partial:!0,tokenize:uR},iR={partial:!0,tokenize:oR};function aR(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sR(e,t,n){const r=this;let i,a,s,o,u;return l;function l(k){return f(k)}function f(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),h}function h(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),a=!0,b):k===63?(e.consume(k),i=3,r.interrupt?t:C):ur(k)?(e.consume(k),s=String.fromCharCode(k),v):n(k)}function p(k){return k===45?(e.consume(k),i=2,m):k===91?(e.consume(k),i=5,o=0,x):ur(k)?(e.consume(k),i=4,r.interrupt?t:C):n(k)}function m(k){return k===45?(e.consume(k),r.interrupt?t:C):n(k)}function x(k){const Ee="CDATA[";return k===Ee.charCodeAt(o++)?(e.consume(k),o===Ee.length?r.interrupt?t:F:x):n(k)}function b(k){return ur(k)?(e.consume(k),s=String.fromCharCode(k),v):n(k)}function v(k){if(k===null||k===47||k===62||Jt(k)){const Ee=k===47,He=s.toLowerCase();return!Ee&&!a&&i1.includes(He)?(i=1,r.interrupt?t(k):F(k)):tR.includes(s.toLowerCase())?(i=6,Ee?(e.consume(k),y):r.interrupt?t(k):F(k)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):a?g(k):E(k))}return k===45||cn(k)?(e.consume(k),s+=String.fromCharCode(k),v):n(k)}function y(k){return k===62?(e.consume(k),r.interrupt?t:F):n(k)}function g(k){return Ne(k)?(e.consume(k),g):H(k)}function E(k){return k===47?(e.consume(k),H):k===58||k===95||ur(k)?(e.consume(k),_):Ne(k)?(e.consume(k),E):H(k)}function _(k){return k===45||k===46||k===58||k===95||cn(k)?(e.consume(k),_):I(k)}function I(k){return k===61?(e.consume(k),N):Ne(k)?(e.consume(k),I):E(k)}function N(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),u=k,L):Ne(k)?(e.consume(k),N):M(k)}function L(k){return k===u?(e.consume(k),u=null,$):k===null||me(k)?n(k):(e.consume(k),L)}function M(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Jt(k)?I(k):(e.consume(k),M)}function $(k){return k===47||k===62||Ne(k)?E(k):n(k)}function H(k){return k===62?(e.consume(k),W):n(k)}function W(k){return k===null||me(k)?F(k):Ne(k)?(e.consume(k),W):n(k)}function F(k){return k===45&&i===2?(e.consume(k),ie):k===60&&i===1?(e.consume(k),se):k===62&&i===4?(e.consume(k),re):k===63&&i===3?(e.consume(k),C):k===93&&i===5?(e.consume(k),G):me(k)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(rR,le,K)(k)):k===null||me(k)?(e.exit("htmlFlowData"),K(k)):(e.consume(k),F)}function K(k){return e.check(iR,z,le)(k)}function z(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),te}function te(k){return k===null||me(k)?K(k):(e.enter("htmlFlowData"),F(k))}function ie(k){return k===45?(e.consume(k),C):F(k)}function se(k){return k===47?(e.consume(k),s="",D):F(k)}function D(k){if(k===62){const Ee=s.toLowerCase();return i1.includes(Ee)?(e.consume(k),re):F(k)}return ur(k)&&s.length<8?(e.consume(k),s+=String.fromCharCode(k),D):F(k)}function G(k){return k===93?(e.consume(k),C):F(k)}function C(k){return k===62?(e.consume(k),re):k===45&&i===2?(e.consume(k),C):F(k)}function re(k){return k===null||me(k)?(e.exit("htmlFlowData"),le(k)):(e.consume(k),re)}function le(k){return e.exit("htmlFlow"),t(k)}}function oR(e,t,n){const r=this;return i;function i(s){return me(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function uR(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Lc,t,n)}}const lR={name:"htmlText",tokenize:cR};function cR(e,t,n){const r=this;let i,a,s;return o;function o(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),u}function u(C){return C===33?(e.consume(C),l):C===47?(e.consume(C),I):C===63?(e.consume(C),E):ur(C)?(e.consume(C),M):n(C)}function l(C){return C===45?(e.consume(C),f):C===91?(e.consume(C),a=0,x):ur(C)?(e.consume(C),g):n(C)}function f(C){return C===45?(e.consume(C),m):n(C)}function h(C){return C===null?n(C):C===45?(e.consume(C),p):me(C)?(s=h,se(C)):(e.consume(C),h)}function p(C){return C===45?(e.consume(C),m):h(C)}function m(C){return C===62?ie(C):C===45?p(C):h(C)}function x(C){const re="CDATA[";return C===re.charCodeAt(a++)?(e.consume(C),a===re.length?b:x):n(C)}function b(C){return C===null?n(C):C===93?(e.consume(C),v):me(C)?(s=b,se(C)):(e.consume(C),b)}function v(C){return C===93?(e.consume(C),y):b(C)}function y(C){return C===62?ie(C):C===93?(e.consume(C),y):b(C)}function g(C){return C===null||C===62?ie(C):me(C)?(s=g,se(C)):(e.consume(C),g)}function E(C){return C===null?n(C):C===63?(e.consume(C),_):me(C)?(s=E,se(C)):(e.consume(C),E)}function _(C){return C===62?ie(C):E(C)}function I(C){return ur(C)?(e.consume(C),N):n(C)}function N(C){return C===45||cn(C)?(e.consume(C),N):L(C)}function L(C){return me(C)?(s=L,se(C)):Ne(C)?(e.consume(C),L):ie(C)}function M(C){return C===45||cn(C)?(e.consume(C),M):C===47||C===62||Jt(C)?$(C):n(C)}function $(C){return C===47?(e.consume(C),ie):C===58||C===95||ur(C)?(e.consume(C),H):me(C)?(s=$,se(C)):Ne(C)?(e.consume(C),$):ie(C)}function H(C){return C===45||C===46||C===58||C===95||cn(C)?(e.consume(C),H):W(C)}function W(C){return C===61?(e.consume(C),F):me(C)?(s=W,se(C)):Ne(C)?(e.consume(C),W):$(C)}function F(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),i=C,K):me(C)?(s=F,se(C)):Ne(C)?(e.consume(C),F):(e.consume(C),z)}function K(C){return C===i?(e.consume(C),i=void 0,te):C===null?n(C):me(C)?(s=K,se(C)):(e.consume(C),K)}function z(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Jt(C)?$(C):(e.consume(C),z)}function te(C){return C===47||C===62||Jt(C)?$(C):n(C)}function ie(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function se(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),D}function D(C){return Ne(C)?Re(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):G(C)}function G(C){return e.enter("htmlTextData"),s(C)}}const Zp={name:"labelEnd",resolveAll:pR,resolveTo:mR,tokenize:gR},dR={tokenize:yR},fR={tokenize:xR},hR={tokenize:bR};function pR(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&mr(e,0,e.length,n),e}function mR(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=An(o,e.slice(a+1,a+r+3)),o=An(o,[["enter",f,t]]),o=An(o,Jp(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=An(o,[["exit",f,t],e[s-2],e[s-1],["exit",l,t]]),o=An(o,e.slice(s+1)),o=An(o,[["exit",u,t]]),mr(e,a,e.length,o),e}function gR(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(p){return a?a._inactive?h(p):(s=r.parser.defined.includes(Ma(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(dR,f,s?f:h)(p):p===91?e.attempt(fR,f,s?l:h)(p):s?f(p):h(p)}function l(p){return e.attempt(hR,f,h)(p)}function f(p){return t(p)}function h(p){return a._balanced=!0,n(p)}}function yR(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return Jt(h)?eo(e,a)(h):a(h)}function a(h){return h===41?f(h):DT(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return Jt(h)?eo(e,u)(h):f(h)}function o(h){return n(h)}function u(h){return h===34||h===39||h===40?FT(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):f(h)}function l(h){return Jt(h)?eo(e,f)(h):f(h)}function f(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function xR(e,t,n){const r=this;return i;function i(o){return MT.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function bR(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const ER={name:"labelStartImage",resolveAll:Zp.resolveAll,tokenize:TR};function TR(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const vR={name:"labelStartLink",resolveAll:Zp.resolveAll,tokenize:wR};function wR(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Od={name:"lineEnding",tokenize:CR};function CR(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Re(e,t,"linePrefix")}}const Ku={name:"thematicBreak",tokenize:AR};function AR(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||me(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Ne(l)?Re(e,o,"whitespace")(l):o(l))}}const Vt={continuation:{tokenize:SR},exit:OR,name:"list",tokenize:kR},_R={partial:!0,tokenize:LR},NR={partial:!0,tokenize:IR};function kR(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(m){const x=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:dh(m)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Ku,n,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return dh(m)&&++s<10?(e.consume(m),u):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):n(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Lc,r.interrupt?n:f,e.attempt(_R,p,h))}function f(m){return r.containerState.initialBlankLine=!0,a++,p(m)}function h(m){return Ne(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function SR(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Lc,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Re(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ne(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(NR,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Re(e,e.attempt(Vt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function IR(e,t,n){const r=this;return Re(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function OR(e){e.exit(this.containerState.type)}function LR(e,t,n){const r=this;return Re(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ne(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const a1={name:"setextUnderline",resolveTo:RR,tokenize:PR};function RR(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function PR(e,t,n){const r=this;let i;return a;function a(l){let f=r.events.length,h;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){h=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Ne(l)?Re(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||me(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const DR={tokenize:MR};function MR(e){const t=this,n=e.attempt(Lc,r,e.attempt(this.parser.constructs.flowInitial,i,Re(e,e.attempt(this.parser.constructs.flow,i,e.attempt(HL,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const FR={resolveAll:jT()},BR=BT("string"),jR=BT("text");function BT(e){return{resolveAll:jT(e==="text"?UR:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(f){return l(f)?a(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return l(f)?(n.exit("data"),a(f)):(n.consume(f),u)}function l(f){if(f===null)return!0;const h=i[f];let p=-1;if(h)for(;++p<h.length;){const m=h[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function jT(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function UR(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,o=0,u;for(;a--;){const l=i[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const HR={42:Vt,43:Vt,45:Vt,48:Vt,49:Vt,50:Vt,51:Vt,52:Vt,53:Vt,54:Vt,55:Vt,56:Vt,57:Vt,62:OT},zR={91:WL},VR={[-2]:Id,[-1]:Id,32:Id},YR={35:JL,42:Ku,45:[a1,Ku],60:nR,61:a1,95:Ku,96:r1,126:r1},$R={38:RT,92:LT},WR={[-5]:Od,[-4]:Od,[-3]:Od,33:ER,38:RT,42:fh,60:[vL,lR],91:vR,92:[KL,LT],93:Zp,95:fh,96:DL},qR={null:[fh,FR]},GR={null:[42,95]},QR={null:[]},KR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:GR,contentInitial:zR,disable:QR,document:HR,flow:YR,flowInitial:VR,insideSpan:qR,string:$R,text:WR},Symbol.toStringTag,{value:"Module"}));function XR(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const u={attempt:L(I),check:L(N),consume:g,enter:E,exit:_,interrupt:L(N,{interrupt:!0})},l={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:h};let f=t.tokenize.call(l,u);return t.resolveAll&&a.push(t),l;function h(W){return s=An(s,W),v(),s[s.length-1]!==null?[]:(M(t,0),l.events=Jp(a,l.events,l),l.events)}function p(W,F){return ZR(m(W),F)}function m(W){return JR(s,W)}function x(){const{_bufferIndex:W,_index:F,line:K,column:z,offset:te}=r;return{_bufferIndex:W,_index:F,line:K,column:z,offset:te}}function b(W){i[W.line]=W.column,H()}function v(){let W;for(;r._index<s.length;){const F=s[r._index];if(typeof F=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<F.length;)y(F.charCodeAt(r._bufferIndex));else y(F)}}function y(W){f=f(W)}function g(W){me(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,H()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=W}function E(W,F){const K=F||{};return K.type=W,K.start=x(),l.events.push(["enter",K,l]),o.push(K),K}function _(W){const F=o.pop();return F.end=x(),l.events.push(["exit",F,l]),F}function I(W,F){M(W,F.from)}function N(W,F){F.restore()}function L(W,F){return K;function K(z,te,ie){let se,D,G,C;return Array.isArray(z)?le(z):"tokenize"in z?le([z]):re(z);function re(he){return Ze;function Ze(Qe){const lt=Qe!==null&&he[Qe],pt=Qe!==null&&he.null,gn=[...Array.isArray(lt)?lt:lt?[lt]:[],...Array.isArray(pt)?pt:pt?[pt]:[]];return le(gn)(Qe)}}function le(he){return se=he,D=0,he.length===0?ie:k(he[D])}function k(he){return Ze;function Ze(Qe){return C=$(),G=he,he.partial||(l.currentConstruct=he),he.name&&l.parser.constructs.disable.null.includes(he.name)?He():he.tokenize.call(F?Object.assign(Object.create(l),F):l,u,Ee,He)(Qe)}}function Ee(he){return W(G,C),te}function He(he){return C.restore(),++D<se.length?k(se[D]):ie}}}function M(W,F){W.resolveAll&&!a.includes(W)&&a.push(W),W.resolve&&mr(l.events,F,l.events.length-F,W.resolve(l.events.slice(F),l)),W.resolveTo&&(l.events=W.resolveTo(l.events,l))}function $(){const W=x(),F=l.previous,K=l.currentConstruct,z=l.events.length,te=Array.from(o);return{from:z,restore:ie};function ie(){r=W,l.previous=F,l.currentConstruct=K,l.events.length=z,o=te,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function JR(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function ZR(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function eP(e){const r={constructs:oL([KR,...(e||{}).extensions||[]]),content:i(mL),defined:[],document:i(yL),flow:i(DR),lazy:{},string:i(BR),text:i(jR)};return r;function i(a){return s;function s(o){return XR(r,a,o)}}}function tP(e){for(;!PT(e););return e}const s1=/[\0\t\n\r]/g;function nP(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const u=[];let l,f,h,p,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(s1.lastIndex=h,l=s1.exec(a),p=l&&l.index!==void 0?l.index:a.length,m=a.charCodeAt(p),!l){t=a.slice(h);break}if(m===10&&h===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<p&&(u.push(a.slice(h,p)),e+=p-h),m){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const rP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iP(e){return e.replace(rP,aP)}function aP(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return IT(n.slice(a?2:1),a?16:10)}return Xp(n)||e}const UT={}.hasOwnProperty;function sP(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),oP(n)(tP(eP(n).document().write(nP()(e,t,!0))))}function oP(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(R),autolinkProtocol:$,autolinkEmail:$,atxHeading:a(jr),blockQuote:a(pt),characterEscape:$,characterReference:$,codeFenced:a(gn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(gn,s),codeText:a($n,s),codeTextData:$,data:$,codeFlowValue:$,definition:a(yn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Wn),hardBreakEscape:a(xn),hardBreakTrailing:a(xn),htmlFlow:a(Li,s),htmlFlowData:$,htmlText:a(Li,s),htmlTextData:$,image:a(O),label:s,link:a(R),listItem:a(ae),listItemValue:p,listOrdered:a(U,h),listUnordered:a(U),paragraph:a(ne),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(jr),strong:a(Z),thematicBreak:a(Ce)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:lt,autolinkProtocol:Qe,blockQuote:u(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:He,characterReferenceMarkerNumeric:He,characterReferenceValue:he,characterReference:Ze,codeFenced:u(v),codeFencedFence:b,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:H,codeIndented:u(y),codeText:u(te),codeTextData:H,data:H,definition:u(),definitionDestinationString:_,definitionLabelString:g,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(F),hardBreakTrailing:u(F),htmlFlow:u(K),htmlFlowData:H,htmlText:u(z),htmlTextData:H,image:u(se),label:G,labelText:D,lineEnding:W,link:u(ie),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ee,resourceDestinationString:C,resourceTitleString:re,resource:le,setextHeading:u(M),setextHeadingLineSequence:L,setextHeadingText:N,strong:u(),thematicBreak:u()}};HT(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(B){let Y={type:"root",children:[]};const fe={stack:[Y],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:f,data:n},ye=[];let Ae=-1;for(;++Ae<B.length;)if(B[Ae][1].type==="listOrdered"||B[Ae][1].type==="listUnordered")if(B[Ae][0]==="enter")ye.push(Ae);else{const mt=ye.pop();Ae=i(B,mt,Ae)}for(Ae=-1;++Ae<B.length;){const mt=t[B[Ae][0]];UT.call(mt,B[Ae][1].type)&&mt[B[Ae][1].type].call(Object.assign({sliceSerialize:B[Ae][2].sliceSerialize},fe),B[Ae][1])}if(fe.tokenStack.length>0){const mt=fe.tokenStack[fe.tokenStack.length-1];(mt[1]||o1).call(fe,void 0,mt[0])}for(Y.position={start:Yr(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:Yr(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)Y=t.transforms[Ae](Y)||Y;return Y}function i(B,Y,fe){let ye=Y-1,Ae=-1,mt=!1,bn,Lt,xr,En;for(;++ye<=fe;){const $e=B[ye];switch($e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$e[0]==="enter"?Ae++:Ae--,En=void 0;break}case"lineEndingBlank":{$e[0]==="enter"&&(bn&&!En&&!Ae&&!xr&&(xr=ye),En=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:En=void 0}if(!Ae&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||Ae===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(bn){let Ur=ye;for(Lt=void 0;Ur--;){const pe=B[Ur];if(pe[1].type==="lineEnding"||pe[1].type==="lineEndingBlank"){if(pe[0]==="exit")continue;Lt&&(B[Lt][1].type="lineEndingBlank",mt=!0),pe[1].type="lineEnding",Lt=Ur}else if(!(pe[1].type==="linePrefix"||pe[1].type==="blockQuotePrefix"||pe[1].type==="blockQuotePrefixWhitespace"||pe[1].type==="blockQuoteMarker"||pe[1].type==="listItemIndent"))break}xr&&(!Lt||xr<Lt)&&(bn._spread=!0),bn.end=Object.assign({},Lt?B[Lt][1].start:$e[1].end),B.splice(Lt||ye,0,["exit",bn,$e[2]]),ye++,fe++}if($e[1].type==="listItemPrefix"){const Ur={type:"listItem",_spread:!1,start:Object.assign({},$e[1].start),end:void 0};bn=Ur,B.splice(ye,0,["enter",Ur,$e[2]]),ye++,fe++,xr=void 0,En=!0}}}return B[Y][1]._spread=mt,fe}function a(B,Y){return fe;function fe(ye){o.call(this,B(ye),ye),Y&&Y.call(this,ye)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,Y,fe){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([Y,fe||void 0]),B.position={start:Yr(Y.start),end:void 0}}function u(B){return Y;function Y(fe){B&&B.call(this,fe),l.call(this,fe)}}function l(B,Y){const fe=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==B.type&&(Y?Y.call(this,B,ye[0]):(ye[1]||o1).call(this,B,ye[0]));else throw new Error("Cannot close `"+B.type+"` ("+Zs({start:B.start,end:B.end})+"): it’s not open");fe.position.end=Yr(B.end)}function f(){return aL(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(B){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function m(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=B}function x(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=B}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/(\r?\n|\r)$/g,"")}function g(B){const Y=this.resume(),fe=this.stack[this.stack.length-1];fe.label=Y,fe.identifier=Ma(this.sliceSerialize(B)).toLowerCase()}function E(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function _(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function I(B){const Y=this.stack[this.stack.length-1];if(!Y.depth){const fe=this.sliceSerialize(B).length;Y.depth=fe}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function L(B){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function $(B){const fe=this.stack[this.stack.length-1].children;let ye=fe[fe.length-1];(!ye||ye.type!=="text")&&(ye=ce(),ye.position={start:Yr(B.start),end:void 0},fe.push(ye)),this.stack.push(ye)}function H(B){const Y=this.stack.pop();Y.value+=this.sliceSerialize(B),Y.position.end=Yr(B.end)}function W(B){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=Y.children[Y.children.length-1];fe.position.end=Yr(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Y.type)&&($.call(this,B),H.call(this,B))}function F(){this.data.atHardBreak=!0}function K(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function z(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function te(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function ie(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function se(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function D(B){const Y=this.sliceSerialize(B),fe=this.stack[this.stack.length-2];fe.label=iP(Y),fe.identifier=Ma(Y).toLowerCase()}function G(){const B=this.stack[this.stack.length-1],Y=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const ye=B.children;fe.children=ye}else fe.alt=Y}function C(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function re(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function le(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Ee(B){const Y=this.resume(),fe=this.stack[this.stack.length-1];fe.label=Y,fe.identifier=Ma(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function He(B){this.data.characterReferenceType=B.type}function he(B){const Y=this.sliceSerialize(B),fe=this.data.characterReferenceType;let ye;fe?(ye=IT(Y,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=Xp(Y);const Ae=this.stack[this.stack.length-1];Ae.value+=ye}function Ze(B){const Y=this.stack.pop();Y.position.end=Yr(B.end)}function Qe(B){H.call(this,B);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(B)}function lt(B){H.call(this,B);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(B)}function pt(){return{type:"blockquote",children:[]}}function gn(){return{type:"code",lang:null,meta:null,value:""}}function $n(){return{type:"inlineCode",value:""}}function yn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wn(){return{type:"emphasis",children:[]}}function jr(){return{type:"heading",depth:0,children:[]}}function xn(){return{type:"break"}}function Li(){return{type:"html",value:""}}function O(){return{type:"image",title:null,url:"",alt:null}}function R(){return{type:"link",title:null,url:"",children:[]}}function U(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function ae(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function ne(){return{type:"paragraph",children:[]}}function Z(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function Yr(e){return{line:e.line,column:e.column,offset:e.offset}}function HT(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?HT(e,r):uP(e,r)}}function uP(e,t){let n;for(n in t)if(UT.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function o1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zs({start:t.start,end:t.end})+") is still open")}function lP(e){const t=this;t.parser=n;function n(r){return sP(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function cP(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function dP(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function fP(e,t){const n=t.value?t.value+`
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function hP(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pP(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mP(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=gs(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function gP(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yP(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function zT(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function xP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zT(e,t);const i={src:gs(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function bP(e,t){const n={src:gs(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function EP(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function TP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zT(e,t);const i={href:gs(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function vP(e,t){const n={href:gs(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wP(e,t,n){const r=e.all(t),i=n?CP(n):VT(t),a={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let h;f&&f.type==="element"&&f.tagName==="p"?h=f:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function CP(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=VT(n[r])}return t}function VT(e){const t=e.spread;return t??e.children.length>1}function AP(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function _P(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function NP(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kP(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SP(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=yr(t.children[1]),u=Oc(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function IP(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u<o;){const h=t.children[u],p={},m=s?s[u]:void 0;m&&(p.align=m);let x={type:"element",tagName:a,properties:p,children:[]};h&&(x.children=e.all(h),e.patch(h,x),x=e.applyData(h,x)),l.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,f),e.applyData(t,f)}function OP(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const u1=9,l1=32;function LP(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(c1(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(c1(t.slice(i),i>0,!1)),a.join("")}function c1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===u1||a===l1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===u1||a===l1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function RP(e,t){const n={type:"text",value:LP(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function PP(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const DP={blockquote:cP,break:dP,code:fP,delete:hP,emphasis:pP,footnoteReference:mP,heading:gP,html:yP,imageReference:xP,image:bP,inlineCode:EP,linkReference:TP,link:vP,listItem:wP,list:AP,paragraph:_P,root:NP,strong:kP,table:SP,tableCell:OP,tableRow:IP,text:RP,thematicBreak:PP,toml:ku,yaml:ku,definition:ku,footnoteDefinition:ku};function ku(){}const YT=-1,Rc=0,to=1,Yl=2,e0=3,t0=4,n0=5,r0=6,$T=7,WT=8,{defineProperty:MP}=Object,qT=typeof self=="object"?self:globalThis,d1=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new qT[e](t)},FP=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Rc:case YT:return n(s,i);case to:{const o=n([],i);for(const u of s)o.push(r(u));return o}case Yl:{const o=n({},i);for(const[u,l]of s){const f=r(u),h=r(l);f==="__proto__"?MP(o,f,{value:h,configurable:!0,enumerable:!0,writable:!0}):o[f]=h}return o}case e0:return n(new Date(s),i);case t0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case n0:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case r0:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case $T:{const{name:o,message:u}=s;return n(typeof qT[o]=="function"?d1(o,u):new Error(u),i)}case WT:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}case"-0":return-0}return n(d1(a,s),i)};return r},f1=e=>FP(new Map,e)(0),Mi="",{toString:BP}={},{keys:jP,is:UP}=Object,Rs=e=>{const t=typeof e;if(t!=="object"||!e)return[Rc,t];const n=BP.call(e).slice(8,-1);switch(n){case"Array":return[to,Mi];case"Object":return[Yl,Mi];case"Date":return[e0,Mi];case"RegExp":return[t0,Mi];case"Map":return[n0,Mi];case"Set":return[r0,Mi];case"DataView":return[to,n]}return n.includes("Array")?[to,n]:e instanceof Error?[$T,e.name||"Error"]:[Yl,n]},Su=([e,t])=>e===Rc&&(t==="function"||t==="symbol"),HP=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=Rs(s);switch(o){case Rc:{let f=s;switch(u){case"bigint":o=WT,f=s.toString();break;case"number":if(!s&&UP(s,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([YT],s)}return i([o,f],s)}case to:{if(u){let p=s;return u==="DataView"?p=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(s)),i([u,[...p]],s)}const f=[],h=i([o,f],s);for(const p of s)f.push(a(p));return h}case Yl:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const f=[],h=i([o,f],s);for(const p of jP(s))(e||!Su(Rs(s[p])))&&f.push([a(p),a(s[p])]);return h}case e0:return i([o,isNaN(s.getTime())?Mi:s.toISOString()],s);case t0:{const{source:f,flags:h}=s;return i([o,{source:f,flags:h}],s)}case n0:{const f=[],h=i([o,f],s);for(const[p,m]of s)(e||!(Su(Rs(p))||Su(Rs(m))))&&f.push([a(p),a(m)]);return h}case r0:{const f=[],h=i([o,f],s);for(const p of s)(e||!Su(Rs(p)))&&f.push(a(p));return h}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},h1=(e,{json:t,lossy:n}={})=>{const r=[];return HP(!(t||n),!!t,new Map,r)(e),r},rs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?f1(h1(e,t)):structuredClone(e):(e,t)=>f1(h1(e,t));function zP(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function VP(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YP(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||zP,r=e.options.footnoteBackLabel||VP,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const f=e.all(l),h=String(l.identifier).toUpperCase(),p=gs(h.toLowerCase());let m=0;const x=[],b=e.footnoteCounts.get(h);for(;b!==void 0&&++m<=b;){x.length>0&&x.push({type:"text",value:" "});let g=typeof n=="string"?n:n(u,m);typeof g=="string"&&(g={type:"text",value:g}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,m),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const g=v.children[v.children.length-1];g&&g.type==="text"?g.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...x)}else f.push(...x);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(l,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...rs(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
`}]}}const GT=function(e){if(e==null)return GP;if(typeof e=="function")return Pc(e);if(typeof e=="object")return Array.isArray(e)?$P(e):WP(e);if(typeof e=="string")return qP(e);throw new Error("Expected function, string, or object as test")};function $P(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=GT(e[n]);return Pc(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function WP(e){const t=e;return Pc(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function qP(e){return Pc(t);function t(n){return n&&n.type===e}}function Pc(e){return t;function t(n,r,i){return!!(QP(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function GP(){return!0}function QP(e){return e!==null&&typeof e=="object"&&"type"in e}const QT=[],KP=!0,p1=!1,XP="skip";function JP(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=GT(i),s=r?-1:1;o(e,void 0,[])();function o(u,l,f){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=QT,x,b,v;if((!t||a(u,l,f[f.length-1]||void 0))&&(m=ZP(n(u,f)),m[0]===p1))return m;if("children"in u&&u.children){const y=u;if(y.children&&m[0]!==XP)for(b=(r?y.children.length:-1)+s,v=f.concat(y);b>-1&&b<y.children.length;){const g=y.children[b];if(x=o(g,b,v)(),x[0]===p1)return x;b=typeof x[1]=="number"?x[1]:b+s}}return m}}}function ZP(e){return Array.isArray(e)?e:typeof e=="number"?[KP,e]:e==null?QT:[e]}function i0(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),JP(e,a,o,i);function o(u,l){const f=l[l.length-1],h=f?f.children.indexOf(u):void 0;return s(u,h,f)}}const hh={}.hasOwnProperty,e8={};function t8(e,t){const n=t||e8,r=new Map,i=new Map,a=new Map,s={...DP,...n.handlers},o={all:l,applyData:r8,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:n8,wrap:a8};return i0(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const h=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();h.has(p)||h.set(p,f)}}),o;function u(f,h){const p=f.type,m=o.handlers[p];if(hh.call(o.handlers,p)&&m)return m(o,f,h);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in f){const{children:b,...v}=f,y=rs(v);return y.children=o.all(f),y}return rs(f)}return(o.options.unknownHandler||i8)(o,f,h)}function l(f){const h=[];if("children"in f){const p=f.children;let m=-1;for(;++m<p.length;){const x=o.one(p[m],f);if(x){if(m&&p[m-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=m1(x.value)),!Array.isArray(x)&&x.type==="element")){const b=x.children[0];b&&b.type==="text"&&(b.value=m1(b.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function n8(e,t){e.position&&(t.position=F5(e))}function r8(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,rs(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function i8(e,t){const n=t.data||{},r="value"in t&&!(hh.call(n,"hProperties")||hh.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function a8(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function m1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function g1(e,t){const n=t8(e,t),r=n.one(e,void 0),i=YP(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function s8(e,t){return e&&"run"in e?async function(n,r){const i=g1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return g1(n,{file:r,...e||t})}}function y1(e){if(e)throw e}var Xu=Object.prototype.hasOwnProperty,KT=Object.prototype.toString,x1=Object.defineProperty,b1=Object.getOwnPropertyDescriptor,E1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):KT.call(t)==="[object Array]"},T1=function(t){if(!t||KT.call(t)!=="[object Object]")return!1;var n=Xu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Xu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Xu.call(t,i)},v1=function(t,n){x1&&n.name==="__proto__"?x1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},w1=function(t,n){if(n==="__proto__")if(Xu.call(t,n)){if(b1)return b1(t,n).value}else return;return t[n]},o8=function e(){var t,n,r,i,a,s,o=arguments[0],u=1,l=arguments.length,f=!1;for(typeof o=="boolean"&&(f=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<l;++u)if(t=arguments[u],t!=null)for(n in t)r=w1(o,n),i=w1(t,n),o!==i&&(f&&i&&(T1(i)||(a=E1(i)))?(a?(a=!1,s=r&&E1(r)?r:[]):s=r&&T1(r)?r:{},v1(o,{name:n,newValue:e(f,s,i)})):typeof i<"u"&&v1(o,{name:n,newValue:i}));return o};const Ld=Ql(o8);function ph(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function u8(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(u,...l){const f=e[++a];let h=-1;if(u){s(u);return}for(;++h<i.length;)(l[h]===null||l[h]===void 0)&&(l[h]=i[h]);i=l,f?l8(f,o)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function l8(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const f=l;if(o&&n)throw f;return i(f)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const Xn={basename:c8,dirname:d8,extname:f8,join:h8,sep:"/"};function c8(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zo(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function d8(e){if(Zo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function f8(e){Zo(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function h8(...e){let t=-1,n;for(;++t<e.length;)Zo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":p8(n)}function p8(e){Zo(e);const t=e.codePointAt(0)===47;let n=m8(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function m8(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Zo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const g8={cwd:y8};function y8(){return"/"}function mh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function x8(e){if(typeof e=="string")e=new URL(e);else if(!mh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return b8(e)}function b8(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Rd=["history","path","basename","stem","extname","dirname"];class XT{constructor(t){let n;t?mh(t)?n={path:t}:typeof t=="string"||E8(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":g8.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Rd.length;){const a=Rd[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Rd.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Xn.basename(this.path):void 0}set basename(t){Dd(t,"basename"),Pd(t,"basename"),this.path=Xn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xn.dirname(this.path):void 0}set dirname(t){C1(this.basename,"dirname"),this.path=Xn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xn.extname(this.path):void 0}set extname(t){if(Pd(t,"extname"),C1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){mh(t)&&(t=x8(t)),Dd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xn.basename(this.path,this.extname):void 0}set stem(t){Dd(t,"stem"),Pd(t,"stem"),this.path=Xn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new It(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pd(e,t){if(e&&e.includes(Xn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xn.sep+"`")}function Dd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function C1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function E8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const T8=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},v8={}.hasOwnProperty;class a0 extends T8{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=u8()}copy(){const t=new a0;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ld(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Bd("data",this.frozen),this.namespace[t]=n,this):v8.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Bd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Iu(t),r=this.parser||this.Parser;return Md("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Md("process",this.parser||this.Parser),Fd("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=Iu(t),u=r.parse(o);r.run(u,o,function(f,h,p){if(f||!h||!p)return l(f);const m=h,x=r.stringify(m,p);A8(x)?p.value=x:p.result=x,l(f,p)});function l(f,h){f||!h?s(f):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Md("processSync",this.parser||this.Parser),Fd("processSync",this.compiler||this.Compiler),this.process(t,i),_1("processSync","process",n),r;function i(a,s){n=!0,y1(a),r=s}}run(t,n,r){A1(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const u=Iu(n);i.run(t,u,l);function l(f,h,p){const m=h||t;f?o(f):s?s(m):r(void 0,m,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),_1("runSync","run",r),i;function a(s,o){y1(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Iu(n),i=this.compiler||this.Compiler;return Fd("stringify",i),A1(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Bd("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[f,...h]=l;u(f,h)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(i.settings=Ld(!0,i.settings,l.settings))}function o(l){let f=-1;if(l!=null)if(Array.isArray(l))for(;++f<l.length;){const h=l[f];a(h)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,f){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===l){p=h;break}if(p===-1)r.push([l,...f]);else if(f.length>0){let[m,...x]=f;const b=r[p][1];ph(b)&&ph(m)&&(m=Ld(!0,b,m)),r[p]=[l,m,...x]}}}}const w8=new a0().freeze();function Md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Bd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function A1(e){if(!ph(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Iu(e){return C8(e)?e:new XT(e)}function C8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function A8(e){return typeof e=="string"||_8(e)}function _8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const N8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",N1=[],k1={allowDangerousHtml:!0},k8=/^(https?|ircs?|mailto|xmpp)$/i,S8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function I8(e){const t=O8(e),n=L8(e);return R8(t.runSync(t.parse(n),n),e)}function O8(e){const t=e.rehypePlugins||N1,n=e.remarkPlugins||N1,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...k1}:k1;return w8().use(lP).use(n).use(s8,r).use(t)}function L8(e){const t=e.children||"",n=new XT;return typeof t=="string"&&(n.value=t),n}function R8(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||P8;for(const f of S8)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+N8+f.id,void 0);return i0(e,l),z5(e,{Fragment:c.Fragment,components:i,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function l(f,h,p){if(f.type==="raw"&&p&&typeof h=="number")return s?p.children.splice(h,1):p.children[h]={type:"text",value:f.value},h;if(f.type==="element"){let m;for(m in Sd)if(Object.hasOwn(Sd,m)&&Object.hasOwn(f.properties,m)){const x=f.properties[m],b=Sd[m];(b===null||b.includes(f.tagName))&&(f.properties[m]=u(String(x||""),m,f))}}if(f.type==="element"){let m=n?!n.includes(f.tagName):a?a.includes(f.tagName):!1;if(!m&&r&&typeof h=="number"&&(m=!r(f,h,p)),m&&p&&typeof h=="number")return o&&f.children?p.children.splice(h,1,...f.children):p.children.splice(h,1),h}}}function P8(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||k8.test(e.slice(0,t))?e:""}const S1=/[#.]/g;function D8(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){S1.lastIndex=i;const o=S1.exec(n),u=n.slice(i,o?o.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function JT(e,t,n){const r=n?j8(n):void 0;function i(a,s,...o){let u;if(a==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=D8(a,t);const l=u.tagName.toLowerCase(),f=r?r.get(l):void 0;if(u.tagName=f||l,M8(s))o.unshift(s);else for(const[h,p]of Object.entries(s))F8(e,u.properties,h,p)}for(const l of o)gh(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function M8(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function F8(e,t,n,r){const i=Sc(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=zg(r):i.commaSeparated?a=Fg(r):i.commaOrSpaceSeparated?a=zg(Fg(r).join(" ")):a=I1(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?B8(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(I1(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function gh(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)gh(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?gh(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function I1(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Mo(n)===Mo(t)))return!0}return n}function B8(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function j8(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const U8=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],H8=JT(Jo,"div"),z8=JT(Ii,"g",U8);function V8(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=O1(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],u=O1(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function O1(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Hi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ZT={}.hasOwnProperty,Y8=Object.prototype;function $8(e,t){const n=t||{};return s0({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ii:Jo,verbose:n.verbose||!1},e)}function s0(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Ju(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:ev(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=V8(a),o=s.toPoint(0),u=s.toPoint(a.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Ju(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Ju(e,r,n),n}default:return n=W8(e,t),n}}function ev(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=s0(e,t[n]);r.push(i)}return r}function W8(e,t){const n=e.schema;e.schema=t.namespaceURI===Hi.svg?Ii:Jo;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;ZT.call(Y8,u)||(i[u]=o.value)}const s=(e.schema.space==="svg"?z8:H8)(t.tagName,i,ev(e,t.childNodes));if(Ju(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&Na(u.startTag),f=u&&u.endTag&&Na(u.endTag),h=s0(e,o.content);l&&f&&e.file&&(h.position={start:l.end,end:f.start}),s.content=h}return e.schema=n,s}function Ju(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=q8(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function q8(e,t,n){const r=Na(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)ZT.call(n.attrs,s)&&(a[Sc(e.schema,s).property]=Na(n.attrs[s]));n.startTag;const o=Na(n.startTag),u=n.endTag?Na(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=a,t.data={position:l}}}return r}function Na(e){const t=L1({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=L1({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function L1(e){return e.line&&e.column?e:void 0}const R1={}.hasOwnProperty;function tv(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&R1.call(i,e)){const u=String(i[e]);s=R1.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const G8={},Q8={}.hasOwnProperty,nv=tv("type",{handlers:{root:X8,element:nD,text:eD,comment:tD,doctype:Z8}});function K8(e,t){const r=(t||G8).space;return nv(e,r==="svg"?Ii:Jo)}function X8(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=o0(e.children,n,t),ys(e,n),n}function J8(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=o0(e.children,n,t),ys(e,n),n}function Z8(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ys(e,t),t}function eD(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ys(e,t),t}function tD(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ys(e,t),t}function nD(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ii);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Q8.call(e.properties,a)){const u=rD(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Hi[s],childNodes:[],parentNode:null};return o.childNodes=o0(e.children,o,r),ys(e,o),e.tagName==="template"&&e.content&&(o.content=J8(e.content,r)),o}function rD(e,t,n){const r=Sc(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?mT(n):wT(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Hi[r.space]}return i}function o0(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=nv(e[r],n);a.parentNode=t,i.push(a)}return i}function ys(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const iD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],aD=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),je="�";var w;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(w||(w={}));const zt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function rv(e){return e>=55296&&e<=57343}function sD(e){return e>=56320&&e<=57343}function oD(e,t){return(e-55296)*1024+9216+t}function iv(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function av(e){return e>=64976&&e<=65007||aD.has(e)}var j;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(j||(j={}));const uD=65536;class lD{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=uD,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(sD(n))return this.pos++,this._addGap(),oD(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,w.EOF;return this._err(j.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;const r=this.html.charCodeAt(n);return r===w.CARRIAGE_RETURN?w.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;let t=this.html.charCodeAt(this.pos);return t===w.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,w.LINE_FEED):t===w.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,rv(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===w.LINE_FEED||t===w.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){iv(t)?this._err(j.controlCharacterInInputStream):av(t)&&this._err(j.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Te;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Te||(Te={}));function sv(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const cD=new Uint16Array('áµ<ÕıʊÒÕ»×ٵ۞ޢߖà ੊ઑඡà¹à¼‰à¼¦áƒŠáˆ¨á‹¡á•á’ᓃᓟᔥ\0\0\0\0\0\0á•«á›á¦á°’á·á½¾â ↰âŠâ€â»â‘‚â ¤â¤’â´ˆâ¹ˆâ¿Žã€–ãŠºã˜¹ãž¬ã£¾ã¨¨ã©±ã« ã¬®à €EMabcfglmnoprstu\\bfms„‹Â•˜¦³¹ÈÃlig耻Æ䃆P耻&䀦cute耻Ãäƒreve;ä„‚Ä€iyx}rc耻Â䃂;är;쀀ð”„rave耻À䃀pha;䎑acr;ä„€d;æ©“Ä€gp¡on;ä„„f;쀀ð”¸plyFunction;æ¡ing耻Å䃅Ācs¾Ãr;쀀ð’œign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;æ«§ed;挆y;䑯€crtąċĔause;戵noullis;愬a;䎒r;쀀ð”…pf;쀀ð”¹eve;䋘còēmpeq;扎܀HOacdefhilorsuÅőŖƀƞƢƵƷƺǜȕɳɸɾcy;ä§PY耻©䂩ƀcpyÅŢźute;䄆Ā;iŧŨ拒talDifferentialD;æ……leys;æ„È€aeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧÆilla;䂸terDot;䂷òſi;䎧rcleÈ€DMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oÄ€csǢǸkwiseContourIntegral;戲eCurlyÄ€DQȃÈoubleQuote;æ€uote;怙ȀlnpuȞȨɇɕonÄ€;eȥȦ户;æ©´Æ€gitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;æ„‚oduct;æˆnterClockwiseContourIntegral;戳oss;樯cr;쀀ð’žpÄ€;Cʄʅ拓ap;æ‰Ö€DJSZacefiosÊ Ê¬Ê°Ê´Ê¸Ë‹Ë—Ë¡Ë¦Ì³ÒÄ€;oŹʥtrahd;椑cy;ä‚cy;ä…cy;䯀grsʿ˄ˇger;怡r;憡hv;櫤ĀayËË•ron;䄎;ä”lÄ€;tË˞戇a;䎔r;쀀ð”‡Ä€af˫̧Ācm˰̢riticalÈ€ADGT̖̜̀̆cute;ä‚´oÅ´Ì‹Ì;ä‹™bleAcute;ä‹rave;ä ilde;䋜ond;æ‹„ferentialD;慆Ѱ̽\0\0\0͔͂\0Ð…f;ì€€ð”»Æ€;DE͈͉Í䂨ot;惜qual;æ‰bleÌ€CDLRUVͣͲ΂ÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftÆ€ARTÎΖΡrrow;æ‡ightArrow;懔eåˊngÄ€LRΫτeftÄ€ARγιrrow;柸ightArrow;柺ightArrow;柹ightÄ€ATϘϞrrow;懒ee;抨pÉÏ©\0\0ϯrrow;懑ownArrow;懕erticalBar;戥nÌ€ABLRTaВЪаўѿͼrrowÆ€;BUÐОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ÑightVector;æ¥eeVector;楞ectorÄ€;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorÄ€;BѺѻæ‡ar;楗eeÄ€;A҆҇护rrow;憧ĀctÒ’Ò—r;쀀ð’Ÿrok;ä„à €NTacdfglmopqstuxÒ½Ó€Ó„Ó‹ÓžÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶Õ’ÕÕ Õ¥G;ä…ŠH耻Ãäƒcute耻É䃉ƀaiyÓ’Ó—Óœron;䄚rc耻Ê䃊;äot;ä„–r;쀀ð”ˆrave耻È䃈ement;戈ĀapÓºÓ¾cr;ä„’tyɓԆ\0\0Ô’mallSquare;æ—»erySmallSquare;æ–«Ä€gpÔ¦Ôªon;䄘f;쀀ð”¼silon;䎕uÄ€aiÔ¼Õ‰lÄ€;TՂՃ橵ilde;扂librium;懌ĀciÕ—Õšr;æ„°m;橳a;䎗ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosÖ…ÖˆÖֲ׌y;ä¤r;쀀ð”‰lledɓ֗\0\0Ö£mallSquare;æ—¼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;쀀ð”½All;戀riertrf;愱cò׋؀JTabcdfgorst×¨×¬×¯×ºØ€Ø’Ø–Ø›ØØ£Ù¬Ù²cy;äƒè€»>䀾mmaÄ€;d׷׸䎓;äœreve;䄞ƀeiy؇،Ødil;ä„¢rc;䄜;ä“ot;ä„ r;쀀ð”Š;æ‹™pf;쀀ð”¾eaterÌ€EFGLSTصلَٖٛ٦qualÄ€;Lؾؿ扥ess;æ‹›ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀ð’¢;扫ЀAacfiosuÚ…Ú‹Ú–Ú›ÚžÚªÚ¾ÛŠRDcy;äªÄ€ctÚÚ”ek;䋇;äžirc;䄤r;愌lbertSpace;愋ǰگ\0Ú²f;æ„izontalLine;攀Āctۃۅòکrok;䄦mpÅ„ÛÛ˜ownHumðįqual;æ‰Ü€EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދÞÞ•cy;ä•lig;䄲cy;äcute耻ÃäƒÄ€iyܓܘrc耻Î䃎;ä˜ot;ä„°r;æ„‘rave耻Ì䃌ƀ;apÜ Ü¯Ü¿Ä€cgÜ´Ü·r;䄪inaryI;æ…ˆlieóÏǴ݉\0ݢĀ;eÝݎ戬Āgrݓݘral;戫section;æ‹‚isibleÄ€CTݬݲomma;æ£imes;æ¢Æ€gptݿރވon;ä„®f;쀀ð•€a;䎙cr;æ„ilde;䄨ǫޚ\0Þžcy;ä†l耻ÃäƒÊ€cfosuެ޷޼߂ßÄ€iyÞ±Þµrc;ä„´;ä™r;쀀ð”pf;쀀ð•ǣ߇\0ߌr;쀀ð’¥rcy;äˆkcy;ä„΀HJacfosß¤ß¨ß¬ß±ß½à ‚à ˆcy;ä¥cy;äŒppa;䎚Āeyß¶ß»dil;ä„¶;äšr;쀀ð”Žpf;쀀ð•‚cr;쀀ð’¦Ö€JTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§‡à§à¨·à©‡cy;ä‰è€»<䀼ʀcmnprà ·à ¼à¡à¡„à¡ute;䄹bda;䎛g;柪lacetrf;æ„’r;憞ƀaeyࡗ࡜ࡡron;䄽dil;ä„»;ä›Ä€fsࡨ॰tÔ€ACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़Î४Ānrࢃà¢gleBracket;柨rowÆ€;BR࢙࢚࢞æ†ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorÄ€;Bࣛࣜ懃ar;楙loor;挊ightÄ€AV࣯ࣵrrow;憔ector;楎Āerà¤à¤—eÆ€;AVà¤‰à¤Šà¤æŠ£rrow;憤ector;楚iangleÆ€;BEतथऩ抲ar;æ§qual;抴pÆ€DTVषूौownVector;楑eeVector;æ¥ ectorÄ€;Bॖॗ憿ar;楘ectorÄ€;B॥०憼ar;楒ightáΜsÌ€EFGLSTॾঋকà¦à¦¢à¦qualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀ð”Ä€;eঽা拘ftarrow;懚idot;ä„¿Æ€npw৔ਖਛgÈ€LRlr৞৷ਂà¨eftÄ€AR০৬rrow;柵ightArrow;柷ightArrow;柶eftÄ€arγਊightáοightáϊf;쀀ð•ƒerÄ€LRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;ä…;扪Ѐacefiosuਗ਼à©à© ੷੼અઋ઎p;椅y;äœÄ€dl੥੯iumSpace;æŸlintrf;愳r;쀀ð”nusPlus;戓pf;쀀ð•„cò੶;䎜ҀJacefostuણધàªà«€à¬”ଙඑ඗ඞcy;äŠcute;䅃ƀaey઴હાron;ä…‡dil;ä……;䯀gswે૰଎ativeÆ€MTV૓૟૨ediumSpace;怋hiÄ€cn૦૘ë૙eryThiî૙tedÄ€GL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀ð”‘È€Bnptଢନଷ଺reak;æ BreakingSpace;ä‚ f;æ„•Ú€;CDEGHLNPRSTVà•à–àªà¼à®¡à¯«à°„౞಄ದ೘ൡඅ櫬Āouà›à¤ngruent;扢pCap;æ‰oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualÄ€;Tà®’à®“æ‰ ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀â‰Ì¸eÄ€fsà°Šà°§tTriangleÆ€;BEచఛడ拪ar;쀀â§Ì¸qual;括sÌ€;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedÄ€GL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesÆ€;ESಒಓಛ技qual;쀀⪯̸lantEqual;æ‹ Ä€eiಫಹverseElement;戌ghtTriangleÆ€;BEೋೌ೒拫ar;쀀â§Ì¸qual;æ‹Ä€quà³à´ŒuareSuÄ€bp೨೹setÄ€;E೰ೳ쀀âŠÌ¸qual;æ‹¢ersetÄ€;Eഃആ쀀âŠÌ¸qual;拣ƀbcpഓതൎsetÄ€;Eഛഞ쀀⊂⃒qual;抈ceedsÈ€;ESTലള഻െæŠqual;쀀⪰̸lantEqual;æ‹¡ilde;쀀≿̸ersetÄ€;E൘൛쀀⊃⃒qual;抉ildeÈ€;EFT൮൯൵ൿæ‰qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀ð’©ilde耻Ñ䃑;äŽÜ€Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;ä…’cute耻Ó䃓Āiyà·Žà·“rc耻Ô䃔;äžblac;ä…r;쀀ð”’rave耻Ò䃒ƀaei෮ෲ෶cr;ä…Œga;䎩cron;䎟pf;쀀ð•†enCurlyÄ€DQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀ð’ªash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erÄ€BP๋๠Āarà¹à¹“r;怾acÄ€ek๚๜;æžet;掴arenthesis;æœÒ€acfhilors๿ງຊàºàº’ດàºàº°à»¼rtialD;戂y;äŸr;쀀ð”“i;䎦;äŽ usMinus;䂱ĀipຢàºncareplanÃ¥Úf;愙Ȁ;eio຺ູ໠໤檻cedesÈ€;EST່້à»à»šæ‰ºqual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;æˆortionÄ€;aȥ໹l;æˆÄ€cià¼à¼†r;쀀ð’«;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀ð””pf;愚cr;ì€€ð’¬Ø€BEacefhiorsu༾གྷཇའཱིྦྷྪà¾á‚–ႩႴႾarr;æ¤G耻®䂮ƀcnrཎནབute;ä…”g;柫rÄ€;tà½œà½æ† l;椖ƀaeyཧཬཱron;ä…˜dil;ä…–;ä Ä€;vླྀཹ愜erseÄ€EUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVaà¿à¿«à¿³á€¢á€¨á›á‚‡Ï˜Ä€nr࿆࿒gleBracket;柩rowÆ€;BL࿜à¿à¿¡æ†’ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;æ¥ectorÄ€;Bá€á€žæ‡‚ar;楕loor;挋Āerá€áƒeÆ€;AVဵံြ抢rrow;憦ector;楛iangleÆ€;BEáá‘á•æŠ³ar;æ§qual;抵pÆ€DTVá£á®á¸ownVector;æ¥eeVector;楜ectorÄ€;Bႂႃ憾ar;楔ectorÄ€;B႑႒懀ar;楓Āpuႛ႞f;æ„ndImplies;楰ightarrow;懛ĀchႹႼr;æ„›;憱leDelayed;æ§´Ú€HOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;ä©y;ä¨FTcy;ä¬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;ä… dil;ä…žrc;ä…œ;ä¡r;쀀ð”–ortÈ€DLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»à¿pArrow;憑gma;䎣allCircle;战pf;쀀ð•ŠÉ²á…\0\0á…°t;戚areÈ€;ISUᅻᅼᆉᆯ斡ntersection;抓uÄ€bpá†á†žsetÄ€;EᆗᆘæŠqual;抑ersetÄ€;EᆨᆩæŠqual;抒nion;抔cr;쀀ð’®ar;拆ȀbcmpᇈᇛሉላĀ;sá‡á‡Žæ‹etÄ€;Eá‡á‡•qual;抆ĀchᇠህeedsÈ€;ESTá‡á‡®á‡´á‡¿æ‰»qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetÄ€;EáˆœáˆæŠƒqual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;ä‹y;ä¦Ä€buቚቜ;䀉;䎤ƀaeyብቪቯron;ä…¤dil;ä…¢;ä¢r;쀀ð”—Ä€eiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀âŸâ€ŠSpace;怉ldeÈ€;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀ð•‹ipleDot;惛Āctá‹–á‹›r;쀀ð’¯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽá·áŽ…\0á¿á„áŠáÄ€crá‹»áŒute耻Ú䃚rÄ€;oጇገ憟cir;楉rǣጓ\0጖y;äŽve;䅬Āiyጞጣrc耻Û䃛;ä£blac;ä…°r;쀀ð”˜rave耻Ù䃙acr;䅪Ādiáá©erÄ€BPáˆáÄ€aráár;äŸacÄ€eká—á™;æŸet;掵arenthesis;æonÄ€;Pá°á±æ‹ƒlus;抎Āgpá»á¿on;ä…²f;쀀ð•ŒÐ€ADETadps᎕ᎮᎸá„Ϩá’á—á³rrowÆ€;BDá…ᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeÄ€;Aá‹áŒæŠ¥rrow;憥ownáϳerÄ€LRážá¨eftArrow;憖ightArrow;憗iÄ€;lá¹áºä’on;䎥ing;ä…®cr;쀀ð’°ilde;ä…¨ml耻Ü䃜ҀDbcdefosvá§á¬á°á³á¾á’…á’Šá’á’–ash;披ar;æ««y;ä’ashÄ€;lá»á¼æŠ©;櫦Āerᑃᑅ;æ‹Æ€btyᑌá‘ᑺar;怖Ā;iá‘á‘•calÈ€BLSTᑡᑥᑪᑴar;戣ine;ä¼eparator;æ˜ilde;所ThinSpace;怊r;쀀ð”™pf;쀀ð•cr;쀀ð’±dash;抪ʀcefosᒧᒬᒱᒶᒼirc;ä…´dge;æ‹€r;쀀ð”špf;쀀ð•Žcr;쀀ð’²È€fiosá“‹á“ᓒᓘr;쀀ð”›;䎞pf;쀀ð•cr;쀀ð’³Ò€AIUacfosuᓱᓵᓹᓽᔄá”ᔔᔚᔠcy;ä¯cy;ä‡cy;ä®cute耻ÃäƒÄ€iyᔉá”rc;ä…¶;ä«r;쀀ð”œpf;쀀ð•cr;쀀ð’´ml;䅸ЀHacdefosᔵᔹᔿᕋá•á•ᕠᕤcy;ä–cute;䅹Āayᕄᕉron;ä…½;ä—ot;䅻Dzᕔ\0á•›oWidtè૙a;䎖r;愨pf;愤cr;쀀ð’µà¯¡á–ƒá–Šá–\0á–°á–¶á–¿\0\0\0\0ᗆᗛᗫᙟá™\0ᚕ᚛ᚲᚹ\0áš¾cute耻á䃡reve;䄃̀;Ediuyá–œá–á–¡á–£á–¨á–æˆ¾;쀀∾̳;房rc耻â䃢te肻´̆;ä°lig耻æ䃦Ā;r²ᖺ;쀀ð”žraveè€»Ã äƒ Ä€epá—Šá—–Ä€fpá—á—”sym;愵èᗓha;䎱Āapá—ŸcÄ€clᗤᗧr;ä„g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿá˜á˜‡æˆ§nd;æ©•;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿá™á™™æˆ ;榤e»ᘙsdÄ€;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ€;vᙅᙆ戟bÄ€;dá™Œá™æŠ¾;æ¦Ä€ptᙔᙗh;戢»¹arr;æ¼Ä€gpᙣᙧon;ä„…f;쀀ð•’΀;Eaeiopá‹á™»á™½áš‚ᚄᚇᚊ;æ©°cir;橯;扊d;手s;䀧roxÄ€;eá‹áš’ñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀ð’¶;䀪mpÄ€;eá‹áš¯Ã±Êˆilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;æ¨‘à €Nabcdefiklnoprsuá›á›±áœ°áœ¼áƒáˆá¸á½áŸ áŸ¦á ¹á¡áœá¤½á¥ˆá¥°ot;æ«Ä€crᛶ᜞kÈ€cepsᜀᜅáœáœ“ong;扌psilon;ä¶rime;怵imÄ€;e᜚᜛戽q;æ‹Å¶áœ¢áœ¦ee;抽edÄ€;gáœ¬áœæŒ…e»áœrkÄ€;táœáœ·brk;掶Āoyáœá;ä±quo;怞ʀcmprtá“á›á¡á¤á¨ausÄ€;eĊĉptyv;榰séᜌnoõēƀahwá¯á±á³;䎲;æ„¶een;扬r;쀀ð”Ÿg΀costuvwážážáž³áŸáŸ•៛៞ƀaiuáž”áž–ážšÃ°Ý rc;æ—¯pÂ»á±Æ€dptឤឨážot;樀lus;æ¨imes;樂ɱឹ\0\0áž¾cup;樆ar;昅riangleÄ€duáŸáŸ’own;æ–½p;æ–³plus;樄eåᑄåá’arow;æ¤Æ€akoáŸá ¦á µÄ€cnáŸ²á £kÆ€lstáŸºÖ«á ‚ozenge;æ§«riangleÈ€;dlrá ’á “á ˜á æ–´own;æ–¾eft;æ—‚ight;æ–¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ–’;æ–‘4;æ–“ck;斈Āeoá ¾á¡Ä€;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;æŒÈ€ptwxᡙᡞᡧᡬf;쀀ð•“Ä€;tá‹á¡£om»áŒtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊá¤á¤¡È€LRlrᢎá¢á¢’ᢔ;æ•—;æ•”;æ•–;æ•“Ê€;DUduᢡᢢᢤᢦᢨæ•;敦;æ•©;敤;æ•§È€LRlrᢳᢵᢷᢹ;æ•;敚;敜;教΀;HLRhlrᣊᣋá£á£á£‘ᣓᣕ救;敬;æ•£;æ• ;æ•«;æ•¢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;æ••;æ•’;æ”;攌ʀ;DUduڽ᣷᣹᣻᣽;æ•¥;敨;攬;æ”´inus;抟lus;択imes;æŠ È€LRlrᤙᤛá¤á¤Ÿ;æ•›;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;æ•¡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀ð’·mi;æmÄ€;e᜚᜜lÆ€;bhᥨᥩᥫäœ;æ§…sub;柈Ŭᥴ᥾lÄ€;e᥹᥺怢t»᥺pÆ€;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá’\0᯽\0ᰌƀcprá¦á¦²á§ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;æ©„rcup;橉Āauá§á§’p;æ©‹p;橇ot;æ©€;쀀∩︀Āeo᧢᧥t;æÃ®Ú“È€aeiuá§°á§»á¨á¨…ǰ᧵\0᧸s;æ©on;ä„dil耻ç䃧rc;䄉psÄ€;sá¨Œá¨æ©Œm;æ©ot;ä„‹Æ€dmnᨛᨠᨦil肻¸Æptyv;榲t脀¢;eá¨á¨®ä‚¢räƲr;ì€€ð” Æ€ceiᨽᩀá©y;䑇ckÄ€;mᩇᩈ朓ark»ᩈ;ä‡r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪá©ä‹†q;扗eɡᩴ\0\0᪈rrowÄ€lr᩼áªeft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;æŠnint;æ¨id;櫯cir;æ§‚ubsÄ€;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonÄ€;eá«á«Žä€ºÄ€;qÇÆÉá«™\0\0á«¢aÄ€;t᫞᫟䀬;䀯€;fl᫨᫩᫫æˆÃ®á… eÄ€mx᫱᫶ent»᫩eóÉǧ᫾\0ᬇĀ;dኻᬂot;æ©nôɆƀfryá¬á¬”ᬗ;쀀ð•”oäɔ脀©;sÅ•á¬r;æ„—Ä€aoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀ð’¸Ä€bpᬼá„Ä€;eáá‚æ«;æ«‘Ä€;eá‰áŠæ«;æ«’dot;拯΀delprvwá á¬á·á®‚ᮬᯔ᯹arrÄ€lrá¨áª;椸;椵ɰá²\0\0áµr;拞c;拟arrÄ€;pá¿á®€æ†¶;椽̀;bcdosá®á®á®–ᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;æŠr;æ©…;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrÄ€;mᮼᮽ憷;椼yÆ€evwᯇᯔᯘqɰᯎ\0\0ᯒreãá³uãáµee;拎edge;æ‹en耻¤䂤earrowÄ€lrᯮ᯳eft»ᮀight»ᮽeäá¯Ä€ciá°á°‡oninôǷnt;戱lcty;æŒà¦€AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²Šá²žá²¬á²·á³»á³¿á´áµ»á¶‘ᶫᶻ᷆á·ròÎar;楥Ȁglrs᱈á±á±’á±”ger;æ€ eth;愸òᄳhÄ€;vᱚᱛæ€Â»à¤ŠÅ«á±¡á±§arow;æ¤aã̕Āayᱮᱳron;ä„;ä´Æ€;ao̲ᱼᲄĀgrÊ¿á²r;懊tseq;æ©·Æ€glmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀ð”¡arÄ€lrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mÆ€;oș᳊᳔ndÄ€;ș᳑uit;晦amma;äin;拲ƀ;io᳧᳨᳸䃷de脀÷;oá³§á³°ntimes;拇nø᳷cy;ä‘’cɯᴆ\0\0á´Šrn;挞op;æŒÊ€lptuwá´˜á´á´¢áµ‰áµ•lar;䀤f;쀀ð••Ê€;empsÌ‹á´á´·á´½áµ‚qÄ€;dÍ’á´³ot;扑inus;戸lus;戔quare;抡blebarwedgåúnÆ€adhá„®áµáµ§ownarrowóᲃarpoonÄ€lrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0á¶Žrn;挟op;挌ƀcotᶘᶣᶦĀryá¶á¶¡;쀀ð’¹;ä‘•l;æ§¶rok;ä„‘Ä€drá¶°á¶´ot;拱iÄ€;fá¶ºá –æ–¿Ä€ah᷀᷃ròЩaòྦangle;榦Āciá·’á·•y;䑟grarr;柿ऀDacdefglmnopqrstuxá¸á¸‰á¸™á¸¸Õ¸á¸¼á¹‰á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½„὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;ä„›rÄ€;cá¸á¸®æ‰–耻ê䃪lon;払;ä‘ot;ä„—Ä€Drá¹á¹…ot;扒;ì€€ð”¢Æ€;rsá¹á¹‘ṗ檚ave耻è䃨Ā;dá¹œá¹æª–ot;檘Ȁ;ilsṪṫṲṴ檙nters;æ§;æ„“Ä€;dṹṺ檕ot;檗ƀapsẅẉẗcr;ä„“tyÆ€;svẒẓẕ戅et»ẓpÄ€1;áºáº¤Ä³áº¡áº£;怄;怅怃ĀgsẪẬ;ä…‹p;怂ĀgpẴẸon;ä„™f;ì€€ð•–Æ€alsỄỎỒrÄ€;sỊị拕l;æ§£us;橱iÆ€;lvỚớở䎵on»ớ;äµÈ€csuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0á»»ÃÕˆantÄ€glἂἆtr»á¹ess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vÄ€;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiá¼¾á½á»¸r;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0á¿“\0ῦῪ \0 âšllingdotseñṄy;ä‘„male;晀ƀilrá¾á¾³á¿lig;耀ffiɩᾹ\0\0á¾½g;耀ffig;耀ffl;쀀ð”£lig;耀ï¬lig;쀀fjÆ€altῙ῜ῡt;æ™ig;耀flns;æ–±of;䆒ǰ΅\0ῳf;쀀ð•—Ä€akÖ¿á¿·Ä€;vῼ´拔;æ«™artint;æ¨Ä€ao‌â•Ä€cs‑â’ႉ‸â…âˆ\0âβ•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;æ…•;æ…™;慛Ƴ‴\0‶;æ…”;慖ʴ‾â\0\0âƒè€»Â¾ä‚¾;æ…—;æ…œ5;慘ƶâŒ\0âŽ;æ…š;æ…8;æ…žl;æ„wn;挢cr;쀀ð’»à¢€Eabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lÙ₇;檌ƀcmpâ‚â‚•â‚ute;䇵maÄ€;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;ä„;ä³ot;ä„¡È€;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otÄ€;oâƒœâƒæª€Ä€;l⃢⃣檂;檄Ā;e⃪âƒì€€â‹›ï¸€s;檔r;쀀ð”¤Ä€;gٳ؛mel;æ„·cy;ä‘“È€;Eajٚℌℎâ„;檒;檥;檤ȀEaesâ„›â„â„©â„´;扩pÄ€;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;æ‹§pf;쀀ð•˜Ä€ci⅃ⅆr;愊mÆ€;elÙ«â…Žâ…;檎;æªèŒ€>;cdlqr×®â… â…ªâ…®â…³â…¹Ä€ciⅥⅧ;檧r;橺ot;æ‹—Par;榕uest;橼ʀadelsↄⅪâ†Ù–↛ǰ↉\0↎proø₞r;楸qÄ€lqؿ↖lesó₈iÃÙ«Ä€en↣â†rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘âˆâˆ¯â‰¨â‰½ròΠȀilmrâ‡â‡”⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;æ†ar;æ„irc;䄥ƀalrâˆâˆŽâˆ“rtsÄ€;u∉∊晥it»∊lip;怦con;抹r;쀀ð”¥sÄ€ew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kÄ€lr≉≓eftarrow;憩ightarrow;憪f;쀀ð•™bar;怕ƀclt≯≴≸r;쀀ð’½asè⇴rok;ä„§Ä€bp⊂⊇ull;æƒhen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢â§â¢â¿\0⎆⎪⎴cute耻ÃäƒÆ€;iyݱ⊰⊵rc耻î䃮;ä¸Ä€cx⊼⊿y;äµcl耻¡䂡ĀfrΟ⋉;쀀ð”¦rave耻ì䃬Ȁ;inoܾâ‹â‹©â‹®Ä€in⋢⋦nt;樌t;æˆfin;æ§œta;æ„©lig;䄳ƀaopâ‹¾âŒšâŒÆ€cgt⌅⌈⌗r;ä„«Æ€elpÜŸâŒâŒ“inÃ¥ÞŽarÃ´Ü h;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽âare;æ„…inÄ€;t⌸⌹戞ie;æ§doô⌙ʀ;celpÝ—âŒââ›â¡al;抺Āgrâ•â™eróᕣãâarhk;樗rod;樼Ȁcgptâ¯â²â¶â»y;ä‘‘on;䄯f;쀀ð•ša;䎹uest耻¿䂿Āci⎊âŽr;쀀ð’¾nÊ€;EdsvӴ⎛âŽâޡӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;ä‘–l耻ï䃯̀cfmosuâŒâ—âœâ¡â§âµÄ€iyâ‘â•rc;䄵;ä¹r;쀀ð”§ath;䈷pf;쀀ð•›Ç£â¬\0â±r;쀀ð’¿rcy;䑘kcy;䑔Ѐacfghjosâ‹â–â¢â§ââ±âµâ»ppaÄ€;vâ“â”䎺;ä°Ä€eyâ›â dil;ä„·;äºr;쀀ð”¨reen;䄸cy;ä‘…cy;䑜pf;쀀ð•œcr;쀀ð“€à®€ABEHabcdefghjlmnoprstuvâ‘°â’â’†â’⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘ââ¨âž‹âŸ€â â ’Æ€art⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0â’ª\0â’±\0\0\0\0\0⒵Ⓔ\0ⓆⓈâ“\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gÆ€;dlࢎâ“Ⓝ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;fà¢â“£s;椟s;æ¤Ã«â‰’p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊æª;쀀âªï¸€Æ€abr┕┙â”rr;椌rk;æ²Ä€ak┢┬cÄ€ek┨┪;ä»;ä›Ä€es┱┳;榋lÄ€du┹┻;æ¦;æ¦È€aeuy╆╋╖╘ron;䄾Ādiâ•â•”il;䄼ìࢰâ┩;ä»È€cqrs╣╦â•╽a;椶uoÄ€;rนá†Ä€du╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tÊ€ahlrt▘▤▷◂◨rrowÄ€;t࢙□aé⓶arpoonÄ€du▯▴own»њp»०eftarrows;懇ightÆ€ahsâ—â—–â—žrrowÄ€;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;æ‹‹Æ€;qs▋ও◺lanôবʀ;cdgsব☊â˜â˜â˜¨c;檨otÄ€;o☔☕橿Ā;r☚☛æª;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;æ‹–qÄ€gq♃♅ôউgtò⒌ôছiÃলƀilr♕࣡♚sht;楼;쀀ð”©Ä€;Eজ♣;檑š♩♶rÄ€du▲♮Ā;l॥♳;楪lk;æ–„cy;䑙ʀ;achtੈ⚈⚋⚑⚖ròâ—orneòᴈard;楫ri;旺Āio⚟⚤dot;ä…€ustÄ€;aâš¬âšæŽ°che»âšÈ€Eaes⚻⚽⛉⛔;扨pÄ€;p⛃⛄檉rox»⛄Ā;qâ›Žâ›æª‡Ä€;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯ââ‡âÄ€nr⛮⛱g;柬r;懽rëà£gÆ€lmr⛿âœâœ”eftÄ€ar০✇ightá৲apsto;柼ightá৽parrowÄ€lr✥✩efôâ“ight;憬ƀafl✶✹✽r;榅;쀀ð•us;æ¨imes;樴šâ‹âst;æˆ—Ã¡áŽÆ€;efâ—â˜á €æ—Šnge»â˜arÄ€;lâ¤â¥ä€¨t;榓ʀachmtâ³â¶â¼âž…➇ròࢨorneòᶌarÄ€;d྘➃;æ¥;怎ri;抿̀achiqt➘âžà©€âž¢âž®âž»quo;怹r;쀀ð“mÆ€;egল➪➬;æª;æªÄ€bu┪➳oÄ€;rฟ➹;怚rok;ä…‚è€<;cdhilqrà «âŸ’â˜¹âŸœâŸ âŸ¥âŸªâŸ°Ä€ci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;efâ €à¤á ›æ—ƒrÄ€duâ ‡â shar;楊har;楦Āenâ —â ¡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āetâ¡—â¡™;時Ā;eâ¡žâ¡Ÿæœ se»⡟Ā;sျ⡨toÈ€;dluျ⡳⡷⡻owîҌefôà¤Ã°á‘ker;斮Āoy⢇⢌mma;権;ä¼ash;怔asuredangle»ᘦr;쀀ð”ªo;æ„§Æ€cdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;æ«°ot肻·ƵusÆ€;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðàªÄ€dp⣩⣮els;抧f;쀀ð•žÄ€ct⣸⣽r;쀀ð“‚posÂ»á–Æ€;lm⤉⤊â¤ä޼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘â©âªƒâª•⪤⪨⬄⬇â„â¿â®®â°´â±§â±¼â³©Ä€gt⥇⥋;쀀⋙̸Ā;vâ¥à¯ì€€â‰«âƒ’Æ€elt⥚⥲⥶ftÄ€ar⥡⥧rrow;æ‡ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;æ‡Ä€Dd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;ä…„g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;ä…‰roø඄urÄ€;a⧓⧔普lÄ€;s⧓ସdz⧟\0â§£p肻 ଷmpÄ€;e௹ఀʀaeouy⧴⧾⨃â¨â¨“ǰ⧹\0â§»;橃on;ä…ˆdil;ä…†ngÄ€;dൾ⨊ot;쀀â©Ì¸p;æ©‚;ä½ash;怓΀;Aadqsxஒ⨩â¨â¨»â©â©…â©rr;懗rÄ€hr⨳⨶k;椤Ā;oá²á°ot;쀀â‰Ì¸uiöà£Ä€ei⩊⩎ar;椨Ã஘istÄ€;s஠டr;쀀ð”«È€Eest௅⩦⩹⩼ƀ;qs஼â©à¯¡Æ€;qs஼௅⩴lanô௢iÃ௪Ā;rà®¶âªÂ»à®·Æ€Aap⪊âªâª‘rò⥱rr;憮ar;櫲ƀ;svà¾âªœà¾ŒÄ€;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tÄ€ar⫔⫙rro÷â«ightarroÃ·âªÆ€;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiÃà±Ä€;rవ⫾iÄ€;eà°šà°¥iäà¶Ä€pt⬌⬑f;쀀ð•Ÿè†€Â¬;in⬙⬚⬶䂬nÈ€;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;æ‹·;æ‹¶iÄ€;vಸ⬼ǡಸââƒ;拾;拽ƀaorâ‹â£â©rÈ€;astà»â•âšâŸlleìà»l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒâ°â³uåಥĀ;cಘâ¸Ä€;eಒâ½Ã±à²˜È€Aait⮈⮋â®â®§rò⦈rrÆ€;cw⮔⮕⮙憛;쀀⤳̸;쀀â†Ì¸ghtarrow»⮕riÄ€;eೋೖ΀chimpqu⮽â¯â¯™â¬„à¸â¯¤â¯¯È€;cerല⯆ഷ⯉uå൅;쀀ð“ƒortÉ⬅\0\0⯖aráâ–mÄ€;e൮⯟Ā;q൴൳suÄ€bp⯫â¯Ã¥à³¸Ã¥à´‹Æ€bcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etÄ€;eഛⰋqÄ€;qണⰀcÄ€;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etÄ€;e൘ⰮqÄ€;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleÄ€lrⱒⱜeftÄ€;eచⱚñదightÄ€;eೋⱥñ೗Ā;mⱬâ±äŽ½Æ€;esⱴⱵⱹ䀣ro;æ„–p;怇ҀDHadgilrsâ²â²”ⲙⲞⲣⲰⲶⳓⳣash;æŠarr;椄p;쀀â‰âƒ’ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetâ²½â³â³…rr;椂;쀀≤⃒Ā;rⳊâ³ì€€<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAanâ³°â³´â´‚rr;懖rÄ€hr⳺⳽k;椣Ā;oá§á¥ear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0â¶â¶«\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrÄ€;c᪞ⵂ耻ô䃴;ä¾Ê€abios᪠ⵒⵗLjⵚlac;ä…‘v;樸old;榼lig;ä…“Ä€cr⵩âµir;榿;쀀ð”¬Í¯âµ¹\0\0âµ¼\0â¶‚n;ä‹›ave耻ò䃲;æ§Ä€bmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āirâ¶â¶ r;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;ä…ga;䉯€cdnⷀⷅÇron;䎿;榶pf;ì€€ð• Æ€aelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈â¸â¸â¸–戨rò᪆Ȁ;efmⷷⷸ⸂⸅æ©rÄ€;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;æ©–lope;æ©—;橛ƀclo⸟⸡⸧òâ¸ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esÄ€;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0â¹½\0⺀âº\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rÈ€;astЃ⹧⹲຅脀¶;lâ¹â¹®ä‚¶leìЃɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊ€cimpt⺋âºâº“ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;ì€€ð”Æ€imo⺨⺰⺴Ā;vâºâº®ä†;ä•maô੶ne;明ƀ;tv⺿⻀⻈ä€chfork»´;ä–Ä€auâ»â»ŸnÄ€ck⻕â»kÄ€;h⇴⻛;愎ö⇴sÒ€;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±àºim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀ð•¡nd耻£䂣Ԁ;Eaceinosu່⼿â½â½„⽇â¾â¾‰â¾’⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iÃໟmeÄ€;s⾈ຮ怲ƀEas⽸â¾â½ºÃ°â½µÆ€dfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀ð“…;äˆncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀ð”®pf;쀀ð•¢rime;æ—cr;ì€€ð“†Æ€aeo⿸〉〓tÄ€ei⿾々rnionóڰnt;樖stÄ€;eã€ã€‘䀿ñἙô༔઀ABHabcdefhilmnoprstuxã€ã‘ã•ã™ãƒ ㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲ãŠãŠ°ãŠ·Æ€artã‡ãŠãŒròႳòÏail;検aròᱥar;楤΀cdenqrtã¨ãµã¸ã¿ã‚ゔヌĀeuãã±;쀀∽̱te;ä…•iãᅮmptyv;榳gÈ€;del࿑らるã‚;榒;榥å࿑uo耻»䂻rÖ€;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;fà¿ ã‚´s;æ¤ ;椳s;椞ëâ‰Ã°âœ®l;楅im;楴l;憣;æ†Ä€aiパフil;椚oÄ€;nホボ戶aló༞ƀabrョリヮrò៥rk;æ³Ä€akンヽcÄ€ekヹ・;ä½;äÄ€esã„‚ã„„;榌lÄ€duㄊㄌ;榎;æ¦È€aeuyㄗㄜㄧㄩron;䅙Ādiã„¡ã„¥il;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoÄ€;rÈŽÈh;憳ƀacgㅎㅟངlÈ€;ipsླྀㅘㅛႜnåႻarôྩt;æ–Æ€ilrㅩဣㅮsht;楽;쀀ð”¯Ä€aoㅷㆆrÄ€duㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌä;䱯€gns㆕ㇹㇼhtÌ€ahlrstㆤㆰ㇂㇘㇤㇮rrowÄ€;t࿜ã†aéトarpoonÄ€duㆻㆿowîㅾp»႒eftÄ€ah㇊ã‡rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahmãˆãˆãˆ“rò࿪aòՑ;æ€oustÄ€;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;æŸr;懾rëဃƀafl㉇㉊㉎r;榆;쀀ð•£us;樮imes;樵Āapã‰ã‰§rÄ€;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀ð“‡Ä€bu・㊊oÄ€;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iÈ€;efl㊪á™á ¡ãŠ«æ–¹tri;æ§Žluhar;楨;愞ൡ㋕㋛㋟㌬㌸ã±\0ãºãޤ\0\0ã¬ã°\0ã¨ã‘ˆã‘šã’㒱㓊㓱\0㘖\0\0㘳cute;ä…›quï➺Ԁ;Eaceinpsyá‡ã‹³ã‹µã‹¿ãŒ‚㌋ãŒãŒŸãŒ¦ãŒ©;檴ǰ㋺\0㋼;檸on;ä…¡uåᇾĀ;dᇳ㌇il;ä…Ÿrc;ä…Æ€Eas㌖㌘㌛;檶p;檺im;æ‹©olint;樓iÃሄ;ä‘otÆ€;be㌴ᵇ㌵担;橦΀Aacmstxã†ãŠã—ã›ãžã£ãrr;懘rÄ€hrãã’ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mÄ€inã©Ã°nuóñt;朶rÄ€;oã¶â•쀀ð”°È€acoy㎂㎆㎑㎠rp;景Āhy㎋ãŽcy;䑉;䑈rtÉ㎙\0\0㎜iäᑤaraì⹯耻Âä‚Ä€gm㎨㎴maÆ€;fv㎱㎲㎲äƒ;ä‚Ѐ;deglnprካã…ã‰ãŽã–ãžã¡ã¦ot;橪Ā;q኱ኰĀ;Eã“ã”æªž;æª Ä€;Eã›ãœæª;檟e;扆lus;樤arr;楲aròᄽȀaeitã¸ãˆãã—Ä€lsã½ã„lsetméãªhp;樳parsl;槤Ādlá‘£ã”e;挣Ā;eãœã檪Ā;sã¢ã£æª¬;쀀⪬︀ƀflpã®ã³ã‘‚tcy;䑌Ā;bã¸ã¹ä€¯Ä€;aã¾ã¿æ§„r;挿f;쀀ð•¤aÄ€drã‘ЂesÄ€;uã‘”ã‘•æ™ it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pÄ€;sᆈ㑫;쀀⊓︀pÄ€;sᆴ㑵;쀀⊔︀uÄ€bpã‘¿ã’Æ€;esᆗᆜ㒆etÄ€;eᆗã’Ã±á†Æ€;esᆨá†ã’–etÄ€;eᆨã’ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀ð“ˆtmîñiìã•aræᆾĀar㓎㓕rÄ€;f㓔ឿ昆Āan㓚ã“ightÄ€ep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎ã”㔑㔕㔞㔣㔬㔱㔶抂;æ«…ot;檽Ā;dᇚ㔚ot;櫃ult;æ«Ä€Ee㔨㔪;æ«‹;把lus;檿arr;楹ƀeiu㔽㕒㕕tÆ€;en㔎㕅㕋qÄ€;qᇚã”eqÄ€;q㔫㔨m;櫇Ābp㕚㕜;æ«•;æ«“cÌ€;acensá‡ã•¬ã•²ã•¹ã•»ãŒ¦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨ã—耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;æ«„sÄ€ouã—ã—’l;柉b;æ«—arr;楻ult;æ«‚Ä€Ee㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tÆ€;enሜ㗼㘂qÄ€;qሢ㖲eqÄ€;qã—§ã—¤m;櫈Ābp㘑㘓;æ«”;æ«–Æ€Aan㘜㘠ã˜rr;懙rÄ€hr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑ã™ã™ ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉ã¬\0\0\0㞇ɲ㙖\0\0ã™›get;挖;ä„rë๟ƀaey㙦㙫㙰ron;ä…¥dil;ä…£;ä‘‚lrec;挕r;쀀ð”±È€eiko㚆ãšãšµãš¼Ç²ãš‹\0ãš‘eÄ€4fኄáŠaÆ€;sv㚘㚙㚛䎸ym;ä‘Ä€cn㚢㚲kÄ€as㚨㚮pproøá‹im»ኬsðኞĀas㚺㚮ðá‹rn耻þ䃾Ǭ̟㛆⋧es膀×;bdã›ã›ã›˜äƒ—Ä€;aá¤ã›•r;樱;樰ƀeps㛡㛣㜀áâ©È€;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀ð•¥rk;櫚áã¢rime;怴ƀaipãœãœ’ã¤dåቈ΀adempst㜡ãã€ã‘ã—ãœãŸngleÊ€;dlqr㜰㜱㜶ã€ã‚æ–µown»ᶻeftÄ€;e⠀㜾ñम;扜ightÄ€;e㊪ã‹Ã±ášot;æ—¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æ€chtã²ã½ãžÄ€ryã·ã»;쀀ð“‰;䑆cy;ä‘›rok;ä…§Ä€io㞋㞎xôá·headÄ€lrãž—ãž eftarro÷à¡ightarrow»à½à¤€AHabcdfghlmoprstuwãŸãŸ“㟗㟤㟰㟼㠎㠜㠣㠴㡑ã¡ã¡«ã¢©ã£Œã£’㣪㣶ròÏar;楣Ācr㟜㟢ute耻ú䃺òá…rǣ㟪\0ãŸy;䑞ve;ä…Ä€iy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròáŽlac;ä…±aòáƒÄ€irã “ã ˜sht;楾;쀀ð”²rave耻ù䃹š㠧㠱rÄ€lr㠬㠮»ॗ»ႃlk;斀Āctã ¹ã¡É¯ã ¿\0\0㡊rnÄ€;e㡅㡆挜r»㡆op;æŒri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;ä…³f;쀀ð•¦Ì€adhlsuᅋ㡸㡽á²ã¢‘㢠ownáᎳarpoonÄ€lr㢈㢌efôã ighô㠯iÆ€;hl㢙㢚㢜ä…»áºon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0ã£rnÄ€;e㢼㢽æŒr»㢽op;挎ng;ä…¯ri;æ—¹cr;ì€€ð“ŠÆ€dir㣙ã£ã£¢ot;æ‹°lde;ä…©iÄ€;fãœ°ã£¨Â»á “Ä€am㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩ã¤ã¦µã¦¸ã¦½ã§Ÿã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ€;v㤦㤧櫨;æ«©asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒ã¥ã¥¤ã¦–appáâ•othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïã†Ä€iu㥩ã¥gmá㎳Ābp㥲㦄setneqÄ€;q㥽㦀쀀⊊︀;쀀⫋︀setneqÄ€;qã¦ã¦’쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleÄ€lr㦪㦯eft»थight»á‘y;ä²ash»ံƀelrã§„ã§’ã§—Æ€;beⷪ㧋ã§ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀ð”³tré㦮suÄ€bp㧯㧱»ജ»൙pf;쀀ð•§roð໻tré㦴Ācu㨆㨋r;쀀ð“‹Ä€bpã¨ã¨˜nÄ€Ee㦀㨖»㥾nÄ€Ee㦒㨞»ã¦igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eÄ€;qá—ºã©;扙erp;愘r;쀀ð”´pf;쀀ð•¨Ä€;eᑹ㩦atèᑹcr;쀀ð“Œà«£ážŽãª‡\0㪋\0ãªãª›\0\0ãªãª¨ãª«ãª¯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀ð”µÄ€Aa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀ð•©imåឲĀAa㫇㫊ròώròà¨Ä€cq㫒ីr;쀀ð“Ä€pt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cÄ€uyã«¶ã«»te耻ý䃽;ä‘Ä€iy㬂㬆rc;ä…·;ä‘‹n耻¥䂥r;쀀ð”¶cy;ä‘—pf;쀀ð•ªcr;쀀ð“ŽÄ€cm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhioswã‚ãˆã”ã˜ã¤ã©ãã´ãºã®€cute;䅺Āayãã’ron;ä…¾;ä·ot;䅼Āetãã¡træᕟa;䎶r;쀀ð”·cy;ä¶grarr;æ‡pf;쀀ð•«cr;쀀ð“Ä€jn㮅㮇;æ€j;怌'.split("").map(e=>e.charCodeAt(0))),dD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function fD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dD.get(e))!==null&&t!==void 0?t:e}var ft;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ft||(ft={}));const hD=32;var ui;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ui||(ui={}));function yh(e){return e>=ft.ZERO&&e<=ft.NINE}function pD(e){return e>=ft.UPPER_A&&e<=ft.UPPER_F||e>=ft.LOWER_A&&e<=ft.LOWER_F}function mD(e){return e>=ft.UPPER_A&&e<=ft.UPPER_Z||e>=ft.LOWER_A&&e<=ft.LOWER_Z||yh(e)}function gD(e){return e===ft.EQUALS||mD(e)}var ct;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ct||(ct={}));var Ar;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ar||(Ar={}));class yD{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ct.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ar.Strict}startEntity(t){this.decodeMode=t,this.state=ct.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ct.EntityStart:return t.charCodeAt(n)===ft.NUM?(this.state=ct.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ct.NamedEntity,this.stateNamedEntity(t,n));case ct.NumericStart:return this.stateNumericStart(t,n);case ct.NumericDecimal:return this.stateNumericDecimal(t,n);case ct.NumericHex:return this.stateNumericHex(t,n);case ct.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|hD)===ft.LOWER_X?(this.state=ct.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ct.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(yh(i)||pD(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(yh(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ft.SEMI)this.consumed+=1;else if(this.decodeMode===Ar.Strict)return 0;return this.emitCodePoint(fD(this.result),this.consumed),this.errors&&(t!==ft.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&ui.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=xD(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ar.Attribute&&(a===0||gD(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&ui.VALUE_LENGTH)>>14,a!==0){if(s===ft.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ar.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&ui.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~ui.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ct.NamedEntity:return this.result!==0&&(this.decodeMode!==Ar.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ct.NumericDecimal:return this.emitNumericEntity(0,2);case ct.NumericHex:return this.emitNumericEntity(0,3);case ct.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ct.EntityStart:return 0}}}function xD(e,t,n,r){const i=(t&ui.BRANCH_LENGTH)>>7,a=t&ui.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<r)s=u+1;else if(l>r)o=u-1;else return e[u+i]}return-1}var q;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(q||(q={}));var Ki;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ki||(Ki={}));var _n;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(_n||(_n={}));var P;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(P||(P={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const bD=new Map([[P.A,d.A],[P.ADDRESS,d.ADDRESS],[P.ANNOTATION_XML,d.ANNOTATION_XML],[P.APPLET,d.APPLET],[P.AREA,d.AREA],[P.ARTICLE,d.ARTICLE],[P.ASIDE,d.ASIDE],[P.B,d.B],[P.BASE,d.BASE],[P.BASEFONT,d.BASEFONT],[P.BGSOUND,d.BGSOUND],[P.BIG,d.BIG],[P.BLOCKQUOTE,d.BLOCKQUOTE],[P.BODY,d.BODY],[P.BR,d.BR],[P.BUTTON,d.BUTTON],[P.CAPTION,d.CAPTION],[P.CENTER,d.CENTER],[P.CODE,d.CODE],[P.COL,d.COL],[P.COLGROUP,d.COLGROUP],[P.DD,d.DD],[P.DESC,d.DESC],[P.DETAILS,d.DETAILS],[P.DIALOG,d.DIALOG],[P.DIR,d.DIR],[P.DIV,d.DIV],[P.DL,d.DL],[P.DT,d.DT],[P.EM,d.EM],[P.EMBED,d.EMBED],[P.FIELDSET,d.FIELDSET],[P.FIGCAPTION,d.FIGCAPTION],[P.FIGURE,d.FIGURE],[P.FONT,d.FONT],[P.FOOTER,d.FOOTER],[P.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[P.FORM,d.FORM],[P.FRAME,d.FRAME],[P.FRAMESET,d.FRAMESET],[P.H1,d.H1],[P.H2,d.H2],[P.H3,d.H3],[P.H4,d.H4],[P.H5,d.H5],[P.H6,d.H6],[P.HEAD,d.HEAD],[P.HEADER,d.HEADER],[P.HGROUP,d.HGROUP],[P.HR,d.HR],[P.HTML,d.HTML],[P.I,d.I],[P.IMG,d.IMG],[P.IMAGE,d.IMAGE],[P.INPUT,d.INPUT],[P.IFRAME,d.IFRAME],[P.KEYGEN,d.KEYGEN],[P.LABEL,d.LABEL],[P.LI,d.LI],[P.LINK,d.LINK],[P.LISTING,d.LISTING],[P.MAIN,d.MAIN],[P.MALIGNMARK,d.MALIGNMARK],[P.MARQUEE,d.MARQUEE],[P.MATH,d.MATH],[P.MENU,d.MENU],[P.META,d.META],[P.MGLYPH,d.MGLYPH],[P.MI,d.MI],[P.MO,d.MO],[P.MN,d.MN],[P.MS,d.MS],[P.MTEXT,d.MTEXT],[P.NAV,d.NAV],[P.NOBR,d.NOBR],[P.NOFRAMES,d.NOFRAMES],[P.NOEMBED,d.NOEMBED],[P.NOSCRIPT,d.NOSCRIPT],[P.OBJECT,d.OBJECT],[P.OL,d.OL],[P.OPTGROUP,d.OPTGROUP],[P.OPTION,d.OPTION],[P.P,d.P],[P.PARAM,d.PARAM],[P.PLAINTEXT,d.PLAINTEXT],[P.PRE,d.PRE],[P.RB,d.RB],[P.RP,d.RP],[P.RT,d.RT],[P.RTC,d.RTC],[P.RUBY,d.RUBY],[P.S,d.S],[P.SCRIPT,d.SCRIPT],[P.SEARCH,d.SEARCH],[P.SECTION,d.SECTION],[P.SELECT,d.SELECT],[P.SOURCE,d.SOURCE],[P.SMALL,d.SMALL],[P.SPAN,d.SPAN],[P.STRIKE,d.STRIKE],[P.STRONG,d.STRONG],[P.STYLE,d.STYLE],[P.SUB,d.SUB],[P.SUMMARY,d.SUMMARY],[P.SUP,d.SUP],[P.TABLE,d.TABLE],[P.TBODY,d.TBODY],[P.TEMPLATE,d.TEMPLATE],[P.TEXTAREA,d.TEXTAREA],[P.TFOOT,d.TFOOT],[P.TD,d.TD],[P.TH,d.TH],[P.THEAD,d.THEAD],[P.TITLE,d.TITLE],[P.TR,d.TR],[P.TRACK,d.TRACK],[P.TT,d.TT],[P.U,d.U],[P.UL,d.UL],[P.SVG,d.SVG],[P.VAR,d.VAR],[P.WBR,d.WBR],[P.XMP,d.XMP]]);function xs(e){var t;return(t=bD.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const Q=d,ED={[q.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[q.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[q.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[q.XLINK]:new Set,[q.XML]:new Set,[q.XMLNS]:new Set},xh=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]);P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Je={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function TD(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function Hs(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function vD(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function Wr(e){return vD(e)||Hs(e)}function P1(e){return Wr(e)||TD(e)}function Ou(e){return e+32}function ov(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function D1(e){return ov(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN}function wD(e){return e===w.NULL?j.nullCharacterReference:e>1114111?j.characterReferenceOutsideUnicodeRange:rv(e)?j.surrogateCharacterReference:av(e)?j.noncharacterCharacterReference:iv(e)||e===w.CARRIAGE_RETURN?j.controlCharacterReference:null}class CD{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new lD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new yD(cD,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(j.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(j.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=wD(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Te.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Te.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Te.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Te.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(sv(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(j.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xs(t.tagName),t.type===Te.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(j.endTagWithAttributes),t.selfClosing&&this._err(j.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Te.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Te.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Te.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Te.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ov(t)?Te.WHITESPACE_CHARACTER:t===w.NULL?Te.NULL_CHARACTER:Te.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Te.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ar.Attribute:Ar.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitCodePoint(t);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case w.AMPERSAND:{this._startCharacterReference();break}case w.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(je);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case w.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(je);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(je);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(je);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Wr(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case w.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case w.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case w.QUESTION_MARK:{this._err(j.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case w.EOF:{this._err(j.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Wr(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case w.GREATER_THAN_SIGN:{this._err(j.missingEndTagName),this.state=A.DATA;break}case w.EOF:{this._err(j.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.tagName+=je;break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Hs(t)?Ou(t):t)}}_stateRcdataLessThanSign(t){t===w.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Wr(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case w.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case w.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===w.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Wr(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case w.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case w.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Wr(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===w.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===w.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(je);break}case w.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(je);break}case w.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(je);break}case w.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===w.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wr(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Wr(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(zt.SCRIPT,!1)&&D1(this.preprocessor.peek(zt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<zt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(je);break}case w.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(je);break}case w.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(je);break}case w.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===w.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(zt.SCRIPT,!1)&&D1(this.preprocessor.peek(zt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<zt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._err(j.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:{this._err(j.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.name+=je;break}default:this.currentAttr.name+=String.fromCodePoint(Hs(t)?Ou(t):t)}}_stateAfterAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case w.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(j.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case w.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=je;break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case w.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=je;break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=je;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:case w.EQUALS_SIGN:case w.GRAVE_ACCENT:{this._err(j.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case w.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case w.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.data+=je;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(zt.DASH_DASH,!0)?(this._createCommentToken(zt.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(zt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(zt.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(zt.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(j.cdataInHtmlContent),this._createCommentToken(zt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(j.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case w.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case w.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case w.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.data+=je;break}case w.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case w.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case w.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===w.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===w.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==w.GREATER_THAN_SIGN&&t!==w.EOF&&this._err(j.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case w.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case w.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case w.HYPHEN_MINUS:{n.data+="-";break}case w.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case w.GREATER_THAN_SIGN:{this._err(j.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(j.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case w.EOF:{this._err(j.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Hs(t))this._createDoctypeToken(String.fromCharCode(Ou(t))),this.state=A.DOCTYPE_NAME;else switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.NULL:{this._err(j.unexpectedNullCharacter),this._createDoctypeToken(je),this.state=A.DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this._err(j.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(j.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.name+=je;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Hs(t)?Ou(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(zt.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(zt.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(j.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.publicId+=je;break}case w.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.publicId+=je;break}case w.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.QUOTATION_MARK:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.systemId+=je;break}case w.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(j.unexpectedNullCharacter),n.systemId+=je;break}case w.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(j.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(j.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.NULL:{this._err(j.unexpectedNullCharacter);break}case w.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case w.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case w.EOF:{this._err(j.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===w.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case w.GREATER_THAN_SIGN:{this.state=A.DATA;break}case w.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&P1(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){P1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===w.SEMICOLON&&this._err(j.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const uv=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),M1=new Set([...uv,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),$l=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),AD=new Set([...$l,d.OL,d.UL]),_D=new Set([...$l,d.BUTTON]),F1=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),B1=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),ND=new Set([d.TR,d.TEMPLATE,d.HTML]),kD=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),SD=new Set([d.TABLE,d.TEMPLATE,d.HTML]),ID=new Set([d.TD,d.TH]);class OD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==q.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(xh,q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ID,q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(SD,q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(kD,q.HTML)}clearBackToTableRowContext(){this.clearBackTo(ND,q.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case q.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case q.SVG:{if(B1.has(i))return!1;break}case q.MATHML:{if(F1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,$l)}hasInListItemScope(t){return this.hasInDynamicScope(t,AD)}hasInButtonScope(t){return this.hasInDynamicScope(t,_D)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case q.HTML:{if(xh.has(n))return!0;if($l.has(n))return!1;break}case q.SVG:{if(B1.has(n))return!1;break}case q.MATHML:{if(F1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===q.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&uv.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&M1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&M1.has(this.currentTagId);)this.pop()}}const jd=3;var sr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(sr||(sr={}));const j1={type:sr.Marker};class LD{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===sr.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const f=this.treeAdapter.getAttrList(l);f.length===i&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<jd)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<jd)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=jd&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(j1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:sr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:sr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(j1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===sr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===sr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===sr.Element&&n.element===t)}}const qr={createDocument(){return{nodeName:"#document",mode:_n.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};qr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(qr.isTextNode(n)){n.value+=t;return}}qr.appendChild(e,qr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&qr.isTextNode(r)?r.value+=t:qr.insertBefore(e,qr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},lv="html",RD="about:legacy-compat",PD="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",cv=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],DD=[...cv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],MD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),dv=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],FD=[...dv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function U1(e,t){return t.some(n=>e.startsWith(n))}function BD(e){return e.name===lv&&e.publicId===null&&(e.systemId===null||e.systemId===RD)}function jD(e){if(e.name!==lv)return _n.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===PD)return _n.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),MD.has(n))return _n.QUIRKS;let r=t===null?DD:cv;if(U1(n,r))return _n.QUIRKS;if(r=t===null?dv:FD,U1(n,r))return _n.LIMITED_QUIRKS}return _n.NO_QUIRKS}const H1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},UD="definitionurl",HD="definitionURL",zD=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),VD=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:q.XMLNS}]]),YD=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),$D=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function WD(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===Ki.COLOR||r===Ki.SIZE||r===Ki.FACE)||$D.has(t)}function fv(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===UD){e.attrs[t].name=HD;break}}function hv(e){for(let t=0;t<e.attrs.length;t++){const n=zD.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function u0(e){for(let t=0;t<e.attrs.length;t++){const n=VD.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function qD(e){const t=YD.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=xs(e.tagName))}function GD(e,t){return t===q.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function QD(e,t,n){if(t===q.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ki.ENCODING){const i=n[r].value.toLowerCase();return i===H1.TEXT_HTML||i===H1.APPLICATION_XML}}return t===q.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function KD(e,t,n,r){return(!r||r===q.HTML)&&QD(e,t,n)||(!r||r===q.MATHML)&&GD(e,t)}const XD="hidden",JD=8,ZD=3;var S;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(S||(S={}));const eM={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},pv=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),z1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:qr,onParseError:null};class V1{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=S.INITIAL,this.originalInsertionMode=S.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...z1,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new CD(this.options,this),this.activeFormattingElements=new LD(this.treeAdapter),this.fragmentContextID=r?xs(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new OD(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...z1,...n};t??(t=r.treeAdapter.createElement(P.TEMPLATE,q.HTML,[]));const i=r.treeAdapter.createElement("documentmock",q.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(S.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:eM,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=S.TEXT}switchToPlaintextParsing(){this.insertionMode=S.TEXT,this.originalInsertionMode=S.IN_BODY,this.tokenizer.state=Je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===P.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==q.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Je.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Je.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Je.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,q.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(P.HTML,q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Te.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,q.HTML)}_processToken(t){switch(t.type){case Te.CHARACTER:{this.onCharacter(t);break}case Te.NULL_CHARACTER:{this.onNullCharacter(t);break}case Te.COMMENT:{this.onComment(t);break}case Te.DOCTYPE:{this.onDoctype(t);break}case Te.START_TAG:{this._processStartTag(t);break}case Te.END_TAG:{this.onEndTag(t);break}case Te.EOF:{this.onEof(t);break}case Te.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return KD(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===sr.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=S.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=S.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=S.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=S.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=S.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=S.IN_TABLE;return}case d.BODY:{this.insertionMode=S.IN_BODY;return}case d.FRAMESET:{this.insertionMode=S.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?S.AFTER_HEAD:S.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=S.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=S.IN_HEAD;return}break}}this.insertionMode=S.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=S.IN_SELECT_IN_TABLE;return}}this.insertionMode=S.IN_SELECT}_isElementCausesFosterParenting(t){return pv.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return ED[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){I9(this,t);return}switch(this.insertionMode){case S.INITIAL:{Ps(this,t);break}case S.BEFORE_HTML:{no(this,t);break}case S.BEFORE_HEAD:{ro(this,t);break}case S.IN_HEAD:{io(this,t);break}case S.IN_HEAD_NO_SCRIPT:{ao(this,t);break}case S.AFTER_HEAD:{so(this,t);break}case S.IN_BODY:case S.IN_CAPTION:case S.IN_CELL:case S.IN_TEMPLATE:{gv(this,t);break}case S.TEXT:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Ud(this,t);break}case S.IN_TABLE_TEXT:{vv(this,t);break}case S.IN_COLUMN_GROUP:{Wl(this,t);break}case S.AFTER_BODY:{ql(this,t);break}case S.AFTER_AFTER_BODY:{Zu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){S9(this,t);return}switch(this.insertionMode){case S.INITIAL:{Ps(this,t);break}case S.BEFORE_HTML:{no(this,t);break}case S.BEFORE_HEAD:{ro(this,t);break}case S.IN_HEAD:{io(this,t);break}case S.IN_HEAD_NO_SCRIPT:{ao(this,t);break}case S.AFTER_HEAD:{so(this,t);break}case S.TEXT:{this._insertCharacters(t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Ud(this,t);break}case S.IN_COLUMN_GROUP:{Wl(this,t);break}case S.AFTER_BODY:{ql(this,t);break}case S.AFTER_AFTER_BODY:{Zu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){bh(this,t);return}switch(this.insertionMode){case S.INITIAL:case S.BEFORE_HTML:case S.BEFORE_HEAD:case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:case S.IN_BODY:case S.IN_TABLE:case S.IN_CAPTION:case S.IN_COLUMN_GROUP:case S.IN_TABLE_BODY:case S.IN_ROW:case S.IN_CELL:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:case S.IN_TEMPLATE:case S.IN_FRAMESET:case S.AFTER_FRAMESET:{bh(this,t);break}case S.IN_TABLE_TEXT:{Ds(this,t);break}case S.AFTER_BODY:{oM(this,t);break}case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{uM(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case S.INITIAL:{lM(this,t);break}case S.BEFORE_HEAD:case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:{this._err(t,j.misplacedDoctype);break}case S.IN_TABLE_TEXT:{Ds(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,j.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?O9(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case S.INITIAL:{Ps(this,t);break}case S.BEFORE_HTML:{cM(this,t);break}case S.BEFORE_HEAD:{fM(this,t);break}case S.IN_HEAD:{Yn(this,t);break}case S.IN_HEAD_NO_SCRIPT:{mM(this,t);break}case S.AFTER_HEAD:{yM(this,t);break}case S.IN_BODY:{Ot(this,t);break}case S.IN_TABLE:{is(this,t);break}case S.IN_TABLE_TEXT:{Ds(this,t);break}case S.IN_CAPTION:{h9(this,t);break}case S.IN_COLUMN_GROUP:{d0(this,t);break}case S.IN_TABLE_BODY:{Fc(this,t);break}case S.IN_ROW:{Bc(this,t);break}case S.IN_CELL:{g9(this,t);break}case S.IN_SELECT:{Av(this,t);break}case S.IN_SELECT_IN_TABLE:{x9(this,t);break}case S.IN_TEMPLATE:{E9(this,t);break}case S.AFTER_BODY:{v9(this,t);break}case S.IN_FRAMESET:{w9(this,t);break}case S.AFTER_FRAMESET:{A9(this,t);break}case S.AFTER_AFTER_BODY:{N9(this,t);break}case S.AFTER_AFTER_FRAMESET:{k9(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?L9(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case S.INITIAL:{Ps(this,t);break}case S.BEFORE_HTML:{dM(this,t);break}case S.BEFORE_HEAD:{hM(this,t);break}case S.IN_HEAD:{pM(this,t);break}case S.IN_HEAD_NO_SCRIPT:{gM(this,t);break}case S.AFTER_HEAD:{xM(this,t);break}case S.IN_BODY:{Mc(this,t);break}case S.TEXT:{r9(this,t);break}case S.IN_TABLE:{Bo(this,t);break}case S.IN_TABLE_TEXT:{Ds(this,t);break}case S.IN_CAPTION:{p9(this,t);break}case S.IN_COLUMN_GROUP:{m9(this,t);break}case S.IN_TABLE_BODY:{Eh(this,t);break}case S.IN_ROW:{Cv(this,t);break}case S.IN_CELL:{y9(this,t);break}case S.IN_SELECT:{_v(this,t);break}case S.IN_SELECT_IN_TABLE:{b9(this,t);break}case S.IN_TEMPLATE:{T9(this,t);break}case S.AFTER_BODY:{kv(this,t);break}case S.IN_FRAMESET:{C9(this,t);break}case S.AFTER_FRAMESET:{_9(this,t);break}case S.AFTER_AFTER_BODY:{Zu(this,t);break}}}onEof(t){switch(this.insertionMode){case S.INITIAL:{Ps(this,t);break}case S.BEFORE_HTML:{no(this,t);break}case S.BEFORE_HEAD:{ro(this,t);break}case S.IN_HEAD:{io(this,t);break}case S.IN_HEAD_NO_SCRIPT:{ao(this,t);break}case S.AFTER_HEAD:{so(this,t);break}case S.IN_BODY:case S.IN_TABLE:case S.IN_CAPTION:case S.IN_COLUMN_GROUP:case S.IN_TABLE_BODY:case S.IN_ROW:case S.IN_CELL:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:{Ev(this,t);break}case S.TEXT:{i9(this,t);break}case S.IN_TABLE_TEXT:{Ds(this,t);break}case S.IN_TEMPLATE:{Nv(this,t);break}case S.AFTER_BODY:case S.IN_FRAMESET:case S.AFTER_FRAMESET:case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{c0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===w.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:case S.TEXT:case S.IN_COLUMN_GROUP:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:case S.IN_FRAMESET:case S.AFTER_FRAMESET:{this._insertCharacters(t);break}case S.IN_BODY:case S.IN_CAPTION:case S.IN_CELL:case S.IN_TEMPLATE:case S.AFTER_BODY:case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{mv(this,t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Ud(this,t);break}case S.IN_TABLE_TEXT:{Tv(this,t);break}}}}function tM(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):bv(e,t),n}function nM(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function rM(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=ZD;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=iM(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function iM(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function aM(e,t,n){const r=e.treeAdapter.getTagName(t),i=xs(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===d.TEMPLATE&&a===q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function sM(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function l0(e,t){for(let n=0;n<JD;n++){const r=tM(e,t);if(!r)break;const i=nM(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=rM(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&aM(e,s,a),sM(e,i,r)}}function bh(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function oM(e,t){e._appendCommentNode(t,e.openElements.items[0])}function uM(e,t){e._appendCommentNode(t,e.document)}function c0(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function lM(e,t){e._setDocumentType(t);const n=t.forceQuirks?_n.QUIRKS:jD(t);BD(t)||e._err(t,j.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=S.BEFORE_HTML}function Ps(e,t){e._err(t,j.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,_n.QUIRKS),e.insertionMode=S.BEFORE_HTML,e._processToken(t)}function cM(e,t){t.tagID===d.HTML?(e._insertElement(t,q.HTML),e.insertionMode=S.BEFORE_HEAD):no(e,t)}function dM(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&no(e,t)}function no(e,t){e._insertFakeRootElement(),e.insertionMode=S.BEFORE_HEAD,e._processToken(t)}function fM(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.HEAD:{e._insertElement(t,q.HTML),e.headElement=e.openElements.current,e.insertionMode=S.IN_HEAD;break}default:ro(e,t)}}function hM(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?ro(e,t):e._err(t,j.endTagWithoutMatchingOpenElement)}function ro(e,t){e._insertFakeElement(P.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=S.IN_HEAD,e._processToken(t)}function Yn(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Je.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Je.RAWTEXT):(e._insertElement(t,q.HTML),e.insertionMode=S.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Je.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Je.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=S.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(S.IN_TEMPLATE);break}case d.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:io(e,t)}}function pM(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=S.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{io(e,t);break}case d.TEMPLATE:{oa(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function oa(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,j.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,j.endTagWithoutMatchingOpenElement)}function io(e,t){e.openElements.pop(),e.insertionMode=S.AFTER_HEAD,e._processToken(t)}function mM(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{Yn(e,t);break}case d.NOSCRIPT:{e._err(t,j.nestedNoscriptInHead);break}default:ao(e,t)}}function gM(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=S.IN_HEAD;break}case d.BR:{ao(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function ao(e,t){const n=t.type===Te.EOF?j.openElementsLeftAfterEof:j.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=S.IN_HEAD,e._processToken(t)}function yM(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.BODY:{e._insertElement(t,q.HTML),e.framesetOk=!1,e.insertionMode=S.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,q.HTML),e.insertionMode=S.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,j.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),Yn(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:so(e,t)}}function xM(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{so(e,t);break}case d.TEMPLATE:{oa(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function so(e,t){e._insertFakeElement(P.BODY,d.BODY),e.insertionMode=S.IN_BODY,Dc(e,t)}function Dc(e,t){switch(t.type){case Te.CHARACTER:{gv(e,t);break}case Te.WHITESPACE_CHARACTER:{mv(e,t);break}case Te.COMMENT:{bh(e,t);break}case Te.START_TAG:{Ot(e,t);break}case Te.END_TAG:{Mc(e,t);break}case Te.EOF:{Ev(e,t);break}}}function mv(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gv(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bM(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function EM(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function TM(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,q.HTML),e.insertionMode=S.IN_FRAMESET)}function vM(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,q.HTML)}function wM(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&xh.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,q.HTML)}function CM(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function AM(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,q.HTML),n||(e.formElement=e.openElements.current))}function _M(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===d.LI&&i===d.LI||(n===d.DD||n===d.DT)&&(i===d.DD||i===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==d.ADDRESS&&i!==d.DIV&&i!==d.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,q.HTML)}function NM(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,q.HTML),e.tokenizer.state=Je.PLAINTEXT}function kM(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.framesetOk=!1}function SM(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);n&&(l0(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function IM(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function OM(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(l0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function LM(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function RM(e,t){e.treeAdapter.getDocumentMode(e.document)!==_n.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,q.HTML),e.framesetOk=!1,e.insertionMode=S.IN_TABLE}function yv(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function xv(e){const t=sv(e,Ki.TYPE);return t!=null&&t.toLowerCase()===XD}function PM(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,q.HTML),xv(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function DM(e,t){e._appendElement(t,q.HTML),t.ackSelfClosing=!0}function MM(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function FM(e,t){t.tagName=P.IMG,t.tagID=d.IMG,yv(e,t)}function BM(e,t){e._insertElement(t,q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=S.TEXT}function jM(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function UM(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function Y1(e,t){e._switchToTextParsing(t,Je.RAWTEXT)}function HM(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===S.IN_TABLE||e.insertionMode===S.IN_CAPTION||e.insertionMode===S.IN_TABLE_BODY||e.insertionMode===S.IN_ROW||e.insertionMode===S.IN_CELL?S.IN_SELECT_IN_TABLE:S.IN_SELECT}function zM(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML)}function VM(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,q.HTML)}function YM(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,q.HTML)}function $M(e,t){e._reconstructActiveFormattingElements(),fv(t),u0(t),t.selfClosing?e._appendElement(t,q.MATHML):e._insertElement(t,q.MATHML),t.ackSelfClosing=!0}function WM(e,t){e._reconstructActiveFormattingElements(),hv(t),u0(t),t.selfClosing?e._appendElement(t,q.SVG):e._insertElement(t,q.SVG),t.ackSelfClosing=!0}function $1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML)}function Ot(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{IM(e,t);break}case d.A:{SM(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{wM(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{vM(e,t);break}case d.LI:case d.DD:case d.DT:{_M(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{yv(e,t);break}case d.HR:{MM(e,t);break}case d.RB:case d.RTC:{VM(e,t);break}case d.RT:case d.RP:{YM(e,t);break}case d.PRE:case d.LISTING:{CM(e,t);break}case d.XMP:{jM(e,t);break}case d.SVG:{WM(e,t);break}case d.HTML:{bM(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{Yn(e,t);break}case d.BODY:{EM(e,t);break}case d.FORM:{AM(e,t);break}case d.NOBR:{OM(e,t);break}case d.MATH:{$M(e,t);break}case d.TABLE:{RM(e,t);break}case d.INPUT:{PM(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{DM(e,t);break}case d.IMAGE:{FM(e,t);break}case d.BUTTON:{kM(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{LM(e,t);break}case d.IFRAME:{UM(e,t);break}case d.SELECT:{HM(e,t);break}case d.OPTION:case d.OPTGROUP:{zM(e,t);break}case d.NOEMBED:case d.NOFRAMES:{Y1(e,t);break}case d.FRAMESET:{TM(e,t);break}case d.TEXTAREA:{BM(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?Y1(e,t):$1(e,t);break}case d.PLAINTEXT:{NM(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:$1(e,t)}}function qM(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=S.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function GM(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=S.AFTER_BODY,kv(e,t))}function QM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function KM(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function XM(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(P.P,d.P),e._closePElement()}function JM(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function ZM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function e9(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function t9(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function n9(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function bv(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Mc(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{l0(e,t);break}case d.P:{XM(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{QM(e,t);break}case d.LI:{JM(e);break}case d.DD:case d.DT:{ZM(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{e9(e);break}case d.BR:{n9(e);break}case d.BODY:{qM(e,t);break}case d.HTML:{GM(e,t);break}case d.FORM:{KM(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{t9(e,t);break}case d.TEMPLATE:{oa(e,t);break}default:bv(e,t)}}function Ev(e,t){e.tmplInsertionModeStack.length>0?Nv(e,t):c0(e,t)}function r9(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function i9(e,t){e._err(t,j.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ud(e,t){if(e.openElements.currentTagId!==void 0&&pv.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=S.IN_TABLE_TEXT,t.type){case Te.CHARACTER:{vv(e,t);break}case Te.WHITESPACE_CHARACTER:{Tv(e,t);break}}else eu(e,t)}function a9(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,q.HTML),e.insertionMode=S.IN_CAPTION}function s9(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,q.HTML),e.insertionMode=S.IN_COLUMN_GROUP}function o9(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,d.COLGROUP),e.insertionMode=S.IN_COLUMN_GROUP,d0(e,t)}function u9(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,q.HTML),e.insertionMode=S.IN_TABLE_BODY}function l9(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,d.TBODY),e.insertionMode=S.IN_TABLE_BODY,Fc(e,t)}function c9(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function d9(e,t){xv(t)?e._appendElement(t,q.HTML):eu(e,t),t.ackSelfClosing=!0}function f9(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function is(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{l9(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{Yn(e,t);break}case d.COL:{o9(e,t);break}case d.FORM:{f9(e,t);break}case d.TABLE:{c9(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{u9(e,t);break}case d.INPUT:{d9(e,t);break}case d.CAPTION:{a9(e,t);break}case d.COLGROUP:{s9(e,t);break}default:eu(e,t)}}function Bo(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{oa(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:eu(e,t)}}function eu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Dc(e,t),e.fosterParentingEnabled=n}function Tv(e,t){e.pendingCharacterTokens.push(t)}function vv(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ds(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)eu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const wv=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function h9(e,t){const n=t.tagID;wv.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_TABLE,is(e,t)):Ot(e,t)}function p9(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_TABLE,n===d.TABLE&&Bo(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Mc(e,t)}}function d0(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.COL:{e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{Yn(e,t);break}default:Wl(e,t)}}function m9(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=S.IN_TABLE);break}case d.TEMPLATE:{oa(e,t);break}case d.COL:break;default:Wl(e,t)}}function Wl(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=S.IN_TABLE,e._processToken(t))}function Fc(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,q.HTML),e.insertionMode=S.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,d.TR),e.insertionMode=S.IN_ROW,Bc(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE,is(e,t));break}default:is(e,t)}}function Eh(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE,Bo(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:Bo(e,t)}}function Bc(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,q.HTML),e.insertionMode=S.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Fc(e,t));break}default:is(e,t)}}function Cv(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Eh(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Eh(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:Bo(e,t)}}function g9(e,t){const n=t.tagID;wv.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),Bc(e,t)):Ot(e,t)}function y9(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Cv(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:Mc(e,t)}}function Av(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,q.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,q.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{Yn(e,t);break}}}function _v(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{oa(e,t);break}}}function x9(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Av(e,t)}function b9(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):_v(e,t)}function E9(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{Yn(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=S.IN_TABLE,e.insertionMode=S.IN_TABLE,is(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=S.IN_COLUMN_GROUP,e.insertionMode=S.IN_COLUMN_GROUP,d0(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=S.IN_TABLE_BODY,e.insertionMode=S.IN_TABLE_BODY,Fc(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=S.IN_ROW,e.insertionMode=S.IN_ROW,Bc(e,t);break}default:e.tmplInsertionModeStack[0]=S.IN_BODY,e.insertionMode=S.IN_BODY,Ot(e,t)}}function T9(e,t){t.tagID===d.TEMPLATE&&oa(e,t)}function Nv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):c0(e,t)}function v9(e,t){t.tagID===d.HTML?Ot(e,t):ql(e,t)}function kv(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=S.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ql(e,t)}function ql(e,t){e.insertionMode=S.IN_BODY,Dc(e,t)}function w9(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.FRAMESET:{e._insertElement(t,q.HTML);break}case d.FRAME:{e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{Yn(e,t);break}}}function C9(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=S.AFTER_FRAMESET))}function A9(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.NOFRAMES:{Yn(e,t);break}}}function _9(e,t){t.tagID===d.HTML&&(e.insertionMode=S.AFTER_AFTER_FRAMESET)}function N9(e,t){t.tagID===d.HTML?Ot(e,t):Zu(e,t)}function Zu(e,t){e.insertionMode=S.IN_BODY,Dc(e,t)}function k9(e,t){switch(t.tagID){case d.HTML:{Ot(e,t);break}case d.NOFRAMES:{Yn(e,t);break}}}function S9(e,t){t.chars=je,e._insertCharacters(t)}function I9(e,t){e._insertCharacters(t),e.framesetOk=!1}function Sv(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==q.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function O9(e,t){if(WD(t))Sv(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===q.MATHML?fv(t):r===q.SVG&&(qD(t),hv(t)),u0(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function L9(e,t){if(t.tagID===d.P||t.tagID===d.BR){Sv(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===q.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}P.AREA,P.BASE,P.BASEFONT,P.BGSOUND,P.BR,P.COL,P.EMBED,P.FRAME,P.HR,P.IMG,P.INPUT,P.KEYGEN,P.LINK,P.META,P.PARAM,P.SOURCE,P.TRACK,P.WBR;const R9=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,P9=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),W1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Iv(e,t){const n=Y9(e),r=tv("type",{handlers:{root:D9,element:M9,text:F9,comment:Lv,doctype:B9,raw:U9},unknown:H9}),i={parser:n?new V1(W1):V1.getFragmentParser(void 0,W1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),bs(i,yr());const a=n?i.parser.document:i.parser.getFragment(),s=$8(a,{file:i.options.file});return i.stitches&&i0(s,"comment",function(o,u,l){const f=o;if(f.value.stitch&&l&&u!==void 0){const h=l.children;return h[u]=f.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Ov(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function D9(e,t){Ov(e.children,t)}function M9(e,t){z9(e,t),Ov(e.children,t),V9(e,t)}function F9(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Te.CHARACTER,chars:e.value,location:tu(e)};bs(t,yr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function B9(e,t){const n={type:Te.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tu(e)};bs(t,yr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function j9(e,t){t.stitches=!0;const n=$9(e);if("children"in e&&"children"in n){const r=Iv({type:"root",children:e.children},t.options);n.children=r.children}Lv({type:"comment",value:{stitch:n}},t)}function Lv(e,t){const n=e.value,r={type:Te.COMMENT,data:n,location:tu(e)};bs(t,yr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function U9(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Rv(t,yr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(R9,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function H9(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))j9(n,t);else{let r="";throw P9.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function bs(e,t){Rv(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Rv(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function z9(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Je.PLAINTEXT)return;bs(t,yr(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Hi.html;i===Hi.html&&n==="svg"&&(i=Hi.svg);const a=K8({...e,children:[]},{space:i===Hi.svg?"svg":"html"}),s={type:Te.START_TAG,tagName:n,tagID:xs(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:tu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function V9(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&iD.includes(n)||t.parser.tokenizer.state===Je.PLAINTEXT)return;bs(t,Oc(e));const r={type:Te.END_TAG,tagName:n,tagID:xs(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Je.RCDATA||t.parser.tokenizer.state===Je.RAWTEXT||t.parser.tokenizer.state===Je.SCRIPT_DATA)&&(t.parser.tokenizer.state=Je.DATA)}function Y9(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function tu(e){const t=yr(e)||{line:void 0,column:void 0,offset:void 0},n=Oc(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function $9(e){return"children"in e?rs({...e,children:[]}):rs(e)}function W9(e){return function(t,n){return Iv(t,{...e,file:n})}}const q1=680,G1=320;function q9(e){const t=e/9;return 22+t*t*270+t*18}function as(e,t){const n=48*Math.exp(-Math.pow((e-198)/68,2)),r=-38*Math.exp(-Math.pow((e-502)/108,2)),i=5.5*Math.sin(e/38+t*1.05)+3.2*Math.sin(e/16+t*.45)+2.1*Math.sin(e/9.5+t*1.7);return q9(t)+n+r+i}function jc(e,t){const n=e.length;if(n<2)return"";const r=s=>t?e[(s+n)%n]:e[Math.max(0,Math.min(n-1,s))];let i=`M ${e[0][0].toFixed(1)} ${e[0][1].toFixed(1)}`;const a=t?n:n-1;for(let s=0;s<a;s++){const o=r(s-1),u=r(s),l=r(s+1),f=r(s+2);i+=` C ${(u[0]+(l[0]-o[0])/6).toFixed(1)} ${(u[1]+(l[1]-o[1])/6).toFixed(1)} ${(l[0]-(f[0]-u[0])/6).toFixed(1)} ${(l[1]-(f[1]-u[1])/6).toFixed(1)} ${l[0].toFixed(1)} ${l[1].toFixed(1)}`}return t?`${i} Z`:i}function Kr(e,t,n,r=12){const i=[],a=n>=t?1:-1;for(let u=t;a>0?u<=n:u>=n;u+=a*r)i.push([u,as(u,e)]);const s=[n,as(n,e)],o=i[i.length-1];return(!o||Math.abs(o[0]-s[0])>.5)&&i.push(s),i}function G9(e){return e<1.4?250:e<2.6?140:e<4.2?40:-28}function Q1(e,t,n,r){const i=as(e,t),a=as(e,n),s=Math.max(7,Math.abs(a-i)*.55),o=e+r*s;return[[e,i],[o,i],[o,(i+a)/2],[o,a],[e,a]]}const Q9=[{level:.25,index:!0},{level:.85,index:!1},{level:1.5,index:!1},{level:2.2,index:!0},{level:3,index:!1},{level:3.9,index:!1},{level:4.9,index:!0},{level:6.05,index:!1},{level:7.3,index:!1},{level:8.7,index:!0}],Gl={x:78,y:as(78,8.45)},ss={x:556,y:as(556,.45)},K9=jc([[Gl.x,Gl.y],...Kr(8.2,96,176,14).slice(1),...Kr(6.4,176,228,12).slice(1),...Kr(4.4,228,268,12).slice(1),...Kr(2.7,268,428,11).slice(1),...Q1(428,2.7,2.05,1).slice(1),...Kr(2.05,428,278,11).slice(1),...Q1(278,2.05,1.4,-1).slice(1),...Kr(1.4,278,500,11).slice(1),[ss.x,ss.y]],!1),X9=jc(Kr(9.05,-12,268,16).map(([e,t],n)=>[e,t+7+2.5*Math.sin(n*.9)]),!1);function K1(e,t,n){const r=[];for(let a=0;a<22;a++){const s=a/22*Math.PI*2,o=1+n*Math.sin(3*s+.4);r.push([ss.x+e*o*Math.cos(s),ss.y+t*o*Math.sin(s)])}return jc(r,!0)}const J9=()=>c.jsxs("svg",{viewBox:`0 0 ${q1} ${G1}`,className:"trail-map h-auto w-full",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[c.jsx("defs",{children:c.jsx("clipPath",{id:"trail-map-plate",children:c.jsx("rect",{width:q1,height:G1})})}),c.jsxs("g",{clipPath:"url(#trail-map-plate)",children:[Q9.map(({level:e,index:t})=>c.jsx("path",{d:jc(Kr(e,G9(e),708,14),!1),stroke:t?"var(--contour-index)":"var(--contour)",strokeWidth:t?1.35:.7,strokeLinecap:"round",strokeLinejoin:"round"},e)),c.jsx("path",{d:K1(20,12,.08),stroke:"var(--contour-index)",strokeWidth:"0.9"}),c.jsx("path",{d:K1(34,20,.07),stroke:"var(--contour)",strokeWidth:"0.7"}),c.jsx("path",{d:X9,stroke:"var(--water)",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:K9,stroke:"var(--trail)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"5.5 6.5"})]}),c.jsx("rect",{x:Gl.x-3.5,y:Gl.y-3.5,width:"7",height:"7",fill:"var(--trail)"}),c.jsxs("g",{transform:`translate(${ss.x} ${ss.y})`,fill:"var(--trail)",children:[c.jsx("ellipse",{cx:"0",cy:"6.4",rx:"7.2",ry:"3"}),c.jsx("ellipse",{cx:"0",cy:"2.1",rx:"5.1",ry:"2.4"}),c.jsx("ellipse",{cx:"0",cy:"-1.6",rx:"3.1",ry:"2"})]}),c.jsxs("g",{transform:"translate(648 22)",stroke:"var(--trail)",fill:"none",opacity:"0.8",strokeWidth:"1.15",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M 0 16 L 0 0 M -3.4 4.2 L 0 0 L 3.4 4.2"}),c.jsx("text",{x:"0",y:"26",textAnchor:"middle",fill:"var(--trail)",stroke:"none",fontSize:"8",fontFamily:"Inter, system-ui, sans-serif",fontWeight:"700",children:"N"})]}),c.jsxs("g",{transform:"translate(28 304)",stroke:"var(--contour-index)",fill:"var(--contour-index)",strokeWidth:"1.1",strokeLinecap:"square",children:[c.jsx("path",{d:"M 0 0 L 0 -4.5 M 0 0 L 52 0 M 52 0 L 52 -4.5"}),c.jsx("text",{x:"52",y:"10",textAnchor:"end",fill:"var(--contour-index)",stroke:"none",fontSize:"8",fontFamily:"Inter, system-ui, sans-serif",fontWeight:"600",children:"½ mi"})]})]}),Ri={title:"Marc J. Greenberg | Fractional CTO for hospitality, proptech, and payments",description:"Marc J. Greenberg is a fractional CTO and AI advisor. 40 years shipping software. Half-day strategy sessions from $7,500. You leave with a punch list, not a slide deck. Remote from Delray Beach, FL.",ogTitle:"Marc J. Greenberg | Fractional CTO for hospitality, proptech, and payments",ogDescription:"40 years shipping software. Half-day strategy sessions from $7,500. You leave with a punch list, not a slide deck.",ogUrl:"https://braintrailz.com/",ogType:"website",canonical:"https://braintrailz.com/"};function X1(e,t){let n=document.querySelector(`meta[name="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)}function Tr(e,t){let n=document.querySelector(`meta[property="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("property",e),document.head.appendChild(n)),n.setAttribute("content",t)}function J1(e){var t;(t=document.querySelector(`meta[property="${e}"]`))==null||t.remove()}function Z1(e){let t=document.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",e)}function Z9(e){return document.title=e.title,X1("description",e.description),Z1(e.url),Tr("og:type",e.type??"website"),Tr("og:url",e.url),Tr("og:title",e.title),Tr("og:description",e.description),e.image?Tr("og:image",e.image):J1("og:image"),window.prerenderReady=!0,()=>{document.title=Ri.title,X1("description",Ri.description),Z1(Ri.canonical),Tr("og:type",Ri.ogType),Tr("og:url",Ri.ogUrl),Tr("og:title",Ri.ogTitle),Tr("og:description",Ri.ogDescription),J1("og:image")}}const ey="https://braintrailz.com";async function eF(e){var r;if((r=navigator.clipboard)!=null&&r.writeText)try{await navigator.clipboard.writeText(e);return}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select();const n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("copy failed")}const tF=()=>{const{slug:e}=RS(),t=e?GO(e):void 0,[n,r]=T.useState(!1);T.useEffect(()=>{window.scrollTo(0,0)},[e]),T.useEffect(()=>t?Z9({title:t.title,description:t.summary,url:`${ey}/blog/${t.slug}`,image:t.image?`${ey}${t.image}`:void 0,type:"article"}):void 0,[t]);const i=T.useCallback(async()=>{if(!e)return;const a=`${window.location.origin}/blog/${e}`;try{await eF(a),r(!0),Hf.success("Link copied"),window.setTimeout(()=>r(!1),2e3)}catch{window.prompt("Copy this link:",a)}},[e]);return t?c.jsxs(c.Fragment,{children:[c.jsx(en,{}),c.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:c.jsx("div",{className:"container-custom pt-32 pb-16",children:c.jsxs("div",{className:t.trailBackground?"mx-auto max-w-3xl":void 0,children:[c.jsx("p",{className:"mb-6",children:c.jsx(Ft,{to:"/blog",className:"text-braintrailz-blue hover:text-braintrailz-blue/80 transition-colors",children:"Blog"})}),c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-4",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:pT(t.date)}),c.jsxs(Xt,{type:"button",variant:"outline",size:"sm",onClick:i,"aria-label":"Copy link to this post",children:[n?c.jsx(rE,{}):c.jsx(p3,{}),n?"Copied":"Share"]})]}),t.showTitle?c.jsx("h1",{className:"text-4xl font-bold mb-8",children:t.title}):c.jsx("h1",{className:"sr-only",children:t.title}),t.trailBackground?c.jsxs("figure",{className:"mb-10 overflow-hidden rounded-lg border border-slate-300 bg-[#f3efe6] px-3 py-3 dark:border-braintrailz-blue/15 dark:bg-braintrailz-dark/55 md:px-4 md:py-4",children:[c.jsx(J9,{}),c.jsx("figcaption",{className:"mt-2 text-center text-[11px] tracking-wide text-muted-foreground",children:"One trail, from the trailhead to the cairn."})]}):null,c.jsx("div",{className:"prose max-w-none dark:prose-invert",children:c.jsx(I8,{rehypePlugins:[W9],children:t.body})})]})})}),c.jsx(tn,{})]}):c.jsx(A2,{})},nF=({onStoredChange:e})=>{const{theme:t}=mc();return T.useEffect(()=>{e()},[t,e]),T.useEffect(()=>u6(e),[e]),null},rF=({children:e})=>{const{pathname:t}=Br(),[n,r]=T.useState(()=>ig()),i=T.useCallback(()=>{r(ig())},[]),a=s6({pathname:t,stored:n});return c.jsxs(p_,{attribute:"class",defaultTheme:"dark",enableSystem:!1,storageKey:m2,forcedTheme:a,children:[c.jsx(nF,{onStoredChange:i}),e]})},iF="#F4F7FA",aF="#030712",sF=()=>{const{forcedTheme:e,resolvedTheme:t}=mc();return T.useEffect(()=>{const r=(e??t)==="light"?iF:aF;let i=document.querySelector('meta[name="theme-color"]');i||(i=document.createElement("meta"),i.setAttribute("name","theme-color"),document.head.appendChild(i)),i.setAttribute("content",r)},[e,t]),null},oF=new nS,uF=()=>c.jsx(iS,{client:oF,children:c.jsx(e6,{children:c.jsxs(rF,{children:[c.jsx(sF,{}),c.jsxs(Rk,{children:[c.jsx(d_,{}),c.jsx(V_,{}),c.jsxs(qS,{children:[c.jsx(wt,{path:"/",element:c.jsx(q6,{})}),c.jsx(wt,{path:"/backpack",element:c.jsx(J6,{})}),c.jsx(wt,{path:"/greymatters",element:c.jsx(Z6,{})}),c.jsx(wt,{path:"/terms",element:c.jsx(eI,{})}),c.jsx(wt,{path:"/privacy",element:c.jsx(tI,{})}),c.jsx(wt,{path:"/sitemap",element:c.jsx(rI,{})}),c.jsx(wt,{path:"/pricing",element:c.jsx(aI,{})}),c.jsx(wt,{path:"/skills",element:c.jsx(uI,{})}),c.jsx(wt,{path:"/trailcraft",element:c.jsx(hI,{})}),c.jsx(wt,{path:"/trailcraft/maps/sofla",element:c.jsx(pI,{})}),c.jsx(wt,{path:"/trailcraft/maps/rdu",element:c.jsx(mI,{})}),c.jsx(wt,{path:"/trailcraft/repack",element:c.jsx(yI,{})}),c.jsx(wt,{path:"/blog",element:c.jsx(QO,{})}),c.jsx(wt,{path:"/blog/:slug",element:c.jsx(tF,{})}),c.jsx(wt,{path:"*",element:c.jsx(A2,{})})]})]})]})})});wb(document.getElementById("root")??document.createElement("div")).render(c.jsx(uF,{}));