@coffer-org/web 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ExtendReasonInfo-BhCi8mhM.js +1 -0
- package/dist/assets/{GeoMap-BMxOWl2s.js → GeoMap-Gfe3Mxlk.js} +1 -1
- package/dist/assets/MarkdownEditor-BRFu6dnQ.js +1057 -0
- package/dist/assets/NewRecordView-BPsnPsT7.js +1 -0
- package/dist/assets/{NoMac-Bs6G_u9v.js → NoMac-D7iyE4U0.js} +1 -1
- package/dist/assets/{PageBody-QzKQtJfF.js → PageBody-CvuReTKD.js} +1 -1
- package/dist/assets/{PluginSettingsPage-mnOY76PP.js → PluginSettingsPage-Csx46vJ2.js} +1 -1
- package/dist/assets/{ScanSummary-CaSVAMkI.js → ScanSummary-BtTfSAGX.js} +1 -1
- package/dist/assets/{SettingsForm-CWhHJOJt.js → SettingsForm-BlSnJkUU.js} +1 -1
- package/dist/assets/SettingsPage-Uw-JHbT5.js +2 -0
- package/dist/assets/Toolbar-CVjgIOri.js +2 -0
- package/dist/assets/api-B7hHeZsv.js +1 -0
- package/dist/assets/auth-context-5nk31OPN.js +1 -0
- package/dist/assets/button-Dlm2GmQs.js +5 -0
- package/dist/assets/{chunk-KS7C4IRE-dy2r3JTy.js → chunk-KS7C4IRE-B1_Zk64s.js} +1 -1
- package/dist/assets/development-ChLInqDF.js +1 -0
- package/dist/assets/{dist-CFdrMgLX.js → dist-0L0REEL4.js} +1 -1
- package/dist/assets/{dist-ByXt-qy32.js → dist-B02SqOKT.js} +1 -1
- package/dist/assets/{dist-DjjCJQor.js → dist-B3teaDxf.js} +1 -1
- package/dist/assets/{dist-DgQ7xbd_.js → dist-BRl6D2sz.js} +1 -1
- package/dist/assets/{dist-DfIinXjG.js → dist-C9iafu0r.js} +1 -1
- package/dist/assets/dist-CdqdWApy.js +1 -0
- package/dist/assets/{dist-BNur_jh6.js → dist-D0lzj0II.js} +1 -1
- package/dist/assets/dist-DCRaLcSL.js +11 -0
- package/dist/assets/dist-DKL_233B.js +1 -0
- package/dist/assets/dist-DdxaiEI9.js +23 -0
- package/dist/assets/dist-DkJnaE0X.js +1 -0
- package/dist/assets/{dist-tEJ-k59b.js → dist-DnLPZbvG.js} +1 -1
- package/dist/assets/dist-TJOGNsUr.js +9 -0
- package/dist/assets/{dist-rZsvLEhc.js → dist-mpdotBBM.js} +1 -1
- package/dist/assets/{dist-BNXMEKVs.js → dist-nHZzrtBn.js} +1 -1
- package/dist/assets/dist-qu79xOH5.js +1 -0
- package/dist/assets/esm-BNZSV1P6.js +24 -0
- package/dist/assets/esm-DCMdnC8o.js +1 -0
- package/dist/assets/{field-frame-CESVVP3h.js → field-frame-GkHj6Ywy.js} +1 -1
- package/dist/assets/index-CiPgTz1J.js +354 -0
- package/dist/assets/index-DtDqdYhT.css +2 -0
- package/dist/assets/json-2IEVhd4i.js +41 -0
- package/dist/assets/{jsx-dev-runtime-DeBf9dJw.js → jsx-dev-runtime-CSfA-jUb.js} +1 -1
- package/dist/assets/{jsx-runtime-DhzTdv_T.js → jsx-runtime-JUshM5qe.js} +1 -1
- package/dist/assets/lib-Co4B8qAy.js +1 -0
- package/dist/assets/lib-DqTnDi2O.js +1 -0
- package/dist/assets/micromark-extension-gfm-Cu0AwUgc.js +2 -0
- package/dist/assets/purify.es-sLXpNpJ5.js +3 -0
- package/dist/assets/{react-BKp0oIqV.js → react-n93t21jb.js} +1 -1
- package/dist/assets/shared-D0511v9d.js +1 -0
- package/dist/assets/{ui-6KU4Adjx.js → ui-EkC8CVbj.js} +2 -2
- package/dist/index.html +22 -19
- package/dist-vendor/i18next.js +1 -1
- package/dist-vendor/jsx-runtime.js +1 -1
- package/dist-vendor/{react-yLkyEioL.js → react-CdP73OPv.js} +2 -2
- package/dist-vendor/react-dom.js +3 -3
- package/dist-vendor/react.js +1 -1
- package/dist-vendor/web-sdk.js +9 -9
- package/package.json +6 -5
- package/dist/assets/ExtendReasonInfo-2xj7V0H2.js +0 -1
- package/dist/assets/MarkdownEditor-CTLTW3oD.js +0 -1060
- package/dist/assets/NewRecordView-pYJnrERV.js +0 -1
- package/dist/assets/SettingsPage-DV2d5wUU.js +0 -2
- package/dist/assets/Toolbar-S4-Gmm9L.js +0 -3
- package/dist/assets/api-V98HaFMa.js +0 -1
- package/dist/assets/auth-context-BlvZgasO.js +0 -1
- package/dist/assets/button-VZuZjj-j.js +0 -5
- package/dist/assets/dist-CJvyz0jt.js +0 -1
- package/dist/assets/dist-CZA4BBQN.js +0 -11
- package/dist/assets/dist-Cnq8rabN.js +0 -23
- package/dist/assets/dist-DIdoc5C5.js +0 -1
- package/dist/assets/dist-Dn87YmtR.js +0 -1
- package/dist/assets/dist-mtKKRYXL.js +0 -9
- package/dist/assets/esm-Cmdu3PQ5.js +0 -1
- package/dist/assets/esm-DGg7gyTi.js +0 -24
- package/dist/assets/index-C94DLfRb.css +0 -2
- package/dist/assets/index-DeSFnSeF.js +0 -356
- package/dist/assets/index.dom-CA5INa_J.js +0 -1
- package/dist/assets/json-DfDguq5e.js +0 -41
- package/dist/assets/lib-Bt_xGT1S.js +0 -1
- package/dist/assets/lib-DUUz5X6c.js +0 -1
- package/dist/assets/objectWithoutPropertiesLoose-DBYSo7QU.js +0 -1
- package/dist/assets/shared-Dn2tWEOY.js +0 -1
- /package/dist/assets/{dist-CJsxDt1W.js → dist-CJsxDt1W2.js} +0 -0
- /package/dist/assets/{dist-CUwIxyXc.js → dist-CUwIxyXc2.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";import{i as n,t as r,w as i}from"./button-VZuZjj-j.js";import{c as a,l as o}from"./chunk-KS7C4IRE-dy2r3JTy.js";import{t as s}from"./jsx-dev-runtime-DeBf9dJw.js";import{t as c}from"./json-DfDguq5e.js";import{r as l,t as u}from"./ExtendReasonInfo-2xj7V0H2.js";import{f as d,l as f,m as p,n as m,o as h,r as g,s as _,t as v,u as y,y as b}from"./Toolbar-S4-Gmm9L.js";import{S as x,f as S,g as C,m as w}from"./fields-B4fdbc1_.js";import{a as T,h as E,m as D,n as O,o as k,t as A}from"./shelf-e7xL1R3N.js";import{o as j,w as M}from"./api-V98HaFMa.js";var N=e(t(),1),P=s(),F=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/fields-form.tsx`;function I({shelf:e,record:t,onSubmit:n,onCancel:a,submitLabel:o,busy:s,children:c,hiddenFields:l,onValuesChange:u,errorSink:d,extraValidate:p}){let{t:h}=i(),v=f(h),y=!!t,b=(0,N.useMemo)(()=>k(e.fields),[e]),{values:S,errors:C,setErrors:w,setTouched:T,bridge:E}=m({fm:b,mode:y?`edit`:`create`,recordCtx:{library:e.library,shelf:e.shelf,recordId:t?String(t.id):null},initial:()=>R(e,t),hiddenFields:l}),[D,j]=(0,N.useState)(),[M,I]=(0,N.useState)(!1);(0,N.useEffect)(()=>{u?.(S)},[S,u]),(0,N.useEffect)(()=>{d?.({setErrors:w,setTouched:T})},[d,w,T]);async function L(t){t.preventDefault(),j(void 0);let r=Object.keys(b),i={};for(let e of r)e in S&&(i[e]=S[e]);let a=z(i),o=(y?O(e):A(e)).safeParse(a),s={};if(!o.success)for(let e of o.error.issues){let t=String(e.path[0]??``);if(!r.includes(t)||s[t])continue;let{code:n,params:i}=x(e.message);s[t]=v(n,i)}if(Object.assign(s,p?.(S)??{}),Object.keys(s).length){w(s),T(new Set(Object.keys(s)));return}I(!0);let c=await n(a);I(!1),c&&j(c)}return(0,P.jsxDEV)(`form`,{onSubmit:L,noValidate:!0,className:`flex flex-col gap-5 min-w-0`,children:[(0,P.jsxDEV)(_.Provider,{value:e=>C[e.join(`.`)],children:(0,P.jsxDEV)(g,{items:e.fields,ctx:{bridge:E}},void 0,!1,{fileName:F,lineNumber:118,columnNumber:9},this)},void 0,!1,{fileName:F,lineNumber:117,columnNumber:7},this),c,D&&(0,P.jsxDEV)(`p`,{className:`text-sm text-danger`,children:D},void 0,!1,{fileName:F,lineNumber:121,columnNumber:21},this),(0,P.jsxDEV)(`div`,{className:`flex gap-3 pt-2 border-t border-border`,children:[(0,P.jsxDEV)(r,{type:`submit`,disabled:s||M,size:`lg`,className:`flex-1`,children:o??h(`actions.save`)},void 0,!1,{fileName:F,lineNumber:123,columnNumber:9},this),a&&(0,P.jsxDEV)(r,{type:`button`,variant:`secondary`,size:`lg`,onClick:a,className:`flex-1`,children:h(`actions.cancel`)},void 0,!1,{fileName:F,lineNumber:127,columnNumber:11},this)]},void 0,!0,{fileName:F,lineNumber:122,columnNumber:7},this)]},void 0,!0,{fileName:F,lineNumber:116,columnNumber:5},this)}var L=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/form.tsx`;function R(e,t){let n={};n.name=t?.name==null?``:String(t.name);for(let[r,i]of T(e.fields))if(!i.virtual)if(t){let e=t[r];e==null?n[r]=i.prim!==`checkbox`&&``:i.prim===`checkbox`?n[r]=e===1||e===!0||e===`1`:w(i)?n[r]=e===``?``:c(e,i.hints.multiple===!0?[]:{}):n[r]=e}else n[r]=i.prim===`checkbox`?!1:w(i)&&i.hints.multiple===!0?[]:``;for(let r of e.fields){if(!S(r)||!C(r))continue;let e=r.key;t?n[e]=t[e]??(r.multiple?[]:{}):n[e]=r.multiple?[]:{}}return n}function z(e){let t={};for(let[n,r]of Object.entries(e))r===``||r===void 0||Array.isArray(r)&&r.length===0||typeof r==`object`&&r&&!Array.isArray(r)&&Object.keys(r).length===0||(t[n]=r);return t}function B({ext:e,values:t,onChange:r,recordId:a,fieldLabel:o}){let{t:s}=i();return(0,P.jsxDEV)(`fieldset`,{className:`border border-accent/30 rounded-xl p-4 pt-2 flex flex-col min-w-0 gap-4`,children:[(0,P.jsxDEV)(`legend`,{className:`px-2 inline-flex items-center gap-1.5 text-sm font-semibold text-accent`,children:[(0,P.jsxDEV)(n,{name:e.icon,size:14,className:`shrink-0`},void 0,!1,{fileName:L,lineNumber:114,columnNumber:9},this),` `,s(e.label),(0,P.jsxDEV)(u,{ext:e,fieldLabel:o},void 0,!1,{fileName:L,lineNumber:115,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:113,columnNumber:7},this),(0,P.jsxDEV)(g,{items:e.fields,ctx:{renderField:(n,i)=>E(i.hidden,t)?null:(0,P.jsxDEV)(l,{mode:`create`,field:i,label:i.label?s(i.label):void 0,required:E(i.required,t),value:t[n]??``,recordCtx:{library:``,shelf:e.id,recordId:a},onChange:t=>r(e.id,n,t)},void 0,!1,{fileName:L,lineNumber:100,columnNumber:9},this)}},void 0,!1,{fileName:L,lineNumber:117,columnNumber:7},this)]},void 0,!0,{fileName:L,lineNumber:112,columnNumber:5},this)}function V(e,t,n){let[r]=(0,N.useState)(()=>{let n={};for(let r of e){let e=t?._extends?.[r.id];n[r.id]={};for(let[t,i]of T(r.fields)){let a=e?.[t];a==null?n[r.id][t]=i.prim===`checkbox`?!1:w(i)&&i.hints.multiple===!0?[]:``:i.prim===`checkbox`?n[r.id][t]=a===1||a===!0||a===`1`:w(i)?n[r.id][t]=a===``?``:c(a,i.hints.multiple===!0?[]:{}):n[r.id][t]=a}}return n}),[i,a]=(0,N.useState)(r),o=(0,N.useMemo)(()=>e.filter(e=>D(e.showWhen,n)),[e,n]);function s(e,t,n){a(r=>({...r,[e]:{...r[e],[t]:n}}))}function l(e){let t={};for(let n of o){let a=i[n.id]??{};if(e){let e=r[n.id]??{},i=Object.fromEntries(Object.entries(a).filter(([t,n])=>n!==e[t]));Object.keys(i).length>0&&(t[`_extend_${n.id}`]=i)}else{let e=Object.fromEntries(Object.entries(a).filter(([,e])=>e!==``&&e!==!1));t[`_extend_${n.id}`]=e}}return t}return{extValues:i,setExtValue:s,activeExts:o,buildExtendPatch:l}}function H({shelf:e,record:t,defaults:n,hiddenFields:r,onSuccess:a,onCancel:o}){let{t:s}=i(),c=f(s),l=!!t,u=(0,N.useMemo)(()=>k(e.fields),[e]),[p,m]=(0,N.useState)([]),[h,g]=(0,N.useState)(!1),[_,v]=(0,N.useState)(()=>R(e,t)),b=(0,N.useRef)(null),{extValues:x,setExtValue:S,activeExts:C,buildExtendPatch:w}=V((0,N.useMemo)(()=>d().filter(t=>t.attachTo.some(t=>t.library===e.library&&(!t.shelf||t.shelf===e.shelf))),[e]),t,_);function T(e){return l||String(e.name??``).trim()?{}:{name:s(`validation.required`)}}async function E(n){m([]),g(!0);let r={...n,...w()},i=String(t?.id??``),o=l?await M(e.library,e.shelf,i,r):await j(e.library,e.shelf,r);if(g(!1),o.ok){a(o.row);return}let s=o.issues??[],d={},f=[];for(let e of s)e.field&&u[e.field]?d[e.field]=c(e.code,e.params):f.push(e);let p=y(s,c);(Object.keys(d).length||Object.keys(p).length)&&(b.current?.setErrors(e=>({...e,...d,...p})),b.current?.setTouched(e=>new Set([...e,...Object.keys(d)]))),m(f)}return(0,P.jsxDEV)(`div`,{children:(0,P.jsxDEV)(I,{shelf:e,record:t,onSubmit:E,onCancel:o,submitLabel:s(h?`common.saving`:l?`actions.save`:`actions.create`),busy:h,hiddenFields:r,onValuesChange:v,errorSink:e=>{b.current=e},extraValidate:T,children:[C.map(e=>(0,P.jsxDEV)(B,{ext:e,values:x[e.id]??{},onChange:S,recordId:t?String(t.id):null,fieldLabel:e=>u[e]?.label?s(u[e].label):e},e.id,!1,{fileName:L,lineNumber:318,columnNumber:11},this)),p.length>0&&(0,P.jsxDEV)(`div`,{className:`bg-danger/10 border border-danger/30 rounded-xl p-3.5 text-sm`,children:[(0,P.jsxDEV)(`p`,{className:`font-semibold text-danger mb-2`,children:s(`form.serverRejected`)},void 0,!1,{fileName:L,lineNumber:330,columnNumber:13},this),(0,P.jsxDEV)(`ul`,{className:`space-y-1 text-text/80`,children:p.map((e,t)=>{let n=u[e.field],r=n?s(n.label):e.field,i=e.code===`pattern`&&e.params?.messageKey?s(String(e.params.messageKey)):s(`validation.${e.code}`,e.params);return(0,P.jsxDEV)(`li`,{className:`flex gap-1.5`,children:[r&&(0,P.jsxDEV)(`span`,{className:`text-muted font-medium`,children:[r,`:`]},void 0,!0,{fileName:L,lineNumber:341,columnNumber:31},this),i]},t,!0,{fileName:L,lineNumber:340,columnNumber:19},this)})},void 0,!1,{fileName:L,lineNumber:331,columnNumber:13},this)]},void 0,!0,{fileName:L,lineNumber:329,columnNumber:11},this)]},`${e.library}/${e.shelf}/${t?t.id:`new`}`,!0,{fileName:L,lineNumber:301,columnNumber:7},this)},void 0,!1,{fileName:L,lineNumber:293,columnNumber:5},this)}var U=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/app/record/NewRecordView.tsx`;function W(){let{t:e}=i(),{library:t,type:n}=o(),s=a(),c=p().flatMap(e=>e.shelves).find(e=>e.library===t&&e.shelf===n);return!c||c.standalone===!1?(0,P.jsxDEV)(`div`,{className:`p-6 text-muted`,children:e(`common.notFound`)},void 0,!1,{fileName:U,lineNumber:19,columnNumber:44},this):(0,P.jsxDEV)(`div`,{className:`flex flex-col`,children:[(0,P.jsxDEV)(v,{children:(0,P.jsxDEV)(r,{variant:`ghost`,size:`sm`,className:`px-2`,onClick:()=>s(`/${t}/${n}`),children:[(0,P.jsxDEV)(b,{size:18},void 0,!1,{fileName:U,lineNumber:25,columnNumber:11},this),(0,P.jsxDEV)(`span`,{className:`text-sm`,children:e(c.label)},void 0,!1,{fileName:U,lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:U,lineNumber:24,columnNumber:9},this)},void 0,!1,{fileName:U,lineNumber:23,columnNumber:7},this),(0,P.jsxDEV)(`div`,{className:`flex-1 min-w-0`,children:(0,P.jsxDEV)(`div`,{className:`max-w-2xl mx-auto px-6 py-6`,children:(0,P.jsxDEV)(h,{library:c.library,shelf:c.shelf,children:(0,P.jsxDEV)(H,{shelf:c,onSuccess:e=>{e?.id?s(`/${t}/${n}/${e.id}`):s(`/${t}/${n}`)},onCancel:()=>s(`/${t}/${n}`)},void 0,!1,{fileName:U,lineNumber:32,columnNumber:13},this)},void 0,!1,{fileName:U,lineNumber:31,columnNumber:11},this)},void 0,!1,{fileName:U,lineNumber:30,columnNumber:9},this)},void 0,!1,{fileName:U,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:U,lineNumber:22,columnNumber:5},this)}export{W as NewRecordView};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";import{C as n,S as r,i,r as a,t as o,w as s}from"./button-VZuZjj-j.js";import{n as c}from"./chunk-KS7C4IRE-dy2r3JTy.js";import{t as l}from"./jsx-dev-runtime-DeBf9dJw.js";import{a as u,n as d,o as f,r as p,t as m}from"./dist-DIdoc5C5.js";import{t as h}from"./jsx-runtime-DhzTdv_T.js";import{C as g,S as _,d as v,p as y,x as b}from"./api-V98HaFMa.js";import{n as x,r as S}from"./auth-context-BlvZgasO.js";import{t as C}from"./PageBody-QzKQtJfF.js";var w=e(t(),1),T=h(),E=Object.defineProperty,D=(e,t)=>E(e,`name`,{value:t,configurable:!0}),O=`Switch`,[k,A]=u(O),[j,M]=k(O);function N(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=m({prop:n,defaultProp:i??!1,onChange:c,caller:O}),[h,g]=w.useState(null),[_,v]=w.useState(null),y=w.useRef(!1),[b,x]=w.useReducer(e=>e+1,0),S={checked:f,setChecked:p,disabled:a,control:h,setControl:g,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:y,userInteractionCount:b,onUserInteraction:x,required:l,defaultChecked:i,isFormControl:!h||!!o||!!h.closest(`form`),bubbleInput:_,setBubbleInput:v};return(0,T.jsx)(j,{scope:t,...S,children:V(d)?d(S):r})}D(N,`SwitchProvider`);var P=`SwitchTrigger`,F=w.forwardRef(D(function({__scopeSwitch:e,onClick:t,...n},i){let{control:a,form:o,value:s,disabled:c,checked:l,required:u,setControl:d,setChecked:m,hasConsumerStoppedPropagationRef:h,onUserInteraction:g,isFormControl:_,bubbleInput:v}=M(P,e),y=r(i,d),b=w.useRef(l);return w.useEffect(()=>{let e=o?a?.ownerDocument.getElementById(o):a?.form;if(e instanceof HTMLFormElement){let t=D(()=>m(b.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,o,m]),(0,T.jsx)(p.button,{type:`button`,role:`switch`,"aria-checked":l,"aria-required":u,"data-state":H(l),"data-disabled":c?``:void 0,disabled:c,value:s,...n,ref:y,onClick:f(t,e=>{g(),m(e=>!e),v&&_&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})})},`SwitchTrigger`)),I=w.forwardRef(D(function(e,t){let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,T.jsx)(N,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(F,{...d,ref:t,__scopeSwitch:n}),e&&(0,T.jsx)(B,{__scopeSwitch:n})]})})},`Switch`)),L=`SwitchThumb`,R=w.forwardRef(D(function(e,t){let{__scopeSwitch:n,...r}=e,i=M(L,n);return(0,T.jsx)(p.span,{"data-state":H(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})},`SwitchThumb`)),z=`SwitchBubbleInput`,B=w.forwardRef(D(function({__scopeSwitch:e,onClick:t,...n},i){let{control:a,hasConsumerStoppedPropagationRef:o,userInteractionCount:s,checked:c,defaultChecked:l,required:u,disabled:m,name:h,value:g,form:_,bubbleInput:v,setBubbleInput:y}=M(z,e),b=r(i,y),x=d(a),S=w.useRef(!1),C=w.useRef(c),E=w.useRef(s);w.useEffect(()=>{let e=v;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=s!==E.current;E.current=s;let i=C.current!==c;C.current=c;let a=!(r&&o.current);if(i&&n){S.current=!r;let t=new Event(`click`,{bubbles:a});n.call(e,c),e.dispatchEvent(t),S.current=!1}},[v,c,o,s]);let D=w.useRef(c);return(0,T.jsx)(p.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??D.current,required:u,disabled:m,name:h,value:g,form:_,...n,tabIndex:-1,ref:b,onClick:f(t,e=>{S.current&&e.stopPropagation()}),style:{...n.style,...x,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`SwitchBubbleInput`));function V(e){return typeof e==`function`}D(V,`isFunction`);function H(e){return e?`checked`:`unchecked`}D(H,`getState`);var U=l(),W=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/switch.tsx`,G=w.forwardRef(({className:e,...t},r)=>(0,U.jsxDEV)(I,{ref:r,className:n(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,`disabled:cursor-not-allowed disabled:opacity-50`,`data-[state=checked]:bg-primary data-[state=unchecked]:bg-border`,e),...t,children:(0,U.jsxDEV)(R,{className:n(`pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform`,`data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)},void 0,!1,{fileName:W,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:W,lineNumber:9,columnNumber:3},void 0));G.displayName=I.displayName;var K=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/badge.tsx`,q=a(`inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground`,destructive:`border-transparent bg-destructive text-destructive-foreground`,outline:`border-border text-text`,accent:`border-accent/30 bg-accent/15 text-accent`}},defaultVariants:{variant:`default`}});function J({className:e,variant:t,...r}){return(0,U.jsxDEV)(`div`,{className:n(q({variant:t}),e),...r},void 0,!1,{fileName:K,lineNumber:24,columnNumber:10},this)}var Y=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/app/SettingsPage.tsx`;function X(){let{t:e}=s(),{role:t}=x(),n=t===`admin`,[r,a]=(0,w.useState)([]),[l,u]=(0,w.useState)(!0),[d,f]=(0,w.useState)(null),p=e=>d===e||d===`*`,[m,h]=(0,w.useState)(null),T=r.filter(e=>e.latestVersion&&e.latestVersion!==e.installedVersion),E=!!(m?.latestVersion&&m.latestVersion!==m.installedVersion),D=T.length+ +!!E,[O,k]=(0,w.useState)(null),[A,j]=(0,w.useState)(!1),M=t=>e(`${t}.plugin.label`,{defaultValue:t}),N=t=>e(`${t}.plugin.description`,{defaultValue:``}),P=t=>e(`${t}.library.label`,{defaultValue:t}),F=(t,n)=>e(`${t}.${n}.label`,{defaultValue:n}),I={core_required:()=>e(`plugins.errors.core_required`),has_dependents:t=>e(`plugins.errors.has_dependents`,{list:t.dependents.join(`, `)}),missing_deps:t=>e(`plugins.errors.missing_deps`,{list:t.deps.join(`, `)}),unknown_plugin:()=>e(`plugins.errors.unknown_plugin`)},L=()=>Promise.all([y(),v()]).then(([e,t])=>{a(e),h(t),u(!1)});(0,w.useEffect)(()=>{L()},[]);async function R(t){if(!window.confirm(e(`plugins.confirmPurge`,{id:t.id})))return;f(t.id),k(null);let n=await fetch(`/api/plugins/${t.id}/data`,{method:`DELETE`}),r=await n.json().catch(()=>({}));if(f(null),!n.ok){k(I[r.error]?.(r)??e(`plugins.genericError`,{code:r.error??n.status}));return}j(!0),await L()}async function z(t){f(t.id),k(null);let n=await b(t.id,!t.enabled);if(!n.ok){f(null),k(I[n.error]?.(n.data??{})??e(`plugins.genericError`,{code:n.error}));return}window.location.reload()}async function B(){let e=Date.now();for(;Date.now()-e<3e4;){await new Promise(e=>setTimeout(e,1e3));try{if((await fetch(`/health`)).ok)return!0}catch{}}return!1}async function V(t){if(!t.latestVersion||!window.confirm(e(`plugins.confirmUpdate`,{id:t.id,from:t.installedVersion,to:t.latestVersion})))return;f(t.id),k(null);let n=await g(t.id);if(!n.ok){f(null),k(n.stderr?`${e(`plugins.updateError`)}: ${n.stderr}`:e(`plugins.genericError`,{code:n.error}));return}j(!0),await B()&&window.location.reload()}async function H(){if(D===0)return;let t=T.map(e=>`${M(e.id)}: v${e.installedVersion} → v${e.latestVersion}`);E&&t.push(`${e(`plugins.runtimeLabel`)}: v${m.installedVersion} → v${m.latestVersion}`);let n=t.join(`
|
|
2
|
-
`);if(!window.confirm(e(`plugins.confirmUpdateAll`,{count:D,list:n})))return;f(`*`),k(null);let r=await _();if(!r.ok){f(null),k(r.stderr?`${e(`plugins.updateError`)}: ${r.stderr}`:e(`plugins.genericError`,{code:r.error}));return}j(!0),await B()&&window.location.reload()}let W=r.find(e=>e.id===`core`);return(0,U.jsxDEV)(C,{children:[(0,U.jsxDEV)(`h1`,{className:`mb-6 text-[28px] font-bold text-text`,children:e(`settings.title`)},void 0,!1,{fileName:Y,lineNumber:154,columnNumber:7},this),(0,U.jsxDEV)(`section`,{className:`mb-6`,children:[(0,U.jsxDEV)(`h2`,{className:`mb-1 text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`settings.personalTitle`)},void 0,!1,{fileName:Y,lineNumber:158,columnNumber:9},this),(0,U.jsxDEV)(S,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,U.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:(0,U.jsxDEV)(`span`,{className:`font-semibold text-text`,children:e(`auth.accountTitle`)},void 0,!1,{fileName:Y,lineNumber:161,columnNumber:13},this)},void 0,!1,{fileName:Y,lineNumber:160,columnNumber:11},this),(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,U.jsxDEV)(c,{to:`/settings/account`,title:e(`auth.accountTitle`),"aria-label":e(`auth.accountTitle`),children:(0,U.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:Y,lineNumber:165,columnNumber:15},this)},void 0,!1,{fileName:Y,lineNumber:164,columnNumber:13},this)},void 0,!1,{fileName:Y,lineNumber:163,columnNumber:11},this)]},void 0,!0,{fileName:Y,lineNumber:159,columnNumber:9},this)]},void 0,!0,{fileName:Y,lineNumber:157,columnNumber:7},this),n&&(0,U.jsxDEV)(U.Fragment,{children:[(0,U.jsxDEV)(`section`,{className:`mb-6`,children:[(0,U.jsxDEV)(`h2`,{className:`mb-1 text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`settings.systemTitle`)},void 0,!1,{fileName:Y,lineNumber:175,columnNumber:13},this),(0,U.jsxDEV)(`p`,{className:`mb-3 text-sm text-muted`,children:e(`settings.systemDescription`)},void 0,!1,{fileName:Y,lineNumber:176,columnNumber:13},this),(0,U.jsxDEV)(S,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,U.jsxDEV)(`div`,{className:`min-w-0 flex-1 flex items-center gap-2`,children:[(0,U.jsxDEV)(`span`,{className:`font-semibold text-text`,children:e(`core.settings.label`)},void 0,!1,{fileName:Y,lineNumber:179,columnNumber:17},this),W&&(0,U.jsxDEV)(Z,{plugin:W,busy:p(`core`),onUpdate:()=>V(W)},void 0,!1,{fileName:Y,lineNumber:180,columnNumber:26},this)]},void 0,!0,{fileName:Y,lineNumber:178,columnNumber:15},this),(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,U.jsxDEV)(c,{to:`/settings/core`,title:e(`core.settings.label`),"aria-label":e(`core.settings.label`),children:(0,U.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:Y,lineNumber:184,columnNumber:19},this)},void 0,!1,{fileName:Y,lineNumber:183,columnNumber:17},this)},void 0,!1,{fileName:Y,lineNumber:182,columnNumber:15},this)]},void 0,!0,{fileName:Y,lineNumber:177,columnNumber:13},this)]},void 0,!0,{fileName:Y,lineNumber:174,columnNumber:11},this),(0,U.jsxDEV)(`section`,{className:`mb-6`,children:[(0,U.jsxDEV)(`h2`,{className:`mb-1 text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`settings.usersTitle`)},void 0,!1,{fileName:Y,lineNumber:192,columnNumber:13},this),(0,U.jsxDEV)(`p`,{className:`mb-3 text-sm text-muted`,children:e(`settings.usersDescription`)},void 0,!1,{fileName:Y,lineNumber:193,columnNumber:13},this),(0,U.jsxDEV)(S,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,U.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:(0,U.jsxDEV)(`span`,{className:`font-semibold text-text`,children:e(`settings.usersTitle`)},void 0,!1,{fileName:Y,lineNumber:196,columnNumber:17},this)},void 0,!1,{fileName:Y,lineNumber:195,columnNumber:15},this),(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,U.jsxDEV)(c,{to:`/settings/users`,title:e(`settings.usersTitle`),"aria-label":e(`settings.usersTitle`),children:(0,U.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:Y,lineNumber:200,columnNumber:19},this)},void 0,!1,{fileName:Y,lineNumber:199,columnNumber:17},this)},void 0,!1,{fileName:Y,lineNumber:198,columnNumber:15},this)]},void 0,!0,{fileName:Y,lineNumber:194,columnNumber:13},this)]},void 0,!0,{fileName:Y,lineNumber:191,columnNumber:11},this),(0,U.jsxDEV)(`section`,{children:[(0,U.jsxDEV)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,U.jsxDEV)(`h2`,{className:`text-sm font-semibold uppercase tracking-wide text-muted`,children:e(`plugins.title`)},void 0,!1,{fileName:Y,lineNumber:209,columnNumber:15},this),D>0&&(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,disabled:d!==null,onClick:H,className:`shrink-0 border border-accent/40 text-accent hover:bg-accent/10 hover:text-accent`,children:e(`plugins.updateAllButton`,{count:D})},void 0,!1,{fileName:Y,lineNumber:211,columnNumber:17},this)]},void 0,!0,{fileName:Y,lineNumber:208,columnNumber:13},this),(0,U.jsxDEV)(`p`,{className:`mb-3 text-sm text-muted`,children:e(`plugins.description`)},void 0,!1,{fileName:Y,lineNumber:223,columnNumber:13},this),l?(0,U.jsxDEV)(`p`,{className:`text-muted`,children:e(`plugins.loading`)},void 0,!1,{fileName:Y,lineNumber:226,columnNumber:15},this):(0,U.jsxDEV)(U.Fragment,{children:[A&&(0,U.jsxDEV)(`div`,{className:`mb-5 rounded-xl border border-accent/40 bg-accent/10 px-4 py-3 text-sm text-accent`,children:[e(`plugins.restartBannerBefore`),(0,U.jsxDEV)(`b`,{children:e(`plugins.restartBannerBold`)},void 0,!1,{fileName:Y,lineNumber:232,columnNumber:21},this),e(`plugins.restartBannerAfter`)]},void 0,!0,{fileName:Y,lineNumber:230,columnNumber:19},this),O&&(0,U.jsxDEV)(`div`,{className:`mb-5 rounded-xl border border-danger/40 bg-danger/10 px-4 py-3 text-sm text-danger`,children:O},void 0,!1,{fileName:Y,lineNumber:237,columnNumber:19},this),(0,U.jsxDEV)(`div`,{className:`flex flex-col gap-2`,children:r.filter(e=>e.id!==`core`).map(t=>{let n=N(t.id),a=t.enabled?r.filter(e=>e.enabled&&e.id!==t.id&&e.dependsOn.includes(t.id)):[],s=a.length>0,l=s?e(`plugins.blockedByDependents`,{list:a.map(e=>M(e.id)).join(`, `)}):t.enabled?e(`plugins.switchDisable`):e(`plugins.switchEnable`),u=[t.dependsOn.length>0&&`${e(`plugins.metaDepends`)} ${t.dependsOn.map(M).join(`, `)}`,t.libraries.length>0&&`${e(`plugins.metaLibraries`)} ${t.libraries.map(P).join(`, `)}`,t.extends.length>0&&`${e(`plugins.metaExtends`)} ${t.extends.map(e=>F(t.id,e)).join(`, `)}`].filter(Boolean).join(` · `)||`—`;return(0,U.jsxDEV)(S,{className:`flex items-center gap-4 px-4 py-3`,children:[(0,U.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,U.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsxDEV)(`span`,{className:`font-semibold text-text`,children:M(t.id)},void 0,!1,{fileName:Y,lineNumber:274,columnNumber:31},this),(0,U.jsxDEV)(Z,{plugin:t,busy:p(t.id),onUpdate:()=>V(t)},void 0,!1,{fileName:Y,lineNumber:275,columnNumber:31},this)]},void 0,!0,{fileName:Y,lineNumber:273,columnNumber:29},this),n&&(0,U.jsxDEV)(`div`,{className:`text-xs text-muted mt-0.5 truncate`,children:n},void 0,!1,{fileName:Y,lineNumber:277,columnNumber:45},this),(0,U.jsxDEV)(`div`,{className:`text-xs text-muted mt-0.5 truncate`,children:u},void 0,!1,{fileName:Y,lineNumber:278,columnNumber:29},this)]},void 0,!0,{fileName:Y,lineNumber:272,columnNumber:27},this),t.hasSettings&&(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,className:`shrink-0 border border-border`,asChild:!0,children:(0,U.jsxDEV)(c,{to:`/settings/${t.id}`,title:e(`plugins.settingsTitle`,{defaultValue:`Налаштування`}),"aria-label":e(`plugins.settingsTitle`,{defaultValue:`Налаштування`}),children:(0,U.jsxDEV)(i,{name:`lucide:settings`,size:16},void 0,!1,{fileName:Y,lineNumber:293,columnNumber:33},this)},void 0,!1,{fileName:Y,lineNumber:288,columnNumber:31},this)},void 0,!1,{fileName:Y,lineNumber:281,columnNumber:29},this),(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,disabled:p(t.id),onClick:()=>R(t),title:e(`plugins.purgeTitle`),className:`shrink-0 border border-danger/40 text-danger hover:bg-danger/10 hover:text-danger`,children:e(`plugins.purgeButton`)},void 0,!1,{fileName:Y,lineNumber:297,columnNumber:27},this),(0,U.jsxDEV)(`span`,{title:l,className:`shrink-0`,children:(0,U.jsxDEV)(G,{checked:t.enabled,disabled:p(t.id)||s,onCheckedChange:()=>z(t),title:l},void 0,!1,{fileName:Y,lineNumber:311,columnNumber:29},this)},void 0,!1,{fileName:Y,lineNumber:310,columnNumber:27},this)]},t.id,!0,{fileName:Y,lineNumber:271,columnNumber:25},this)})},void 0,!1,{fileName:Y,lineNumber:242,columnNumber:17},this)]},void 0,!0,{fileName:Y,lineNumber:228,columnNumber:15},this)]},void 0,!0,{fileName:Y,lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:Y,lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:Y,lineNumber:153,columnNumber:5},this)}function Z({plugin:e,busy:t,onUpdate:n}){let{t:r}=s(),i=!!e.latestVersion&&e.latestVersion!==e.installedVersion;return(0,U.jsxDEV)(U.Fragment,{children:[(0,U.jsxDEV)(J,{variant:`secondary`,className:`text-[10px] font-medium`,children:[`v`,e.installedVersion]},void 0,!0,{fileName:Y,lineNumber:344,columnNumber:7},this),i&&(0,U.jsxDEV)(o,{variant:`ghost`,size:`sm`,type:`button`,disabled:t,onClick:n,title:r(`plugins.updateTitle`,{from:e.installedVersion,to:e.latestVersion}),className:`shrink-0 border border-accent/40 text-accent hover:bg-accent/10 hover:text-accent`,children:r(`plugins.updateButton`)},void 0,!1,{fileName:Y,lineNumber:348,columnNumber:9},this)]},void 0,!0,{fileName:Y,lineNumber:343,columnNumber:5},this)}export{X as SettingsPage};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./rolldown-runtime-QTnfLwEv.js";import{t as r}from"./react-BKp0oIqV.js";import{w as i,y as a}from"./button-VZuZjj-j.js";import{t as o}from"./jsx-dev-runtime-DeBf9dJw.js";import{C as s,a as c,d as l,i as u,m as d,n as f,o as p,v as m,y as h}from"./field-frame-CESVVP3h.js";import{T as g,d as _,f as v,g as y,h as b,l as x,n as S,o as C,p as w,s as T}from"./fields-B4fdbc1_.js";import{a as E,h as D}from"./shelf-e7xL1R3N.js";import{n as O}from"./extend-DDZLGxKJ.js";import{t as k}from"./plugin-q1oOYqt7.js";var ee=a(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),A=t(r(),1);function j(e,t={}){let n=t.disabled??new Set,r=e.filter(e=>!n.has(e.id)),i=new Map;for(let e of r){for(let t of e.libraries??[])for(let n of t.shelves)i.set(`${n.library}/${n.shelf}`,e.id);for(let t of e.libraryShelves??[])i.set(`${t.library}/${t.shelf}`,e.id)}let a=(e,t)=>i.get(`${e}/${t}`);for(let e of r)for(let t of e.dependsOn)if(n.has(t))throw Error(`[plugin] '${e.id}' is enabled, but its dependency '${t}' is disabled`);let{order:o,libraries:s,shelves:c,extends_:l}=k(r),u=new Map;for(let e of r)for(let t of e.fieldContribs??[]){let e=`${t.library}/${t.shelf}/${t.field}`,n=u.get(e)??{options:[],suggestions:[]};t.options&&n.options.push(...t.options),t.suggestions&&n.suggestions.push(...t.suggestions),u.set(e,n)}let d=new Map;for(let e of r)for(let t of e.optionLists??[])d.set(t.name,t.options);let f=e=>d.get(e)??[];for(let e of c)for(let[t,n]of E(e.fields)){let r=u.get(`${e.library}/${e.shelf}/${t}`);if(r){if(r.options.length){let e=new Set((n.options??[]).map(e=>e.value));n.options=[...n.options??[],...r.options.filter(t=>!e.has(t.value))]}if(r.suggestions.length){let e=n.hints.suggestions??[],t=new Set(e);n.hints.suggestions=[...e,...r.suggestions.filter(e=>!t.has(e))]}}}let p=new Map;for(let e of c)for(let[t,n]of E(e.fields)){let r=n.hints.source,i=n.options??[],a=r?d.get(r)??[]:[],o=new Set(i.map(e=>e.value)),s=[...i,...a.filter(e=>!o.has(e.value))];n.prim===`select`&&s.length&&S(n,s.map(e=>e.value)),s.length&&(n.options=s,p.set(`${e.library}/${e.shelf}/${t}`,s))}return{order:o,libraries:s,shelves:c,extends_:l,getShelf:(e,t)=>c.find(n=>n.library===e&&n.shelf===t),getLibrary:e=>s.find(t=>t.meta.id===e),getExtendsFor:(e,t)=>l.filter(n=>O(n,e,t)),getFieldOptions:(e,t,n)=>p.get(`${e}/${t}/${n}`)??[],getOptionList:f,getShelfOwner:a}}var M=null;function te(e){M=j(e)}function N(){if(!M)throw Error(`[registry] not initialized — call initRegistry() in the boot loader`);return M}var P=(e,t)=>N().getShelf(e,t),ne=(e,t)=>N().getExtendsFor(e,t),re=e=>N().getOptionList(e),ie=(e,t)=>N().getShelfOwner(e,t),ae=()=>N().libraries,oe=()=>N().extends_,se=()=>N().order,F=o(),ce=(0,A.createContext)(()=>void 0),le=()=>(0,A.useContext)(ce),ue=e=>e.join(`.`);function de(e){return(t,n)=>t===`pattern`&&n?.messageKey?e(String(n.messageKey)):e(`validation.${t}`,n)}function fe(e,t){let n={};for(let r of e){let e=ue(r.path?.length?r.path:[r.field]);n[e]||(n[e]=t(r.code,r.params))}return n}function pe(e,t){let n={};for(let[r,i]of Object.entries(e))r===t||r.startsWith(t+`.`)||(n[r]=i);return n}var me=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/render/computed-ctx.tsx`,he={settings:{},global:{}},ge=(0,A.createContext)(he),_e=()=>(0,A.useContext)(ge);function ve(e,t){return{record:e.values??{},settings:t.settings,global:t.global,meta:{library:e.recordCtx.library,shelf:e.recordCtx.shelf}}}async function ye(e){let t=await fetch(`/api/plugins/${e}/settings`);return t.ok?await t.json():{}}function be({library:e,shelf:t,children:n}){let[r,i]=(0,A.useState)(he),a=ie(e,t);return(0,A.useEffect)(()=>{let e=!0;return Promise.all([a?ye(a):Promise.resolve({}),ye(`core`)]).then(([t,n])=>{e&&i({settings:t,global:n})}),()=>{e=!1}},[a]),(0,F.jsxDEV)(ge.Provider,{value:r,children:n},void 0,!1,{fileName:me,lineNumber:57,columnNumber:10},this)}var xe=document.createElement(`i`);function Se(e){let t=`&`+e+`;`;xe.innerHTML=t;let n=xe.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var Ce=class extends Error{name=`Assertion`;code=`ERR_ASSERTION`;constructor(e,t,n,r,i){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=t,this.expected=n,this.generated=i,this.operator=r}};function I(e,t){we(!!e,!1,!0,`ok`,`Expected value to be truthy`,t)}function we(e,t,n,r,i,a){if(!e)throw a instanceof Error?a:new Ce(a||i,t,n,r,!a)}var L={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},R={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},z={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},B={ht:` `,lf:`
|
|
2
|
-
`,cr:`\r`,space:` `,exclamationMark:`!`,quotationMark:`"`,numberSign:`#`,dollarSign:`$`,percentSign:`%`,ampersand:`&`,apostrophe:`'`,leftParenthesis:`(`,rightParenthesis:`)`,asterisk:`*`,plusSign:`+`,comma:`,`,dash:`-`,dot:`.`,slash:`/`,digit0:`0`,digit1:`1`,digit2:`2`,digit3:`3`,digit4:`4`,digit5:`5`,digit6:`6`,digit7:`7`,digit8:`8`,digit9:`9`,colon:`:`,semicolon:`;`,lessThan:`<`,equalsTo:`=`,greaterThan:`>`,questionMark:`?`,atSign:`@`,uppercaseA:`A`,uppercaseB:`B`,uppercaseC:`C`,uppercaseD:`D`,uppercaseE:`E`,uppercaseF:`F`,uppercaseG:`G`,uppercaseH:`H`,uppercaseI:`I`,uppercaseJ:`J`,uppercaseK:`K`,uppercaseL:`L`,uppercaseM:`M`,uppercaseN:`N`,uppercaseO:`O`,uppercaseP:`P`,uppercaseQ:`Q`,uppercaseR:`R`,uppercaseS:`S`,uppercaseT:`T`,uppercaseU:`U`,uppercaseV:`V`,uppercaseW:`W`,uppercaseX:`X`,uppercaseY:`Y`,uppercaseZ:`Z`,leftSquareBracket:`[`,backslash:`\\`,rightSquareBracket:`]`,caret:`^`,underscore:`_`,graveAccent:"`",lowercaseA:`a`,lowercaseB:`b`,lowercaseC:`c`,lowercaseD:`d`,lowercaseE:`e`,lowercaseF:`f`,lowercaseG:`g`,lowercaseH:`h`,lowercaseI:`i`,lowercaseJ:`j`,lowercaseK:`k`,lowercaseL:`l`,lowercaseM:`m`,lowercaseN:`n`,lowercaseO:`o`,lowercaseP:`p`,lowercaseQ:`q`,lowercaseR:`r`,lowercaseS:`s`,lowercaseT:`t`,lowercaseU:`u`,lowercaseV:`v`,lowercaseW:`w`,lowercaseX:`x`,lowercaseY:`y`,lowercaseZ:`z`,leftCurlyBrace:`{`,verticalBar:`|`,rightCurlyBrace:`}`,tilde:`~`,replacementCharacter:`�`};function V(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<R.v8MaxSafeChunkSize)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+R.v8MaxSafeChunkSize),o.unshift(t,0),e.splice(...o),a+=R.v8MaxSafeChunkSize,t+=R.v8MaxSafeChunkSize}function H(e,t){return e.length>0?(V(e,e.length,0,t),e):t}var Te={}.hasOwnProperty;function Ee(e){let t={},n=-1;for(;++n<e.length;)De(t,e[n]);return t}function De(e,t){let n;for(n in t){let r=(Te.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Te.call(r,a)||(r[a]=[]);let e=i[a];Oe(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Oe(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);V(e,0,0,r)}function ke(e){let t={},n=-1;for(;++n<e.length;)Ae(t,e[n]);return t}function Ae(e,t){let n;for(n in t){let r=(Te.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i)r[a]=i[a]}}function je(e,t){let n=Number.parseInt(e,t);return n<L.ht||n===L.vt||n>L.cr&&n<L.space||n>L.tilde&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?B.replacementCharacter:String.fromCodePoint(n)}var Me={'"':`quot`,"&":`amp`,"<":`lt`,">":`gt`};function Ne(e){return e.replace(/["&<>]/g,t);function t(e){return`&`+Me[e]+`;`}}function U(e){return e.replace(/[\t\n\r ]+/g,B.space).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var W=Ve(/[A-Za-z]/),G=Ve(/[\dA-Za-z]/),Pe=Ve(/[#-'*+\--9=?A-Z^-~]/);function Fe(e){return e!==null&&(e<L.space||e===L.del)}var Ie=Ve(/\d/),Le=Ve(/[\dA-Fa-f]/),Re=Ve(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<L.horizontalTab}function q(e){return e!==null&&(e<L.nul||e===L.space)}function J(e){return e===L.horizontalTab||e===L.virtualSpace||e===L.space}var ze=Ve(/\p{P}|\p{S}/u),Be=Ve(/\s/);function Ve(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function He(e,t){let n=Ne(Ue(e||``));if(!t)return n;let r=n.indexOf(`:`),i=n.indexOf(`?`),a=n.indexOf(`#`),o=n.indexOf(`/`);return r<0||o>-1&&r>o||i>-1&&r>i||a>-1&&r>a||t.test(n.slice(0,r))?n:``}function Ue(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===L.percentSign&&G(e.charCodeAt(n+1))&&G(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=B.replacementCharacter}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}var We={}.hasOwnProperty,Ge=/^(https?|ircs?|mailto|xmpp)$/i,Ke=/^https?$/i;function qe(e){let t=e||{},n=!0,r={},i=[[]],a=[],o=[],s=ke([{enter:{blockQuote:ee,codeFenced:te,codeFencedFenceInfo:h,codeFencedFenceMeta:h,codeIndented:ne,codeText:Fe,content:ye,definition:pe,definitionDestinationString:he,definitionLabelString:h,definitionTitleString:h,emphasis:G,htmlFlow:Ae,htmlText:W,image:ie,label:h,link:ae,listItemMarker:E,listItemValue:T,listOrdered:C,listUnordered:w,paragraph:j,reference:h,resource:ce,resourceDestinationString:le,resourceTitleString:h,setextHeading:xe,strong:Pe},exit:{atxHeading:we,atxHeadingSequence:be,autolinkEmail:Be,autolinkProtocol:ze,blockQuote:A,characterEscapeValue:Te,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:J,codeFenced:re,codeFencedFence:P,codeFencedFenceInfo:N,codeFencedFenceMeta:S,codeFlowValue:De,codeIndented:re,codeText:Ie,codeTextData:Te,data:Te,definition:ve,definitionDestinationString:ge,definitionLabelString:me,definitionTitleString:_e,emphasis:Le,hardBreakEscape:Oe,hardBreakTrailing:Oe,htmlFlow:Me,htmlFlowData:Te,htmlText:Me,htmlTextData:Te,image:fe,label:se,labelText:oe,lineEnding:Ee,link:fe,listOrdered:D,listUnordered:O,paragraph:M,reference:S,referenceString:F,resource:S,resourceDestinationString:ue,resourceTitleString:de,setextHeading:V,setextHeadingLineSequence:B,setextHeadingText:Ce,strong:Re,thematicBreak:K}},...t.htmlExtensions||[]]),c={definitions:r,tightStack:o},l={buffer:h,encode:x,getData:m,lineEndingIfNeeded:b,options:t,raw:v,resume:g,setData:p,tag:_},u=t.defaultLineEnding;return d;function d(e){let t=-1,n=0,r=[],a=[],o=[];for(;++t<e.length;)!u&&(e[t][1].type===z.lineEnding||e[t][1].type===z.lineEndingBlank)&&(u=e[t][2].sliceSerialize(e[t][1])),(e[t][1].type===z.listOrdered||e[t][1].type===z.listUnordered)&&(e[t][0]===`enter`?r.push(t):f(e.slice(r.pop(),t))),e[t][1].type===z.definition&&(e[t][0]===`enter`?(o=H(o,e.slice(n,t)),n=t):(a=H(a,e.slice(n,t+1)),n=t+1));a=H(a,o),a=H(a,e.slice(n)),t=-1;let c=a;for(s.enter.null&&s.enter.null.call(l);++t<e.length;){let e=s[c[t][0]],n=c[t][1].type,r=e[n];We.call(e,n)&&r&&r.call({sliceSerialize:c[t][2].sliceSerialize,...l},c[t][1])}return s.exit.null&&s.exit.null.call(l),i[0].join(``)}function f(e){let t=e.length,n=0,r=0,i=!1,a;for(;++n<t;){let t=e[n];if(t[1]._container)a=void 0,t[0]===`enter`?r++:r--;else switch(t[1].type){case z.listItemPrefix:t[0]===`exit`&&(a=!0);break;case z.linePrefix:break;case z.lineEndingBlank:t[0]===`enter`&&!r&&(a?a=void 0:i=!0);break;default:a=void 0}}e[0][1]._loose=i}function p(e,t){c[e]=t}function m(e){return c[e]}function h(){i.push([])}function g(){let e=i.pop();return I(e!==void 0,`Cannot resume w/o buffer`),e.join(``)}function _(e){n&&(p(`lastWasTag`,!0),i[i.length-1].push(e))}function v(e){p(`lastWasTag`),i[i.length-1].push(e)}function y(){v(u||`
|
|
3
|
-
`)}function b(){let e=i[i.length-1],t=e[e.length-1],n=t?t.charCodeAt(t.length-1):L.eof;n===L.lf||n===L.cr||n===L.eof||y()}function x(e){return m(`ignoreEncode`)?e:Ne(e)}function S(){g()}function C(e){o.push(!e._loose),b(),_(`<ol`),p(`expectFirstItem`,!0)}function w(e){o.push(!e._loose),b(),_(`<ul`),p(`expectFirstItem`,!0)}function T(e){if(m(`expectFirstItem`)){let t=Number.parseInt(this.sliceSerialize(e),R.numericBaseDecimal);t!==1&&_(` start="`+x(String(t))+`"`)}}function E(){m(`expectFirstItem`)?_(`>`):k(),b(),_(`<li>`),p(`expectFirstItem`),p(`lastWasTag`)}function D(){k(),o.pop(),y(),_(`</ol>`)}function O(){k(),o.pop(),y(),_(`</ul>`)}function k(){m(`lastWasTag`)&&!m(`slurpAllLineEndings`)&&b(),_(`</li>`),p(`slurpAllLineEndings`)}function ee(){o.push(!1),b(),_(`<blockquote>`)}function A(){o.pop(),b(),_(`</blockquote>`),p(`slurpAllLineEndings`)}function j(){o[o.length-1]||(b(),_(`<p>`)),p(`slurpAllLineEndings`)}function M(){o[o.length-1]?p(`slurpAllLineEndings`,!0):_(`</p>`)}function te(){b(),_(`<pre><code`),p(`fencesCount`,0)}function N(){_(` class="language-`+g()+`"`)}function P(){let e=m(`fencesCount`)||0;e||(_(`>`),p(`slurpOneLineEnding`,!0)),p(`fencesCount`,e+1)}function ne(){b(),_(`<pre><code>`)}function re(){let e=m(`fencesCount`);e!==void 0&&e<2&&c.tightStack.length>0&&!m(`lastWasTag`)&&y(),m(`flowCodeSeenData`)&&b(),_(`</code></pre>`),e!==void 0&&e<2&&b(),p(`flowCodeSeenData`),p(`fencesCount`),p(`slurpOneLineEnding`)}function ie(){a.push({image:!0}),n=void 0}function ae(){a.push({})}function oe(e){a[a.length-1].labelId=this.sliceSerialize(e)}function se(){a[a.length-1].label=g()}function F(e){a[a.length-1].referenceId=this.sliceSerialize(e)}function ce(){h(),a[a.length-1].destination=``}function le(){h(),p(`ignoreEncode`,!0)}function ue(){a[a.length-1].destination=g(),p(`ignoreEncode`)}function de(){a[a.length-1].title=g()}function fe(){let e=a.length-1,i=a[e],o=i.referenceId||i.labelId;I(o!==void 0,"media should have `referenceId` or `labelId`"),I(i.label!==void 0,"media should have `label`");let s=i.destination===void 0?r[U(o)]:i;for(n=!0;e--;)if(a[e].image){n=void 0;break}i.image?(_(`<img src="`+He(s.destination,t.allowDangerousProtocol?void 0:Ke)+`" alt="`),v(i.label),_(`"`)):_(`<a href="`+He(s.destination,t.allowDangerousProtocol?void 0:Ge)+`"`),_(s.title?` title="`+s.title+`"`:``),i.image?_(` />`):(_(`>`),v(i.label),_(`</a>`)),a.pop()}function pe(){h(),a.push({})}function me(e){g(),a[a.length-1].labelId=this.sliceSerialize(e)}function he(){h(),p(`ignoreEncode`,!0)}function ge(){a[a.length-1].destination=g(),p(`ignoreEncode`)}function _e(){a[a.length-1].title=g()}function ve(){let e=a[a.length-1];I(e.labelId!==void 0,"media should have `labelId`");let t=U(e.labelId);g(),We.call(r,t)||(r[t]=a[a.length-1]),a.pop()}function ye(){p(`slurpAllLineEndings`,!0)}function be(e){m(`headingRank`)||(p(`headingRank`,this.sliceSerialize(e).length),b(),_(`<h`+m(`headingRank`)+`>`))}function xe(){h(),p(`slurpAllLineEndings`)}function Ce(){p(`slurpAllLineEndings`,!0)}function we(){_(`</h`+m(`headingRank`)+`>`),p(`headingRank`)}function B(e){p(`headingRank`,this.sliceSerialize(e).charCodeAt(0)===L.equalsTo?1:2)}function V(){let e=g();b(),_(`<h`+m(`headingRank`)+`>`),v(e),_(`</h`+m(`headingRank`)+`>`),p(`slurpAllLineEndings`),p(`headingRank`)}function Te(e){v(x(this.sliceSerialize(e)))}function Ee(e){if(!m(`slurpAllLineEndings`)){if(m(`slurpOneLineEnding`)){p(`slurpOneLineEnding`);return}if(m(`inCodeText`)){v(` `);return}v(x(this.sliceSerialize(e)))}}function De(e){v(x(this.sliceSerialize(e))),p(`flowCodeSeenData`,!0)}function Oe(){_(`<br />`)}function Ae(){b(),W()}function Me(){p(`ignoreEncode`)}function W(){t.allowDangerousHtml&&p(`ignoreEncode`,!0)}function G(){_(`<em>`)}function Pe(){_(`<strong>`)}function Fe(){p(`inCodeText`,!0),_(`<code>`)}function Ie(){p(`inCodeText`),_(`</code>`)}function Le(){_(`</em>`)}function Re(){_(`</strong>`)}function K(){b(),_(`<hr />`)}function q(e){p(`characterReferenceType`,e.type)}function J(e){let t=this.sliceSerialize(e);v(x(m(`characterReferenceType`)?je(t,m(`characterReferenceType`)===z.characterReferenceMarkerNumeric?R.numericBaseDecimal:R.numericBaseHexadecimal):Se(t))),p(`characterReferenceType`)}function ze(e){let n=this.sliceSerialize(e);_(`<a href="`+He(n,t.allowDangerousProtocol?void 0:Ge)+`">`),v(x(n)),_(`</a>`)}function Be(e){let t=this.sliceSerialize(e);_(`<a href="`+He(`mailto:`+t)+`">`),v(x(t)),_(`</a>`)}}function Y(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return J(r)?(e.enter(n),s(r)):t(r)}function s(r){return J(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Je={tokenize:Ye};function Ye(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(I(n===L.eof||K(n),`expected eol or eof`),n===L.eof){e.consume(n);return}return e.enter(z.lineEnding),e.consume(n),e.exit(z.lineEnding),Y(e,t,z.linePrefix)}function i(t){return I(t!==L.eof&&!K(t),`expected anything other than a line ending or EOF`),e.enter(z.paragraph),a(t)}function a(t){let r=e.enter(z.chunkText,{contentType:R.contentTypeText,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===L.eof){e.exit(z.chunkText),e.exit(z.paragraph),e.consume(t);return}return K(t)?(e.consume(t),e.exit(z.chunkText),a):(e.consume(t),o)}}var Xe={tokenize:Qe},Ze={tokenize:$e};function Qe(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],I(a[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(I(t.containerState,"expected `containerState` to be defined after continuation"),r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===z.chunkFlow){o=t.events[a][1].end;break}I(o,`could not find previous flow chunk`),_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return V(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ze,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Ze,p,m)(n)}function p(e){return I(t.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),I(t.containerState,"expected `containerState` to be defined on tokenizer"),r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===L.eof){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(z.chunkFlow,{_tokenizer:i,contentType:R.contentTypeFlow,previous:a}),h(n)}function h(n){if(n===L.eof){g(e.exit(z.chunkFlow),!0),_(0),e.consume(n);return}return K(n)?(e.consume(n),g(e.exit(z.chunkFlow)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){I(i,"expected `childFlow` to be defined when continuing");let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===z.chunkFlow){if(s){c=t.events[a][1].end;break}s=!0}for(I(c,`could not find previous flow chunk`),_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;V(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],I(r[0].exit,"expected `exit` to be defined on container construct"),r[0].exit.call(t,e)}n.length=r}function v(){I(t.containerState,"expected `containerState` to be defined when closing flow"),I(i,"expected `childFlow` to be defined when closing it"),i.write([L.eof]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $e(e,t,n){return I(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),Y(e,e.attempt(this.parser.constructs.document,t,n),z.linePrefix,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize)}function et(e){if(e===L.eof||q(e)||Be(e))return R.characterGroupWhitespace;if(ze(e))return R.characterGroupPunctuation}function tt(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var nt={name:`attention`,resolveAll:rt,tokenize:it};function rt(e,t){let n=-1,r,i,a,o,s,c,l,u;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;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};at(d,-c),at(f,c),o={type:c>1?z.strongSequence:z.emphasisSequence,start:d,end:{...e[r][1].end}},s={type:c>1?z.strongSequence:z.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?z.strongText:z.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?z.strong:z.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=H(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=H(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),I(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),l=H(l,tt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=H(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=H(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,V(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function it(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=et(r),a;return o;function o(t){return I(t===L.asterisk||t===L.underscore,`expected asterisk or underscore`),a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=et(o);I(n,"expected `attentionMarkers` to be populated");let u=!l||l===R.characterGroupPunctuation&&i||n.includes(o),d=!i||i===R.characterGroupPunctuation&&l||n.includes(r);return c._open=!!(a===L.asterisk?u:u&&(i||!d)),c._close=!!(a===L.asterisk?d:d&&(l||!u)),t(o)}}function at(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ot={name:`autolink`,tokenize:st};function st(e,t,n){let r=0;return i;function i(t){return I(t===L.lessThan,"expected `<`"),e.enter(z.autolink),e.enter(z.autolinkMarker),e.consume(t),e.exit(z.autolinkMarker),e.enter(z.autolinkProtocol),a}function a(t){return W(t)?(e.consume(t),o):t===L.atSign?n(t):l(t)}function o(e){return e===L.plusSign||e===L.dash||e===L.dot||G(e)?(r=1,s(e)):l(e)}function s(t){return t===L.colon?(e.consume(t),r=0,c):(t===L.plusSign||t===L.dash||t===L.dot||G(t))&&r++<R.autolinkSchemeSizeMax?(e.consume(t),s):(r=0,l(t))}function c(r){return r===L.greaterThan?(e.exit(z.autolinkProtocol),e.enter(z.autolinkMarker),e.consume(r),e.exit(z.autolinkMarker),e.exit(z.autolink),t):r===L.eof||r===L.space||r===L.lessThan||Fe(r)?n(r):(e.consume(r),c)}function l(t){return t===L.atSign?(e.consume(t),u):Pe(t)?(e.consume(t),l):n(t)}function u(e){return G(e)?d(e):n(e)}function d(n){return n===L.dot?(e.consume(n),r=0,u):n===L.greaterThan?(e.exit(z.autolinkProtocol).type=z.autolinkEmail,e.enter(z.autolinkMarker),e.consume(n),e.exit(z.autolinkMarker),e.exit(z.autolink),t):f(n)}function f(t){if((t===L.dash||G(t))&&r++<R.autolinkDomainSizeMax){let n=t===L.dash?f:d;return e.consume(t),n}return n(t)}}var ct={partial:!0,tokenize:lt};function lt(e,t,n){return r;function r(t){return J(t)?Y(e,i,z.linePrefix)(t):i(t)}function i(e){return e===L.eof||K(e)?t(e):n(e)}}var ut={continuation:{tokenize:ft},exit:pt,name:`blockQuote`,tokenize:dt};function dt(e,t,n){let r=this;return i;function i(t){if(t===L.greaterThan){let n=r.containerState;return I(n,"expected `containerState` to be defined in container"),n.open||=(e.enter(z.blockQuote,{_container:!0}),!0),e.enter(z.blockQuotePrefix),e.enter(z.blockQuoteMarker),e.consume(t),e.exit(z.blockQuoteMarker),a}return n(t)}function a(n){return J(n)?(e.enter(z.blockQuotePrefixWhitespace),e.consume(n),e.exit(z.blockQuotePrefixWhitespace),e.exit(z.blockQuotePrefix),t):(e.exit(z.blockQuotePrefix),t(n))}}function ft(e,t,n){let r=this;return i;function i(t){return J(t)?(I(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Y(e,a,z.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize)(t)):a(t)}function a(r){return e.attempt(ut,t,n)(r)}}function pt(e){e.exit(z.blockQuote)}var mt={name:`characterEscape`,tokenize:ht};function ht(e,t,n){return r;function r(t){return I(t===L.backslash,"expected `\\`"),e.enter(z.characterEscape),e.enter(z.escapeMarker),e.consume(t),e.exit(z.escapeMarker),i}function i(r){return Re(r)?(e.enter(z.characterEscapeValue),e.consume(r),e.exit(z.characterEscapeValue),e.exit(z.characterEscape),t):n(r)}}var gt={name:`characterReference`,tokenize:_t};function _t(e,t,n){let r=this,i=0,a,o;return s;function s(t){return I(t===L.ampersand,"expected `&`"),e.enter(z.characterReference),e.enter(z.characterReferenceMarker),e.consume(t),e.exit(z.characterReferenceMarker),c}function c(t){return t===L.numberSign?(e.enter(z.characterReferenceMarkerNumeric),e.consume(t),e.exit(z.characterReferenceMarkerNumeric),l):(e.enter(z.characterReferenceValue),a=R.characterReferenceNamedSizeMax,o=G,u(t))}function l(t){return t===L.uppercaseX||t===L.lowercaseX?(e.enter(z.characterReferenceMarkerHexadecimal),e.consume(t),e.exit(z.characterReferenceMarkerHexadecimal),e.enter(z.characterReferenceValue),a=R.characterReferenceHexadecimalSizeMax,o=Le,u):(e.enter(z.characterReferenceValue),a=R.characterReferenceDecimalSizeMax,o=Ie,u(t))}function u(s){if(s===L.semicolon&&i){let i=e.exit(z.characterReferenceValue);return o===G&&!Se(r.sliceSerialize(i))?n(s):(e.enter(z.characterReferenceMarker),e.consume(s),e.exit(z.characterReferenceMarker),e.exit(z.characterReference),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var vt={partial:!0,tokenize:xt},yt={concrete:!0,name:`codeFenced`,tokenize:bt};function bt(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){I(t===L.graveAccent||t===L.tilde,"expected `` ` `` or `~`");let n=r.events[r.events.length-1];return a=n&&n[1].type===z.linePrefix?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(z.codeFenced),e.enter(z.codeFencedFence),e.enter(z.codeFencedFenceSequence),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<R.codeFencedSequenceSizeMin?n(t):(e.exit(z.codeFencedFenceSequence),J(t)?Y(e,d,z.whitespace)(t):d(t))}function d(n){return n===L.eof||K(n)?(e.exit(z.codeFencedFence),r.interrupt?t(n):e.check(vt,h,b)(n)):(e.enter(z.codeFencedFenceInfo),e.enter(z.chunkString,{contentType:R.contentTypeString}),f(n))}function f(t){return t===L.eof||K(t)?(e.exit(z.chunkString),e.exit(z.codeFencedFenceInfo),d(t)):J(t)?(e.exit(z.chunkString),e.exit(z.codeFencedFenceInfo),Y(e,p,z.whitespace)(t)):t===L.graveAccent&&t===s?n(t):(e.consume(t),f)}function p(t){return t===L.eof||K(t)?d(t):(e.enter(z.codeFencedFenceMeta),e.enter(z.chunkString,{contentType:R.contentTypeString}),m(t))}function m(t){return t===L.eof||K(t)?(e.exit(z.chunkString),e.exit(z.codeFencedFenceMeta),d(t)):t===L.graveAccent&&t===s?n(t):(e.consume(t),m)}function h(t){return I(K(t),`expected eol`),e.attempt(i,b,g)(t)}function g(t){return I(K(t),`expected eol`),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),_}function _(t){return a>0&&J(t)?Y(e,v,z.linePrefix,a+1)(t):v(t)}function v(t){return t===L.eof||K(t)?e.check(vt,h,b)(t):(e.enter(z.codeFlowValue),y(t))}function y(t){return t===L.eof||K(t)?(e.exit(z.codeFlowValue),v(t)):(e.consume(t),y)}function b(n){return e.exit(z.codeFenced),t(n)}function x(e,t,n){let i=0;return a;function a(t){return I(K(t),`expected eol`),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),c}function c(t){return I(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),e.enter(z.codeFencedFence),J(t)?Y(e,l,z.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize)(t):l(t)}function l(t){return t===s?(e.enter(z.codeFencedFenceSequence),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(z.codeFencedFenceSequence),J(t)?Y(e,d,z.whitespace)(t):d(t)):n(t)}function d(r){return r===L.eof||K(r)?(e.exit(z.codeFencedFence),t(r)):n(r)}}}function xt(e,t,n){let r=this;return i;function i(t){return t===L.eof?n(t):(I(K(t),`expected eol`),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var St={name:`codeIndented`,tokenize:wt},Ct={partial:!0,tokenize:Tt};function wt(e,t,n){let r=this;return i;function i(t){return I(J(t)),e.enter(z.codeIndented),Y(e,a,z.linePrefix,R.tabSize+1)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===z.linePrefix&&t[2].sliceSerialize(t[1],!0).length>=R.tabSize?o(e):n(e)}function o(t){return t===L.eof?c(t):K(t)?e.attempt(Ct,o,c)(t):(e.enter(z.codeFlowValue),s(t))}function s(t){return t===L.eof||K(t)?(e.exit(z.codeFlowValue),o(t)):(e.consume(t),s)}function c(n){return e.exit(z.codeIndented),t(n)}}function Tt(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):K(t)?(e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),i):Y(e,a,z.linePrefix,R.tabSize+1)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===z.linePrefix&&a[2].sliceSerialize(a[1],!0).length>=R.tabSize?t(e):K(e)?i(e):n(e)}}var Et={name:`codeText`,previous:Ot,resolve:Dt,tokenize:kt};function Dt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===z.lineEnding||e[n][1].type===`space`)&&(e[t][1].type===z.lineEnding||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===z.codeTextData){e[n][1].type=z.codeTextPadding,e[t][1].type=z.codeTextPadding,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==z.lineEnding&&(i=r):(r===t||e[r][1].type===z.lineEnding)&&(e[i][1].type=z.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 Ot(e){return e!==L.graveAccent||this.events[this.events.length-1][1].type===z.characterEscape}function kt(e,t,n){let r=this,i=0,a,o;return s;function s(t){return I(t===L.graveAccent,"expected `` ` ``"),I(Ot.call(r,r.previous),`expected correct previous`),e.enter(z.codeText),e.enter(z.codeTextSequence),c(t)}function c(t){return t===L.graveAccent?(e.consume(t),i++,c):(e.exit(z.codeTextSequence),l(t))}function l(t){return t===L.eof?n(t):t===L.space?(e.enter(`space`),e.consume(t),e.exit(`space`),l):t===L.graveAccent?(o=e.enter(z.codeTextSequence),a=0,d(t)):K(t)?(e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),l):(e.enter(z.codeTextData),u(t))}function u(t){return t===L.eof||t===L.space||t===L.graveAccent||K(t)?(e.exit(z.codeTextData),l(t)):(e.consume(t),u)}function d(n){return n===L.graveAccent?(e.consume(n),a++,d):a===i?(e.exit(z.codeTextSequence),e.exit(z.codeText),t(n)):(o.type=z.codeTextData,u(n))}}var At=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&jt(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),jt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),jt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);jt(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);jt(this.left,t.reverse())}}};function jt(e,t){let n=0;if(t.length<R.v8MaxSafeChunkSize)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+R.v8MaxSafeChunkSize)),n+=R.v8MaxSafeChunkSize}function Mt(e){let t={},n=-1,r,i,a,o,s,c,l,u=new At(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===z.chunkFlow&&u.get(n-1)[1].type===z.listItemPrefix&&(I(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===z.lineEndingBlank&&(a+=2),a<c.length&&c[a][1].type===z.content))for(;++a<c.length&&c[a][1].type!==z.content;)c[a][1].type===z.chunkText&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Nt(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===z.lineEnding||o[1].type===z.lineEndingBlank)o[0]===`enter`&&(i&&(u.get(i)[1].type=z.lineEndingBlank),o[1].type=z.lineEnding,i=a);else if(!(o[1].type===z.linePrefix||o[1].type===z.listItemIndent))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return V(e,0,1/0,u.slice(0)),!l}function Nt(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[];I(n.contentType,"expected `contentType` on subtokens");let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);I(!d||p.previous===d,`expected previous to match`),I(!d||d.next===p,`expected next to match`),a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(L.eof),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(I(p,`expected a current token`),h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0,I(!p.next,`expected no next token`)):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();I(n!==void 0,`expected a start position when splicing`),c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Pt={resolve:It,tokenize:Lt},Ft={partial:!0,tokenize:Rt};function It(e){return Mt(e),e}function Lt(e,t){let n;return r;function r(t){return I(t!==L.eof&&!K(t),`expected no eof or eol`),e.enter(z.content),n=e.enter(z.chunkContent,{contentType:R.contentTypeContent}),i(t)}function i(t){return t===L.eof?a(t):K(t)?e.check(Ft,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(z.chunkContent),e.exit(z.content),t(n)}function o(t){return I(K(t),`expected eol`),e.consume(t),e.exit(z.chunkContent),I(n,`expected previous token`),n.next=e.enter(z.chunkContent,{contentType:R.contentTypeContent,previous:n}),n=n.next,i}}function Rt(e,t,n){let r=this;return i;function i(t){return I(K(t),`expected a line ending`),e.exit(z.chunkContent),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),Y(e,a,z.linePrefix)}function a(i){if(i===L.eof||K(i))return n(i);I(r.parser.constructs.disable.null,"expected `disable.null` to be populated");let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===z.linePrefix&&a[2].sliceSerialize(a[1],!0).length>=R.tabSize?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function zt(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===L.lessThan?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===L.eof||t===L.space||t===L.rightParenthesis||Fe(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(z.chunkString,{contentType:R.contentTypeString}),h(t))}function f(n){return n===L.greaterThan?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(z.chunkString,{contentType:R.contentTypeString}),p(n))}function p(t){return t===L.greaterThan?(e.exit(z.chunkString),e.exit(s),f(t)):t===L.eof||t===L.lessThan||K(t)?n(t):(e.consume(t),t===L.backslash?m:p)}function m(t){return t===L.lessThan||t===L.greaterThan||t===L.backslash?(e.consume(t),p):p(t)}function h(i){return!u&&(i===L.eof||i===L.rightParenthesis||q(i))?(e.exit(z.chunkString),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===L.leftParenthesis?(e.consume(i),u++,h):i===L.rightParenthesis?(e.consume(i),u--,h):i===L.eof||i===L.space||i===L.leftParenthesis||Fe(i)?n(i):(e.consume(i),i===L.backslash?g:h)}function g(t){return t===L.leftParenthesis||t===L.rightParenthesis||t===L.backslash?(e.consume(t),h):h(t)}}function Bt(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return I(t===L.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>R.linkReferenceSizeMax||l===L.eof||l===L.leftSquareBracket||l===L.rightSquareBracket&&!c||l===L.caret&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===L.rightSquareBracket?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):K(l)?(e.enter(z.lineEnding),e.consume(l),e.exit(z.lineEnding),u):(e.enter(z.chunkString,{contentType:R.contentTypeString}),d(l))}function d(t){return t===L.eof||t===L.leftSquareBracket||t===L.rightSquareBracket||K(t)||s++>R.linkReferenceSizeMax?(e.exit(z.chunkString),u(t)):(e.consume(t),c||=!J(t),t===L.backslash?f:d)}function f(t){return t===L.leftSquareBracket||t===L.backslash||t===L.rightSquareBracket?(e.consume(t),s++,d):d(t)}}function Vt(e,t,n,r,i,a){let o;return s;function s(t){return t===L.quotationMark||t===L.apostrophe||t===L.leftParenthesis?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===L.leftParenthesis?L.rightParenthesis:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===L.eof?n(t):K(t)?(e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),Y(e,l,z.linePrefix)):(e.enter(z.chunkString,{contentType:R.contentTypeString}),u(t))}function u(t){return t===o||t===L.eof||K(t)?(e.exit(z.chunkString),l(t)):(e.consume(t),t===L.backslash?d:u)}function d(t){return t===o||t===L.backslash?(e.consume(t),u):u(t)}}function Ht(e,t){let n;return r;function r(i){return K(i)?(e.enter(z.lineEnding),e.consume(i),e.exit(z.lineEnding),n=!0,r):J(i)?Y(e,r,n?z.linePrefix:z.lineSuffix)(i):t(i)}}var Ut={name:`definition`,tokenize:Gt},Wt={partial:!0,tokenize:Kt};function Gt(e,t,n){let r=this,i;return a;function a(t){return e.enter(z.definition),o(t)}function o(t){return I(t===L.leftSquareBracket,"expected `[`"),Bt.call(r,e,s,n,z.definitionLabel,z.definitionLabelMarker,z.definitionLabelString)(t)}function s(t){return i=U(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===L.colon?(e.enter(z.definitionMarker),e.consume(t),e.exit(z.definitionMarker),c):n(t)}function c(t){return q(t)?Ht(e,l)(t):l(t)}function l(t){return zt(e,u,n,z.definitionDestination,z.definitionDestinationLiteral,z.definitionDestinationLiteralMarker,z.definitionDestinationRaw,z.definitionDestinationString)(t)}function u(t){return e.attempt(Wt,d,d)(t)}function d(t){return J(t)?Y(e,f,z.whitespace)(t):f(t)}function f(a){return a===L.eof||K(a)?(e.exit(z.definition),r.parser.defined.push(i),t(a)):n(a)}}function Kt(e,t,n){return r;function r(t){return q(t)?Ht(e,i)(t):n(t)}function i(t){return Vt(e,a,n,z.definitionTitle,z.definitionTitleMarker,z.definitionTitleString)(t)}function a(t){return J(t)?Y(e,o,z.whitespace)(t):o(t)}function o(e){return e===L.eof||K(e)?t(e):n(e)}}var qt={name:`hardBreakEscape`,tokenize:Jt};function Jt(e,t,n){return r;function r(t){return I(t===L.backslash,"expected `\\`"),e.enter(z.hardBreakEscape),e.consume(t),i}function i(r){return K(r)?(e.exit(z.hardBreakEscape),t(r)):n(r)}}var Yt={name:`headingAtx`,resolve:Xt,tokenize:Zt};function Xt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===z.whitespace&&(r+=2),n-2>r&&e[n][1].type===z.whitespace&&(n-=2),e[n][1].type===z.atxHeadingSequence&&(r===n-1||n-4>r&&e[n-2][1].type===z.whitespace)&&(n-=r+1===n?2:4),n>r&&(i={type:z.atxHeadingText,start:e[r][1].start,end:e[n][1].end},a={type:z.chunkText,start:e[r][1].start,end:e[n][1].end,contentType:R.contentTypeText},V(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Zt(e,t,n){let r=0;return i;function i(t){return e.enter(z.atxHeading),a(t)}function a(t){return I(t===L.numberSign,"expected `#`"),e.enter(z.atxHeadingSequence),o(t)}function o(t){return t===L.numberSign&&r++<R.atxHeadingOpeningFenceSizeMax?(e.consume(t),o):t===L.eof||q(t)?(e.exit(z.atxHeadingSequence),s(t)):n(t)}function s(n){return n===L.numberSign?(e.enter(z.atxHeadingSequence),c(n)):n===L.eof||K(n)?(e.exit(z.atxHeading),t(n)):J(n)?Y(e,s,z.whitespace)(n):(e.enter(z.atxHeadingText),l(n))}function c(t){return t===L.numberSign?(e.consume(t),c):(e.exit(z.atxHeadingSequence),s(t))}function l(t){return t===L.eof||t===L.numberSign||q(t)?(e.exit(z.atxHeadingText),s(t)):(e.consume(t),l)}}var Qt=`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`.split(`.`),$t=[`pre`,`script`,`style`,`textarea`],en={concrete:!0,name:`htmlFlow`,resolveTo:rn,tokenize:an},tn={partial:!0,tokenize:sn},nn={partial:!0,tokenize:on};function rn(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===z.htmlFlow););return t>1&&e[t-2][1].type===z.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 an(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return I(t===L.lessThan,"expected `<`"),e.enter(z.htmlFlow),e.enter(z.htmlFlowData),e.consume(t),d}function d(s){return s===L.exclamationMark?(e.consume(s),f):s===L.slash?(e.consume(s),a=!0,h):s===L.questionMark?(e.consume(s),i=R.htmlInstruction,r.interrupt?t:P):W(s)?(I(s!==null),e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===L.dash?(e.consume(a),i=R.htmlComment,p):a===L.leftSquareBracket?(e.consume(a),i=R.htmlCdata,s=0,m):W(a)?(e.consume(a),i=R.htmlDeclaration,r.interrupt?t:P):n(a)}function p(i){return i===L.dash?(e.consume(i),r.interrupt?t:P):n(i)}function m(i){let a=R.cdataOpeningString;return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?r.interrupt?t:O:m):n(i)}function h(t){return W(t)?(I(t!==null),e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===L.eof||s===L.slash||s===L.greaterThan||q(s)){let c=s===L.slash,l=o.toLowerCase();return!c&&!a&&$t.includes(l)?(i=R.htmlRaw,r.interrupt?t(s):O(s)):Qt.includes(o.toLowerCase())?(i=R.htmlBasic,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=R.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===L.dash||G(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===L.greaterThan?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return J(t)?(e.consume(t),v):E(t)}function y(t){return t===L.slash?(e.consume(t),E):t===L.colon||t===L.underscore||W(t)?(e.consume(t),b):J(t)?(e.consume(t),y):E(t)}function b(t){return t===L.dash||t===L.dot||t===L.colon||t===L.underscore||G(t)?(e.consume(t),b):x(t)}function x(t){return t===L.equalsTo?(e.consume(t),S):J(t)?(e.consume(t),x):y(t)}function S(t){return t===L.eof||t===L.lessThan||t===L.equalsTo||t===L.greaterThan||t===L.graveAccent?n(t):t===L.quotationMark||t===L.apostrophe?(e.consume(t),c=t,C):J(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===L.eof||K(t)?n(t):(e.consume(t),C)}function w(t){return t===L.eof||t===L.quotationMark||t===L.apostrophe||t===L.slash||t===L.lessThan||t===L.equalsTo||t===L.greaterThan||t===L.graveAccent||q(t)?x(t):(e.consume(t),w)}function T(e){return e===L.slash||e===L.greaterThan||J(e)?y(e):n(e)}function E(t){return t===L.greaterThan?(e.consume(t),D):n(t)}function D(t){return t===L.eof||K(t)?O(t):J(t)?(e.consume(t),D):n(t)}function O(t){return t===L.dash&&i===R.htmlComment?(e.consume(t),j):t===L.lessThan&&i===R.htmlRaw?(e.consume(t),M):t===L.greaterThan&&i===R.htmlDeclaration?(e.consume(t),ne):t===L.questionMark&&i===R.htmlInstruction?(e.consume(t),P):t===L.rightSquareBracket&&i===R.htmlCdata?(e.consume(t),N):K(t)&&(i===R.htmlBasic||i===R.htmlComplete)?(e.exit(z.htmlFlowData),e.check(tn,re,k)(t)):t===L.eof||K(t)?(e.exit(z.htmlFlowData),k(t)):(e.consume(t),O)}function k(t){return e.check(nn,ee,re)(t)}function ee(t){return I(K(t)),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),A}function A(t){return t===L.eof||K(t)?k(t):(e.enter(z.htmlFlowData),O(t))}function j(t){return t===L.dash?(e.consume(t),P):O(t)}function M(t){return t===L.slash?(e.consume(t),o=``,te):O(t)}function te(t){if(t===L.greaterThan){let n=o.toLowerCase();return $t.includes(n)?(e.consume(t),ne):O(t)}return W(t)&&o.length<R.htmlRawSizeMax?(I(t!==null),e.consume(t),o+=String.fromCharCode(t),te):O(t)}function N(t){return t===L.rightSquareBracket?(e.consume(t),P):O(t)}function P(t){return t===L.greaterThan?(e.consume(t),ne):t===L.dash&&i===R.htmlComment?(e.consume(t),P):O(t)}function ne(t){return t===L.eof||K(t)?(e.exit(z.htmlFlowData),re(t)):(e.consume(t),ne)}function re(n){return e.exit(z.htmlFlow),t(n)}}function on(e,t,n){let r=this;return i;function i(t){return K(t)?(e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function sn(e,t,n){return r;function r(r){return I(K(r),`expected a line ending`),e.enter(z.lineEnding),e.consume(r),e.exit(z.lineEnding),e.attempt(ct,t,n)}}var cn={name:`htmlText`,tokenize:ln};function ln(e,t,n){let r=this,i,a,o;return s;function s(t){return I(t===L.lessThan,"expected `<`"),e.enter(z.htmlText),e.enter(z.htmlTextData),e.consume(t),c}function c(t){return t===L.exclamationMark?(e.consume(t),l):t===L.slash?(e.consume(t),x):t===L.questionMark?(e.consume(t),y):W(t)?(e.consume(t),w):n(t)}function l(t){return t===L.dash?(e.consume(t),u):t===L.leftSquareBracket?(e.consume(t),a=0,m):W(t)?(e.consume(t),v):n(t)}function u(t){return t===L.dash?(e.consume(t),p):n(t)}function d(t){return t===L.eof?n(t):t===L.dash?(e.consume(t),f):K(t)?(o=d,M(t)):(e.consume(t),d)}function f(t){return t===L.dash?(e.consume(t),p):d(t)}function p(e){return e===L.greaterThan?j(e):e===L.dash?f(e):d(e)}function m(t){let r=R.cdataOpeningString;return t===r.charCodeAt(a++)?(e.consume(t),a===r.length?h:m):n(t)}function h(t){return t===L.eof?n(t):t===L.rightSquareBracket?(e.consume(t),g):K(t)?(o=h,M(t)):(e.consume(t),h)}function g(t){return t===L.rightSquareBracket?(e.consume(t),_):h(t)}function _(t){return t===L.greaterThan?j(t):t===L.rightSquareBracket?(e.consume(t),_):h(t)}function v(t){return t===L.eof||t===L.greaterThan?j(t):K(t)?(o=v,M(t)):(e.consume(t),v)}function y(t){return t===L.eof?n(t):t===L.questionMark?(e.consume(t),b):K(t)?(o=y,M(t)):(e.consume(t),y)}function b(e){return e===L.greaterThan?j(e):y(e)}function x(t){return W(t)?(e.consume(t),S):n(t)}function S(t){return t===L.dash||G(t)?(e.consume(t),S):C(t)}function C(t){return K(t)?(o=C,M(t)):J(t)?(e.consume(t),C):j(t)}function w(t){return t===L.dash||G(t)?(e.consume(t),w):t===L.slash||t===L.greaterThan||q(t)?T(t):n(t)}function T(t){return t===L.slash?(e.consume(t),j):t===L.colon||t===L.underscore||W(t)?(e.consume(t),E):K(t)?(o=T,M(t)):J(t)?(e.consume(t),T):j(t)}function E(t){return t===L.dash||t===L.dot||t===L.colon||t===L.underscore||G(t)?(e.consume(t),E):D(t)}function D(t){return t===L.equalsTo?(e.consume(t),O):K(t)?(o=D,M(t)):J(t)?(e.consume(t),D):T(t)}function O(t){return t===L.eof||t===L.lessThan||t===L.equalsTo||t===L.greaterThan||t===L.graveAccent?n(t):t===L.quotationMark||t===L.apostrophe?(e.consume(t),i=t,k):K(t)?(o=O,M(t)):J(t)?(e.consume(t),O):(e.consume(t),ee)}function k(t){return t===i?(e.consume(t),i=void 0,A):t===L.eof?n(t):K(t)?(o=k,M(t)):(e.consume(t),k)}function ee(t){return t===L.eof||t===L.quotationMark||t===L.apostrophe||t===L.lessThan||t===L.equalsTo||t===L.graveAccent?n(t):t===L.slash||t===L.greaterThan||q(t)?T(t):(e.consume(t),ee)}function A(e){return e===L.slash||e===L.greaterThan||q(e)?T(e):n(e)}function j(r){return r===L.greaterThan?(e.consume(r),e.exit(z.htmlTextData),e.exit(z.htmlText),t):n(r)}function M(t){return I(o,`expected return state`),I(K(t),`expected eol`),e.exit(z.htmlTextData),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),te}function te(t){return I(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),J(t)?Y(e,N,z.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize)(t):N(t)}function N(t){return e.enter(z.htmlTextData),o(t)}}var un={name:`labelEnd`,resolveAll:mn,resolveTo:hn,tokenize:gn},dn={tokenize:_n},fn={tokenize:vn},pn={tokenize:yn};function mn(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===z.labelImage||r.type===z.labelLink||r.type===z.labelEnd){let e=r.type===z.labelImage?4:2;r.type=z.data,t+=e}}return e.length!==n.length&&V(e,0,e.length,n),e}function hn(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===z.link||i.type===z.labelLink&&i._inactive)break;e[n][0]===`enter`&&i.type===z.labelLink&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===z.labelImage||i.type===z.labelLink)&&!i._balanced&&(a=n,i.type!==z.labelLink)){r=2;break}}else i.type===z.labelEnd&&(o=n);I(a!==void 0,"`open` is supposed to be found"),I(o!==void 0,"`close` is supposed to be found");let c={type:e[a][1].type===z.labelLink?z.link:z.image,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:z.label,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:z.labelText,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=H(s,e.slice(a+1,a+r+3)),s=H(s,[[`enter`,u,t]]),I(t.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),s=H(s,tt(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=H(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=H(s,e.slice(o+1)),s=H(s,[[`exit`,c,t]]),V(e,a,e.length,s),e}function gn(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===z.labelImage||r.events[i][1].type===z.labelLink)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return I(t===L.rightSquareBracket,"expected `]`"),a?a._inactive?d(t):(o=r.parser.defined.includes(U(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(z.labelEnd),e.enter(z.labelMarker),e.consume(t),e.exit(z.labelMarker),e.exit(z.labelEnd),c):n(t)}function c(t){return t===L.leftParenthesis?e.attempt(dn,u,o?u:d)(t):t===L.leftSquareBracket?e.attempt(fn,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(pn,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function _n(e,t,n){return r;function r(t){return I(t===L.leftParenthesis,`expected left paren`),e.enter(z.resource),e.enter(z.resourceMarker),e.consume(t),e.exit(z.resourceMarker),i}function i(t){return q(t)?Ht(e,a)(t):a(t)}function a(t){return t===L.rightParenthesis?u(t):zt(e,o,s,z.resourceDestination,z.resourceDestinationLiteral,z.resourceDestinationLiteralMarker,z.resourceDestinationRaw,z.resourceDestinationString,R.linkResourceDestinationBalanceMax)(t)}function o(t){return q(t)?Ht(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===L.quotationMark||t===L.apostrophe||t===L.leftParenthesis?Vt(e,l,n,z.resourceTitle,z.resourceTitleMarker,z.resourceTitleString)(t):u(t)}function l(t){return q(t)?Ht(e,u)(t):u(t)}function u(r){return r===L.rightParenthesis?(e.enter(z.resourceMarker),e.consume(r),e.exit(z.resourceMarker),e.exit(z.resource),t):n(r)}}function vn(e,t,n){let r=this;return i;function i(t){return I(t===L.leftSquareBracket,`expected left bracket`),Bt.call(r,e,a,o,z.reference,z.referenceMarker,z.referenceString)(t)}function a(e){return r.parser.defined.includes(U(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function yn(e,t,n){return r;function r(t){return I(t===L.leftSquareBracket,`expected left bracket`),e.enter(z.reference),e.enter(z.referenceMarker),e.consume(t),e.exit(z.referenceMarker),i}function i(r){return r===L.rightSquareBracket?(e.enter(z.referenceMarker),e.consume(r),e.exit(z.referenceMarker),e.exit(z.reference),t):n(r)}}var bn={name:`labelStartImage`,resolveAll:un.resolveAll,tokenize:xn};function xn(e,t,n){let r=this;return i;function i(t){return I(t===L.exclamationMark,"expected `!`"),e.enter(z.labelImage),e.enter(z.labelImageMarker),e.consume(t),e.exit(z.labelImageMarker),a}function a(t){return t===L.leftSquareBracket?(e.enter(z.labelMarker),e.consume(t),e.exit(z.labelMarker),e.exit(z.labelImage),o):n(t)}function o(e){return e===L.caret&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Sn={name:`labelStartLink`,resolveAll:un.resolveAll,tokenize:Cn};function Cn(e,t,n){let r=this;return i;function i(t){return I(t===L.leftSquareBracket,"expected `[`"),e.enter(z.labelLink),e.enter(z.labelMarker),e.consume(t),e.exit(z.labelMarker),e.exit(z.labelLink),a}function a(e){return e===L.caret&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var wn={name:`lineEnding`,tokenize:Tn};function Tn(e,t){return n;function n(n){return I(K(n),`expected eol`),e.enter(z.lineEnding),e.consume(n),e.exit(z.lineEnding),Y(e,t,z.linePrefix)}}var En={name:`thematicBreak`,tokenize:Dn};function Dn(e,t,n){let r=0,i;return a;function a(t){return e.enter(z.thematicBreak),o(t)}function o(e){return I(e===L.asterisk||e===L.dash||e===L.underscore,"expected `*`, `-`, or `_`"),i=e,s(e)}function s(a){return a===i?(e.enter(z.thematicBreakSequence),c(a)):r>=R.thematicBreakMarkerCountMin&&(a===L.eof||K(a))?(e.exit(z.thematicBreak),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(z.thematicBreakSequence),J(t)?Y(e,s,z.whitespace)(t):s(t))}}var X={continuation:{tokenize:jn},exit:Nn,name:`list`,tokenize:An},On={partial:!0,tokenize:Pn},kn={partial:!0,tokenize:Mn};function An(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===z.linePrefix?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){I(r.containerState,`expected state`);let i=r.containerState.type||(t===L.asterisk||t===L.plusSign||t===L.dash?z.listUnordered:z.listOrdered);if(i===z.listUnordered?!r.containerState.marker||t===r.containerState.marker:Ie(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===z.listUnordered)return e.enter(z.listItemPrefix),t===L.asterisk||t===L.dash?e.check(En,n,l)(t):l(t);if(!r.interrupt||t===L.digit1)return e.enter(z.listItemPrefix),e.enter(z.listItemValue),c(t)}return n(t)}function c(t){return I(r.containerState,`expected state`),Ie(t)&&++o<R.listItemValueSizeMax?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===L.rightParenthesis||t===L.dot)?(e.exit(z.listItemValue),l(t)):n(t)}function l(t){return I(r.containerState,`expected state`),I(t!==L.eof,"eof (`null`) is not a marker"),e.enter(z.listItemMarker),e.consume(t),e.exit(z.listItemMarker),r.containerState.marker=r.containerState.marker||t,e.check(ct,r.interrupt?n:u,e.attempt(On,f,d))}function u(e){return I(r.containerState,`expected state`),r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return J(t)?(e.enter(z.listItemPrefixWhitespace),e.consume(t),e.exit(z.listItemPrefixWhitespace),f):n(t)}function f(n){return I(r.containerState,`expected state`),r.containerState.size=a+r.sliceSerialize(e.exit(z.listItemPrefix),!0).length,t(n)}}function jn(e,t,n){let r=this;return I(r.containerState,`expected state`),r.containerState._closeFlow=void 0,e.check(ct,i,a);function i(n){return I(r.containerState,`expected state`),I(typeof r.containerState.size==`number`,`expected size`),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,z.listItemIndent,r.containerState.size+1)(n)}function a(n){return I(r.containerState,`expected state`),r.containerState.furtherBlankLines||!J(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kn,t,o)(n))}function o(i){return I(r.containerState,`expected state`),r.containerState._closeFlow=!0,r.interrupt=void 0,I(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Y(e,e.attempt(X,t,n),z.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize)(i)}}function Mn(e,t,n){let r=this;return I(r.containerState,`expected state`),I(typeof r.containerState.size==`number`,`expected size`),Y(e,i,z.listItemIndent,r.containerState.size+1);function i(e){I(r.containerState,`expected state`);let i=r.events[r.events.length-1];return i&&i[1].type===z.listItemIndent&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Nn(e){I(this.containerState,`expected state`),I(typeof this.containerState.type==`string`,`expected type`),e.exit(this.containerState.type)}function Pn(e,t,n){let r=this;return I(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),Y(e,i,z.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize+1);function i(e){let i=r.events[r.events.length-1];return!J(e)&&i&&i[1].type===z.listItemPrefixWhitespace?t(e):n(e)}}var Fn={name:`setextUnderline`,resolveTo:In,tokenize:Ln};function In(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===z.content){r=n;break}e[n][1].type===z.paragraph&&(i=n)}else e[n][1].type===z.content&&e.splice(n,1),!a&&e[n][1].type===z.definition&&(a=n);I(i!==void 0,"expected a `text` index to be found"),I(r!==void 0,"expected a `text` index to be found"),I(e[r][2]===t,`enter context should be same`),I(e[e.length-1][2]===t,`enter context should be same`);let o={type:z.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=z.setextHeadingText,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Ln(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(I(t===L.dash||t===L.equalsTo,"expected `=` or `-`");a--;)if(r.events[a][1].type!==z.lineEnding&&r.events[a][1].type!==z.linePrefix&&r.events[a][1].type!==z.content){s=r.events[a][1].type===z.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(z.setextHeadingLine),i=t,o(t)):n(t)}function o(t){return e.enter(z.setextHeadingLineSequence),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(z.setextHeadingLineSequence),J(t)?Y(e,c,z.lineSuffix)(t):c(t))}function c(r){return r===L.eof||K(r)?(e.exit(z.setextHeadingLine),t(r)):n(r)}}var Rn={tokenize:zn};function zn(e){let t=this,n=e.attempt(ct,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Pt,i)),z.linePrefix)));return n;function r(r){if(I(r===L.eof||K(r),`expected eol or eof`),r===L.eof){e.consume(r);return}return e.enter(z.lineEndingBlank),e.consume(r),e.exit(z.lineEndingBlank),t.currentConstruct=void 0,n}function i(r){if(I(r===L.eof||K(r),`expected eol or eof`),r===L.eof){e.consume(r);return}return e.enter(z.lineEnding),e.consume(r),e.exit(z.lineEnding),t.currentConstruct=void 0,n}}var Bn={resolveAll:Wn()},Vn=Un(`string`),Hn=Un(`text`);function Un(e){return{resolveAll:Wn(e===`text`?Gn:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===L.eof){t.consume(e);return}return t.enter(z.data),t.consume(e),s}function s(e){return c(e)?(t.exit(z.data),i(e)):(t.consume(e),s)}function c(e){if(e===L.eof)return!0;let t=r[e],i=-1;if(t)for(I(Array.isArray(t),"expected `disable.null` to be populated");++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Wn(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===z.data&&(i=r,r++):(!t[r]||t[r][1].type!==z.data)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Gn(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===z.lineEnding)&&e[n-1][1].type===z.data){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===L.space;)s++,o--;if(o)break;o=-1}else if(e===L.horizontalTab)c=!0,s++;else if(e!==L.virtualSpace){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<R.hardBreakPrefixSizeMin?z.lineSuffix:z.hardBreakTrailing,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Kn=e({attentionMarkers:()=>er,contentInitial:()=>Jn,disable:()=>tr,document:()=>qn,flow:()=>Xn,flowInitial:()=>Yn,insideSpan:()=>$n,string:()=>Zn,text:()=>Qn}),qn={[L.asterisk]:X,[L.plusSign]:X,[L.dash]:X,[L.digit0]:X,[L.digit1]:X,[L.digit2]:X,[L.digit3]:X,[L.digit4]:X,[L.digit5]:X,[L.digit6]:X,[L.digit7]:X,[L.digit8]:X,[L.digit9]:X,[L.greaterThan]:ut},Jn={[L.leftSquareBracket]:Ut},Yn={[L.horizontalTab]:St,[L.virtualSpace]:St,[L.space]:St},Xn={[L.numberSign]:Yt,[L.asterisk]:En,[L.dash]:[Fn,En],[L.lessThan]:en,[L.equalsTo]:Fn,[L.underscore]:En,[L.graveAccent]:yt,[L.tilde]:yt},Zn={[L.ampersand]:gt,[L.backslash]:mt},Qn={[L.carriageReturn]:wn,[L.lineFeed]:wn,[L.carriageReturnLineFeed]:wn,[L.exclamationMark]:bn,[L.ampersand]:gt,[L.asterisk]:nt,[L.lessThan]:[ot,cn],[L.leftSquareBracket]:Sn,[L.backslash]:[qt,mt],[L.rightSquareBracket]:un,[L.underscore]:nt,[L.graveAccent]:Et},$n={null:[nt,Bn]},er={null:[L.asterisk,L.underscore]},tr={null:[]},nr=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),rr=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=nr(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),ir=(0,t(n(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t={}.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=rr()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}}))(),1).default)(`micromark`);function ar(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c=!0,l={attempt:T(C),check:T(w),consume:b,enter:x,exit:S,interrupt:T(w,{interrupt:!0})},u={code:L.eof,containerState:{},defineSkip:_,events:[],now:g,parser:e,previous:L.eof,sliceSerialize:m,sliceStream:h,write:p},d=t.tokenize.call(u,l),f;return t.resolveAll&&a.push(t),u;function p(e){return o=H(o,e),v(),o[o.length-1]===L.eof?(E(t,0),u.events=tt(a,u.events,u),u.events):[]}function m(e,t){return sr(h(e),t)}function h(e){return or(o,e)}function g(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function _(e){i[e.line]=e.column,O(),ir("position: define skip: `%j`",r)}function v(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)y(t.charCodeAt(r._bufferIndex));else y(t)}}function y(e){I(c===!0,`expected character to be consumed`),c=void 0,ir("main: passing `%s` to %s",e,d&&d.name),f=e,I(typeof d==`function`,`expected state`),d=d(e)}function b(e){I(e===f,`expected given code to equal expected code`),ir("consume: `%s`",e),I(c===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),I(e===null?u.events.length===0||u.events[u.events.length-1][0]===`exit`:u.events[u.events.length-1][0]===`enter`,`expected last token to be open`),K(e)?(r.line++,r.column=1,r.offset+=e===L.carriageReturnLineFeed?2:1,O(),ir("position: after eol: `%j`",r)):e!==L.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,c=!0}function x(e,t){let n=t||{};return n.type=e,n.start=g(),I(typeof e==`string`,`expected string type`),I(e.length>0,`expected non-empty string`),ir("enter: `%s`",e),u.events.push([`enter`,n,u]),s.push(n),n}function S(e){I(typeof e==`string`,`expected string type`),I(e.length>0,`expected non-empty string`);let t=s.pop();return I(t,`cannot close w/o open tokens`),t.end=g(),I(e===t.type,`expected exit token to match current token`),I(!(t.start._index===t.end._index&&t.start._bufferIndex===t.end._bufferIndex),"expected non-empty token (`"+e+"`)"),ir("exit: `%s`",t.type),u.events.push([`exit`,t,u]),t}function C(e,t){E(e,t.from)}function w(e,t){t.restore()}function T(e,t){return n;function n(n,r,i){let a,o,s,d;return Array.isArray(n)?m(n):`tokenize`in n?m([n]):p(n);function p(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function m(e){return a=e,o=0,e.length===0?(I(i,"expected `bogusState` to be given"),i):h(e[o])}function h(e){return n;function n(n){return d=D(),s=e,e.partial||(u.currentConstruct=e),I(u.parser.constructs.disable.null,"expected `disable.null` to be populated"),e.name&&u.parser.constructs.disable.null.includes(e.name)?_(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,g,_)(n)}}function g(t){return I(t===f,`expected code`),c=!0,e(s,d),r}function _(e){return I(e===f,`expected code`),c=!0,d.restore(),++o<a.length?h(a[o]):i}}}function E(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&V(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u)),I(e.partial||u.events.length===0||u.events[u.events.length-1][0]===`exit`,`expected last token to end`)}function D(){let e=g(),t=u.previous,n=u.currentConstruct,i=u.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=a,O(),ir("position: restore: `%j`",r)}}function O(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function or(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)I(a>-1,`expected non-negative end buffer index`),I(r>-1,`expected non-negative start buffer index`),o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):(I(r===0,"expected `startBufferIndex` to be `0`"),o.shift())}a>0&&o.push(e[i].slice(0,a))}return o}function sr(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case L.carriageReturn:o=B.cr;break;case L.lineFeed:o=B.lf;break;case L.carriageReturnLineFeed:o=B.cr+B.lf;break;case L.horizontalTab:o=t?B.space:B.ht;break;case L.virtualSpace:if(!t&&i)continue;o=B.space;break;default:I(typeof a==`number`,`expected number`),o=String.fromCharCode(a)}i=a===L.horizontalTab,r.push(o)}return r.join(``)}function cr(e){let t={constructs:Ee([Kn,...(e||{}).extensions||[]]),content:n(Je),defined:[],document:n(Xe),flow:n(Rn),lazy:{},string:n(Vn),text:n(Hn)};return t;function n(e){return n;function n(n){return ar(t,e,n)}}}function lr(e){for(;!Mt(e););return e}var ur=/[\0\t\n\r]/g;function dr(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===L.byteOrderMarker&&u++,void 0);u<i.length;){if(ur.lastIndex=u,c=ur.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===L.lf&&u===d&&r)s.push(L.carriageReturnLineFeed),r=void 0;else switch(r&&=(s.push(L.carriageReturn),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case L.nul:s.push(L.replacementCharacter),e++;break;case L.ht:for(l=Math.ceil(e/R.tabSize)*R.tabSize,s.push(L.horizontalTab);e++<l;)s.push(L.virtualSpace);break;case L.lf:s.push(L.lineFeed),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(L.carriageReturn),t&&s.push(t),s.push(L.eof)),s}}function fr(e,t,n){return typeof t!=`string`&&(n=t,t=void 0),qe(n)(lr(cr(n).document().write(dr()(e,t,!0))))}var pr={tokenize:Tr,partial:!0},mr={tokenize:Er,partial:!0},hr={tokenize:Dr,partial:!0},gr={tokenize:Or,partial:!0},_r={tokenize:kr,partial:!0},vr={name:`wwwAutolink`,tokenize:Cr,previous:Ar},yr={name:`protocolAutolink`,tokenize:wr,previous:jr},Z={name:`emailAutolink`,tokenize:Sr,previous:Mr},Q={};function br(){return{text:Q}}for(var xr=L.digit0;xr<L.leftCurlyBrace;)Q[xr]=Z,xr++,xr===L.colon?xr=L.uppercaseA:xr===L.leftSquareBracket&&(xr=L.lowercaseA);Q[L.plusSign]=Z,Q[L.dash]=Z,Q[L.dot]=Z,Q[L.underscore]=Z,Q[L.uppercaseH]=[Z,yr],Q[L.lowercaseH]=[Z,yr],Q[L.uppercaseW]=[Z,vr],Q[L.lowercaseW]=[Z,vr];function Sr(e,t,n){let r=this,i,a;return o;function o(t){return!Nr(t)||!Mr.call(r,r.previous)||Pr(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Nr(t)?(e.consume(t),s):t===L.atSign?(e.consume(t),c):n(t)}function c(t){return t===L.dot?e.check(_r,u,l)(t):t===L.dash||t===L.underscore||G(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&W(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Cr(e,t,n){let r=this;return i;function i(t){return t!==L.uppercaseW&&t!==L.lowercaseW||!Ar.call(r,r.previous)||Pr(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(pr,e.attempt(mr,e.attempt(hr,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function wr(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===L.uppercaseH||t===L.lowercaseH)&&jr.call(r,r.previous)&&!Pr(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(W(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===L.colon){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===L.slash?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===L.eof||Fe(t)||q(t)||Be(t)||ze(t)?n(t):e.attempt(mr,e.attempt(hr,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Tr(e,t,n){let r=0;return i;function i(t){return(t===L.uppercaseW||t===L.lowercaseW)&&r<3?(r++,e.consume(t),i):t===L.dot&&r===3?(e.consume(t),a):n(t)}function a(e){return e===L.eof?n(e):t(e)}}function Er(e,t,n){let r,i,a;return o;function o(t){return t===L.dot||t===L.underscore?e.check(gr,c,s)(t):t===L.eof||q(t)||Be(t)||t!==L.dash&&ze(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===L.underscore?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Dr(e,t){let n=0,r=0;return i;function i(o){return o===L.leftParenthesis?(n++,e.consume(o),i):o===L.rightParenthesis&&r<n?a(o):o===L.exclamationMark||o===L.quotationMark||o===L.ampersand||o===L.apostrophe||o===L.rightParenthesis||o===L.asterisk||o===L.comma||o===L.dot||o===L.colon||o===L.semicolon||o===L.lessThan||o===L.questionMark||o===L.rightSquareBracket||o===L.underscore||o===L.tilde?e.check(gr,t,a)(o):o===L.eof||q(o)||Be(o)?t(o):(e.consume(o),i)}function a(t){return t===L.rightParenthesis&&r++,e.consume(t),i}}function Or(e,t,n){return r;function r(o){return o===L.exclamationMark||o===L.quotationMark||o===L.apostrophe||o===L.rightParenthesis||o===L.asterisk||o===L.comma||o===L.dot||o===L.colon||o===L.semicolon||o===L.questionMark||o===L.underscore||o===L.tilde?(e.consume(o),r):o===L.ampersand?(e.consume(o),a):o===L.rightSquareBracket?(e.consume(o),i):o===L.lessThan||o===L.eof||q(o)||Be(o)?t(o):n(o)}function i(e){return e===L.eof||e===L.leftParenthesis||e===L.leftSquareBracket||q(e)||Be(e)?t(e):r(e)}function a(e){return W(e)?o(e):n(e)}function o(t){return t===L.semicolon?(e.consume(t),r):W(t)?(e.consume(t),o):n(t)}}function kr(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return G(e)?n(e):t(e)}}function Ar(e){return e===L.eof||e===L.leftParenthesis||e===L.asterisk||e===L.underscore||e===L.leftSquareBracket||e===L.rightSquareBracket||e===L.tilde||q(e)}function jr(e){return!W(e)}function Mr(e){return!(e===L.slash||Nr(e))}function Nr(e){return e===L.plusSign||e===L.dash||e===L.dot||e===L.underscore||G(e)}function Pr(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Fr(){return{exit:{literalAutolinkEmail:Lr,literalAutolinkHttp:Rr,literalAutolinkWww:Ir}}}function Ir(e){zr.call(this,e,`http://`)}function Lr(e){zr.call(this,e,`mailto:`)}function Rr(e){zr.call(this,e)}function zr(e,t){let n=this.sliceSerialize(e);this.tag(`<a href="`+He((t||``)+n)+`">`),this.raw(this.encode(n)),this.tag(`</a>`)}var Br={tokenize:Jr,partial:!0};function Vr(){return{document:{[L.leftSquareBracket]:{name:`gfmFootnoteDefinition`,tokenize:Gr,continuation:{tokenize:Kr},exit:qr}},text:{[L.leftSquareBracket]:{name:`gfmFootnoteCall`,tokenize:Wr},[L.rightSquareBracket]:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Hr,resolveTo:Ur}}}}function Hr(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===z.labelImage){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===z.labelLink||e.type===z.label||e.type===z.image||e.type===z.link)break}return s;function s(i){if(I(i===L.rightSquareBracket,"expected `]`"),!o||!o._balanced)return n(i);let s=U(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==L.caret||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Ur(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type===z.labelImage&&e[n][0]===`enter`){r=e[n][1];break}I(r,"expected `labelStart` to resolve"),e[n+1][1].type=z.data,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let i={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:`gfmFootnoteCallString`,start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:z.chunkString,contentType:`string`,start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],[`enter`,i,t],e[n+3],e[n+4],[`enter`,a,t],[`exit`,a,t],[`enter`,o,t],[`enter`,s,t],[`exit`,s,t],[`exit`,o,t],e[e.length-2],e[e.length-1],[`exit`,i,t]];return e.splice(n,e.length-n+1,...c),e}function Wr(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return I(t===L.leftSquareBracket,"expected `[`"),e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===L.caret?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>R.linkReferenceSizeMax||s===L.rightSquareBracket&&!o||s===L.eof||s===L.leftSquareBracket||q(s))return n(s);if(s===L.rightSquareBracket){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(U(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return q(s)||(o=!0),a++,e.consume(s),s===L.backslash?u:l}function u(t){return t===L.leftSquareBracket||t===L.backslash||t===L.rightSquareBracket?(e.consume(t),a++,l):l(t)}}function Gr(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return I(t===L.leftSquareBracket,"expected `[`"),e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===L.caret?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>R.linkReferenceSizeMax||t===L.rightSquareBracket&&!s||t===L.eof||t===L.leftSquareBracket||q(t))return n(t);if(t===L.rightSquareBracket){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=U(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return q(t)||(s=!0),o++,e.consume(t),t===L.backslash?d:u}function d(t){return t===L.leftSquareBracket||t===L.backslash||t===L.rightSquareBracket?(e.consume(t),o++,u):u(t)}function f(t){return t===L.colon?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Y(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Kr(e,t,n){return e.check(ct,t,e.attempt(Br,t,n))}function qr(e){e.exit(`gfmFootnoteDefinition`)}function Jr(e,t,n){let r=this;return Y(e,i,`gfmFootnoteDefinitionIndent`,R.tabSize+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===R.tabSize?t(e):n(e)}}var Yr={}.hasOwnProperty,Xr={};function Zr(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Qr(e){let t=e||Xr,n=t.label||`Footnotes`,r=t.labelTagName||`h2`,i=t.labelAttributes===null||t.labelAttributes===void 0?`class="sr-only"`:t.labelAttributes,a=t.backLabel||Zr,o=t.clobberPrefix===null||t.clobberPrefix===void 0?`user-content-`:t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData(`tightStack`).push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let e=this.getData(`gfmFootnoteDefinitions`),t=this.getData(`gfmFootnoteDefinitionStack`);I(t,"expected `footnoteStack`");let n=this.getData(`tightStack`),r=t.pop(),i=this.resume();I(r,`expected to be in a footnote`),e||this.setData(`gfmFootnoteDefinitions`,e={}),Yr.call(e,r)||(e[r]=i),n.pop(),this.setData(`slurpOneLineEnding`,!0),this.setData(`lastWasTag`)},gfmFootnoteDefinitionLabelString(e){let t=this.getData(`gfmFootnoteDefinitionStack`);t||this.setData(`gfmFootnoteDefinitionStack`,t=[]),t.push(U(this.sliceSerialize(e))),this.resume(),this.buffer()},gfmFootnoteCallString(e){let t=this.getData(`gfmFootnoteCallOrder`),n=this.getData(`gfmFootnoteCallCounts`),r=U(this.sliceSerialize(e)),i;this.resume(),t||this.setData(`gfmFootnoteCallOrder`,t=[]),n||this.setData(`gfmFootnoteCallCounts`,n={});let a=t.indexOf(r),s=He(r.toLowerCase());a===-1?(t.push(r),n[r]=1,i=t.length):(n[r]++,i=a+1);let c=n[r];this.tag(`<sup><a href="#`+o+`fn-`+s+`" id="`+o+`fnref-`+s+(c>1?`-`+c:``)+`" data-footnote-ref="" aria-describedby="footnote-label">`+String(i)+`</a></sup>`)},null(){let e=this.getData(`gfmFootnoteCallOrder`)||[],t=this.getData(`gfmFootnoteCallCounts`)||{},s=this.getData(`gfmFootnoteDefinitions`)||{},c=-1;for(e.length>0&&(this.lineEndingIfNeeded(),this.tag(`<section data-footnotes="" class="footnotes"><`+r+` id="footnote-label"`+(i?` `+i:``)+`>`),this.raw(this.encode(n)),this.tag(`</`+r+`>`),this.lineEndingIfNeeded(),this.tag(`<ol>`));++c<e.length;){let n=e[c],r=He(n.toLowerCase()),i=0,l=[];for(;++i<=t[n];)l.push(`<a href="#`+o+`fnref-`+r+(i>1?`-`+i:``)+`" data-footnote-backref="" aria-label="`+this.encode(typeof a==`string`?a:a(c,i))+`" class="data-footnote-backref">↩`+(i>1?`<sup>`+i+`</sup>`:``)+`</a>`);let u=l.join(` `),d=!1;this.lineEndingIfNeeded(),this.tag(`<li id="`+o+`fn-`+r+`">`),this.lineEndingIfNeeded(),this.tag(s[n].replace(/<\/p>(?:\r?\n|\r)?$/,function(e){return d=!0,` `+u+e})),d||(this.lineEndingIfNeeded(),this.tag(u)),this.lineEndingIfNeeded(),this.tag(`</li>`)}e.length>0&&(this.lineEndingIfNeeded(),this.tag(`</ol>`),this.lineEndingIfNeeded(),this.tag(`</section>`))}}}}function $r(){return{enter:{strikethrough(){this.tag(`<del>`)}},exit:{strikethrough(){this.tag(`</del>`)}}}}function ei(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{[L.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[L.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&V(o,o.length,0,tt(s,e.slice(r+1,n),t)),V(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),V(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=z.data);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return I(t===L.tilde,"expected `~`"),i===L.tilde&&a[a.length-1][1].type!==z.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=et(i);if(a===L.tilde)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=et(a);return l._open=!u||u===R.attentionSideAfter&&!!s,l._close=!s||s===R.attentionSideAfter&&!!u,n(a)}}}var ti={none:``,left:` align="left"`,right:` align="right"`,center:` align="center"`};function ni(){return{enter:{table(e){let t=e._align;I(t,"expected `_align`"),this.lineEndingIfNeeded(),this.tag(`<table>`),this.setData(`tableAlign`,t)},tableBody(){this.tag(`<tbody>`)},tableData(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);I(e,"expected `tableAlign`"),I(typeof t==`number`,"expected `tableColumn`");let n=ti[e[t]];n===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag(`<td`+n+`>`))},tableHead(){this.lineEndingIfNeeded(),this.tag(`<thead>`)},tableHeader(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);I(e,"expected `tableAlign`"),I(typeof t==`number`,"expected `tableColumn`");let n=ti[e[t]];this.lineEndingIfNeeded(),this.tag(`<th`+n+`>`)},tableRow(){this.setData(`tableColumn`,0),this.lineEndingIfNeeded(),this.tag(`<tr>`)}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData(`tableAlign`)&&(t=t.replace(/\\([\\|])/g,ri)),this.raw(this.encode(t))},table(){this.setData(`tableAlign`),this.setData(`slurpAllLineEndings`),this.lineEndingIfNeeded(),this.tag(`</table>`)},tableBody(){this.lineEndingIfNeeded(),this.tag(`</tbody>`)},tableData(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);I(e,"expected `tableAlign`"),I(typeof t==`number`,"expected `tableColumn`"),t in e?(this.tag(`</td>`),this.setData(`tableColumn`,t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag(`</thead>`)},tableHeader(){let e=this.getData(`tableColumn`);I(typeof e==`number`,"expected `tableColumn`"),this.tag(`</th>`),this.setData(`tableColumn`,e+1)},tableRow(){let e=this.getData(`tableAlign`),t=this.getData(`tableColumn`);for(I(e,"expected `tableAlign`"),I(typeof t==`number`,"expected `tableColumn`");t<e.length;)this.lineEndingIfNeeded(),this.tag(`<td`+ti[e[t]]+`></td>`),t++;this.setData(`tableColumn`,t),this.lineEndingIfNeeded(),this.tag(`</tr>`)}}}}function ri(e,t){return t===`|`?t:e}var ii=class{constructor(){this.map=[]}add(e,t,n){ai(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function ai(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function oi(e,t){I(e[t][1].type===`table`,`expected table`);let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function si(){return{flow:{null:{name:`table`,tokenize:ci,resolveAll:li}}}}function ci(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===z.lineEnding||e===z.linePrefix)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===L.verticalBar?u(e):(o=!0,a+=1,u(e))}function u(t){return t===L.eof?n(t):K(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(z.lineEnding),e.consume(t),e.exit(z.lineEnding),p):n(t):J(t)?Y(e,u,z.whitespace)(t):(a+=1,o&&(o=!1,i+=1),t===L.verticalBar?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(z.data),d(t)))}function d(t){return t===L.eof||t===L.verticalBar||q(t)?(e.exit(z.data),u(t)):(e.consume(t),t===L.backslash?f:d)}function f(t){return t===L.backslash||t===L.verticalBar?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,J(t)?(I(r.parser.constructs.disable.null,"expected `disabled.null`"),Y(e,m,z.linePrefix,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:R.tabSize)(t)):m(t))}function m(t){return t===L.dash||t===L.colon?g(t):t===L.verticalBar?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return J(t)?Y(e,g,z.whitespace)(t):g(t)}function g(t){return t===L.colon?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===L.dash?(a+=1,_(t)):t===L.eof||K(t)?b(t):x(t)}function _(t){return t===L.dash?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===L.dash?(e.consume(t),v):t===L.colon?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return J(t)?Y(e,b,z.whitespace)(t):b(t)}function b(n){return n===L.verticalBar?m(n):n===L.eof||K(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===L.verticalBar?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===L.eof||K(n)?(e.exit(`tableRow`),t(n)):J(n)?Y(e,C,z.whitespace)(n):(e.enter(z.data),w(n))}function w(t){return t===L.eof||t===L.verticalBar||q(t)?(e.exit(z.data),C(t)):(e.consume(t),t===L.backslash?T:w)}function T(t){return t===L.backslash||t===L.verticalBar?(e.consume(t),w):w(t)}}function li(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ii;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(I(l,`there should be a table opening`),di(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===z.data||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=ui(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=ui(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=ui(f,t,o,i,n,d)):(o[0]=o[1],d=ui(f,t,a,i,n,d)),i=0):i&&(m.type===z.data||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&(I(l,`expected table opening`),di(f,t,c,l,u)),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=oi(t.events,n))}return e}function ui(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(I(a,`expected previous cell enter`),a.end=Object.assign({},fi(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=fi(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=fi(t.events,n[2]),a=fi(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),I(n[3]!==0),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=z.chunkText,r[1].contentType=R.contentTypeText,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},fi(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function di(e,t,n,r,i){let a=[],o=fi(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function fi(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var pi=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,mi=RegExp(`^`+pi.source,`i`);function hi(){return{exit:{htmlFlowData(e){gi.call(this,e,pi)},htmlTextData(e){gi.call(this,e,mi)}}}}function gi(e,t){let n=this.sliceSerialize(e);this.options.allowDangerousHtml&&(n=n.replace(t,`<$1$2`)),this.raw(this.encode(n))}function _i(){return{enter:{taskListCheck(){this.tag(`<input type="checkbox" disabled="" `)}},exit:{taskListCheck(){this.tag(`/>`)},taskListCheckValueChecked(){this.tag(`checked="" `)}}}}var vi={name:`tasklistCheck`,tokenize:bi};function yi(){return{text:{[L.leftSquareBracket]:vi}}}function bi(e,t,n){let r=this;return i;function i(t){return I(t===L.leftSquareBracket,"expected `[`"),r.previous!==L.eof||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return q(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===L.uppercaseX||t===L.lowercaseX?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===L.rightSquareBracket?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return K(r)?t(r):J(r)?e.check({tokenize:xi},t,n)(r):n(r)}}function xi(e,t,n){return Y(e,r,z.whitespace);function r(e){return e===L.eof?n(e):t(e)}}function Si(e){return Ee([br(),Vr(),ei(e),si(),yi()])}function Ci(e){return ke([Fr(),Qr(e),$r(),ni(),hi(),_i()])}var wi=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/Markdown.tsx`;function Ti(e){return fr(e,{allowDangerousHtml:!0,extensions:[Si()],htmlExtensions:[Ci()]})}function Ei({value:e}){return(0,F.jsxDEV)(`div`,{className:`md-static`,dangerouslySetInnerHTML:{__html:Ti(e)}},void 0,!1,{fileName:wi,lineNumber:19,columnNumber:10},this)}var $=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/layout.tsx`;function Di({text:e}){return(0,F.jsxDEV)(Ei,{value:e},void 0,!1,{fileName:$,lineNumber:30,columnNumber:10},this)}function Oi(e,{bridge:t,t:n,computed:r}){if(_(e)){let r=e.key;if(t.isHidden(r))return null;let i=s({kind:m(e)});if(!i)return console.warn(`[LayoutRenderer] no renderer for kind '${m(e)}'`),null;let a=e.type;return{node:(0,F.jsxDEV)(`div`,{onBlur:e=>{f(e.relatedTarget)||t.touch(r)},children:(0,F.jsxDEV)(i.Page,{el:e,field:a,fieldKey:r,value:t.getValue(r),onChange:e=>t.setValue(r,e),error:t.error(r),mode:t.mode,label:a.label?n(a.label):void 0,required:t.requiredOf(r),recordCtx:t.recordCtx},void 0,!1,{fileName:$,lineNumber:83,columnNumber:9},this)},void 0,!1,{fileName:$,lineNumber:82,columnNumber:7},this),layout:h(a)}}if(b(e)){let i=s({kind:m(e)});if(!i)return console.warn(`[LayoutRenderer] no renderer for static kind '${m(e)}'`),null;let a=e.type,o=e.value;if(typeof e.value==`function`)try{o=e.value(ve(t,r))}catch(e){console.warn(`[computed] value function threw`,e),o=void 0}return{node:(0,F.jsxDEV)(i.Page,{el:e,field:a,value:o,mode:`view`,label:a.label?n(a.label):void 0,recordCtx:t.recordCtx},void 0,!1,{fileName:$,lineNumber:117,columnNumber:7},this),layout:h(a)}}if(x(e)||w(e))return null;if(T(e)){let n=s({kind:`button`});return n?{node:(0,F.jsxDEV)(n.Page,{el:e,value:void 0,mode:t.mode,recordCtx:t.recordCtx},void 0,!1,{fileName:$,lineNumber:140,columnNumber:18},this),layout:`scalar`}:null}return null}function ki(e,t,n,r=`wrap`){let i=[],a=[],o=0,s=()=>{a.length&&(i.push({kind:`flow`,items:a,scroll:r===`scroll`}),a=[])};for(let r of e){if(n){if(x(r)){s(),i.push({kind:`divider`});continue}if(w(r)){s(),i.push({kind:`block`,node:(0,F.jsxDEV)(Ai,{textKey:r.text},void 0,!1,{fileName:$,lineNumber:174,columnNumber:41},this)});continue}if(C(r)){s();continue}if(_(r)||b(r)||T(r)){let e=Oi(r,n);if(e==null)continue;if(e.layout===`block`)s(),i.push({kind:`block`,node:e.node});else{let t=_(r)?r.key:`static-${o++}`;a.push({key:t,node:(0,F.jsxDEV)(A.Fragment,{children:e.node},t,!1,{fileName:$,lineNumber:191,columnNumber:19},this)})}continue}continue}if(_(r)){let e=t.renderField(r.key,r.type);if(e==null)continue;h(r.type)===`block`?(s(),i.push({kind:`block`,node:e})):a.push({key:r.key,node:(0,F.jsxDEV)(A.Fragment,{children:e},r.key,!1,{fileName:$,lineNumber:207,columnNumber:47},this)})}else x(r)?(s(),i.push({kind:`divider`})):w(r)?(s(),i.push({kind:`block`,node:(0,F.jsxDEV)(Ai,{textKey:r.text},void 0,!1,{fileName:$,lineNumber:213,columnNumber:39},this)})):C(r)&&s()}return s(),i}function Ai({textKey:e}){let{t}=i();return(0,F.jsxDEV)(Di,{text:t(e)},void 0,!1,{fileName:$,lineNumber:225,columnNumber:10},this)}function ji(e){let t=[];for(let n of e)n.kind===`divider`&&(!t.length||t[t.length-1].kind===`divider`)||t.push(n);for(;t.length&&t[t.length-1].kind===`divider`;)t.pop();return t}function Mi({label:e,icon:t,labelAfter:n,children:r,divider:i=!0}){return(0,F.jsxDEV)(`section`,{className:`flex flex-col min-w-0 ${d}`,children:[e&&(0,F.jsxDEV)(`div`,{className:i?`border-b border-border pb-1.5 mb-2.5`:``,children:(0,F.jsxDEV)(l,{label:e,icon:t,actions:n},void 0,!1,{fileName:$,lineNumber:270,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:269,columnNumber:9},this),(0,F.jsxDEV)(`div`,{className:`flex flex-col min-w-0 ${d}`,children:r},void 0,!1,{fileName:$,lineNumber:273,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:267,columnNumber:5},this)}function Ni({group:e,children:t}){let{t:n}=i();return(0,F.jsxDEV)(Mi,{label:e.label?n(e.label):void 0,icon:e.icon,children:t},void 0,!1,{fileName:$,lineNumber:286,columnNumber:5},this)}function Pi({group:e,children:t}){let{t:n}=i();return(0,F.jsxDEV)(`div`,{className:`flex flex-col gap-1 min-w-0`,children:[e.label&&(0,F.jsxDEV)(`span`,{className:`text-xs text-muted`,children:n(e.label)},void 0,!1,{fileName:$,lineNumber:297,columnNumber:23},this),t]},void 0,!0,{fileName:$,lineNumber:296,columnNumber:5},this)}function Fi({group:e,renderCell:t}){let{t:n}=i(),r=[[]];for(let t of e.fields)C(t)?r.push([]):r[r.length-1].push(t);let a=Math.max(1,...r.map(e=>e.length)),o=!1,s=[];return r.forEach((e,n)=>{for(let r=0;r<a;r++){let i=e[r],a=i?t(i):null;a&&(o=!0),s.push((0,F.jsxDEV)(`div`,{className:`min-w-0`,children:a},`${n}-${r}`,!1,{fileName:$,lineNumber:333,columnNumber:9},this))}}),o?(0,F.jsxDEV)(c.Provider,{value:!0,children:(0,F.jsxDEV)(Mi,{label:e.label?n(e.label):void 0,icon:e.icon,children:(0,F.jsxDEV)(`div`,{className:`overflow-x-auto`,children:(0,F.jsxDEV)(`div`,{className:`grid gap-x-4 gap-y-2 items-start`,style:{gridTemplateColumns:`repeat(${a}, max-content)`},children:s},void 0,!1,{fileName:$,lineNumber:344,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:343,columnNumber:9},this)},void 0,!1,{fileName:$,lineNumber:342,columnNumber:7},this)},void 0,!1,{fileName:$,lineNumber:341,columnNumber:5},this):null}function Ii(e,t){return e.filter(e=>e.kind!==`divider`).length?e.map((e,n)=>{let r=`${t}-${n}`;switch(e.kind){case`flow`:return(0,F.jsxDEV)(p,{items:e.items,scroll:e.scroll},r,!1,{fileName:$,lineNumber:364,columnNumber:16},this);case`block`:return(0,F.jsxDEV)(A.Fragment,{children:e.node},r,!1,{fileName:$,lineNumber:366,columnNumber:16},this);case`group`:return(0,F.jsxDEV)(A.Fragment,{children:e.node},r,!1,{fileName:$,lineNumber:368,columnNumber:16},this);case`divider`:return(0,F.jsxDEV)(`hr`,{className:`border-border`},r,!1,{fileName:$,lineNumber:370,columnNumber:16},this)}}):null}function Li({items:e,ctx:t}){let{t:n}=i(),r=_e(),a=t.bridge?{bridge:t.bridge,t:n,computed:r}:void 0,o=[],c=[],l=()=>{c.length&&(o.push(...ki(c,t,a)),c=[])};for(let n of e)if(v(n))if(l(),a)if(y(n)){let e=n.key,t=a.bridge.getValue(e),r=a.bridge.mode===`view`&&u(t);if(!a.bridge.isHidden(e)&&!r){let r=s({kind:m(n)});if(r){let i=(0,F.jsxDEV)(r.Page,{el:n,value:t,onChange:t=>a.bridge.setValue(e,t),error:a.bridge.error(e),mode:a.bridge.mode,recordCtx:a.bridge.recordCtx},void 0,!1,{fileName:$,lineNumber:411,columnNumber:17},this);o.push({kind:`group`,node:i})}else console.warn(`[LayoutRenderer] no renderer for storage group kind '${m(n)}'`)}}else if(n.display===`sheet`)o.push({kind:`group`,node:(0,F.jsxDEV)(Fi,{group:n,renderCell:e=>v(e)?null:Oi(e,a)?.node??null},void 0,!1,{fileName:$,lineNumber:430,columnNumber:15},this)});else{let e=Ii(ji(ki(n.fields,t,a,n.display===`scroll`?`scroll`:`wrap`)),`g`);if(e)if(n.display===`scroll`)o.push({kind:`group`,node:(0,F.jsxDEV)(Pi,{group:n,children:e},void 0,!1,{fileName:$,lineNumber:444,columnNumber:49},this)});else{let t=s({kind:`group`});t?o.push({kind:`group`,node:(0,F.jsxDEV)(t.Page,{el:n,value:void 0,mode:a.bridge.mode,recordCtx:a.bridge.recordCtx,children:e},void 0,!1,{fileName:$,lineNumber:451,columnNumber:21},this)}):o.push({kind:`group`,node:(0,F.jsxDEV)(Ni,{group:n,children:e},void 0,!1,{fileName:$,lineNumber:457,columnNumber:51},this)})}}else if(y(n)){let e=t.renderGroup?.(n.key,n);e&&o.push({kind:`group`,node:e})}else if(n.display===`sheet`)o.push({kind:`group`,node:(0,F.jsxDEV)(Fi,{group:n,renderCell:e=>_(e)?t.renderField(e.key,e.type):null},void 0,!1,{fileName:$,lineNumber:472,columnNumber:13},this)});else{let e=Ii(ji(ki(n.fields,t,void 0,n.display===`scroll`?`scroll`:`wrap`)),`g`);e&&o.push({kind:`group`,node:n.display===`scroll`?(0,F.jsxDEV)(Pi,{group:n,children:e},void 0,!1,{fileName:$,lineNumber:489,columnNumber:17},this):(0,F.jsxDEV)(Ni,{group:n,children:e},void 0,!1,{fileName:$,lineNumber:490,columnNumber:17},this)})}else c.push(n);l();let f=Ii(ji(o),`l`);return f==null?null:(0,F.jsxDEV)(`div`,{className:`@container flex flex-col min-w-0 ${d}`,children:f},void 0,!1,{fileName:$,lineNumber:503,columnNumber:10},this)}function Ri(e){let{fm:t,mode:n,recordCtx:r}=e,{t:a}=i(),o=de(a),[s]=(0,A.useState)(e.initial),[c,l]=(0,A.useState)(s),[u,d]=(0,A.useState)({}),[f,p]=(0,A.useState)(()=>new Set),m=(0,A.useMemo)(()=>new Set(e.hiddenFields??[]),[e.hiddenFields]);return{values:c,setValues:l,initial:s,errors:u,setErrors:d,touched:f,setTouched:p,bridge:(0,A.useMemo)(()=>({mode:n,recordCtx:r,values:c,getValue:e=>c[e],setValue:(e,n)=>{if(l(t=>({...t,[e]:n})),f.has(e)){let r=t[e],i=r?g(r,n):null;d(t=>{let n={...t};return i?n[e]=o(i.code,i.params):delete n[e],n})}},touch:e=>{p(t=>t.has(e)?t:new Set(t).add(e));let n=t[e],r=n?g(n,c[e]):null;d(t=>{let n={...t};return r?n[e]=o(r.code,r.params):delete n[e],n})},isHidden:e=>{let n=t[e];return!!n?.virtual||m.has(e)||D(n?.hidden,c)},requiredOf:e=>D(t[e]?.required,c),error:e=>u[e]}),[c,u,f,m,t,n,r,o])}}var zi=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/Toolbar.tsx`;function Bi({children:e,actions:t}){return(0,F.jsxDEV)(`div`,{className:`eink-solid sticky top-0 z-20 flex h-[52px] items-center justify-between gap-3 bg-bg/85 px-4 backdrop-blur md:px-6 border-b border-border2 shrink-0`,children:[(0,F.jsxDEV)(`div`,{className:`flex items-center gap-2.5 min-w-0`,children:e},void 0,!1,{fileName:zi,lineNumber:10,columnNumber:7},this),t&&(0,F.jsxDEV)(`div`,{className:`flex items-center gap-2 shrink-0`,children:t},void 0,!1,{fileName:zi,lineNumber:11,columnNumber:19},this)]},void 0,!0,{fileName:zi,lineNumber:9,columnNumber:5},this)}export{P as _,Ei as a,pe as c,le as d,oe as f,se as g,re as h,Mi as i,de as l,ae as m,Ri as n,be as o,ne as p,Li as r,ce as s,Bi as t,fe as u,te as v,ee as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
async function e(e){let t=new FormData;t.append(`file`,e);let n=await fetch(`/api/upload`,{method:`POST`,body:t});return n.ok?(await n.json()).filename:null}function t(e){return`/uploads/${e}`}async function n(e){let t=await fetch(`/api/embed`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({url:e})});return t.ok?await t.json():null}async function r(e,t,n){let r=n&&Object.keys(n).length?`?`+new URLSearchParams(n).toString():``,i=await fetch(`/api/${e}/${t}${r}`);if(!i.ok)throw Error(`Не вдалося завантажити`);return i.json()}async function i(e,t,n){let r=await fetch(`/api/${e}/${t}`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(n)});return r.status===201?{ok:!0,row:await r.json()}:r.status===422?{ok:!1,issues:(await r.json()).issues}:{ok:!1,issues:[{field:``,code:`server`,path:[]}]}}async function a(e,t,n,r){let i=await fetch(`/api/${e}/${t}/${n}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify(r)});return i.ok?{ok:!0,row:await i.json()}:i.status===422?{ok:!1,issues:(await i.json()).issues}:{ok:!1,issues:[{field:``,code:`server`,path:[]}]}}async function o(e,t,n){return(await fetch(`/api/${e}/${t}/${n}`,{method:`DELETE`})).status===204}async function s(){let e=await fetch(`/api/plugins`);if(!e.ok)throw Error(`plugins`);return e.json()}async function c(e,t){let n=await fetch(`/api/plugins/${e}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify({enabled:t})}),r=await n.json().catch(()=>({}));return n.ok?{ok:!0}:{ok:!1,error:r.error??String(n.status),data:r}}async function l(e){let t=await fetch(`/api/plugins/${e}/update`,{method:`POST`}),n=await t.json().catch(()=>({}));return t.ok?{ok:!0}:{ok:!1,error:n.error??String(t.status),stderr:n.stderr}}async function u(){let e=await fetch(`/api/plugins/update-all`,{method:`POST`}),t=await e.json().catch(()=>({}));return e.ok?{ok:!0,updated:t.updated}:{ok:!1,error:t.error??String(e.status),stderr:t.stderr}}async function d(){let e=await fetch(`/api/runtime`);return e.ok?await e.json():{installedVersion:null,latestVersion:null}}async function f(e,t){let n=await fetch(e,{headers:{"content-type":`application/json`},...t}),r=await n.json().catch(()=>({}));return n.ok?{ok:!0,data:r}:{ok:!1,status:n.status,data:r}}function p(){return fetch(`/api/auth/status`).then(e=>e.json())}function m(e,t,n){return f(`/api/auth/setup`,{method:`POST`,body:JSON.stringify({login:e,password:t,displayName:n})})}function h(e,t){return f(`/api/auth/login`,{method:`POST`,body:JSON.stringify({login:e,password:t})})}async function g(){let e=await fetch(`/api/auth/me`);return e.ok?e.json():null}function _(e){return f(`/api/auth/me`,{method:`PATCH`,body:JSON.stringify(e)})}function v(e){return f(`/api/auth/users${e?`?q=${encodeURIComponent(e)}`:``}`)}function y(e){return f(`/api/auth/users`,{method:`POST`,body:JSON.stringify(e)})}function b(e,t){return f(`/api/auth/users/${e}`,{method:`PATCH`,body:JSON.stringify(t)})}function x(e){return f(`/api/auth/users/${e}`,{method:`DELETE`})}function S(){return f(`/api/auth/tokens`)}function C(e,t){return f(`/api/auth/tokens`,{method:`POST`,body:JSON.stringify({name:e,token:t})})}function w(e){return f(`/api/auth/tokens/${e}`,{method:`DELETE`})}function T(){return f(`/api/oauth/grants`)}function E(e){return f(`/api/oauth/grants/${encodeURIComponent(e)}`,{method:`DELETE`})}export{l as C,e as E,u as S,b as T,t as _,_ as a,w as b,y as c,d,T as f,v as g,S as h,p as i,o as l,r as m,g as n,i as o,s as p,m as r,C as s,h as t,x as u,n as v,a as w,c as x,E as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./react-BKp0oIqV.js";import{C as n}from"./button-VZuZjj-j.js";import{i as r,s as i}from"./chunk-KS7C4IRE-dy2r3JTy.js";import{t as a}from"./jsx-dev-runtime-DeBf9dJw.js";import{i as o,n as s}from"./api-V98HaFMa.js";var c=e(t(),1),l=a(),u=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/card.tsx`,d=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`rounded-xl border border-border bg-card text-card-foreground`,e),...t},void 0,!1,{fileName:u,lineNumber:5,columnNumber:3},void 0));d.displayName=`Card`;var f=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`flex flex-col gap-1.5 p-5`,e),...t},void 0,!1,{fileName:u,lineNumber:10,columnNumber:37},void 0));f.displayName=`CardHeader`;var p=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`font-semibold leading-none text-text`,e),...t},void 0,!1,{fileName:u,lineNumber:16,columnNumber:5},void 0));p.displayName=`CardTitle`;var m=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`text-sm text-muted-foreground`,e),...t},void 0,!1,{fileName:u,lineNumber:23,columnNumber:5},void 0));m.displayName=`CardDescription`;var h=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`p-5 pt-0`,e),...t},void 0,!1,{fileName:u,lineNumber:29,columnNumber:37},void 0));h.displayName=`CardContent`;var g=c.forwardRef(({className:e,...t},r)=>(0,l.jsxDEV)(`div`,{ref:r,className:n(`flex items-center p-5 pt-0`,e),...t},void 0,!1,{fileName:u,lineNumber:35,columnNumber:5},void 0));g.displayName=`CardFooter`;var _=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/auth-context.tsx`,v=(0,c.createContext)(null);function y(){let e=(0,c.useContext)(v);if(!e)throw Error(`useAuth() called outside <AuthGate>`);return e}function b({children:e}){let[t,n]=(0,c.useState)({kind:`loading`});return(0,c.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await o();if(e)return;if(t.needsSetup)return n({kind:`needsSetup`});let r=await s();if(e)return;n(r?{kind:`ready`,user:r}:{kind:`needsLogin`})}catch{e||n({kind:`error`})}})(),()=>{e=!0}},[i().pathname]),t.kind===`loading`?null:t.kind===`needsSetup`?(0,l.jsxDEV)(r,{to:`/setup`,replace:!0},void 0,!1,{fileName:_,lineNumber:41,columnNumber:44},this):t.kind===`needsLogin`?(0,l.jsxDEV)(r,{to:`/login`,replace:!0},void 0,!1,{fileName:_,lineNumber:42,columnNumber:44},this):t.kind===`error`?(0,l.jsxDEV)(`div`,{style:{display:`flex`,minHeight:`100dvh`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:`1rem`},children:[(0,l.jsxDEV)(`p`,{children:`Could not check your session.`},void 0,!1,{fileName:_,lineNumber:46,columnNumber:9},this),(0,l.jsxDEV)(`button`,{onClick:()=>window.location.reload(),children:`Reload`},void 0,!1,{fileName:_,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:_,lineNumber:45,columnNumber:7},this):(0,l.jsxDEV)(v.Provider,{value:t.user,children:e},void 0,!1,{fileName:_,lineNumber:51,columnNumber:10},this)}export{y as n,d as r,b as t};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import{t as n}from"./react-BKp0oIqV.js";import{t as r}from"./clsx-enQ3xCtU.js";import{t as i}from"./color-names-CKKZbleV.js";import{t as a}from"./jsx-dev-runtime-DeBf9dJw.js";import{t as o}from"./jsx-runtime-DhzTdv_T.js";var s=t((e=>{(function(){function t(){}function r(e){return``+e}function i(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),r(i)),{$$typeof:d,key:i==null?null:``+i,children:e,containerInfo:t,implementation:n}}function a(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function s(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function c(){var e=f.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
2
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
3
|
-
2. You might be breaking the Rules of Hooks
|
|
4
|
-
3. You might have more than one copy of React in the same app
|
|
5
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=n(),u={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},d=Symbol.for(`react.portal`),f=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return i(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=u.p;try{if(f.T=null,u.p=2,e)return e()}finally{f.T=t,u.p=n,u.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,u.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(t))}typeof e==`string`&&u.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=a(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?u.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:c}):n===`script`&&u.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+o(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+o(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+s(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=s(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=a(t.as,t.crossOrigin),u.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??u.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+o(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+o(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+o(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=a(n,t.crossOrigin);u.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+o(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+o(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=a(t.as,t.crossOrigin),u.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):u.d.m(e))},e.requestFormReset=function(e){u.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c().useFormState(e,t,n)},e.useFormStatus=function(){return c().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),c=t(((e,t)=>{t.exports=s()})),l=e(n()),u=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);_(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},d={},f=(e,t,n,r)=>{_(n)&&d[n]||(_(n)&&(d[n]=new Date),u(e,t,n,r))},p=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},m=(e,t,n)=>{e.loadNamespaces(t,p(e,n))},h=(e,t,n,r)=>{if(_(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return m(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,p(e,r))},g=(e,t,n={})=>!t.languages||!t.languages.length?(f(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),_=e=>typeof e==`string`,v=e=>typeof e==`object`&&!!e,y=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},x=e=>b[e],S={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(y,x),transDefaultProps:void 0},ee=(e={})=>{S={...S,...e}},C=()=>S,w,T=e=>{w=e},te=()=>w,ne=(0,l.createContext)(),re=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},E=t((e=>{(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function r(e,t){f||o.startTransition===void 0||(f=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!p){var r=t();s(n,r)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),p=!0)}r=c({inst:{value:n,getSnapshot:t}});var a=r[0].inst,m=r[1];return u(function(){a.value=n,a.getSnapshot=t,i(a)&&m({inst:a})},[e,n,t]),l(function(){return i(a)&&m({inst:a}),e(function(){i(a)&&m({inst:a})})},[e]),d(n),n}function i(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch{return!0}}function a(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=n(),s=typeof Object.is==`function`?Object.is:t,c=o.useState,l=o.useEffect,u=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,m=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?a:r;e.useSyncExternalStore=o.useSyncExternalStore===void 0?m:o.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),D=t(((e,t)=>{t.exports=E()})),O=D(),k={t:(e,t)=>{if(_(t))return t;if(v(t)&&_(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},ie=()=>()=>{},A=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,l.useContext)(ne)||{},a=n||r||te();a&&!a.reportNamespaces&&(a.reportNamespaces=new re),a||f(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,l.useMemo)(()=>({...C(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,u=e||i||a?.options?.defaultNS,d=_(u)?[u]:u||[`translation`],p=(0,l.useMemo)(()=>d,d);a?.reportNamespaces?.addUsedNamespaces?.(p);let v=(0,l.useRef)(0),y=(0,l.useCallback)(e=>{if(!a)return ie;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{v.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),b=(0,l.useRef)(),x=(0,l.useCallback)(()=>{if(!a)return k;let e=!!(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>g(e,a,o)),n=t.lng||a.language,r=v.current,i=b.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?p:p[0],c,{scopeNs:p}),ready:e,lng:n,keyPrefix:c,revision:r};return b.current=s,s},[a,p,c,o,t.lng]),[S,ee]=(0,l.useState)(0),{t:w,ready:T}=(0,O.useSyncExternalStore)(y,x,x);(0,l.useEffect)(()=>{if(a&&!T&&!s){let e=()=>ee(e=>e+1);t.lng?h(a,t.lng,p,e):m(a,p,e)}},[a,t.lng,p,T,s,S]);let E=a||{},D=(0,l.useRef)(null),A=(0,l.useRef)(),j=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},ae=(0,l.useMemo)(()=>{let e=E,t=e?.language,n=e;e&&(D.current&&D.current.__original===e&&A.current===t?n=D.current:(n=j(e),D.current=n,A.current=t));let r=!T&&!s?(...e)=>(f(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),w(...e)):w,i=[r,n,T];return i.t=r,i.i18n=n,i.ready=T,i},[w,E,T,E.resolvedLanguage,E.language,E.languages]);if(a&&s&&!T){let e=!1;try{e=!0}catch{}throw e&&f(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?h(a,t.lng,p,n):m(a,p,n)})}return ae},j=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ae=(e,t)=>({classGroupId:e,validator:t}),oe=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),M=`-`,N=[],P=`arbitrary..`,F=e=>{let t=L(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return se(e);let n=e.split(M);return I(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?j(i,t):t:i||N}return n[e]||N}}},I=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=I(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(M):e.slice(t).join(M),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},se=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?P+r:void 0})(),L=e=>{let{theme:t,classGroups:n}=e;return ce(n,t)},ce=(e,t)=>{let n=oe();for(let r in e){let i=e[r];R(i,n,r,t)}return n},R=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];z(i,t,n,r)}},z=(e,t,n,r)=>{if(typeof e==`string`){le(e,t,n);return}if(typeof e==`function`){ue(e,t,n,r);return}de(e,t,n,r)},le=(e,t,n)=>{let r=e===``?t:fe(t,e);r.classGroupId=n},ue=(e,t,n,r)=>{if(pe(e)){R(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ae(n,e))},de=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];R(o,fe(t,a),n,r)}},fe=(e,t)=>{let n=e,r=t.split(M),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=oe(),n.nextPart.set(t,i)),n=i}return n},pe=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,me=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},he=`!`,ge=`:`,_e=[],ve=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ye=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ge){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(he)?(c=s.slice(0,-1),l=!0):s.startsWith(he)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ve(t,l,c,u)};if(t){let e=t+ge,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ve(_e,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},be=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},xe=e=>({cache:me(e.cacheSize),parseClassName:ye(e),sortModifiers:be(e),postfixLookupClassGroupIds:Se(e),...F(e)}),Se=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Ce=/\s+/,we=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ce),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+he:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Te=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ee(n))&&(i&&(i+=` `),i+=r);return i},Ee=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ee(e[r]))&&(n&&(n+=` `),n+=t);return n},De=(e,...t)=>{let n,r,i,a,o=o=>(n=xe(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=we(e,n);return i(e,a),a};return a=o,(...e)=>a(Te(...e))},Oe=[],B=e=>{let t=t=>t[e]||Oe;return t.isThemeGetter=!0,t},ke=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ae=/^\((?:(\w[\w-]*):)?(.+)\)$/i,je=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Me=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ne=/\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$/,Pe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ie=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>je.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),U=e=>!!e&&Number.isInteger(Number(e)),Le=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),W=e=>Me.test(e),Re=()=>!0,ze=e=>Ne.test(e)&&!Pe.test(e),Be=()=>!1,Ve=e=>Fe.test(e),He=e=>Ie.test(e),Ue=e=>!G(e)&&!q(e),We=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ge=e=>J(e,st,Be),G=e=>ke.test(e),K=e=>J(e,ct,ze),Ke=e=>J(e,lt,H),qe=e=>J(e,dt,Re),Je=e=>J(e,ut,Be),Ye=e=>J(e,at,Be),Xe=e=>J(e,ot,He),Ze=e=>J(e,ft,Ve),q=e=>Ae.test(e),Qe=e=>Y(e,ct),$e=e=>Y(e,ut),et=e=>Y(e,at),tt=e=>Y(e,st),nt=e=>Y(e,ot),rt=e=>Y(e,ft,!0),it=e=>Y(e,dt,!0),J=(e,t,n)=>{let r=ke.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Y=(e,t,n=!1)=>{let r=Ae.exec(e);return r?r[1]?t(r[1]):n:!1},at=e=>e===`position`||e===`percentage`,ot=e=>e===`image`||e===`url`,st=e=>e===`length`||e===`size`||e===`bg-size`,ct=e=>e===`length`,lt=e=>e===`number`,ut=e=>e===`family-name`,dt=e=>e===`number`||e===`weight`,ft=e=>e===`shadow`,pt=De(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),d=B(`inset-shadow`),f=B(`text-shadow`),p=B(`drop-shadow`),m=B(`blur`),h=B(`perspective`),g=B(`aspect`),_=B(`ease`),v=B(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),q,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ee=()=>[`auto`,`contain`,`none`],C=()=>[q,G,c],w=()=>[V,`full`,`auto`,...C()],T=()=>[U,`none`,`subgrid`,q,G],te=()=>[`auto`,{span:[`full`,U,q,G]},U,q,G],ne=()=>[U,`auto`,q,G],re=()=>[`auto`,`min`,`max`,`fr`,q,G],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...C()],k=()=>[V,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],ie=()=>[V,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],A=()=>[V,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],j=()=>[e,q,G],ae=()=>[...b(),et,Ye,{position:[q,G]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],M=()=>[`auto`,`cover`,`contain`,tt,Ge,{size:[q,G]}],N=()=>[Le,Qe,K],P=()=>[``,`none`,`full`,l,q,G],F=()=>[``,H,Qe,K],I=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[H,Le,et,Ye],ce=()=>[``,`none`,m,q,G],R=()=>[`none`,H,q,G],z=()=>[`none`,H,q,G],le=()=>[H,q,G],ue=()=>[V,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[W],breakpoint:[W],color:[Re],container:[W],"drop-shadow":[W],ease:[`in`,`out`,`in-out`],font:[Ue],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[W],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[W],shadow:[W],spacing:[`px`,H],text:[W],"text-shadow":[W],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,V,G,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,G]}],"container-named":[We],columns:[{columns:[H,G,q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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`],sr:[`sr-only`,`not-sr-only`],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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[U,`auto`,q,G]}],basis:[{basis:[V,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,V,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,H,q,G]}],shrink:[{shrink:[``,H,q,G]}],order:[{order:[U,`first`,`last`,`none`,q,G]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...A()]}],"min-block-size":[{"min-block":[`auto`,...A()]}],"max-block-size":[{"max-block":[`none`,...A()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,Qe,K]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,it,qe]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Le,G]}],"font-family":[{font:[$e,Je,t]}],"font-features":[{"font-features":[G]}],"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-fractions`],tracking:[{tracking:[i,q,G]}],"line-clamp":[{"line-clamp":[H,`none`,q,Ke]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,q,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...I(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,q,K]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[H,`auto`,q,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[U,q,G]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,q,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:M()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},U,q,G],radial:[``,q,G],conic:[U,q,G]},nt,Xe]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...I(),`hidden`,`none`]}],"divide-style":[{divide:[...I(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...I(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,q,G]}],"outline-w":[{outline:[``,H,Qe,K]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,rt,Ze]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,rt,Ze]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[H,K]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,rt,Ze]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[H,q,G]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[q,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,q,G]}],filter:[{filter:[``,`none`,q,G]}],blur:[{blur:ce()}],brightness:[{brightness:[H,q,G]}],contrast:[{contrast:[H,q,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,rt,Ze]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,H,q,G]}],"hue-rotate":[{"hue-rotate":[H,q,G]}],invert:[{invert:[``,H,q,G]}],saturate:[{saturate:[H,q,G]}],sepia:[{sepia:[``,H,q,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,G]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[H,q,G]}],"backdrop-contrast":[{"backdrop-contrast":[H,q,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,q,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,q,G]}],"backdrop-invert":[{"backdrop-invert":[``,H,q,G]}],"backdrop-opacity":[{"backdrop-opacity":[H,q,G]}],"backdrop-saturate":[{"backdrop-saturate":[H,q,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,q,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,q,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,q,G]}],ease:[{ease:[`linear`,`initial`,_,q,G]}],delay:[{delay:[H,q,G]}],animate:[{animate:[`none`,v,q,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":[`scale-3d`],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[q,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":[`translate-none`],zoom:[{zoom:[U,q,G]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],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`,q,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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`,q,G]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[H,Qe,K,Ke]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`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-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`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`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function mt(...e){return pt(r(e))}var X=a(),ht=Object.defineProperty,gt=(e,t)=>ht(e,`name`,{value:t,configurable:!0});function _t(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}gt(_t,`setRef`);function vt(...e){return t=>{let n=!1,r=e.map(e=>{let r=_t(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():_t(e[t],null)}}}}gt(vt,`composeRefs`);function yt(...e){return l.useCallback(vt(...e),e)}gt(yt,`useComposedRefs`);var Z=o(),bt=Object.defineProperty,Q=(e,t)=>bt(e,`name`,{value:t,configurable:!0}),xt=Q(((e,t)=>{let n={...t};for(let r in t){let i=e[r],a=t[r];if(/^on[A-Z]/.test(r))if(i&&a){let e=typeof i==`function`,t=typeof a==`function`;(!e||!t)&&console.warn(`Slot: Expected a function for ${r}, but received ${[typeof i,typeof a].filter(e=>e!==`function`).join(` and `)}.`),n[r]=(...n)=>{let r=t?a(...n):void 0;return e&&i(...n),r}}else i&&(n[r]=i);else r===`style`?n[r]={...typeof i==`object`?i:null,...typeof a==`object`?a:null}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=St(a,i))}return{...e,...n}}),`mergeProps`);function St(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Q(St,`concatAriaDescribedby`);var Ct=l.createContext(xt);Ct.displayName=`SlotContext`;function wt(e){let t=l.forwardRef((t,n)=>{let r=l.useContext(Ct),{children:i,mergeProps:a=r,...o}=t,s=null,c=!1,u=[];Mt(i)&&typeof It==`function`&&(i=It(i._payload)),l.Children.forEach(i,e=>{if(At(e)){c=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Mt(n)&&typeof It==`function`&&(n=It(n._payload)),s=Ot(t,n),u.push(s?.props?.children)}else u.push(e)}),s?s=l.cloneElement(s,void 0,u):!c&&l.Children.count(i)===1&&l.isValidElement(i)&&(s=i);let d=s?kt(s):void 0,f=yt(n,d);if(!s){if(i||i===0)throw Error(c?Ft(e):Pt(e));return i}let p=a(o,s.props??{});return s.type!==l.Fragment&&(p.ref=n?f:d),l.cloneElement(s,p)});return t.displayName=`${e}.Slot`,t}Q(wt,`createSlot`);var Tt=wt(`Slot`),Et=Symbol.for(`radix.slottable`);function Dt(e){let t=Q(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Et,t}Q(Dt,`createSlottable`);var Ot=Q((e,t)=>{if(`child`in e.props){let t=e.props.child;return l.isValidElement(t)?l.cloneElement(t,void 0,e.props.children(t.props.children)):null}return l.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function kt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Q(kt,`getElementRef`);function At(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Et}Q(At,`isSlottable`);var jt=Symbol.for(`react.lazy`);function Mt(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===jt&&`_payload`in e&&Nt(e._payload)}Q(Mt,`isLazyComponent`);function Nt(e){return typeof e==`object`&&!!e&&`then`in e}Q(Nt,`isPromiseLike`);var Pt=Q(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ft=Q(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),It=l.use,Lt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Rt=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),zt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Bt=e=>{let t=zt(e);return t.charAt(0).toUpperCase()+t.slice(1)},Vt={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`},Ht=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ut=(0,l.createContext)({}),Wt=()=>(0,l.useContext)(Ut),Gt=(0,l.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=Wt()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,l.createElement)(`svg`,{ref:c,...Vt,width:t??u??Vt.width,height:t??u??Vt.height,stroke:e??p,strokeWidth:h,className:Lt(`lucide`,m,i),...!a&&!Ht(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),$=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(Gt,{ref:i,iconNode:t,className:Lt(`lucide-${Rt(Bt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Bt(e),n},Kt=$(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),qt=$(`battery-full`,[[`path`,{d:`M10 10v4`,key:`1mb2ec`}],[`path`,{d:`M14 10v4`,key:`1nt88p`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 10v4`,key:`1n77qd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Jt=$(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),Yt=$(`bus`,[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]),Xt=$(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),Zt=$(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Qt=$(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),$t=$(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),en=$(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),tn=$(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),nn=$(`cooking-pot`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`u0tga0`}],[`path`,{d:`m4 8 16-4`,key:`16g0ng`}],[`path`,{d:`m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8`,key:`12cejc`}]]),rn=$(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),an=$(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),on=$(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),sn=$(`folder-output`,[[`path`,{d:`M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5`,key:`1yk7aj`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m5 10-3 3 3 3`,key:`1r8ie0`}]]),cn=$(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),ln=$(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),un=$(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),dn=$(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),fn=$(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),pn=$(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),mn=$(`hospital`,[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M14 9h-4`,key:`1w2s2s`}],[`path`,{d:`M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2`,key:`1tthqt`}],[`path`,{d:`M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16`,key:`dw4p4i`}]]),hn=$(`hotel`,[[`path`,{d:`M10 22v-6.57`,key:`1wmca3`}],[`path`,{d:`M12 11h.01`,key:`z322tv`}],[`path`,{d:`M12 7h.01`,key:`1ivr5q`}],[`path`,{d:`M14 15.43V22`,key:`1q2vjd`}],[`path`,{d:`M15 16a5 5 0 0 0-6 0`,key:`o9wqvi`}],[`path`,{d:`M16 11h.01`,key:`xkw8gn`}],[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 7h.01`,key:`1vti4s`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),gn=$(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),_n=$(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),vn=$(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),yn=$(`landmark`,[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]),bn=$(`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:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),xn=$(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Sn=$(`map-pin`,[[`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`}]]),Cn=$(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),wn=$(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Tn=$(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),En=$(`paint-roller`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`2`,rx:`2`,key:`jcyz7m`}],[`path`,{d:`M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2`,key:`1b9h7c`}],[`rect`,{width:`4`,height:`6`,x:`8`,y:`16`,rx:`1`,key:`d6e7yl`}]]),Dn=$(`pill`,[[`path`,{d:`m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z`,key:`wa1lgi`}],[`path`,{d:`m8.5 8.5 7 7`,key:`rvfmvr`}]]),On=$(`plane-takeoff`,[[`path`,{d:`M2 22h20`,key:`272qi7`}],[`path`,{d:`M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z`,key:`fkigj9`}]]),kn=$(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),An=$(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),jn=$(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Mn=$(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),Nn=$(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),Pn=$(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),Fn=$(`receipt`,[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),In=$(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Ln=$(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),Rn=$(`ruler`,[[`path`,{d:`M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z`,key:`icamh8`}],[`path`,{d:`m14.5 12.5 2-2`,key:`inckbg`}],[`path`,{d:`m11.5 9.5 2-2`,key:`fmmyf7`}],[`path`,{d:`m8.5 6.5 2-2`,key:`vc6u1g`}],[`path`,{d:`m17.5 15.5 2-2`,key:`wo5hmg`}]]),zn=$(`satellite`,[[`path`,{d:`m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5`,key:`dzhfyz`}],[`path`,{d:`M16.5 7.5 19 5`,key:`1ltcjm`}],[`path`,{d:`m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5`,key:`nfoymv`}],[`path`,{d:`M9 21a6 6 0 0 0-6-6`,key:`1iajcf`}],[`path`,{d:`M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z`,key:`nv9zqy`}]]),Bn=$(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Vn=$(`shield`,[[`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`}]]),Hn=$(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Un=$(`soup`,[[`path`,{d:`M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z`,key:`4rw317`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M19.5 12 22 6`,key:`shfsr5`}],[`path`,{d:`M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62`,key:`rpc6vp`}],[`path`,{d:`M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62`,key:`1lf63m`}],[`path`,{d:`M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62`,key:`97tijn`}]]),Wn=$(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Gn=$(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Kn=$(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),qn=$(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Jn=$(`ticket`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]),Yn=$(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Xn=$(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Zn=$(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Qn=$(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),$n=$(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),er=$(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),tr=$(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),nr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/lucide.tsx`,rr={"id-card":_n,plane:kn,plus:jn,globe:fn,sprout:Wn,"cooking-pot":nn,"sliders-horizontal":Hn,ticket:Jn,hospital:mn,hotel:hn,user:Xn,users:Zn,pill:Dn,"clipboard-list":en,"radio-tower":Pn,package:Tn,"battery-full":qt,link:xn,monitor:wn,rocket:Ln,bus:Yt,shield:Vn,"plane-takeoff":On,satellite:zn,"flask-conical":on,stethoscope:qn,soup:Un,glasses:dn,puzzle:Mn,settings:Bn,"alert-triangle":Yn,hand:pn,"map-pin":Sn,gauge:ln,"door-open":rn,"paint-roller":En,zap:tr,calendar:Zt,clock:tn,"calendar-clock":Xt,"arrow-left-right":Kt,bug:Jt,check:Qt,droplet:an,folder:cn,"folder-output":sn,ghost:un,house:gn,info:vn,landmark:yn,layers:bn,play:An,radar:Nn,receipt:Fn,"refresh-cw":In,ruler:Rn,square:Gn,wallet:Qn,wifi:$n,x:er,star:Kn,minus:Cn};function ir(e,t,n,r){let i=rr[e];return i?(0,X.jsxDEV)(i,{size:t,className:n,strokeWidth:r},void 0,!1,{fileName:nr,lineNumber:137,columnNumber:10},this):null}var ar=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/flag.tsx`;function or(e,t,n){return(0,X.jsxDEV)(`span`,{className:`fi fi-${e.toLowerCase()} ${n??``}`,style:{width:t,height:t*.75,display:`inline-block`,borderRadius:2}},void 0,!1,{fileName:ar,lineNumber:7,columnNumber:5},this)}var sr={outline:{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`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},cr=((e,t,n,r)=>{let i=(0,l.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...u},d)=>(0,l.createElement)(`svg`,{ref:d,...sr[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...u},[o&&(0,l.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i})(`outline`,`drone`,`Drone`,[[`path`,{d:`M10 10h4v4h-4l0 -4`,key:`svg-0`}],[`path`,{d:`M10 10l-3.5 -3.5`,key:`svg-1`}],[`path`,{d:`M9.96 6a3.5 3.5 0 1 0 -3.96 3.96`,key:`svg-2`}],[`path`,{d:`M14 10l3.5 -3.5`,key:`svg-3`}],[`path`,{d:`M18 9.96a3.5 3.5 0 1 0 -3.96 -3.96`,key:`svg-4`}],[`path`,{d:`M14 14l3.5 3.5`,key:`svg-5`}],[`path`,{d:`M14.04 18a3.5 3.5 0 1 0 3.96 -3.96`,key:`svg-6`}],[`path`,{d:`M10 14l-3.5 3.5`,key:`svg-7`}],[`path`,{d:`M6 14.04a3.5 3.5 0 1 0 3.96 3.96`,key:`svg-8`}]]),lr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/tabler.tsx`,ur={drone:cr};function dr(e,t,n,r){let i=ur[e];return i?(0,X.jsxDEV)(i,{size:t,className:n,stroke:r??2},void 0,!1,{fileName:lr,lineNumber:12,columnNumber:10},this):null}var fr=`#2496ED`,pr=l.forwardRef(function({title:e=`Docker`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=fr),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Z.jsx)(`title`,{children:e}),(0,Z.jsx)(`path`,{d:`M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z`})]})}),mr=`#181717`,hr=l.forwardRef(function({title:e=`GitHub`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=mr),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Z.jsx)(`title`,{children:e}),(0,Z.jsx)(`path`,{d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`})]})}),gr=`#18BCF2`,_r=l.forwardRef(function({title:e=`Home Assistant`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=gr),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Z.jsx)(`title`,{children:e}),(0,Z.jsx)(`path`,{d:`M22.939 10.627 13.061.749a1.505 1.505 0 0 0-2.121 0l-9.879 9.878C.478 11.21 0 12.363 0 13.187v9c0 .826.675 1.5 1.5 1.5h9.227l-4.063-4.062a2.034 2.034 0 0 1-.664.113c-1.13 0-2.05-.92-2.05-2.05s.92-2.05 2.05-2.05 2.05.92 2.05 2.05c0 .233-.041.456-.113.665l3.163 3.163V9.928a2.05 2.05 0 0 1-1.15-1.84c0-1.13.92-2.05 2.05-2.05s2.05.92 2.05 2.05a2.05 2.05 0 0 1-1.15 1.84v8.127l3.146-3.146A2.051 2.051 0 0 1 18 12.239c1.13 0 2.05.92 2.05 2.05s-.92 2.05-2.05 2.05c-.25 0-.488-.047-.709-.13L12.9 20.602v3.088h9.6c.825 0 1.5-.675 1.5-1.5v-9c0-.825-.477-1.977-1.061-2.561z`})]})}),vr=`#0082C9`,yr=l.forwardRef(function({title:e=`Nextcloud`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=vr),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Z.jsx)(`title`,{children:e}),(0,Z.jsx)(`path`,{d:`M12.018 6.537c-2.5 0-4.6 1.712-5.241 4.015-.56-1.232-1.793-2.105-3.225-2.105A3.569 3.569 0 0 0 0 12a3.569 3.569 0 0 0 3.552 3.553c1.432 0 2.664-.874 3.224-2.106.641 2.304 2.742 4.016 5.242 4.016 2.487 0 4.576-1.693 5.231-3.977.569 1.21 1.783 2.067 3.198 2.067A3.568 3.568 0 0 0 24 12a3.569 3.569 0 0 0-3.553-3.553c-1.416 0-2.63.858-3.199 2.067-.654-2.284-2.743-3.978-5.23-3.977zm0 2.085c1.878 0 3.378 1.5 3.378 3.378 0 1.878-1.5 3.378-3.378 3.378A3.362 3.362 0 0 1 8.641 12c0-1.878 1.5-3.378 3.377-3.378zm-8.466 1.91c.822 0 1.467.645 1.467 1.468s-.644 1.467-1.467 1.468A1.452 1.452 0 0 1 2.085 12c0-.823.644-1.467 1.467-1.467zm16.895 0c.823 0 1.468.645 1.468 1.468s-.645 1.468-1.468 1.468A1.452 1.452 0 0 1 18.98 12c0-.823.644-1.467 1.467-1.467z`})]})}),br=`#0891D1`,xr=l.forwardRef(function({title:e=`Syncthing`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=br),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,Z.jsx)(`title`,{children:e}),(0,Z.jsx)(`path`,{d:`M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm0 2.412c3.115 0 5.885 1.5 7.629 3.815a1.834 1.834 0 0 1 1.564 3.162c.23.818.354 1.68.354 2.57a9.504 9.504 0 0 1-2.166 6.05c.128.281.189.595.162.92a1.854 1.854 0 0 1-2.004 1.678 1.86 1.86 0 0 1-.877-.322A9.486 9.486 0 0 1 12 21.505c-3.84 0-7.154-2.277-8.668-5.552-.3-.01-.601-.092-.879-.254-.858-.51-1.144-1.634-.633-2.513.164-.276.39-.493.653-.643a9.62 9.62 0 0 1-.02-.584c0-5.265 4.282-9.547 9.547-9.547zm0 1.227a8.311 8.311 0 0 0-8.31 8.683c.22.036.439.111.644.23.323.2.564.484.713.805l6.984-.644a1.78 1.78 0 0 1 .787-1.08c.288-.19.612-.286.936-.295.34-.01.68.08.978.254l3.51-2.914a1.82 1.82 0 0 1 .317-1.84A8.3 8.3 0 0 0 12 3.638zm7.027 5.98-3.502 2.91a1.829 1.829 0 0 1-.23 1.719l1.904 2.744c.212-.06.436-.085.668-.066.238.024.46.092.66.193a8.285 8.285 0 0 0 1.793-5.16 8.38 8.38 0 0 0-.265-2.092 1.835 1.835 0 0 1-1.028-.248zm-6.886 4.315-6.975.644a1.8 1.8 0 0 1-.66 1.004A8.312 8.312 0 0 0 12 20.279a8.294 8.294 0 0 0 3.938-.986 1.845 1.845 0 0 1-.075-.69c.028-.341.148-.65.332-.908L14.29 14.95a1.839 1.839 0 0 1-2.148-1.015z`})]})}),Sr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/simple.tsx`,Cr={github:hr,syncthing:xr,docker:pr,"home-assistant":_r,nextcloud:yr};function wr(e,t,n){let r=Cr[e];return r?(0,X.jsxDEV)(r,{size:t,className:n,color:`currentColor`},void 0,!1,{fileName:Sr,lineNumber:23,columnNumber:10},this):null}var Tr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/icons/color.tsx`,Er=new Map(i.map(e=>[e.name,e.hex])),Dr=/^#[0-9a-fA-F]{6}$/;function Or(e,t,n){let r=Dr.test(e)?e:Er.get(e);return r?(0,X.jsxDEV)(`span`,{className:`shrink-0 inline-block rounded-full border border-border/60 ${n??``}`,style:{width:t,height:t,backgroundColor:r}},void 0,!1,{fileName:Tr,lineNumber:13,columnNumber:5},this):null}var kr={lucide:ir,flag:or,tb:dr,si:wr,color:Or};function Ar(e,t,n,r){let i=e.indexOf(`:`);if(i===-1)return;let a=kr[e.slice(0,i)];if(a)return a(e.slice(i+1),t,n,r)??void 0}var jr=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/Icon.tsx`;function Mr({name:e,size:t=16,className:n,strokeWidth:r}){if(!e)return null;let i=Ar(e,t,n,r);return i===void 0?(console.warn(`[Icon] невідома іконка: ${e}`),(0,X.jsxDEV)($t,{size:t,className:n,strokeWidth:r},void 0,!1,{fileName:jr,lineNumber:24,columnNumber:10},this)):(0,X.jsxDEV)(X.Fragment,{children:i},void 0,!1,{fileName:jr,lineNumber:22,columnNumber:34},this)}var Nr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Pr=r,Fr=(e,t)=>n=>{if(t?.variants==null)return Pr(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Nr(t)||Nr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Pr(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ir=`/home/grigorii/Projects/GitHub/grigorii-horos/coffer/packages/web/components/ui/button.tsx`,Lr=Fr(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-accent2`,destructive:`bg-destructive text-destructive-foreground hover:opacity-90`,outline:`border border-border bg-transparent text-text hover:bg-elevated hover:border-border2`,secondary:`bg-secondary text-secondary-foreground hover:bg-border`,ghost:`text-muted hover:bg-elevated hover:text-text`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-lg px-6`,icon:`h-9 w-9`,iconSm:`h-8 w-8 rounded-md`,iconXs:`h-8 w-8 rounded-md`}},defaultVariants:{variant:`default`,size:`default`}}),Rr=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,X.jsxDEV)(r?Tt:`button`,{className:mt(Lr({variant:t,size:n,className:e})),ref:a,...i},void 0,!1,{fileName:Ir,lineNumber:40,columnNumber:12},void 0));Rr.displayName=`Button`;export{mt as C,ee as D,T as E,c as O,yt as S,D as T,tn as _,er as a,Tt as b,In as c,wn as d,Cn as f,cn as g,fn as h,Mr as i,jn as l,gn as m,Lr as n,Kn as o,Sn as p,Fr as r,Bn as s,Rr as t,An as u,Qt as v,A as w,wt as x,$ as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./dist-Cnq8rabN.js";export{e as javascript};
|