@vitejs/devtools-vite 0.0.0-alpha.16 → 0.0.0-alpha.17

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.
Files changed (49) hide show
  1. package/dist/index.d.mts +19 -10
  2. package/dist/index.mjs +0 -11
  3. package/dist/nitro.json +1 -1
  4. package/dist/public/200.html +1 -1
  5. package/dist/public/404.html +1 -1
  6. package/dist/public/_nuxt/{D3IV73AC.js → 7pdU4mzw.js} +1 -1
  7. package/dist/public/_nuxt/B661rCRY.js +6 -0
  8. package/dist/public/_nuxt/{BaiUA85t.js → BB7zYkKg.js} +1 -1
  9. package/dist/public/_nuxt/{Bwl74Dmc.js → BBFR_Uo5.js} +1 -1
  10. package/dist/public/_nuxt/{CwH022lo.js → BO4TB9gH.js} +1 -1
  11. package/dist/public/_nuxt/{CW2IEEV4.js → BVY1sWiJ.js} +1 -1
  12. package/dist/public/_nuxt/{CurpbAUw.js → BYCB-Hif.js} +1 -1
  13. package/dist/public/_nuxt/{BFpsRNSh.js → BdsP-Cx2.js} +1 -1
  14. package/dist/public/_nuxt/{NcoMSw9p.js → BiQ0ZhR_.js} +1 -1
  15. package/dist/public/_nuxt/{Bdpt9CY1.js → Bl_zhAit.js} +1 -1
  16. package/dist/public/_nuxt/{n0_Vc1O0.js → BsfPzBLD.js} +2 -2
  17. package/dist/public/_nuxt/{C0EU2JTm.js → BwrSljRH.js} +1 -1
  18. package/dist/public/_nuxt/{CAUg2nFN.js → CHXCO5ia.js} +1 -1
  19. package/dist/public/_nuxt/{CYdbuFTi.js → CHrIIE6Z.js} +1 -1
  20. package/dist/public/_nuxt/{CuP828Ev.js → CI-Sc-2P.js} +1 -1
  21. package/dist/public/_nuxt/{BIVRCSMb.js → C_cs-58z.js} +1 -1
  22. package/dist/public/_nuxt/{CPaPq6PM.js → CoLW5wV8.js} +1 -1
  23. package/dist/public/_nuxt/{DCH6tnYG.js → CrP3spb8.js} +1 -1
  24. package/dist/public/_nuxt/{BZ-bSyWq.js → Cv1sf0OD.js} +1 -1
  25. package/dist/public/_nuxt/D-NARtgK.js +1 -0
  26. package/dist/public/_nuxt/{DnfHXPIS.js → D7fGBzoc.js} +1 -1
  27. package/dist/public/_nuxt/{KahQcwFc.js → DAv0Rzal.js} +1 -1
  28. package/dist/public/_nuxt/{iqmTIKrs.js → DHD8rbcK.js} +1 -1
  29. package/dist/public/_nuxt/{BkjxFYSI.js → DQDcWwzr.js} +1 -1
  30. package/dist/public/_nuxt/{CFJX1-o6.js → Dd9_UU0g.js} +1 -1
  31. package/dist/public/_nuxt/{1wmGBmx3.js → DdkDM4fj.js} +1 -1
  32. package/dist/public/_nuxt/{C92JN8-1.js → Ivdx0lA9.js} +1 -1
  33. package/dist/public/_nuxt/{DAYnNRKo.js → RlFrOrwQ.js} +1 -1
  34. package/dist/public/_nuxt/{DSJ0HTzo.js → VMul6hew.js} +1 -1
  35. package/dist/public/_nuxt/{_session_.B0BbH92J.css → _session_.BXMlcDmB.css} +1 -1
  36. package/dist/public/_nuxt/builds/latest.json +1 -1
  37. package/dist/public/_nuxt/builds/meta/f71a649b-f47c-44eb-9005-86c44268b9bf.json +1 -0
  38. package/dist/public/_nuxt/{entry.DKbtHB8Z.css → entry.C1YP59mZ.css} +1 -1
  39. package/dist/public/_nuxt/{B4sg2h3A.js → f1KvgLIQ.js} +1 -1
  40. package/dist/public/_nuxt/{cT-zQbp8.js → falkWS6X.js} +1 -1
  41. package/dist/public/_nuxt/{BTOJgFG9.js → mbqImpEE.js} +1 -1
  42. package/dist/public/_nuxt/{C69S_2QT.js → sTN5Ot43.js} +1 -1
  43. package/dist/public/_nuxt/{BZK-pdMD.js → vlGwL1DD.js} +1 -1
  44. package/dist/public/_nuxt/{W7DZ1OHe.js → zcv9DqOS.js} +1 -1
  45. package/dist/public/index.html +1 -1
  46. package/package.json +4 -4
  47. package/dist/public/_nuxt/CYG9lvnx.js +0 -1
  48. package/dist/public/_nuxt/Cysfad9V.js +0 -6
  49. package/dist/public/_nuxt/builds/meta/cd27d01e-b5bf-4470-b74c-544c8db5078a.json +0 -1
@@ -1,4 +1,4 @@
1
- import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"./Cysfad9V.js";import{t as pe}from"./CFJX1-o6.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./BkjxFYSI.js";import{n as ye}from"./DAYnNRKo.js";import{r as be,t as xe}from"./B4sg2h3A.js";import{t as Se}from"./DnfHXPIS.js";import"./DnpfwSMy.js";import{t as Ce}from"./C92JN8-1.js";import{n as q,t as we}from"./DCH6tnYG.js";import{t as J}from"./D3IV73AC.js";import{n as Te,r as Ee,t as Y}from"./BZK-pdMD.js";import{t as De}from"./CwH022lo.js";import{n as Oe,t as ke}from"./cT-zQbp8.js";import{t as Ae}from"./iqmTIKrs.js";import{n as je,r as Me}from"./C69S_2QT.js";import{t as Ne}from"./NcoMSw9p.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./C0EU2JTm.js";import{t as Ve}from"./CW2IEEV4.js";import{t as He}from"./CPaPq6PM.js";import{t as Ue}from"./BTOJgFG9.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,`​`);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,`​`):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
1
+ import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"./B661rCRY.js";import{t as pe}from"./Dd9_UU0g.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./DQDcWwzr.js";import{n as ye}from"./RlFrOrwQ.js";import{r as be,t as xe}from"./f1KvgLIQ.js";import{t as Se}from"./D7fGBzoc.js";import"./DnpfwSMy.js";import{t as Ce}from"./Ivdx0lA9.js";import{n as q,t as we}from"./CrP3spb8.js";import{t as J}from"./7pdU4mzw.js";import{n as Te,r as Ee,t as Y}from"./vlGwL1DD.js";import{t as De}from"./BO4TB9gH.js";import{n as Oe,t as ke}from"./falkWS6X.js";import{t as Ae}from"./DHD8rbcK.js";import{n as je,r as Me}from"./sTN5Ot43.js";import{t as Ne}from"./BiQ0ZhR_.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./BwrSljRH.js";import{t as Ve}from"./BVY1sWiJ.js";import{t as He}from"./CoLW5wV8.js";import{t as Ue}from"./mbqImpEE.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>`€`&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,`​`);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,`​`):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
2
2
 
3
3
  b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
4
4
  `,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)==`\r`?i-1:i),o=a.indexOf(`\r`);o==-1?(n.push(a),t=i+1):(n.push(a.slice(0,o)),t+=o+1)}return n},Ue=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints(`StartToEnd`,t)!=0},We=(function(){var e=k(`div`);return`oncopy`in e?!0:(e.setAttribute(`oncopy`,`return;`),typeof e.oncopy==`function`)})(),Ge=null;function Ke(e){if(Ge!=null)return Ge;var t=O(e,k(`span`,`x`)),n=t.getBoundingClientRect(),r=j(t,0,1).getBoundingClientRect();return Ge=Math.abs(n.left-r.left)>1}var qe={},Je={};function Ye(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Xe(e,t){Je[e]=t}function Ze(e){if(typeof e==`string`&&Je.hasOwnProperty(e))e=Je[e];else if(e&&typeof e.name==`string`&&Je.hasOwnProperty(e.name)){var t=Je[e.name];typeof t==`string`&&(t={name:t}),e=de(t,e),e.name=t.name}else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze(`application/xml`);else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze(`application/json`);return typeof e==`string`?{name:e}:e||{name:`null`}}function Qe(e,t){t=Ze(t);var n=qe[t.name];if(!n)return Qe(e,`text/plain`);var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r[`_`+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var $e={};function et(e,t){B(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function tt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function nt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function rt(e,t,n){return e.startState?e.startState(t,n):!0}var it=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e==`string`?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},it.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},it.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},it.prototype.backUp=function(e){this.pos-=e},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(e,t,n){if(typeof e==`string`){var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},it.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},it.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function X(e,t){if(t-=e.first,t<0||t>=e.size)throw Error(`There is no line `+(t+e.first)+` in the document.`);for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}function at(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function ot(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function st(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ct(e){if(e.parent==null)return null;for(var t=e.parent,n=H(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function lt(e,t){var n=e.first;outer:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue outer}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function ut(e,t){return t>=e.first&&t<e.first+e.size}function dt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Z(e,t,n){if(n===void 0&&(n=null),!(this instanceof Z))return new Z(e,t,n);this.line=e,this.ch=t,this.sticky=n}function Q(e,t){return e.line-t.line||e.ch-t.ch}function ft(e,t){return e.sticky==t.sticky&&Q(e,t)==0}function pt(e){return Z(e.line,e.ch)}function mt(e,t){return Q(e,t)<0?t:e}function ht(e,t){return Q(e,t)<0?e:t}function gt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function $(e,t){if(t.line<e.first)return Z(e.first,0);var n=e.first+e.size-1;return t.line>n?Z(n,X(e,n).text.length):_t(t,X(e,t.line).text.length)}function _t(e,t){var n=e.ch;return n==null||n>t?Z(e.line,t):n<0?Z(e.line,0):e}function vt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=$(e,t[r]);return n}var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,``),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,tt(e.mode,t.state),n,t.lookAhead):new bt(e,tt(e.mode,t),n)},bt.prototype.save=function(e){var t=e===!1?this.state:tt(this.doc.mode,this.state);return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};function xt(e,t,n,r){var i=[e.state.modeGen],a={};At(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,At(e,t.text,s.mode,n,function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,`overlay `+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+` `:``)+`overlay `+t}},a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function St(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ct(e,ct(t)),i=t.text.length>e.options.maxHighlightLength&&tt(e.doc.mode,r.state),a=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&=null,n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var a=jt(e,t,n),o=a>r.first&&X(r,a-1).stateAfter,s=o?bt.fromSaved(r,o,a):new bt(r,rt(r.mode),a);return r.iter(a,t,function(n){wt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function wt(e,t,n,r){var i=e.doc.mode,a=new it(t,e.options.tabSize,n);for(a.start=a.pos=r||0,t==``&&Tt(i,n.state);!a.eol();)Et(i,a,n.state),a.start=a.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=nt(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=nt(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw Error(`Mode `+e.name+` failed to advance stream.`)}var Dt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i=e.doc,a=i.mode,o;t=$(i,t);var s=X(i,t.line),c=Ct(e,t.line,n),l=new it(s.text,e.options.tabSize,c),u;for(r&&(u=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,o=Et(a,l,c.state),r&&u.push(new Dt(l,o,tt(i.mode,c.state)));return r?u:new Dt(l,o,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?`bgClass`:`textClass`;t[r]==null?t[r]=n[2]:RegExp(`(?:^|\\s)`+n[2]+`(?:$|\\s)`).test(t[r])||(t[r]+=` `+n[2])}return e}function At(e,t,n,r,i,a,o){var s=n.flattenSpans;s??=e.options.flattenSpans;var c=0,l=null,u=new it(t,e.options.tabSize,r),d,f=e.options.addModeClass&&[null];for(t==``&&kt(Tt(n,r.state),a);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,o&&wt(e,t,r,u.pos),u.pos=t.length,d=null):d=kt(Et(n,u,r.state,f),a),f){var p=f[0].name;p&&(d=`m-`+(d?p+` `+d:p))}if(!s||l!=d){for(;c<u.start;)c=Math.min(u.start,c+5e3),i(c,l);l=d}u.start=u.pos}for(;c<u.pos;){var m=Math.min(u.pos,c+5e3);i(m,l),c=m}}function jt(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=X(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof yt?l.lookAhead:0)<=a.modeFrontier))return s;var u=V(c.text,null,e.options.tabSize);(i==null||r>u)&&(i=s-1,r=u)}return i}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=X(e,r).stateAfter;if(i&&(!(i instanceof yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,Pt=!1;function Ft(){Nt=!0}function It(){Pt=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function zt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||=[]).push(e[r]);return n}function Bt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||=new WeakSet);r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Vt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&o.type==`bookmark`&&(!n||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||=[]).push(new Lt(o,a.from,s?null:a.to))}}return r}function Ht(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.to==null||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&o.type==`bookmark`&&(!n||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||=[]).push(new Lt(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function Ut(e,t){if(t.full)return null;var n=ut(e,t.from.line)&&X(e,t.from.line).markedSpans,r=ut(e,t.to.line)&&X(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=Q(t.from,t.to)==0,s=Vt(n,i,o),c=Ht(r,a,o),l=t.text.length==1,u=K(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(f.to==null){var p=Rt(c,f.marker);p?l&&(f.to=p.to==null?null:p.to+u):f.to=i}}if(c)for(var m=0;m<c.length;++m){var h=c[m];h.to!=null&&(h.to+=u),h.from==null?Rt(s,h.marker)||(h.from=u,l&&(s||=[]).push(h)):(h.from+=u,l&&(s||=[]).push(h))}s&&=Wt(s),c&&c!=s&&(c=Wt(c));var g=[s];if(!l){var _=t.text.length-2,v;if(_>0&&s)for(var y=0;y<s.length;++y)s[y].to??(v||=[]).push(new Lt(s[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(c)}return g}function Wt(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Gt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!r||H(r,n)==-1)&&(r||=[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(Q(l.to,s.from)<0||Q(l.from,s.to)>0)){var u=[c,1],d=Q(l.from,s.from),f=Q(l.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Jt(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function Xt(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),a=Q(r.from,i.from)||Jt(e)-Jt(t);return a?-a:Q(r.to,i.to)||Yt(e)-Yt(t)||t.id-e.id}function Zt(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=void 0,a=0;a<n.length;++a)i=n[a],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||Xt(r,i.marker)<0)&&(r=i.marker);return r}function Qt(e){return Zt(e,!0)}function $t(e){return Zt(e,!1)}function en(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||Xt(r,a.marker)<0)&&(r=a.marker)}return r}function tn(e,t,n,r,i){var a=X(e,t),o=Pt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=Q(l.from,n)||Jt(c.marker)-Jt(i),d=Q(l.to,r)||Yt(c.marker)-Yt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.to,n)>=0:Q(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.from,r)<=0:Q(l.from,r)<0)))return!0}}}function nn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function rn(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function an(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||=[]).push(e);return n}function on(e,t){var n=X(e,t),r=nn(n);return n==r?t:ct(r)}function sn(e,t){if(t>e.lastLine())return t;var n=X(e,t),r;if(!cn(e,n))return t;for(;r=$t(n);)n=r.find(1,!0).line;return ct(n)+1}function cn(e,t){var n=Pt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed&&(r.from==null||!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&ln(e,t,r)))return!0}}function ln(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return ln(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if(i=t.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function un(e){e=nn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}function dn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=Qt(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=$t(r);){var a=n.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function fn(e){var t=e.display,n=e.doc;t.maxLine=X(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1};pn.prototype.lineNo=function(){return ct(this)},Ae(pn);function mn(e,t,n,r){e.text=t,e.stateAfter&&=null,e.styles&&=null,e.order!=null&&(e.order=null),Kt(e),qt(e,n);var i=r?r(e):1;i!=e.height&&st(e,i)}function hn(e){e.parent=null,Kt(e)}var gn={},_n={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?_n:gn;return n[e]||(n[e]=e.replace(/\S+/g,`cm-$&`))}function yn(e,t){var n=A(`span`,null,null,c?`padding-right: .1px`:null),r={pre:A(`pre`,[n],`CodeMirror-line`),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(`lineWrapping`)};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=xn,Ve(e.display.measure)&&(o=q(a,e.doc.direction))&&(r.addToken=Cn(r.addToken,o)),r.map=[],Tn(a,r,St(e,a,t!=e.display.externalMeasured&&ct(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=P(a.styleClasses.bgClass,r.bgClass||``)),a.styleClasses.textClass&&(r.textClass=P(a.styleClasses.textClass,r.textClass||``))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ze(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(`.cm-tab`))&&(r.content.className=`cm-tab-wrap-hack`)}return Y(e,`renderLine`,e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||``)),r}function bn(e){var t=k(`span`,`•`,`cm-invalidchar`);return t.title=`\\u`+e.charCodeAt(0).toString(16),t.setAttribute(`aria-label`,t.title),t}function xn(e,t,n,r,i,a,c){if(t){var l=e.splitSpaces?Sn(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,f;if(!u.test(t))e.col+=t.length,f=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,f),o&&s<9&&(d=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var p=0;;){u.lastIndex=p;var m=u.exec(t),h=m?m.index-p:t.length-p;if(h){var g=document.createTextNode(l.slice(p,p+h));o&&s<9?f.appendChild(k(`span`,[g])):f.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;p+=h+1;var _=void 0;if(m[0]==` `){var v=e.cm.options.tabSize,y=v-e.col%v;_=f.appendChild(k(`span`,se(y),`cm-tab`)),_.setAttribute(`role`,`presentation`),_.setAttribute(`cm-text`,` `),e.col+=y}else m[0]==`\r`||m[0]==`
@@ -30,4 +30,4 @@ b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for
30
30
  `),v=d+g.length,y=g[g.length-1].length;return{from:t(v,y),to:t(v+_.length-1,_.length==1?y+_[0].length:_[_.length-1].length),match:h}}}}var u,d;String.prototype.normalize?(u=function(e){return e.normalize(`NFD`).toLowerCase()},d=function(e){return e.normalize(`NFD`)}):(u=function(e){return e.toLowerCase()},d=function(e){return e});function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,a=n+Math.max(0,e.length-t.length);;){if(i==a)return i;var o=i+a>>1,s=r(e.slice(0,o)).length;if(s==n)return o;s>n?a=o:i=o+1}}function p(e,n,r,i){if(!n.length)return null;var a=i?u:d,o=a(n).split(/\r|\n\r?/);search:for(var s=r.line,c=r.ch,l=e.lastLine()+1-o.length;s<=l;s++,c=0){var p=e.getLine(s).slice(c),m=a(p);if(o.length==1){var h=m.indexOf(o[0]);if(h==-1)continue search;var r=f(p,m,h,a)+c;return{from:t(s,f(p,m,h,a)+c),to:t(s,f(p,m,h+o[0].length,a)+c)}}else{var g=m.length-o[0].length;if(m.slice(g)!=o[0])continue search;for(var _=1;_<o.length-1;_++)if(a(e.getLine(s+_))!=o[_])continue search;var v=e.getLine(s+o.length-1),y=a(v),b=o[o.length-1];if(y.slice(0,b.length)!=b)continue search;return{from:t(s,f(p,m,g,a)+c),to:t(s+o.length-1,f(v,y,b.length,a))}}}}function m(e,n,r,i){if(!n.length)return null;var a=i?u:d,o=a(n).split(/\r|\n\r?/);search:for(var s=r.line,c=r.ch,l=e.firstLine()-1+o.length;s>=l;s--,c=-1){var p=e.getLine(s);c>-1&&(p=p.slice(0,c));var m=a(p);if(o.length==1){var h=m.lastIndexOf(o[0]);if(h==-1)continue search;return{from:t(s,f(p,m,h,a)),to:t(s,f(p,m,h+o[0].length,a))}}else{var g=o[o.length-1];if(m.slice(0,g.length)!=g)continue search;for(var _=1,r=s-o.length+1;_<o.length-1;_++)if(a(e.getLine(r+_))!=o[_])continue search;var v=e.getLine(s+1-o.length),y=a(v);if(y.slice(y.length-o[0].length)!=o[0])continue search;return{from:t(s+1-o.length,f(v,y,v.length-o[0].length,a)),to:t(s,f(p,m,g.length,a))}}}}function h(e,n,i,s){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,i=i?e.clipPos(i):t(0,0),this.pos={from:i,to:i};var u;typeof s==`object`?u=s.caseFold:(u=s,s=null),typeof n==`string`?(u??=!1,this.matches=function(t,r){return(t?m:p)(e,n,r,u)}):(n=r(n,`gm`),!s||s.multiline!==!1?this.matches=function(t,r){return(t?l:o)(e,n,r)}:this.matches=function(t,r){return(t?c:a)(e,n,r)})}h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){var r=this.doc.clipPos(n?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(r=t(r.line,r.ch),n?(r.ch--,r.ch<0&&(r.line--,r.ch=(this.doc.getLine(r.line)||``).length)):(r.ch++,r.ch>(this.doc.getLine(r.line)||``).length&&(r.ch=0,r.line++)),e.cmpPos(r,this.doc.clipPos(r))!=0))return this.atOccurrence=!1;var i=this.matches(n,r);if(this.afterEmptyMatch=i&&e.cmpPos(i.from,i.to)==0,i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var a=t(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:a,to:a},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,r){if(this.atOccurrence){var i=e.splitLines(n);this.doc.replaceRange(i,this.pos.from,this.pos.to,r),this.pos.to=t(this.pos.from.line+i.length-1,i[i.length-1].length+(i.length==1?this.pos.from.ch:0))}}},e.defineExtension(`getSearchCursor`,function(e,t,n){return new h(this.doc,e,t,n)}),e.defineDocExtension(`getSearchCursor`,function(e,t,n){return new h(this,e,t,n)}),e.defineExtension(`selectMatches`,function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor(`from`),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor(`to`))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})})}));Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),gt(),ft()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`./searchcursor`,`../dialog/dialog`],n):n(CodeMirror)})(function(e){e.defineOption(`search`,{bottom:!1});function t(e,t){return typeof e==`string`?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),t?`gi`:`g`):e.global||(e=new RegExp(e.source,e.ignoreCase?`gi`:`g`)),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,`searching`;n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return typeof e==`string`&&e==e.toLowerCase()}function a(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(e)},onKeyDown:i,bottom:e.options.search.bottom})}function s(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function c(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function l(e){return e.replace(/\\([nrt\\])/g,function(e,t){return t==`n`?`
31
31
  `:t==`r`?`\r`:t==`t`?` `:t==`\\`?`\\`:e})}function u(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],t[2].indexOf(`i`)==-1?``:`i`)}catch{}else e=l(e);return(typeof e==`string`?e==``:e.test(``))&&(e=/x^/),e}function d(e,n,r){n.queryText=r,n.query=u(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&=(n.annotate.clear(),null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function f(t,n,i,a){var c=r(t);if(c.query)return p(t,n);var l=t.getSelection()||c.lastQuery;if(l instanceof RegExp&&l.source==`x^`&&(l=null),i&&t.openDialog){var u=null,f=function(n,r){e.e_stop(r),n&&(n!=c.queryText&&(d(t,c,n),c.posFrom=c.posTo=t.getCursor()),u&&(u.style.opacity=1),p(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(`.CodeMirror-dialog`))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,`window`).top&&((u=r).style.opacity=.4)}))};o(t,g(t),l,f,function(n,i){var a=e.keyName(n),o=t.getOption(`extraKeys`),s=o&&o[a]||e.keyMap[t.getOption(`keyMap`)][a];s==`findNext`||s==`findPrev`||s==`findPersistentNext`||s==`findPersistentPrev`?(e.e_stop(n),d(t,r(t),i),t.execCommand(s)):(s==`find`||s==`findPersistent`)&&(e.e_stop(n),f(i,n))}),a&&l&&(d(t,c,l),p(t,n))}else s(t,g(t),`Search for:`,l,function(e){e&&!c.query&&t.operation(function(){d(t,c,e),c.posFrom=c.posTo=t.getCursor(),p(t,n)})})}function p(t,n,i){t.operation(function(){var o=r(t),s=a(t,o.query,n?o.posFrom:o.posTo);!s.find(n)&&(s=a(t,o.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),!s.find(n))||(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),o.posFrom=s.from(),o.posTo=s.to(),i&&i(s.from(),s.to()))})}function m(e){e.operation(function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&=(t.annotate.clear(),null))})}function h(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var a=arguments[i];n.appendChild(typeof a==`string`?document.createTextNode(a):a)}return n}function g(e){var t=h(`label`,{className:`CodeMirror-search-label`},e.phrase(`Search:`),h(`input`,{type:`text`,style:`width: 10em`,className:`CodeMirror-search-field`,id:`CodeMirror-search-field`}));return t.setAttribute(`for`,`CodeMirror-search-field`),h(``,null,t,` `,h(`span`,{style:`color: #666`,className:`CodeMirror-search-hint`},e.phrase(`(Use /re/ syntax for regexp search)`)))}function _(e){return h(``,null,` `,h(`input`,{type:`text`,style:`width: 10em`,className:`CodeMirror-search-field`}),` `,h(`span`,{style:`color: #666`,className:`CodeMirror-search-hint`},e.phrase(`(Use /re/ syntax for regexp search)`)))}function v(e){return h(``,null,h(`span`,{className:`CodeMirror-search-label`},e.phrase(`With:`)),` `,h(`input`,{type:`text`,style:`width: 10em`,className:`CodeMirror-search-field`}))}function y(e){return h(``,null,h(`span`,{className:`CodeMirror-search-label`},e.phrase(`Replace?`)),` `,h(`button`,{},e.phrase(`Yes`)),` `,h(`button`,{},e.phrase(`No`)),` `,h(`button`,{},e.phrase(`All`)),` `,h(`button`,{},e.phrase(`Stop`)))}function b(e,t,n){e.operation(function(){for(var r=a(e,t);r.findNext();)if(typeof t!=`string`){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return i[t]}))}else r.replace(n)})}function x(e,t){if(!e.getOption(`readOnly`)){var n=e.getSelection()||r(e).lastQuery,i=t?e.phrase(`Replace all:`):e.phrase(`Replace:`);s(e,h(``,null,h(`span`,{className:`CodeMirror-search-label`},i),_(e)),i,n,function(n){n&&(n=u(n),s(e,v(e),e.phrase(`Replace with:`),``,function(r){if(r=l(r),t)b(e,n,r);else{m(e);var i=a(e,n,e.getCursor(`from`)),o=function(){var t=i.from(),l;!(l=i.findNext())&&(i=a(e,n),!(l=i.findNext())||t&&i.from().line==t.line&&i.from().ch==t.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),c(e,y(e),e.phrase(`Replace?`),[function(){s(l)},o,function(){b(e,n,r)}]))},s=function(e){i.replace(typeof n==`string`?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),o()};o()}}))})}}e.commands.find=function(e){m(e),f(e)},e.commands.findPersistent=function(e){m(e),f(e,!1,!0)},e.commands.findPersistentNext=function(e){f(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){f(e,!0,!0,!0)},e.commands.findNext=f,e.commands.findPrev=function(e){f(e,!0)},e.commands.clearSearch=m,e.commands.replace=x,e.commands.replaceAll=function(e){x(e,!0)}})}))(),ht(),mt();var $=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`css`,function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode(`text/css`));var i=t.indentUnit,a=n.tokenHooks,o=n.documentTypes||{},s=n.mediaTypes||{},c=n.mediaFeatures||{},l=n.mediaValueKeywords||{},u=n.propertyKeywords||{},d=n.nonStandardPropertyKeywords||{},f=n.fontProperties||{},p=n.counterDescriptors||{},m=n.colorKeywords||{},h=n.valueKeywords||{},g=n.allowNested,_=n.lineComment,v=n.supportsAtComponent===!0,y=t.highlightNonStandardPropertyKeywords!==!1,b,x;function S(e,t){return b=t,e}function C(e,t){var n=e.next();if(a[n]){var r=a[n](e,t);if(r!==!1)return r}if(n==`@`)return e.eatWhile(/[\w\\\-]/),S(`def`,e.current());if(n==`=`||(n==`~`||n==`|`)&&e.eat(`=`))return S(null,`compare`);if(n==`"`||n==`'`)return t.tokenize=w(n),t.tokenize(e,t);if(n==`#`)return e.eatWhile(/[\w\\\-]/),S(`atom`,`hash`);if(n==`!`)return e.match(/^\s*\w*/),S(`keyword`,`important`);if(/\d/.test(n)||n==`.`&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),S(`number`,`unit`);if(n===`-`){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),S(`number`,`unit`);if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?S(`variable-2`,`variable-definition`):S(`variable-2`,`variable`);if(e.match(/^\w+-/))return S(`meta`,`meta`)}else if(/[,+>*\/]/.test(n))return S(null,`select-op`);else if(n==`.`&&e.match(/^-?[_a-z][_a-z0-9-]*/i))return S(`qualifier`,`qualifier`);else if(/[:;{}\[\]\(\)]/.test(n))return S(null,n);else if(e.match(/^[\w-.]+(?=\()/))return/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=T),S(`variable callee`,`variable`);else if(/[\w\\\-]/.test(n))return e.eatWhile(/[\w\\\-]/),S(`property`,`word`);else return S(null,null)}function w(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),S(`string`,`string`)}}function T(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=w(`)`),S(null,`(`)}function E(e,t,n){this.type=e,this.indent=t,this.prev=n}function D(e,t,n,r){return e.context=new E(n,t.indentation()+(r===!1?0:i),e.context),n}function O(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function k(e,t,n){return M[n.context.type](e,t,n)}function A(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return k(e,t,n)}function j(e){var t=e.current().toLowerCase();x=h.hasOwnProperty(t)?`atom`:m.hasOwnProperty(t)?`keyword`:`variable`}var M={};return M.top=function(e,t,n){if(e==`{`)return D(n,t,`block`);if(e==`}`&&n.context.prev)return O(n);if(v&&/@component/i.test(e))return D(n,t,`atComponentBlock`);if(/^@(-moz-)?document$/i.test(e))return D(n,t,`documentTypes`);if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return D(n,t,`atBlock`);if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,`restricted_atBlock_before`;if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return`keyframes`;if(e&&e.charAt(0)==`@`)return D(n,t,`at`);if(e==`hash`)x=`builtin`;else if(e==`word`)x=`tag`;else if(e==`variable-definition`)return`maybeprop`;else if(e==`interpolation`)return D(n,t,`interpolation`);else if(e==`:`)return`pseudo`;else if(g&&e==`(`)return D(n,t,`parens`);return n.context.type},M.block=function(e,t,n){if(e==`word`){var r=t.current().toLowerCase();return u.hasOwnProperty(r)?(x=`property`,`maybeprop`):d.hasOwnProperty(r)?(x=y?`string-2`:`property`,`maybeprop`):g?(x=t.match(/^\s*:(?:\s|$)/,!1)?`property`:`tag`,`block`):(x+=` error`,`maybeprop`)}else if(e==`meta`)return`block`;else if(!g&&(e==`hash`||e==`qualifier`))return x=`error`,`block`;else return M.top(e,t,n)},M.maybeprop=function(e,t,n){return e==`:`?D(n,t,`prop`):k(e,t,n)},M.prop=function(e,t,n){if(e==`;`)return O(n);if(e==`{`&&g)return D(n,t,`propBlock`);if(e==`}`||e==`{`)return A(e,t,n);if(e==`(`)return D(n,t,`parens`);if(e==`hash`&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current()))x+=` error`;else if(e==`word`)j(t);else if(e==`interpolation`)return D(n,t,`interpolation`);return`prop`},M.propBlock=function(e,t,n){return e==`}`?O(n):e==`word`?(x=`property`,`maybeprop`):n.context.type},M.parens=function(e,t,n){return e==`{`||e==`}`?A(e,t,n):e==`)`?O(n):e==`(`?D(n,t,`parens`):e==`interpolation`?D(n,t,`interpolation`):(e==`word`&&j(t),`parens`)},M.pseudo=function(e,t,n){return e==`meta`?`pseudo`:e==`word`?(x=`variable-3`,n.context.type):k(e,t,n)},M.documentTypes=function(e,t,n){return e==`word`&&o.hasOwnProperty(t.current())?(x=`tag`,n.context.type):M.atBlock(e,t,n)},M.atBlock=function(e,t,n){if(e==`(`)return D(n,t,`atBlock_parens`);if(e==`}`||e==`;`)return A(e,t,n);if(e==`{`)return O(n)&&D(n,t,g?`block`:`top`);if(e==`interpolation`)return D(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();x=r==`only`||r==`not`||r==`and`||r==`or`?`keyword`:s.hasOwnProperty(r)?`attribute`:c.hasOwnProperty(r)?`property`:l.hasOwnProperty(r)?`keyword`:u.hasOwnProperty(r)?`property`:d.hasOwnProperty(r)?y?`string-2`:`property`:h.hasOwnProperty(r)?`atom`:m.hasOwnProperty(r)?`keyword`:`error`}return n.context.type},M.atComponentBlock=function(e,t,n){return e==`}`?A(e,t,n):e==`{`?O(n)&&D(n,t,g?`block`:`top`,!1):(e==`word`&&(x=`error`),n.context.type)},M.atBlock_parens=function(e,t,n){return e==`)`?O(n):e==`{`||e==`}`?A(e,t,n,2):M.atBlock(e,t,n)},M.restricted_atBlock_before=function(e,t,n){return e==`{`?D(n,t,`restricted_atBlock`):e==`word`&&n.stateArg==`@counter-style`?(x=`variable`,`restricted_atBlock_before`):k(e,t,n)},M.restricted_atBlock=function(e,t,n){return e==`}`?(n.stateArg=null,O(n)):e==`word`?(x=n.stateArg==`@font-face`&&!f.hasOwnProperty(t.current().toLowerCase())||n.stateArg==`@counter-style`&&!p.hasOwnProperty(t.current().toLowerCase())?`error`:`property`,`maybeprop`):`restricted_atBlock`},M.keyframes=function(e,t,n){return e==`word`?(x=`variable`,`keyframes`):e==`{`?D(n,t,`top`):k(e,t,n)},M.at=function(e,t,n){return e==`;`?O(n):e==`{`||e==`}`?A(e,t,n):(e==`word`?x=`tag`:e==`hash`&&(x=`builtin`),`at`)},M.interpolation=function(e,t,n){return e==`}`?O(n):e==`{`||e==`;`?A(e,t,n):(e==`word`?x=`variable`:e!=`variable`&&e!=`(`&&e!=`)`&&(x=`error`),`interpolation`)},{startState:function(e){return{tokenize:null,state:r?`block`:`top`,stateArg:null,context:new E(r?`block`:`top`,e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||C)(e,t);return n&&typeof n==`object`&&(b=n[1],n=n[0]),x=n,b!=`comment`&&(t.state=M[t.state](b,e,t)),x},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),a=n.indent;return n.type==`prop`&&(r==`}`||r==`)`)&&(n=n.prev),n.prev&&(r==`}`&&(n.type==`block`||n.type==`top`||n.type==`interpolation`||n.type==`restricted_atBlock`)?(n=n.prev,a=n.indent):(r==`)`&&(n.type==`parens`||n.type==`atBlock_parens`)||r==`{`&&(n.type==`at`||n.type==`atBlock`))&&(a=Math.max(0,n.indent-i))),a},electricChars:`}`,blockCommentStart:`/*`,blockCommentEnd:`*/`,blockCommentContinue:` * `,lineComment:_,fold:`brace`}});function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}var n=[`domain`,`regexp`,`url`,`url-prefix`],r=t(n),i=[`all`,`aural`,`braille`,`handheld`,`print`,`projection`,`screen`,`tty`,`tv`,`embossed`],a=t(i),o=`width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.orientation.device-pixel-ratio.min-device-pixel-ratio.max-device-pixel-ratio.pointer.any-pointer.hover.any-hover.prefers-color-scheme.dynamic-range.video-dynamic-range`.split(`.`),s=t(o),c=[`landscape`,`portrait`,`none`,`coarse`,`fine`,`on-demand`,`hover`,`interlace`,`progressive`,`dark`,`light`,`standard`,`high`],l=t(c),u=`align-content.align-items.align-self.alignment-adjust.alignment-baseline.all.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.binding.bleed.block-size.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-content.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.gap.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-gap.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-gap.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.inset.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.left.letter-spacing.line-break.line-height.line-height-step.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.place-content.place-items.place-self.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotate.rotation.rotation-point.row-gap.ruby-align.ruby-overhang.ruby-position.ruby-span.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-type.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-orientation.text-outline.text-overflow.text-rendering.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.touch-action.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-select.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.paint-order.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode`.split(`.`),d=t(u),f=`accent-color.aspect-ratio.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.content-visibility.margin-block.margin-block-end.margin-block-start.margin-inline.margin-inline-end.margin-inline-start.overflow-anchor.overscroll-behavior.padding-block.padding-block-end.padding-block-start.padding-inline.padding-inline-end.padding-inline-start.scroll-snap-stop.scrollbar-3d-light-color.scrollbar-arrow-color.scrollbar-base-color.scrollbar-dark-shadow-color.scrollbar-face-color.scrollbar-highlight-color.scrollbar-shadow-color.scrollbar-track-color.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.shape-inside.zoom`.split(`.`),p=t(f),m=t([`font-display`,`font-family`,`src`,`unicode-range`,`font-variant`,`font-feature-settings`,`font-stretch`,`font-weight`,`font-style`]),h=t([`additive-symbols`,`fallback`,`negative`,`pad`,`prefix`,`range`,`speak-as`,`suffix`,`symbols`,`system`]),g=`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`),_=t(g),v=`above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.blur.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.brightness.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.contrast.copy.counter.counters.cover.crop.cross.crosshair.cubic-bezier.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.devanagari.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.drop-shadow.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.georgian.grayscale.graytext.grid.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hard-light.hebrew.help.hidden.hide.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.hue.hue-rotate.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.luminosity.malayalam.manipulation.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.multiple_mask_images.multiply.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.opacity.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturate.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.self-start.self-end.semi-condensed.semi-expanded.separate.sepia.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.somali.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.square-button.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`),y=t(v),b=n.concat(i).concat(o).concat(c).concat(u).concat(f).concat(g).concat(v);e.registerHelper(`hintWords`,`css`,b);function x(e,t){for(var n=!1,r;(r=e.next())!=null;){if(n&&r==`/`){t.tokenize=null;break}n=r==`*`}return[`comment`,`comment`]}e.defineMIME(`text/css`,{documentTypes:r,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:h,colorKeywords:_,valueKeywords:y,tokenHooks:{"/":function(e,t){return e.eat(`*`)?(t.tokenize=x,x(e,t)):!1}},name:`css`}),e.defineMIME(`text/x-scss`,{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:y,fontProperties:m,allowNested:!0,lineComment:`//`,tokenHooks:{"/":function(e,t){return e.eat(`/`)?(e.skipToEnd(),[`comment`,`comment`]):e.eat(`*`)?(t.tokenize=x,x(e,t)):[`operator`,`operator`]},":":function(e){return e.match(/^\s*\{/,!1)?[null,null]:!1},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?[`variable-2`,`variable-definition`]:[`variable-2`,`variable`]},"#":function(e){return e.eat(`{`)?[null,`interpolation`]:!1}},name:`css`,helperType:`scss`}),e.defineMIME(`text/x-less`,{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:y,fontProperties:m,allowNested:!0,lineComment:`//`,tokenHooks:{"/":function(e,t){return e.eat(`/`)?(e.skipToEnd(),[`comment`,`comment`]):e.eat(`*`)?(t.tokenize=x,x(e,t)):[`operator`,`operator`]},"@":function(e){return e.eat(`{`)?[null,`interpolation`]:e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?[`variable-2`,`variable-definition`]:[`variable-2`,`variable`])},"&":function(){return[`atom`,`atom`]}},name:`css`,helperType:`less`}),e.defineMIME(`text/x-gss`,{documentTypes:r,mediaTypes:a,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:h,colorKeywords:_,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return e.eat(`*`)?(t.tokenize=x,x(e,t)):!1}},name:`css`,helperType:`gss`})})})),_t=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineSimpleMode=function(t,n){e.defineMode(t,function(t){return e.simpleMode(t,n)})},e.simpleMode=function(n,r){t(r,`start`);var o={},s=r.meta||{},c=!1;for(var u in r)if(u!=s&&r.hasOwnProperty(u))for(var d=o[u]=[],f=r[u],p=0;p<f.length;p++){var m=f[p];d.push(new i(m,r)),(m.indent||m.dedent)&&(c=!0)}var h={startState:function(){return{state:`start`,pending:null,local:null,localState:null,indent:c?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:a(o,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:l(o,s)};if(s)for(var g in s)s.hasOwnProperty(g)&&(h[g]=s[g]);return h};function t(e,t){if(!e.hasOwnProperty(t))throw Error(`Undefined state `+t+` in simple mode`)}function n(e,t){if(!e)return/(?:)/;var n=``;return e instanceof RegExp?(e.ignoreCase&&(n=`i`),e.unicode&&(n+=`u`),e=e.source):e=String(e),RegExp((t===!1?``:`^`)+`(?:`+e+`)`,n)}function r(e){if(!e)return null;if(e.apply)return e;if(typeof e==`string`)return e.replace(/\./g,` `);for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g,` `));return t}function i(e,i){(e.next||e.push)&&t(i,e.next||e.push),this.regex=n(e.regex),this.token=r(e.token),this.data=e}function a(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return r.pending.length==0&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local)if(r.local.end&&n.match(r.local.end)){var a=r.local.endToken||null;return r.local=r.localState=null,a}else{var a=r.local.mode.token(n,r.localState),o;return r.local.endScan&&(o=r.local.endScan.exec(n.current()))&&(n.pos=n.start+o.index),a}for(var c=e[r.state],l=0;l<c.length;l++){var u=c[l],d=(!u.data.sol||n.sol())&&n.match(u.regex);if(d){u.data.next?r.state=u.data.next:u.data.push?((r.stack||=[]).push(r.state),r.state=u.data.push):u.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),u.data.mode&&s(t,r,u.data.mode,u.token),u.data.indent&&r.indent.push(n.indentation()+t.indentUnit),u.data.dedent&&r.indent.pop();var f=u.token;if(f&&f.apply&&(f=f(d)),d.length>2&&u.token&&typeof u.token!=`string`){for(var p=2;p<d.length;p++)d[p]&&(r.pending||=[]).push({text:d[p],token:u.token[p-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),f[0]}else if(f&&f.join)return f[0];else return f}}return n.next(),null}}function o(e,t){if(e===t)return!0;if(!e||typeof e!=`object`||!t||typeof t!=`object`)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!o(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return n==0}function s(t,r,i,a){var s;if(i.persistent)for(var c=r.persistentStates;c&&!s;c=c.next)(i.spec?o(i.spec,c.spec):i.mode==c.mode)&&(s=c);var l=s?s.mode:i.mode||e.getMode(t,i.spec),u=s?s.state:e.startState(l);i.persistent&&!s&&(r.persistentStates={mode:l,spec:i.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:l,end:i.end&&n(i.end),endScan:i.end&&i.forceEnd!==!1&&n(i.end,!1),endToken:a&&a.join?a[a.length-1]:a}}function c(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}function l(t,n){return function(r,i,a){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,a);if(r.indent==null||r.local||n.dontIndentStates&&c(r.state,n.dontIndentStates)>-1)return e.Pass;var o=r.indent.length-1,s=t[r.state];scan:for(;;){for(var l=0;l<s.length;l++){var u=s[l];if(u.data.dedent&&u.data.dedentIfLineStart!==!1){var d=u.regex.exec(i);if(d&&d[0]){o--,(u.next||u.push)&&(s=t[u.next||u.push]),i=i.slice(d[0].length);continue scan}}}break}return o<0?0:r.indent[o]}}})})),vt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if(typeof t==`string`){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var a=t.exec(n?e.slice(n):e);return a?a.index+n+(r?a[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(i,a){if(a.innerActive){var o=a.innerActive,s=i.string;if(!o.close&&i.sol())return a.innerActive=a.inner=null,this.token(i,a);var c=o.close&&!a.startingInner?r(s,o.close,i.pos,o.parseDelimiters):-1;if(c==i.pos&&!o.parseDelimiters)return i.match(o.close),a.innerActive=a.inner=null,o.delimStyle&&o.delimStyle+` `+o.delimStyle+`-close`;c>-1&&(i.string=s.slice(0,c));var l=o.mode.token(i,a.inner);return c>-1?i.string=s:i.pos>i.start&&(a.startingInner=!1),c==i.pos&&o.parseDelimiters&&(a.innerActive=a.inner=null),o.innerStyle&&(l=l?l+` `+o.innerStyle:o.innerStyle),l}else{for(var u=1/0,s=i.string,d=0;d<n.length;++d){var f=n[d],c=r(s,f.open,i.pos);if(c==i.pos){f.parseDelimiters||i.match(f.open),a.startingInner=!!f.parseDelimiters,a.innerActive=f;var p=0;if(t.indent){var m=t.indent(a.outer,``,``);m!==e.Pass&&(p=m)}return a.inner=e.startState(f.mode,p),f.delimStyle&&f.delimStyle+` `+f.delimStyle+`-open`}else c!=-1&&c<u&&(u=c)}u!=1/0&&(i.string=s.slice(0,u));var h=t.token(i,a.outer);return u!=1/0&&(i.string=s),h}},indent:function(n,r,i){var a=n.innerActive?n.innerActive.mode:t;return a.indent?a.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)r.innerActive.close===`
32
32
  `&&(r.innerActive=r.inner=null);else for(var a=0;a<n.length;++a){var o=n[a];o.open===`
33
- `&&(r.innerActive=o,r.inner=e.startState(o.mode,i.indent?i.indent(r.outer,``,``):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}})})),yt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),_t(),vt()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../../addon/mode/simple`,`../../addon/mode/multiplex`],n):n(CodeMirror)})(function(e){e.defineSimpleMode(`handlebars-tags`,{start:[{regex:/\{\{\{/,push:`handlebars_raw`,token:`tag`},{regex:/\{\{!--/,push:`dash_comment`,token:`comment`},{regex:/\{\{!/,push:`comment`,token:`comment`},{regex:/\{\{/,push:`handlebars`,token:`tag`}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:`tag`}],handlebars:[{regex:/\}\}/,pop:!0,token:`tag`},{regex:/"(?:[^\\"]|\\.)*"?/,token:`string`},{regex:/'(?:[^\\']|\\.)*'?/,token:`string`},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:`keyword`},{regex:/(?:else|this)\b/,token:`keyword`},{regex:/\d+/i,token:`number`},{regex:/=|~|@|true|false/,token:`atom`},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:`variable-2`}],dash_comment:[{regex:/--\}\}/,pop:!0,token:`comment`},{regex:/./,token:`comment`}],comment:[{regex:/\}\}/,pop:!0,token:`comment`},{regex:/./,token:`comment`}],meta:{blockCommentStart:`{{--`,blockCommentEnd:`--}}`}}),e.defineMode(`handlebars`,function(t,n){var r=e.getMode(t,`handlebars-tags`);return!n||!n.base?r:e.multiplexingMode(e.getMode(t,n.base),{open:`{{`,close:/\}\}\}?/,mode:r,parseDelimiters:!0})}),e.defineMIME(`text/x-handlebars-template`,`handlebars`)})})),bt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode(`xml`,function(r,i){var a=r.indentUnit,o={},s=i.htmlMode?t:n;for(var c in s)o[c]=s[c];for(var c in i)o[c]=i[c];var l,u;function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return r==`<`?e.eat(`!`)?e.eat(`[`)?e.match(`CDATA[`)?n(m(`atom`,`]]>`)):null:e.match(`--`)?n(m(`comment`,`-->`)):e.match(`DOCTYPE`,!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat(`?`)?(e.eatWhile(/[\w\._\-]/),t.tokenize=m(`meta`,`?>`),`meta`):(l=e.eat(`/`)?`closeTag`:`openTag`,t.tokenize=f,`tag bracket`):r==`&`?(e.eat(`#`)?e.eat(`x`)?e.eatWhile(/[a-fA-F\d]/)&&e.eat(`;`):e.eatWhile(/[\d]/)&&e.eat(`;`):e.eatWhile(/[\w\.\-:]/)&&e.eat(`;`))?`atom`:`error`:(e.eatWhile(/[^&<]/),null)}d.isInText=!0;function f(e,t){var n=e.next();if(n==`>`||n==`/`&&e.eat(`>`))return t.tokenize=d,l=n==`>`?`endTag`:`selfcloseTag`,`tag bracket`;if(n==`=`)return l=`equals`,null;if(n==`<`){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+` tag error`:`tag error`}else if(/[\'\"]/.test(n))return t.tokenize=p(n),t.stringStartCol=e.column(),t.tokenize(e,t);else return e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),`word`}function p(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;break}return`string`};return t.isInAttribute=!0,t}function m(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e){return function(t,n){for(var r;(r=t.next())!=null;)if(r==`<`)return n.tokenize=h(e+1),n.tokenize(t,n);else if(r==`>`)if(e==1){n.tokenize=d;break}else return n.tokenize=h(e-1),n.tokenize(t,n);return`meta`}}function g(e){return e&&e.toLowerCase()}function _(e,t,n){this.prev=e.context,this.tagName=t||``,this.indent=e.indented,this.startOfLine=n,(o.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&=e.context.prev}function y(e,t){for(var n;;){if(!e.context||(n=e.context.tagName,!o.contextGrabbers.hasOwnProperty(g(n))||!o.contextGrabbers[g(n)].hasOwnProperty(g(t))))return;v(e)}}function b(e,t,n){return e==`openTag`?(n.tagStart=t.column(),x):e==`closeTag`?S:b}function x(e,t,n){return e==`word`?(n.tagName=t.current(),u=`tag`,T):o.allowMissingTagName&&e==`endTag`?(u=`tag bracket`,T(e,t,n)):(u=`error`,x)}function S(e,t,n){if(e==`word`){var r=t.current();return n.context&&n.context.tagName!=r&&o.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||o.matchClosing===!1?(u=`tag`,C):(u=`tag error`,w)}else if(o.allowMissingTagName&&e==`endTag`)return u=`tag bracket`,C(e,t,n);else return u=`error`,w}function C(e,t,n){return e==`endTag`?(v(n),b):(u=`error`,C)}function w(e,t,n){return u=`error`,C(e,t,n)}function T(e,t,n){if(e==`word`)return u=`attribute`,E;if(e==`endTag`||e==`selfcloseTag`){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,e==`selfcloseTag`||o.autoSelfClosers.hasOwnProperty(g(r))?y(n,r):(y(n,r),n.context=new _(n,r,i==n.indented)),b}return u=`error`,T}function E(e,t,n){return e==`equals`?D:(o.allowMissing||(u=`error`),T(e,t,n))}function D(e,t,n){return e==`string`?O:e==`word`&&o.allowUnquoted?(u=`string`,T):(u=`error`,T(e,t,n))}function O(e,t,n){return e==`string`?O:T(e,t,n)}return{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return e!=null&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;l=null;var n=t.tokenize(e,t);return(n||l)&&n!=`comment`&&(u=null,t.state=t.state(l||n,e,t),u&&(n=u==`error`?n+` error`:u)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+a;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return o.multilineTagIndentPastTag===!1?t.tagStart+a*(o.multilineTagIndentFactor||1):t.tagStart+t.tagName.length+2;if(o.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;i;)if(i.tagName==s[2]){i=i.prev;break}else if(o.implicitlyClosed.hasOwnProperty(g(i.tagName)))i=i.prev;else break;else if(s)for(;i;){var c=o.contextGrabbers[g(i.tagName)];if(c&&c.hasOwnProperty(g(s[2])))i=i.prev;else break}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+a:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:`<!--`,blockCommentEnd:`-->`,configuration:o.htmlMode?`html`:`xml`,helperType:o.htmlMode?`html`:`xml`,skipAttribute:function(e){e.state==D&&(e.state=T)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:e.type==`closeTag`}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME(`text/xml`,`xml`),e.defineMIME(`application/xml`,`xml`),e.mimeModes.hasOwnProperty(`text/html`)||e.defineMIME(`text/html`,{name:`xml`,htmlMode:!0})})})),xt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`javascript`,function(t,n){var r=t.indentUnit,i=n.statementIndent,a=n.jsonld,o=n.json||a,s=n.trackScope!==!1,c=n.typescript,l=n.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function e(e){return{type:e,style:`keyword`}}var t=e(`keyword a`),n=e(`keyword b`),r=e(`keyword c`),i=e(`keyword d`),a=e(`operator`),o={type:`atom`,style:`atom`};return{if:e(`if`),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e(`new`),delete:r,void:r,throw:r,debugger:e(`debugger`),var:e(`var`),const:e(`var`),let:e(`var`),function:e(`function`),catch:e(`catch`),for:e(`for`),switch:e(`switch`),case:e(`case`),default:e(`default`),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e(`this`),class:e(`class`),super:e(`atom`),yield:r,export:e(`export`),import:e(`import`),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){for(var t=!1,n,r=!1;(n=e.next())!=null;){if(!t){if(n==`/`&&!r)return;n==`[`?r=!0:r&&n==`]`&&(r=!1)}t=!t&&n==`\\`}}var m,h;function g(e,t,n){return m=e,h=n,t}function _(e,t){var n=e.next();if(n==`"`||n==`'`)return t.tokenize=v(n),t.tokenize(e,t);if(n==`.`&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g(`number`,`number`);if(n==`.`&&e.match(`..`))return g(`spread`,`meta`);if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if(n==`=`&&e.eat(`>`))return g(`=>`,`operator`);if(n==`0`&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g(`number`,`number`);if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g(`number`,`number`);if(n==`/`)return e.eat(`*`)?(t.tokenize=y,y(e,t)):e.eat(`/`)?(e.skipToEnd(),g(`comment`,`comment`)):st(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g(`regexp`,`string-2`)):(e.eat(`=`),g(`operator`,`operator`,e.current()));if(n=="`")return t.tokenize=b,b(e,t);if(n==`#`&&e.peek()==`!`)return e.skipToEnd(),g(`meta`,`meta`);if(n==`#`&&e.eatWhile(l))return g(`variable`,`property`);if(n==`<`&&e.match(`!--`)||n==`-`&&e.match(`->`)&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g(`comment`,`comment`);if(d.test(n))return(n!=`>`||!t.lexical||t.lexical.type!=`>`)&&(e.eat(`=`)?(n==`!`||n==`=`)&&e.eat(`=`):/[<>*+\-|&?]/.test(n)&&(e.eat(n),n==`>`&&e.eat(n))),n==`?`&&e.eat(`.`)?g(`.`):g(`operator`,`operator`,e.current());if(l.test(n)){e.eatWhile(l);var r=e.current();if(t.lastType!=`.`){if(u.propertyIsEnumerable(r)){var i=u[r];return g(i.type,i.style,r)}if(r==`async`&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g(`async`,`keyword`,r)}return g(`variable`,`variable`,r)}}function v(e){return function(t,n){var r=!1,i;if(a&&t.peek()==`@`&&t.match(f))return n.tokenize=_,g(`jsonld-keyword`,`meta`);for(;(i=t.next())!=null&&!(i==e&&!r);)r=!r&&i==`\\`;return r||(n.tokenize=_),g(`string`,`string`)}}function y(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize=_;break}n=r==`*`}return g(`comment`,`comment`)}function b(e,t){for(var n=!1,r;(r=e.next())!=null;){if(!n&&(r=="`"||r==`$`&&e.eat(`{`))){t.tokenize=_;break}n=!n&&r==`\\`}return g(`quasi`,`string-2`,e.current())}var x=`([{}])`;function S(e,t){t.fatArrowAt&&=null;var n=e.string.indexOf(`=>`,e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,a=!1,o=n-1;o>=0;--o){var s=e.string.charAt(o),u=x.indexOf(s);if(u>=0&&u<3){if(!i){++o;break}if(--i==0){s==`(`&&(a=!0);break}}else if(u>=3&&u<6)++i;else if(l.test(s))a=!0;else if(/["'\/`]/.test(s))for(;;--o){if(o==0)return;if(e.string.charAt(o-1)==s&&e.string.charAt(o-2)!=`\\`){o--;break}}else if(a&&!i){++o;break}}a&&!i&&(t.fatArrowAt=o)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=a,r!=null&&(this.align=r)}function T(e,t){if(!s)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function E(e,t,n,r,i){var a=e.cc;for(D.state=e,D.stream=i,D.marked=null,D.cc=a,D.style=t,e.lexical.hasOwnProperty(`align`)||(e.lexical.align=!0);;)if((a.length?a.pop():o?H:V)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return D.marked?D.marked:n==`variable`&&T(e,r)?`variable-2`:t}}var D={state:null,column:null,marked:null,cc:null};function O(){for(var e=arguments.length-1;e>=0;e--)D.cc.push(arguments[e])}function k(){return O.apply(null,arguments),!0}function A(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function j(e){var t=D.state;if(D.marked=`def`,s){if(t.context){if(t.lexical.info==`var`&&t.context&&t.context.block){var r=M(e,t.context);if(r!=null){t.context=r;return}}else if(!A(e,t.localVars)){t.localVars=new P(e,t.localVars);return}}n.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new P(e,t.globalVars))}}function M(e,t){if(t)if(t.block){var n=M(e,t.prev);return n?n==t.prev?t:new N(n,t.vars,!0):null}else if(A(e,t.vars))return t;else return new N(t.prev,new P(e,t.vars),!1);else return null}function ee(e){return e==`public`||e==`private`||e==`protected`||e==`abstract`||e==`readonly`}function N(e,t,n){this.prev=e,this.vars=t,this.block=n}function P(e,t){this.name=e,this.next=t}var F=new P(`this`,new P(`arguments`,null));function I(){D.state.context=new N(D.state.context,D.state.localVars,!1),D.state.localVars=F}function te(){D.state.context=new N(D.state.context,D.state.localVars,!0),D.state.localVars=null}I.lex=te.lex=!0;function L(){D.state.localVars=D.state.context.vars,D.state.context=D.state.context.prev}L.lex=!0;function R(e,t){var n=function(){var n=D.state,r=n.indented;if(n.lexical.type==`stat`)r=n.lexical.indented;else for(var i=n.lexical;i&&i.type==`)`&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,D.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=D.state;e.lexical.prev&&(e.lexical.type==`)`&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}z.lex=!0;function B(e){function t(n){return n==e?k():e==`;`||n==`}`||n==`)`||n==`]`?O():k(t)}return t}function V(e,t){return e==`var`?k(R(`vardef`,t),Me,B(`;`),z):e==`keyword a`?k(R(`form`),U,V,z):e==`keyword b`?k(R(`form`),V,z):e==`keyword d`?D.stream.match(/^\s*$/,!1)?k():k(R(`stat`),ie,B(`;`),z):e==`debugger`?k(B(`;`)):e==`{`?k(R(`}`),te,ye,z,L):e==`;`?k():e==`if`?(D.state.lexical.info==`else`&&D.state.cc[D.state.cc.length-1]==z&&D.state.cc.pop()(),k(R(`form`),U,V,z,Re)):e==`function`?k(He):e==`for`?k(R(`form`),te,ze,V,L,z):e==`class`||c&&t==`interface`?(D.marked=`keyword`,k(R(`form`,e==`class`?e:t),qe,z)):e==`variable`?c&&t==`declare`?(D.marked=`keyword`,k(V)):c&&(t==`module`||t==`enum`||t==`type`)&&D.stream.match(/^\s*\w/,!1)?(D.marked=`keyword`,t==`enum`?k(X):t==`type`?k(We,B(`operator`),q,B(`;`)):k(R(`form`),Ne,B(`{`),R(`}`),ye,z,z)):c&&t==`namespace`?(D.marked=`keyword`,k(R(`form`),H,V,z)):c&&t==`abstract`?(D.marked=`keyword`,k(V)):k(R(`stat`),fe):e==`switch`?k(R(`form`),U,B(`{`),R(`}`,`switch`),te,ye,z,z,L):e==`case`?k(H,B(`:`)):e==`default`?k(B(`:`)):e==`catch`?k(R(`form`),I,ne,V,z,L):e==`export`?k(R(`stat`),Ze,z):e==`import`?k(R(`stat`),$e,z):e==`async`?k(V):t==`@`?k(H,V):O(R(`stat`),H,B(`;`),z)}function ne(e){if(e==`(`)return k(Ge,B(`)`))}function H(e,t){return W(e,t,!1)}function re(e,t){return W(e,t,!0)}function U(e){return e==`(`?k(R(`)`),ie,B(`)`),z):O()}function W(e,t,n){if(D.state.fatArrowAt==D.stream.start){var r=n?ce:K;if(e==`(`)return k(I,R(`)`),_e(Ge,`)`),z,B(`=>`),r,L);if(e==`variable`)return O(I,Ne,B(`=>`),r,L)}var i=n?ae:G;return C.hasOwnProperty(e)?k(i):e==`function`?k(He,i):e==`class`||c&&t==`interface`?(D.marked=`keyword`,k(R(`form`),Ke,z)):e==`keyword c`||e==`async`?k(n?re:H):e==`(`?k(R(`)`),ie,B(`)`),z,i):e==`operator`||e==`spread`?k(n?re:H):e==`[`?k(R(`]`),it,z,i):e==`{`?ve(me,`}`,null,i):e==`quasi`?O(oe,i):e==`new`?k(le(n)):k()}function ie(e){return e.match(/[;\}\)\],]/)?O():O(H)}function G(e,t){return e==`,`?k(ie):ae(e,t,!1)}function ae(e,t,n){var r=n==0?G:ae,i=n==0?H:re;if(e==`=>`)return k(I,n?ce:K,L);if(e==`operator`)return/\+\+|--/.test(t)||c&&t==`!`?k(r):c&&t==`<`&&D.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(R(`>`),_e(q,`>`),z,r):t==`?`?k(H,B(`:`),i):k(i);if(e==`quasi`)return O(oe,r);if(e!=`;`){if(e==`(`)return ve(re,`)`,`call`,r);if(e==`.`)return k(pe,r);if(e==`[`)return k(R(`]`),ie,B(`]`),z,r);if(c&&t==`as`)return D.marked=`keyword`,k(q,r);if(e==`regexp`)return D.state.lastType=D.marked=`operator`,D.stream.backUp(D.stream.pos-D.stream.start-1),k(i)}}function oe(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?k(ie,se):k(oe):O()}function se(e){if(e==`}`)return D.marked=`string-2`,D.state.tokenize=b,k(oe)}function K(e){return S(D.stream,D.state),O(e==`{`?V:H)}function ce(e){return S(D.stream,D.state),O(e==`{`?V:re)}function le(e){return function(t){return t==`.`?k(e?de:ue):t==`variable`&&c?k(ke,e?ae:G):O(e?re:H)}}function ue(e,t){if(t==`target`)return D.marked=`keyword`,k(G)}function de(e,t){if(t==`target`)return D.marked=`keyword`,k(ae)}function fe(e){return e==`:`?k(z,V):O(G,B(`;`),z)}function pe(e){if(e==`variable`)return D.marked=`property`,k()}function me(e,t){if(e==`async`)return D.marked=`property`,k(me);if(e==`variable`||D.style==`keyword`){if(D.marked=`property`,t==`get`||t==`set`)return k(he);var n;return c&&D.state.fatArrowAt==D.stream.start&&(n=D.stream.match(/^\s*:\s*/,!1))&&(D.state.fatArrowAt=D.stream.pos+n[0].length),k(ge)}else if(e==`number`||e==`string`)return D.marked=a?`property`:D.style+` property`,k(ge);else if(e==`jsonld-keyword`)return k(ge);else if(c&&ee(t))return D.marked=`keyword`,k(me);else if(e==`[`)return k(H,be,B(`]`),ge);else if(e==`spread`)return k(re,ge);else if(t==`*`)return D.marked=`keyword`,k(me);else if(e==`:`)return O(ge)}function he(e){return e==`variable`?(D.marked=`property`,k(He)):O(ge)}function ge(e){if(e==`:`)return k(re);if(e==`(`)return O(He)}function _e(e,t,n){function r(i,a){if(n?n.indexOf(i)>-1:i==`,`){var o=D.state.lexical;return o.info==`call`&&(o.pos=(o.pos||0)+1),k(function(n,r){return n==t||r==t?O():O(e)},r)}return i==t||a==t?k():n&&n.indexOf(`;`)>-1?O(e):k(B(t))}return function(n,i){return n==t||i==t?k():O(e,r)}}function ve(e,t,n){for(var r=3;r<arguments.length;r++)D.cc.push(arguments[r]);return k(R(t,n),_e(e,t),z)}function ye(e){return e==`}`?k():O(V,ye)}function be(e,t){if(c){if(e==`:`)return k(q);if(t==`?`)return k(be)}}function xe(e,t){if(c&&(e==`:`||t==`in`))return k(q)}function Se(e){if(c&&e==`:`)return D.stream.match(/^\s*\w+\s+is\b/,!1)?k(H,Ce,q):k(q)}function Ce(e,t){if(t==`is`)return D.marked=`keyword`,k()}function q(e,t){if(t==`keyof`||t==`typeof`||t==`infer`||t==`readonly`)return D.marked=`keyword`,k(t==`typeof`?re:q);if(e==`variable`||t==`void`)return D.marked=`type`,k(Oe);if(t==`|`||t==`&`)return k(q);if(e==`string`||e==`number`||e==`atom`)return k(Oe);if(e==`[`)return k(R(`]`),_e(q,`]`,`,`),z,Oe);if(e==`{`)return k(R(`}`),J,z,Oe);if(e==`(`)return k(_e(De,`)`),we,Oe);if(e==`<`)return k(_e(q,`>`),q);if(e==`quasi`)return O(Ee,Oe)}function we(e){if(e==`=>`)return k(q)}function J(e){return e.match(/[\}\)\]]/)?k():e==`,`||e==`;`?k(J):O(Te,J)}function Te(e,t){if(e==`variable`||D.style==`keyword`)return D.marked=`property`,k(Te);if(t==`?`||e==`number`||e==`string`)return k(Te);if(e==`:`)return k(q);if(e==`[`)return k(B(`variable`),xe,B(`]`),Te);if(e==`(`)return O(Ue,Te);if(!e.match(/[;\}\)\],]/))return k()}function Ee(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?k(q,Y):k(Ee):O()}function Y(e){if(e==`}`)return D.marked=`string-2`,D.state.tokenize=b,k(Ee)}function De(e,t){return e==`variable`&&D.stream.match(/^\s*[?:]/,!1)||t==`?`?k(De):e==`:`?k(q):e==`spread`?k(De):O(q)}function Oe(e,t){if(t==`<`)return k(R(`>`),_e(q,`>`),z,Oe);if(t==`|`||e==`.`||t==`&`)return k(q);if(e==`[`)return k(q,B(`]`),Oe);if(t==`extends`||t==`implements`)return D.marked=`keyword`,k(q);if(t==`?`)return k(q,B(`:`),q)}function ke(e,t){if(t==`<`)return k(R(`>`),_e(q,`>`),z,Oe)}function Ae(){return O(q,je)}function je(e,t){if(t==`=`)return k(q)}function Me(e,t){return t==`enum`?(D.marked=`keyword`,k(X)):O(Ne,be,Ie,Le)}function Ne(e,t){if(c&&ee(t))return D.marked=`keyword`,k(Ne);if(e==`variable`)return j(t),k();if(e==`spread`)return k(Ne);if(e==`[`)return ve(Fe,`]`);if(e==`{`)return ve(Pe,`}`)}function Pe(e,t){return e==`variable`&&!D.stream.match(/^\s*:/,!1)?(j(t),k(Ie)):(e==`variable`&&(D.marked=`property`),e==`spread`?k(Ne):e==`}`?O():e==`[`?k(H,B(`]`),B(`:`),Pe):k(B(`:`),Ne,Ie))}function Fe(){return O(Ne,Ie)}function Ie(e,t){if(t==`=`)return k(re)}function Le(e){if(e==`,`)return k(Me)}function Re(e,t){if(e==`keyword b`&&t==`else`)return k(R(`form`,`else`),V,z)}function ze(e,t){if(t==`await`)return k(ze);if(e==`(`)return k(R(`)`),Be,z)}function Be(e){return e==`var`?k(Me,Ve):e==`variable`?k(Ve):O(Ve)}function Ve(e,t){return e==`)`?k():e==`;`?k(Ve):t==`in`||t==`of`?(D.marked=`keyword`,k(H,Ve)):O(H,Ve)}function He(e,t){if(t==`*`)return D.marked=`keyword`,k(He);if(e==`variable`)return j(t),k(He);if(e==`(`)return k(I,R(`)`),_e(Ge,`)`),z,Se,V,L);if(c&&t==`<`)return k(R(`>`),_e(Ae,`>`),z,He)}function Ue(e,t){if(t==`*`)return D.marked=`keyword`,k(Ue);if(e==`variable`)return j(t),k(Ue);if(e==`(`)return k(I,R(`)`),_e(Ge,`)`),z,Se,L);if(c&&t==`<`)return k(R(`>`),_e(Ae,`>`),z,Ue)}function We(e,t){if(e==`keyword`||e==`variable`)return D.marked=`type`,k(We);if(t==`<`)return k(R(`>`),_e(Ae,`>`),z)}function Ge(e,t){return t==`@`&&k(H,Ge),e==`spread`?k(Ge):c&&ee(t)?(D.marked=`keyword`,k(Ge)):c&&e==`this`?k(be,Ie):O(Ne,be,Ie)}function Ke(e,t){return e==`variable`?qe(e,t):Je(e,t)}function qe(e,t){if(e==`variable`)return j(t),k(Je)}function Je(e,t){if(t==`<`)return k(R(`>`),_e(Ae,`>`),z,Je);if(t==`extends`||t==`implements`||c&&e==`,`)return t==`implements`&&(D.marked=`keyword`),k(c?q:H,Je);if(e==`{`)return k(R(`}`),Ye,z)}function Ye(e,t){if(e==`async`||e==`variable`&&(t==`static`||t==`get`||t==`set`||c&&ee(t))&&D.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return D.marked=`keyword`,k(Ye);if(e==`variable`||D.style==`keyword`)return D.marked=`property`,k(Xe,Ye);if(e==`number`||e==`string`)return k(Xe,Ye);if(e==`[`)return k(H,be,B(`]`),Xe,Ye);if(t==`*`)return D.marked=`keyword`,k(Ye);if(c&&e==`(`)return O(Ue,Ye);if(e==`;`||e==`,`)return k(Ye);if(e==`}`)return k();if(t==`@`)return k(H,Ye)}function Xe(e,t){if(t==`!`||t==`?`)return k(Xe);if(e==`:`)return k(q,Ie);if(t==`=`)return k(re);var n=D.state.lexical.prev;return O(n&&n.info==`interface`?Ue:He)}function Ze(e,t){return t==`*`?(D.marked=`keyword`,k(rt,B(`;`))):t==`default`?(D.marked=`keyword`,k(H,B(`;`))):e==`{`?k(_e(Qe,`}`),rt,B(`;`)):O(V)}function Qe(e,t){if(t==`as`)return D.marked=`keyword`,k(B(`variable`));if(e==`variable`)return O(re,Qe)}function $e(e){return e==`string`?k():e==`(`?O(H):e==`.`?O(G):O(et,tt,rt)}function et(e,t){return e==`{`?ve(et,`}`):(e==`variable`&&j(t),t==`*`&&(D.marked=`keyword`),k(nt))}function tt(e){if(e==`,`)return k(et,tt)}function nt(e,t){if(t==`as`)return D.marked=`keyword`,k(et)}function rt(e,t){if(t==`from`)return D.marked=`keyword`,k(H)}function it(e){return e==`]`?k():O(_e(re,`]`))}function X(){return O(R(`form`),Ne,B(`{`),R(`}`),_e(at,`}`),z,z)}function at(){return O(Ne,Ie)}function ot(e,t){return e.lastType==`operator`||e.lastType==`,`||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function st(e,t,n){return t.tokenize==_&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||t.lastType==`quasi`&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return{startState:function(e){var t={tokenize:_,lastType:`sof`,cc:[],lexical:new w((e||0)-r,0,`block`,!1),localVars:n.localVars,context:n.localVars&&new N(null,null,!1),indented:e||0};return n.globalVars&&typeof n.globalVars==`object`&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty(`align`)||(t.lexical.align=!1),t.indented=e.indentation(),S(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return m==`comment`?n:(t.lastType=m==`operator`&&(h==`++`||h==`--`)?`incdec`:m,E(t,n,m,h,e))},indent:function(t,a){if(t.tokenize==y||t.tokenize==b)return e.Pass;if(t.tokenize!=_)return 0;var o=a&&a.charAt(0),s=t.lexical,c;if(!/^\s*else\b/.test(a))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==z)s=s.prev;else if(u!=Re&&u!=L)break}for(;(s.type==`stat`||s.type==`form`)&&(o==`}`||(c=t.cc[t.cc.length-1])&&(c==G||c==ae)&&!/^[,\.=+\-*:?[\(]/.test(a));)s=s.prev;i&&s.type==`)`&&s.prev.type==`stat`&&(s=s.prev);var d=s.type,f=o==d;return d==`vardef`?s.indented+(t.lastType==`operator`||t.lastType==`,`?s.info.length+1:0):d==`form`&&o==`{`?s.indented:d==`form`?s.indented+r:d==`stat`?s.indented+(ot(t,a)?i||r:0):s.info==`switch`&&!f&&n.doubleIndentSwitch!=0?s.indented+(/^(?:case|default)\b/.test(a)?r:2*r):s.align?s.column+(f?0:1):s.indented+(f?0:r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:o?null:`/*`,blockCommentEnd:o?null:`*/`,blockCommentContinue:o?null:` * `,lineComment:o?null:`//`,fold:`brace`,closeBrackets:`()[]{}''""\`\``,helperType:o?`json`:`javascript`,jsonldMode:a,jsonMode:o,expressionAllowed:st,skipExpression:function(t){E(t,`atom`,`atom`,`true`,new e.StringStream(``,2,null))}}}),e.registerHelper(`wordChars`,`javascript`,/[\w$]/),e.defineMIME(`text/javascript`,`javascript`),e.defineMIME(`text/ecmascript`,`javascript`),e.defineMIME(`application/javascript`,`javascript`),e.defineMIME(`application/x-javascript`,`javascript`),e.defineMIME(`application/ecmascript`,`javascript`),e.defineMIME(`application/json`,{name:`javascript`,json:!0}),e.defineMIME(`application/x-json`,{name:`javascript`,json:!0}),e.defineMIME(`application/manifest+json`,{name:`javascript`,json:!0}),e.defineMIME(`application/ld+json`,{name:`javascript`,jsonld:!0}),e.defineMIME(`text/typescript`,{name:`javascript`,typescript:!0}),e.defineMIME(`application/typescript`,{name:`javascript`,typescript:!0})})})),St=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),bt(),xt(),$()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../xml/xml`,`../javascript/javascript`,`../css/css`],n):n(CodeMirror)})(function(e){var t={script:[[`lang`,/(javascript|babel)/i,`javascript`],[`type`,/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,`javascript`],[`type`,/./,`text/plain`],[null,null,`javascript`]],style:[[`lang`,/^css$/i,`css`],[`type`,/^(text\/)?(x-)?(stylesheet|css)$/i,`css`],[`type`,/./,`text/plain`],[null,null,`css`]]};function n(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}var r={};function i(e){return r[e]||(r[e]=RegExp(`\\s+`+e+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function a(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:``}function o(e,t){return RegExp((t?`^`:``)+`</\\s*`+e+`\\s*>`,`i`)}function s(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],a=i.length-1;a>=0;a--)r.unshift(i[a])}function c(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r[0]||r[1].test(a(t,r[0])))return r[2]}}e.defineMode(`htmlmixed`,function(r,i){var a=e.getMode(r,{name:`xml`,htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag,allowMissingTagName:i.allowMissingTagName}),l={},u=i&&i.tags,d=i&&i.scriptTypes;if(s(t,l),u&&s(u,l),d)for(var f=d.length-1;f>=0;f--)l.script.unshift([`type`,d[f].matches,d[f].mode]);function p(t,i){var s=a.token(t,i.htmlState),u=/\btag\b/.test(s),d;if(u&&!/[<>\s\/]/.test(t.current())&&(d=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(d))i.inTag=d+` `;else if(i.inTag&&u&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var m=t.current()==`>`&&c(l[f[1]],f[2]),h=e.getMode(r,m),g=o(f[1],!0),_=o(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=p,t.localState=t.localMode=null,null):n(e,_,t.localMode.token(e,t.localState))},i.localMode=h,i.localState=e.startState(h,a.indent(i.htmlState,``,``))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=` `));return s}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(a)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(a,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?a.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||a}}}},`xml`,`javascript`,`css`),e.defineMIME(`text/html`,`htmlmixed`)})})),Ct=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../lib/codemirror`],n):n(CodeMirror)})(function(e){e.modeInfo=[{name:`APL`,mime:`text/apl`,mode:`apl`,ext:[`dyalog`,`apl`]},{name:`PGP`,mimes:[`application/pgp`,`application/pgp-encrypted`,`application/pgp-keys`,`application/pgp-signature`],mode:`asciiarmor`,ext:[`asc`,`pgp`,`sig`]},{name:`ASN.1`,mime:`text/x-ttcn-asn`,mode:`asn.1`,ext:[`asn`,`asn1`]},{name:`Asterisk`,mime:`text/x-asterisk`,mode:`asterisk`,file:/^extensions\.conf$/i},{name:`Brainfuck`,mime:`text/x-brainfuck`,mode:`brainfuck`,ext:[`b`,`bf`]},{name:`C`,mime:`text/x-csrc`,mode:`clike`,ext:[`c`,`h`,`ino`]},{name:`C++`,mime:`text/x-c++src`,mode:`clike`,ext:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],alias:[`cpp`]},{name:`Cobol`,mime:`text/x-cobol`,mode:`cobol`,ext:[`cob`,`cpy`,`cbl`]},{name:`C#`,mime:`text/x-csharp`,mode:`clike`,ext:[`cs`],alias:[`csharp`,`cs`]},{name:`Clojure`,mime:`text/x-clojure`,mode:`clojure`,ext:[`clj`,`cljc`,`cljx`]},{name:`ClojureScript`,mime:`text/x-clojurescript`,mode:`clojure`,ext:[`cljs`]},{name:`Closure Stylesheets (GSS)`,mime:`text/x-gss`,mode:`css`,ext:[`gss`]},{name:`CMake`,mime:`text/x-cmake`,mode:`cmake`,ext:[`cmake`,`cmake.in`],file:/^CMakeLists\.txt$/},{name:`CoffeeScript`,mimes:[`application/vnd.coffeescript`,`text/coffeescript`,`text/x-coffeescript`],mode:`coffeescript`,ext:[`coffee`],alias:[`coffee`,`coffee-script`]},{name:`Common Lisp`,mime:`text/x-common-lisp`,mode:`commonlisp`,ext:[`cl`,`lisp`,`el`],alias:[`lisp`]},{name:`Cypher`,mime:`application/x-cypher-query`,mode:`cypher`,ext:[`cyp`,`cypher`]},{name:`Cython`,mime:`text/x-cython`,mode:`python`,ext:[`pyx`,`pxd`,`pxi`]},{name:`Crystal`,mime:`text/x-crystal`,mode:`crystal`,ext:[`cr`]},{name:`CSS`,mime:`text/css`,mode:`css`,ext:[`css`]},{name:`CQL`,mime:`text/x-cassandra`,mode:`sql`,ext:[`cql`]},{name:`D`,mime:`text/x-d`,mode:`d`,ext:[`d`]},{name:`Dart`,mimes:[`application/dart`,`text/x-dart`],mode:`dart`,ext:[`dart`]},{name:`diff`,mime:`text/x-diff`,mode:`diff`,ext:[`diff`,`patch`]},{name:`Django`,mime:`text/x-django`,mode:`django`},{name:`Dockerfile`,mime:`text/x-dockerfile`,mode:`dockerfile`,file:/^Dockerfile$/},{name:`DTD`,mime:`application/xml-dtd`,mode:`dtd`,ext:[`dtd`]},{name:`Dylan`,mime:`text/x-dylan`,mode:`dylan`,ext:[`dylan`,`dyl`,`intr`]},{name:`EBNF`,mime:`text/x-ebnf`,mode:`ebnf`},{name:`ECL`,mime:`text/x-ecl`,mode:`ecl`,ext:[`ecl`]},{name:`edn`,mime:`application/edn`,mode:`clojure`,ext:[`edn`]},{name:`Eiffel`,mime:`text/x-eiffel`,mode:`eiffel`,ext:[`e`]},{name:`Elm`,mime:`text/x-elm`,mode:`elm`,ext:[`elm`]},{name:`Embedded JavaScript`,mime:`application/x-ejs`,mode:`htmlembedded`,ext:[`ejs`]},{name:`Embedded Ruby`,mime:`application/x-erb`,mode:`htmlembedded`,ext:[`erb`]},{name:`Erlang`,mime:`text/x-erlang`,mode:`erlang`,ext:[`erl`]},{name:`Esper`,mime:`text/x-esper`,mode:`sql`},{name:`Factor`,mime:`text/x-factor`,mode:`factor`,ext:[`factor`]},{name:`FCL`,mime:`text/x-fcl`,mode:`fcl`},{name:`Forth`,mime:`text/x-forth`,mode:`forth`,ext:[`forth`,`fth`,`4th`]},{name:`Fortran`,mime:`text/x-fortran`,mode:`fortran`,ext:[`f`,`for`,`f77`,`f90`,`f95`]},{name:`F#`,mime:`text/x-fsharp`,mode:`mllike`,ext:[`fs`],alias:[`fsharp`]},{name:`Gas`,mime:`text/x-gas`,mode:`gas`,ext:[`s`]},{name:`Gherkin`,mime:`text/x-feature`,mode:`gherkin`,ext:[`feature`]},{name:`GitHub Flavored Markdown`,mime:`text/x-gfm`,mode:`gfm`,file:/^(readme|contributing|history)\.md$/i},{name:`Go`,mime:`text/x-go`,mode:`go`,ext:[`go`]},{name:`Groovy`,mime:`text/x-groovy`,mode:`groovy`,ext:[`groovy`,`gradle`],file:/^Jenkinsfile$/},{name:`HAML`,mime:`text/x-haml`,mode:`haml`,ext:[`haml`]},{name:`Haskell`,mime:`text/x-haskell`,mode:`haskell`,ext:[`hs`]},{name:`Haskell (Literate)`,mime:`text/x-literate-haskell`,mode:`haskell-literate`,ext:[`lhs`]},{name:`Haxe`,mime:`text/x-haxe`,mode:`haxe`,ext:[`hx`]},{name:`HXML`,mime:`text/x-hxml`,mode:`haxe`,ext:[`hxml`]},{name:`ASP.NET`,mime:`application/x-aspx`,mode:`htmlembedded`,ext:[`aspx`],alias:[`asp`,`aspx`]},{name:`HTML`,mime:`text/html`,mode:`htmlmixed`,ext:[`html`,`htm`,`handlebars`,`hbs`],alias:[`xhtml`]},{name:`HTTP`,mime:`message/http`,mode:`http`},{name:`IDL`,mime:`text/x-idl`,mode:`idl`,ext:[`pro`]},{name:`Pug`,mime:`text/x-pug`,mode:`pug`,ext:[`jade`,`pug`],alias:[`jade`]},{name:`Java`,mime:`text/x-java`,mode:`clike`,ext:[`java`]},{name:`Java Server Pages`,mime:`application/x-jsp`,mode:`htmlembedded`,ext:[`jsp`],alias:[`jsp`]},{name:`JavaScript`,mimes:[`text/javascript`,`text/ecmascript`,`application/javascript`,`application/x-javascript`,`application/ecmascript`],mode:`javascript`,ext:[`js`],alias:[`ecmascript`,`js`,`node`]},{name:`JSON`,mimes:[`application/json`,`application/x-json`],mode:`javascript`,ext:[`json`,`map`],alias:[`json5`]},{name:`JSON-LD`,mime:`application/ld+json`,mode:`javascript`,ext:[`jsonld`],alias:[`jsonld`]},{name:`JSX`,mime:`text/jsx`,mode:`jsx`,ext:[`jsx`]},{name:`Jinja2`,mime:`text/jinja2`,mode:`jinja2`,ext:[`j2`,`jinja`,`jinja2`]},{name:`Julia`,mime:`text/x-julia`,mode:`julia`,ext:[`jl`],alias:[`jl`]},{name:`Kotlin`,mime:`text/x-kotlin`,mode:`clike`,ext:[`kt`]},{name:`LESS`,mime:`text/x-less`,mode:`css`,ext:[`less`]},{name:`LiveScript`,mime:`text/x-livescript`,mode:`livescript`,ext:[`ls`],alias:[`ls`]},{name:`Lua`,mime:`text/x-lua`,mode:`lua`,ext:[`lua`]},{name:`Markdown`,mime:`text/x-markdown`,mode:`markdown`,ext:[`markdown`,`md`,`mkd`]},{name:`mIRC`,mime:`text/mirc`,mode:`mirc`},{name:`MariaDB SQL`,mime:`text/x-mariadb`,mode:`sql`},{name:`Mathematica`,mime:`text/x-mathematica`,mode:`mathematica`,ext:[`m`,`nb`,`wl`,`wls`]},{name:`Modelica`,mime:`text/x-modelica`,mode:`modelica`,ext:[`mo`]},{name:`MUMPS`,mime:`text/x-mumps`,mode:`mumps`,ext:[`mps`]},{name:`MS SQL`,mime:`text/x-mssql`,mode:`sql`},{name:`mbox`,mime:`application/mbox`,mode:`mbox`,ext:[`mbox`]},{name:`MySQL`,mime:`text/x-mysql`,mode:`sql`},{name:`Nginx`,mime:`text/x-nginx-conf`,mode:`nginx`,file:/nginx.*\.conf$/i},{name:`NSIS`,mime:`text/x-nsis`,mode:`nsis`,ext:[`nsh`,`nsi`]},{name:`NTriples`,mimes:[`application/n-triples`,`application/n-quads`,`text/n-triples`],mode:`ntriples`,ext:[`nt`,`nq`]},{name:`Objective-C`,mime:`text/x-objectivec`,mode:`clike`,ext:[`m`],alias:[`objective-c`,`objc`]},{name:`Objective-C++`,mime:`text/x-objectivec++`,mode:`clike`,ext:[`mm`],alias:[`objective-c++`,`objc++`]},{name:`OCaml`,mime:`text/x-ocaml`,mode:`mllike`,ext:[`ml`,`mli`,`mll`,`mly`]},{name:`Octave`,mime:`text/x-octave`,mode:`octave`,ext:[`m`]},{name:`Oz`,mime:`text/x-oz`,mode:`oz`,ext:[`oz`]},{name:`Pascal`,mime:`text/x-pascal`,mode:`pascal`,ext:[`p`,`pas`]},{name:`PEG.js`,mime:`null`,mode:`pegjs`,ext:[`jsonld`]},{name:`Perl`,mime:`text/x-perl`,mode:`perl`,ext:[`pl`,`pm`]},{name:`PHP`,mimes:[`text/x-php`,`application/x-httpd-php`,`application/x-httpd-php-open`],mode:`php`,ext:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`]},{name:`Pig`,mime:`text/x-pig`,mode:`pig`,ext:[`pig`]},{name:`Plain Text`,mime:`text/plain`,mode:`null`,ext:[`txt`,`text`,`conf`,`def`,`list`,`log`]},{name:`PLSQL`,mime:`text/x-plsql`,mode:`sql`,ext:[`pls`]},{name:`PostgreSQL`,mime:`text/x-pgsql`,mode:`sql`},{name:`PowerShell`,mime:`application/x-powershell`,mode:`powershell`,ext:[`ps1`,`psd1`,`psm1`]},{name:`Properties files`,mime:`text/x-properties`,mode:`properties`,ext:[`properties`,`ini`,`in`],alias:[`ini`,`properties`]},{name:`ProtoBuf`,mime:`text/x-protobuf`,mode:`protobuf`,ext:[`proto`]},{name:`Python`,mime:`text/x-python`,mode:`python`,ext:[`BUILD`,`bzl`,`py`,`pyw`],file:/^(BUCK|BUILD)$/},{name:`Puppet`,mime:`text/x-puppet`,mode:`puppet`,ext:[`pp`]},{name:`Q`,mime:`text/x-q`,mode:`q`,ext:[`q`]},{name:`R`,mime:`text/x-rsrc`,mode:`r`,ext:[`r`,`R`],alias:[`rscript`]},{name:`reStructuredText`,mime:`text/x-rst`,mode:`rst`,ext:[`rst`],alias:[`rst`]},{name:`RPM Changes`,mime:`text/x-rpm-changes`,mode:`rpm`},{name:`RPM Spec`,mime:`text/x-rpm-spec`,mode:`rpm`,ext:[`spec`]},{name:`Ruby`,mime:`text/x-ruby`,mode:`ruby`,ext:[`rb`],alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`]},{name:`Rust`,mime:`text/x-rustsrc`,mode:`rust`,ext:[`rs`]},{name:`SAS`,mime:`text/x-sas`,mode:`sas`,ext:[`sas`]},{name:`Sass`,mime:`text/x-sass`,mode:`sass`,ext:[`sass`]},{name:`Scala`,mime:`text/x-scala`,mode:`clike`,ext:[`scala`]},{name:`Scheme`,mime:`text/x-scheme`,mode:`scheme`,ext:[`scm`,`ss`]},{name:`SCSS`,mime:`text/x-scss`,mode:`css`,ext:[`scss`]},{name:`Shell`,mimes:[`text/x-sh`,`application/x-sh`],mode:`shell`,ext:[`sh`,`ksh`,`bash`],alias:[`bash`,`sh`,`zsh`],file:/^PKGBUILD$/},{name:`Sieve`,mime:`application/sieve`,mode:`sieve`,ext:[`siv`,`sieve`]},{name:`Slim`,mimes:[`text/x-slim`,`application/x-slim`],mode:`slim`,ext:[`slim`]},{name:`Smalltalk`,mime:`text/x-stsrc`,mode:`smalltalk`,ext:[`st`]},{name:`Smarty`,mime:`text/x-smarty`,mode:`smarty`,ext:[`tpl`]},{name:`Solr`,mime:`text/x-solr`,mode:`solr`},{name:`SML`,mime:`text/x-sml`,mode:`mllike`,ext:[`sml`,`sig`,`fun`,`smackspec`]},{name:`Soy`,mime:`text/x-soy`,mode:`soy`,ext:[`soy`],alias:[`closure template`]},{name:`SPARQL`,mime:`application/sparql-query`,mode:`sparql`,ext:[`rq`,`sparql`],alias:[`sparul`]},{name:`Spreadsheet`,mime:`text/x-spreadsheet`,mode:`spreadsheet`,alias:[`excel`,`formula`]},{name:`SQL`,mime:`text/x-sql`,mode:`sql`,ext:[`sql`]},{name:`SQLite`,mime:`text/x-sqlite`,mode:`sql`},{name:`Squirrel`,mime:`text/x-squirrel`,mode:`clike`,ext:[`nut`]},{name:`Stylus`,mime:`text/x-styl`,mode:`stylus`,ext:[`styl`]},{name:`Swift`,mime:`text/x-swift`,mode:`swift`,ext:[`swift`]},{name:`sTeX`,mime:`text/x-stex`,mode:`stex`},{name:`LaTeX`,mime:`text/x-latex`,mode:`stex`,ext:[`text`,`ltx`,`tex`],alias:[`tex`]},{name:`SystemVerilog`,mime:`text/x-systemverilog`,mode:`verilog`,ext:[`v`,`sv`,`svh`]},{name:`Tcl`,mime:`text/x-tcl`,mode:`tcl`,ext:[`tcl`]},{name:`Textile`,mime:`text/x-textile`,mode:`textile`,ext:[`textile`]},{name:`TiddlyWiki`,mime:`text/x-tiddlywiki`,mode:`tiddlywiki`},{name:`Tiki wiki`,mime:`text/tiki`,mode:`tiki`},{name:`TOML`,mime:`text/x-toml`,mode:`toml`,ext:[`toml`]},{name:`Tornado`,mime:`text/x-tornado`,mode:`tornado`},{name:`troff`,mime:`text/troff`,mode:`troff`,ext:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`]},{name:`TTCN`,mime:`text/x-ttcn`,mode:`ttcn`,ext:[`ttcn`,`ttcn3`,`ttcnpp`]},{name:`TTCN_CFG`,mime:`text/x-ttcn-cfg`,mode:`ttcn-cfg`,ext:[`cfg`]},{name:`Turtle`,mime:`text/turtle`,mode:`turtle`,ext:[`ttl`]},{name:`TypeScript`,mime:`application/typescript`,mode:`javascript`,ext:[`ts`],alias:[`ts`]},{name:`TypeScript-JSX`,mime:`text/typescript-jsx`,mode:`jsx`,ext:[`tsx`],alias:[`tsx`]},{name:`Twig`,mime:`text/x-twig`,mode:`twig`},{name:`Web IDL`,mime:`text/x-webidl`,mode:`webidl`,ext:[`webidl`]},{name:`VB.NET`,mime:`text/x-vb`,mode:`vb`,ext:[`vb`]},{name:`VBScript`,mime:`text/vbscript`,mode:`vbscript`,ext:[`vbs`]},{name:`Velocity`,mime:`text/velocity`,mode:`velocity`,ext:[`vtl`]},{name:`Verilog`,mime:`text/x-verilog`,mode:`verilog`,ext:[`v`]},{name:`VHDL`,mime:`text/x-vhdl`,mode:`vhdl`,ext:[`vhd`,`vhdl`]},{name:`Vue.js Component`,mimes:[`script/x-vue`,`text/x-vue`],mode:`vue`,ext:[`vue`]},{name:`XML`,mimes:[`application/xml`,`text/xml`],mode:`xml`,ext:[`xml`,`xsl`,`xsd`,`svg`],alias:[`rss`,`wsdl`,`xsd`]},{name:`XQuery`,mime:`application/xquery`,mode:`xquery`,ext:[`xy`,`xquery`]},{name:`Yacas`,mime:`text/x-yacas`,mode:`yacas`,ext:[`ys`]},{name:`YAML`,mimes:[`text/x-yaml`,`text/yaml`],mode:`yaml`,ext:[`yaml`,`yml`],alias:[`yml`]},{name:`Z80`,mime:`text/x-z80`,mode:`z80`,ext:[`z80`]},{name:`mscgen`,mime:`text/x-mscgen`,mode:`mscgen`,ext:[`mscgen`,`mscin`,`msc`]},{name:`xu`,mime:`text/x-xu`,mode:`mscgen`,ext:[`xu`]},{name:`msgenny`,mime:`text/x-msgenny`,mode:`mscgen`,ext:[`msgenny`]},{name:`WebAssembly`,mime:`text/webassembly`,mode:`wast`,ext:[`wat`,`wast`]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes){for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}}if(/\+xml$/.test(t))return e.findModeByMIME(`application/xml`);if(/\+json$/.test(t))return e.findModeByMIME(`application/json`)},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext){for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf(`.`),a=i>-1&&t.substring(i+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias){for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}})})),wt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),bt(),Ct()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../xml/xml`,`../meta`],n):n(CodeMirror)})(function(e){e.defineMode(`markdown`,function(t,n){var r=e.getMode(t,`text/html`),i=r.name==`null`;function a(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return i.name==`null`?null:i}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode=`text/plain`),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var o={header:`header`,code:`comment`,quote:`quote`,list1:`variable-2`,list2:`variable-3`,list3:`keyword`,hr:`hr`,image:`image`,imageAltText:`image-alt-text`,imageMarker:`image-marker`,formatting:`formatting`,linkInline:`link`,linkEmail:`link`,linkText:`link`,linkHref:`string`,em:`em`,strong:`strong`,strikethrough:`strikethrough`,emoji:`builtin`};for(var s in o)o.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(o[s]=n.tokenTypeOverrides[s]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,_=` `;function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function b(e){return!e||!/\S/.test(e.string)}function x(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==C){var n=i;if(!n){var a=e.innerMode(r,t.htmlState);n=a.mode.name==`xml`&&a.state.tagStart===null&&!a.state.context&&a.state.tokenize.isInText}n&&(t.f=D,t.block=S,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function S(t,r){var i=t.column()===r.indentation,s=b(r.prevLine.stream),p=r.indentedCode,g=r.prevLine.hr,_=r.list!==!1,y=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var x=r.indentation;if(r.indentationDiff===null&&(r.indentationDiff=r.indentation,_)){for(r.list=null;x<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;r.list!==!1&&(r.indentationDiff=x-r.listStack[r.listStack.length-1])}var S=!s&&!g&&!r.prevLine.header&&(!_||!p)&&!r.prevLine.fencedCodeEnd,C=(r.list===!1||g||s)&&r.indentation<=y&&t.match(c),E=null;if(r.indentationDiff>=4&&(p||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,o.code;if(t.eatSpace())return null;if(i&&r.indentation<=y&&(E=t.match(d))&&E[1].length<=6)return r.quote=0,r.header=E[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting=`header`),r.f=r.inline,T(r);if(r.indentation<=y&&t.eat(`>`))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting=`quote`),t.eatSpace(),T(r);if(!C&&!r.setext&&i&&r.indentation<=y&&(E=t.match(l))){var D=E[1]?`ol`:`ul`;return r.indentation=x+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=[`list`,`list-`+D]),T(r)}else if(i&&r.indentation<=y&&(E=t.match(m,!0)))return r.quote=0,r.fencedEndRE=RegExp(E[1]+`+ *$`),r.localMode=n.fencedCodeBlockHighlighting&&a(E[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=w,n.highlightFormatting&&(r.formatting=`code-block`),r.code=-1,T(r);else if(r.setext||(!S||!_)&&!r.quote&&r.list===!1&&!r.code&&!C&&!h.test(t.string)&&(E=t.lookAhead(1))&&(E=E.match(f)))return r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting=`header`)):(r.header=E[0].charAt(0)==`=`?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,T(r);else if(C)return t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr;else if(t.peek()===`[`)return v(t,r,M);return v(t,r,r.inline)}function C(t,n){var a=r.token(t,n.htmlState);if(!i){var o=e.innerMode(r,n.htmlState);(o.mode.name==`xml`&&o.state.tagStart===null&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(`>`)>-1)&&(n.f=D,n.block=S,n.htmlState=null)}return a}function w(e,t){var r=t.listStack[t.listStack.length-1]||0,i=t.indentation<r,a=r+3;if(t.fencedEndRE&&t.indentation<=a&&(i||e.match(t.fencedEndRE))){n.highlightFormatting&&(t.formatting=`code-block`);var s;return i||(s=T(t)),t.localMode=t.localState=null,t.block=S,t.f=D,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,i?y(e,t,t.block):s}else if(t.localMode)return t.localMode.token(e,t.localState);else return e.skipToEnd(),o.code}function T(e){var t=[];if(e.formatting){t.push(o.formatting),typeof e.formatting==`string`&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+`-`+e.formatting[r]),e.formatting[r]===`header`&&t.push(o.formatting+`-`+e.formatting[r]+`-`+e.header),e.formatting[r]===`quote`&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+`-`+e.formatting[r]+`-`+e.quote):t.push(`error`))}if(e.taskOpen)return t.push(`meta`),t.length?t.join(` `):null;if(e.taskClosed)return t.push(`property`),t.length?t.join(` `):null;if(e.linkHref?t.push(o.linkHref,`url`):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,`link`),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+`-`+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+`-`+e.quote):t.push(o.quote+`-`+n.maxBlockquoteDepth)),e.list!==!1){var i=(e.listStack.length-1)%3;i?i===1?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push(`trailing-space-new-line`):e.trailingSpace&&t.push(`trailing-space-`+(e.trailingSpace%2?`a`:`b`)),t.length?t.join(` `):null}function E(e,t){if(e.match(p,!0))return T(t)}function D(t,i){var a=i.text(t,i);if(a!==void 0)return a;if(i.list)return i.list=null,T(i);if(i.taskList)return t.match(u,!0)[1]===` `?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting=`task`),i.taskList=!1,T(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting=`header`),T(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;s===`(`&&(c=`)`),c=(c+``).replace(/([.?*+^\[\]\\(){}|-])/g,`\\$1`);var l=`^\\s*(?:[^`+c+`\\\\]+|\\\\\\\\|\\\\.)`+c;if(t.match(new RegExp(l),!0))return o.linkHref}if(s==="`"){var d=i.formatting;n.highlightFormatting&&(i.formatting=`code`),t.eatWhile("`");var f=t.current().length;if(i.code==0&&(!i.quote||f==1))return i.code=f,T(i);if(f==i.code){var p=T(i);return i.code=0,p}else return i.formatting=d,T(i)}else if(i.code)return T(i);if(s===`\\`&&(t.next(),n.highlightFormatting)){var m=T(i),h=o.formatting+`-escape`;return m?m+` `+h:h}if(s===`!`&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting=`image`),T(i);if(s===`[`&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting=`image`),T(i);if(s===`]`&&i.imageAltText){n.highlightFormatting&&(i.formatting=`image`);var m=T(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=k,m}if(s===`[`&&!i.image)return i.linkText&&t.match(/^.*?\]/)?T(i):(i.linkText=!0,n.highlightFormatting&&(i.formatting=`link`),T(i));if(s===`]`&&i.linkText){n.highlightFormatting&&(i.formatting=`link`);var m=T(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?k:D,m}if(s===`<`&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting=`link`);var m=T(i);return m?m+=` `:m=``,m+o.linkInline}if(s===`<`&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting=`link`);var m=T(i);return m?m+=` `:m=``,m+o.linkEmail}if(n.xml&&s===`<`&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var _=t.string.indexOf(`>`,t.pos);if(_!=-1){var v=t.string.substring(t.start,_);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),y(t,i,C)}if(n.xml&&s===`<`&&t.match(/^\/\w*?>/))return i.md_inside=!1,`tag`;if(s===`*`||s===`_`){for(var b=1,x=t.pos==1?` `:t.string.charAt(t.pos-2);b<3&&t.eat(s);)b++;var S=t.peek()||` `,w=!/\s/.test(S)&&(!g.test(S)||/\s/.test(x)||g.test(x)),E=!/\s/.test(x)&&(!g.test(x)||/\s/.test(S)||g.test(S)),A=null,j=null;if(b%2&&(!i.em&&w&&(s===`*`||!E||g.test(x))?A=!0:i.em==s&&E&&(s===`*`||!w||g.test(S))&&(A=!1)),b>1&&(!i.strong&&w&&(s===`*`||!E||g.test(x))?j=!0:i.strong==s&&E&&(s===`*`||!w||g.test(S))&&(j=!1)),j!=null||A!=null){n.highlightFormatting&&(i.formatting=A==null?`strong`:j==null?`em`:`strong em`),A===!0&&(i.em=s),j===!0&&(i.strong=s);var p=T(i);return A===!1&&(i.em=!1),j===!1&&(i.strong=!1),p}}else if(s===` `&&(t.eat(`*`)||t.eat(`_`))){if(t.peek()===` `)return T(i);t.backUp(1)}if(n.strikethrough){if(s===`~`&&t.eatWhile(s)){if(i.strikethrough){n.highlightFormatting&&(i.formatting=`strikethrough`);var p=T(i);return i.strikethrough=!1,p}else if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting=`strikethrough`),T(i)}else if(s===` `&&t.match(`~~`,!0)){if(t.peek()===` `)return T(i);t.backUp(2)}}if(n.emoji&&s===`:`&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting=`emoji`);var M=T(i);return i.emoji=!1,M}return s===` `&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),T(i)}function O(e,t){if(e.next()===`>`){t.f=t.inline=D,n.highlightFormatting&&(t.formatting=`link`);var r=T(t);return r?r+=` `:r=``,r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function k(e,t){if(e.eatSpace())return null;var r=e.next();return r===`(`||r===`[`?(t.f=t.inline=j(r===`(`?`)`:`]`),n.highlightFormatting&&(t.formatting=`link-string`),t.linkHref=!0,T(t)):`error`}var A={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function j(e){return function(t,r){if(t.next()===e){r.f=r.inline=D,n.highlightFormatting&&(r.formatting=`link-string`);var i=T(r);return r.linkHref=!1,i}return t.match(A[e]),r.linkHref=!0,T(r)}}function M(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=ee,e.next(),n.highlightFormatting&&(t.formatting=`link`),t.linkText=!0,T(t)):v(e,t,D)}function ee(e,t){if(e.match(`]:`,!0)){t.f=t.inline=N,n.highlightFormatting&&(t.formatting=`link`);var r=T(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),e.peek()===void 0?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=D,o.linkHref+` url`)}var P={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:D,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return x(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,_).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:P}},indent:function(t,n,i){return t.block==C&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:x,getType:T,blockCommentStart:`<!--`,blockCommentEnd:`-->`,closeBrackets:`()[]{}''""\`\``,fold:`markdown`};return P},`xml`),e.defineMIME(`text/markdown`,`markdown`),e.defineMIME(`text/x-markdown`,`markdown`)})})),Tt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),xt(),$(),St()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../javascript/javascript`,`../css/css`,`../htmlmixed/htmlmixed`],n):n(CodeMirror)})(function(e){e.defineMode(`pug`,function(t){var n=`keyword`,r=`meta`,i=`builtin`,a=`qualifier`,o={"{":`}`,"(":`)`,"[":`]`},s=e.getMode(t,`javascript`);function c(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(s),this.restOfLine=``,this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag=``,this.scriptType=``,this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue=``,this.indentOf=1/0,this.indentToken=``,this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}c.prototype.copy=function(){var t=new c;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(s,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t};function l(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&e.peek()===`:`){t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1;return}var n=s.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}function u(e,t){if(t.javaScriptArguments){if(t.javaScriptArgumentsDepth===0&&e.peek()!==`(`){t.javaScriptArguments=!1;return}if(e.peek()===`(`?t.javaScriptArgumentsDepth++:e.peek()===`)`&&t.javaScriptArgumentsDepth--,t.javaScriptArgumentsDepth===0){t.javaScriptArguments=!1;return}return s.token(e,t.jsState)||!0}}function d(e){if(e.match(/^yield\b/))return`keyword`}function f(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return r}function p(e,t){if(e.match(`#{`))return t.isInterpolating=!0,t.interpolationNesting=0,`punctuation`}function m(e,t){if(t.isInterpolating){if(e.peek()===`}`){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,`punctuation`}else e.peek()===`{`&&t.interpolationNesting++;return s.token(e,t.jsState)||!0}}function h(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}function g(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}function _(e){if(e.match(/^default\b/))return n}function v(e,t){if(e.match(/^extends?\b/))return t.restOfLine=`string`,n}function y(e,t){if(e.match(/^append\b/))return t.restOfLine=`variable`,n}function b(e,t){if(e.match(/^prepend\b/))return t.restOfLine=`variable`,n}function x(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine=`variable`,n}function S(e,t){if(e.match(/^include\b/))return t.restOfLine=`string`,n}function C(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match(`include`))return t.isIncludeFiltered=!0,n}function w(e,t){if(t.isIncludeFiltered){var n=ee(e,t);return t.isIncludeFiltered=!1,t.restOfLine=`string`,n}}function T(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}function E(e,t){if(e.match(/^\+([-\w]+)/))return e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),`variable`;if(e.match(`+#{`,!1))return e.next(),t.mixinCallAfter=!0,p(e,t)}function D(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}function O(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}function k(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}function A(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return`variable`}}}function j(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}function M(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),t.lastTag===`script`&&(t.scriptType=`application/javascript`),`tag`}function ee(n,r){if(n.match(/^:([\w\-]+)/)){var i;return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||=n.current().substring(1),typeof i==`string`&&(i=e.getMode(t,i)),re(n,r,i),`atom`}}function N(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,`punctuation`}function P(e){if(e.match(/^#([\w-]+)/))return i}function F(e){if(e.match(/^\.([\w-]+)/))return a}function I(e,t){if(e.peek()==`(`)return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue=``,t.attributeIsType=!1,`punctuation`}function te(t,n){if(n.isAttrs){if(o[t.peek()]&&n.attrsNest.push(o[t.peek()]),n.attrsNest[n.attrsNest.length-1]===t.peek())n.attrsNest.pop();else if(t.eat(`)`))return n.isAttrs=!1,`punctuation`;if(n.inAttributeName&&t.match(/^[^=,\)!]+/))return(t.peek()===`=`||t.peek()===`!`)&&(n.inAttributeName=!1,n.jsState=e.startState(s),n.lastTag===`script`&&t.current().trim().toLowerCase()===`type`?n.attributeIsType=!0:n.attributeIsType=!1),`attribute`;var r=s.token(t,n.jsState);if(n.attributeIsType&&r===`string`&&(n.scriptType=t.current().toString()),n.attrsNest.length===0&&(r===`string`||r===`variable`||r===`keyword`))try{return Function(``,`var x `+n.attrValue.replace(/,\s*$/,``).replace(/^!/,``)),n.inAttributeName=!0,n.attrValue=``,t.backUp(t.current().length),te(t,n)}catch{}return n.attrValue+=t.current(),r||!0}}function L(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,`keyword`}function R(e){if(e.sol()&&e.eatSpace())return`indent`}function z(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken=`comment`,`comment`}function B(e){if(e.match(/^: */))return`colon`}function V(e,t){if(e.match(/^(?:\| ?| )([^\n]+)/))return`string`;if(e.match(/^(<[^\n]*)/,!1))return re(e,t,`htmlmixed`),t.innerModeForLine=!0,U(e,t,!0)}function ne(e,t){if(e.eat(`.`)){var n=null;return t.lastTag===`script`&&t.scriptType.toLowerCase().indexOf(`javascript`)!=-1?n=t.scriptType.toLowerCase().replace(/"|'/g,``):t.lastTag===`style`&&(n=`css`),re(e,t,n),`dot`}}function H(e){return e.next(),null}function re(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&i.name!==`null`?r.innerMode=i:r.indentToken=`string`}function U(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{},t.hideFirstChars(n.indentOf+2,function(){return n.innerMode.token(t,n.innerState)||!0})):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}function W(e,t){if(e.sol()&&(t.restOfLine=``),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine=``,n}}function ie(){return new c}function G(e){return e.copy()}function ae(e,t){var n=U(e,t)||W(e,t)||m(e,t)||w(e,t)||A(e,t)||te(e,t)||l(e,t)||u(e,t)||D(e,t)||d(e)||f(e)||p(e,t)||h(e,t)||g(e,t)||_(e)||v(e,t)||y(e,t)||b(e,t)||x(e,t)||S(e,t)||C(e,t)||T(e,t)||E(e,t)||O(e,t)||k(e,t)||j(e,t)||M(e,t)||ee(e,t)||N(e,t)||P(e)||F(e)||I(e,t)||L(e,t)||R(e)||V(e,t)||z(e,t)||B(e)||ne(e,t)||H(e);return n===!0?null:n}return{startState:ie,copyState:G,token:ae}},`javascript`,`css`,`htmlmixed`),e.defineMIME(`text/x-pug`,`pug`),e.defineMIME(`text/x-jade`,`pug`)})})),Et=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),$()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../css/css`],n):n(CodeMirror)})(function(e){e.defineMode(`sass`,function(t){var n=e.mimeModes[`text/css`],r=n.propertyKeywords||{},i=n.colorKeywords||{},a=n.valueKeywords||{},o=n.fontProperties||{};function s(e){return RegExp(`^`+e.join(`|`))}var c=RegExp(`^`+[`true`,`false`,`null`,`auto`].join(`|`)),l=s([`\\(`,`\\)`,`=`,`>`,`<`,`==`,`>=`,`<=`,`\\+`,`-`,`\\!=`,`/`,`\\*`,`%`,`and`,`or`,`not`,`;`,`\\{`,`\\}`,`:`]),u=/^::?[a-zA-Z_][\w\-]*/,d;function f(e){return!e.peek()||e.match(/\s+$/,!1)}function p(e,t){var n=e.peek();return n===`)`?(e.next(),t.tokenizer=y,`operator`):n===`(`?(e.next(),e.eatSpace(),`operator`):n===`'`||n===`"`?(t.tokenizer=h(e.next()),`string`):(t.tokenizer=h(`)`,!1),`string`)}function m(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=y,y(n,r)):(t&&n.skipTo(`*/`)?(n.next(),n.next(),r.tokenizer=y):n.skipToEnd(),`comment`)}}function h(e,t){t??=!0;function n(r,i){var a=r.next(),o=r.peek(),s=r.string.charAt(r.pos-2);return a!==`\\`&&o===e||a===e&&s!==`\\`?(a!==e&&t&&r.next(),f(r)&&(i.cursorHalf=0),i.tokenizer=y,`string`):a===`#`&&o===`{`?(i.tokenizer=g(n),r.next(),`operator`):`string`}return n}function g(e){return function(t,n){return t.peek()===`}`?(t.next(),n.tokenizer=e,`operator`):y(t,n)}}function _(e){if(e.indentCount==0){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function v(e){e.scopes.length!=1&&e.scopes.shift()}function y(e,t){var n=e.peek();if(e.match(`/*`))return t.tokenizer=m(e.indentation(),!0),t.tokenizer(e,t);if(e.match(`//`))return t.tokenizer=m(e.indentation(),!1),t.tokenizer(e,t);if(e.match(`#{`))return t.tokenizer=g(y),`operator`;if(n===`"`||n===`'`)return e.next(),t.tokenizer=h(n),`string`;if(t.cursorHalf){if(n===`#`&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||e.match(/^-?[0-9\.]+/))return f(e)&&(t.cursorHalf=0),`number`;if(e.match(/^(px|em|in)\b/))return f(e)&&(t.cursorHalf=0),`unit`;if(e.match(c))return f(e)&&(t.cursorHalf=0),`keyword`;if(e.match(/^url/)&&e.peek()===`(`)return t.tokenizer=p,f(e)&&(t.cursorHalf=0),`atom`;if(n===`$`)return e.next(),e.eatWhile(/[\w-]/),f(e)&&(t.cursorHalf=0),`variable-2`;if(n===`!`)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?`keyword`:`operator`;if(e.match(l))return f(e)&&(t.cursorHalf=0),`operator`;if(e.eatWhile(/[\w-]/))return f(e)&&(t.cursorHalf=0),d=e.current().toLowerCase(),a.hasOwnProperty(d)?`atom`:i.hasOwnProperty(d)?`keyword`:r.hasOwnProperty(d)?(t.prevProp=e.current().toLowerCase(),`property`):`tag`;if(f(e))return t.cursorHalf=0,null}else{if(n===`-`&&e.match(/^-\w+-/))return`meta`;if(n===`.`){if(e.next(),e.match(/^[\w-]+/))return _(t),`qualifier`;if(e.peek()===`#`)return _(t),`tag`}if(n===`#`){if(e.next(),e.match(/^[\w-]+/))return _(t),`builtin`;if(e.peek()===`#`)return _(t),`tag`}if(n===`$`)return e.next(),e.eatWhile(/[\w-]/),`variable-2`;if(e.match(/^-?[0-9\.]+/))return`number`;if(e.match(/^(px|em|in)\b/))return`unit`;if(e.match(c))return`keyword`;if(e.match(/^url/)&&e.peek()===`(`)return t.tokenizer=p,`atom`;if(n===`=`&&e.match(/^=[\w-]+/))return _(t),`meta`;if(n===`+`&&e.match(/^\+[\w-]+/))return`variable-3`;if(n===`@`&&e.match(`@extend`)&&(e.match(/\s*[\w]/)||v(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return _(t),`def`;if(n===`@`)return e.next(),e.eatWhile(/[\w-]/),`def`;if(e.eatWhile(/[\w-]/))if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){d=e.current().toLowerCase();var s=t.prevProp+`-`+d;return r.hasOwnProperty(s)?`property`:r.hasOwnProperty(d)?(t.prevProp=d,`property`):o.hasOwnProperty(d)?`property`:`tag`}else if(e.match(/ *:/,!1))return _(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),`property`;else if(e.match(/ *,/,!1))return`tag`;else return _(t),`tag`;if(n===`:`)return e.match(u)?`variable-3`:(e.next(),t.cursorHalf=1,`operator`)}return e.match(l)?`operator`:(e.next(),null)}function b(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if((i===`@return`||i===`}`)&&v(n),r!==null){for(var a=e.pos-i.length+t.indentUnit*n.indentCount,o=[],s=0;s<n.scopes.length;s++){var c=n.scopes[s];c.offset<=a&&o.push(c)}n.scopes=o}return r}return{startState:function(){return{tokenizer:y,scopes:[{offset:0,type:`sass`}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){var n=b(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e){return e.scopes[0].offset},blockCommentStart:`/*`,blockCommentEnd:`*/`,lineComment:`//`,fold:`indent`}},`css`),e.defineMIME(`text/x-sass`,`sass`)})})),Dt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),i.overlayCur==null?i.baseCur:i.baseCur!=null&&i.overlay.combineTokens||r&&i.overlay.combineTokens==null?i.baseCur+` `+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,a;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(a=n.blankLine(e.overlay)),a==null?i:r&&i!=null?i+` `+a:a}}}})})),Ot=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`coffeescript`,function(e,t){var n=`error`;function r(e){return RegExp(`^((`+e.join(`)|(`)+`))\\b`)}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,c=r([`and`,`or`,`not`,`is`,`isnt`,`in`,`instanceof`,`typeof`]),l=[`for`,`while`,`loop`,`if`,`unless`,`else`,`switch`,`try`,`catch`,`finally`,`class`],u=r(l.concat([`break`,`by`,`continue`,`debugger`,`delete`,`do`,`in`,`of`,`new`,`return`,`then`,`this`,`@`,`throw`,`when`,`until`,`extends`]));l=r(l);var d=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,p=r([`Infinity`,`NaN`,`undefined`,`null`,`true`,`false`,`on`,`off`,`yes`,`no`]);function m(e,t){if(e.sol()){t.scope.align===null&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var l=e.indentation();return l>r&&t.scope.type==`coffee`?`indent`:l<r?`dedent`:null}else r>0&&v(e,t)}if(e.eatSpace())return null;var m=e.peek();if(e.match(`####`))return e.skipToEnd(),`comment`;if(e.match(`###`))return t.tokenize=g,t.tokenize(e,t);if(m===`#`)return e.skipToEnd(),`comment`;if(e.match(/^-?[0-9\.]/,!1)){var _=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(_=!0),e.match(/^-?\d+\.\d*/)&&(_=!0),e.match(/^-?\.\d+/)&&(_=!0),_)return e.peek()==`.`&&e.backUp(1),`number`;var y=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(y=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^-?0(?![\dx])/i)&&(y=!0),y)return`number`}if(e.match(d))return t.tokenize=h(e.current(),!1,`string`),t.tokenize(e,t);if(e.match(f)){if(e.current()!=`/`||e.match(/^.*\//,!1))return t.tokenize=h(e.current(),!0,`string-2`),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(c)?`operator`:e.match(a)?`punctuation`:e.match(p)?`atom`:e.match(s)||t.prop&&e.match(o)?`property`:e.match(u)?`keyword`:e.match(o)?`variable`:(e.next(),n)}function h(e,r,i){return function(a,o){for(;!a.eol();)if(a.eatWhile(/[^'"\/\\]/),a.eat(`\\`)){if(a.next(),r&&a.eol())return i}else if(a.match(e))return o.tokenize=m,i;else a.eat(/['"\/]/);return r&&(t.singleLineStringErrors?i=n:o.tokenize=m),i}}function g(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match(`###`)){t.tokenize=m;break}e.eatWhile(`#`)}return`comment`}function _(t,n,r){r||=`coffee`;for(var i=0,a=!1,o=null,s=n.scope;s;s=s.prev)if(s.type===`coffee`||s.type==`}`){i=s.offset+e.indentUnit;break}r===`coffee`?n.scope.align&&(n.scope.align=!1):(a=null,o=t.column()+t.current().length),n.scope={offset:i,type:r,prev:n.scope,align:a,alignOffset:o}}function v(e,t){if(t.scope.prev)if(t.scope.type===`coffee`){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}else return t.scope=t.scope.prev,!1}function y(e,t){var r=t.tokenize(e,t),i=e.current();i===`return`&&(t.dedent=!0),((i===`->`||i===`=>`)&&e.eol()||r===`indent`)&&_(e,t);var a=`[({`.indexOf(i);if(a!==-1&&_(e,t,`])}`.slice(a,a+1)),l.exec(i)&&_(e,t),i==`then`&&v(e,t),r===`dedent`&&v(e,t))return n;if(a=`])}`.indexOf(i),a!==-1){for(;t.scope.type==`coffee`&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&(t.scope.type==`coffee`&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}return{startState:function(e){return{tokenize:m,scope:{offset:e||0,type:`coffee`,prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=t.scope.align===null&&t.scope;n&&e.sol()&&(n.align=!1);var r=y(e,t);return r&&r!=`comment`&&(n&&(n.align=!0),t.prop=r==`punctuation`&&e.current()==`.`),r},indent:function(e,t){if(e.tokenize!=m)return 0;var n=e.scope,r=t&&`])}`.indexOf(t.charAt(0))>-1;if(r)for(;n.type==`coffee`&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:`#`,fold:`indent`}}),e.defineMIME(`application/vnd.coffeescript`,`coffeescript`),e.defineMIME(`text/x-coffeescript`,`coffeescript`),e.defineMIME(`text/coffeescript`,`coffeescript`)})})),kt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`stylus`,function(e){for(var p=e.indentUnit,_=``,v=h(t),y=/^(a|b|i|s|col|em)$/i,b=h(a),x=h(o),S=h(l),C=h(c),w=h(n),T=m(n),E=h(i),D=h(r),O=h(s),k=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,A=m(u),j=h(d),M=new RegExp(/^\-(moz|ms|o|webkit)-/i),ee=h(f),N=``,P={},F,I,te,L;_.length<p;)_+=` `;function R(e,t){if(N=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=N?N[0].replace(/^\s*/,``):``,t.context.line.indent=e.indentation(),F=e.peek(),e.match(`//`))return e.skipToEnd(),[`comment`,`comment`];if(e.match(`/*`))return t.tokenize=z,z(e,t);if(F==`"`||F==`'`)return e.next(),t.tokenize=B(F),t.tokenize(e,t);if(F==`@`)return e.next(),e.eatWhile(/[\w\\-]/),[`def`,e.current()];if(F==`#`){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return[`atom`,`atom`];if(e.match(/^[a-z][\w-]*/i))return[`builtin`,`hash`]}return e.match(M)?[`meta`,`vendor-prefixes`]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),[`number`,`unit`]):F==`!`?(e.next(),[e.match(/^(important|optional)/i)?`keyword`:`operator`,`important`]):F==`.`&&e.match(/^\.[a-z][\w-]*/i)?[`qualifier`,`qualifier`]:e.match(T)?(e.peek()==`(`&&(t.tokenize=V),[`property`,`word`]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),[`keyword`,`mixin`]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),[`keyword`,`block-mixin`]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?[`qualifier`,`qualifier`]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),[`variable-3`,`reference`]):e.match(/^&{1}\s*$/)?[`variable-3`,`reference`]:e.match(A)?[`operator`,`operator`]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!ie(e.current())?(e.match(`.`),[`variable-2`,`variable-name`]):[`variable-2`,`word`]:e.match(k)?[`operator`,e.current()]:/[:;,{}\[\]\(\)]/.test(F)?(e.next(),[null,F]):(e.next(),[null,null])}function z(e,t){for(var n=!1,r;(r=e.next())!=null;){if(n&&r==`/`){t.tokenize=null;break}n=r==`*`}return[`comment`,`comment`]}function B(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),[`string`,`string`]}}function V(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=B(`)`),[null,`(`]}function ne(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:``,indent:0}}function H(e,t,n,r){return r=r>=0?r:p,e.context=new ne(n,t.indentation()+r,e.context),n}function re(e,t){var n=e.context.indent-p;return t||=!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function U(e,t,n){return P[n.context.type](e,t,n)}function W(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return U(e,t,n)}function ie(e){return e.toLowerCase()in v}function G(e){return e=e.toLowerCase(),e in b||e in O}function ae(e){return e.toLowerCase()in j}function oe(e){return e.toLowerCase().match(M)}function se(e){var t=e.toLowerCase(),n=`variable-2`;return ie(e)?n=`tag`:ae(e)?n=`block-keyword`:G(e)?n=`property`:t in S||t in ee?n=`atom`:t==`return`||t in C?n=`keyword`:e.match(/^[A-Z]/)&&(n=`string`),n}function K(e,t){return de(t)&&(e==`{`||e==`]`||e==`hash`||e==`qualifier`)||e==`block-mixin`}function ce(e,t){return e==`{`&&t.match(/^\s*\$?[\w-]+/i,!1)}function le(e,t){return e==`:`&&t.match(/^[a-z-]+/,!1)}function ue(e){return e.sol()||e.string.match(RegExp(`^\\s*`+g(e.current())))}function de(e){return e.eol()||e.match(/^\s*$/,!1)}function fe(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n=typeof e==`string`?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,``):``}return P.block=function(e,t,n){if(e==`comment`&&ue(t)||e==`,`&&de(t)||e==`mixin`)return H(n,t,`block`,0);if(ce(e,t))return H(n,t,`interpolation`);if(de(t)&&e==`]`&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!ie(fe(t)))return H(n,t,`block`,0);if(K(e,t))return H(n,t,`block`);if(e==`}`&&de(t))return H(n,t,`block`,0);if(e==`variable-name`)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||ae(fe(t))?H(n,t,`variableName`):H(n,t,`variableName`,0);if(e==`=`)return!de(t)&&!ae(fe(t))?H(n,t,`block`,0):H(n,t,`block`);if(e==`*`&&(de(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return L=`tag`,H(n,t,`block`);if(le(e,t))return H(n,t,`pseudo`);if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return H(n,t,de(t)?`block`:`atBlock`);if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return H(n,t,`keyframes`);if(/@extends?/.test(e))return H(n,t,`extend`,0);if(e&&e.charAt(0)==`@`)return t.indentation()>0&&G(t.current().slice(1))?(L=`variable-2`,`block`):/(@import|@require|@charset)/.test(e)?H(n,t,`block`,0):H(n,t,`block`);if(e==`reference`&&de(t))return H(n,t,`block`);if(e==`(`)return H(n,t,`parens`);if(e==`vendor-prefixes`)return H(n,t,`vendorPrefixes`);if(e==`word`){var r=t.current();if(L=se(r),L==`property`)return ue(t)?H(n,t,`block`,0):(L=`atom`,`block`);if(L==`tag`){if(/embed|menu|pre|progress|sub|table/.test(r)&&G(fe(t))||t.string.match(RegExp(`\\[\\s*`+r+`|`+r+`\\s*\\]`)))return L=`atom`,`block`;if(y.test(r)&&(ue(t)&&t.string.match(/=/)||!ue(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!ie(fe(t))))return L=`variable-2`,ae(fe(t))?`block`:H(n,t,`block`,0);if(de(t))return H(n,t,`block`)}if(L==`block-keyword`)return L=`keyword`,t.current(/(if|unless)/)&&!ue(t)?`block`:H(n,t,`block`);if(r==`return`)return H(n,t,`block`,0);if(L==`variable-2`&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return H(n,t,`block`)}return n.context.type},P.parens=function(e,t,n){if(e==`(`)return H(n,t,`parens`);if(e==`)`)return n.context.prev.type==`parens`?re(n):t.string.match(/^[a-z][\w-]*\(/i)&&de(t)||ae(fe(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(fe(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&ie(fe(t))?H(n,t,`block`):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?H(n,t,`block`,0):de(t)?H(n,t,`block`):H(n,t,`block`,0);if(e&&e.charAt(0)==`@`&&G(t.current().slice(1))&&(L=`variable-2`),e==`word`){var r=t.current();L=se(r),L==`tag`&&y.test(r)&&(L=`variable-2`),(L==`property`||r==`to`)&&(L=`atom`)}return e==`variable-name`?H(n,t,`variableName`):le(e,t)?H(n,t,`pseudo`):n.context.type},P.vendorPrefixes=function(e,t,n){return e==`word`?(L=`property`,H(n,t,`block`,0)):re(n)},P.pseudo=function(e,t,n){return G(fe(t.string))?W(e,t,n):(t.match(/^[a-z-]+/),L=`variable-3`,de(t)?H(n,t,`block`):re(n))},P.atBlock=function(e,t,n){if(e==`(`)return H(n,t,`atBlock_parens`);if(K(e,t))return H(n,t,`block`);if(ce(e,t))return H(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();if(L=/^(only|not|and|or)$/.test(r)?`keyword`:w.hasOwnProperty(r)?`tag`:D.hasOwnProperty(r)?`attribute`:E.hasOwnProperty(r)?`property`:x.hasOwnProperty(r)?`string-2`:se(t.current()),L==`tag`&&de(t))return H(n,t,`block`)}return e==`operator`&&/^(not|and|or)$/.test(t.current())&&(L=`keyword`),n.context.type},P.atBlock_parens=function(e,t,n){if(e==`{`||e==`}`)return n.context.type;if(e==`)`)return de(t)?H(n,t,`block`):H(n,t,`atBlock`);if(e==`word`){var r=t.current().toLowerCase();return L=se(r),/^(max|min)/.test(r)&&(L=`property`),L==`tag`&&(L=y.test(r)?`variable-2`:`atom`),n.context.type}return P.atBlock(e,t,n)},P.keyframes=function(e,t,n){return t.indentation()==`0`&&(e==`}`&&ue(t)||e==`]`||e==`hash`||e==`qualifier`||ie(t.current()))?W(e,t,n):e==`{`?H(n,t,`keyframes`):e==`}`?ue(t)?re(n,!0):H(n,t,`keyframes`):e==`unit`&&/^[0-9]+\%$/.test(t.current())?H(n,t,`keyframes`):e==`word`&&(L=se(t.current()),L==`block-keyword`)?(L=`keyword`,H(n,t,`keyframes`)):/@(font-face|media|supports|(-moz-)?document)/.test(e)?H(n,t,de(t)?`block`:`atBlock`):e==`mixin`?H(n,t,`block`,0):n.context.type},P.interpolation=function(e,t,n){return e==`{`&&re(n)&&H(n,t,`block`),e==`}`?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&ie(fe(t))?H(n,t,`block`):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?H(n,t,`block`,0):H(n,t,`block`):e==`variable-name`?H(n,t,`variableName`,0):(e==`word`&&(L=se(t.current()),L==`tag`&&(L=`atom`)),n.context.type)},P.extend=function(e,t,n){return e==`[`||e==`=`?`extend`:e==`]`?re(n):e==`word`?(L=se(t.current()),`extend`):re(n)},P.variableName=function(e,t,n){return e==`string`||e==`[`||e==`]`||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(L=`variable-2`),`variableName`):W(e,t,n)},{startState:function(e){return{tokenize:null,state:`block`,context:new ne(`block`,e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:(I=(t.tokenize||R)(e,t),I&&typeof I==`object`&&(te=I[1],I=I[0]),L=I,t.state=P[t.state](te,e,t),L)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),a=r.indent,o=fe(t),s=n.match(/^\s*/)[0].replace(/\t/g,_).length,c=e.context.prev?e.context.prev.line.firstWord:``,l=e.context.prev?e.context.prev.line.indent:s;return r.prev&&(i==`}`&&(r.type==`block`||r.type==`atBlock`||r.type==`keyframes`)||i==`)`&&(r.type==`parens`||r.type==`atBlock_parens`)||i==`{`&&r.type==`at`)?a=r.indent-p:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(c)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||ae(o)?a=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||ie(o)?a=/\,\s*$/.test(c)?l:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(c)||ie(c))?s<=l?l:l+p:s:!/,\s*$/.test(n)&&(oe(o)||G(o))&&(a=ae(c)?s<=l?l:l+p:/^\{/.test(c)?s<=l?s:l+p:oe(c)||G(c)?s>=l?l:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(c)||/=\s*$/.test(c)||ie(c)||/^\$[\w-\.\[\]\'\"]/.test(c)?l+p:s)),a},electricChars:`}`,blockCommentStart:`/*`,blockCommentEnd:`*/`,blockCommentContinue:` * `,lineComment:`//`,fold:`indent`}});var t=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.bgsound.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.nobr.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.track.u.ul.var.video`.split(`.`),n=[`domain`,`regexp`,`url-prefix`,`url`],r=[`all`,`aural`,`braille`,`handheld`,`print`,`projection`,`screen`,`tty`,`tv`,`embossed`],i=`width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.dynamic-range.video-dynamic-range`.split(`.`),a=`align-content.align-items.align-self.alignment-adjust.alignment-baseline.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backface-visibility.background.background-attachment.background-clip.background-color.background-image.background-origin.background-position.background-repeat.background-size.baseline-shift.binding.bleed.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-feature-settings.font-family.font-kerning.font-language-override.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-weight.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-position.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.justify-content.left.letter-spacing.line-break.line-height.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marker-offset.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.max-height.max-width.min-height.min-width.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotation.rotation-point.ruby-align.ruby-overhang.ruby-position.ruby-span.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-outline.text-overflow.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.unicode-bidi.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode.font-smoothing.osx-font-smoothing`.split(`.`),o=[`scrollbar-arrow-color`,`scrollbar-base-color`,`scrollbar-dark-shadow-color`,`scrollbar-face-color`,`scrollbar-highlight-color`,`scrollbar-shadow-color`,`scrollbar-3d-light-color`,`scrollbar-track-color`,`shape-inside`,`searchfield-cancel-button`,`searchfield-decoration`,`searchfield-results-button`,`searchfield-results-decoration`,`zoom`],s=[`font-family`,`src`,`unicode-range`,`font-variant`,`font-feature-settings`,`font-stretch`,`font-weight`,`font-style`],c=`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`),l=`above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.avoid.avoid-column.avoid-page.avoid-region.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.column.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.dashed.decimal.decimal-leading-zero.default.default-button.destination-atop.destination-in.destination-out.destination-over.devanagari.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fixed.flat.flex.footnotes.forwards.from.geometricPrecision.georgian.graytext.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hebrew.help.hidden.hide.high.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.malayalam.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row-resize.rtl.run-in.running.s-resize.sans-serif.scale.scale3d.scaleX.scaleY.scaleZ.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.semi-condensed.semi-expanded.separate.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.solid.somali.source-atop.source-in.source-out.source-over.space.spell-out.square.square-button.standard.start.static.status-bar.stretch.stroke.sub.subpixel-antialiased.super.sw-resize.symbolic.symbols.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.x-large.x-small.xor.xx-large.xx-small.bicubic.optimizespeed.grayscale.row.row-reverse.wrap.wrap-reverse.column-reverse.flex-start.flex-end.space-between.space-around.unset`.split(`.`),u=[`in`,`and`,`or`,`not`,`is not`,`is a`,`is`,`isnt`,`defined`,`if unless`],d=[`for`,`if`,`else`,`unless`,`from`,`to`],f=[`null`,`true`,`false`,`href`,`title`,`type`,`not-allowed`,`readonly`,`disabled`],p=t.concat(n,r,i,a,o,c,l,s,u,d,f,[`@font-face`,`@keyframes`,`@media`,`@viewport`,`@page`,`@host`,`@supports`,`@block`,`@css`]);function m(e){return e=e.sort(function(e,t){return t>e}),RegExp(`^((`+e.join(`)|(`)+`))\\b`)}function h(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function g(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}e.registerHelper(`hintWords`,`stylus`,p),e.defineMIME(`text/x-styl`,`stylus`)})})),At=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),Dt(),bt(),xt(),Ot(),$(),Et(),kt(),Tt(),yt()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../../addon/mode/overlay`,`../xml/xml`,`../javascript/javascript`,`../coffeescript/coffeescript`,`../css/css`,`../sass/sass`,`../stylus/stylus`,`../pug/pug`,`../handlebars/handlebars`],n):n(CodeMirror)})(function(e){var t={script:[[`lang`,/coffee(script)?/,`coffeescript`],[`type`,/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,`coffeescript`],[`lang`,/^babel$/,`javascript`],[`type`,/^text\/babel$/,`javascript`],[`type`,/^text\/ecmascript-\d+$/,`javascript`]],style:[[`lang`,/^stylus$/i,`stylus`],[`lang`,/^sass$/i,`sass`],[`lang`,/^less$/i,`text/x-less`],[`lang`,/^scss$/i,`text/x-scss`],[`type`,/^(text\/)?(x-)?styl(us)?$/i,`stylus`],[`type`,/^text\/sass/i,`sass`],[`type`,/^(text\/)?(x-)?scss$/i,`text/x-scss`],[`type`,/^(text\/)?(x-)?less$/i,`text/x-less`]],template:[[`lang`,/^vue-template$/i,`vue`],[`lang`,/^pug$/i,`pug`],[`lang`,/^handlebars$/i,`handlebars`],[`type`,/^(text\/)?(x-)?pug$/i,`pug`],[`type`,/^text\/x-handlebars-template$/i,`handlebars`],[null,null,`vue-template`]]};e.defineMode(`vue-template`,function(t,n){return e.overlayMode(e.getMode(t,n.backdrop||`text/html`),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return`meta mustache`;for(;e.next()&&!e.match(`{{`,!1););return null}})}),e.defineMode(`vue`,function(n){return e.getMode(n,{name:`htmlmixed`,tags:t})},`htmlmixed`,`xml`,`javascript`,`coffeescript`,`css`,`sass`,`stylus`,`pug`,`handlebars`),e.defineMIME(`script/x-vue`,`vue`),e.defineMIME(`text/x-vue`,`vue`)})}));$(),yt(),St(),xt(),wt(),Tt(),Et(),At(),bt();function jt(e,t,n={}){let r=(0,pt.default)(e.value,{theme:`vars`,value:t.value,...n}),i=!1;return r.on(`change`,()=>{if(i){i=!1;return}t.value=r.getValue()}),p(t,e=>{if(e!==r.getValue()){i=!0;let t=r.listSelections();r.replaceRange(e,r.posFromIndex(0),r.posFromIndex(1/0)),r.setSelections(t),r.scrollTo(0,0)}},{immediate:!0}),r}function Mt(e,t){let n=e.getScrollInfo(),r=t.getScrollInfo(),i=(r.width-r.clientWidth)/(n.width-n.clientWidth)*n.left,a=(r.height-r.clientHeight)/(n.height-n.clientHeight)*n.top;i=Number.isNaN(i)?0:i,a=Number.isNaN(a)?0:a,t.scrollTo(i,a)}function Nt(e,t){let n=1;e.getWrapperElement().addEventListener(`mouseenter`,()=>{n=1}),t.getWrapperElement().addEventListener(`mouseenter`,()=>{n=2}),e.on(`scroll`,e=>{n===1&&Mt(e,t)}),e.on(`scrollCursorIntoView`,e=>Mt(e,t)),t.on(`scroll`,t=>{n===2&&Mt(t,e)}),t.on(`scrollCursorIntoView`,t=>Mt(t,e))}function Pt(e){return e.trimStart().startsWith(`<`)?`htmlmixed`:e.match(/^import\s/)?`javascript`:e.match(/^[.#].+\{/)?`css`:`javascript`}var Ft=F({__name:`Viewer`,props:{code:{}},setup(e){let{code:t}=f(e),r,i=l(`codeEl`);return n(()=>{r=jt(i,t,{mode:`javascript`,readOnly:!0,lineNumbers:!0}),fe(()=>{r.setOption(`lineWrapping`,Y.value.codeviewerLineWrap)})}),(e,t)=>(h(),G(`div`,{ref_key:`codeEl`,ref:i},null,512))}}),It=Object.assign(Ft,{__name:`CodeViewer`}),Lt={flex:``,px2:``},Rt={"overflow-hidden":``,"text-ellipsis":``},zt={"overflow-hidden":``,"text-ellipsis":``},Bt=[`d`],Vt=20,Ht=F({__name:`AssetRelationships`,props:{importers:{},imports:{}},setup(e){let t=e,r={width:400,height:35,padding:4,marginX:8,border:1,margin:8,dot:16,dotOffset:80},i=l(`container`),a=y([]),o=R(()=>Math.min(Math.max(t.importers?.length||0,t.imports?.length||0),Vt)),s=R(()=>Math.min(t.importers?.length||0,Vt)),c=R(()=>Math.min(t.imports?.length||0,Vt)),u=R(()=>r.height*o.value+r.padding*(o.value+1)+r.border*2),d=R(()=>{let e=Math.max(0,c.value-s.value)*(r.height+r.padding)/2;return Math.min(e,u.value/2)}),f=R(()=>{let e=Math.max(0,s.value-c.value)*(r.height+r.padding)/2;return Math.min(e,u.value/2)}),m=R(()=>`${u.value/2-r.dot/2}px ${r.dotOffset}px 0 ${t.importers?.length?r.dotOffset:0}px`),_=R(()=>t.importers?.length?r.width+r.marginX:r.marginX),v=R(()=>t.importers?.length?_.value+r.dotOffset:_.value),b=R(()=>(r.height*o.value+(o.value+1)*r.padding)/2);function x(e){switch(e){case`importer-start`:return _.value;case`importer-end`:return v.value;case`import-start`:return v.value+r.dot;case`import-end`:return t.importers?.length?_.value+r.dotOffset*2+r.dot:_.value+r.dotOffset+r.dot}}function S(e,t){switch(e){case`importer-start`:return(r.height+r.padding)*t+(r.height/2+r.padding)+d.value;case`import-end`:return(r.height+r.padding)*t+(r.height/2+r.padding)+f.value;case`importer-end`:case`import-start`:return b.value}}function C(){if(a.value=[],t.importers?.length){let e=Array.from({length:s.value},(e,t)=>({id:`importer-${t}`,source:{x:x(`importer-start`),y:S(`importer-start`,t)},target:{x:x(`importer-end`),y:S(`importer-end`)}}));a.value.push(...e)}if(t.imports?.length){let e=Array.from({length:c.value},(e,t)=>({id:`import-${t}`,source:{x:x(`import-start`),y:S(`import-start`)},target:{x:x(`import-end`),y:S(`import-end`,t)}}));a.value.push(...e)}}return n(()=>{p(()=>[t.importers,t.imports],C,{immediate:!0})}),(t,n)=>{let o=ye,s=pe;return e.importers?.length||e.imports?.length?(h(),G(`div`,{key:0,ref_key:`container`,ref:i,"w-full":``,relative:``,"select-none":``},[U(`div`,Lt,[e.importers?.length?(h(),G(`div`,{key:0,py1:``,style:H({width:`${r.width}px`,marginTop:`${d.value}px`})},[(h(!0),G(j,null,M(e.importers,(t,n)=>(h(),T(s,{key:t.filename,to:{query:{asset:t.filename}},hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"z-graph-node":``,border:`~ base rounded`,"font-mono":``,"text-sm":``,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===e.importers.length-1?0:r.padding}px`,display:`flex`,alignItems:`center`,gap:`0.25rem`})},{default:g(()=>[B(o,{filename:t.filename},null,8,[`filename`]),U(`span`,Rt,A(t.filename),1)]),_:2},1032,[`to`,`style`]))),128))],4)):N(``,!0),U(`div`,{"bg-base":``,"rounded-full":``,"border-3":``,"font-mono":``,"border-active":``,style:H({margin:m.value,width:`${r.dot}px`,height:`${r.dot}px`})},null,4),e.imports?.length?(h(),G(`div`,{key:1,py1:``,style:H({width:`${r.width}px`,marginTop:`${f.value}px`})},[(h(!0),G(j,null,M(e.imports,(t,n)=>(h(),T(s,{key:t.filename,to:{query:{asset:t.filename}},hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"z-graph-node":``,border:`~ base rounded`,"font-mono":``,"text-sm":``,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===e.imports.length-1?0:r.padding}px`,display:`flex`,alignItems:`center`,gap:`0.25rem`})},{default:g(()=>[B(o,{filename:t.filename},null,8,[`filename`]),U(`span`,zt,A(t.filename),1)]),_:2},1032,[`to`,`style`]))),128))],4)):N(``,!0)]),(h(),G(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,"w-full":``,style:H({height:`${u.value}px`})},[U(`g`,null,[(h(!0),G(j,null,M(a.value,e=>(h(),G(`path`,{key:e.id,d:D(je)(e),class:W(D(Me)(e)),fill:`none`},null,10,Bt))),128))])],4))],512)):N(``,!0)}}}),Ut=Object.assign(Ht,{__name:`DataAssetRelationships`}),Wt={flex:`~ col gap-3`},Gt={flex:`~ gap-4 items-center wrap`},Kt={flex:`~ gap-2 items-center`},qt={flex:`~ gap-2`},Jt={flex:`~ gap-2 items-center`},Yt={class:`w-full of-auto px2 py1`,border:`~ base rounded-lg`},Xt={key:1,flex:`~ col gap-4`},Zt={flex:`~ col gap-2`},Qt={key:0,flex:`~ col gap-2`},$t={key:2,flex:`~ col gap-1`},en={key:0,flex:`~ items-center gap-2`},tn=F({__name:`AssetDetails`,props:{session:{},asset:{},chunks:{},importers:{},imports:{},lazy:{type:Boolean,default:!1}},setup(t){let n=t,r=ue(),i=_(),a=c(!1),{state:o}=w(async()=>{if(!n.lazy)return;let e=await r.value[`vite:rolldown:get-asset-details`]?.({session:n.session.id,id:n.asset.filename});return`chunk`in e?{chunks:[{...e?.chunk,type:`chunk`}],importers:e?.importers,imports:e?.imports}:{chunks:[],importers:[],imports:[]}},null),s=R(()=>n.lazy?o.value?.chunks:n.chunks?.filter(e=>e.chunk_id===n.asset.chunk_id)),l=R(()=>n.lazy?o.value?.importers:n.importers),u=R(()=>n.lazy?o.value?.imports:n.imports);function d(){r.value[`vite:core:open-in-editor`](`${n.session.meta.dir}/${n.asset.filename}`)}return(n,r)=>{let o=Ee,c=be,f=Z,p=X,m=It,_=ke,v=pe,y=Ut;return h(),G(`div`,Wt,[U(`div`,Gt,[U(`div`,Kt,[r[3]||=U(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),U(`div`,null,A(t.asset.filename),1),B(o,{bytes:t.asset.size,"text-sm":``},null,8,[`bytes`]),B(c,{text:t.asset.type},null,8,[`text`])]),r[6]||=U(`div`,{"flex-auto":``},null,-1),U(`div`,qt,[U(`button`,{"btn-action":``,onClick:d},[...r[4]||=[U(`div`,{"i-ph-arrow-square-out-duotone":``},null,-1),O(` Open in editor `,-1)]]),U(`button`,{"btn-action":``,onClick:r[0]||=e=>a.value=!0},[...r[5]||=[U(`div`,{"i-ph-file-text":``},null,-1),O(` View source `,-1)]]),e(n.$slots,`default`)])]),a.value?(h(),G(j,{key:0},[U(`div`,Jt,[r[7]||=U(`div`,{op50:``},` Source `,-1),r[8]||=U(`span`,{"flex-auto":``},null,-1),B(f,{title:`Line Wrapping`,"class-icon":`i-ph-arrow-u-down-left-duotone`,active:D(Y).codeviewerLineWrap,onClick:r[1]||=e=>D(Y).codeviewerLineWrap=!D(Y).codeviewerLineWrap},null,8,[`active`]),B(p,{onClick:r[2]||=e=>a.value=!1})]),U(`div`,Yt,[B(m,{code:t.asset.content},null,8,[`code`])])],64)):N(``,!0),s.value&&s.value.length>0?(h(),G(`div`,Xt,[U(`div`,Zt,[r[9]||=U(`div`,{op50:``},` Chunks `,-1),(h(!0),G(j,null,M(s.value,e=>(h(),T(v,{key:e.chunk_id,border:`~ base rounded-lg`,px2:``,py1:``,to:{path:D(i).path,query:{chunk:e.chunk_id}}},{default:g(()=>[B(_,{chunk:e,session:t.session,"show-modules":!1,"show-imports":!1},null,8,[`chunk`,`session`])]),_:2},1032,[`to`]))),128))]),l.value?.length||u.value?.length?(h(),G(`div`,Qt,[r[10]||=U(`div`,{op50:``},` Asset Relationships `,-1),B(y,{importers:l.value,imports:u.value},null,8,[`importers`,`imports`])])):N(``,!0)])):(h(),G(`div`,$t,[r[13]||=U(`div`,{op50:``},` [Non-Module Asset] `,-1),t.asset.filename.endsWith(`.map`)?(h(),G(`div`,en,[r[11]||=U(`span`,{op50:``},`Source Map for`,-1),r[12]||=O(),B(c,{text:JSON.parse(t.asset.content).file},null,8,[`text`])])):N(``,!0)]))])}}}),nn=Object.assign(tn,{__name:`DataAssetDetails`}),rn=Symbol(`Comlink.proxy`),an=Symbol(`Comlink.endpoint`),on=Symbol(`Comlink.releaseProxy`),sn=Symbol(`Comlink.finalizer`),cn=Symbol(`Comlink.thrown`),ln=e=>typeof e==`object`&&!!e||typeof e==`function`,un=new Map([[`proxy`,{canHandle:e=>ln(e)&&e[rn],serialize(e){let{port1:t,port2:n}=new MessageChannel;return fn(e,t),[n,[n]]},deserialize(e){return e.start(),hn(e)}}],[`throw`,{canHandle:e=>ln(e)&&cn in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(Error(e.value.message),e.value):e.value}}]]);function dn(e,t){for(let n of e)if(t===n||n===`*`||n instanceof RegExp&&n.test(t))return!0;return!1}function fn(e,t=globalThis,n=[`*`]){t.addEventListener(`message`,function r(i){if(!i||!i.data)return;if(!dn(n,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}let{id:a,type:o,path:s}=Object.assign({path:[]},i.data),c=(i.data.argumentList||[]).map(kn),l;try{let t=s.slice(0,-1).reduce((e,t)=>e[t],e),n=s.reduce((e,t)=>e[t],e);switch(o){case`GET`:l=n;break;case`SET`:t[s.slice(-1)[0]]=kn(i.data.value),l=!0;break;case`APPLY`:l=n.apply(t,c);break;case`CONSTRUCT`:l=Dn(new n(...c));break;case`ENDPOINT`:{let{port1:t,port2:n}=new MessageChannel;fn(e,n),l=En(t,[t])}break;case`RELEASE`:l=void 0;break;default:return}}catch(e){l={value:e,[cn]:0}}Promise.resolve(l).catch(e=>({value:e,[cn]:0})).then(n=>{let[i,s]=On(n);t.postMessage(Object.assign(Object.assign({},i),{id:a}),s),o===`RELEASE`&&(t.removeEventListener(`message`,r),mn(t),sn in e&&typeof e[sn]==`function`&&e[sn]())}).catch(e=>{let[n,r]=On({value:TypeError(`Unserializable return value`),[cn]:0});t.postMessage(Object.assign(Object.assign({},n),{id:a}),r)})}),t.start&&t.start()}function pn(e){return e.constructor.name===`MessagePort`}function mn(e){pn(e)&&e.close()}function hn(e,t){let n=new Map;return e.addEventListener(`message`,function(e){let{data:t}=e;if(!t||!t.id)return;let r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),Sn(e,n,[],t)}function gn(e){if(e)throw Error(`Proxy has been released and is not useable`)}function _n(e){return An(e,new Map,{type:`RELEASE`}).then(()=>{mn(e)})}var vn=new WeakMap,yn=`FinalizationRegistry`in globalThis&&new FinalizationRegistry(e=>{let t=(vn.get(e)||0)-1;vn.set(e,t),t===0&&_n(e)});function bn(e,t){let n=(vn.get(t)||0)+1;vn.set(t,n),yn&&yn.register(e,t,e)}function xn(e){yn&&yn.unregister(e)}function Sn(e,t,n=[],r=function(){}){let i=!1,a=new Proxy(r,{get(r,o){if(gn(i),o===on)return()=>{xn(a),_n(e),t.clear(),i=!0};if(o===`then`){if(n.length===0)return{then:()=>a};let r=An(e,t,{type:`GET`,path:n.map(e=>e.toString())}).then(kn);return r.then.bind(r)}return Sn(e,t,[...n,o])},set(r,a,o){gn(i);let[s,c]=On(o);return An(e,t,{type:`SET`,path:[...n,a].map(e=>e.toString()),value:s},c).then(kn)},apply(r,a,o){gn(i);let s=n[n.length-1];if(s===an)return An(e,t,{type:`ENDPOINT`}).then(kn);if(s===`bind`)return Sn(e,t,n.slice(0,-1));let[c,l]=wn(o);return An(e,t,{type:`APPLY`,path:n.map(e=>e.toString()),argumentList:c},l).then(kn)},construct(r,a){gn(i);let[o,s]=wn(a);return An(e,t,{type:`CONSTRUCT`,path:n.map(e=>e.toString()),argumentList:o},s).then(kn)}});return bn(a,e),a}function Cn(e){return Array.prototype.concat.apply([],e)}function wn(e){let t=e.map(On);return[t.map(e=>e[0]),Cn(t.map(e=>e[1]))]}var Tn=new WeakMap;function En(e,t){return Tn.set(e,t),e}function Dn(e){return Object.assign(e,{[rn]:!0})}function On(e){for(let[t,n]of un)if(n.canHandle(e)){let[r,i]=n.serialize(e);return[{type:`HANDLER`,name:t,value:r},i]}return[{type:`RAW`,value:e},Tn.get(e)||[]]}function kn(e){switch(e.type){case`HANDLER`:return un.get(e.name).deserialize(e.value);case`RAW`:return e.value}}function An(e,t,n,r){return new Promise(i=>{let a=jn();t.set(a,i),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)})}function jn(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*(2**53-1)).toString(16)).join(`-`)}var Mn;async function Nn(e,t){return Mn||=hn(new Worker(new URL(``+new URL(`diff.worker-DCsgdfuV.js`,import.meta.url).href,``+import.meta.url),{type:`module`})),await Mn.calculateDiff(e,t)}var Pn=F({__name:`DiffEditor`,props:{from:{},to:{},oneColumn:{type:Boolean},diff:{type:Boolean}},setup(e){let t=e,{from:r,to:i}=f(t),a=l(`fromEl`),s=l(`toEl`),c,u;n(()=>{c=jt(a,r,{mode:`javascript`,readOnly:!0,lineNumbers:!0}),u=jt(s,i,{mode:`javascript`,readOnly:!0,lineNumbers:!0}),Nt(c,u),fe(()=>{c.setOption(`lineWrapping`,Y.value.codeviewerLineWrap),u.setOption(`lineWrapping`,Y.value.codeviewerLineWrap)}),fe(async()=>{c.getWrapperElement().style.display=t.oneColumn?`none`:``,t.oneColumn||(await le(),c.refresh(),Mt(u,c))}),fe(async()=>{let e=r.value,n=i.value,a=t.diff;c.setOption(`mode`,Pt(e)),u.setOption(`mode`,Pt(n)),await le(),c.startOperation(),u.startOperation(),c.getAllMarks().forEach(e=>e.clear()),u.getAllMarks().forEach(e=>e.clear());for(let e=0;e<c.lineCount()+2;e++)c.removeLineClass(e,`background`,`diff-removed`);for(let e=0;e<u.lineCount()+2;e++)u.removeLineClass(e,`background`,`diff-added`);if(a&&r.value){let t=await Nn(e,n),r=new Set,i=new Set,a=0,o=0;t.forEach(([e,t])=>{if(e===1){let e=u.posFromIndex(o);o+=t.length;let n=u.posFromIndex(o);u.markText(e,n,{className:`diff-added-inline`});for(let t=e.line;t<=n.line;t++)r.add(t)}else if(e===-1){let e=c.posFromIndex(a);a+=t.length;let n=c.posFromIndex(a);c.markText(e,n,{className:`diff-removed-inline`});for(let t=e.line;t<=n.line;t++)i.add(t)}else a+=t.length,o+=t.length}),Array.from(i).forEach(e=>c.addLineClass(e,`background`,`diff-removed`)),Array.from(r).forEach(e=>u.addLineClass(e,`background`,`diff-added`))}c.endOperation(),u.endOperation()})});let d=R(()=>t.oneColumn?0:Y.value.codeviewerDiffPanelSize);function p(e){c?.refresh(),u?.refresh(),!t.oneColumn&&(Y.value.codeviewerDiffPanelSize=e)}return(t,n)=>(h(),T(D(ct),{onResize:n[0]||=e=>p(e.prevPane.size)},{default:g(()=>[o(B(D(lt),{"min-size":`10`,size:d.value},{default:g(()=>[U(`div`,{ref_key:`fromEl`,ref:a,"h-inherit":``},null,512)]),_:1},8,[`size`]),[[te,!e.oneColumn]]),B(D(lt),{"min-size":`10`,size:100-d.value},{default:g(()=>[U(`div`,{ref_key:`toEl`,ref:s,"h-inherit":``},null,512)]),_:1},8,[`size`])]),_:1}))}}),Fn=Object.assign(Pn,{__name:`CodeDiffEditor`}),In={key:0,p4:``,"h-full":``,"of-auto":``,style:{"overscroll-behavior":`contain`}},Ln={key:1,p4:``,"h-full":``,"of-auto":``,style:{"overscroll-behavior":`contain`}},Rn={pl4:``,p2:``,"font-mono":``,border:`b base`,flex:`~ items-center gap-2`},zn={key:0,op50:``,"text-xs":``},Bn={key:3,op50:``,italic:``,ma:``},Vn=F({__name:`ModuleFlowDetails`,props:{selected:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=R(()=>!n.selected||!(`type`in n.selected)?null:n.selected.type===`transform`?{type:`transform`,plugin_name:n.selected.plugin_name,from:n.selected.content_from,to:n.selected.content_to}:n.selected.type===`load`?{type:`load`,from:``,plugin_name:n.selected.plugin_name,to:n.selected.content}:null);function a(){r(`close`)}return(t,n)=>{let r=ke,o=nn,s=Z,c=X,l=Fn;return h(),G(`div`,{"bg-glass":``,"w-full":``,"h-full":``,class:W(i.value?.from&&i.value?.to?``:`border-dashed`),border:`~ base rounded-lg`,"of-hidden":``,flex:`~ col`},[e.selected?.type===`chunk`?(h(),G(`div`,In,[B(r,{chunk:e.selected,session:e.session},null,8,[`chunk`,`session`])])):e.selected?.type===`asset`?(h(),G(`div`,Ln,[B(o,{asset:e.selected,session:e.session,lazy:!0},null,8,[`asset`,`session`])])):i.value?.from&&i.value?.to?(h(),G(j,{key:2},[U(`div`,Rn,[B(Ne,{name:i.value?.plugin_name??``},null,8,[`name`]),i.value?.type?(h(),G(`span`,zn,A(i.value?.type===`load`?`Load`:`Transform`),1)):N(``,!0),n[1]||=U(`div`,{"flex-auto":``},null,-1),B(s,{title:`Line Wrapping`,"class-icon":`i-ph-arrow-u-down-left-duotone`,active:D(Y).codeviewerLineWrap,onClick:n[0]||=e=>D(Y).codeviewerLineWrap=!D(Y).codeviewerLineWrap},null,8,[`active`]),B(c,{onClick:re(a,[`stop`])})]),B(l,{from:i.value?.from??``,to:i.value?.to??``,diff:!0,"one-column":!1},null,8,[`from`,`to`])],64)):(h(),G(`span`,Bn,` No data `))],2)}}}),Hn=Object.assign(Vn,{__name:`FlowmapModuleFlowDetails`}),Un={flex:`~ col`,relative:``},Wn=F({__name:`Node`,props:de({lines:{},classNodeInline:{},classNodeOuter:{},classNodeInner:{},classLineTop:{},classLineBottom:{},active:{type:Boolean}},{expanded:{type:Boolean,required:!1,default:!0},expandedModifiers:{}}),emits:[`update:expanded`],setup(t){let n=t,r=i(t,`expanded`);return(i,a)=>(h(),G(`div`,Un,[n.lines?.top?(h(),G(`div`,{key:0,absolute:``,"top-0":``,"left-10":``,border:`r`,h:`1/2`,"max-h-4":``,"z-flowmap-line":``,class:W([t.active?`border-flow-line-active`:`border-flow-line`,n.classLineTop]),style:H(typeof n.lines?.top==`number`?`height: ${n.lines.top}px`:``)},null,6)):N(``,!0),n.lines?.bottom?(h(),G(`div`,{key:1,absolute:``,"bottom-0":``,"left-10":``,border:`r`,h:`1/2`,"max-h-4":``,"z-flowmap-line":``,class:W([t.active?`border-flow-line-active`:`border-flow-line`,n.classLineBottom]),style:H(typeof n.lines?.bottom==`number`?`height: ${n.lines.bottom}px`:``)},null,6)):N(``,!0),e(i.$slots,`before`),U(`div`,{flex:`~`,"w-max":``,class:W([n.classNodeInline,`flowmap-node-inline`])},[e(i.$slots,`inline-before`),U(`div`,{class:W([n.classNodeOuter,t.active?`border-flow-active`:`border-flow`]),border:`~ rounded-2xl`,"bg-base":``,"of-hidden":``,"cursor-pointer":``,onClick:a[0]||=e=>r.value=!r.value},[e(i.$slots,`inner`,{},()=>[U(`div`,{px3:``,py1:``,class:W(n.classNodeInner),flex:`~ inline gap-2 items-center`},[e(i.$slots,`content`)],2)])],2),e(i.$slots,`inline-after`)],2),e(i.$slots,`after`)]))}}),Gn=Object.assign(Wn,{__name:`FlowmapNode`});const Kn=y(!1);ie(window,[`pointerup`,`pointercancel`,`pointerleave`],()=>{Kn.value=!1});var qn={key:0,pl10:``},Jn={op50:``},Yn={key:1,pl10:``},Xn={op50:``},Zn={key:0,"text-xs":``,op25:``},Qn={key:1},$n={"font-mono":``,"text-xs":``,flex:`~ gap-1 items-center`},er={"text-green":``},tr={"text-red":``},nr={flex:`~ gap-2 items-center`},rr=F({__name:`NodeModuleInfo`,props:{item:{},session:{},active:{type:Boolean}},emits:[`select`,`toggleShowAll`],setup(t,{emit:n}){let r=t,i=n,a=R(()=>{switch(r.item.type){case`transform`:return r.item.content_from===r.item.content_to;case`load`:return r.item.content==null;default:return!1}});function o(){Kn.value&&i(`select`,r.item)}function s(){i(`select`,r.item),Kn.value=!0}let c=R(()=>{if(r.item.type!==`resolve`)return;let e=r.item.importer;return r.session.modulesList.find(t=>t.id===e)});return(n,r)=>{let l=J,u=Ne,d=xe,f=Gn;return t.item.type===`no_changes_collapsed`?(h(),G(`div`,qn,[U(`div`,{flex:`~ gap-2 items-center`,"text-sm":``,border:`l`,py1:``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},[U(`div`,{"w-2":``,"h-2":``,border:`4`,"rounded-full":``,"ml--1":``,"translate-x--0.5px":``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},null,2),U(`span`,Jn,A(t.item.count)+` plugins did not change the content but cost`,1),B(l,{duration:t.item.duration,color:!0,factor:5,"text-xs":``},null,8,[`duration`]),r[3]||=U(`span`,{op50:``,"flex-shrink-0":``},`in total`,-1),U(`button`,{border:`~ base rounded-full`,px2:``,"py-px":``,op50:``,hover:`op100`,onClick:r[0]||=e=>i(`toggleShowAll`,t.item)},` Expand `)],2)])):t.item.type===`no_changes_hide`?(h(),G(`div`,Yn,[U(`div`,{flex:`~ gap-2 items-center`,"text-sm":``,border:`l`,py1:``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},[U(`div`,{"w-2":``,"h-2":``,border:`4`,"rounded-full":``,"ml--1":``,"translate-x--0.5px":``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},null,2),U(`span`,Xn,A(t.item.count)+` plugins did not change the content but cost`,1),B(l,{duration:t.item.duration,color:!0,factor:5,"text-xs":``},null,8,[`duration`]),r[4]||=U(`span`,{op50:``,"flex-shrink-0":``},`in total`,-1),U(`button`,{border:`~ base rounded-full`,px2:``,"py-px":``,op50:``,hover:`op100`,onClick:r[1]||=e=>i(`toggleShowAll`,t.item)},` Hide `)],2)])):(h(),T(f,{key:2,lines:{top:!0},"class-node-outer":a.value?`border-dashed`:``,active:t.active,"class-node-inline":`gap-2 items-center`,pl6:``,onPointerenter:o},E({inner:g(()=>[U(`button`,{px3:``,py1:``,hover:`bg-active`,flex:`~ inline gap-2 items-center`,onClick:r[2]||=e=>i(`select`,t.item),onPointerdown:s},[e(n.$slots,`button`,{},()=>[`plugin_name`in t.item?(h(),T(u,{key:0,class:W([a.value?`op50`:``,`font-mono text-sm ws-nowrap`]),name:t.item.plugin_name},null,8,[`class`,`name`])):N(``,!0)])],32)]),"inline-after":g(()=>[`duration`in t.item?(h(),T(l,{key:0,duration:t.item.duration,color:!0,factor:5,"text-xs":``,"flex-shrink-0":``},null,8,[`duration`])):N(``,!0),t.item.type===`transform`?(h(),G(j,{key:1},[t.item.content_from===t.item.content_to?(h(),G(`div`,Zn,` no changes `)):(h(),G(`div`,Qn,[U(`div`,$n,[U(`span`,er,`+`+A(t.item.diff_added),1),U(`span`,tr,`-`+A(t.item.diff_removed),1)])]))],64)):N(``,!0)]),_:2},[t.item.type===`resolve`&&t.item.resolved_id&&t.item.importer?{name:`after`,fn:g(()=>[U(`div`,{p3:``,ml4:``,border:`l`,flex:`~ col gap-1`,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},[U(`div`,nr,[r[5]||=U(`div`,{"i-ph-arrow-elbow-left-down":``,"text-base":``,op50:``,"flex-none":``,"ml0.8":``},null,-1),B(d,{id:t.item.importer,session:t.session,link:!!c.value,class:W(c.value?`hover:bg-active`:``),px2:``,py1:``,rounded:``},null,8,[`id`,`session`,`link`,`class`])]),B(d,{id:t.item.module_request,session:t.session},null,8,[`id`,`session`])],2)]),key:`0`}:void 0]),1032,[`class-node-outer`,`active`]))}}}),ir=Object.assign(rr,{__name:`FlowmapNodeModuleInfo`}),ar={"ml-2px":``},or=F({__name:`Expandable`,props:de({expandable:{type:Boolean},classRootNode:{},activeStart:{type:Boolean},activeEnd:{type:Boolean},showTail:{type:Boolean,default:!0}},{expanded:{type:Boolean,required:!1,default:!0},expandedModifiers:{}}),emits:[`update:expanded`],setup(t){let n=i(t,`expanded`);return(r,i)=>{let a=Gn;return h(),T(a,{expanded:n.value,"onUpdate:expanded":i[1]||=e=>n.value=e,lines:{top:!0,bottom:!t.expandable||!n.value},pl6:``,pt4:``,"class-node-outer":t.classRootNode,active:t.activeStart},E({content:g(()=>[e(r.$slots,`node`)]),_:2},[t.expandable?{name:`inline-before`,fn:g(()=>[U(`button`,{"w-6":``,"h-6":``,mr1:``,"ml--7":``,mya:``,"rounded-full":``,hover:`bg-active`,flex:`~ items-center justify-center`,"cursor-pointer":``,onClick:i[0]||=e=>n.value=!n.value},[U(`div`,{"i-ph-caret-right":``,"text-sm":``,op50:``,transition:``,"duration-300":``,class:W({"rotate-90":n.value})},null,2)])]),key:`0`}:void 0,t.expandable&&n.value?{name:`after`,fn:g(()=>[U(`div`,null,[(h(),G(`svg`,{"ml-1em":``,"w-27px":``,"h-30px":``,viewBox:`0 0 27 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:W(t.activeStart?`fg-flow-line-active`:`fg-flow-line`)},[...i[2]||=[U(`g`,null,[U(`path`,{d:`M0.5 0C0.5 18 26.5 12 26.5 30`,stroke:`currentColor`,"stroke-width":`1px`})],-1)]],2)),U(`div`,ar,[e(r.$slots,`container`)]),t.showTail?(h(),G(`svg`,{key:0,"ml-1em":``,"w-27px":``,"h-30px":``,style:{transform:`scaleX(-1)`},viewBox:`0 0 27 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:W(t.activeEnd?`fg-flow-line-active`:`fg-flow-line`)},[...i[3]||=[U(`g`,null,[U(`path`,{d:`M0.5 0C0.5 18 26.5 12 26.5 30`,stroke:`currentColor`,"stroke-width":`1px`})],-1)]],2)):N(``,!0)])]),key:`1`}:void 0]),1032,[`expanded`,`lines`,`class-node-outer`,`active`])}}}),sr=Object.assign(or,{__name:`FlowmapExpandable`}),cr={flex:`~ col gap-1 items-start`,p1:``},lr={flex:`~ gap-2 items-center`},ur=[`title`],dr={"text-sm":``},fr=F({__name:`NodeChunkInfo`,props:{item:{},session:{},active:{type:Boolean}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=be,o=Gn;return h(),T(o,{lines:{top:!0},active:t.active,"class-node-inline":`gap-2 items-center`,pl6:``},{inner:g(()=>[U(`button`,{px3:``,py1:``,hover:`bg-active`,flex:`~ inline gap-2 items-center`,onClick:i[0]||=e=>r(`select`,t.item)},[e(n.$slots,`button`,{},()=>[U(`div`,cr,[U(`div`,lr,[B(a,{text:t.item.name||`<unnamed chunk>`},null,8,[`text`]),i[1]||=U(`div`,{"flex-auto":``},null,-1),U(`div`,{title:`Chunk ID: ${t.item.chunk_id}`,op50:``,"font-mono":``,"text-sm":``},` #`+A(t.item.chunk_id),9,ur)]),U(`div`,dr,A(t.item.modules.length)+` modules `,1)])])])]),"inline-after":g(()=>[B(a,{text:t.item.reason},null,8,[`text`])]),_:3},8,[`active`])}}}),pr=Object.assign(fr,{__name:`FlowmapNodeChunkInfo`}),mr={flex:`~ col gap-1 items-start`,p1:``},hr={flex:`~ gap-2 items-center`},gr=F({__name:`NodeAssetInfo`,props:{item:{},session:{},active:{type:Boolean}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=xe,o=Ee,s=be,c=Gn;return h(),T(c,{lines:{top:!0},active:t.active,"class-node-inline":`gap-2 items-center`,pl6:``},{inner:g(()=>[U(`button`,{px3:``,py1:``,hover:`bg-active`,flex:`~ inline gap-2 items-center`,onClick:i[0]||=e=>r(`select`,t.item)},[e(n.$slots,`button`,{},()=>[U(`div`,mr,[U(`div`,hr,[B(a,{id:t.item.filename,session:t.session},null,8,[`id`,`session`])])])])])]),"inline-after":g(()=>[B(o,{bytes:t.item.size,"text-sm":``},null,8,[`bytes`]),B(s,{text:t.item.type},null,8,[`text`])]),_:3},8,[`active`])}}}),_r=Object.assign(gr,{__name:`FlowmapNodeAssetInfo`}),vr={"select-none":``,"h-full":``,"of-auto":``,"ws-nowrap":``,"w-100vh":``,"of-visible":``},yr={key:0,"text-sm":``},br={flex:``},xr={flex:`~ items-center gap-1`,"text-sm":``,"text-blue":``,px3:``,py1:``},Sr={p2:``,flex:`~ col gap-1`},Cr={flex:`~`},wr={p2:``},Tr={flex:`~ items-center gap-1`,"text-sm":``,"text-orange":``,px3:``,py1:``},Er={p2:``,flex:`~ col gap-1`},Dr={op50:``,"text-xs":``},Or={op50:``,"text-xs":``},kr={key:0,"i-ph-spinner":``,"animate-spin":``},Ar={key:1,op50:``,"text-xs":``},jr={op50:``,"text-xs":``},Mr={op50:``,"text-xs":``},Nr=F({__name:`ModuleFlowTimeline`,props:{info:{},session:{},transformsLoading:{type:Boolean},selected:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{info:i}=f(n),{flowShowAllTransforms:a,flowShowAllLoads:o,flowExpandTransforms:s,flowExpandLoads:c,flowExpandResolveId:l,flowExpandChunks:u,flowExpandAssets:d}=Te,p=R(()=>i?.value?.resolve_ids??[]),m=R(()=>{let e=i?.value?.transforms?.filter(e=>e.content_from===e.content_to),t=i?.value?.transforms?.filter(e=>e.content_from!==e.content_to);return a.value&&!e?.length?i?.value?.transforms??[]:a.value&&e?.length?[...i.value.transforms??[],{type:`no_changes_hide`,id:`no_changes_hide`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0}]:e?.length?[{type:`no_changes_collapsed`,id:`no_changes_collapsed`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0},...t??[]]:t??[]}),_=R(()=>{let e=i?.value?.loads?.filter(e=>!e.content),t=i?.value?.loads?.filter(e=>e.content);return o.value&&!e?.length?i?.value?.loads??[]:o.value&&e?.length?[...i.value.loads??[],{type:`no_changes_hide`,id:`no_changes_hide`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0}]:e?.length?[{type:`no_changes_collapsed`,id:`no_changes_collapsed`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0},...t??[]]:t??[]}),y=R(()=>[...p.value,..._.value,...m.value,...i.value.chunks,...i.value.assets]);function b(e){return!n.selected||!e?!1:y.value.indexOf(n.selected)>=y.value.indexOf(e)}function x(e){r(`select`,e)}return(t,n)=>{let r=Gn,f=xe,y=ir,S=sr,C=pr,w=_r;return h(),G(`div`,vr,[D(i).importers?.length?(h(),G(`div`,yr,[U(`div`,br,[B(D(se),null,{popper:g(({hide:t})=>[U(`div`,Sr,[(h(!0),G(j,null,M(D(i).importers,n=>(h(),T(f,{id:n,key:n,session:e.session,link:!0,class:`hover:bg-active`,px2:``,py1:``,rounded:``,onClick:t},null,8,[`id`,`session`,`onClick`]))),128))])]),default:g(()=>[B(r,{"class-node-outer":`border-dashed`},{inner:g(()=>[U(`div`,xr,[n[7]||=U(`div`,{"i-ph-arrows-merge-duotone":``,"rotate-270":``},null,-1),O(` `+A(D(i).importers?.length)+` importers `,1)])]),_:1})]),_:1})]),n[8]||=U(`div`,{"pl-10":``,border:`r`,"h-4":``,"w-1px":``,"z-flowmap-line":``,class:`border-flow-line border-dashed`},null,-1)])):N(``,!0),U(`div`,Cr,[B(r,{lines:{bottom:!0},active:e.selected!=null},{content:g(()=>[U(`div`,wr,[B(f,{id:D(i).id,session:e.session},null,8,[`id`,`session`])])]),_:1},8,[`active`]),D(i).imports?.length?(h(),G(j,{key:0},[n[10]||=U(`div`,{"w-10":``,border:`t base dashed`,mya:``},null,-1),B(D(se),{mya:``},{popper:g(({hide:t})=>[U(`div`,Er,[(h(!0),G(j,null,M(D(i).imports,n=>(h(),T(f,{id:n.module_id,key:n.module_id,kind:n.kind,session:e.session,link:!0,class:`hover:bg-active`,px2:``,py1:``,rounded:``,onClick:t},null,8,[`id`,`kind`,`session`,`onClick`]))),128))])]),default:g(()=>[B(r,{"class-node-outer":`border-dashed`},{inner:g(()=>[U(`div`,Tr,[n[9]||=U(`div`,{"i-ph-arrows-split-duotone":``,"rotate-270":``},null,-1),O(` `+A(D(i).imports?.length)+` imports `,1)])]),_:1})]),_:1})],64)):N(``,!0)]),B(S,{expanded:D(l),"onUpdate:expanded":n[0]||=e=>v(l)?l.value=e:null,expandable:p.value.length>0,"class-root-node":p.value.length===0?`border-dashed`:``,"active-start":b(p.value[0]||_.value[0]),"active-end":b(_.value[0])},{node:g(()=>[n[11]||=U(`div`,{"i-ph-magnifying-glass-duotone":``},null,-1),n[12]||=O(` Resolve Id `,-1),U(`span`,Dr,`(`+A(D(i).resolve_ids.length)+`)`,1)]),container:g(()=>[U(`div`,null,[(h(!0),G(j,null,M(p.value,(t,n)=>(h(),T(y,{key:t.id,item:t,session:e.session,active:b(t),class:W(n>0?`pt-2`:``),onSelect:x},null,8,[`item`,`session`,`active`,`class`]))),128))])]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(c),"onUpdate:expanded":n[2]||=e=>v(c)?c.value=e:null,expandable:_.value.length>0,"class-root-node":_.value.length===0?`border-dashed`:``,"active-start":b(_.value[0]),"active-end":b(m.value[0])},{node:g(()=>[n[13]||=U(`div`,{"i-ph-upload-simple-duotone":``},null,-1),n[14]||=O(` Load `,-1),U(`span`,Or,`(`+A(D(i).loads.length)+`)`,1)]),container:g(()=>[U(`div`,null,[(h(!0),G(j,null,M(_.value,(t,r)=>(h(),T(y,{key:t.id,item:t,session:e.session,active:b(t),class:W(r>0&&t.type!==`no_changes_hide`?`pt-2`:``),onSelect:x,onToggleShowAll:n[1]||=e=>o.value=!D(o)},null,8,[`item`,`session`,`active`,`class`]))),128))])]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(s),"onUpdate:expanded":n[4]||=e=>v(s)?s.value=e:null,expandable:m.value.length>0,"class-root-node":m.value.length===0?`border-dashed`:``,"active-start":b(m.value[0]),"active-end":b(D(i).chunks[0]||m.value.at(-1))},{node:g(()=>[n[15]||=U(`div`,{"i-ph-magic-wand-duotone":``},null,-1),n[16]||=O(` Transform `,-1),e.transformsLoading?(h(),G(`span`,kr)):(h(),G(`span`,Ar,`(`+A(D(i).transforms.length)+`)`,1))]),container:g(()=>[U(`div`,null,[(h(!0),G(j,null,M(m.value,(t,r)=>(h(),T(y,{key:t.id,item:t,session:e.session,active:b(t),class:W(r>0&&t.type!==`no_changes_hide`?`pt-2`:``),onSelect:x,onToggleShowAll:n[3]||=e=>a.value=!D(a)},null,8,[`item`,`session`,`active`,`class`]))),128))])]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(u),"onUpdate:expanded":n[5]||=e=>v(u)?u.value=e:null,lines:{top:!0},expandable:D(i).chunks.length>0,"class-root-node":D(i).chunks.length===0?`border-dashed`:``,"active-start":b(D(i).chunks[0]),"active-end":b(D(i).chunks.at(-1)),pl6:``,pt4:``},{node:g(()=>[n[17]||=U(`div`,{"i-ph-shapes-duotone":``},null,-1),n[18]||=O(` Chunk `,-1),U(`span`,jr,`(`+A(D(i).chunks.length)+`)`,1)]),container:g(()=>[(h(!0),G(j,null,M(D(i).chunks,t=>(h(),T(C,{key:t.chunk_id,item:t,active:b(t),session:e.session,onSelect:x},null,8,[`item`,`active`,`session`]))),128))]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(d),"onUpdate:expanded":n[6]||=e=>v(d)?d.value=e:null,lines:{top:!0},expandable:D(i).assets.length>0,"class-root-node":D(i).assets.length===0?`border-dashed`:``,"active-start":b(D(i).assets[0]),"active-end":b(D(i).assets.at(-1)),"show-tail":!1,pl6:``,pt4:``},{node:g(()=>[n[19]||=U(`div`,{"i-ph-package-duotone":``},null,-1),n[20]||=O(` Assets `,-1),U(`span`,Mr,`(`+A(D(i).assets.length)+`)`,1)]),container:g(()=>[(h(!0),G(j,null,M(D(i).assets,t=>(h(),T(w,{key:t.filename,item:t,active:b(t),session:e.session,onSelect:x},null,8,[`item`,`active`,`session`]))),128))]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`])])}}}),Pr=Object.assign(Nr,{__name:`FlowmapModuleFlowTimeline`}),Fr={"w-full":``,h:`[calc(100vh-(var(--spacing)*58))]`,sticky:``,"top-4":``},Ir=F({__name:`ModuleFlow`,props:{info:{},session:{},transformsLoading:{type:Boolean}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{info:i}=f(n),a=y(null);p(a,e=>{r(`select`,!!e)});function s(e){a.value=e}function c(){a.value=null}return(t,n)=>(h(),T(D(ct),{class:`!h-auto !of-visible p4 module-flow-splitter`},{default:g(()=>[B(D(lt),{size:`45`,"min-size":`10`,"max-size":`90`,class:`!h-auto !of-visible`},{default:g(()=>[B(Pr,{info:D(i),session:e.session,"transforms-loading":e.transformsLoading,selected:a.value,onSelect:s},null,8,[`info`,`session`,`transforms-loading`,`selected`])]),_:1}),a.value?(h(),T(D(lt),{key:0,size:`55`,"min-size":`10`,"max-size":`90`,class:`!h-auto !of-visible`},{default:g(()=>[o((h(),G(`div`,Fr,[n[0]||=U(`div`,{absolute:``,"left-0":``,top:`1/2`,"translate-x":`-1/2`,"translate-y":`-1/2`,bg:`#DFDFDF dark:#313131`,"h-10":``,"w-2":``,"rounded-full":``,"z-10":``,"cursor-col-resize":``},null,-1),B(Hn,{selected:a.value,session:e.session,onClose:c},null,8,[`selected`,`session`])])),[[D(ot),[c,{ignore:[`.splitpanes__splitter`,`.flowmap-node-inline`]}]]])]),_:1})):N(``,!0)]),_:1}))}}),Lr=Object.assign(Ir,{__name:`FlowmapModuleFlow`}),Rr={relative:``,border:`t base`,pb10:``,py1:``,mt4:``},zr={key:0,border:`~ base`,"rounded-lg":``,"shadow-lg":``,px3:``,py2:``,"bg-glass":``,"pointer-events-none":``,"text-sm":``,"max-w-80":``},Br={"font-semibold":``,"font-mono":``,"text-base":``,mb2:``},Vr={key:0,border:`t base`,pt2:``,flex:`~ col gap-1.5`,"min-w-48":``},Hr={flex:`~ justify-between items-center`,py1:``},Ur=[`datetime`],Wr={flex:`~ justify-between items-center`,py1:``},Gr=[`datetime`],Kr={flex:`~ justify-between items-center`,py1:``,border:`t base dashed`,pt2:``},qr={key:1},Jr=F({__name:`ModuleFlamegraph`,props:{info:{},session:{},flowNodeSelected:{type:Boolean}},setup(e){let t=e,r=e=>ze(e,void 0,!1),i=R(()=>{let e=t.info.resolve_ids.map((e,t)=>r({id:`resolveId-${t}`,text:e.plugin_name,size:e.duration,meta:e})),n=t.info.loads.map((e,t)=>r({id:`load-${t}`,text:e.plugin_name,size:e.duration,meta:e})),i=t.info.transforms.map((e,t)=>r({id:`transform-${t}`,text:e.plugin_name,size:e.duration,meta:e}));return r({id:`~root`,text:`Module Flamegraph`,children:[r({id:`~resolves`,text:`Resolve Id`,children:e}),r({id:`~loads`,text:`Load`,children:n}),r({id:`~transforms`,text:`Transform`,children:i})]})}),a=c(null),o=c(0),s=c(0),u=l(`el`),d=y(null);function f(){d.value=new Re(i.value,{animate:!0,palette:{fg:`#888`},getSubtext:e=>{let t=e.size/i.value.size*100;if(t>15&&t!==100)return`${t.toFixed(1)}%`},onHover(e,t){if(!e){a.value=null;return}t&&(o.value=t.clientX,s.value=t.clientY),a.value={plugin_name:e.text,duration:e.size,meta:e.meta}},onLeave(){a.value=null}}),u.value.appendChild(d.value.el)}function m(){d.value?.dispose()}return n(()=>{f()}),K(()=>{m()}),p(i,async()=>{m(),f()},{deep:!0}),p(()=>t.flowNodeSelected,async()=>{await le(),d.value?.resize()}),(e,t)=>{let n=J,r=Pe;return h(),G(`div`,Rr,[B(r,{"hover-x":o.value,"hover-y":s.value},{default:g(()=>[a.value?(h(),G(`div`,zr,[U(`div`,Br,A(a.value.plugin_name),1),a.value.meta?(h(),G(`div`,Vr,[U(`div`,Hr,[t[0]||=U(`label`,{"text-xs":``,"opacity-70":``},`Start Time`,-1),U(`time`,{datetime:new Date(a.value.meta.timestamp_start).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(a.value.meta.timestamp_start)),9,Ur)]),U(`div`,Wr,[t[1]||=U(`label`,{"text-xs":``,"opacity-70":``},`End Time`,-1),U(`time`,{datetime:new Date(a.value.meta.timestamp_end).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(a.value.meta.timestamp_end)),9,Gr)]),U(`div`,Kr,[t[2]||=U(`label`,{text:`xs`,op70:``},`Duration`,-1),B(n,{duration:a.value.duration},null,8,[`duration`])])])):(h(),G(`div`,qr,[B(n,{duration:a.value.duration},null,8,[`duration`])]))])):N(``,!0)]),_:1},8,[`hover-x`,`hover-y`]),U(`div`,{ref_key:`el`,ref:u,"min-h-30":``},null,512)])}}}),Yr=Object.assign(Jr,{__name:`ChartModuleFlamegraph`}),Xr={flex:``,px2:``},Zr=[`d`,`stroke-dasharray`],Qr=20,$r=F({__name:`ModuleImportRelationships`,props:{module:{},session:{}},setup(e){let t=e,r={width:400,height:30,padding:4,marginX:8,border:1,margin:8,dot:16,dotOffset:80,linkOffset:0},i=l(`container`),a=y([]),o=R(()=>{let e=new Map;for(let n of t.session.modulesList)e.set(n.id,n);return e}),s=R(()=>t.module.importers?.map(e=>o.value.get(e))),c=R(()=>Math.min(Math.max(t.module.importers?.length||0,t.module.imports?.length||0),Qr)),u=R(()=>Math.min(s.value?.length||0,Qr)),d=R(()=>Math.min(t.module.imports?.length||0,Qr)),f=R(()=>r.height*c.value+r.padding*(c.value+1)+r.border*2),m=R(()=>{let e=Math.max(0,d.value-u.value)*(r.height+r.padding)/2;return Math.min(e,f.value/2)}),g=R(()=>{let e=Math.max(0,u.value-d.value)*(r.height+r.padding)/2;return Math.min(e,f.value/2)}),_=R(()=>`${f.value/2-r.dot/2}px ${r.dotOffset}px 0 ${s.value?.length?r.dotOffset:0}px`),v=R(()=>s.value?.length?r.width+r.marginX:r.marginX),b=R(()=>s.value?.length?v.value+r.dotOffset:v.value),x=R(()=>(r.height*c.value+(c.value+1)*r.padding)/2);function S(e){switch(e){case`importer-start`:return v.value;case`importer-end`:return b.value;case`import-start`:return b.value+r.dot;case`import-end`:return s.value?.length?v.value+r.dotOffset*2+r.dot:v.value+r.dotOffset+r.dot}}function C(e,t){switch(e){case`importer-start`:return(r.height+r.padding)*t+(r.height/2+r.padding)+m.value;case`import-end`:return(r.height+r.padding)*t+(r.height/2+r.padding)+g.value;case`importer-end`:case`import-start`:return x.value}}function w(){if(a.value=[],s.value?.length){let e=Array.from({length:u.value},(e,t)=>({id:``,source:{x:S(`importer-start`),y:C(`importer-start`,t)},target:{x:S(`importer-end`),y:C(`importer-end`)}}));a.value.push(...e)}if(t.module?.imports?.length){let e=Array.from({length:d.value},(e,t)=>({id:``,source:{x:S(`import-start`),y:C(`import-start`)},target:{x:S(`import-end`),y:C(`import-end`,t)}}));a.value.push(...e)}}return n(()=>{p(()=>[t.module],w,{immediate:!0})}),(t,n)=>{let o=xe;return h(),G(`div`,{ref_key:`container`,ref:i,"w-full":``,relative:``,"select-none":``,mt4:``},[U(`div`,Xr,[s.value?.length?(h(),G(`div`,{key:0,py1:``,style:H({width:`${r.width}px`,marginTop:`${m.value}px`})},[(h(!0),G(j,null,M(s.value,(t,n)=>(h(),T(o,{key:t.id,id:t.id,hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"ws-nowrap":``,"z-graph-node":``,border:`~ base rounded`,link:!0,session:e.session,minimal:!0,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===s.value.length-1?0:r.padding}px`})},null,8,[`id`,`session`,`style`]))),128))],4)):N(``,!0),U(`div`,{"bg-base":``,"rounded-full":``,"border-3":``,"font-mono":``,"border-active":``,style:H({margin:_.value,width:`${r.dot}px`,height:`${r.dot}px`})},null,4),e.module.imports?.length?(h(),G(`div`,{key:1,py1:``,style:H({width:`${r.width}px`,marginTop:`${g.value}px`})},[(h(!0),G(j,null,M(e.module.imports,(t,n)=>(h(),T(o,{key:t.id,id:t.module_id,hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"ws-nowrap":``,"z-graph-node":``,border:`~ base rounded`,link:!0,session:e.session,minimal:!0,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===e.module.imports.length-1?0:r.padding}px`})},null,8,[`id`,`session`,`style`]))),128))],4)):N(``,!0)]),(h(),G(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,"w-full":``,style:H({height:`${f.value}px`})},[U(`g`,null,[(h(!0),G(j,null,M(a.value,e=>(h(),G(`path`,{key:e.id,d:D(je)(e),class:W(D(Me)(e)),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Zr))),128))])],4))],512)}}}),ei=Object.assign($r,{__name:`DataModuleImportRelationships`}),ti={key:0,relative:``,"h-full":``,"w-full":``},ni={"bg-glass":``,absolute:``,"left-2":``,"top-2":``,"z-panel-content":``,p2:``,border:`~ base rounded-lg`,flex:`~ col gap-2`},ri={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},ii={flex:`~ gap-2`},ai={"of-auto":``,"h-full":``,"pt-30":``},oi=F({__name:`ModuleDetailsLoader`,props:{session:{},module:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ue(),a=c([]),o=c(!1),s=c(!1);fe(async()=>{let e={session:n.session.id,module:n.module};le(async()=>{a.value=[],o.value=!0,a.value=await i.value[`vite:rolldown:get-module-transforms`]?.(e),o.value=!1})});let l=ne(async()=>{let e={session:n.session.id,module:n.module};return{transforms:a.value,...await i.value[`vite:rolldown:get-module-info`]?.(e)}});function u(e){s.value=e}return(t,n)=>{let i=X,a=xe,c=De,d=Lr,f=Yr,p=ei,m=ce;return D(l)?(h(),G(`div`,ti,[B(i,{absolute:``,"right-2":``,"top-1.5":``,"bg-glass":``,"z-panel-content":``,onClick:n[0]||=e=>r(`close`)}),U(`div`,ni,[B(a,{id:e.module,px2:``,pt1:``,session:e.session},null,8,[`id`,`session`]),U(`div`,ri,[D(l)?(h(),T(c,{key:0,metrics:D(l).build_metrics},null,8,[`metrics`])):N(``,!0)]),U(`div`,ii,[U(`button`,{class:W(D(Y).moduleDetailsViewType===`flow`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[1]||=e=>D(Y).moduleDetailsViewType=`flow`},[...n[4]||=[U(`div`,{"i-ph-git-branch-duotone":``,"rotate-180":``},null,-1),O(` Build Flow `,-1)]],2),U(`button`,{class:W(D(Y).moduleDetailsViewType===`charts`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[2]||=e=>D(Y).moduleDetailsViewType=`charts`},[...n[5]||=[U(`div`,{"i-ph-chart-donut-duotone":``},null,-1),O(` Charts `,-1)]],2),U(`button`,{class:W(D(Y).moduleDetailsViewType===`imports`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[3]||=e=>D(Y).moduleDetailsViewType=`imports`},[...n[6]||=[U(`div`,{"i-ph-graph-duotone":``},null,-1),O(` Imports `,-1)]],2)])]),U(`div`,ai,[D(Y).moduleDetailsViewType===`flow`?(h(),T(d,{key:0,info:D(l),session:e.session,"transforms-loading":o.value,onSelect:u},null,8,[`info`,`session`,`transforms-loading`])):N(``,!0),D(Y).moduleDetailsViewType===`charts`?(h(),T(f,{key:1,info:D(l),session:e.session,"flow-node-selected":s.value},null,8,[`info`,`session`,`flow-node-selected`])):N(``,!0),D(Y).moduleDetailsViewType===`imports`?(h(),T(p,{key:2,module:D(l),session:e.session},null,8,[`module`,`session`])):N(``,!0)])])):(h(),T(m,{key:1}))}}}),si=Object.assign(oi,{__name:`DataModuleDetailsLoader`}),ci={key:0,p4:``,relative:``,"h-full":``,"w-full":``,"of-auto":``,"bg-glass":``,"z-panel-content":``},li=F({__name:`AssetDetailsLoader`,props:{asset:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ue(),{state:a}=w(async()=>{let e=await i.value[`vite:rolldown:get-asset-details`]?.({session:n.session.id,id:n.asset});return`chunk`in e?{asset:{...e?.asset,type:`asset`},chunks:[{...e?.chunk,type:`chunk`}],importers:e?.importers,imports:e?.imports}:{asset:{...e?.asset,type:`asset`},chunks:[],importers:[],imports:[]}},null);return(t,n)=>{let i=X,o=nn;return D(a)?.asset?(h(),G(`div`,ci,[B(o,{asset:D(a).asset,session:e.session,chunks:D(a)?.chunks,importers:D(a)?.importers,imports:D(a)?.imports},{default:g(()=>[B(i,{onClick:n[0]||=e=>r(`close`)})]),_:1},8,[`asset`,`session`,`chunks`,`importers`,`imports`])])):N(``,!0)}}}),ui=Object.assign(li,{__name:`DataAssetDetailsLoader`}),di={op50:``,"text-xs":``,flex:``,"justify-center":``,"items-center":``},fi=F({__name:`NodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>{let r=Ae,i=J;return h(),G(`span`,di,[B(r,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=U(`span`,{op40:``},`|`,-1),B(r,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=U(`span`,{op40:``},`|`,-1),B(i,{duration:e.duration,flex:`~ gap-1 items-center`,px1:``,title:`Total build cost: ${D(me)(e.duration,!0)}`},{default:g(()=>[...n[0]||=[U(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`])])}}}),pi=Object.assign(fi,{__name:`FlowmapNodePluginInfo`}),mi={flex:`~ col w-full`},hi={"select-none":``,"h-full":``,"of-auto":``,"ws-nowrap":``,"w-auto":``,"of-visible":``,p4:``,flex:`~ col`},gi={flex:`~`},_i={flex:`~ items-center justify-center`,relative:``,"w-60":``,h14:``},vi={op50:``,"text-xs":``,flex:`~ items-center justify-center gap-1`,h6:``},yi=[`datetime`],bi={flex:`~ items-center justify-center`,relative:``,"w-60":``,h14:``},xi={op50:``,"text-xs":``,flex:`~ items-center justify-center gap-1`,h6:``},Si=[`datetime`],Ci=F({__name:`PluginFlowTimeline`,props:{session:{},buildMetrics:{}},setup(t){let n=t;function r(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let i=R(()=>r(n.buildMetrics.resolveIdMetrics)),a=R(()=>r(n.buildMetrics.loadMetrics)),o=R(()=>r(n.buildMetrics.transformMetrics)),s=R(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),c=R(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[e.length-1].timestamp_end});return(n,r)=>{let l=Ne,u=Gn,d=pi;return h(),G(`div`,mi,[e(n.$slots,`header`),U(`div`,hi,[U(`div`,gi,[B(u,{active:!1,"class-node-inner":`w60`},{content:g(()=>[U(`div`,{p2:``,"w-full":``,"text-center":``,onClick:r[0]||=e=>D(Y).pluginDetailSelectedHook=``},[B(l,{name:t.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),U(`div`,_i,[r[5]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-0":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),r[6]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-10":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),U(`span`,vi,[r[4]||=U(`i`,{"i-ph-airplane-takeoff-thin":``,"text-4":``,"inline-flex":``},null,-1),s.value?(h(),G(`time`,{key:0,datetime:new Date(s.value).toISOString()},A(new Date(s.value).toLocaleString()),9,yi)):N(``,!0)])]),B(u,{"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,pb4:``,w60:``,lines:{bottom:!0},active:D(Y).pluginDetailSelectedHook===`resolve`},{content:g(()=>[U(`div`,{flex:`~ col gap1`,"w-full":``,onClick:r[1]||=e=>D(Y).pluginDetailSelectedHook=`resolve`},[r[7]||=U(`span`,{flex:`~ items-center justify-center gap-1`},[U(`i`,{"i-ph-magnifying-glass-duotone":``}),O(` Resolve Id `)],-1),U(`div`,null,[B(d,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),B(u,{active:D(Y).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,pb4:``,w60:``,lines:{bottom:!0}},{content:g(()=>[U(`div`,{flex:`~ col gap1`,"w-full":``,onClick:r[2]||=e=>D(Y).pluginDetailSelectedHook=`load`},[r[8]||=U(`span`,{flex:`~ items-center justify-center gap-1`},[U(`i`,{"i-ph-upload-simple-duotone":``}),O(` Load `)],-1),U(`div`,null,[B(d,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),B(u,{active:D(Y).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:g(()=>[U(`div`,{flex:`~ col gap1`,"w-full":``,onClick:r[3]||=e=>D(Y).pluginDetailSelectedHook=`transform`},[r[9]||=U(`span`,{flex:`~ items-center justify-center gap-1`},[U(`i`,{"i-ph-magic-wand-duotone":``}),O(` Transform `)],-1),U(`div`,null,[B(d,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),U(`div`,bi,[r[11]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-0":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),r[12]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-10":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),r[13]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-14":``,"w-2":``,"h-2":``,border:`4`,"rounded-full":``},null,-1),U(`span`,xi,[r[10]||=U(`i`,{"i-ph-airplane-landing-thin":``,"text-4":``,"inline-flex":``},null,-1),c.value?(h(),G(`time`,{key:0,datetime:new Date(c.value).toISOString()},A(new Date(c.value).toLocaleString()),9,Si)):N(``,!0)])])])])}}}),wi=Object.assign(Ci,{__name:`FlowmapPluginFlowTimeline`}),Ti={role:`table`,"min-w-max":``},Ei={role:`row`,class:`sticky top-0 z10 border-b border-base`,flex:`~ row`},Di={key:0,role:`columnheader`,"bg-base":``,"flex-none":``,w32:``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``},Oi={key:1,role:`columnheader`,"bg-base":``,"flex-1":``,"min-w100":``,"ws-nowrap":``,p1:``,"text-left":``,"font-600":``},ki={flex:`~ row gap1 items-center`,"w-full":``},Ai={"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`},ji={class:`p2`,flex:`~ col gap2`},Mi=[`title`],Ni=[`checked`,`onChange`],Pi={"text-sm":``},Fi={key:2,role:`columnheader`,"rounded-tr-2":``,"bg-base":``,"flex-none":``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``,"w-27":``},Ii={"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`},Li={key:3,role:`columnheader`,"rounded-tr-2":``,"bg-base":``,"flex-none":``,"min-w52":``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``},Ri={key:4,role:`columnheader`,"rounded-tr-2":``,"bg-base":``,"flex-none":``,"min-w52":``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``},zi={key:0,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,w32:``,"ws-nowrap":``,op80:``},Bi={key:1,role:`cell`,"flex-1":``,"min-w100":``,"text-left":``,"text-ellipsis":``,"line-clamp-2":``},Vi={key:2,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,"text-center":``,"text-sm":``,"w-27":``},Hi={key:3,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,"text-center":``,"font-mono":``,"text-sm":``,"min-w52":``,op80:``},Ui={key:4,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,"text-center":``,"font-mono":``,"text-sm":``,"min-w52":``,op80:``},Wi={key:1},Gi={p4:``},Ki={"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},qi={key:0},Ji={key:1},Yi=F({__name:`PluginDetailsTable`,props:{session:{},buildMetrics:{},selectedFields:{}},setup(e){let t=e,n={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},r=R(()=>t.session.modulesList.map(e=>({mod:e,path:Ce(e.id,t.session.meta.cwd),type:ve(e.id)}))),i=R(()=>ge.filter(e=>r.value.some(t=>e.match.test(t.mod.id)))),a=c(Y.value.pluginDetailsModuleTypes??i.value.map(e=>e.name)),{state:o,next:s}=ee([``,`desc`,`asc`],{initialValue:Y.value.pluginDetailsDurationSortType}),l=R(()=>(o.value?[...t.buildMetrics.calls].sort((e,t)=>o.value===`asc`?e.duration-t.duration:t.duration-e.duration):t.buildMetrics.calls).filter(e=>{if(!e.module)return!1;let t=ve(e.module);return a.value.includes(t.name)}).filter(Y.value.pluginDetailSelectedHook?e=>e.type===Y.value.pluginDetailSelectedHook:Boolean).filter(e=>Y.value.pluginDetailsShowType===`all`||![`load`,`transform`].includes(Y.value.pluginDetailSelectedHook)?!0:Y.value.pluginDetailsShowType===`changed`?!e.unchanged:e.unchanged));function u(e){a.value?.includes(e.name)?a.value=a.value?.filter(t=>t!==e.name):a.value?.push(e.name),Y.value.pluginDetailsModuleTypes=a.value}function d(){s(),Y.value.pluginDetailsDurationSortType=o.value}return(t,r)=>{let s=be,c=xe,f=J,p=Se,m=He;return h(),G(`div`,Ti,[U(`div`,Ei,[e.selectedFields.includes(`hookName`)?(h(),G(`div`,Di,` Hook name `)):N(``,!0),e.selectedFields.includes(`module`)?(h(),G(`div`,Oi,[U(`button`,ki,[r[0]||=O(` Module `,-1),B(D(se),null,{popper:g(()=>[U(`div`,ji,[(h(!0),G(j,null,M(i.value,e=>(h(),G(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:`cursor-pointer module-type-filter`},[U(`input`,{type:`checkbox`,mr1:``,checked:a.value?.includes(e.name),onChange:t=>u(e)},null,40,Ni),U(`div`,{class:W(e.icon),"icon-catppuccin":``},null,2),U(`div`,Pi,A(e.description||e.name),1)],8,Mi))),128))])]),default:g(()=>[U(`span`,Ai,[U(`i`,{"text-xs":``,class:W([`i-ph-funnel-duotone`,a.value.length===i.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):N(``,!0),e.selectedFields.includes(`duration`)?(h(),G(`div`,Fi,[U(`button`,{flex:`~ row gap1 items-center justify-center`,"w-full":``,onClick:d},[r[1]||=O(` Duration `,-1),U(`span`,Ii,[U(`i`,{"text-xs":``,class:W([D(o)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,D(o)?`op100 text-primary`:`op50`])},null,2)])])])):N(``,!0),e.selectedFields.includes(`startTime`)?(h(),G(`div`,Li,` Start Time `)):N(``,!0),e.selectedFields.includes(`endTime`)?(h(),G(`div`,Ri,` End Time `)):N(``,!0)]),l.value.length&&e.selectedFields.length?(h(),T(m,{key:0,role:`rowgroup`,items:l.value,"key-prop":`id`},{default:g(({item:t,index:r})=>[U(`div`,{role:`row`,flex:`~ row`,class:W([`border-base border-b-1 border-dashed`,[r===l.value.length-1?`border-b-0`:``]])},[e.selectedFields.includes(`hookName`)?(h(),G(`div`,zi,[B(s,{text:n[t.type]},null,8,[`text`])])):N(``,!0),e.selectedFields.includes(`module`)?(h(),G(`div`,Bi,[B(c,{id:t.module,"w-full":``,"border-none":``,"ws-nowrap":``,session:e.session,link:`/session/${e.session.id}/graph?module=${t.module}`,hover:`bg-active`,border:`~ base rounded`,block:``,px2:``,py1:``},null,8,[`id`,`session`,`link`])])):N(``,!0),e.selectedFields.includes(`duration`)?(h(),G(`div`,Vi,[B(f,{duration:t.duration},null,8,[`duration`])])):N(``,!0),e.selectedFields.includes(`startTime`)?(h(),G(`div`,Hi,[B(p,{timestamp:t.timestamp_start},null,8,[`timestamp`])])):N(``,!0),e.selectedFields.includes(`endTime`)?(h(),G(`div`,Ui,[B(p,{timestamp:t.timestamp_end},null,8,[`timestamp`])])):N(``,!0)],2)]),_:1},8,[`items`])):(h(),G(`div`,Wi,[U(`div`,Gi,[U(`div`,Ki,[e.selectedFields.length?(h(),G(`p`,Ji,` No data `)):(h(),G(`p`,qi,` No columns selected `))])])]))])}}}),Xi=Object.assign(Yi,{__name:`DataPluginDetailsTable`}),Zi={p2:``,"h-full":``,"w-full":``},Qi={flex:`~`,border:`~ base`,"rounded-2":``,"h-full":``,relative:``,"of-hidden":``},$i={key:0,"of-hidden":``,border:`r base`},ea={px2:``,h10:``,border:`b base`,"bg-base":``,"rounded-t-2":``,flex:`~ items-center justify-end`},ta={"flex-1":``,"of-y-auto":``,"h-full":``,flex:`~ col`},na={flex:`~ items-center justify-between`,border:`b base`,px2:``,h10:``,"bg-base":``,"rounded-t-2":``,"of-x-auto":``,"ws-nowrap":``},ra={flex:`~ items-center`,"h-full":``},ia={key:0,flex:`~ items-center justify-center gap1`,"h-full":``,"text-xs":``,py1:``},aa={class:`op50`,flex:`~ items-center gap-1`},oa=[`title`],sa={class:`text-xs op50`},ca={"flex-1":``,"of-y-auto":``,"overscroll-contain":``},la=F({__name:`PluginFlow`,props:{session:{},buildMetrics:{}},setup(e){let t=e,[n,r]=ae(!0),i=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],a=c({selected:Y.value.pluginDetailsTableFields,search:!1}),o=R(()=>Y.value.pluginDetailsTableFields?Y.value.pluginDetailsTableFields:i.map(e=>e.name)),{state:s,next:l}=ee([`changed`,`unchanged`,`all`],{initialValue:Y.value.pluginDetailsShowType}),u=R(()=>s.value===`all`?`Show Changed`:s.value===`changed`?`Show Unchanged`:`Show All`),d=R(()=>!(![`load`,`transform`].includes(Y.value.pluginDetailSelectedHook)||!t.buildMetrics.calls?.filter(e=>e.type===Y.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),f=R(()=>{let e=t.buildMetrics.calls?.filter(e=>e.type===Y.value.pluginDetailSelectedHook).filter(e=>e.unchanged),n=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:n}});p(()=>a.value.selected,e=>{Y.value.pluginDetailsTableFields=e});function m(){l(),Y.value.pluginDetailsShowType=s.value}return(t,s)=>{let c=wi,l=Ve,p=Ae,_=J,v=Xi;return h(),G(`div`,Zi,[U(`div`,Qi,[D(n)?(h(),G(`div`,$i,[B(c,{session:e.session,"build-metrics":e.buildMetrics},{header:g(()=>[U(`div`,ea,[U(`button`,{w8:``,h8:``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:s[0]||=e=>D(r)(!1)},[...s[3]||=[U(`i`,{"i-ph-sidebar-simple-duotone":``,"inline-flex":``,op50:``},null,-1)]])])]),_:1},8,[`session`,`build-metrics`])])):N(``,!0),U(`div`,ta,[U(`div`,na,[U(`div`,ra,[D(n)?N(``,!0):(h(),G(`button`,{key:0,w8:``,h8:``,"rounded-full":``,"cursor-pointer":``,mr1:``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:s[1]||=e=>D(r)(!0)},[...s[4]||=[U(`i`,{"i-ph-sidebar-duotone":``,"inline-flex":``,op50:``},null,-1)]])),B(l,{modelValue:a.value,"onUpdate:modelValue":s[2]||=e=>a.value=e,"h-full":``,"border-none":``,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:i,class:`[&_[icon-catppuccin]]:filter-none!`},null,8,[`modelValue`])]),d.value?(h(),G(`div`,ia,[U(`p`,aa,[B(p,{number:f.value.count},null,8,[`number`]),s[5]||=O(` module unchanged, but cost `,-1),B(_,{duration:f.value.duration},null,8,[`duration`])]),U(`button`,{"rounded-md":``,px2:``,py1:``,"select-none":``,"h-full":``,border:`~ base rounded-lg`,hover:`bg-active`,title:u.value,onClick:m},[U(`div`,sa,A(u.value),1)],8,oa)])):N(``,!0)]),U(`div`,ca,[B(v,{session:e.session,"build-metrics":e.buildMetrics,"selected-fields":o.value},null,8,[`session`,`build-metrics`,`selected-fields`])])])])])}}}),ua=Object.assign(la,{__name:`FlowmapPluginFlow`}),da={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},fa={flex:`~ col gap-4`},pa={key:0,grid:`~ cols-[300px_1fr] gap-1`},ma=[`onClick`],ha={key:0,hover:`bg-active`,class:`flex gap2 items-center pl2`},ga={"font-mono":``,"text-sm":``},_a=[`onClick`],va=[`title`],ya=F({__name:`Sunburst`,props:{graph:{},selected:{},session:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=l(`el`);return fe(()=>i.value?.append(n.graph.el)),(t,n)=>{let a=Ie,s=xe,c=J,l=u(`tooltip`);return h(),G(`div`,da,[U(`div`,{ref_key:`el`,ref:i,"w-500px":``},null,512),U(`div`,fa,[B(a,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:n[0]||=e=>r(`select`,e)},null,8,[`selected`,`options`]),e.selected?(h(),G(`div`,pa,[(h(!0),G(j,null,M(e.selected.children,t=>(h(),G(j,{key:t.id},[U(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>r(`select`,t)},[t.meta?.type===`hook`?(h(),G(`div`,ha,[n[1]||=U(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),U(`span`,ga,A(t.text),1)])):(h(),T(s,{key:1,id:t.text,"w-full":``,"border-none":``,"ws-nowrap":``,session:e.session,hover:`bg-active`,border:`~ base rounded`,block:``,px2:``,py1:``},null,8,[`id`,`session`]))],8,ma),U(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>r(`select`,t)},[U(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:H({background:D(Le)(e.graph.options.getColor?.(t)||`#000`),width:`${t.size/e.selected.size*100}%`})},null,4),B(c,{duration:t.size,"text-xs":``},null,8,[`duration`]),t.children.length>0&&t.meta?.type!==`hook`?o((h(),G(`div`,{key:0,title:`${t.children.length} dependencies`,"text-xs":``,"op-fade":``},[O(` (`+A(t.children.length)+`) `,1)],8,va)),[[l,`${t.children.length} dependencies`]]):N(``,!0)],8,_a)],64))),128))])):N(``,!0)])])}}}),ba=Object.assign(ya,{__name:`PluginsSunburst`}),xa={key:1,relative:``,"h-full":``,"w-full":``},Sa={"bg-glass":``,absolute:``,"left-2":``,"top-2":``,"z-panel-content":``,p2:``,border:`~ base rounded-lg`,flex:`~ col gap-2`},Ca={"font-mono":``,px1:``},wa={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},Ta={flex:`~ gap-2`},Ea={"of-auto":``,"h-full":``,"pt-30":``},Da={key:2,flex:`~ items-center justify-center`,"w-full":``,"h-full":``},Oa={key:0,border:`~ base`,"rounded-lg":``,"shadow-lg":``,px3:``,py2:``,"bg-glass":``,"pointer-events-none":``,"text-sm":``,"max-w-80":``},ka={key:0,flex:`~ items-center gap2`},Aa={key:0,flex:`~`,"font-semibold":``,"font-mono":``,"text-base":``,mb2:``},ja={key:1,border:`t base`,pt2:``,flex:`~ col gap-1.5`,"min-w-48":``},Ma={flex:`~ justify-between items-center`,py1:``},Na=[`datetime`],Pa={flex:`~ justify-between items-center`,py1:``},Fa=[`datetime`],Ia={flex:`~ justify-between items-center`,py1:``,border:`t base dashed`,pt2:``},La={key:2},Ra=F({__name:`PluginDetailsLoader`,props:{plugin:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=_(),a=ue(),{state:o,isLoading:s}=w(async()=>await a.value[`vite:rolldown:get-plugin-details`]?.({session:n.session.id,id:i.query.plugin}),null),c=R(()=>{let e=new Set;return o.value?.calls?.filter(t=>e.has(t.module)?!1:(e.add(t.module),!0))??[]}),l=R(()=>o.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),u=R(()=>o.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),d=R(()=>o.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),f=R(()=>o.value?.calls?.reduce((e,t)=>e+t.duration,0)),m=R(()=>n.session.modulesList.map(e=>({mod:e,path:Ce(e.id,n.session.meta.cwd),type:ve(e.id)}))),v=R(()=>ge.filter(e=>m.value.some(t=>e.match.test(t.mod.id)))),y=R(()=>{let e=new Map;if(!o.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=ze(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!v.value.some(t=>ve(e.module).name===t.name));return[...v.value.map((r,i)=>{let a=n.filter(e=>ve(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,o.value.resolveIdMetrics),i=n(`loads`,o.value.loadMetrics),a=n(`transforms`,o.value.transformMetrics);function s(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":l.value,"~resolves":d.value,"~transforms":u.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[s(`~resolves`,`Resolve Id`,r),s(`~loads`,`Load`,i),s(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),b=V(z()),{tree:x,chartOptions:S,graph:C,nodeHover:E,nodeSelected:k,selectedNode:M,selectNode:ee,buildGraph:P}=Be({data:[],tree:y,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(E.value=e),M.value=e.meta},onHover(e){e&&(E.value=e),e===null&&(E.value=void 0)},onLeave(){E.value=void 0},onSelect(e){k.value=e||x.value.root,M.value=e?.meta},getSubtext(e){return me(e.size,!0)}},onUpdate(){C.value=new Fe(x.value.root,S.value)}});return p(()=>Y.value.pluginDetailsViewType,()=>{P()}),(t,n)=>{let i=ce,a=X,p=Ne,m=J,_=Ae,v=ua,y=ba,x=xe,S=Pe;return h(),G(j,null,[D(s)?(h(),T(i,{key:0})):D(o)?.calls?.length?(h(),G(`div`,xa,[B(a,{absolute:``,"right-2":``,"top-1.5":``,onClick:n[0]||=e=>r(`close`)}),U(`div`,Sa,[U(`div`,Ca,[B(p,{name:D(o)?.plugin_name},null,8,[`name`])]),U(`div`,wa,[B(m,{duration:d.value,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${D(me)(d.value,!0)}`},{default:g(()=>[...n[3]||=[U(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),B(m,{duration:l.value,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${D(me)(l.value,!0)}`},{default:g(()=>[...n[4]||=[U(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),B(m,{duration:u.value,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${D(me)(u.value,!0)}`},{default:g(()=>[...n[5]||=[U(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),n[7]||=U(`span`,{op40:``},`|`,-1),B(m,{duration:f.value,flex:`~ gap-1 items-center`,title:`Total build cost: ${D(me)(f.value,!0)}`},{default:g(()=>[...n[6]||=[U(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),n[8]||=U(`span`,{op40:``},`|`,-1),B(_,{number:c.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${c.value.length}`},null,8,[`number`,`title`]),n[9]||=U(`span`,{op40:``},`|`,-1),B(_,{number:D(o)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${D(o)?.calls?.length??0}`},null,8,[`number`,`title`])]),U(`div`,Ta,[U(`button`,{class:W(D(Y).pluginDetailsViewType===`flow`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[1]||=e=>D(Y).pluginDetailsViewType=`flow`},[...n[10]||=[U(`div`,{"i-ph-git-branch-duotone":``,"rotate-180":``},null,-1),O(` Build Flow `,-1)]],2),U(`button`,{class:W(D(Y).pluginDetailsViewType===`sunburst`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[2]||=e=>D(Y).pluginDetailsViewType=`sunburst`},[...n[11]||=[U(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),O(` Sunburst `,-1)]],2)])]),U(`div`,Ea,[D(Y).pluginDetailsViewType===`flow`?(h(),T(v,{key:0,session:e.session,"build-metrics":D(o)},null,8,[`session`,`build-metrics`])):N(``,!0),D(Y).pluginDetailsViewType===`sunburst`&&D(C)?(h(),T(y,{key:1,graph:D(C),session:e.session,selected:D(k),onSelect:D(ee)},null,8,[`graph`,`session`,`selected`,`onSelect`])):N(``,!0)])])):(h(),G(`div`,Da,[...n[12]||=[U(`span`,{italic:``,op50:``},` No data `,-1)]])),B(S,{"hover-x":b.x,"hover-y":b.y},{default:g(()=>[D(E)?(h(),G(`div`,Oa,[D(E).meta?.title?(h(),G(`div`,ka,[O(A(D(E).meta.title)+` `,1),B(m,{duration:D(E).meta.duration},null,8,[`duration`])])):(h(),G(j,{key:1},[D(E).meta?.module?(h(),G(`div`,Aa,[B(x,{id:D(E).meta.module,session:e.session,link:!1},null,8,[`id`,`session`])])):N(``,!0),D(E).meta?.module?(h(),G(`div`,ja,[U(`div`,Ma,[n[13]||=U(`label`,{"text-xs":``,"opacity-70":``},`Start Time`,-1),U(`time`,{datetime:new Date(D(E).meta.timestamp_start).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(D(E).meta.timestamp_start)),9,Na)]),U(`div`,Pa,[n[14]||=U(`label`,{"text-xs":``,"opacity-70":``},`End Time`,-1),U(`time`,{datetime:new Date(D(E).meta.timestamp_end).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(D(E).meta.timestamp_end)),9,Fa)]),U(`div`,Ia,[n[15]||=U(`label`,{text:`xs`,op70:``},`Duration`,-1),B(m,{duration:D(E).meta.duration},null,8,[`duration`])])])):(h(),G(`div`,La,[B(m,{duration:D(E).meta?.duration},null,8,[`duration`])]))],64))])):N(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),za=Object.assign(Ra,{__name:`DataPluginDetailsLoader`}),Ba={key:1,p4:``,relative:``,"h-full":``,"w-full":``,"of-auto":``,"z-panel-content":``},Va=F({__name:`ChunkDetailsLoader`,props:{chunk:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ue(),{state:a,isLoading:o}=w(async()=>await i.value[`vite:rolldown:get-chunk-info`]?.({session:n.session.id,id:n.chunk}),null);return(t,n)=>{let i=ce,s=X,c=ke;return h(),G(j,null,[D(o)?(h(),T(i,{key:0})):N(``,!0),D(a)?(h(),G(`div`,Ba,[B(c,{session:e.session,chunk:D(a)},{default:g(()=>[B(s,{onClick:n[0]||=e=>r(`close`)})]),_:1},8,[`session`,`chunk`])])):N(``,!0)],64)}}}),Ha=Object.assign(Va,{__name:`DataChunkDetailsLoader`}),Ua={key:1,p4:``,relative:``,"h-full":``,"w-full":``,"of-auto":``,"z-panel-content":``},Wa={flex:`~ col gap-3`},Ga=[`title`],Ka={flex:`~ items-center gap-1`},qa={open:`true`},Ja={op50:``},Ya={"inline-flex":``},Xa={open:`true`},Za={op50:``},Qa=F({__name:`PackageDetailsLoader`,props:{session:{},package:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=R(()=>{let[,e,t]=n.package.match(/^(@?[^@]+)@(.+)$/);return{name:e,version:t}}),a=ue(),{state:o,isLoading:s}=w(async()=>await a.value[`vite:rolldown:get-package-details`]?.({session:n.session.id,id:n.package}),null),c=R(()=>o.value?.files?.filter(e=>!!e.transformedCodeSize)??[]),l=R(()=>{let e=new Map;return o.value?.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(o.value?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});function u(){let e=`https://www.npmjs.com/package/${i.value.name}`;window.open(e,`_blank`)}return(t,n)=>{let a=ce,d=Ue,f=Ee,p=X,m=xe,_=Oe,v=be;return h(),G(j,null,[D(s)?(h(),T(a,{key:0})):N(``,!0),D(o)?(h(),G(`div`,Ua,[U(`div`,Wa,[U(`div`,{flex:`~ gap-3 items-center`,title:e.package},[U(`div`,Ka,[U(`div`,null,[B(d,{name:i.value.name},null,8,[`name`])]),B(f,{bytes:D(o).transformedCodeSize},null,8,[`bytes`])]),n[2]||=U(`div`,{"flex-auto":``},null,-1),U(`button`,{"btn-action":``,flex:`~ items-center`,onClick:u},[...n[1]||=[U(`div`,{"i-ph-arrow-square-out-duotone":``},null,-1),O(` Open in npm `,-1)]]),B(p,{onClick:n[0]||=e=>r(`close`)})],8,Ga),U(`details`,qa,[U(`summary`,Ja,[U(`span`,null,`Bundled Files (`+A(c.value.length)+`)`,1)]),B(_,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:c.value},{default:g(({items:t})=>[(h(!0),G(j,null,M(t,t=>(h(),G(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},[B(m,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:D(o).dir},null,8,[`id`,`session`,`cwd`]),U(`span`,Ya,[B(f,{bytes:t.transformedCodeSize,"text-xs":``},null,8,[`bytes`])])]))),128))]),_:1},8,[`list`])]),U(`details`,Xa,[U(`summary`,Za,[U(`span`,null,`Importers (`+A(l.value.length)+`)`,1)]),B(_,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:l.value},{default:g(({items:t})=>[(h(!0),G(j,null,M(t,t=>(h(),G(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},[B(m,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version?(h(),T(v,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):N(``,!0)]))),128))]),_:1},8,[`list`])])])])):N(``,!0)],64)}}}),$a=Object.assign(Qa,{__name:`DataPackageDetailsLoader`}),eo={key:1,grid:`~ cols-[max-content_1fr]`,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``},to={"of-auto":``,"h-screen":``,"max-h-screen":``,relative:``},no=F({__name:`[session]`,setup(e){let t=_().params,r=c(!0),i=V({id:R(()=>t.session),meta:void 0,modulesList:y([]),buildDuration:0}),o=ue(),s=a(),l=_(),u=R(()=>[`module`,`asset`,`plugin`,`chunk`,`package`].find(e=>l.query[e]!==void 0));function d(){u.value&&s.replace({query:{...l.query,[u.value]:void 0}})}return L(`Escape`,e=>{e.preventDefault(),!(!e.isTrusted||e.repeat)&&d()}),q(()=>i.meta?[{title:`Home`,to:`/session/${i.id}`,icon:`i-ph-house-duotone`},{title:`Modules Graph`,to:`/session/${i.id}/graph`,icon:`i-ph-graph-duotone`,category:`session`},{title:`Plugins`,to:`/session/${i.id}/plugins`,icon:`i-ph-plugs-duotone`,category:`session`},{title:`Chunks`,to:`/session/${i.id}/chunks`,icon:`i-ph-shapes-duotone `,category:`session`},{title:`Assets`,to:`/session/${i.id}/assets`,icon:`i-ph-files-duotone`,category:`session`},{title:`Packages`,to:`/session/${i.id}/packages`,icon:`i-ph-package-duotone`,category:`session`}]:[]),n(async()=>{let e=await o.value[`vite:rolldown:get-session-summary`]({session:t.session});i.meta=e.meta,i.modulesList=e.modules.map(e=>({id:e.id,fileType:_e(e.id).name,imports:e.imports??[],importers:e.importers??[],buildMetrics:e.build_metrics})),i.buildDuration=e.build_duration,r.value=!1}),(e,t)=>{let n=ce,a=tt,o=S,s=si,c=ui,f=za,p=Ha,m=$a;return r.value?(h(),T(n,{key:0})):(h(),G(`div`,eo,[B(a),U(`div`,to,[B(o,{session:i},null,8,[`session`])]),u.value?(h(),G(`div`,{key:0,fixed:``,"inset-0":``,"backdrop-blur-8":``,"backdrop-brightness-95":``,"z-panel-content":``,onClick:re(d,[`self`])},[u.value===`module`?(h(),G(`div`,{key:D(l).query.module,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"left-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`},[B(s,{module:D(l).query.module,session:i,onClose:d},null,8,[`module`,`session`])])):N(``,!0),u.value===`asset`?(h(),G(`div`,{key:D(l).query.asset,fixed:``,"right-0":``,"bottom-0":``,"top-30":``,"z-panel-content":``,"of-hidden":``,"bg-glass":``,border:`l t base rounded-tl-xl`,class:`left-20 xl:left-100 2xl:left-150`},[B(c,{asset:D(l).query.asset,session:i,onClose:d},null,8,[`asset`,`session`])])):N(``,!0),u.value===`plugin`?(h(),G(`div`,{key:D(l).query.plugin,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"left-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`},[B(f,{plugin:D(l).query.plugin,session:i,onClose:d},null,8,[`plugin`,`session`])])):N(``,!0),u.value===`chunk`?(h(),G(`div`,{key:D(l).query.chunk,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`,class:`left-20 xl:left-100 2xl:left-150`},[B(p,{chunk:Number(D(l).query.chunk),session:i,onClose:d},null,8,[`chunk`,`session`])])):N(``,!0),u.value===`package`?(h(),G(`div`,{key:D(l).query.package,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`,class:`left-20 xl:left-100 2xl:left-150`},[B(m,{package:D(l).query.package,session:i,onClose:d},null,8,[`package`,`session`])])):N(``,!0)])):N(``,!0)]))}}});export{no as default};
33
+ `&&(r.innerActive=o,r.inner=e.startState(o.mode,i.indent?i.indent(r.outer,``,``):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}})})),yt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),_t(),vt()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../../addon/mode/simple`,`../../addon/mode/multiplex`],n):n(CodeMirror)})(function(e){e.defineSimpleMode(`handlebars-tags`,{start:[{regex:/\{\{\{/,push:`handlebars_raw`,token:`tag`},{regex:/\{\{!--/,push:`dash_comment`,token:`comment`},{regex:/\{\{!/,push:`comment`,token:`comment`},{regex:/\{\{/,push:`handlebars`,token:`tag`}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:`tag`}],handlebars:[{regex:/\}\}/,pop:!0,token:`tag`},{regex:/"(?:[^\\"]|\\.)*"?/,token:`string`},{regex:/'(?:[^\\']|\\.)*'?/,token:`string`},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:`keyword`},{regex:/(?:else|this)\b/,token:`keyword`},{regex:/\d+/i,token:`number`},{regex:/=|~|@|true|false/,token:`atom`},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:`variable-2`}],dash_comment:[{regex:/--\}\}/,pop:!0,token:`comment`},{regex:/./,token:`comment`}],comment:[{regex:/\}\}/,pop:!0,token:`comment`},{regex:/./,token:`comment`}],meta:{blockCommentStart:`{{--`,blockCommentEnd:`--}}`}}),e.defineMode(`handlebars`,function(t,n){var r=e.getMode(t,`handlebars-tags`);return!n||!n.base?r:e.multiplexingMode(e.getMode(t,n.base),{open:`{{`,close:/\}\}\}?/,mode:r,parseDelimiters:!0})}),e.defineMIME(`text/x-handlebars-template`,`handlebars`)})})),bt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode(`xml`,function(r,i){var a=r.indentUnit,o={},s=i.htmlMode?t:n;for(var c in s)o[c]=s[c];for(var c in i)o[c]=i[c];var l,u;function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return r==`<`?e.eat(`!`)?e.eat(`[`)?e.match(`CDATA[`)?n(m(`atom`,`]]>`)):null:e.match(`--`)?n(m(`comment`,`-->`)):e.match(`DOCTYPE`,!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat(`?`)?(e.eatWhile(/[\w\._\-]/),t.tokenize=m(`meta`,`?>`),`meta`):(l=e.eat(`/`)?`closeTag`:`openTag`,t.tokenize=f,`tag bracket`):r==`&`?(e.eat(`#`)?e.eat(`x`)?e.eatWhile(/[a-fA-F\d]/)&&e.eat(`;`):e.eatWhile(/[\d]/)&&e.eat(`;`):e.eatWhile(/[\w\.\-:]/)&&e.eat(`;`))?`atom`:`error`:(e.eatWhile(/[^&<]/),null)}d.isInText=!0;function f(e,t){var n=e.next();if(n==`>`||n==`/`&&e.eat(`>`))return t.tokenize=d,l=n==`>`?`endTag`:`selfcloseTag`,`tag bracket`;if(n==`=`)return l=`equals`,null;if(n==`<`){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+` tag error`:`tag error`}else if(/[\'\"]/.test(n))return t.tokenize=p(n),t.stringStartCol=e.column(),t.tokenize(e,t);else return e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),`word`}function p(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;break}return`string`};return t.isInAttribute=!0,t}function m(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function h(e){return function(t,n){for(var r;(r=t.next())!=null;)if(r==`<`)return n.tokenize=h(e+1),n.tokenize(t,n);else if(r==`>`)if(e==1){n.tokenize=d;break}else return n.tokenize=h(e-1),n.tokenize(t,n);return`meta`}}function g(e){return e&&e.toLowerCase()}function _(e,t,n){this.prev=e.context,this.tagName=t||``,this.indent=e.indented,this.startOfLine=n,(o.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&=e.context.prev}function y(e,t){for(var n;;){if(!e.context||(n=e.context.tagName,!o.contextGrabbers.hasOwnProperty(g(n))||!o.contextGrabbers[g(n)].hasOwnProperty(g(t))))return;v(e)}}function b(e,t,n){return e==`openTag`?(n.tagStart=t.column(),x):e==`closeTag`?S:b}function x(e,t,n){return e==`word`?(n.tagName=t.current(),u=`tag`,T):o.allowMissingTagName&&e==`endTag`?(u=`tag bracket`,T(e,t,n)):(u=`error`,x)}function S(e,t,n){if(e==`word`){var r=t.current();return n.context&&n.context.tagName!=r&&o.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||o.matchClosing===!1?(u=`tag`,C):(u=`tag error`,w)}else if(o.allowMissingTagName&&e==`endTag`)return u=`tag bracket`,C(e,t,n);else return u=`error`,w}function C(e,t,n){return e==`endTag`?(v(n),b):(u=`error`,C)}function w(e,t,n){return u=`error`,C(e,t,n)}function T(e,t,n){if(e==`word`)return u=`attribute`,E;if(e==`endTag`||e==`selfcloseTag`){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,e==`selfcloseTag`||o.autoSelfClosers.hasOwnProperty(g(r))?y(n,r):(y(n,r),n.context=new _(n,r,i==n.indented)),b}return u=`error`,T}function E(e,t,n){return e==`equals`?D:(o.allowMissing||(u=`error`),T(e,t,n))}function D(e,t,n){return e==`string`?O:e==`word`&&o.allowUnquoted?(u=`string`,T):(u=`error`,T(e,t,n))}function O(e,t,n){return e==`string`?O:T(e,t,n)}return{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return e!=null&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;l=null;var n=t.tokenize(e,t);return(n||l)&&n!=`comment`&&(u=null,t.state=t.state(l||n,e,t),u&&(n=u==`error`?n+` error`:u)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+a;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return o.multilineTagIndentPastTag===!1?t.tagStart+a*(o.multilineTagIndentFactor||1):t.tagStart+t.tagName.length+2;if(o.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;i;)if(i.tagName==s[2]){i=i.prev;break}else if(o.implicitlyClosed.hasOwnProperty(g(i.tagName)))i=i.prev;else break;else if(s)for(;i;){var c=o.contextGrabbers[g(i.tagName)];if(c&&c.hasOwnProperty(g(s[2])))i=i.prev;else break}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+a:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:`<!--`,blockCommentEnd:`-->`,configuration:o.htmlMode?`html`:`xml`,helperType:o.htmlMode?`html`:`xml`,skipAttribute:function(e){e.state==D&&(e.state=T)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:e.type==`closeTag`}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME(`text/xml`,`xml`),e.defineMIME(`application/xml`,`xml`),e.mimeModes.hasOwnProperty(`text/html`)||e.defineMIME(`text/html`,{name:`xml`,htmlMode:!0})})})),xt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`javascript`,function(t,n){var r=t.indentUnit,i=n.statementIndent,a=n.jsonld,o=n.json||a,s=n.trackScope!==!1,c=n.typescript,l=n.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function e(e){return{type:e,style:`keyword`}}var t=e(`keyword a`),n=e(`keyword b`),r=e(`keyword c`),i=e(`keyword d`),a=e(`operator`),o={type:`atom`,style:`atom`};return{if:e(`if`),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e(`new`),delete:r,void:r,throw:r,debugger:e(`debugger`),var:e(`var`),const:e(`var`),let:e(`var`),function:e(`function`),catch:e(`catch`),for:e(`for`),switch:e(`switch`),case:e(`case`),default:e(`default`),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e(`this`),class:e(`class`),super:e(`atom`),yield:r,export:e(`export`),import:e(`import`),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){for(var t=!1,n,r=!1;(n=e.next())!=null;){if(!t){if(n==`/`&&!r)return;n==`[`?r=!0:r&&n==`]`&&(r=!1)}t=!t&&n==`\\`}}var m,h;function g(e,t,n){return m=e,h=n,t}function _(e,t){var n=e.next();if(n==`"`||n==`'`)return t.tokenize=v(n),t.tokenize(e,t);if(n==`.`&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g(`number`,`number`);if(n==`.`&&e.match(`..`))return g(`spread`,`meta`);if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if(n==`=`&&e.eat(`>`))return g(`=>`,`operator`);if(n==`0`&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g(`number`,`number`);if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g(`number`,`number`);if(n==`/`)return e.eat(`*`)?(t.tokenize=y,y(e,t)):e.eat(`/`)?(e.skipToEnd(),g(`comment`,`comment`)):st(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g(`regexp`,`string-2`)):(e.eat(`=`),g(`operator`,`operator`,e.current()));if(n=="`")return t.tokenize=b,b(e,t);if(n==`#`&&e.peek()==`!`)return e.skipToEnd(),g(`meta`,`meta`);if(n==`#`&&e.eatWhile(l))return g(`variable`,`property`);if(n==`<`&&e.match(`!--`)||n==`-`&&e.match(`->`)&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g(`comment`,`comment`);if(d.test(n))return(n!=`>`||!t.lexical||t.lexical.type!=`>`)&&(e.eat(`=`)?(n==`!`||n==`=`)&&e.eat(`=`):/[<>*+\-|&?]/.test(n)&&(e.eat(n),n==`>`&&e.eat(n))),n==`?`&&e.eat(`.`)?g(`.`):g(`operator`,`operator`,e.current());if(l.test(n)){e.eatWhile(l);var r=e.current();if(t.lastType!=`.`){if(u.propertyIsEnumerable(r)){var i=u[r];return g(i.type,i.style,r)}if(r==`async`&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g(`async`,`keyword`,r)}return g(`variable`,`variable`,r)}}function v(e){return function(t,n){var r=!1,i;if(a&&t.peek()==`@`&&t.match(f))return n.tokenize=_,g(`jsonld-keyword`,`meta`);for(;(i=t.next())!=null&&!(i==e&&!r);)r=!r&&i==`\\`;return r||(n.tokenize=_),g(`string`,`string`)}}function y(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize=_;break}n=r==`*`}return g(`comment`,`comment`)}function b(e,t){for(var n=!1,r;(r=e.next())!=null;){if(!n&&(r=="`"||r==`$`&&e.eat(`{`))){t.tokenize=_;break}n=!n&&r==`\\`}return g(`quasi`,`string-2`,e.current())}var x=`([{}])`;function S(e,t){t.fatArrowAt&&=null;var n=e.string.indexOf(`=>`,e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,a=!1,o=n-1;o>=0;--o){var s=e.string.charAt(o),u=x.indexOf(s);if(u>=0&&u<3){if(!i){++o;break}if(--i==0){s==`(`&&(a=!0);break}}else if(u>=3&&u<6)++i;else if(l.test(s))a=!0;else if(/["'\/`]/.test(s))for(;;--o){if(o==0)return;if(e.string.charAt(o-1)==s&&e.string.charAt(o-2)!=`\\`){o--;break}}else if(a&&!i){++o;break}}a&&!i&&(t.fatArrowAt=o)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=a,r!=null&&(this.align=r)}function T(e,t){if(!s)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function E(e,t,n,r,i){var a=e.cc;for(D.state=e,D.stream=i,D.marked=null,D.cc=a,D.style=t,e.lexical.hasOwnProperty(`align`)||(e.lexical.align=!0);;)if((a.length?a.pop():o?H:V)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return D.marked?D.marked:n==`variable`&&T(e,r)?`variable-2`:t}}var D={state:null,column:null,marked:null,cc:null};function O(){for(var e=arguments.length-1;e>=0;e--)D.cc.push(arguments[e])}function k(){return O.apply(null,arguments),!0}function A(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function j(e){var t=D.state;if(D.marked=`def`,s){if(t.context){if(t.lexical.info==`var`&&t.context&&t.context.block){var r=M(e,t.context);if(r!=null){t.context=r;return}}else if(!A(e,t.localVars)){t.localVars=new P(e,t.localVars);return}}n.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new P(e,t.globalVars))}}function M(e,t){if(t)if(t.block){var n=M(e,t.prev);return n?n==t.prev?t:new N(n,t.vars,!0):null}else if(A(e,t.vars))return t;else return new N(t.prev,new P(e,t.vars),!1);else return null}function ee(e){return e==`public`||e==`private`||e==`protected`||e==`abstract`||e==`readonly`}function N(e,t,n){this.prev=e,this.vars=t,this.block=n}function P(e,t){this.name=e,this.next=t}var F=new P(`this`,new P(`arguments`,null));function I(){D.state.context=new N(D.state.context,D.state.localVars,!1),D.state.localVars=F}function te(){D.state.context=new N(D.state.context,D.state.localVars,!0),D.state.localVars=null}I.lex=te.lex=!0;function L(){D.state.localVars=D.state.context.vars,D.state.context=D.state.context.prev}L.lex=!0;function R(e,t){var n=function(){var n=D.state,r=n.indented;if(n.lexical.type==`stat`)r=n.lexical.indented;else for(var i=n.lexical;i&&i.type==`)`&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,D.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=D.state;e.lexical.prev&&(e.lexical.type==`)`&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}z.lex=!0;function B(e){function t(n){return n==e?k():e==`;`||n==`}`||n==`)`||n==`]`?O():k(t)}return t}function V(e,t){return e==`var`?k(R(`vardef`,t),Me,B(`;`),z):e==`keyword a`?k(R(`form`),U,V,z):e==`keyword b`?k(R(`form`),V,z):e==`keyword d`?D.stream.match(/^\s*$/,!1)?k():k(R(`stat`),ie,B(`;`),z):e==`debugger`?k(B(`;`)):e==`{`?k(R(`}`),te,ye,z,L):e==`;`?k():e==`if`?(D.state.lexical.info==`else`&&D.state.cc[D.state.cc.length-1]==z&&D.state.cc.pop()(),k(R(`form`),U,V,z,Re)):e==`function`?k(He):e==`for`?k(R(`form`),te,ze,V,L,z):e==`class`||c&&t==`interface`?(D.marked=`keyword`,k(R(`form`,e==`class`?e:t),qe,z)):e==`variable`?c&&t==`declare`?(D.marked=`keyword`,k(V)):c&&(t==`module`||t==`enum`||t==`type`)&&D.stream.match(/^\s*\w/,!1)?(D.marked=`keyword`,t==`enum`?k(X):t==`type`?k(We,B(`operator`),q,B(`;`)):k(R(`form`),Ne,B(`{`),R(`}`),ye,z,z)):c&&t==`namespace`?(D.marked=`keyword`,k(R(`form`),H,V,z)):c&&t==`abstract`?(D.marked=`keyword`,k(V)):k(R(`stat`),fe):e==`switch`?k(R(`form`),U,B(`{`),R(`}`,`switch`),te,ye,z,z,L):e==`case`?k(H,B(`:`)):e==`default`?k(B(`:`)):e==`catch`?k(R(`form`),I,ne,V,z,L):e==`export`?k(R(`stat`),Ze,z):e==`import`?k(R(`stat`),$e,z):e==`async`?k(V):t==`@`?k(H,V):O(R(`stat`),H,B(`;`),z)}function ne(e){if(e==`(`)return k(Ge,B(`)`))}function H(e,t){return W(e,t,!1)}function re(e,t){return W(e,t,!0)}function U(e){return e==`(`?k(R(`)`),ie,B(`)`),z):O()}function W(e,t,n){if(D.state.fatArrowAt==D.stream.start){var r=n?ce:K;if(e==`(`)return k(I,R(`)`),_e(Ge,`)`),z,B(`=>`),r,L);if(e==`variable`)return O(I,Ne,B(`=>`),r,L)}var i=n?ae:G;return C.hasOwnProperty(e)?k(i):e==`function`?k(He,i):e==`class`||c&&t==`interface`?(D.marked=`keyword`,k(R(`form`),Ke,z)):e==`keyword c`||e==`async`?k(n?re:H):e==`(`?k(R(`)`),ie,B(`)`),z,i):e==`operator`||e==`spread`?k(n?re:H):e==`[`?k(R(`]`),it,z,i):e==`{`?ve(me,`}`,null,i):e==`quasi`?O(oe,i):e==`new`?k(le(n)):k()}function ie(e){return e.match(/[;\}\)\],]/)?O():O(H)}function G(e,t){return e==`,`?k(ie):ae(e,t,!1)}function ae(e,t,n){var r=n==0?G:ae,i=n==0?H:re;if(e==`=>`)return k(I,n?ce:K,L);if(e==`operator`)return/\+\+|--/.test(t)||c&&t==`!`?k(r):c&&t==`<`&&D.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(R(`>`),_e(q,`>`),z,r):t==`?`?k(H,B(`:`),i):k(i);if(e==`quasi`)return O(oe,r);if(e!=`;`){if(e==`(`)return ve(re,`)`,`call`,r);if(e==`.`)return k(pe,r);if(e==`[`)return k(R(`]`),ie,B(`]`),z,r);if(c&&t==`as`)return D.marked=`keyword`,k(q,r);if(e==`regexp`)return D.state.lastType=D.marked=`operator`,D.stream.backUp(D.stream.pos-D.stream.start-1),k(i)}}function oe(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?k(ie,se):k(oe):O()}function se(e){if(e==`}`)return D.marked=`string-2`,D.state.tokenize=b,k(oe)}function K(e){return S(D.stream,D.state),O(e==`{`?V:H)}function ce(e){return S(D.stream,D.state),O(e==`{`?V:re)}function le(e){return function(t){return t==`.`?k(e?de:ue):t==`variable`&&c?k(ke,e?ae:G):O(e?re:H)}}function ue(e,t){if(t==`target`)return D.marked=`keyword`,k(G)}function de(e,t){if(t==`target`)return D.marked=`keyword`,k(ae)}function fe(e){return e==`:`?k(z,V):O(G,B(`;`),z)}function pe(e){if(e==`variable`)return D.marked=`property`,k()}function me(e,t){if(e==`async`)return D.marked=`property`,k(me);if(e==`variable`||D.style==`keyword`){if(D.marked=`property`,t==`get`||t==`set`)return k(he);var n;return c&&D.state.fatArrowAt==D.stream.start&&(n=D.stream.match(/^\s*:\s*/,!1))&&(D.state.fatArrowAt=D.stream.pos+n[0].length),k(ge)}else if(e==`number`||e==`string`)return D.marked=a?`property`:D.style+` property`,k(ge);else if(e==`jsonld-keyword`)return k(ge);else if(c&&ee(t))return D.marked=`keyword`,k(me);else if(e==`[`)return k(H,be,B(`]`),ge);else if(e==`spread`)return k(re,ge);else if(t==`*`)return D.marked=`keyword`,k(me);else if(e==`:`)return O(ge)}function he(e){return e==`variable`?(D.marked=`property`,k(He)):O(ge)}function ge(e){if(e==`:`)return k(re);if(e==`(`)return O(He)}function _e(e,t,n){function r(i,a){if(n?n.indexOf(i)>-1:i==`,`){var o=D.state.lexical;return o.info==`call`&&(o.pos=(o.pos||0)+1),k(function(n,r){return n==t||r==t?O():O(e)},r)}return i==t||a==t?k():n&&n.indexOf(`;`)>-1?O(e):k(B(t))}return function(n,i){return n==t||i==t?k():O(e,r)}}function ve(e,t,n){for(var r=3;r<arguments.length;r++)D.cc.push(arguments[r]);return k(R(t,n),_e(e,t),z)}function ye(e){return e==`}`?k():O(V,ye)}function be(e,t){if(c){if(e==`:`)return k(q);if(t==`?`)return k(be)}}function xe(e,t){if(c&&(e==`:`||t==`in`))return k(q)}function Se(e){if(c&&e==`:`)return D.stream.match(/^\s*\w+\s+is\b/,!1)?k(H,Ce,q):k(q)}function Ce(e,t){if(t==`is`)return D.marked=`keyword`,k()}function q(e,t){if(t==`keyof`||t==`typeof`||t==`infer`||t==`readonly`)return D.marked=`keyword`,k(t==`typeof`?re:q);if(e==`variable`||t==`void`)return D.marked=`type`,k(Oe);if(t==`|`||t==`&`)return k(q);if(e==`string`||e==`number`||e==`atom`)return k(Oe);if(e==`[`)return k(R(`]`),_e(q,`]`,`,`),z,Oe);if(e==`{`)return k(R(`}`),J,z,Oe);if(e==`(`)return k(_e(De,`)`),we,Oe);if(e==`<`)return k(_e(q,`>`),q);if(e==`quasi`)return O(Ee,Oe)}function we(e){if(e==`=>`)return k(q)}function J(e){return e.match(/[\}\)\]]/)?k():e==`,`||e==`;`?k(J):O(Te,J)}function Te(e,t){if(e==`variable`||D.style==`keyword`)return D.marked=`property`,k(Te);if(t==`?`||e==`number`||e==`string`)return k(Te);if(e==`:`)return k(q);if(e==`[`)return k(B(`variable`),xe,B(`]`),Te);if(e==`(`)return O(Ue,Te);if(!e.match(/[;\}\)\],]/))return k()}function Ee(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?k(q,Y):k(Ee):O()}function Y(e){if(e==`}`)return D.marked=`string-2`,D.state.tokenize=b,k(Ee)}function De(e,t){return e==`variable`&&D.stream.match(/^\s*[?:]/,!1)||t==`?`?k(De):e==`:`?k(q):e==`spread`?k(De):O(q)}function Oe(e,t){if(t==`<`)return k(R(`>`),_e(q,`>`),z,Oe);if(t==`|`||e==`.`||t==`&`)return k(q);if(e==`[`)return k(q,B(`]`),Oe);if(t==`extends`||t==`implements`)return D.marked=`keyword`,k(q);if(t==`?`)return k(q,B(`:`),q)}function ke(e,t){if(t==`<`)return k(R(`>`),_e(q,`>`),z,Oe)}function Ae(){return O(q,je)}function je(e,t){if(t==`=`)return k(q)}function Me(e,t){return t==`enum`?(D.marked=`keyword`,k(X)):O(Ne,be,Ie,Le)}function Ne(e,t){if(c&&ee(t))return D.marked=`keyword`,k(Ne);if(e==`variable`)return j(t),k();if(e==`spread`)return k(Ne);if(e==`[`)return ve(Fe,`]`);if(e==`{`)return ve(Pe,`}`)}function Pe(e,t){return e==`variable`&&!D.stream.match(/^\s*:/,!1)?(j(t),k(Ie)):(e==`variable`&&(D.marked=`property`),e==`spread`?k(Ne):e==`}`?O():e==`[`?k(H,B(`]`),B(`:`),Pe):k(B(`:`),Ne,Ie))}function Fe(){return O(Ne,Ie)}function Ie(e,t){if(t==`=`)return k(re)}function Le(e){if(e==`,`)return k(Me)}function Re(e,t){if(e==`keyword b`&&t==`else`)return k(R(`form`,`else`),V,z)}function ze(e,t){if(t==`await`)return k(ze);if(e==`(`)return k(R(`)`),Be,z)}function Be(e){return e==`var`?k(Me,Ve):e==`variable`?k(Ve):O(Ve)}function Ve(e,t){return e==`)`?k():e==`;`?k(Ve):t==`in`||t==`of`?(D.marked=`keyword`,k(H,Ve)):O(H,Ve)}function He(e,t){if(t==`*`)return D.marked=`keyword`,k(He);if(e==`variable`)return j(t),k(He);if(e==`(`)return k(I,R(`)`),_e(Ge,`)`),z,Se,V,L);if(c&&t==`<`)return k(R(`>`),_e(Ae,`>`),z,He)}function Ue(e,t){if(t==`*`)return D.marked=`keyword`,k(Ue);if(e==`variable`)return j(t),k(Ue);if(e==`(`)return k(I,R(`)`),_e(Ge,`)`),z,Se,L);if(c&&t==`<`)return k(R(`>`),_e(Ae,`>`),z,Ue)}function We(e,t){if(e==`keyword`||e==`variable`)return D.marked=`type`,k(We);if(t==`<`)return k(R(`>`),_e(Ae,`>`),z)}function Ge(e,t){return t==`@`&&k(H,Ge),e==`spread`?k(Ge):c&&ee(t)?(D.marked=`keyword`,k(Ge)):c&&e==`this`?k(be,Ie):O(Ne,be,Ie)}function Ke(e,t){return e==`variable`?qe(e,t):Je(e,t)}function qe(e,t){if(e==`variable`)return j(t),k(Je)}function Je(e,t){if(t==`<`)return k(R(`>`),_e(Ae,`>`),z,Je);if(t==`extends`||t==`implements`||c&&e==`,`)return t==`implements`&&(D.marked=`keyword`),k(c?q:H,Je);if(e==`{`)return k(R(`}`),Ye,z)}function Ye(e,t){if(e==`async`||e==`variable`&&(t==`static`||t==`get`||t==`set`||c&&ee(t))&&D.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return D.marked=`keyword`,k(Ye);if(e==`variable`||D.style==`keyword`)return D.marked=`property`,k(Xe,Ye);if(e==`number`||e==`string`)return k(Xe,Ye);if(e==`[`)return k(H,be,B(`]`),Xe,Ye);if(t==`*`)return D.marked=`keyword`,k(Ye);if(c&&e==`(`)return O(Ue,Ye);if(e==`;`||e==`,`)return k(Ye);if(e==`}`)return k();if(t==`@`)return k(H,Ye)}function Xe(e,t){if(t==`!`||t==`?`)return k(Xe);if(e==`:`)return k(q,Ie);if(t==`=`)return k(re);var n=D.state.lexical.prev;return O(n&&n.info==`interface`?Ue:He)}function Ze(e,t){return t==`*`?(D.marked=`keyword`,k(rt,B(`;`))):t==`default`?(D.marked=`keyword`,k(H,B(`;`))):e==`{`?k(_e(Qe,`}`),rt,B(`;`)):O(V)}function Qe(e,t){if(t==`as`)return D.marked=`keyword`,k(B(`variable`));if(e==`variable`)return O(re,Qe)}function $e(e){return e==`string`?k():e==`(`?O(H):e==`.`?O(G):O(et,tt,rt)}function et(e,t){return e==`{`?ve(et,`}`):(e==`variable`&&j(t),t==`*`&&(D.marked=`keyword`),k(nt))}function tt(e){if(e==`,`)return k(et,tt)}function nt(e,t){if(t==`as`)return D.marked=`keyword`,k(et)}function rt(e,t){if(t==`from`)return D.marked=`keyword`,k(H)}function it(e){return e==`]`?k():O(_e(re,`]`))}function X(){return O(R(`form`),Ne,B(`{`),R(`}`),_e(at,`}`),z,z)}function at(){return O(Ne,Ie)}function ot(e,t){return e.lastType==`operator`||e.lastType==`,`||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function st(e,t,n){return t.tokenize==_&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||t.lastType==`quasi`&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return{startState:function(e){var t={tokenize:_,lastType:`sof`,cc:[],lexical:new w((e||0)-r,0,`block`,!1),localVars:n.localVars,context:n.localVars&&new N(null,null,!1),indented:e||0};return n.globalVars&&typeof n.globalVars==`object`&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty(`align`)||(t.lexical.align=!1),t.indented=e.indentation(),S(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return m==`comment`?n:(t.lastType=m==`operator`&&(h==`++`||h==`--`)?`incdec`:m,E(t,n,m,h,e))},indent:function(t,a){if(t.tokenize==y||t.tokenize==b)return e.Pass;if(t.tokenize!=_)return 0;var o=a&&a.charAt(0),s=t.lexical,c;if(!/^\s*else\b/.test(a))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==z)s=s.prev;else if(u!=Re&&u!=L)break}for(;(s.type==`stat`||s.type==`form`)&&(o==`}`||(c=t.cc[t.cc.length-1])&&(c==G||c==ae)&&!/^[,\.=+\-*:?[\(]/.test(a));)s=s.prev;i&&s.type==`)`&&s.prev.type==`stat`&&(s=s.prev);var d=s.type,f=o==d;return d==`vardef`?s.indented+(t.lastType==`operator`||t.lastType==`,`?s.info.length+1:0):d==`form`&&o==`{`?s.indented:d==`form`?s.indented+r:d==`stat`?s.indented+(ot(t,a)?i||r:0):s.info==`switch`&&!f&&n.doubleIndentSwitch!=0?s.indented+(/^(?:case|default)\b/.test(a)?r:2*r):s.align?s.column+(f?0:1):s.indented+(f?0:r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:o?null:`/*`,blockCommentEnd:o?null:`*/`,blockCommentContinue:o?null:` * `,lineComment:o?null:`//`,fold:`brace`,closeBrackets:`()[]{}''""\`\``,helperType:o?`json`:`javascript`,jsonldMode:a,jsonMode:o,expressionAllowed:st,skipExpression:function(t){E(t,`atom`,`atom`,`true`,new e.StringStream(``,2,null))}}}),e.registerHelper(`wordChars`,`javascript`,/[\w$]/),e.defineMIME(`text/javascript`,`javascript`),e.defineMIME(`text/ecmascript`,`javascript`),e.defineMIME(`application/javascript`,`javascript`),e.defineMIME(`application/x-javascript`,`javascript`),e.defineMIME(`application/ecmascript`,`javascript`),e.defineMIME(`application/json`,{name:`javascript`,json:!0}),e.defineMIME(`application/x-json`,{name:`javascript`,json:!0}),e.defineMIME(`application/manifest+json`,{name:`javascript`,json:!0}),e.defineMIME(`application/ld+json`,{name:`javascript`,jsonld:!0}),e.defineMIME(`text/typescript`,{name:`javascript`,typescript:!0}),e.defineMIME(`application/typescript`,{name:`javascript`,typescript:!0})})})),St=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),bt(),xt(),$()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../xml/xml`,`../javascript/javascript`,`../css/css`],n):n(CodeMirror)})(function(e){var t={script:[[`lang`,/(javascript|babel)/i,`javascript`],[`type`,/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,`javascript`],[`type`,/./,`text/plain`],[null,null,`javascript`]],style:[[`lang`,/^css$/i,`css`],[`type`,/^(text\/)?(x-)?(stylesheet|css)$/i,`css`],[`type`,/./,`text/plain`],[null,null,`css`]]};function n(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}var r={};function i(e){return r[e]||(r[e]=RegExp(`\\s+`+e+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function a(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:``}function o(e,t){return RegExp((t?`^`:``)+`</\\s*`+e+`\\s*>`,`i`)}function s(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],a=i.length-1;a>=0;a--)r.unshift(i[a])}function c(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r[0]||r[1].test(a(t,r[0])))return r[2]}}e.defineMode(`htmlmixed`,function(r,i){var a=e.getMode(r,{name:`xml`,htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag,allowMissingTagName:i.allowMissingTagName}),l={},u=i&&i.tags,d=i&&i.scriptTypes;if(s(t,l),u&&s(u,l),d)for(var f=d.length-1;f>=0;f--)l.script.unshift([`type`,d[f].matches,d[f].mode]);function p(t,i){var s=a.token(t,i.htmlState),u=/\btag\b/.test(s),d;if(u&&!/[<>\s\/]/.test(t.current())&&(d=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(d))i.inTag=d+` `;else if(i.inTag&&u&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var m=t.current()==`>`&&c(l[f[1]],f[2]),h=e.getMode(r,m),g=o(f[1],!0),_=o(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=p,t.localState=t.localMode=null,null):n(e,_,t.localMode.token(e,t.localState))},i.localMode=h,i.localState=e.startState(h,a.indent(i.htmlState,``,``))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=` `));return s}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(a)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(a,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?a.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||a}}}},`xml`,`javascript`,`css`),e.defineMIME(`text/html`,`htmlmixed`)})})),Ct=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../lib/codemirror`],n):n(CodeMirror)})(function(e){e.modeInfo=[{name:`APL`,mime:`text/apl`,mode:`apl`,ext:[`dyalog`,`apl`]},{name:`PGP`,mimes:[`application/pgp`,`application/pgp-encrypted`,`application/pgp-keys`,`application/pgp-signature`],mode:`asciiarmor`,ext:[`asc`,`pgp`,`sig`]},{name:`ASN.1`,mime:`text/x-ttcn-asn`,mode:`asn.1`,ext:[`asn`,`asn1`]},{name:`Asterisk`,mime:`text/x-asterisk`,mode:`asterisk`,file:/^extensions\.conf$/i},{name:`Brainfuck`,mime:`text/x-brainfuck`,mode:`brainfuck`,ext:[`b`,`bf`]},{name:`C`,mime:`text/x-csrc`,mode:`clike`,ext:[`c`,`h`,`ino`]},{name:`C++`,mime:`text/x-c++src`,mode:`clike`,ext:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],alias:[`cpp`]},{name:`Cobol`,mime:`text/x-cobol`,mode:`cobol`,ext:[`cob`,`cpy`,`cbl`]},{name:`C#`,mime:`text/x-csharp`,mode:`clike`,ext:[`cs`],alias:[`csharp`,`cs`]},{name:`Clojure`,mime:`text/x-clojure`,mode:`clojure`,ext:[`clj`,`cljc`,`cljx`]},{name:`ClojureScript`,mime:`text/x-clojurescript`,mode:`clojure`,ext:[`cljs`]},{name:`Closure Stylesheets (GSS)`,mime:`text/x-gss`,mode:`css`,ext:[`gss`]},{name:`CMake`,mime:`text/x-cmake`,mode:`cmake`,ext:[`cmake`,`cmake.in`],file:/^CMakeLists\.txt$/},{name:`CoffeeScript`,mimes:[`application/vnd.coffeescript`,`text/coffeescript`,`text/x-coffeescript`],mode:`coffeescript`,ext:[`coffee`],alias:[`coffee`,`coffee-script`]},{name:`Common Lisp`,mime:`text/x-common-lisp`,mode:`commonlisp`,ext:[`cl`,`lisp`,`el`],alias:[`lisp`]},{name:`Cypher`,mime:`application/x-cypher-query`,mode:`cypher`,ext:[`cyp`,`cypher`]},{name:`Cython`,mime:`text/x-cython`,mode:`python`,ext:[`pyx`,`pxd`,`pxi`]},{name:`Crystal`,mime:`text/x-crystal`,mode:`crystal`,ext:[`cr`]},{name:`CSS`,mime:`text/css`,mode:`css`,ext:[`css`]},{name:`CQL`,mime:`text/x-cassandra`,mode:`sql`,ext:[`cql`]},{name:`D`,mime:`text/x-d`,mode:`d`,ext:[`d`]},{name:`Dart`,mimes:[`application/dart`,`text/x-dart`],mode:`dart`,ext:[`dart`]},{name:`diff`,mime:`text/x-diff`,mode:`diff`,ext:[`diff`,`patch`]},{name:`Django`,mime:`text/x-django`,mode:`django`},{name:`Dockerfile`,mime:`text/x-dockerfile`,mode:`dockerfile`,file:/^Dockerfile$/},{name:`DTD`,mime:`application/xml-dtd`,mode:`dtd`,ext:[`dtd`]},{name:`Dylan`,mime:`text/x-dylan`,mode:`dylan`,ext:[`dylan`,`dyl`,`intr`]},{name:`EBNF`,mime:`text/x-ebnf`,mode:`ebnf`},{name:`ECL`,mime:`text/x-ecl`,mode:`ecl`,ext:[`ecl`]},{name:`edn`,mime:`application/edn`,mode:`clojure`,ext:[`edn`]},{name:`Eiffel`,mime:`text/x-eiffel`,mode:`eiffel`,ext:[`e`]},{name:`Elm`,mime:`text/x-elm`,mode:`elm`,ext:[`elm`]},{name:`Embedded JavaScript`,mime:`application/x-ejs`,mode:`htmlembedded`,ext:[`ejs`]},{name:`Embedded Ruby`,mime:`application/x-erb`,mode:`htmlembedded`,ext:[`erb`]},{name:`Erlang`,mime:`text/x-erlang`,mode:`erlang`,ext:[`erl`]},{name:`Esper`,mime:`text/x-esper`,mode:`sql`},{name:`Factor`,mime:`text/x-factor`,mode:`factor`,ext:[`factor`]},{name:`FCL`,mime:`text/x-fcl`,mode:`fcl`},{name:`Forth`,mime:`text/x-forth`,mode:`forth`,ext:[`forth`,`fth`,`4th`]},{name:`Fortran`,mime:`text/x-fortran`,mode:`fortran`,ext:[`f`,`for`,`f77`,`f90`,`f95`]},{name:`F#`,mime:`text/x-fsharp`,mode:`mllike`,ext:[`fs`],alias:[`fsharp`]},{name:`Gas`,mime:`text/x-gas`,mode:`gas`,ext:[`s`]},{name:`Gherkin`,mime:`text/x-feature`,mode:`gherkin`,ext:[`feature`]},{name:`GitHub Flavored Markdown`,mime:`text/x-gfm`,mode:`gfm`,file:/^(readme|contributing|history)\.md$/i},{name:`Go`,mime:`text/x-go`,mode:`go`,ext:[`go`]},{name:`Groovy`,mime:`text/x-groovy`,mode:`groovy`,ext:[`groovy`,`gradle`],file:/^Jenkinsfile$/},{name:`HAML`,mime:`text/x-haml`,mode:`haml`,ext:[`haml`]},{name:`Haskell`,mime:`text/x-haskell`,mode:`haskell`,ext:[`hs`]},{name:`Haskell (Literate)`,mime:`text/x-literate-haskell`,mode:`haskell-literate`,ext:[`lhs`]},{name:`Haxe`,mime:`text/x-haxe`,mode:`haxe`,ext:[`hx`]},{name:`HXML`,mime:`text/x-hxml`,mode:`haxe`,ext:[`hxml`]},{name:`ASP.NET`,mime:`application/x-aspx`,mode:`htmlembedded`,ext:[`aspx`],alias:[`asp`,`aspx`]},{name:`HTML`,mime:`text/html`,mode:`htmlmixed`,ext:[`html`,`htm`,`handlebars`,`hbs`],alias:[`xhtml`]},{name:`HTTP`,mime:`message/http`,mode:`http`},{name:`IDL`,mime:`text/x-idl`,mode:`idl`,ext:[`pro`]},{name:`Pug`,mime:`text/x-pug`,mode:`pug`,ext:[`jade`,`pug`],alias:[`jade`]},{name:`Java`,mime:`text/x-java`,mode:`clike`,ext:[`java`]},{name:`Java Server Pages`,mime:`application/x-jsp`,mode:`htmlembedded`,ext:[`jsp`],alias:[`jsp`]},{name:`JavaScript`,mimes:[`text/javascript`,`text/ecmascript`,`application/javascript`,`application/x-javascript`,`application/ecmascript`],mode:`javascript`,ext:[`js`],alias:[`ecmascript`,`js`,`node`]},{name:`JSON`,mimes:[`application/json`,`application/x-json`],mode:`javascript`,ext:[`json`,`map`],alias:[`json5`]},{name:`JSON-LD`,mime:`application/ld+json`,mode:`javascript`,ext:[`jsonld`],alias:[`jsonld`]},{name:`JSX`,mime:`text/jsx`,mode:`jsx`,ext:[`jsx`]},{name:`Jinja2`,mime:`text/jinja2`,mode:`jinja2`,ext:[`j2`,`jinja`,`jinja2`]},{name:`Julia`,mime:`text/x-julia`,mode:`julia`,ext:[`jl`],alias:[`jl`]},{name:`Kotlin`,mime:`text/x-kotlin`,mode:`clike`,ext:[`kt`]},{name:`LESS`,mime:`text/x-less`,mode:`css`,ext:[`less`]},{name:`LiveScript`,mime:`text/x-livescript`,mode:`livescript`,ext:[`ls`],alias:[`ls`]},{name:`Lua`,mime:`text/x-lua`,mode:`lua`,ext:[`lua`]},{name:`Markdown`,mime:`text/x-markdown`,mode:`markdown`,ext:[`markdown`,`md`,`mkd`]},{name:`mIRC`,mime:`text/mirc`,mode:`mirc`},{name:`MariaDB SQL`,mime:`text/x-mariadb`,mode:`sql`},{name:`Mathematica`,mime:`text/x-mathematica`,mode:`mathematica`,ext:[`m`,`nb`,`wl`,`wls`]},{name:`Modelica`,mime:`text/x-modelica`,mode:`modelica`,ext:[`mo`]},{name:`MUMPS`,mime:`text/x-mumps`,mode:`mumps`,ext:[`mps`]},{name:`MS SQL`,mime:`text/x-mssql`,mode:`sql`},{name:`mbox`,mime:`application/mbox`,mode:`mbox`,ext:[`mbox`]},{name:`MySQL`,mime:`text/x-mysql`,mode:`sql`},{name:`Nginx`,mime:`text/x-nginx-conf`,mode:`nginx`,file:/nginx.*\.conf$/i},{name:`NSIS`,mime:`text/x-nsis`,mode:`nsis`,ext:[`nsh`,`nsi`]},{name:`NTriples`,mimes:[`application/n-triples`,`application/n-quads`,`text/n-triples`],mode:`ntriples`,ext:[`nt`,`nq`]},{name:`Objective-C`,mime:`text/x-objectivec`,mode:`clike`,ext:[`m`],alias:[`objective-c`,`objc`]},{name:`Objective-C++`,mime:`text/x-objectivec++`,mode:`clike`,ext:[`mm`],alias:[`objective-c++`,`objc++`]},{name:`OCaml`,mime:`text/x-ocaml`,mode:`mllike`,ext:[`ml`,`mli`,`mll`,`mly`]},{name:`Octave`,mime:`text/x-octave`,mode:`octave`,ext:[`m`]},{name:`Oz`,mime:`text/x-oz`,mode:`oz`,ext:[`oz`]},{name:`Pascal`,mime:`text/x-pascal`,mode:`pascal`,ext:[`p`,`pas`]},{name:`PEG.js`,mime:`null`,mode:`pegjs`,ext:[`jsonld`]},{name:`Perl`,mime:`text/x-perl`,mode:`perl`,ext:[`pl`,`pm`]},{name:`PHP`,mimes:[`text/x-php`,`application/x-httpd-php`,`application/x-httpd-php-open`],mode:`php`,ext:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`]},{name:`Pig`,mime:`text/x-pig`,mode:`pig`,ext:[`pig`]},{name:`Plain Text`,mime:`text/plain`,mode:`null`,ext:[`txt`,`text`,`conf`,`def`,`list`,`log`]},{name:`PLSQL`,mime:`text/x-plsql`,mode:`sql`,ext:[`pls`]},{name:`PostgreSQL`,mime:`text/x-pgsql`,mode:`sql`},{name:`PowerShell`,mime:`application/x-powershell`,mode:`powershell`,ext:[`ps1`,`psd1`,`psm1`]},{name:`Properties files`,mime:`text/x-properties`,mode:`properties`,ext:[`properties`,`ini`,`in`],alias:[`ini`,`properties`]},{name:`ProtoBuf`,mime:`text/x-protobuf`,mode:`protobuf`,ext:[`proto`]},{name:`Python`,mime:`text/x-python`,mode:`python`,ext:[`BUILD`,`bzl`,`py`,`pyw`],file:/^(BUCK|BUILD)$/},{name:`Puppet`,mime:`text/x-puppet`,mode:`puppet`,ext:[`pp`]},{name:`Q`,mime:`text/x-q`,mode:`q`,ext:[`q`]},{name:`R`,mime:`text/x-rsrc`,mode:`r`,ext:[`r`,`R`],alias:[`rscript`]},{name:`reStructuredText`,mime:`text/x-rst`,mode:`rst`,ext:[`rst`],alias:[`rst`]},{name:`RPM Changes`,mime:`text/x-rpm-changes`,mode:`rpm`},{name:`RPM Spec`,mime:`text/x-rpm-spec`,mode:`rpm`,ext:[`spec`]},{name:`Ruby`,mime:`text/x-ruby`,mode:`ruby`,ext:[`rb`],alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`]},{name:`Rust`,mime:`text/x-rustsrc`,mode:`rust`,ext:[`rs`]},{name:`SAS`,mime:`text/x-sas`,mode:`sas`,ext:[`sas`]},{name:`Sass`,mime:`text/x-sass`,mode:`sass`,ext:[`sass`]},{name:`Scala`,mime:`text/x-scala`,mode:`clike`,ext:[`scala`]},{name:`Scheme`,mime:`text/x-scheme`,mode:`scheme`,ext:[`scm`,`ss`]},{name:`SCSS`,mime:`text/x-scss`,mode:`css`,ext:[`scss`]},{name:`Shell`,mimes:[`text/x-sh`,`application/x-sh`],mode:`shell`,ext:[`sh`,`ksh`,`bash`],alias:[`bash`,`sh`,`zsh`],file:/^PKGBUILD$/},{name:`Sieve`,mime:`application/sieve`,mode:`sieve`,ext:[`siv`,`sieve`]},{name:`Slim`,mimes:[`text/x-slim`,`application/x-slim`],mode:`slim`,ext:[`slim`]},{name:`Smalltalk`,mime:`text/x-stsrc`,mode:`smalltalk`,ext:[`st`]},{name:`Smarty`,mime:`text/x-smarty`,mode:`smarty`,ext:[`tpl`]},{name:`Solr`,mime:`text/x-solr`,mode:`solr`},{name:`SML`,mime:`text/x-sml`,mode:`mllike`,ext:[`sml`,`sig`,`fun`,`smackspec`]},{name:`Soy`,mime:`text/x-soy`,mode:`soy`,ext:[`soy`],alias:[`closure template`]},{name:`SPARQL`,mime:`application/sparql-query`,mode:`sparql`,ext:[`rq`,`sparql`],alias:[`sparul`]},{name:`Spreadsheet`,mime:`text/x-spreadsheet`,mode:`spreadsheet`,alias:[`excel`,`formula`]},{name:`SQL`,mime:`text/x-sql`,mode:`sql`,ext:[`sql`]},{name:`SQLite`,mime:`text/x-sqlite`,mode:`sql`},{name:`Squirrel`,mime:`text/x-squirrel`,mode:`clike`,ext:[`nut`]},{name:`Stylus`,mime:`text/x-styl`,mode:`stylus`,ext:[`styl`]},{name:`Swift`,mime:`text/x-swift`,mode:`swift`,ext:[`swift`]},{name:`sTeX`,mime:`text/x-stex`,mode:`stex`},{name:`LaTeX`,mime:`text/x-latex`,mode:`stex`,ext:[`text`,`ltx`,`tex`],alias:[`tex`]},{name:`SystemVerilog`,mime:`text/x-systemverilog`,mode:`verilog`,ext:[`v`,`sv`,`svh`]},{name:`Tcl`,mime:`text/x-tcl`,mode:`tcl`,ext:[`tcl`]},{name:`Textile`,mime:`text/x-textile`,mode:`textile`,ext:[`textile`]},{name:`TiddlyWiki`,mime:`text/x-tiddlywiki`,mode:`tiddlywiki`},{name:`Tiki wiki`,mime:`text/tiki`,mode:`tiki`},{name:`TOML`,mime:`text/x-toml`,mode:`toml`,ext:[`toml`]},{name:`Tornado`,mime:`text/x-tornado`,mode:`tornado`},{name:`troff`,mime:`text/troff`,mode:`troff`,ext:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`]},{name:`TTCN`,mime:`text/x-ttcn`,mode:`ttcn`,ext:[`ttcn`,`ttcn3`,`ttcnpp`]},{name:`TTCN_CFG`,mime:`text/x-ttcn-cfg`,mode:`ttcn-cfg`,ext:[`cfg`]},{name:`Turtle`,mime:`text/turtle`,mode:`turtle`,ext:[`ttl`]},{name:`TypeScript`,mime:`application/typescript`,mode:`javascript`,ext:[`ts`],alias:[`ts`]},{name:`TypeScript-JSX`,mime:`text/typescript-jsx`,mode:`jsx`,ext:[`tsx`],alias:[`tsx`]},{name:`Twig`,mime:`text/x-twig`,mode:`twig`},{name:`Web IDL`,mime:`text/x-webidl`,mode:`webidl`,ext:[`webidl`]},{name:`VB.NET`,mime:`text/x-vb`,mode:`vb`,ext:[`vb`]},{name:`VBScript`,mime:`text/vbscript`,mode:`vbscript`,ext:[`vbs`]},{name:`Velocity`,mime:`text/velocity`,mode:`velocity`,ext:[`vtl`]},{name:`Verilog`,mime:`text/x-verilog`,mode:`verilog`,ext:[`v`]},{name:`VHDL`,mime:`text/x-vhdl`,mode:`vhdl`,ext:[`vhd`,`vhdl`]},{name:`Vue.js Component`,mimes:[`script/x-vue`,`text/x-vue`],mode:`vue`,ext:[`vue`]},{name:`XML`,mimes:[`application/xml`,`text/xml`],mode:`xml`,ext:[`xml`,`xsl`,`xsd`,`svg`],alias:[`rss`,`wsdl`,`xsd`]},{name:`XQuery`,mime:`application/xquery`,mode:`xquery`,ext:[`xy`,`xquery`]},{name:`Yacas`,mime:`text/x-yacas`,mode:`yacas`,ext:[`ys`]},{name:`YAML`,mimes:[`text/x-yaml`,`text/yaml`],mode:`yaml`,ext:[`yaml`,`yml`],alias:[`yml`]},{name:`Z80`,mime:`text/x-z80`,mode:`z80`,ext:[`z80`]},{name:`mscgen`,mime:`text/x-mscgen`,mode:`mscgen`,ext:[`mscgen`,`mscin`,`msc`]},{name:`xu`,mime:`text/x-xu`,mode:`mscgen`,ext:[`xu`]},{name:`msgenny`,mime:`text/x-msgenny`,mode:`mscgen`,ext:[`msgenny`]},{name:`WebAssembly`,mime:`text/webassembly`,mode:`wast`,ext:[`wat`,`wast`]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes){for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}}if(/\+xml$/.test(t))return e.findModeByMIME(`application/xml`);if(/\+json$/.test(t))return e.findModeByMIME(`application/json`)},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext){for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf(`.`),a=i>-1&&t.substring(i+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias){for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}})})),wt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),bt(),Ct()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../xml/xml`,`../meta`],n):n(CodeMirror)})(function(e){e.defineMode(`markdown`,function(t,n){var r=e.getMode(t,`text/html`),i=r.name==`null`;function a(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return i.name==`null`?null:i}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode=`text/plain`),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var o={header:`header`,code:`comment`,quote:`quote`,list1:`variable-2`,list2:`variable-3`,list3:`keyword`,hr:`hr`,image:`image`,imageAltText:`image-alt-text`,imageMarker:`image-marker`,formatting:`formatting`,linkInline:`link`,linkEmail:`link`,linkText:`link`,linkHref:`string`,em:`em`,strong:`strong`,strikethrough:`strikethrough`,emoji:`builtin`};for(var s in o)o.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(o[s]=n.tokenTypeOverrides[s]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,_=` `;function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function b(e){return!e||!/\S/.test(e.string)}function x(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==C){var n=i;if(!n){var a=e.innerMode(r,t.htmlState);n=a.mode.name==`xml`&&a.state.tagStart===null&&!a.state.context&&a.state.tokenize.isInText}n&&(t.f=D,t.block=S,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function S(t,r){var i=t.column()===r.indentation,s=b(r.prevLine.stream),p=r.indentedCode,g=r.prevLine.hr,_=r.list!==!1,y=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var x=r.indentation;if(r.indentationDiff===null&&(r.indentationDiff=r.indentation,_)){for(r.list=null;x<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;r.list!==!1&&(r.indentationDiff=x-r.listStack[r.listStack.length-1])}var S=!s&&!g&&!r.prevLine.header&&(!_||!p)&&!r.prevLine.fencedCodeEnd,C=(r.list===!1||g||s)&&r.indentation<=y&&t.match(c),E=null;if(r.indentationDiff>=4&&(p||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,o.code;if(t.eatSpace())return null;if(i&&r.indentation<=y&&(E=t.match(d))&&E[1].length<=6)return r.quote=0,r.header=E[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting=`header`),r.f=r.inline,T(r);if(r.indentation<=y&&t.eat(`>`))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting=`quote`),t.eatSpace(),T(r);if(!C&&!r.setext&&i&&r.indentation<=y&&(E=t.match(l))){var D=E[1]?`ol`:`ul`;return r.indentation=x+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=[`list`,`list-`+D]),T(r)}else if(i&&r.indentation<=y&&(E=t.match(m,!0)))return r.quote=0,r.fencedEndRE=RegExp(E[1]+`+ *$`),r.localMode=n.fencedCodeBlockHighlighting&&a(E[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=w,n.highlightFormatting&&(r.formatting=`code-block`),r.code=-1,T(r);else if(r.setext||(!S||!_)&&!r.quote&&r.list===!1&&!r.code&&!C&&!h.test(t.string)&&(E=t.lookAhead(1))&&(E=E.match(f)))return r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting=`header`)):(r.header=E[0].charAt(0)==`=`?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,T(r);else if(C)return t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr;else if(t.peek()===`[`)return v(t,r,M);return v(t,r,r.inline)}function C(t,n){var a=r.token(t,n.htmlState);if(!i){var o=e.innerMode(r,n.htmlState);(o.mode.name==`xml`&&o.state.tagStart===null&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(`>`)>-1)&&(n.f=D,n.block=S,n.htmlState=null)}return a}function w(e,t){var r=t.listStack[t.listStack.length-1]||0,i=t.indentation<r,a=r+3;if(t.fencedEndRE&&t.indentation<=a&&(i||e.match(t.fencedEndRE))){n.highlightFormatting&&(t.formatting=`code-block`);var s;return i||(s=T(t)),t.localMode=t.localState=null,t.block=S,t.f=D,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,i?y(e,t,t.block):s}else if(t.localMode)return t.localMode.token(e,t.localState);else return e.skipToEnd(),o.code}function T(e){var t=[];if(e.formatting){t.push(o.formatting),typeof e.formatting==`string`&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(o.formatting+`-`+e.formatting[r]),e.formatting[r]===`header`&&t.push(o.formatting+`-`+e.formatting[r]+`-`+e.header),e.formatting[r]===`quote`&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.formatting+`-`+e.formatting[r]+`-`+e.quote):t.push(`error`))}if(e.taskOpen)return t.push(`meta`),t.length?t.join(` `):null;if(e.taskClosed)return t.push(`property`),t.length?t.join(` `):null;if(e.linkHref?t.push(o.linkHref,`url`):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,`link`),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+`-`+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+`-`+e.quote):t.push(o.quote+`-`+n.maxBlockquoteDepth)),e.list!==!1){var i=(e.listStack.length-1)%3;i?i===1?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push(`trailing-space-new-line`):e.trailingSpace&&t.push(`trailing-space-`+(e.trailingSpace%2?`a`:`b`)),t.length?t.join(` `):null}function E(e,t){if(e.match(p,!0))return T(t)}function D(t,i){var a=i.text(t,i);if(a!==void 0)return a;if(i.list)return i.list=null,T(i);if(i.taskList)return t.match(u,!0)[1]===` `?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting=`task`),i.taskList=!1,T(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting=`header`),T(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;s===`(`&&(c=`)`),c=(c+``).replace(/([.?*+^\[\]\\(){}|-])/g,`\\$1`);var l=`^\\s*(?:[^`+c+`\\\\]+|\\\\\\\\|\\\\.)`+c;if(t.match(new RegExp(l),!0))return o.linkHref}if(s==="`"){var d=i.formatting;n.highlightFormatting&&(i.formatting=`code`),t.eatWhile("`");var f=t.current().length;if(i.code==0&&(!i.quote||f==1))return i.code=f,T(i);if(f==i.code){var p=T(i);return i.code=0,p}else return i.formatting=d,T(i)}else if(i.code)return T(i);if(s===`\\`&&(t.next(),n.highlightFormatting)){var m=T(i),h=o.formatting+`-escape`;return m?m+` `+h:h}if(s===`!`&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting=`image`),T(i);if(s===`[`&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting=`image`),T(i);if(s===`]`&&i.imageAltText){n.highlightFormatting&&(i.formatting=`image`);var m=T(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=k,m}if(s===`[`&&!i.image)return i.linkText&&t.match(/^.*?\]/)?T(i):(i.linkText=!0,n.highlightFormatting&&(i.formatting=`link`),T(i));if(s===`]`&&i.linkText){n.highlightFormatting&&(i.formatting=`link`);var m=T(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?k:D,m}if(s===`<`&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting=`link`);var m=T(i);return m?m+=` `:m=``,m+o.linkInline}if(s===`<`&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting=`link`);var m=T(i);return m?m+=` `:m=``,m+o.linkEmail}if(n.xml&&s===`<`&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var _=t.string.indexOf(`>`,t.pos);if(_!=-1){var v=t.string.substring(t.start,_);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),y(t,i,C)}if(n.xml&&s===`<`&&t.match(/^\/\w*?>/))return i.md_inside=!1,`tag`;if(s===`*`||s===`_`){for(var b=1,x=t.pos==1?` `:t.string.charAt(t.pos-2);b<3&&t.eat(s);)b++;var S=t.peek()||` `,w=!/\s/.test(S)&&(!g.test(S)||/\s/.test(x)||g.test(x)),E=!/\s/.test(x)&&(!g.test(x)||/\s/.test(S)||g.test(S)),A=null,j=null;if(b%2&&(!i.em&&w&&(s===`*`||!E||g.test(x))?A=!0:i.em==s&&E&&(s===`*`||!w||g.test(S))&&(A=!1)),b>1&&(!i.strong&&w&&(s===`*`||!E||g.test(x))?j=!0:i.strong==s&&E&&(s===`*`||!w||g.test(S))&&(j=!1)),j!=null||A!=null){n.highlightFormatting&&(i.formatting=A==null?`strong`:j==null?`em`:`strong em`),A===!0&&(i.em=s),j===!0&&(i.strong=s);var p=T(i);return A===!1&&(i.em=!1),j===!1&&(i.strong=!1),p}}else if(s===` `&&(t.eat(`*`)||t.eat(`_`))){if(t.peek()===` `)return T(i);t.backUp(1)}if(n.strikethrough){if(s===`~`&&t.eatWhile(s)){if(i.strikethrough){n.highlightFormatting&&(i.formatting=`strikethrough`);var p=T(i);return i.strikethrough=!1,p}else if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting=`strikethrough`),T(i)}else if(s===` `&&t.match(`~~`,!0)){if(t.peek()===` `)return T(i);t.backUp(2)}}if(n.emoji&&s===`:`&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting=`emoji`);var M=T(i);return i.emoji=!1,M}return s===` `&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),T(i)}function O(e,t){if(e.next()===`>`){t.f=t.inline=D,n.highlightFormatting&&(t.formatting=`link`);var r=T(t);return r?r+=` `:r=``,r+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function k(e,t){if(e.eatSpace())return null;var r=e.next();return r===`(`||r===`[`?(t.f=t.inline=j(r===`(`?`)`:`]`),n.highlightFormatting&&(t.formatting=`link-string`),t.linkHref=!0,T(t)):`error`}var A={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function j(e){return function(t,r){if(t.next()===e){r.f=r.inline=D,n.highlightFormatting&&(r.formatting=`link-string`);var i=T(r);return r.linkHref=!1,i}return t.match(A[e]),r.linkHref=!0,T(r)}}function M(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=ee,e.next(),n.highlightFormatting&&(t.formatting=`link`),t.linkText=!0,T(t)):v(e,t,D)}function ee(e,t){if(e.match(`]:`,!0)){t.f=t.inline=N,n.highlightFormatting&&(t.formatting=`link`);var r=T(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),e.peek()===void 0?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=D,o.linkHref+` url`)}var P={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:D,text:E,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return x(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,_).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:P}},indent:function(t,n,i){return t.block==C&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:x,getType:T,blockCommentStart:`<!--`,blockCommentEnd:`-->`,closeBrackets:`()[]{}''""\`\``,fold:`markdown`};return P},`xml`),e.defineMIME(`text/markdown`,`markdown`),e.defineMIME(`text/x-markdown`,`markdown`)})})),Tt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),xt(),$(),St()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../javascript/javascript`,`../css/css`,`../htmlmixed/htmlmixed`],n):n(CodeMirror)})(function(e){e.defineMode(`pug`,function(t){var n=`keyword`,r=`meta`,i=`builtin`,a=`qualifier`,o={"{":`}`,"(":`)`,"[":`]`},s=e.getMode(t,`javascript`);function c(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(s),this.restOfLine=``,this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag=``,this.scriptType=``,this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue=``,this.indentOf=1/0,this.indentToken=``,this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}c.prototype.copy=function(){var t=new c;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(s,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t};function l(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&e.peek()===`:`){t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1;return}var n=s.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}function u(e,t){if(t.javaScriptArguments){if(t.javaScriptArgumentsDepth===0&&e.peek()!==`(`){t.javaScriptArguments=!1;return}if(e.peek()===`(`?t.javaScriptArgumentsDepth++:e.peek()===`)`&&t.javaScriptArgumentsDepth--,t.javaScriptArgumentsDepth===0){t.javaScriptArguments=!1;return}return s.token(e,t.jsState)||!0}}function d(e){if(e.match(/^yield\b/))return`keyword`}function f(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return r}function p(e,t){if(e.match(`#{`))return t.isInterpolating=!0,t.interpolationNesting=0,`punctuation`}function m(e,t){if(t.isInterpolating){if(e.peek()===`}`){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,`punctuation`}else e.peek()===`{`&&t.interpolationNesting++;return s.token(e,t.jsState)||!0}}function h(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}function g(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}function _(e){if(e.match(/^default\b/))return n}function v(e,t){if(e.match(/^extends?\b/))return t.restOfLine=`string`,n}function y(e,t){if(e.match(/^append\b/))return t.restOfLine=`variable`,n}function b(e,t){if(e.match(/^prepend\b/))return t.restOfLine=`variable`,n}function x(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine=`variable`,n}function S(e,t){if(e.match(/^include\b/))return t.restOfLine=`string`,n}function C(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match(`include`))return t.isIncludeFiltered=!0,n}function w(e,t){if(t.isIncludeFiltered){var n=ee(e,t);return t.isIncludeFiltered=!1,t.restOfLine=`string`,n}}function T(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}function E(e,t){if(e.match(/^\+([-\w]+)/))return e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),`variable`;if(e.match(`+#{`,!1))return e.next(),t.mixinCallAfter=!0,p(e,t)}function D(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}function O(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}function k(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}function A(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return`variable`}}}function j(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}function M(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),t.lastTag===`script`&&(t.scriptType=`application/javascript`),`tag`}function ee(n,r){if(n.match(/^:([\w\-]+)/)){var i;return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||=n.current().substring(1),typeof i==`string`&&(i=e.getMode(t,i)),re(n,r,i),`atom`}}function N(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,`punctuation`}function P(e){if(e.match(/^#([\w-]+)/))return i}function F(e){if(e.match(/^\.([\w-]+)/))return a}function I(e,t){if(e.peek()==`(`)return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue=``,t.attributeIsType=!1,`punctuation`}function te(t,n){if(n.isAttrs){if(o[t.peek()]&&n.attrsNest.push(o[t.peek()]),n.attrsNest[n.attrsNest.length-1]===t.peek())n.attrsNest.pop();else if(t.eat(`)`))return n.isAttrs=!1,`punctuation`;if(n.inAttributeName&&t.match(/^[^=,\)!]+/))return(t.peek()===`=`||t.peek()===`!`)&&(n.inAttributeName=!1,n.jsState=e.startState(s),n.lastTag===`script`&&t.current().trim().toLowerCase()===`type`?n.attributeIsType=!0:n.attributeIsType=!1),`attribute`;var r=s.token(t,n.jsState);if(n.attributeIsType&&r===`string`&&(n.scriptType=t.current().toString()),n.attrsNest.length===0&&(r===`string`||r===`variable`||r===`keyword`))try{return Function(``,`var x `+n.attrValue.replace(/,\s*$/,``).replace(/^!/,``)),n.inAttributeName=!0,n.attrValue=``,t.backUp(t.current().length),te(t,n)}catch{}return n.attrValue+=t.current(),r||!0}}function L(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,`keyword`}function R(e){if(e.sol()&&e.eatSpace())return`indent`}function z(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken=`comment`,`comment`}function B(e){if(e.match(/^: */))return`colon`}function V(e,t){if(e.match(/^(?:\| ?| )([^\n]+)/))return`string`;if(e.match(/^(<[^\n]*)/,!1))return re(e,t,`htmlmixed`),t.innerModeForLine=!0,U(e,t,!0)}function ne(e,t){if(e.eat(`.`)){var n=null;return t.lastTag===`script`&&t.scriptType.toLowerCase().indexOf(`javascript`)!=-1?n=t.scriptType.toLowerCase().replace(/"|'/g,``):t.lastTag===`style`&&(n=`css`),re(e,t,n),`dot`}}function H(e){return e.next(),null}function re(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&i.name!==`null`?r.innerMode=i:r.indentToken=`string`}function U(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{},t.hideFirstChars(n.indentOf+2,function(){return n.innerMode.token(t,n.innerState)||!0})):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}function W(e,t){if(e.sol()&&(t.restOfLine=``),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine=``,n}}function ie(){return new c}function G(e){return e.copy()}function ae(e,t){var n=U(e,t)||W(e,t)||m(e,t)||w(e,t)||A(e,t)||te(e,t)||l(e,t)||u(e,t)||D(e,t)||d(e)||f(e)||p(e,t)||h(e,t)||g(e,t)||_(e)||v(e,t)||y(e,t)||b(e,t)||x(e,t)||S(e,t)||C(e,t)||T(e,t)||E(e,t)||O(e,t)||k(e,t)||j(e,t)||M(e,t)||ee(e,t)||N(e,t)||P(e)||F(e)||I(e,t)||L(e,t)||R(e)||V(e,t)||z(e,t)||B(e)||ne(e,t)||H(e);return n===!0?null:n}return{startState:ie,copyState:G,token:ae}},`javascript`,`css`,`htmlmixed`),e.defineMIME(`text/x-pug`,`pug`),e.defineMIME(`text/x-jade`,`pug`)})})),Et=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),$()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../css/css`],n):n(CodeMirror)})(function(e){e.defineMode(`sass`,function(t){var n=e.mimeModes[`text/css`],r=n.propertyKeywords||{},i=n.colorKeywords||{},a=n.valueKeywords||{},o=n.fontProperties||{};function s(e){return RegExp(`^`+e.join(`|`))}var c=RegExp(`^`+[`true`,`false`,`null`,`auto`].join(`|`)),l=s([`\\(`,`\\)`,`=`,`>`,`<`,`==`,`>=`,`<=`,`\\+`,`-`,`\\!=`,`/`,`\\*`,`%`,`and`,`or`,`not`,`;`,`\\{`,`\\}`,`:`]),u=/^::?[a-zA-Z_][\w\-]*/,d;function f(e){return!e.peek()||e.match(/\s+$/,!1)}function p(e,t){var n=e.peek();return n===`)`?(e.next(),t.tokenizer=y,`operator`):n===`(`?(e.next(),e.eatSpace(),`operator`):n===`'`||n===`"`?(t.tokenizer=h(e.next()),`string`):(t.tokenizer=h(`)`,!1),`string`)}function m(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=y,y(n,r)):(t&&n.skipTo(`*/`)?(n.next(),n.next(),r.tokenizer=y):n.skipToEnd(),`comment`)}}function h(e,t){t??=!0;function n(r,i){var a=r.next(),o=r.peek(),s=r.string.charAt(r.pos-2);return a!==`\\`&&o===e||a===e&&s!==`\\`?(a!==e&&t&&r.next(),f(r)&&(i.cursorHalf=0),i.tokenizer=y,`string`):a===`#`&&o===`{`?(i.tokenizer=g(n),r.next(),`operator`):`string`}return n}function g(e){return function(t,n){return t.peek()===`}`?(t.next(),n.tokenizer=e,`operator`):y(t,n)}}function _(e){if(e.indentCount==0){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function v(e){e.scopes.length!=1&&e.scopes.shift()}function y(e,t){var n=e.peek();if(e.match(`/*`))return t.tokenizer=m(e.indentation(),!0),t.tokenizer(e,t);if(e.match(`//`))return t.tokenizer=m(e.indentation(),!1),t.tokenizer(e,t);if(e.match(`#{`))return t.tokenizer=g(y),`operator`;if(n===`"`||n===`'`)return e.next(),t.tokenizer=h(n),`string`;if(t.cursorHalf){if(n===`#`&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||e.match(/^-?[0-9\.]+/))return f(e)&&(t.cursorHalf=0),`number`;if(e.match(/^(px|em|in)\b/))return f(e)&&(t.cursorHalf=0),`unit`;if(e.match(c))return f(e)&&(t.cursorHalf=0),`keyword`;if(e.match(/^url/)&&e.peek()===`(`)return t.tokenizer=p,f(e)&&(t.cursorHalf=0),`atom`;if(n===`$`)return e.next(),e.eatWhile(/[\w-]/),f(e)&&(t.cursorHalf=0),`variable-2`;if(n===`!`)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?`keyword`:`operator`;if(e.match(l))return f(e)&&(t.cursorHalf=0),`operator`;if(e.eatWhile(/[\w-]/))return f(e)&&(t.cursorHalf=0),d=e.current().toLowerCase(),a.hasOwnProperty(d)?`atom`:i.hasOwnProperty(d)?`keyword`:r.hasOwnProperty(d)?(t.prevProp=e.current().toLowerCase(),`property`):`tag`;if(f(e))return t.cursorHalf=0,null}else{if(n===`-`&&e.match(/^-\w+-/))return`meta`;if(n===`.`){if(e.next(),e.match(/^[\w-]+/))return _(t),`qualifier`;if(e.peek()===`#`)return _(t),`tag`}if(n===`#`){if(e.next(),e.match(/^[\w-]+/))return _(t),`builtin`;if(e.peek()===`#`)return _(t),`tag`}if(n===`$`)return e.next(),e.eatWhile(/[\w-]/),`variable-2`;if(e.match(/^-?[0-9\.]+/))return`number`;if(e.match(/^(px|em|in)\b/))return`unit`;if(e.match(c))return`keyword`;if(e.match(/^url/)&&e.peek()===`(`)return t.tokenizer=p,`atom`;if(n===`=`&&e.match(/^=[\w-]+/))return _(t),`meta`;if(n===`+`&&e.match(/^\+[\w-]+/))return`variable-3`;if(n===`@`&&e.match(`@extend`)&&(e.match(/\s*[\w]/)||v(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return _(t),`def`;if(n===`@`)return e.next(),e.eatWhile(/[\w-]/),`def`;if(e.eatWhile(/[\w-]/))if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){d=e.current().toLowerCase();var s=t.prevProp+`-`+d;return r.hasOwnProperty(s)?`property`:r.hasOwnProperty(d)?(t.prevProp=d,`property`):o.hasOwnProperty(d)?`property`:`tag`}else if(e.match(/ *:/,!1))return _(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),`property`;else if(e.match(/ *,/,!1))return`tag`;else return _(t),`tag`;if(n===`:`)return e.match(u)?`variable-3`:(e.next(),t.cursorHalf=1,`operator`)}return e.match(l)?`operator`:(e.next(),null)}function b(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if((i===`@return`||i===`}`)&&v(n),r!==null){for(var a=e.pos-i.length+t.indentUnit*n.indentCount,o=[],s=0;s<n.scopes.length;s++){var c=n.scopes[s];c.offset<=a&&o.push(c)}n.scopes=o}return r}return{startState:function(){return{tokenizer:y,scopes:[{offset:0,type:`sass`}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){var n=b(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e){return e.scopes[0].offset},blockCommentStart:`/*`,blockCommentEnd:`*/`,lineComment:`//`,fold:`indent`}},`css`),e.defineMIME(`text/x-sass`,`sass`)})})),Dt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),i.overlayCur==null?i.baseCur:i.baseCur!=null&&i.overlay.combineTokens||r&&i.overlay.combineTokens==null?i.baseCur+` `+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,a;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(a=n.blankLine(e.overlay)),a==null?i:r&&i!=null?i+` `+a:a}}}})})),Ot=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`coffeescript`,function(e,t){var n=`error`;function r(e){return RegExp(`^((`+e.join(`)|(`)+`))\\b`)}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,c=r([`and`,`or`,`not`,`is`,`isnt`,`in`,`instanceof`,`typeof`]),l=[`for`,`while`,`loop`,`if`,`unless`,`else`,`switch`,`try`,`catch`,`finally`,`class`],u=r(l.concat([`break`,`by`,`continue`,`debugger`,`delete`,`do`,`in`,`of`,`new`,`return`,`then`,`this`,`@`,`throw`,`when`,`until`,`extends`]));l=r(l);var d=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,p=r([`Infinity`,`NaN`,`undefined`,`null`,`true`,`false`,`on`,`off`,`yes`,`no`]);function m(e,t){if(e.sol()){t.scope.align===null&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var l=e.indentation();return l>r&&t.scope.type==`coffee`?`indent`:l<r?`dedent`:null}else r>0&&v(e,t)}if(e.eatSpace())return null;var m=e.peek();if(e.match(`####`))return e.skipToEnd(),`comment`;if(e.match(`###`))return t.tokenize=g,t.tokenize(e,t);if(m===`#`)return e.skipToEnd(),`comment`;if(e.match(/^-?[0-9\.]/,!1)){var _=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(_=!0),e.match(/^-?\d+\.\d*/)&&(_=!0),e.match(/^-?\.\d+/)&&(_=!0),_)return e.peek()==`.`&&e.backUp(1),`number`;var y=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(y=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^-?0(?![\dx])/i)&&(y=!0),y)return`number`}if(e.match(d))return t.tokenize=h(e.current(),!1,`string`),t.tokenize(e,t);if(e.match(f)){if(e.current()!=`/`||e.match(/^.*\//,!1))return t.tokenize=h(e.current(),!0,`string-2`),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(c)?`operator`:e.match(a)?`punctuation`:e.match(p)?`atom`:e.match(s)||t.prop&&e.match(o)?`property`:e.match(u)?`keyword`:e.match(o)?`variable`:(e.next(),n)}function h(e,r,i){return function(a,o){for(;!a.eol();)if(a.eatWhile(/[^'"\/\\]/),a.eat(`\\`)){if(a.next(),r&&a.eol())return i}else if(a.match(e))return o.tokenize=m,i;else a.eat(/['"\/]/);return r&&(t.singleLineStringErrors?i=n:o.tokenize=m),i}}function g(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match(`###`)){t.tokenize=m;break}e.eatWhile(`#`)}return`comment`}function _(t,n,r){r||=`coffee`;for(var i=0,a=!1,o=null,s=n.scope;s;s=s.prev)if(s.type===`coffee`||s.type==`}`){i=s.offset+e.indentUnit;break}r===`coffee`?n.scope.align&&(n.scope.align=!1):(a=null,o=t.column()+t.current().length),n.scope={offset:i,type:r,prev:n.scope,align:a,alignOffset:o}}function v(e,t){if(t.scope.prev)if(t.scope.type===`coffee`){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}else return t.scope=t.scope.prev,!1}function y(e,t){var r=t.tokenize(e,t),i=e.current();i===`return`&&(t.dedent=!0),((i===`->`||i===`=>`)&&e.eol()||r===`indent`)&&_(e,t);var a=`[({`.indexOf(i);if(a!==-1&&_(e,t,`])}`.slice(a,a+1)),l.exec(i)&&_(e,t),i==`then`&&v(e,t),r===`dedent`&&v(e,t))return n;if(a=`])}`.indexOf(i),a!==-1){for(;t.scope.type==`coffee`&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&(t.scope.type==`coffee`&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}return{startState:function(e){return{tokenize:m,scope:{offset:e||0,type:`coffee`,prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=t.scope.align===null&&t.scope;n&&e.sol()&&(n.align=!1);var r=y(e,t);return r&&r!=`comment`&&(n&&(n.align=!0),t.prop=r==`punctuation`&&e.current()==`.`),r},indent:function(e,t){if(e.tokenize!=m)return 0;var n=e.scope,r=t&&`])}`.indexOf(t.charAt(0))>-1;if(r)for(;n.type==`coffee`&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:`#`,fold:`indent`}}),e.defineMIME(`application/vnd.coffeescript`,`coffeescript`),e.defineMIME(`text/x-coffeescript`,`coffeescript`),e.defineMIME(`text/coffeescript`,`coffeescript`)})})),kt=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`],n):n(CodeMirror)})(function(e){e.defineMode(`stylus`,function(e){for(var p=e.indentUnit,_=``,v=h(t),y=/^(a|b|i|s|col|em)$/i,b=h(a),x=h(o),S=h(l),C=h(c),w=h(n),T=m(n),E=h(i),D=h(r),O=h(s),k=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,A=m(u),j=h(d),M=new RegExp(/^\-(moz|ms|o|webkit)-/i),ee=h(f),N=``,P={},F,I,te,L;_.length<p;)_+=` `;function R(e,t){if(N=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=N?N[0].replace(/^\s*/,``):``,t.context.line.indent=e.indentation(),F=e.peek(),e.match(`//`))return e.skipToEnd(),[`comment`,`comment`];if(e.match(`/*`))return t.tokenize=z,z(e,t);if(F==`"`||F==`'`)return e.next(),t.tokenize=B(F),t.tokenize(e,t);if(F==`@`)return e.next(),e.eatWhile(/[\w\\-]/),[`def`,e.current()];if(F==`#`){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return[`atom`,`atom`];if(e.match(/^[a-z][\w-]*/i))return[`builtin`,`hash`]}return e.match(M)?[`meta`,`vendor-prefixes`]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),[`number`,`unit`]):F==`!`?(e.next(),[e.match(/^(important|optional)/i)?`keyword`:`operator`,`important`]):F==`.`&&e.match(/^\.[a-z][\w-]*/i)?[`qualifier`,`qualifier`]:e.match(T)?(e.peek()==`(`&&(t.tokenize=V),[`property`,`word`]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),[`keyword`,`mixin`]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),[`keyword`,`block-mixin`]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?[`qualifier`,`qualifier`]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),[`variable-3`,`reference`]):e.match(/^&{1}\s*$/)?[`variable-3`,`reference`]:e.match(A)?[`operator`,`operator`]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!ie(e.current())?(e.match(`.`),[`variable-2`,`variable-name`]):[`variable-2`,`word`]:e.match(k)?[`operator`,e.current()]:/[:;,{}\[\]\(\)]/.test(F)?(e.next(),[null,F]):(e.next(),[null,null])}function z(e,t){for(var n=!1,r;(r=e.next())!=null;){if(n&&r==`/`){t.tokenize=null;break}n=r==`*`}return[`comment`,`comment`]}function B(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){e==`)`&&t.backUp(1);break}r=!r&&i==`\\`}return(i==e||!r&&e!=`)`)&&(n.tokenize=null),[`string`,`string`]}}function V(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=B(`)`),[null,`(`]}function ne(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:``,indent:0}}function H(e,t,n,r){return r=r>=0?r:p,e.context=new ne(n,t.indentation()+r,e.context),n}function re(e,t){var n=e.context.indent-p;return t||=!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function U(e,t,n){return P[n.context.type](e,t,n)}function W(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return U(e,t,n)}function ie(e){return e.toLowerCase()in v}function G(e){return e=e.toLowerCase(),e in b||e in O}function ae(e){return e.toLowerCase()in j}function oe(e){return e.toLowerCase().match(M)}function se(e){var t=e.toLowerCase(),n=`variable-2`;return ie(e)?n=`tag`:ae(e)?n=`block-keyword`:G(e)?n=`property`:t in S||t in ee?n=`atom`:t==`return`||t in C?n=`keyword`:e.match(/^[A-Z]/)&&(n=`string`),n}function K(e,t){return de(t)&&(e==`{`||e==`]`||e==`hash`||e==`qualifier`)||e==`block-mixin`}function ce(e,t){return e==`{`&&t.match(/^\s*\$?[\w-]+/i,!1)}function le(e,t){return e==`:`&&t.match(/^[a-z-]+/,!1)}function ue(e){return e.sol()||e.string.match(RegExp(`^\\s*`+g(e.current())))}function de(e){return e.eol()||e.match(/^\s*$/,!1)}function fe(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n=typeof e==`string`?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,``):``}return P.block=function(e,t,n){if(e==`comment`&&ue(t)||e==`,`&&de(t)||e==`mixin`)return H(n,t,`block`,0);if(ce(e,t))return H(n,t,`interpolation`);if(de(t)&&e==`]`&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!ie(fe(t)))return H(n,t,`block`,0);if(K(e,t))return H(n,t,`block`);if(e==`}`&&de(t))return H(n,t,`block`,0);if(e==`variable-name`)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||ae(fe(t))?H(n,t,`variableName`):H(n,t,`variableName`,0);if(e==`=`)return!de(t)&&!ae(fe(t))?H(n,t,`block`,0):H(n,t,`block`);if(e==`*`&&(de(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return L=`tag`,H(n,t,`block`);if(le(e,t))return H(n,t,`pseudo`);if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return H(n,t,de(t)?`block`:`atBlock`);if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return H(n,t,`keyframes`);if(/@extends?/.test(e))return H(n,t,`extend`,0);if(e&&e.charAt(0)==`@`)return t.indentation()>0&&G(t.current().slice(1))?(L=`variable-2`,`block`):/(@import|@require|@charset)/.test(e)?H(n,t,`block`,0):H(n,t,`block`);if(e==`reference`&&de(t))return H(n,t,`block`);if(e==`(`)return H(n,t,`parens`);if(e==`vendor-prefixes`)return H(n,t,`vendorPrefixes`);if(e==`word`){var r=t.current();if(L=se(r),L==`property`)return ue(t)?H(n,t,`block`,0):(L=`atom`,`block`);if(L==`tag`){if(/embed|menu|pre|progress|sub|table/.test(r)&&G(fe(t))||t.string.match(RegExp(`\\[\\s*`+r+`|`+r+`\\s*\\]`)))return L=`atom`,`block`;if(y.test(r)&&(ue(t)&&t.string.match(/=/)||!ue(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!ie(fe(t))))return L=`variable-2`,ae(fe(t))?`block`:H(n,t,`block`,0);if(de(t))return H(n,t,`block`)}if(L==`block-keyword`)return L=`keyword`,t.current(/(if|unless)/)&&!ue(t)?`block`:H(n,t,`block`);if(r==`return`)return H(n,t,`block`,0);if(L==`variable-2`&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return H(n,t,`block`)}return n.context.type},P.parens=function(e,t,n){if(e==`(`)return H(n,t,`parens`);if(e==`)`)return n.context.prev.type==`parens`?re(n):t.string.match(/^[a-z][\w-]*\(/i)&&de(t)||ae(fe(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(fe(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&ie(fe(t))?H(n,t,`block`):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?H(n,t,`block`,0):de(t)?H(n,t,`block`):H(n,t,`block`,0);if(e&&e.charAt(0)==`@`&&G(t.current().slice(1))&&(L=`variable-2`),e==`word`){var r=t.current();L=se(r),L==`tag`&&y.test(r)&&(L=`variable-2`),(L==`property`||r==`to`)&&(L=`atom`)}return e==`variable-name`?H(n,t,`variableName`):le(e,t)?H(n,t,`pseudo`):n.context.type},P.vendorPrefixes=function(e,t,n){return e==`word`?(L=`property`,H(n,t,`block`,0)):re(n)},P.pseudo=function(e,t,n){return G(fe(t.string))?W(e,t,n):(t.match(/^[a-z-]+/),L=`variable-3`,de(t)?H(n,t,`block`):re(n))},P.atBlock=function(e,t,n){if(e==`(`)return H(n,t,`atBlock_parens`);if(K(e,t))return H(n,t,`block`);if(ce(e,t))return H(n,t,`interpolation`);if(e==`word`){var r=t.current().toLowerCase();if(L=/^(only|not|and|or)$/.test(r)?`keyword`:w.hasOwnProperty(r)?`tag`:D.hasOwnProperty(r)?`attribute`:E.hasOwnProperty(r)?`property`:x.hasOwnProperty(r)?`string-2`:se(t.current()),L==`tag`&&de(t))return H(n,t,`block`)}return e==`operator`&&/^(not|and|or)$/.test(t.current())&&(L=`keyword`),n.context.type},P.atBlock_parens=function(e,t,n){if(e==`{`||e==`}`)return n.context.type;if(e==`)`)return de(t)?H(n,t,`block`):H(n,t,`atBlock`);if(e==`word`){var r=t.current().toLowerCase();return L=se(r),/^(max|min)/.test(r)&&(L=`property`),L==`tag`&&(L=y.test(r)?`variable-2`:`atom`),n.context.type}return P.atBlock(e,t,n)},P.keyframes=function(e,t,n){return t.indentation()==`0`&&(e==`}`&&ue(t)||e==`]`||e==`hash`||e==`qualifier`||ie(t.current()))?W(e,t,n):e==`{`?H(n,t,`keyframes`):e==`}`?ue(t)?re(n,!0):H(n,t,`keyframes`):e==`unit`&&/^[0-9]+\%$/.test(t.current())?H(n,t,`keyframes`):e==`word`&&(L=se(t.current()),L==`block-keyword`)?(L=`keyword`,H(n,t,`keyframes`)):/@(font-face|media|supports|(-moz-)?document)/.test(e)?H(n,t,de(t)?`block`:`atBlock`):e==`mixin`?H(n,t,`block`,0):n.context.type},P.interpolation=function(e,t,n){return e==`{`&&re(n)&&H(n,t,`block`),e==`}`?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&ie(fe(t))?H(n,t,`block`):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?H(n,t,`block`,0):H(n,t,`block`):e==`variable-name`?H(n,t,`variableName`,0):(e==`word`&&(L=se(t.current()),L==`tag`&&(L=`atom`)),n.context.type)},P.extend=function(e,t,n){return e==`[`||e==`=`?`extend`:e==`]`?re(n):e==`word`?(L=se(t.current()),`extend`):re(n)},P.variableName=function(e,t,n){return e==`string`||e==`[`||e==`]`||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(L=`variable-2`),`variableName`):W(e,t,n)},{startState:function(e){return{tokenize:null,state:`block`,context:new ne(`block`,e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:(I=(t.tokenize||R)(e,t),I&&typeof I==`object`&&(te=I[1],I=I[0]),L=I,t.state=P[t.state](te,e,t),L)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),a=r.indent,o=fe(t),s=n.match(/^\s*/)[0].replace(/\t/g,_).length,c=e.context.prev?e.context.prev.line.firstWord:``,l=e.context.prev?e.context.prev.line.indent:s;return r.prev&&(i==`}`&&(r.type==`block`||r.type==`atBlock`||r.type==`keyframes`)||i==`)`&&(r.type==`parens`||r.type==`atBlock_parens`)||i==`{`&&r.type==`at`)?a=r.indent-p:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(c)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||ae(o)?a=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||ie(o)?a=/\,\s*$/.test(c)?l:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(c)||ie(c))?s<=l?l:l+p:s:!/,\s*$/.test(n)&&(oe(o)||G(o))&&(a=ae(c)?s<=l?l:l+p:/^\{/.test(c)?s<=l?s:l+p:oe(c)||G(c)?s>=l?l:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(c)||/=\s*$/.test(c)||ie(c)||/^\$[\w-\.\[\]\'\"]/.test(c)?l+p:s)),a},electricChars:`}`,blockCommentStart:`/*`,blockCommentEnd:`*/`,blockCommentContinue:` * `,lineComment:`//`,fold:`indent`}});var t=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.bgsound.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.nobr.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.track.u.ul.var.video`.split(`.`),n=[`domain`,`regexp`,`url-prefix`,`url`],r=[`all`,`aural`,`braille`,`handheld`,`print`,`projection`,`screen`,`tty`,`tv`,`embossed`],i=`width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.dynamic-range.video-dynamic-range`.split(`.`),a=`align-content.align-items.align-self.alignment-adjust.alignment-baseline.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backface-visibility.background.background-attachment.background-clip.background-color.background-image.background-origin.background-position.background-repeat.background-size.baseline-shift.binding.bleed.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-feature-settings.font-family.font-kerning.font-language-override.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-weight.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-position.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.justify-content.left.letter-spacing.line-break.line-height.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marker-offset.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.max-height.max-width.min-height.min-width.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotation.rotation-point.ruby-align.ruby-overhang.ruby-position.ruby-span.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-outline.text-overflow.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.unicode-bidi.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode.font-smoothing.osx-font-smoothing`.split(`.`),o=[`scrollbar-arrow-color`,`scrollbar-base-color`,`scrollbar-dark-shadow-color`,`scrollbar-face-color`,`scrollbar-highlight-color`,`scrollbar-shadow-color`,`scrollbar-3d-light-color`,`scrollbar-track-color`,`shape-inside`,`searchfield-cancel-button`,`searchfield-decoration`,`searchfield-results-button`,`searchfield-results-decoration`,`zoom`],s=[`font-family`,`src`,`unicode-range`,`font-variant`,`font-feature-settings`,`font-stretch`,`font-weight`,`font-style`],c=`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`),l=`above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.avoid.avoid-column.avoid-page.avoid-region.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.column.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.dashed.decimal.decimal-leading-zero.default.default-button.destination-atop.destination-in.destination-out.destination-over.devanagari.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fixed.flat.flex.footnotes.forwards.from.geometricPrecision.georgian.graytext.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hebrew.help.hidden.hide.high.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.malayalam.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row-resize.rtl.run-in.running.s-resize.sans-serif.scale.scale3d.scaleX.scaleY.scaleZ.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.semi-condensed.semi-expanded.separate.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.solid.somali.source-atop.source-in.source-out.source-over.space.spell-out.square.square-button.standard.start.static.status-bar.stretch.stroke.sub.subpixel-antialiased.super.sw-resize.symbolic.symbols.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.x-large.x-small.xor.xx-large.xx-small.bicubic.optimizespeed.grayscale.row.row-reverse.wrap.wrap-reverse.column-reverse.flex-start.flex-end.space-between.space-around.unset`.split(`.`),u=[`in`,`and`,`or`,`not`,`is not`,`is a`,`is`,`isnt`,`defined`,`if unless`],d=[`for`,`if`,`else`,`unless`,`from`,`to`],f=[`null`,`true`,`false`,`href`,`title`,`type`,`not-allowed`,`readonly`,`disabled`],p=t.concat(n,r,i,a,o,c,l,s,u,d,f,[`@font-face`,`@keyframes`,`@media`,`@viewport`,`@page`,`@host`,`@supports`,`@block`,`@css`]);function m(e){return e=e.sort(function(e,t){return t>e}),RegExp(`^((`+e.join(`)|(`)+`))\\b`)}function h(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function g(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}e.registerHelper(`hintWords`,`stylus`,p),e.defineMIME(`text/x-styl`,`stylus`)})})),At=Xe(((e,t)=>{(function(n){typeof e==`object`&&typeof t==`object`?n(Q(),Dt(),bt(),xt(),Ot(),$(),Et(),kt(),Tt(),yt()):typeof define==`function`&&define.amd?define([`../../lib/codemirror`,`../../addon/mode/overlay`,`../xml/xml`,`../javascript/javascript`,`../coffeescript/coffeescript`,`../css/css`,`../sass/sass`,`../stylus/stylus`,`../pug/pug`,`../handlebars/handlebars`],n):n(CodeMirror)})(function(e){var t={script:[[`lang`,/coffee(script)?/,`coffeescript`],[`type`,/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,`coffeescript`],[`lang`,/^babel$/,`javascript`],[`type`,/^text\/babel$/,`javascript`],[`type`,/^text\/ecmascript-\d+$/,`javascript`]],style:[[`lang`,/^stylus$/i,`stylus`],[`lang`,/^sass$/i,`sass`],[`lang`,/^less$/i,`text/x-less`],[`lang`,/^scss$/i,`text/x-scss`],[`type`,/^(text\/)?(x-)?styl(us)?$/i,`stylus`],[`type`,/^text\/sass/i,`sass`],[`type`,/^(text\/)?(x-)?scss$/i,`text/x-scss`],[`type`,/^(text\/)?(x-)?less$/i,`text/x-less`]],template:[[`lang`,/^vue-template$/i,`vue`],[`lang`,/^pug$/i,`pug`],[`lang`,/^handlebars$/i,`handlebars`],[`type`,/^(text\/)?(x-)?pug$/i,`pug`],[`type`,/^text\/x-handlebars-template$/i,`handlebars`],[null,null,`vue-template`]]};e.defineMode(`vue-template`,function(t,n){return e.overlayMode(e.getMode(t,n.backdrop||`text/html`),{token:function(e){if(e.match(/^\{\{.*?\}\}/))return`meta mustache`;for(;e.next()&&!e.match(`{{`,!1););return null}})}),e.defineMode(`vue`,function(n){return e.getMode(n,{name:`htmlmixed`,tags:t})},`htmlmixed`,`xml`,`javascript`,`coffeescript`,`css`,`sass`,`stylus`,`pug`,`handlebars`),e.defineMIME(`script/x-vue`,`vue`),e.defineMIME(`text/x-vue`,`vue`)})}));$(),yt(),St(),xt(),wt(),Tt(),Et(),At(),bt();function jt(e,t,n={}){let r=(0,pt.default)(e.value,{theme:`vars`,value:t.value,...n}),i=!1;return r.on(`change`,()=>{if(i){i=!1;return}t.value=r.getValue()}),p(t,e=>{if(e!==r.getValue()){i=!0;let t=r.listSelections();r.replaceRange(e,r.posFromIndex(0),r.posFromIndex(1/0)),r.setSelections(t),r.scrollTo(0,0)}},{immediate:!0}),r}function Mt(e,t){let n=e.getScrollInfo(),r=t.getScrollInfo(),i=(r.width-r.clientWidth)/(n.width-n.clientWidth)*n.left,a=(r.height-r.clientHeight)/(n.height-n.clientHeight)*n.top;i=Number.isNaN(i)?0:i,a=Number.isNaN(a)?0:a,t.scrollTo(i,a)}function Nt(e,t){let n=1;e.getWrapperElement().addEventListener(`mouseenter`,()=>{n=1}),t.getWrapperElement().addEventListener(`mouseenter`,()=>{n=2}),e.on(`scroll`,e=>{n===1&&Mt(e,t)}),e.on(`scrollCursorIntoView`,e=>Mt(e,t)),t.on(`scroll`,t=>{n===2&&Mt(t,e)}),t.on(`scrollCursorIntoView`,t=>Mt(t,e))}function Pt(e){return e.trimStart().startsWith(`<`)?`htmlmixed`:e.match(/^import\s/)?`javascript`:e.match(/^[.#].+\{/)?`css`:`javascript`}var Ft=F({__name:`Viewer`,props:{code:{}},setup(e){let{code:t}=f(e),r,i=l(`codeEl`);return n(()=>{r=jt(i,t,{mode:`javascript`,readOnly:!0,lineNumbers:!0}),fe(()=>{r.setOption(`lineWrapping`,Y.value.codeviewerLineWrap)})}),(e,t)=>(h(),G(`div`,{ref_key:`codeEl`,ref:i},null,512))}}),It=Object.assign(Ft,{__name:`CodeViewer`}),Lt={flex:``,px2:``},Rt={"overflow-hidden":``,"text-ellipsis":``},zt={"overflow-hidden":``,"text-ellipsis":``},Bt=[`d`],Vt=20,Ht=F({__name:`AssetRelationships`,props:{importers:{},imports:{}},setup(e){let t=e,r={width:400,height:35,padding:4,marginX:8,border:1,margin:8,dot:16,dotOffset:80},i=l(`container`),a=y([]),o=R(()=>Math.min(Math.max(t.importers?.length||0,t.imports?.length||0),Vt)),s=R(()=>Math.min(t.importers?.length||0,Vt)),c=R(()=>Math.min(t.imports?.length||0,Vt)),u=R(()=>r.height*o.value+r.padding*(o.value+1)+r.border*2),d=R(()=>{let e=Math.max(0,c.value-s.value)*(r.height+r.padding)/2;return Math.min(e,u.value/2)}),f=R(()=>{let e=Math.max(0,s.value-c.value)*(r.height+r.padding)/2;return Math.min(e,u.value/2)}),m=R(()=>`${u.value/2-r.dot/2}px ${r.dotOffset}px 0 ${t.importers?.length?r.dotOffset:0}px`),_=R(()=>t.importers?.length?r.width+r.marginX:r.marginX),v=R(()=>t.importers?.length?_.value+r.dotOffset:_.value),b=R(()=>(r.height*o.value+(o.value+1)*r.padding)/2);function x(e){switch(e){case`importer-start`:return _.value;case`importer-end`:return v.value;case`import-start`:return v.value+r.dot;case`import-end`:return t.importers?.length?_.value+r.dotOffset*2+r.dot:_.value+r.dotOffset+r.dot}}function S(e,t){switch(e){case`importer-start`:return(r.height+r.padding)*t+(r.height/2+r.padding)+d.value;case`import-end`:return(r.height+r.padding)*t+(r.height/2+r.padding)+f.value;case`importer-end`:case`import-start`:return b.value}}function C(){if(a.value=[],t.importers?.length){let e=Array.from({length:s.value},(e,t)=>({id:`importer-${t}`,source:{x:x(`importer-start`),y:S(`importer-start`,t)},target:{x:x(`importer-end`),y:S(`importer-end`)}}));a.value.push(...e)}if(t.imports?.length){let e=Array.from({length:c.value},(e,t)=>({id:`import-${t}`,source:{x:x(`import-start`),y:S(`import-start`)},target:{x:x(`import-end`),y:S(`import-end`,t)}}));a.value.push(...e)}}return n(()=>{p(()=>[t.importers,t.imports],C,{immediate:!0})}),(t,n)=>{let o=ye,s=pe;return e.importers?.length||e.imports?.length?(h(),G(`div`,{key:0,ref_key:`container`,ref:i,"w-full":``,relative:``,"select-none":``},[U(`div`,Lt,[e.importers?.length?(h(),G(`div`,{key:0,py1:``,style:H({width:`${r.width}px`,marginTop:`${d.value}px`})},[(h(!0),G(j,null,M(e.importers,(t,n)=>(h(),T(s,{key:t.filename,to:{query:{asset:t.filename}},hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"z-graph-node":``,border:`~ base rounded`,"font-mono":``,"text-sm":``,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===e.importers.length-1?0:r.padding}px`,display:`flex`,alignItems:`center`,gap:`0.25rem`})},{default:g(()=>[B(o,{filename:t.filename},null,8,[`filename`]),U(`span`,Rt,A(t.filename),1)]),_:2},1032,[`to`,`style`]))),128))],4)):N(``,!0),U(`div`,{"bg-base":``,"rounded-full":``,"border-3":``,"font-mono":``,"border-active":``,"flex-shrink-0":``,style:H({margin:m.value,width:`${r.dot}px`,height:`${r.dot}px`})},null,4),e.imports?.length?(h(),G(`div`,{key:1,py1:``,style:H({width:`${r.width}px`,marginTop:`${f.value}px`})},[(h(!0),G(j,null,M(e.imports,(t,n)=>(h(),T(s,{key:t.filename,to:{query:{asset:t.filename}},hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"z-graph-node":``,border:`~ base rounded`,"font-mono":``,"text-sm":``,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===e.imports.length-1?0:r.padding}px`,display:`flex`,alignItems:`center`,gap:`0.25rem`})},{default:g(()=>[B(o,{filename:t.filename},null,8,[`filename`]),U(`span`,zt,A(t.filename),1)]),_:2},1032,[`to`,`style`]))),128))],4)):N(``,!0)]),(h(),G(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,"w-full":``,style:H({height:`${u.value}px`})},[U(`g`,null,[(h(!0),G(j,null,M(a.value,e=>(h(),G(`path`,{key:e.id,d:D(je)(e),class:W(D(Me)(e)),fill:`none`},null,10,Bt))),128))])],4))],512)):N(``,!0)}}}),Ut=Object.assign(Ht,{__name:`DataAssetRelationships`}),Wt={flex:`~ col gap-3`},Gt={flex:`~ gap-4 items-center wrap`},Kt={flex:`~ gap-2 items-center`},qt={flex:`~ gap-2`},Jt={flex:`~ gap-2 items-center`},Yt={class:`w-full of-auto px2 py1`,border:`~ base rounded-lg`},Xt={key:1,flex:`~ col gap-4`},Zt={flex:`~ col gap-2`},Qt={key:0,flex:`~ col gap-2`},$t={key:2,flex:`~ col gap-1`},en={key:0,flex:`~ items-center gap-2`},tn=F({__name:`AssetDetails`,props:{session:{},asset:{},chunks:{},importers:{},imports:{},lazy:{type:Boolean,default:!1}},setup(t){let n=t,r=ue(),i=_(),a=c(!1),{state:o}=w(async()=>{if(!n.lazy)return;let e=await r.value.$call(`vite:rolldown:get-asset-details`,{session:n.session.id,id:n.asset.filename});return`chunk`in e?{chunks:[{...e?.chunk,type:`chunk`}],importers:e?.importers,imports:e?.imports}:{chunks:[],importers:[],imports:[]}},null),s=R(()=>n.lazy?o.value?.chunks:n.chunks?.filter(e=>e.chunk_id===n.asset.chunk_id)),l=R(()=>n.lazy?o.value?.importers:n.importers),u=R(()=>n.lazy?o.value?.imports:n.imports);function d(){r.value.$call(`vite:core:open-in-editor`,`${n.session.meta.dir}/${n.asset.filename}`)}return(n,r)=>{let o=Ee,c=be,f=Z,p=X,m=It,_=ke,v=pe,y=Ut;return h(),G(`div`,Wt,[U(`div`,Gt,[U(`div`,Kt,[r[3]||=U(`div`,{"i-catppuccin-java-class-abstract":``},null,-1),U(`div`,null,A(t.asset.filename),1),B(o,{bytes:t.asset.size,"text-sm":``},null,8,[`bytes`]),B(c,{text:t.asset.type},null,8,[`text`])]),r[6]||=U(`div`,{"flex-auto":``},null,-1),U(`div`,qt,[U(`button`,{"btn-action":``,onClick:d},[...r[4]||=[U(`div`,{"i-ph-arrow-square-out-duotone":``},null,-1),O(` Open in editor `,-1)]]),U(`button`,{"btn-action":``,onClick:r[0]||=e=>a.value=!0},[...r[5]||=[U(`div`,{"i-ph-file-text":``},null,-1),O(` View source `,-1)]]),e(n.$slots,`default`)])]),a.value?(h(),G(j,{key:0},[U(`div`,Jt,[r[7]||=U(`div`,{op50:``},` Source `,-1),r[8]||=U(`span`,{"flex-auto":``},null,-1),B(f,{title:`Line Wrapping`,"class-icon":`i-ph-arrow-u-down-left-duotone`,active:D(Y).codeviewerLineWrap,onClick:r[1]||=e=>D(Y).codeviewerLineWrap=!D(Y).codeviewerLineWrap},null,8,[`active`]),B(p,{onClick:r[2]||=e=>a.value=!1})]),U(`div`,Yt,[B(m,{code:t.asset.content},null,8,[`code`])])],64)):N(``,!0),s.value&&s.value.length>0?(h(),G(`div`,Xt,[U(`div`,Zt,[r[9]||=U(`div`,{op50:``},` Chunks `,-1),(h(!0),G(j,null,M(s.value,e=>(h(),T(v,{key:e.chunk_id,border:`~ base rounded-lg`,px2:``,py1:``,"min-w-fit":``,to:{path:D(i).path,query:{chunk:e.chunk_id}}},{default:g(()=>[B(_,{chunk:e,session:t.session,"show-modules":!1,"show-imports":!1},null,8,[`chunk`,`session`])]),_:2},1032,[`to`]))),128))]),l.value?.length||u.value?.length?(h(),G(`div`,Qt,[r[10]||=U(`div`,{op50:``},` Asset Relationships `,-1),B(y,{importers:l.value,imports:u.value},null,8,[`importers`,`imports`])])):N(``,!0)])):(h(),G(`div`,$t,[r[13]||=U(`div`,{op50:``},` [Non-Module Asset] `,-1),t.asset.filename.endsWith(`.map`)?(h(),G(`div`,en,[r[11]||=U(`span`,{op50:``},`Source Map for`,-1),r[12]||=O(),B(c,{text:JSON.parse(t.asset.content).file},null,8,[`text`])])):N(``,!0)]))])}}}),nn=Object.assign(tn,{__name:`DataAssetDetails`}),rn=Symbol(`Comlink.proxy`),an=Symbol(`Comlink.endpoint`),on=Symbol(`Comlink.releaseProxy`),sn=Symbol(`Comlink.finalizer`),cn=Symbol(`Comlink.thrown`),ln=e=>typeof e==`object`&&!!e||typeof e==`function`,un=new Map([[`proxy`,{canHandle:e=>ln(e)&&e[rn],serialize(e){let{port1:t,port2:n}=new MessageChannel;return fn(e,t),[n,[n]]},deserialize(e){return e.start(),hn(e)}}],[`throw`,{canHandle:e=>ln(e)&&cn in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(Error(e.value.message),e.value):e.value}}]]);function dn(e,t){for(let n of e)if(t===n||n===`*`||n instanceof RegExp&&n.test(t))return!0;return!1}function fn(e,t=globalThis,n=[`*`]){t.addEventListener(`message`,function r(i){if(!i||!i.data)return;if(!dn(n,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}let{id:a,type:o,path:s}=Object.assign({path:[]},i.data),c=(i.data.argumentList||[]).map(kn),l;try{let t=s.slice(0,-1).reduce((e,t)=>e[t],e),n=s.reduce((e,t)=>e[t],e);switch(o){case`GET`:l=n;break;case`SET`:t[s.slice(-1)[0]]=kn(i.data.value),l=!0;break;case`APPLY`:l=n.apply(t,c);break;case`CONSTRUCT`:l=Dn(new n(...c));break;case`ENDPOINT`:{let{port1:t,port2:n}=new MessageChannel;fn(e,n),l=En(t,[t])}break;case`RELEASE`:l=void 0;break;default:return}}catch(e){l={value:e,[cn]:0}}Promise.resolve(l).catch(e=>({value:e,[cn]:0})).then(n=>{let[i,s]=On(n);t.postMessage(Object.assign(Object.assign({},i),{id:a}),s),o===`RELEASE`&&(t.removeEventListener(`message`,r),mn(t),sn in e&&typeof e[sn]==`function`&&e[sn]())}).catch(e=>{let[n,r]=On({value:TypeError(`Unserializable return value`),[cn]:0});t.postMessage(Object.assign(Object.assign({},n),{id:a}),r)})}),t.start&&t.start()}function pn(e){return e.constructor.name===`MessagePort`}function mn(e){pn(e)&&e.close()}function hn(e,t){let n=new Map;return e.addEventListener(`message`,function(e){let{data:t}=e;if(!t||!t.id)return;let r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),Sn(e,n,[],t)}function gn(e){if(e)throw Error(`Proxy has been released and is not useable`)}function _n(e){return An(e,new Map,{type:`RELEASE`}).then(()=>{mn(e)})}var vn=new WeakMap,yn=`FinalizationRegistry`in globalThis&&new FinalizationRegistry(e=>{let t=(vn.get(e)||0)-1;vn.set(e,t),t===0&&_n(e)});function bn(e,t){let n=(vn.get(t)||0)+1;vn.set(t,n),yn&&yn.register(e,t,e)}function xn(e){yn&&yn.unregister(e)}function Sn(e,t,n=[],r=function(){}){let i=!1,a=new Proxy(r,{get(r,o){if(gn(i),o===on)return()=>{xn(a),_n(e),t.clear(),i=!0};if(o===`then`){if(n.length===0)return{then:()=>a};let r=An(e,t,{type:`GET`,path:n.map(e=>e.toString())}).then(kn);return r.then.bind(r)}return Sn(e,t,[...n,o])},set(r,a,o){gn(i);let[s,c]=On(o);return An(e,t,{type:`SET`,path:[...n,a].map(e=>e.toString()),value:s},c).then(kn)},apply(r,a,o){gn(i);let s=n[n.length-1];if(s===an)return An(e,t,{type:`ENDPOINT`}).then(kn);if(s===`bind`)return Sn(e,t,n.slice(0,-1));let[c,l]=wn(o);return An(e,t,{type:`APPLY`,path:n.map(e=>e.toString()),argumentList:c},l).then(kn)},construct(r,a){gn(i);let[o,s]=wn(a);return An(e,t,{type:`CONSTRUCT`,path:n.map(e=>e.toString()),argumentList:o},s).then(kn)}});return bn(a,e),a}function Cn(e){return Array.prototype.concat.apply([],e)}function wn(e){let t=e.map(On);return[t.map(e=>e[0]),Cn(t.map(e=>e[1]))]}var Tn=new WeakMap;function En(e,t){return Tn.set(e,t),e}function Dn(e){return Object.assign(e,{[rn]:!0})}function On(e){for(let[t,n]of un)if(n.canHandle(e)){let[r,i]=n.serialize(e);return[{type:`HANDLER`,name:t,value:r},i]}return[{type:`RAW`,value:e},Tn.get(e)||[]]}function kn(e){switch(e.type){case`HANDLER`:return un.get(e.name).deserialize(e.value);case`RAW`:return e.value}}function An(e,t,n,r){return new Promise(i=>{let a=jn();t.set(a,i),e.start&&e.start(),e.postMessage(Object.assign({id:a},n),r)})}function jn(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*(2**53-1)).toString(16)).join(`-`)}var Mn;async function Nn(e,t){return Mn||=hn(new Worker(new URL(``+new URL(`diff.worker-DCsgdfuV.js`,import.meta.url).href,``+import.meta.url),{type:`module`})),await Mn.calculateDiff(e,t)}var Pn=F({__name:`DiffEditor`,props:{from:{},to:{},oneColumn:{type:Boolean},diff:{type:Boolean}},setup(e){let t=e,{from:r,to:i}=f(t),a=l(`fromEl`),s=l(`toEl`),c,u;n(()=>{c=jt(a,r,{mode:`javascript`,readOnly:!0,lineNumbers:!0}),u=jt(s,i,{mode:`javascript`,readOnly:!0,lineNumbers:!0}),Nt(c,u),fe(()=>{c.setOption(`lineWrapping`,Y.value.codeviewerLineWrap),u.setOption(`lineWrapping`,Y.value.codeviewerLineWrap)}),fe(async()=>{c.getWrapperElement().style.display=t.oneColumn?`none`:``,t.oneColumn||(await le(),c.refresh(),Mt(u,c))}),fe(async()=>{let e=r.value,n=i.value,a=t.diff;c.setOption(`mode`,Pt(e)),u.setOption(`mode`,Pt(n)),await le(),c.startOperation(),u.startOperation(),c.getAllMarks().forEach(e=>e.clear()),u.getAllMarks().forEach(e=>e.clear());for(let e=0;e<c.lineCount()+2;e++)c.removeLineClass(e,`background`,`diff-removed`);for(let e=0;e<u.lineCount()+2;e++)u.removeLineClass(e,`background`,`diff-added`);if(a&&r.value){let t=await Nn(e,n),r=new Set,i=new Set,a=0,o=0;t.forEach(([e,t])=>{if(e===1){let e=u.posFromIndex(o);o+=t.length;let n=u.posFromIndex(o);u.markText(e,n,{className:`diff-added-inline`});for(let t=e.line;t<=n.line;t++)r.add(t)}else if(e===-1){let e=c.posFromIndex(a);a+=t.length;let n=c.posFromIndex(a);c.markText(e,n,{className:`diff-removed-inline`});for(let t=e.line;t<=n.line;t++)i.add(t)}else a+=t.length,o+=t.length}),Array.from(i).forEach(e=>c.addLineClass(e,`background`,`diff-removed`)),Array.from(r).forEach(e=>u.addLineClass(e,`background`,`diff-added`))}c.endOperation(),u.endOperation()})});let d=R(()=>t.oneColumn?0:Y.value.codeviewerDiffPanelSize);function p(e){c?.refresh(),u?.refresh(),!t.oneColumn&&(Y.value.codeviewerDiffPanelSize=e)}return(t,n)=>(h(),T(D(ct),{onResize:n[0]||=e=>p(e.prevPane.size)},{default:g(()=>[o(B(D(lt),{"min-size":`10`,size:d.value},{default:g(()=>[U(`div`,{ref_key:`fromEl`,ref:a,"h-inherit":``},null,512)]),_:1},8,[`size`]),[[te,!e.oneColumn]]),B(D(lt),{"min-size":`10`,size:100-d.value},{default:g(()=>[U(`div`,{ref_key:`toEl`,ref:s,"h-inherit":``},null,512)]),_:1},8,[`size`])]),_:1}))}}),Fn=Object.assign(Pn,{__name:`CodeDiffEditor`}),In={key:0,p4:``,"h-full":``,"of-auto":``,style:{"overscroll-behavior":`contain`}},Ln={key:1,p4:``,"h-full":``,"of-auto":``,style:{"overscroll-behavior":`contain`}},Rn={pl4:``,p2:``,"font-mono":``,border:`b base`,flex:`~ items-center gap-2`},zn={key:0,op50:``,"text-xs":``},Bn={key:3,op50:``,italic:``,ma:``},Vn=F({__name:`ModuleFlowDetails`,props:{selected:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=R(()=>!n.selected||!(`type`in n.selected)?null:n.selected.type===`transform`?{type:`transform`,plugin_name:n.selected.plugin_name,from:n.selected.content_from,to:n.selected.content_to}:n.selected.type===`load`?{type:`load`,from:``,plugin_name:n.selected.plugin_name,to:n.selected.content}:null);function a(){r(`close`)}return(t,n)=>{let r=ke,o=nn,s=Z,c=X,l=Fn;return h(),G(`div`,{"bg-glass":``,"w-full":``,"h-full":``,class:W(i.value?.from&&i.value?.to?``:`border-dashed`),border:`~ base rounded-lg`,"of-hidden":``,flex:`~ col`},[e.selected?.type===`chunk`?(h(),G(`div`,In,[B(r,{chunk:e.selected,session:e.session},null,8,[`chunk`,`session`])])):e.selected?.type===`asset`?(h(),G(`div`,Ln,[B(o,{asset:e.selected,session:e.session,lazy:!0},null,8,[`asset`,`session`])])):i.value?.from&&i.value?.to?(h(),G(j,{key:2},[U(`div`,Rn,[B(Ne,{name:i.value?.plugin_name??``},null,8,[`name`]),i.value?.type?(h(),G(`span`,zn,A(i.value?.type===`load`?`Load`:`Transform`),1)):N(``,!0),n[1]||=U(`div`,{"flex-auto":``},null,-1),B(s,{title:`Line Wrapping`,"class-icon":`i-ph-arrow-u-down-left-duotone`,active:D(Y).codeviewerLineWrap,onClick:n[0]||=e=>D(Y).codeviewerLineWrap=!D(Y).codeviewerLineWrap},null,8,[`active`]),B(c,{onClick:re(a,[`stop`])})]),B(l,{from:i.value?.from??``,to:i.value?.to??``,diff:!0,"one-column":!1},null,8,[`from`,`to`])],64)):(h(),G(`span`,Bn,` No data `))],2)}}}),Hn=Object.assign(Vn,{__name:`FlowmapModuleFlowDetails`}),Un={flex:`~ col`,relative:``},Wn=F({__name:`Node`,props:de({lines:{},classNodeInline:{},classNodeOuter:{},classNodeInner:{},classLineTop:{},classLineBottom:{},active:{type:Boolean}},{expanded:{type:Boolean,required:!1,default:!0},expandedModifiers:{}}),emits:[`update:expanded`],setup(t){let n=t,r=i(t,`expanded`);return(i,a)=>(h(),G(`div`,Un,[n.lines?.top?(h(),G(`div`,{key:0,absolute:``,"top-0":``,"left-10":``,border:`r`,h:`1/2`,"max-h-4":``,"z-flowmap-line":``,class:W([t.active?`border-flow-line-active`:`border-flow-line`,n.classLineTop]),style:H(typeof n.lines?.top==`number`?`height: ${n.lines.top}px`:``)},null,6)):N(``,!0),n.lines?.bottom?(h(),G(`div`,{key:1,absolute:``,"bottom-0":``,"left-10":``,border:`r`,h:`1/2`,"max-h-4":``,"z-flowmap-line":``,class:W([t.active?`border-flow-line-active`:`border-flow-line`,n.classLineBottom]),style:H(typeof n.lines?.bottom==`number`?`height: ${n.lines.bottom}px`:``)},null,6)):N(``,!0),e(i.$slots,`before`),U(`div`,{flex:`~`,"w-max":``,class:W([n.classNodeInline,`flowmap-node-inline`])},[e(i.$slots,`inline-before`),U(`div`,{class:W([n.classNodeOuter,t.active?`border-flow-active`:`border-flow`]),border:`~ rounded-2xl`,"bg-base":``,"of-hidden":``,"cursor-pointer":``,onClick:a[0]||=e=>r.value=!r.value},[e(i.$slots,`inner`,{},()=>[U(`div`,{px3:``,py1:``,class:W(n.classNodeInner),flex:`~ inline gap-2 items-center`},[e(i.$slots,`content`)],2)])],2),e(i.$slots,`inline-after`)],2),e(i.$slots,`after`)]))}}),Gn=Object.assign(Wn,{__name:`FlowmapNode`});const Kn=y(!1);ie(window,[`pointerup`,`pointercancel`,`pointerleave`],()=>{Kn.value=!1});var qn={key:0,pl10:``},Jn={op50:``},Yn={key:1,pl10:``},Xn={op50:``},Zn={key:0,"text-xs":``,op25:``},Qn={key:1},$n={"font-mono":``,"text-xs":``,flex:`~ gap-1 items-center`},er={"text-green":``},tr={"text-red":``},nr={flex:`~ gap-2 items-center`},rr=F({__name:`NodeModuleInfo`,props:{item:{},session:{},active:{type:Boolean}},emits:[`select`,`toggleShowAll`],setup(t,{emit:n}){let r=t,i=n,a=R(()=>{switch(r.item.type){case`transform`:return r.item.content_from===r.item.content_to;case`load`:return r.item.content==null;default:return!1}});function o(){Kn.value&&i(`select`,r.item)}function s(){i(`select`,r.item),Kn.value=!0}let c=R(()=>{if(r.item.type!==`resolve`)return;let e=r.item.importer;return r.session.modulesList.find(t=>t.id===e)});return(n,r)=>{let l=J,u=Ne,d=xe,f=Gn;return t.item.type===`no_changes_collapsed`?(h(),G(`div`,qn,[U(`div`,{flex:`~ gap-2 items-center`,"text-sm":``,border:`l`,py1:``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},[U(`div`,{"w-2":``,"h-2":``,border:`4`,"rounded-full":``,"ml--1":``,"translate-x--0.5px":``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},null,2),U(`span`,Jn,A(t.item.count)+` plugins did not change the content but cost`,1),B(l,{duration:t.item.duration,color:!0,factor:5,"text-xs":``},null,8,[`duration`]),r[3]||=U(`span`,{op50:``,"flex-shrink-0":``},`in total`,-1),U(`button`,{border:`~ base rounded-full`,px2:``,"py-px":``,op50:``,hover:`op100`,onClick:r[0]||=e=>i(`toggleShowAll`,t.item)},` Expand `)],2)])):t.item.type===`no_changes_hide`?(h(),G(`div`,Yn,[U(`div`,{flex:`~ gap-2 items-center`,"text-sm":``,border:`l`,py1:``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},[U(`div`,{"w-2":``,"h-2":``,border:`4`,"rounded-full":``,"ml--1":``,"translate-x--0.5px":``,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},null,2),U(`span`,Xn,A(t.item.count)+` plugins did not change the content but cost`,1),B(l,{duration:t.item.duration,color:!0,factor:5,"text-xs":``},null,8,[`duration`]),r[4]||=U(`span`,{op50:``,"flex-shrink-0":``},`in total`,-1),U(`button`,{border:`~ base rounded-full`,px2:``,"py-px":``,op50:``,hover:`op100`,onClick:r[1]||=e=>i(`toggleShowAll`,t.item)},` Hide `)],2)])):(h(),T(f,{key:2,lines:{top:!0},"class-node-outer":a.value?`border-dashed`:``,active:t.active,"class-node-inline":`gap-2 items-center`,pl6:``,onPointerenter:o},E({inner:g(()=>[U(`button`,{px3:``,py1:``,hover:`bg-active`,flex:`~ inline gap-2 items-center`,onClick:r[2]||=e=>i(`select`,t.item),onPointerdown:s},[e(n.$slots,`button`,{},()=>[`plugin_name`in t.item?(h(),T(u,{key:0,class:W([a.value?`op50`:``,`font-mono text-sm ws-nowrap`]),name:t.item.plugin_name},null,8,[`class`,`name`])):N(``,!0)])],32)]),"inline-after":g(()=>[`duration`in t.item?(h(),T(l,{key:0,duration:t.item.duration,color:!0,factor:5,"text-xs":``,"flex-shrink-0":``},null,8,[`duration`])):N(``,!0),t.item.type===`transform`?(h(),G(j,{key:1},[t.item.content_from===t.item.content_to?(h(),G(`div`,Zn,` no changes `)):(h(),G(`div`,Qn,[U(`div`,$n,[U(`span`,er,`+`+A(t.item.diff_added),1),U(`span`,tr,`-`+A(t.item.diff_removed),1)])]))],64)):N(``,!0)]),_:2},[t.item.type===`resolve`&&t.item.resolved_id&&t.item.importer?{name:`after`,fn:g(()=>[U(`div`,{p3:``,ml4:``,border:`l`,flex:`~ col gap-1`,class:W(t.active?`border-flow-line-active`:`border-flow-line`)},[U(`div`,nr,[r[5]||=U(`div`,{"i-ph-arrow-elbow-left-down":``,"text-base":``,op50:``,"flex-none":``,"ml0.8":``},null,-1),B(d,{id:t.item.importer,session:t.session,link:!!c.value,class:W(c.value?`hover:bg-active`:``),px2:``,py1:``,rounded:``},null,8,[`id`,`session`,`link`,`class`])]),B(d,{id:t.item.module_request,session:t.session},null,8,[`id`,`session`])],2)]),key:`0`}:void 0]),1032,[`class-node-outer`,`active`]))}}}),ir=Object.assign(rr,{__name:`FlowmapNodeModuleInfo`}),ar={"ml-2px":``},or=F({__name:`Expandable`,props:de({expandable:{type:Boolean},classRootNode:{},activeStart:{type:Boolean},activeEnd:{type:Boolean},showTail:{type:Boolean,default:!0}},{expanded:{type:Boolean,required:!1,default:!0},expandedModifiers:{}}),emits:[`update:expanded`],setup(t){let n=i(t,`expanded`);return(r,i)=>{let a=Gn;return h(),T(a,{expanded:n.value,"onUpdate:expanded":i[1]||=e=>n.value=e,lines:{top:!0,bottom:!t.expandable||!n.value},pl6:``,pt4:``,"class-node-outer":t.classRootNode,active:t.activeStart},E({content:g(()=>[e(r.$slots,`node`)]),_:2},[t.expandable?{name:`inline-before`,fn:g(()=>[U(`button`,{"w-6":``,"h-6":``,mr1:``,"ml--7":``,mya:``,"rounded-full":``,hover:`bg-active`,flex:`~ items-center justify-center`,"cursor-pointer":``,onClick:i[0]||=e=>n.value=!n.value},[U(`div`,{"i-ph-caret-right":``,"text-sm":``,op50:``,transition:``,"duration-300":``,class:W({"rotate-90":n.value})},null,2)])]),key:`0`}:void 0,t.expandable&&n.value?{name:`after`,fn:g(()=>[U(`div`,null,[(h(),G(`svg`,{"ml-1em":``,"w-27px":``,"h-30px":``,viewBox:`0 0 27 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:W(t.activeStart?`fg-flow-line-active`:`fg-flow-line`)},[...i[2]||=[U(`g`,null,[U(`path`,{d:`M0.5 0C0.5 18 26.5 12 26.5 30`,stroke:`currentColor`,"stroke-width":`1px`})],-1)]],2)),U(`div`,ar,[e(r.$slots,`container`)]),t.showTail?(h(),G(`svg`,{key:0,"ml-1em":``,"w-27px":``,"h-30px":``,style:{transform:`scaleX(-1)`},viewBox:`0 0 27 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:W(t.activeEnd?`fg-flow-line-active`:`fg-flow-line`)},[...i[3]||=[U(`g`,null,[U(`path`,{d:`M0.5 0C0.5 18 26.5 12 26.5 30`,stroke:`currentColor`,"stroke-width":`1px`})],-1)]],2)):N(``,!0)])]),key:`1`}:void 0]),1032,[`expanded`,`lines`,`class-node-outer`,`active`])}}}),sr=Object.assign(or,{__name:`FlowmapExpandable`}),cr={flex:`~ col gap-1 items-start`,p1:``},lr={flex:`~ gap-2 items-center`},ur=[`title`],dr={"text-sm":``},fr=F({__name:`NodeChunkInfo`,props:{item:{},session:{},active:{type:Boolean}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=be,o=Gn;return h(),T(o,{lines:{top:!0},active:t.active,"class-node-inline":`gap-2 items-center`,pl6:``},{inner:g(()=>[U(`button`,{px3:``,py1:``,hover:`bg-active`,flex:`~ inline gap-2 items-center`,onClick:i[0]||=e=>r(`select`,t.item)},[e(n.$slots,`button`,{},()=>[U(`div`,cr,[U(`div`,lr,[B(a,{text:t.item.name||`<unnamed chunk>`},null,8,[`text`]),i[1]||=U(`div`,{"flex-auto":``},null,-1),U(`div`,{title:`Chunk ID: ${t.item.chunk_id}`,op50:``,"font-mono":``,"text-sm":``},` #`+A(t.item.chunk_id),9,ur)]),U(`div`,dr,A(t.item.modules.length)+` modules `,1)])])])]),"inline-after":g(()=>[B(a,{text:t.item.reason},null,8,[`text`])]),_:3},8,[`active`])}}}),pr=Object.assign(fr,{__name:`FlowmapNodeChunkInfo`}),mr={flex:`~ col gap-1 items-start`,p1:``},hr={flex:`~ gap-2 items-center`},gr=F({__name:`NodeAssetInfo`,props:{item:{},session:{},active:{type:Boolean}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=xe,o=Ee,s=be,c=Gn;return h(),T(c,{lines:{top:!0},active:t.active,"class-node-inline":`gap-2 items-center`,pl6:``},{inner:g(()=>[U(`button`,{px3:``,py1:``,hover:`bg-active`,flex:`~ inline gap-2 items-center`,onClick:i[0]||=e=>r(`select`,t.item)},[e(n.$slots,`button`,{},()=>[U(`div`,mr,[U(`div`,hr,[B(a,{id:t.item.filename,session:t.session},null,8,[`id`,`session`])])])])])]),"inline-after":g(()=>[B(o,{bytes:t.item.size,"text-sm":``},null,8,[`bytes`]),B(s,{text:t.item.type},null,8,[`text`])]),_:3},8,[`active`])}}}),_r=Object.assign(gr,{__name:`FlowmapNodeAssetInfo`}),vr={"select-none":``,"h-full":``,"of-auto":``,"ws-nowrap":``,"w-100vh":``,"of-visible":``},yr={key:0,"text-sm":``},br={flex:``},xr={flex:`~ items-center gap-1`,"text-sm":``,"text-blue":``,px3:``,py1:``},Sr={p2:``,flex:`~ col gap-1`},Cr={flex:`~`},wr={p2:``},Tr={flex:`~ items-center gap-1`,"text-sm":``,"text-orange":``,px3:``,py1:``},Er={p2:``,flex:`~ col gap-1`},Dr={op50:``,"text-xs":``},Or={op50:``,"text-xs":``},kr={key:0,"i-ph-spinner":``,"animate-spin":``},Ar={key:1,op50:``,"text-xs":``},jr={op50:``,"text-xs":``},Mr={op50:``,"text-xs":``},Nr=F({__name:`ModuleFlowTimeline`,props:{info:{},session:{},transformsLoading:{type:Boolean},selected:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{info:i}=f(n),{flowShowAllTransforms:a,flowShowAllLoads:o,flowExpandTransforms:s,flowExpandLoads:c,flowExpandResolveId:l,flowExpandChunks:u,flowExpandAssets:d}=Te,p=R(()=>i?.value?.resolve_ids??[]),m=R(()=>{let e=i?.value?.transforms?.filter(e=>e.content_from===e.content_to),t=i?.value?.transforms?.filter(e=>e.content_from!==e.content_to);return a.value&&!e?.length?i?.value?.transforms??[]:a.value&&e?.length?[...i.value.transforms??[],{type:`no_changes_hide`,id:`no_changes_hide`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0}]:e?.length?[{type:`no_changes_collapsed`,id:`no_changes_collapsed`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0},...t??[]]:t??[]}),_=R(()=>{let e=i?.value?.loads?.filter(e=>!e.content),t=i?.value?.loads?.filter(e=>e.content);return o.value&&!e?.length?i?.value?.loads??[]:o.value&&e?.length?[...i.value.loads??[],{type:`no_changes_hide`,id:`no_changes_hide`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0}]:e?.length?[{type:`no_changes_collapsed`,id:`no_changes_collapsed`,count:e?.length??0,duration:e?.reduce((e,t)=>e+t.duration,0)??0},...t??[]]:t??[]}),y=R(()=>[...p.value,..._.value,...m.value,...i.value.chunks,...i.value.assets]);function b(e){return!n.selected||!e?!1:y.value.indexOf(n.selected)>=y.value.indexOf(e)}function x(e){r(`select`,e)}return(t,n)=>{let r=Gn,f=xe,y=ir,S=sr,C=pr,w=_r;return h(),G(`div`,vr,[D(i).importers?.length?(h(),G(`div`,yr,[U(`div`,br,[B(D(se),null,{popper:g(({hide:t})=>[U(`div`,Sr,[(h(!0),G(j,null,M(D(i).importers,n=>(h(),T(f,{id:n,key:n,session:e.session,link:!0,class:`hover:bg-active`,px2:``,py1:``,rounded:``,onClick:t},null,8,[`id`,`session`,`onClick`]))),128))])]),default:g(()=>[B(r,{"class-node-outer":`border-dashed`},{inner:g(()=>[U(`div`,xr,[n[7]||=U(`div`,{"i-ph-arrows-merge-duotone":``,"rotate-270":``},null,-1),O(` `+A(D(i).importers?.length)+` importers `,1)])]),_:1})]),_:1})]),n[8]||=U(`div`,{"pl-10":``,border:`r`,"h-4":``,"w-1px":``,"z-flowmap-line":``,class:`border-flow-line border-dashed`},null,-1)])):N(``,!0),U(`div`,Cr,[B(r,{lines:{bottom:!0},active:e.selected!=null},{content:g(()=>[U(`div`,wr,[B(f,{id:D(i).id,session:e.session},null,8,[`id`,`session`])])]),_:1},8,[`active`]),D(i).imports?.length?(h(),G(j,{key:0},[n[10]||=U(`div`,{"w-10":``,border:`t base dashed`,mya:``},null,-1),B(D(se),{mya:``},{popper:g(({hide:t})=>[U(`div`,Er,[(h(!0),G(j,null,M(D(i).imports,n=>(h(),T(f,{id:n.module_id,key:n.module_id,kind:n.kind,session:e.session,link:!0,class:`hover:bg-active`,px2:``,py1:``,rounded:``,onClick:t},null,8,[`id`,`kind`,`session`,`onClick`]))),128))])]),default:g(()=>[B(r,{"class-node-outer":`border-dashed`},{inner:g(()=>[U(`div`,Tr,[n[9]||=U(`div`,{"i-ph-arrows-split-duotone":``,"rotate-270":``},null,-1),O(` `+A(D(i).imports?.length)+` imports `,1)])]),_:1})]),_:1})],64)):N(``,!0)]),B(S,{expanded:D(l),"onUpdate:expanded":n[0]||=e=>v(l)?l.value=e:null,expandable:p.value.length>0,"class-root-node":p.value.length===0?`border-dashed`:``,"active-start":b(p.value[0]||_.value[0]),"active-end":b(_.value[0])},{node:g(()=>[n[11]||=U(`div`,{"i-ph-magnifying-glass-duotone":``},null,-1),n[12]||=O(` Resolve Id `,-1),U(`span`,Dr,`(`+A(D(i).resolve_ids.length)+`)`,1)]),container:g(()=>[U(`div`,null,[(h(!0),G(j,null,M(p.value,(t,n)=>(h(),T(y,{key:t.id,item:t,session:e.session,active:b(t),class:W(n>0?`pt-2`:``),onSelect:x},null,8,[`item`,`session`,`active`,`class`]))),128))])]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(c),"onUpdate:expanded":n[2]||=e=>v(c)?c.value=e:null,expandable:_.value.length>0,"class-root-node":_.value.length===0?`border-dashed`:``,"active-start":b(_.value[0]),"active-end":b(m.value[0])},{node:g(()=>[n[13]||=U(`div`,{"i-ph-upload-simple-duotone":``},null,-1),n[14]||=O(` Load `,-1),U(`span`,Or,`(`+A(D(i).loads.length)+`)`,1)]),container:g(()=>[U(`div`,null,[(h(!0),G(j,null,M(_.value,(t,r)=>(h(),T(y,{key:t.id,item:t,session:e.session,active:b(t),class:W(r>0&&t.type!==`no_changes_hide`?`pt-2`:``),onSelect:x,onToggleShowAll:n[1]||=e=>o.value=!D(o)},null,8,[`item`,`session`,`active`,`class`]))),128))])]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(s),"onUpdate:expanded":n[4]||=e=>v(s)?s.value=e:null,expandable:m.value.length>0,"class-root-node":m.value.length===0?`border-dashed`:``,"active-start":b(m.value[0]),"active-end":b(D(i).chunks[0]||m.value.at(-1))},{node:g(()=>[n[15]||=U(`div`,{"i-ph-magic-wand-duotone":``},null,-1),n[16]||=O(` Transform `,-1),e.transformsLoading?(h(),G(`span`,kr)):(h(),G(`span`,Ar,`(`+A(D(i).transforms.length)+`)`,1))]),container:g(()=>[U(`div`,null,[(h(!0),G(j,null,M(m.value,(t,r)=>(h(),T(y,{key:t.id,item:t,session:e.session,active:b(t),class:W(r>0&&t.type!==`no_changes_hide`?`pt-2`:``),onSelect:x,onToggleShowAll:n[3]||=e=>a.value=!D(a)},null,8,[`item`,`session`,`active`,`class`]))),128))])]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(u),"onUpdate:expanded":n[5]||=e=>v(u)?u.value=e:null,lines:{top:!0},expandable:D(i).chunks.length>0,"class-root-node":D(i).chunks.length===0?`border-dashed`:``,"active-start":b(D(i).chunks[0]),"active-end":b(D(i).chunks.at(-1)),pl6:``,pt4:``},{node:g(()=>[n[17]||=U(`div`,{"i-ph-shapes-duotone":``},null,-1),n[18]||=O(` Chunk `,-1),U(`span`,jr,`(`+A(D(i).chunks.length)+`)`,1)]),container:g(()=>[(h(!0),G(j,null,M(D(i).chunks,t=>(h(),T(C,{key:t.chunk_id,item:t,active:b(t),session:e.session,onSelect:x},null,8,[`item`,`active`,`session`]))),128))]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`]),B(S,{expanded:D(d),"onUpdate:expanded":n[6]||=e=>v(d)?d.value=e:null,lines:{top:!0},expandable:D(i).assets.length>0,"class-root-node":D(i).assets.length===0?`border-dashed`:``,"active-start":b(D(i).assets[0]),"active-end":b(D(i).assets.at(-1)),"show-tail":!1,pl6:``,pt4:``},{node:g(()=>[n[19]||=U(`div`,{"i-ph-package-duotone":``},null,-1),n[20]||=O(` Assets `,-1),U(`span`,Mr,`(`+A(D(i).assets.length)+`)`,1)]),container:g(()=>[(h(!0),G(j,null,M(D(i).assets,t=>(h(),T(w,{key:t.filename,item:t,active:b(t),session:e.session,onSelect:x},null,8,[`item`,`active`,`session`]))),128))]),_:1},8,[`expanded`,`expandable`,`class-root-node`,`active-start`,`active-end`])])}}}),Pr=Object.assign(Nr,{__name:`FlowmapModuleFlowTimeline`}),Fr={"w-full":``,h:`[calc(100vh-(var(--spacing)*58))]`,"pointer-events-auto":``,sticky:``,"top-4":``},Ir={p4:``},Lr=F({__name:`ModuleFlow`,props:{info:{},session:{},transformsLoading:{type:Boolean}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{info:i}=f(n),a=y(null);p(a,e=>{r(`select`,!!e)});function s(e){a.value=e}function c(){a.value=null}return(t,n)=>(h(),G(j,null,[a.value?(h(),T(D(ct),{key:0,class:`!h-auto w-full module-flow-splitter right-4 bottom-4 fixed z-10 pointer-events-none`},{default:g(()=>[B(D(lt),{size:`45`,"min-size":`10`,"max-size":`90`,class:`!h-auto pointer-events-none`}),B(D(lt),{size:`55`,"min-size":`10`,"max-size":`90`,class:`!h-auto !of-visible`},{default:g(()=>[o((h(),G(`div`,Fr,[n[0]||=U(`div`,{absolute:``,"left-0":``,top:`1/2`,"translate-x":`-1/2`,"translate-y":`-1/2`,bg:`#DFDFDF dark:#313131`,"h-10":``,"w-2":``,"rounded-full":``,"z-10":``,"cursor-col-resize":``},null,-1),B(Hn,{selected:a.value,session:e.session,onClose:c},null,8,[`selected`,`session`])])),[[D(ot),[c,{ignore:[`.splitpanes__splitter`,`.flowmap-node-inline`]}]]])]),_:1})]),_:1})):N(``,!0),U(`div`,Ir,[B(Pr,{info:D(i),session:e.session,"transforms-loading":e.transformsLoading,selected:a.value,onSelect:s},null,8,[`info`,`session`,`transforms-loading`,`selected`])])],64))}}),Rr=Object.assign(Lr,{__name:`FlowmapModuleFlow`}),zr={relative:``,border:`t base`,pb10:``,py1:``,mt4:``},Br={key:0,border:`~ base`,"rounded-lg":``,"shadow-lg":``,px3:``,py2:``,"bg-glass":``,"pointer-events-none":``,"text-sm":``,"max-w-80":``},Vr={"font-semibold":``,"font-mono":``,"text-base":``,mb2:``},Hr={key:0,border:`t base`,pt2:``,flex:`~ col gap-1.5`,"min-w-48":``},Ur={flex:`~ justify-between items-center`,py1:``},Wr=[`datetime`],Gr={flex:`~ justify-between items-center`,py1:``},Kr=[`datetime`],qr={flex:`~ justify-between items-center`,py1:``,border:`t base dashed`,pt2:``},Jr={key:1},Yr=F({__name:`ModuleFlamegraph`,props:{info:{},session:{},flowNodeSelected:{type:Boolean}},setup(e){let t=e,r=e=>ze(e,void 0,!1),i=R(()=>{let e=t.info.resolve_ids.map((e,t)=>r({id:`resolveId-${t}`,text:e.plugin_name,size:e.duration,meta:e})),n=t.info.loads.map((e,t)=>r({id:`load-${t}`,text:e.plugin_name,size:e.duration,meta:e})),i=t.info.transforms.map((e,t)=>r({id:`transform-${t}`,text:e.plugin_name,size:e.duration,meta:e}));return r({id:`~root`,text:`Module Flamegraph`,children:[r({id:`~resolves`,text:`Resolve Id`,children:e}),r({id:`~loads`,text:`Load`,children:n}),r({id:`~transforms`,text:`Transform`,children:i})]})}),a=c(null),o=c(0),s=c(0),u=l(`el`),d=y(null);function f(){d.value=new Re(i.value,{animate:!0,palette:{fg:`#888`},getSubtext:e=>{let t=e.size/i.value.size*100;if(t>15&&t!==100)return`${t.toFixed(1)}%`},onHover(e,t){if(!e){a.value=null;return}t&&(o.value=t.clientX,s.value=t.clientY),a.value={plugin_name:e.text,duration:e.size,meta:e.meta}},onLeave(){a.value=null}}),u.value.appendChild(d.value.el)}function m(){d.value?.dispose()}return n(()=>{f()}),K(()=>{m()}),p(i,async()=>{m(),f()},{deep:!0}),p(()=>t.flowNodeSelected,async()=>{await le(),d.value?.resize()}),(e,t)=>{let n=J,r=Pe;return h(),G(`div`,zr,[B(r,{"hover-x":o.value,"hover-y":s.value},{default:g(()=>[a.value?(h(),G(`div`,Br,[U(`div`,Vr,A(a.value.plugin_name),1),a.value.meta?(h(),G(`div`,Hr,[U(`div`,Ur,[t[0]||=U(`label`,{"text-xs":``,"opacity-70":``},`Start Time`,-1),U(`time`,{datetime:new Date(a.value.meta.timestamp_start).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(a.value.meta.timestamp_start)),9,Wr)]),U(`div`,Gr,[t[1]||=U(`label`,{"text-xs":``,"opacity-70":``},`End Time`,-1),U(`time`,{datetime:new Date(a.value.meta.timestamp_end).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(a.value.meta.timestamp_end)),9,Kr)]),U(`div`,qr,[t[2]||=U(`label`,{text:`xs`,op70:``},`Duration`,-1),B(n,{duration:a.value.duration},null,8,[`duration`])])])):(h(),G(`div`,Jr,[B(n,{duration:a.value.duration},null,8,[`duration`])]))])):N(``,!0)]),_:1},8,[`hover-x`,`hover-y`]),U(`div`,{ref_key:`el`,ref:u,"min-h-30":``},null,512)])}}}),Xr=Object.assign(Yr,{__name:`ChartModuleFlamegraph`}),Zr={flex:``,px2:``},Qr=[`d`,`stroke-dasharray`],$r=20,ei=F({__name:`ModuleImportRelationships`,props:{module:{},session:{}},setup(e){let t=e,r={width:400,height:30,padding:4,marginX:8,border:1,margin:8,dot:16,dotOffset:80,linkOffset:0},i=l(`container`),a=y([]),o=R(()=>{let e=new Map;for(let n of t.session.modulesList)e.set(n.id,n);return e}),s=R(()=>t.module.importers?.map(e=>o.value.get(e))),c=R(()=>Math.min(Math.max(t.module.importers?.length||0,t.module.imports?.length||0),$r)),u=R(()=>Math.min(s.value?.length||0,$r)),d=R(()=>Math.min(t.module.imports?.length||0,$r)),f=R(()=>r.height*c.value+r.padding*(c.value+1)+r.border*2),m=R(()=>{let e=Math.max(0,d.value-u.value)*(r.height+r.padding)/2;return Math.min(e,f.value/2)}),g=R(()=>{let e=Math.max(0,u.value-d.value)*(r.height+r.padding)/2;return Math.min(e,f.value/2)}),_=R(()=>`${f.value/2-r.dot/2}px ${r.dotOffset}px 0 ${s.value?.length?r.dotOffset:0}px`),v=R(()=>s.value?.length?r.width+r.marginX:r.marginX),b=R(()=>s.value?.length?v.value+r.dotOffset:v.value),x=R(()=>(r.height*c.value+(c.value+1)*r.padding)/2);function S(e){switch(e){case`importer-start`:return v.value;case`importer-end`:return b.value;case`import-start`:return b.value+r.dot;case`import-end`:return s.value?.length?v.value+r.dotOffset*2+r.dot:v.value+r.dotOffset+r.dot}}function C(e,t){switch(e){case`importer-start`:return(r.height+r.padding)*t+(r.height/2+r.padding)+m.value;case`import-end`:return(r.height+r.padding)*t+(r.height/2+r.padding)+g.value;case`importer-end`:case`import-start`:return x.value}}function w(){if(a.value=[],s.value?.length){let e=Array.from({length:u.value},(e,t)=>({id:``,source:{x:S(`importer-start`),y:C(`importer-start`,t)},target:{x:S(`importer-end`),y:C(`importer-end`)}}));a.value.push(...e)}if(t.module?.imports?.length){let e=Array.from({length:d.value},(e,t)=>({id:``,source:{x:S(`import-start`),y:C(`import-start`)},target:{x:S(`import-end`),y:C(`import-end`,t)}}));a.value.push(...e)}}return n(()=>{p(()=>[t.module],w,{immediate:!0})}),(t,n)=>{let o=xe;return h(),G(`div`,{ref_key:`container`,ref:i,"w-full":``,relative:``,"select-none":``,mt4:``},[U(`div`,Zr,[s.value?.length?(h(),G(`div`,{key:0,py1:``,style:H({width:`${r.width}px`,marginTop:`${m.value}px`})},[(h(!0),G(j,null,M(s.value,(t,n)=>(h(),T(o,{key:t.id,id:t.id,hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"ws-nowrap":``,"z-graph-node":``,border:`~ base rounded`,link:!0,session:e.session,minimal:!0,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===s.value.length-1?0:r.padding}px`})},null,8,[`id`,`session`,`style`]))),128))],4)):N(``,!0),U(`div`,{"bg-base":``,"rounded-full":``,"border-3":``,"font-mono":``,"border-active":``,"flex-shrink-0":``,style:H({margin:_.value,width:`${r.dot}px`,height:`${r.dot}px`})},null,4),e.module.imports?.length?(h(),G(`div`,{key:1,py1:``,style:H({width:`${r.width}px`,marginTop:`${g.value}px`})},[(h(!0),G(j,null,M(e.module.imports,(t,n)=>(h(),T(o,{key:t.id,id:t.module_id,hover:`bg-active`,block:``,px2:``,p1:``,"bg-base":``,"ws-nowrap":``,"z-graph-node":``,border:`~ base rounded`,link:!0,session:e.session,minimal:!0,style:H({width:`${r.width}px`,height:`${r.height}px`,overflow:`hidden`,marginBottom:`${n===e.module.imports.length-1?0:r.padding}px`})},null,8,[`id`,`session`,`style`]))),128))],4)):N(``,!0)]),(h(),G(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,"w-full":``,style:H({height:`${f.value}px`})},[U(`g`,null,[(h(!0),G(j,null,M(a.value,e=>(h(),G(`path`,{key:e.id,d:D(je)(e),class:W(D(Me)(e)),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Qr))),128))])],4))],512)}}}),ti=Object.assign(ei,{__name:`DataModuleImportRelationships`}),ni={key:0,relative:``,"h-full":``,"w-full":``},ri={"bg-glass":``,absolute:``,"left-2":``,"top-2":``,"z-panel-content":``,p2:``,border:`~ base rounded-lg`,flex:`~ col gap-2`},ii={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},ai={flex:`~ gap-2`},oi={"of-auto":``,"h-full":``,"pt-30":``},si=F({__name:`ModuleDetailsLoader`,props:{session:{},module:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ue(),a=c([]),o=c(!1),s=c(!1);fe(async()=>{let e={session:n.session.id,module:n.module};le(async()=>{a.value=[],o.value=!0,a.value=await i.value.$call(`vite:rolldown:get-module-transforms`,e),o.value=!1})});let l=ne(async()=>{let e={session:n.session.id,module:n.module};return{transforms:a.value,...await i.value.$call(`vite:rolldown:get-module-info`,e)}});function u(e){s.value=e}return(t,n)=>{let i=X,a=xe,c=De,d=Rr,f=Xr,p=ti,m=ce;return D(l)?(h(),G(`div`,ni,[B(i,{absolute:``,"right-2":``,"top-1.5":``,"bg-glass":``,"z-panel-content":``,onClick:n[0]||=e=>r(`close`)}),U(`div`,ri,[B(a,{id:e.module,px2:``,pt1:``,session:e.session},null,8,[`id`,`session`]),U(`div`,ii,[D(l)?(h(),T(c,{key:0,metrics:D(l).build_metrics},null,8,[`metrics`])):N(``,!0)]),U(`div`,ai,[U(`button`,{class:W(D(Y).moduleDetailsViewType===`flow`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[1]||=e=>D(Y).moduleDetailsViewType=`flow`},[...n[4]||=[U(`div`,{"i-ph-git-branch-duotone":``,"rotate-180":``},null,-1),O(` Build Flow `,-1)]],2),U(`button`,{class:W(D(Y).moduleDetailsViewType===`charts`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[2]||=e=>D(Y).moduleDetailsViewType=`charts`},[...n[5]||=[U(`div`,{"i-ph-chart-donut-duotone":``},null,-1),O(` Charts `,-1)]],2),U(`button`,{class:W(D(Y).moduleDetailsViewType===`imports`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[3]||=e=>D(Y).moduleDetailsViewType=`imports`},[...n[6]||=[U(`div`,{"i-ph-graph-duotone":``},null,-1),O(` Imports `,-1)]],2)])]),U(`div`,oi,[D(Y).moduleDetailsViewType===`flow`?(h(),T(d,{key:0,info:D(l),session:e.session,"transforms-loading":o.value,onSelect:u},null,8,[`info`,`session`,`transforms-loading`])):N(``,!0),D(Y).moduleDetailsViewType===`charts`?(h(),T(f,{key:1,info:D(l),session:e.session,"flow-node-selected":s.value},null,8,[`info`,`session`,`flow-node-selected`])):N(``,!0),D(Y).moduleDetailsViewType===`imports`?(h(),T(p,{key:2,module:D(l),session:e.session},null,8,[`module`,`session`])):N(``,!0)])])):(h(),T(m,{key:1}))}}}),ci=Object.assign(si,{__name:`DataModuleDetailsLoader`}),li={key:0,p4:``,relative:``,"h-full":``,"w-full":``,"of-auto":``,"bg-glass":``,"z-panel-content":``},ui=F({__name:`AssetDetailsLoader`,props:{asset:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ue(),{state:a}=w(async()=>{let e=await i.value.$call(`vite:rolldown:get-asset-details`,{session:n.session.id,id:n.asset});return`chunk`in e?{asset:{...e?.asset,type:`asset`},chunks:[{...e?.chunk,type:`chunk`}],importers:e?.importers,imports:e?.imports}:{asset:{...e?.asset,type:`asset`},chunks:[],importers:[],imports:[]}},null);return(t,n)=>{let i=X,o=nn;return D(a)?.asset?(h(),G(`div`,li,[B(o,{asset:D(a).asset,session:e.session,chunks:D(a)?.chunks,importers:D(a)?.importers,imports:D(a)?.imports},{default:g(()=>[B(i,{onClick:n[0]||=e=>r(`close`)})]),_:1},8,[`asset`,`session`,`chunks`,`importers`,`imports`])])):N(``,!0)}}}),di=Object.assign(ui,{__name:`DataAssetDetailsLoader`}),fi={op50:``,"text-xs":``,flex:``,"justify-center":``,"items-center":``},pi=F({__name:`NodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>{let r=Ae,i=J;return h(),G(`span`,fi,[B(r,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=U(`span`,{op40:``},`|`,-1),B(r,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=U(`span`,{op40:``},`|`,-1),B(i,{duration:e.duration,flex:`~ gap-1 items-center`,px1:``,title:`Total build cost: ${D(me)(e.duration,!0)}`},{default:g(()=>[...n[0]||=[U(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`])])}}}),mi=Object.assign(pi,{__name:`FlowmapNodePluginInfo`}),hi={flex:`~ col w-full`},gi={"select-none":``,"h-full":``,"of-auto":``,"ws-nowrap":``,"w-auto":``,"of-visible":``,p4:``,flex:`~ col`},_i={flex:`~`},vi={flex:`~ items-center justify-center`,relative:``,"w-60":``,h14:``},yi={op50:``,"text-xs":``,flex:`~ items-center justify-center gap-1`,h6:``},bi=[`datetime`],xi={flex:`~ items-center justify-center`,relative:``,"w-60":``,h14:``},Si={op50:``,"text-xs":``,flex:`~ items-center justify-center gap-1`,h6:``},Ci=[`datetime`],wi=F({__name:`PluginFlowTimeline`,props:{session:{},buildMetrics:{}},setup(t){let n=t;function r(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let i=R(()=>r(n.buildMetrics.resolveIdMetrics)),a=R(()=>r(n.buildMetrics.loadMetrics)),o=R(()=>r(n.buildMetrics.transformMetrics)),s=R(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),c=R(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[e.length-1].timestamp_end});return(n,r)=>{let l=Ne,u=Gn,d=mi;return h(),G(`div`,hi,[e(n.$slots,`header`),U(`div`,gi,[U(`div`,_i,[B(u,{active:!1,"class-node-inner":`w60`},{content:g(()=>[U(`div`,{p2:``,"w-full":``,"text-center":``,onClick:r[0]||=e=>D(Y).pluginDetailSelectedHook=``},[B(l,{name:t.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),U(`div`,vi,[r[5]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-0":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),r[6]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-10":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),U(`span`,yi,[r[4]||=U(`i`,{"i-ph-airplane-takeoff-thin":``,"text-4":``,"inline-flex":``},null,-1),s.value?(h(),G(`time`,{key:0,datetime:new Date(s.value).toISOString()},A(new Date(s.value).toLocaleString()),9,bi)):N(``,!0)])]),B(u,{"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,pb4:``,w60:``,lines:{bottom:!0},active:D(Y).pluginDetailSelectedHook===`resolve`},{content:g(()=>[U(`div`,{flex:`~ col gap1`,"w-full":``,onClick:r[1]||=e=>D(Y).pluginDetailSelectedHook=`resolve`},[r[7]||=U(`span`,{flex:`~ items-center justify-center gap-1`},[U(`i`,{"i-ph-magnifying-glass-duotone":``}),O(` Resolve Id `)],-1),U(`div`,null,[B(d,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),B(u,{active:D(Y).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,pb4:``,w60:``,lines:{bottom:!0}},{content:g(()=>[U(`div`,{flex:`~ col gap1`,"w-full":``,onClick:r[2]||=e=>D(Y).pluginDetailSelectedHook=`load`},[r[8]||=U(`span`,{flex:`~ items-center justify-center gap-1`},[U(`i`,{"i-ph-upload-simple-duotone":``}),O(` Load `)],-1),U(`div`,null,[B(d,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),B(u,{active:D(Y).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:g(()=>[U(`div`,{flex:`~ col gap1`,"w-full":``,onClick:r[3]||=e=>D(Y).pluginDetailSelectedHook=`transform`},[r[9]||=U(`span`,{flex:`~ items-center justify-center gap-1`},[U(`i`,{"i-ph-magic-wand-duotone":``}),O(` Transform `)],-1),U(`div`,null,[B(d,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),U(`div`,xi,[r[11]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-0":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),r[12]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-10":``,border:`r`,"z-flowmap-line":``,h4:``},null,-1),r[13]||=U(`div`,{class:`border-flow-line left-50% translate-x--1/2`,absolute:``,"top-14":``,"w-2":``,"h-2":``,border:`4`,"rounded-full":``},null,-1),U(`span`,Si,[r[10]||=U(`i`,{"i-ph-airplane-landing-thin":``,"text-4":``,"inline-flex":``},null,-1),c.value?(h(),G(`time`,{key:0,datetime:new Date(c.value).toISOString()},A(new Date(c.value).toLocaleString()),9,Ci)):N(``,!0)])])])])}}}),Ti=Object.assign(wi,{__name:`FlowmapPluginFlowTimeline`}),Ei={role:`table`,"min-w-max":``},Di={role:`row`,class:`sticky top-0 z10 border-b border-base`,flex:`~ row`},Oi={key:0,role:`columnheader`,"bg-base":``,"flex-none":``,w32:``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``},ki={key:1,role:`columnheader`,"bg-base":``,"flex-1":``,"min-w100":``,"ws-nowrap":``,p1:``,"text-left":``,"font-600":``},Ai={flex:`~ row gap1 items-center`,"w-full":``},ji={"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`},Mi={class:`p2`,flex:`~ col gap2`},Ni=[`title`],Pi=[`checked`,`onChange`],Fi={"text-sm":``},Ii={key:2,role:`columnheader`,"rounded-tr-2":``,"bg-base":``,"flex-none":``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``,"w-27":``},Li={"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`},Ri={key:3,role:`columnheader`,"rounded-tr-2":``,"bg-base":``,"flex-none":``,"min-w52":``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``},zi={key:4,role:`columnheader`,"rounded-tr-2":``,"bg-base":``,"flex-none":``,"min-w52":``,"ws-nowrap":``,p1:``,"text-center":``,"font-600":``},Bi={key:0,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,w32:``,"ws-nowrap":``,op80:``},Vi={key:1,role:`cell`,"flex-1":``,"min-w100":``,"text-left":``,"text-ellipsis":``,"line-clamp-2":``},Hi={key:2,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,"text-center":``,"text-sm":``,"w-27":``},Ui={key:3,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,"text-center":``,"font-mono":``,"text-sm":``,"min-w52":``,op80:``},Wi={key:4,role:`cell`,flex:`~ items-center justify-center`,"flex-none":``,"text-center":``,"font-mono":``,"text-sm":``,"min-w52":``,op80:``},Gi={key:1},Ki={p4:``},qi={"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},Ji={key:0},Yi={key:1},Xi=F({__name:`PluginDetailsTable`,props:{session:{},buildMetrics:{},selectedFields:{}},setup(e){let t=e,n={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},r=R(()=>t.session.modulesList.map(e=>({mod:e,path:Ce(e.id,t.session.meta.cwd),type:ve(e.id)}))),i=R(()=>ge.filter(e=>r.value.some(t=>e.match.test(t.mod.id)))),a=c(Y.value.pluginDetailsModuleTypes??i.value.map(e=>e.name)),{state:o,next:s}=ee([``,`desc`,`asc`],{initialValue:Y.value.pluginDetailsDurationSortType}),l=R(()=>(o.value?[...t.buildMetrics.calls].sort((e,t)=>o.value===`asc`?e.duration-t.duration:t.duration-e.duration):t.buildMetrics.calls).filter(e=>{if(!e.module)return!1;let t=ve(e.module);return a.value.includes(t.name)}).filter(Y.value.pluginDetailSelectedHook?e=>e.type===Y.value.pluginDetailSelectedHook:Boolean).filter(e=>Y.value.pluginDetailsShowType===`all`||![`load`,`transform`].includes(Y.value.pluginDetailSelectedHook)?!0:Y.value.pluginDetailsShowType===`changed`?!e.unchanged:e.unchanged));function u(e){a.value?.includes(e.name)?a.value=a.value?.filter(t=>t!==e.name):a.value?.push(e.name),Y.value.pluginDetailsModuleTypes=a.value}function d(){s(),Y.value.pluginDetailsDurationSortType=o.value}return(t,r)=>{let s=be,c=xe,f=J,p=Se,m=He;return h(),G(`div`,Ei,[U(`div`,Di,[e.selectedFields.includes(`hookName`)?(h(),G(`div`,Oi,` Hook name `)):N(``,!0),e.selectedFields.includes(`module`)?(h(),G(`div`,ki,[U(`button`,Ai,[r[0]||=O(` Module `,-1),B(D(se),null,{popper:g(()=>[U(`div`,Mi,[(h(!0),G(j,null,M(i.value,e=>(h(),G(`label`,{key:e.name,border:`~ base rounded-md`,px2:``,py1:``,flex:`~ items-center gap-1`,"select-none":``,title:e.description,class:`cursor-pointer module-type-filter`},[U(`input`,{type:`checkbox`,mr1:``,checked:a.value?.includes(e.name),onChange:t=>u(e)},null,40,Pi),U(`div`,{class:W(e.icon),"icon-catppuccin":``},null,2),U(`div`,Fi,A(e.description||e.name),1)],8,Ni))),128))])]),default:g(()=>[U(`span`,ji,[U(`i`,{"text-xs":``,class:W([`i-ph-funnel-duotone`,a.value.length===i.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):N(``,!0),e.selectedFields.includes(`duration`)?(h(),G(`div`,Ii,[U(`button`,{flex:`~ row gap1 items-center justify-center`,"w-full":``,onClick:d},[r[1]||=O(` Duration `,-1),U(`span`,Li,[U(`i`,{"text-xs":``,class:W([D(o)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,D(o)?`op100 text-primary`:`op50`])},null,2)])])])):N(``,!0),e.selectedFields.includes(`startTime`)?(h(),G(`div`,Ri,` Start Time `)):N(``,!0),e.selectedFields.includes(`endTime`)?(h(),G(`div`,zi,` End Time `)):N(``,!0)]),l.value.length&&e.selectedFields.length?(h(),T(m,{key:0,role:`rowgroup`,items:l.value,"key-prop":`id`},{default:g(({item:t,index:r})=>[U(`div`,{role:`row`,flex:`~ row`,class:W([`border-base border-b-1 border-dashed`,[r===l.value.length-1?`border-b-0`:``]])},[e.selectedFields.includes(`hookName`)?(h(),G(`div`,Bi,[B(s,{text:n[t.type]},null,8,[`text`])])):N(``,!0),e.selectedFields.includes(`module`)?(h(),G(`div`,Vi,[B(c,{id:t.module,"w-full":``,"border-none":``,"ws-nowrap":``,session:e.session,link:`/session/${e.session.id}/graph?module=${t.module}`,hover:`bg-active`,border:`~ base rounded`,block:``,px2:``,py1:``},null,8,[`id`,`session`,`link`])])):N(``,!0),e.selectedFields.includes(`duration`)?(h(),G(`div`,Hi,[B(f,{duration:t.duration},null,8,[`duration`])])):N(``,!0),e.selectedFields.includes(`startTime`)?(h(),G(`div`,Ui,[B(p,{timestamp:t.timestamp_start},null,8,[`timestamp`])])):N(``,!0),e.selectedFields.includes(`endTime`)?(h(),G(`div`,Wi,[B(p,{timestamp:t.timestamp_end},null,8,[`timestamp`])])):N(``,!0)],2)]),_:1},8,[`items`])):(h(),G(`div`,Gi,[U(`div`,Ki,[U(`div`,qi,[e.selectedFields.length?(h(),G(`p`,Yi,` No data `)):(h(),G(`p`,Ji,` No columns selected `))])])]))])}}}),Zi=Object.assign(Xi,{__name:`DataPluginDetailsTable`}),Qi={p2:``,"h-full":``,"w-full":``},$i={flex:`~`,border:`~ base`,"rounded-2":``,"h-full":``,relative:``,"of-hidden":``},ea={key:0,"of-hidden":``,border:`r base`},ta={px2:``,h10:``,border:`b base`,"bg-base":``,"rounded-t-2":``,flex:`~ items-center justify-end`},na={"flex-1":``,"of-y-auto":``,"h-full":``,flex:`~ col`},ra={flex:`~ items-center justify-between`,border:`b base`,px2:``,h10:``,"bg-base":``,"rounded-t-2":``,"of-x-auto":``,"ws-nowrap":``},ia={flex:`~ items-center`,"h-full":``},aa={key:0,flex:`~ items-center justify-center gap1`,"h-full":``,"text-xs":``,py1:``},oa={class:`op50`,flex:`~ items-center gap-1`},sa=[`title`],ca={class:`text-xs op50`},la={"flex-1":``,"of-y-auto":``,"overscroll-contain":``},ua=F({__name:`PluginFlow`,props:{session:{},buildMetrics:{}},setup(e){let t=e,[n,r]=ae(!0),i=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],a=c({selected:Y.value.pluginDetailsTableFields,search:!1}),o=R(()=>Y.value.pluginDetailsTableFields?Y.value.pluginDetailsTableFields:i.map(e=>e.name)),{state:s,next:l}=ee([`changed`,`unchanged`,`all`],{initialValue:Y.value.pluginDetailsShowType}),u=R(()=>s.value===`all`?`Show Changed`:s.value===`changed`?`Show Unchanged`:`Show All`),d=R(()=>!(![`load`,`transform`].includes(Y.value.pluginDetailSelectedHook)||!t.buildMetrics.calls?.filter(e=>e.type===Y.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),f=R(()=>{let e=t.buildMetrics.calls?.filter(e=>e.type===Y.value.pluginDetailSelectedHook).filter(e=>e.unchanged),n=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:n}});p(()=>a.value.selected,e=>{Y.value.pluginDetailsTableFields=e});function m(){l(),Y.value.pluginDetailsShowType=s.value}return(t,s)=>{let c=Ti,l=Ve,p=Ae,_=J,v=Zi;return h(),G(`div`,Qi,[U(`div`,$i,[D(n)?(h(),G(`div`,ea,[B(c,{session:e.session,"build-metrics":e.buildMetrics},{header:g(()=>[U(`div`,ta,[U(`button`,{w8:``,h8:``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:s[0]||=e=>D(r)(!1)},[...s[3]||=[U(`i`,{"i-ph-sidebar-simple-duotone":``,"inline-flex":``,op50:``},null,-1)]])])]),_:1},8,[`session`,`build-metrics`])])):N(``,!0),U(`div`,na,[U(`div`,ra,[U(`div`,ia,[D(n)?N(``,!0):(h(),G(`button`,{key:0,w8:``,h8:``,"rounded-full":``,"cursor-pointer":``,mr1:``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:s[1]||=e=>D(r)(!0)},[...s[4]||=[U(`i`,{"i-ph-sidebar-duotone":``,"inline-flex":``,op50:``},null,-1)]])),B(l,{modelValue:a.value,"onUpdate:modelValue":s[2]||=e=>a.value=e,"h-full":``,"border-none":``,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:i,class:`[&_[icon-catppuccin]]:filter-none!`},null,8,[`modelValue`])]),d.value?(h(),G(`div`,aa,[U(`p`,oa,[B(p,{number:f.value.count},null,8,[`number`]),s[5]||=O(` module unchanged, but cost `,-1),B(_,{duration:f.value.duration},null,8,[`duration`])]),U(`button`,{"rounded-md":``,px2:``,py1:``,"select-none":``,"h-full":``,border:`~ base rounded-lg`,hover:`bg-active`,title:u.value,onClick:m},[U(`div`,ca,A(u.value),1)],8,sa)])):N(``,!0)]),U(`div`,la,[B(v,{session:e.session,"build-metrics":e.buildMetrics,"selected-fields":o.value},null,8,[`session`,`build-metrics`,`selected-fields`])])])])])}}}),da=Object.assign(ua,{__name:`FlowmapPluginFlow`}),fa={grid:`~ cols-[max-content_1fr] gap-2`,p4:``},pa={flex:`~ col gap-4`},ma={key:0,grid:`~ cols-[300px_1fr] gap-1`},ha=[`onClick`],ga={key:0,hover:`bg-active`,class:`flex gap2 items-center pl2`},_a={"font-mono":``,"text-sm":``},va=[`onClick`],ya=[`title`],ba=F({__name:`Sunburst`,props:{graph:{},selected:{},session:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=l(`el`);return fe(()=>i.value?.append(n.graph.el)),(t,n)=>{let a=Ie,s=xe,c=J,l=u(`tooltip`);return h(),G(`div`,fa,[U(`div`,{ref_key:`el`,ref:i,"w-500px":``},null,512),U(`div`,pa,[B(a,{border:`b base`,py2:``,selected:e.selected,options:e.graph.options,onSelect:n[0]||=e=>r(`select`,e)},null,8,[`selected`,`options`]),e.selected?(h(),G(`div`,ma,[(h(!0),G(j,null,M(e.selected.children,t=>(h(),G(j,{key:t.id},[U(`button`,{"ws-nowrap":``,"text-nowrap":``,"text-left":``,"overflow-hidden":``,"text-ellipsis":``,"text-sm":``,hover:`bg-active`,rounded:``,px2:``,onClick:e=>r(`select`,t)},[t.meta?.type===`hook`?(h(),G(`div`,ga,[n[1]||=U(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),U(`span`,_a,A(t.text),1)])):(h(),T(s,{key:1,id:t.text,"w-full":``,"border-none":``,"ws-nowrap":``,session:e.session,hover:`bg-active`,border:`~ base rounded`,block:``,px2:``,py1:``},null,8,[`id`,`session`]))],8,ha),U(`button`,{relative:``,flex:`~ gap-1 items-center`,hover:`bg-active`,rounded:``,onClick:e=>r(`select`,t)},[U(`div`,{"h-5":``,rounded:``,shadow:``,border:`~ base`,style:H({background:D(Le)(e.graph.options.getColor?.(t)||`#000`),width:`${t.size/e.selected.size*100}%`})},null,4),B(c,{duration:t.size,"text-xs":``},null,8,[`duration`]),t.children.length>0&&t.meta?.type!==`hook`?o((h(),G(`div`,{key:0,title:`${t.children.length} dependencies`,"text-xs":``,"op-fade":``},[O(` (`+A(t.children.length)+`) `,1)],8,ya)),[[l,`${t.children.length} dependencies`]]):N(``,!0)],8,va)],64))),128))])):N(``,!0)])])}}}),xa=Object.assign(ba,{__name:`PluginsSunburst`}),Sa={key:1,relative:``,"h-full":``,"w-full":``},Ca={"bg-glass":``,absolute:``,"left-2":``,"top-2":``,"z-panel-content":``,p2:``,border:`~ base rounded-lg`,flex:`~ col gap-2`},wa={"font-mono":``,px1:``},Ta={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},Ea={flex:`~ gap-2`},Da={"of-auto":``,"h-full":``,"pt-30":``},Oa={key:2,flex:`~ items-center justify-center`,"w-full":``,"h-full":``},ka={key:0,border:`~ base`,"rounded-lg":``,"shadow-lg":``,px3:``,py2:``,"bg-glass":``,"pointer-events-none":``,"text-sm":``,"max-w-80":``},Aa={key:0,flex:`~ items-center gap2`},ja={key:0,flex:`~`,"font-semibold":``,"font-mono":``,"text-base":``,mb2:``},Ma={key:1,border:`t base`,pt2:``,flex:`~ col gap-1.5`,"min-w-48":``},Na={flex:`~ justify-between items-center`,py1:``},Pa=[`datetime`],Fa={flex:`~ justify-between items-center`,py1:``},Ia=[`datetime`],La={flex:`~ justify-between items-center`,py1:``,border:`t base dashed`,pt2:``},Ra={key:2},za=F({__name:`PluginDetailsLoader`,props:{plugin:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=_(),a=ue(),{state:o,isLoading:s}=w(async()=>await a.value.$call(`vite:rolldown:get-plugin-details`,{session:n.session.id,id:i.query.plugin}),null),c=R(()=>{let e=new Set;return o.value?.calls?.filter(t=>e.has(t.module)?!1:(e.add(t.module),!0))??[]}),l=R(()=>o.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),u=R(()=>o.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),d=R(()=>o.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),f=R(()=>o.value?.calls?.reduce((e,t)=>e+t.duration,0)),m=R(()=>n.session.modulesList.map(e=>({mod:e,path:Ce(e.id,n.session.meta.cwd),type:ve(e.id)}))),v=R(()=>ge.filter(e=>m.value.some(t=>e.match.test(t.mod.id)))),y=R(()=>{let e=new Map;if(!o.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=ze(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!v.value.some(t=>ve(e.module).name===t.name));return[...v.value.map((r,i)=>{let a=n.filter(e=>ve(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,o.value.resolveIdMetrics),i=n(`loads`,o.value.loadMetrics),a=n(`transforms`,o.value.transformMetrics);function s(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":l.value,"~resolves":d.value,"~transforms":u.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[s(`~resolves`,`Resolve Id`,r),s(`~loads`,`Load`,i),s(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),b=V(z()),{tree:x,chartOptions:S,graph:C,nodeHover:E,nodeSelected:k,selectedNode:M,selectNode:ee,buildGraph:P}=Be({data:[],tree:y,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(E.value=e),M.value=e.meta},onHover(e){e&&(E.value=e),e===null&&(E.value=void 0)},onLeave(){E.value=void 0},onSelect(e){k.value=e||x.value.root,M.value=e?.meta},getSubtext(e){return me(e.size,!0)}},onUpdate(){C.value=new Fe(x.value.root,S.value)}});return p(()=>Y.value.pluginDetailsViewType,()=>{P()}),(t,n)=>{let i=ce,a=X,p=Ne,m=J,_=Ae,v=da,y=xa,x=xe,S=Pe;return h(),G(j,null,[D(s)?(h(),T(i,{key:0})):D(o)?.calls?.length?(h(),G(`div`,Sa,[B(a,{absolute:``,"right-2":``,"top-1.5":``,onClick:n[0]||=e=>r(`close`)}),U(`div`,Ca,[U(`div`,wa,[B(p,{name:D(o)?.plugin_name},null,8,[`name`])]),U(`div`,Ta,[B(m,{duration:d.value,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${D(me)(d.value,!0)}`},{default:g(()=>[...n[3]||=[U(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),B(m,{duration:l.value,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${D(me)(l.value,!0)}`},{default:g(()=>[...n[4]||=[U(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),B(m,{duration:u.value,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${D(me)(u.value,!0)}`},{default:g(()=>[...n[5]||=[U(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),n[7]||=U(`span`,{op40:``},`|`,-1),B(m,{duration:f.value,flex:`~ gap-1 items-center`,title:`Total build cost: ${D(me)(f.value,!0)}`},{default:g(()=>[...n[6]||=[U(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),n[8]||=U(`span`,{op40:``},`|`,-1),B(_,{number:c.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${c.value.length}`},null,8,[`number`,`title`]),n[9]||=U(`span`,{op40:``},`|`,-1),B(_,{number:D(o)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${D(o)?.calls?.length??0}`},null,8,[`number`,`title`])]),U(`div`,Ea,[U(`button`,{class:W(D(Y).pluginDetailsViewType===`flow`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[1]||=e=>D(Y).pluginDetailsViewType=`flow`},[...n[10]||=[U(`div`,{"i-ph-git-branch-duotone":``,"rotate-180":``},null,-1),O(` Build Flow `,-1)]],2),U(`button`,{class:W(D(Y).pluginDetailsViewType===`sunburst`?`text-primary`:``),flex:`~ gap-2 items-center justify-center`,px2:``,py1:``,"w-40":``,border:`~ base rounded-lg`,hover:`bg-active`,onClick:n[2]||=e=>D(Y).pluginDetailsViewType=`sunburst`},[...n[11]||=[U(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),O(` Sunburst `,-1)]],2)])]),U(`div`,Da,[D(Y).pluginDetailsViewType===`flow`?(h(),T(v,{key:0,session:e.session,"build-metrics":D(o)},null,8,[`session`,`build-metrics`])):N(``,!0),D(Y).pluginDetailsViewType===`sunburst`&&D(C)?(h(),T(y,{key:1,graph:D(C),session:e.session,selected:D(k),onSelect:D(ee)},null,8,[`graph`,`session`,`selected`,`onSelect`])):N(``,!0)])])):(h(),G(`div`,Oa,[...n[12]||=[U(`span`,{italic:``,op50:``},` No data `,-1)]])),B(S,{"hover-x":b.x,"hover-y":b.y},{default:g(()=>[D(E)?(h(),G(`div`,ka,[D(E).meta?.title?(h(),G(`div`,Aa,[O(A(D(E).meta.title)+` `,1),B(m,{duration:D(E).meta.duration},null,8,[`duration`])])):(h(),G(j,{key:1},[D(E).meta?.module?(h(),G(`div`,ja,[B(x,{id:D(E).meta.module,session:e.session,link:!1},null,8,[`id`,`session`])])):N(``,!0),D(E).meta?.module?(h(),G(`div`,Ma,[U(`div`,Na,[n[13]||=U(`label`,{"text-xs":``,"opacity-70":``},`Start Time`,-1),U(`time`,{datetime:new Date(D(E).meta.timestamp_start).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(D(E).meta.timestamp_start)),9,Pa)]),U(`div`,Fa,[n[14]||=U(`label`,{"text-xs":``,"opacity-70":``},`End Time`,-1),U(`time`,{datetime:new Date(D(E).meta.timestamp_end).toISOString(),"font-mono":``,text:`xs`,bg:`base/10`,"px1.5":``,"py0.5":``,rounded:``},A(D(he)(D(E).meta.timestamp_end)),9,Ia)]),U(`div`,La,[n[15]||=U(`label`,{text:`xs`,op70:``},`Duration`,-1),B(m,{duration:D(E).meta.duration},null,8,[`duration`])])])):(h(),G(`div`,Ra,[B(m,{duration:D(E).meta?.duration},null,8,[`duration`])]))],64))])):N(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),Ba=Object.assign(za,{__name:`DataPluginDetailsLoader`}),Va={key:1,p4:``,relative:``,"h-full":``,"w-full":``,"of-auto":``,"z-panel-content":``},Ha=F({__name:`ChunkDetailsLoader`,props:{chunk:{},session:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ue(),{state:a,isLoading:o}=w(async()=>await i.value.$call(`vite:rolldown:get-chunk-info`,{session:n.session.id,id:n.chunk}),null);return(t,n)=>{let i=ce,s=X,c=ke;return h(),G(j,null,[D(o)?(h(),T(i,{key:0})):N(``,!0),D(a)?(h(),G(`div`,Va,[B(c,{session:e.session,chunk:D(a)},{default:g(()=>[B(s,{onClick:n[0]||=e=>r(`close`)})]),_:1},8,[`session`,`chunk`])])):N(``,!0)],64)}}}),Ua=Object.assign(Ha,{__name:`DataChunkDetailsLoader`}),Wa={key:1,p4:``,relative:``,"h-full":``,"w-full":``,"of-auto":``,"z-panel-content":``},Ga={flex:`~ col gap-3`},Ka=[`title`],qa={flex:`~ items-center gap-1`},Ja={open:`true`},Ya={op50:``},Xa={"inline-flex":``},Za={open:`true`},Qa={op50:``},$a=F({__name:`PackageDetailsLoader`,props:{session:{},package:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=R(()=>{let[,e,t]=n.package.match(/^(@?[^@]+)@(.+)$/);return{name:e,version:t}}),a=ue(),{state:o,isLoading:s}=w(async()=>await a.value.$call(`vite:rolldown:get-package-details`,{session:n.session.id,id:n.package}),null),c=R(()=>o.value?.files?.filter(e=>!!e.transformedCodeSize)??[]),l=R(()=>{let e=new Map;return o.value?.files.filter(e=>!!e.importers).flatMap(e=>e.importers).filter(e=>!e.path.startsWith(o.value?.dir??``)).forEach(t=>{e.set(t.path,t)}),Array.from(e.values())});function u(){let e=`https://www.npmjs.com/package/${i.value.name}`;window.open(e,`_blank`)}return(t,n)=>{let a=ce,d=Ue,f=Ee,p=X,m=xe,_=Oe,v=be;return h(),G(j,null,[D(s)?(h(),T(a,{key:0})):N(``,!0),D(o)?(h(),G(`div`,Wa,[U(`div`,Ga,[U(`div`,{flex:`~ gap-3 items-center`,title:e.package},[U(`div`,qa,[U(`div`,null,[B(d,{name:i.value.name},null,8,[`name`])]),B(f,{bytes:D(o).transformedCodeSize},null,8,[`bytes`])]),n[2]||=U(`div`,{"flex-auto":``},null,-1),U(`button`,{"btn-action":``,flex:`~ items-center`,onClick:u},[...n[1]||=[U(`div`,{"i-ph-arrow-square-out-duotone":``},null,-1),O(` Open in npm `,-1)]]),B(p,{onClick:n[0]||=e=>r(`close`)})],8,Ka),U(`details`,Ja,[U(`summary`,Ya,[U(`span`,null,`Bundled Files (`+A(c.value.length)+`)`,1)]),B(_,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:c.value},{default:g(({items:t})=>[(h(!0),G(j,null,M(t,t=>(h(),G(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},[B(m,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``,cwd:D(o).dir},null,8,[`id`,`session`,`cwd`]),U(`span`,Xa,[B(f,{bytes:t.transformedCodeSize,"text-xs":``},null,8,[`bytes`])])]))),128))]),_:1},8,[`list`])]),U(`details`,Za,[U(`summary`,Qa,[U(`span`,null,`Importers (`+A(l.value.length)+`)`,1)]),B(_,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:l.value},{default:g(({items:t})=>[(h(!0),G(j,null,M(t,t=>(h(),G(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},[B(m,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version?(h(),T(v,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):N(``,!0)]))),128))]),_:1},8,[`list`])])])])):N(``,!0)],64)}}}),eo=Object.assign($a,{__name:`DataPackageDetailsLoader`}),to={key:1,grid:`~ cols-[max-content_1fr]`,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``},no={"of-auto":``,"h-screen":``,"max-h-screen":``,relative:``},ro=F({__name:`[session]`,setup(e){let t=_().params,r=c(!0),i=V({id:R(()=>t.session),meta:void 0,modulesList:y([]),buildDuration:0}),o=ue(),s=a(),l=_(),u=R(()=>[`module`,`asset`,`plugin`,`chunk`,`package`].find(e=>l.query[e]!==void 0));function d(){u.value&&s.replace({query:{...l.query,[u.value]:void 0}})}return L(`Escape`,e=>{e.preventDefault(),!(!e.isTrusted||e.repeat)&&d()}),q(()=>i.meta?[{title:`Home`,to:`/session/${i.id}`,icon:`i-ph-house-duotone`},{title:`Modules Graph`,to:`/session/${i.id}/graph`,icon:`i-ph-graph-duotone`,category:`session`},{title:`Plugins`,to:`/session/${i.id}/plugins`,icon:`i-ph-plugs-duotone`,category:`session`},{title:`Chunks`,to:`/session/${i.id}/chunks`,icon:`i-ph-shapes-duotone `,category:`session`},{title:`Assets`,to:`/session/${i.id}/assets`,icon:`i-ph-files-duotone`,category:`session`},{title:`Packages`,to:`/session/${i.id}/packages`,icon:`i-ph-package-duotone`,category:`session`}]:[]),n(async()=>{let e=await o.value.$call(`vite:rolldown:get-session-summary`,{session:t.session});i.meta=e.meta,i.modulesList=e.modules.map(e=>({id:e.id,fileType:_e(e.id).name,imports:e.imports??[],importers:e.importers??[],buildMetrics:e.build_metrics})),i.buildDuration=e.build_duration,r.value=!1}),(e,t)=>{let n=ce,a=tt,o=S,s=ci,c=di,f=Ba,p=Ua,m=eo;return r.value?(h(),T(n,{key:0})):(h(),G(`div`,to,[B(a),U(`div`,no,[B(o,{session:i},null,8,[`session`])]),u.value?(h(),G(`div`,{key:0,fixed:``,"inset-0":``,"backdrop-blur-8":``,"backdrop-brightness-95":``,"z-panel-content":``,onClick:re(d,[`self`])},[u.value===`module`?(h(),G(`div`,{key:D(l).query.module,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"left-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`},[B(s,{module:D(l).query.module,session:i,onClose:d},null,8,[`module`,`session`])])):N(``,!0),u.value===`asset`?(h(),G(`div`,{key:D(l).query.asset,fixed:``,"right-0":``,"bottom-0":``,"top-30":``,"z-panel-content":``,"of-hidden":``,"bg-glass":``,border:`l t base rounded-tl-xl`,class:`left-20 xl:left-100 2xl:left-150`},[B(c,{asset:D(l).query.asset,session:i,onClose:d},null,8,[`asset`,`session`])])):N(``,!0),u.value===`plugin`?(h(),G(`div`,{key:D(l).query.plugin,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"left-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`},[B(f,{plugin:D(l).query.plugin,session:i,onClose:d},null,8,[`plugin`,`session`])])):N(``,!0),u.value===`chunk`?(h(),G(`div`,{key:D(l).query.chunk,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`,class:`left-20 xl:left-100 2xl:left-150`},[B(p,{chunk:Number(D(l).query.chunk),session:i,onClose:d},null,8,[`chunk`,`session`])])):N(``,!0),u.value===`package`?(h(),G(`div`,{key:D(l).query.package,fixed:``,"right-0":``,"bottom-0":``,"top-20":``,"z-panel-content":``,"bg-glass":``,border:`l t base rounded-tl-xl`,class:`left-20 xl:left-100 2xl:left-150`},[B(m,{package:D(l).query.package,session:i,onClose:d},null,8,[`package`,`session`])])):N(``,!0)])):N(``,!0)]))}}});export{ro as default};