From 2271d3b1d1649da13fd3a59bc1ce5f569932425f Mon Sep 17 00:00:00 2001 From: jangaraj Date: Wed, 3 Jan 2024 02:45:45 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20monitori?= =?UTF-8?q?ngartist/grafana-debugger@dd7152bf9b0bb6d4b7e5b284e0b8b5f60fa6c?= =?UTF-8?q?7f8=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...efault-1dc9e720.js => Default-d865cde3.js} | 2 +- assets/{Main-05e8c888.js => Main-8ffff2eb.js} | 26 +++++++++---------- .../{VCard-351f29df.js => VCard-e8733d6d.js} | 2 +- .../{index-56164c88.js => index-095acda4.js} | 2 +- .../{index-0f3cbc5a.js => index-09bbd48c.js} | 2 +- .../{index-f870a73c.js => index-1751cc1e.js} | 2 +- .../{index-4141977f.js => index-2cffaf90.js} | 2 +- .../{index-9c442895.js => index-2e9a66f1.js} | 2 +- .../{index-fd458b62.js => index-3a3bf0c6.js} | 2 +- .../{index-9d2f8ccc.js => index-3e85dac1.js} | 2 +- .../{index-4c6c0d24.js => index-663ae879.js} | 2 +- .../{index-5add8869.js => index-818ddc8e.js} | 2 +- .../{index-547495c1.js => index-9f504b76.js} | 2 +- .../{index-fec11b86.js => index-c370a9f3.js} | 2 +- .../{index-2bbf4953.js => index-d443257a.js} | 2 +- .../{index-6b5cec7f.js => index-dbd37248.js} | 2 +- .../{index-b1080ed6.js => index-f61adea6.js} | 2 +- index.html | 2 +- 18 files changed, 30 insertions(+), 30 deletions(-) rename assets/{Default-1dc9e720.js => Default-d865cde3.js} (99%) rename assets/{Main-05e8c888.js => Main-8ffff2eb.js} (98%) rename assets/{VCard-351f29df.js => VCard-e8733d6d.js} (99%) rename assets/{index-56164c88.js => index-095acda4.js} (97%) rename assets/{index-0f3cbc5a.js => index-09bbd48c.js} (99%) rename assets/{index-f870a73c.js => index-1751cc1e.js} (99%) rename assets/{index-4141977f.js => index-2cffaf90.js} (99%) rename assets/{index-9c442895.js => index-2e9a66f1.js} (99%) rename assets/{index-fd458b62.js => index-3a3bf0c6.js} (99%) rename assets/{index-9d2f8ccc.js => index-3e85dac1.js} (99%) rename assets/{index-4c6c0d24.js => index-663ae879.js} (94%) rename assets/{index-5add8869.js => index-818ddc8e.js} (98%) rename assets/{index-547495c1.js => index-9f504b76.js} (96%) rename assets/{index-fec11b86.js => index-c370a9f3.js} (95%) rename assets/{index-2bbf4953.js => index-d443257a.js} (99%) rename assets/{index-6b5cec7f.js => index-dbd37248.js} (99%) rename assets/{index-b1080ed6.js => index-f61adea6.js} (99%) diff --git a/assets/Default-1dc9e720.js b/assets/Default-d865cde3.js similarity index 99% rename from assets/Default-1dc9e720.js rename to assets/Default-d865cde3.js index ea0f17b..6415633 100644 --- a/assets/Default-1dc9e720.js +++ b/assets/Default-d865cde3.js @@ -1 +1 @@ -import{p as B,i as Q,c as i,r as ee,a as F,g as ue,s as T,o as re,b as ce,d as Me,e as Ne,f as Ee,h as de,j as C,k as Oe,l as H,m as n,u as ve,n as De,q as me,t as fe,w as z,v as Fe,x as te,y as ae,z as ge,A as U,B as je,C as Ue,D as G,E as qe,F as Ge,G as he,H as Ke,I as N,J as A}from"./index-b1080ed6.js";import{u as ye,m as q,a as Z,b as be,c as M,d as pe,e as _e,f as Se,g as xe,h as Ve,i as ke,j as Ie,V as Ze,k as W,l as Xe,n as j,o as Ye,p as Je}from"./VCard-351f29df.js";const K=Symbol.for("vuetify:layout"),Te=Symbol.for("vuetify:layout-item"),se=1e3,We=B({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),we=B({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Qe(){const e=Q(K);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Ce(e){const o=Q(K);if(!o)throw new Error("[Vuetify] Could not find injected layout");const t=e.id??`layout-item-${Me()}`,s=ue("useLayoutItem");ce(Te,{id:t});const l=T(!1);Ne(()=>l.value=!0),Ee(()=>l.value=!1);const{layoutItemStyles:a,layoutItemScrimStyles:u}=o.register(s,{...e,active:i(()=>l.value?!1:e.active.value),id:t});return de(()=>o.unregister(t)),{layoutItemStyles:a,layoutRect:o.layoutRect,layoutItemScrimStyles:u}}const et=(e,o,t,s)=>{let l={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...l}}];for(const u of e){const c=o.get(u),g=t.get(u),h=s.get(u);if(!c||!g||!h)continue;const d={...l,[c.value]:parseInt(l[c.value],10)+(h.value?parseInt(g.value,10):0)};a.push({id:u,layer:d}),l=d}return a};function tt(e){const o=Q(K,null),t=i(()=>o?o.rootZIndex.value-100:se),s=ee([]),l=F(new Map),a=F(new Map),u=F(new Map),c=F(new Map),g=F(new Map),{resizeRef:h,contentRect:d}=ye(),S=i(()=>{const f=new Map,x=e.overlaps??[];for(const r of x.filter(p=>p.includes(":"))){const[p,b]=r.split(":");if(!s.value.includes(p)||!s.value.includes(b))continue;const w=l.get(p),L=l.get(b),E=a.get(p),O=a.get(b);!w||!L||!E||!O||(f.set(b,{position:w.value,amount:parseInt(E.value,10)}),f.set(p,{position:L.value,amount:-parseInt(O.value,10)}))}return f}),y=i(()=>{const f=[...new Set([...u.values()].map(r=>r.value))].sort((r,p)=>r-p),x=[];for(const r of f){const p=s.value.filter(b=>{var w;return((w=u.get(b))==null?void 0:w.value)===r});x.push(...p)}return et(x,l,a,c)}),v=i(()=>!Array.from(g.values()).some(f=>f.value)),_=i(()=>y.value[y.value.length-1].layer),$=i(()=>({"--v-layout-left":C(_.value.left),"--v-layout-right":C(_.value.right),"--v-layout-top":C(_.value.top),"--v-layout-bottom":C(_.value.bottom),...v.value?void 0:{transition:"none"}})),k=i(()=>y.value.slice(1).map((f,x)=>{let{id:r}=f;const{layer:p}=y.value[x],b=a.get(r),w=l.get(r);return{id:r,...p,size:Number(b.value),position:w.value}})),m=f=>k.value.find(x=>x.id===f),V=ue("createLayout"),P=T(!1);re(()=>{P.value=!0}),ce(K,{register:(f,x)=>{let{id:r,order:p,position:b,layoutSize:w,elementSize:L,active:E,disableTransitions:O,absolute:Ae}=x;u.set(r,p),l.set(r,b),a.set(r,w),c.set(r,E),O&&g.set(r,O);const le=Oe(Te,V==null?void 0:V.vnode).indexOf(f);le>-1?s.value.splice(le,0,r):s.value.push(r);const oe=i(()=>k.value.findIndex(D=>D.id===r)),X=i(()=>t.value+y.value.length*2-oe.value*2),Re=i(()=>{const D=b.value==="left"||b.value==="right",Y=b.value==="right",He=b.value==="bottom",ne={[b.value]:0,zIndex:X.value,transform:`translate${D?"X":"Y"}(${(E.value?0:-110)*(Y||He?-1:1)}%)`,position:Ae.value||t.value!==se?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!P.value)return ne;const I=k.value[oe.value];if(!I)throw new Error(`[Vuetify] Could not find layout item "${r}"`);const J=S.value.get(r);return J&&(I[J.position]+=J.amount),{...ne,height:D?`calc(100% - ${I.top}px - ${I.bottom}px)`:L.value?`${L.value}px`:void 0,left:Y?void 0:`${I.left}px`,right:Y?`${I.right}px`:void 0,top:b.value!=="bottom"?`${I.top}px`:void 0,bottom:b.value!=="top"?`${I.bottom}px`:void 0,width:D?L.value?`${L.value}px`:void 0:`calc(100% - ${I.left}px - ${I.right}px)`}}),Le=i(()=>({zIndex:X.value-1}));return{layoutItemStyles:Re,layoutItemScrimStyles:Le,zIndex:X}},unregister:f=>{u.delete(f),l.delete(f),a.delete(f),c.delete(f),g.delete(f),s.value=s.value.filter(x=>x!==f)},mainRect:_,mainStyles:$,getLayoutItem:m,items:k,layoutRect:d,rootZIndex:t});const R=i(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),ze=i(()=>({zIndex:o?t.value:void 0,position:o?"relative":void 0,overflow:o?"hidden":void 0}));return{layoutClasses:R,layoutStyles:ze,getLayoutItem:m,items:k,layoutRect:d,layoutRef:h}}const at=B({scrollable:Boolean,...q(),...Z({tag:"main"})},"VMain"),lt=H()({name:"VMain",props:at(),setup(e,o){let{slots:t}=o;const{mainStyles:s}=Qe(),{ssrBootStyles:l}=be();return M(()=>n(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[s.value,l.value,e.style]},{default:()=>{var a,u;return[e.scrollable?n("div",{class:"v-main__scroller"},[(a=t.default)==null?void 0:a.call(t)]):(u=t.default)==null?void 0:u.call(t)]}})),{}}}),ot={__name:"View",setup(e){const o=ve();function t(){return o.global.current.value.dark?"bg-grey-darken-4":"bg-white"}return(s,l)=>{const a=De("router-view");return me(),fe(lt,{class:Fe(t())},{default:z(()=>[n(a)]),_:1},8,["class"])}}};const nt=B({...q(),...We({fullHeight:!0}),...te()},"VApp"),st=H()({name:"VApp",props:nt(),setup(e,o){let{slots:t}=o;const s=ae(e),{layoutClasses:l,getLayoutItem:a,items:u,layoutRef:c}=tt(e),{rtlClasses:g}=ge();return M(()=>{var h;return n("div",{ref:c,class:["v-application",s.themeClasses.value,l.value,g.value,e.class],style:[e.style]},[n("div",{class:"v-application__wrap"},[(h=t.default)==null?void 0:h.call(t)])])}),{getLayoutItem:a,items:u,theme:s}}});const Be=B({text:String,...q(),...Z()},"VToolbarTitle"),$e=H()({name:"VToolbarTitle",props:Be(),setup(e,o){let{slots:t}=o;return M(()=>{const s=!!(t.default||t.text||e.text);return n(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var l;return[s&&n("div",{class:"v-toolbar-title__placeholder"},[t.text?t.text():e.text,(l=t.default)==null?void 0:l.call(t)])]}})}),{}}}),it=[null,"prominent","default","comfortable","compact"],Pe=B({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>it.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...pe(),...q(),..._e(),...Se(),...Z({tag:"header"}),...te()},"VToolbar"),ie=H()({name:"VToolbar",props:Pe(),setup(e,o){var v;let{slots:t}=o;const{backgroundColorClasses:s,backgroundColorStyles:l}=xe(U(e,"color")),{borderClasses:a}=Ve(e),{elevationClasses:u}=ke(e),{roundedClasses:c}=Ie(e),{themeClasses:g}=ae(e),{rtlClasses:h}=ge(),d=T(!!(e.extended||(v=t.extension)!=null&&v.call(t))),S=i(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),y=i(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return je({VBtn:{variant:"text"}}),M(()=>{var m;const _=!!(e.title||t.title),$=!!(t.image||e.image),k=(m=t.extension)==null?void 0:m.call(t);return d.value=!!(e.extended||k),n(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},s.value,a.value,u.value,c.value,g.value,h.value,e.class],style:[l.value,e.style]},{default:()=>[$&&n("div",{key:"image",class:"v-toolbar__image"},[t.image?n(W,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):n(Ze,{key:"image-img",cover:!0,src:e.image},null)]),n(W,{defaults:{VTabs:{height:C(S.value)}}},{default:()=>{var V,P,R;return[n("div",{class:"v-toolbar__content",style:{height:C(S.value)}},[t.prepend&&n("div",{class:"v-toolbar__prepend"},[(V=t.prepend)==null?void 0:V.call(t)]),_&&n($e,{key:"title",text:e.title},{text:t.title}),(P=t.default)==null?void 0:P.call(t),t.append&&n("div",{class:"v-toolbar__append"},[(R=t.append)==null?void 0:R.call(t)])])]}}),n(W,{defaults:{VTabs:{height:C(y.value)}}},{default:()=>[n(Xe,null,{default:()=>[d.value&&n("div",{class:"v-toolbar__extension",style:{height:C(y.value)}},[k])]})]})]})}),{contentHeight:S,extensionHeight:y}}}),ut=B({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function rt(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:t}=o;let s=0;const l=ee(null),a=T(0),u=T(0),c=T(0),g=T(!1),h=T(!1),d=i(()=>Number(e.scrollThreshold)),S=i(()=>Ue((d.value-a.value)/d.value||0)),y=()=>{const v=l.value;!v||t&&!t.value||(s=a.value,a.value="window"in v?v.pageYOffset:v.scrollTop,h.value=a.value{u.value=u.value||a.value}),G(g,()=>{u.value=0}),re(()=>{G(()=>e.scrollTarget,v=>{var $;const _=v?document.querySelector(v):window;_&&_!==l.value&&(($=l.value)==null||$.removeEventListener("scroll",y),l.value=_,l.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),de(()=>{var v;(v=l.value)==null||v.removeEventListener("scroll",y)}),t&&G(t,y,{immediate:!0}),{scrollThreshold:d,currentScroll:a,currentThreshold:c,isScrollActive:g,scrollRatio:S,isScrollingUp:h,savedScroll:u}}const ct=B({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...Pe(),...we(),...ut(),height:{type:[Number,String],default:64}},"VAppBar"),dt=H()({name:"VAppBar",props:ct(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const s=ee(),l=qe(e,"modelValue"),a=i(()=>{var V;const m=new Set(((V=e.scrollBehavior)==null?void 0:V.split(" "))??[]);return{hide:m.has("hide"),inverted:m.has("inverted"),collapse:m.has("collapse"),elevate:m.has("elevate"),fadeImage:m.has("fade-image")}}),u=i(()=>{const m=a.value;return m.hide||m.inverted||m.collapse||m.elevate||m.fadeImage||!l.value}),{currentScroll:c,scrollThreshold:g,isScrollingUp:h,scrollRatio:d}=rt(e,{canScroll:u}),S=i(()=>e.collapse||a.value.collapse&&(a.value.inverted?d.value>0:d.value===0)),y=i(()=>e.flat||a.value.elevate&&(a.value.inverted?c.value>0:c.value===0)),v=i(()=>a.value.fadeImage?a.value.inverted?1-d.value:d.value:void 0),_=i(()=>{var P,R;if(a.value.hide&&a.value.inverted)return 0;const m=((P=s.value)==null?void 0:P.contentHeight)??0,V=((R=s.value)==null?void 0:R.extensionHeight)??0;return m+V});Ge(i(()=>!!e.scrollBehavior),()=>{Ke(()=>{a.value.hide?a.value.inverted?l.value=c.value>g.value:l.value=h.value||c.valueparseInt(e.order,10)),position:U(e,"location"),layoutSize:_,elementSize:T(void 0),active:l,absolute:U(e,"absolute")});return M(()=>{const m=ie.filterProps(e);return n(ie,he({ref:s,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...k.value,"--v-toolbar-image-opacity":v.value,height:void 0,...$.value},e.style]},m,{collapse:S.value,flat:y.value}),t)}),{}}}),vt=H()({name:"VAppBarTitle",props:Be(),setup(e,o){let{slots:t}=o;return M(()=>n($e,he(e,{class:"v-app-bar-title"}),t)),{}}});const mt=B({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...pe(),...q(),..._e(),...we(),...Se(),...Z({tag:"footer"}),...te()},"VFooter"),ft=H()({name:"VFooter",props:mt(),setup(e,o){let{slots:t}=o;const{themeClasses:s}=ae(e),{backgroundColorClasses:l,backgroundColorStyles:a}=xe(U(e,"color")),{borderClasses:u}=Ve(e),{elevationClasses:c}=ke(e),{roundedClasses:g}=Ie(e),h=T(32),{resizeRef:d}=ye(v=>{v.length&&(h.value=v[0].target.clientHeight)}),S=i(()=>e.height==="auto"?h.value:parseInt(e.height,10)),{layoutItemStyles:y}=Ce({id:e.name,order:i(()=>parseInt(e.order,10)),position:i(()=>"bottom"),layoutSize:S,elementSize:i(()=>e.height==="auto"?void 0:S.value),active:i(()=>e.app),absolute:U(e,"absolute")});return M(()=>n(e.tag,{ref:d,class:["v-footer",s.value,l.value,u.value,c.value,g.value,e.class],style:[a.value,e.app?y.value:{height:C(e.height)},e.style]},t)),{}}}),gt={class:"text-no-wrap ml-2 float-left"},ht=A("a",{class:"text-decoration-none",href:"https://monitoringartist.com",_target:"_blank"},"Monitoring Artist",-1),yt=A("div",{class:"ml-2 float-left"}," | ",-1),bt={class:"text-no-wrap ml-2 float-left"},pt=A("a",{class:"text-decoration-none",target:"_blank",href:"https://github.com/monitoringartist/grafana-debugger"},"GitHub repository",-1),_t=A("div",{class:"ml-2 float-left"}," | ",-1),St={class:"text-no-wrap ml-2 float-left"},xt=A("a",{class:"text-decoration-none",target:"_blank",href:"todo"},"Legal",-1),Vt={mounted(){const e=localStorage.getItem("theme");e?this.$vuetify.theme.dark=e==="dark":this.$vuetify.theme.dark=window.matchMedia("(prefers-color-scheme: dark)").matches},methods:{toggle_dark_mode:function(){this.$vuetify.theme.dark=!this.$vuetify.theme.dark,localStorage.setItem("theme",this.$vuetify.theme.dark.toString())}}},wt=Object.assign(Vt,{__name:"Default",setup(e){const o=ve();function t(){o.global.name.value=o.global.current.value.dark?"light":"dark",localStorage.setItem("theme",o.global.name.value)}return(s,l)=>(me(),fe(st,null,{default:z(()=>[n(dt,{flat:""},{default:z(()=>[n(vt,null,{default:z(()=>[n(j,{icon:"mdi-bug",size:"x-large"}),N(" Grafana Debugger ")]),_:1}),n(Ye,{onClick:t},{default:z(()=>[n(j,null,{default:z(()=>[N("mdi-theme-light-dark")]),_:1})]),_:1})]),_:1}),n(ot),n(ft,{class:"text-center"},{default:z(()=>[n(Je,{tile:"",flat:"",width:"100%",class:"d-flex align-center justify-center",style:{"font-size":"0.75rem"}},{default:z(()=>[A("div",gt,[N(" Crafted with "),n(j,{icon:"mdi-cards-heart",color:"red"}),N(" by: "),ht]),yt,A("div",bt,[n(j,{icon:"mdi-github"}),N(" "),pt]),_t,A("div",St,[n(j,{icon:"mdi-scale-balance"}),N(" "),xt])]),_:1})]),_:1})]),_:1}))}});export{wt as default}; +import{p as B,i as Q,c as i,r as ee,a as F,g as ue,s as T,o as re,b as ce,d as Me,e as Ne,f as Ee,h as de,j as C,k as Oe,l as H,m as n,u as ve,n as De,q as me,t as fe,w as z,v as Fe,x as te,y as ae,z as ge,A as U,B as je,C as Ue,D as G,E as qe,F as Ge,G as he,H as Ke,I as N,J as A}from"./index-f61adea6.js";import{u as ye,m as q,a as Z,b as be,c as M,d as pe,e as _e,f as Se,g as xe,h as Ve,i as ke,j as Ie,V as Ze,k as W,l as Xe,n as j,o as Ye,p as Je}from"./VCard-e8733d6d.js";const K=Symbol.for("vuetify:layout"),Te=Symbol.for("vuetify:layout-item"),se=1e3,We=B({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),we=B({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Qe(){const e=Q(K);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Ce(e){const o=Q(K);if(!o)throw new Error("[Vuetify] Could not find injected layout");const t=e.id??`layout-item-${Me()}`,s=ue("useLayoutItem");ce(Te,{id:t});const l=T(!1);Ne(()=>l.value=!0),Ee(()=>l.value=!1);const{layoutItemStyles:a,layoutItemScrimStyles:u}=o.register(s,{...e,active:i(()=>l.value?!1:e.active.value),id:t});return de(()=>o.unregister(t)),{layoutItemStyles:a,layoutRect:o.layoutRect,layoutItemScrimStyles:u}}const et=(e,o,t,s)=>{let l={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...l}}];for(const u of e){const c=o.get(u),g=t.get(u),h=s.get(u);if(!c||!g||!h)continue;const d={...l,[c.value]:parseInt(l[c.value],10)+(h.value?parseInt(g.value,10):0)};a.push({id:u,layer:d}),l=d}return a};function tt(e){const o=Q(K,null),t=i(()=>o?o.rootZIndex.value-100:se),s=ee([]),l=F(new Map),a=F(new Map),u=F(new Map),c=F(new Map),g=F(new Map),{resizeRef:h,contentRect:d}=ye(),S=i(()=>{const f=new Map,x=e.overlaps??[];for(const r of x.filter(p=>p.includes(":"))){const[p,b]=r.split(":");if(!s.value.includes(p)||!s.value.includes(b))continue;const w=l.get(p),L=l.get(b),E=a.get(p),O=a.get(b);!w||!L||!E||!O||(f.set(b,{position:w.value,amount:parseInt(E.value,10)}),f.set(p,{position:L.value,amount:-parseInt(O.value,10)}))}return f}),y=i(()=>{const f=[...new Set([...u.values()].map(r=>r.value))].sort((r,p)=>r-p),x=[];for(const r of f){const p=s.value.filter(b=>{var w;return((w=u.get(b))==null?void 0:w.value)===r});x.push(...p)}return et(x,l,a,c)}),v=i(()=>!Array.from(g.values()).some(f=>f.value)),_=i(()=>y.value[y.value.length-1].layer),$=i(()=>({"--v-layout-left":C(_.value.left),"--v-layout-right":C(_.value.right),"--v-layout-top":C(_.value.top),"--v-layout-bottom":C(_.value.bottom),...v.value?void 0:{transition:"none"}})),k=i(()=>y.value.slice(1).map((f,x)=>{let{id:r}=f;const{layer:p}=y.value[x],b=a.get(r),w=l.get(r);return{id:r,...p,size:Number(b.value),position:w.value}})),m=f=>k.value.find(x=>x.id===f),V=ue("createLayout"),P=T(!1);re(()=>{P.value=!0}),ce(K,{register:(f,x)=>{let{id:r,order:p,position:b,layoutSize:w,elementSize:L,active:E,disableTransitions:O,absolute:Ae}=x;u.set(r,p),l.set(r,b),a.set(r,w),c.set(r,E),O&&g.set(r,O);const le=Oe(Te,V==null?void 0:V.vnode).indexOf(f);le>-1?s.value.splice(le,0,r):s.value.push(r);const oe=i(()=>k.value.findIndex(D=>D.id===r)),X=i(()=>t.value+y.value.length*2-oe.value*2),Re=i(()=>{const D=b.value==="left"||b.value==="right",Y=b.value==="right",He=b.value==="bottom",ne={[b.value]:0,zIndex:X.value,transform:`translate${D?"X":"Y"}(${(E.value?0:-110)*(Y||He?-1:1)}%)`,position:Ae.value||t.value!==se?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!P.value)return ne;const I=k.value[oe.value];if(!I)throw new Error(`[Vuetify] Could not find layout item "${r}"`);const J=S.value.get(r);return J&&(I[J.position]+=J.amount),{...ne,height:D?`calc(100% - ${I.top}px - ${I.bottom}px)`:L.value?`${L.value}px`:void 0,left:Y?void 0:`${I.left}px`,right:Y?`${I.right}px`:void 0,top:b.value!=="bottom"?`${I.top}px`:void 0,bottom:b.value!=="top"?`${I.bottom}px`:void 0,width:D?L.value?`${L.value}px`:void 0:`calc(100% - ${I.left}px - ${I.right}px)`}}),Le=i(()=>({zIndex:X.value-1}));return{layoutItemStyles:Re,layoutItemScrimStyles:Le,zIndex:X}},unregister:f=>{u.delete(f),l.delete(f),a.delete(f),c.delete(f),g.delete(f),s.value=s.value.filter(x=>x!==f)},mainRect:_,mainStyles:$,getLayoutItem:m,items:k,layoutRect:d,rootZIndex:t});const R=i(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),ze=i(()=>({zIndex:o?t.value:void 0,position:o?"relative":void 0,overflow:o?"hidden":void 0}));return{layoutClasses:R,layoutStyles:ze,getLayoutItem:m,items:k,layoutRect:d,layoutRef:h}}const at=B({scrollable:Boolean,...q(),...Z({tag:"main"})},"VMain"),lt=H()({name:"VMain",props:at(),setup(e,o){let{slots:t}=o;const{mainStyles:s}=Qe(),{ssrBootStyles:l}=be();return M(()=>n(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[s.value,l.value,e.style]},{default:()=>{var a,u;return[e.scrollable?n("div",{class:"v-main__scroller"},[(a=t.default)==null?void 0:a.call(t)]):(u=t.default)==null?void 0:u.call(t)]}})),{}}}),ot={__name:"View",setup(e){const o=ve();function t(){return o.global.current.value.dark?"bg-grey-darken-4":"bg-white"}return(s,l)=>{const a=De("router-view");return me(),fe(lt,{class:Fe(t())},{default:z(()=>[n(a)]),_:1},8,["class"])}}};const nt=B({...q(),...We({fullHeight:!0}),...te()},"VApp"),st=H()({name:"VApp",props:nt(),setup(e,o){let{slots:t}=o;const s=ae(e),{layoutClasses:l,getLayoutItem:a,items:u,layoutRef:c}=tt(e),{rtlClasses:g}=ge();return M(()=>{var h;return n("div",{ref:c,class:["v-application",s.themeClasses.value,l.value,g.value,e.class],style:[e.style]},[n("div",{class:"v-application__wrap"},[(h=t.default)==null?void 0:h.call(t)])])}),{getLayoutItem:a,items:u,theme:s}}});const Be=B({text:String,...q(),...Z()},"VToolbarTitle"),$e=H()({name:"VToolbarTitle",props:Be(),setup(e,o){let{slots:t}=o;return M(()=>{const s=!!(t.default||t.text||e.text);return n(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var l;return[s&&n("div",{class:"v-toolbar-title__placeholder"},[t.text?t.text():e.text,(l=t.default)==null?void 0:l.call(t)])]}})}),{}}}),it=[null,"prominent","default","comfortable","compact"],Pe=B({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>it.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...pe(),...q(),..._e(),...Se(),...Z({tag:"header"}),...te()},"VToolbar"),ie=H()({name:"VToolbar",props:Pe(),setup(e,o){var v;let{slots:t}=o;const{backgroundColorClasses:s,backgroundColorStyles:l}=xe(U(e,"color")),{borderClasses:a}=Ve(e),{elevationClasses:u}=ke(e),{roundedClasses:c}=Ie(e),{themeClasses:g}=ae(e),{rtlClasses:h}=ge(),d=T(!!(e.extended||(v=t.extension)!=null&&v.call(t))),S=i(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),y=i(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return je({VBtn:{variant:"text"}}),M(()=>{var m;const _=!!(e.title||t.title),$=!!(t.image||e.image),k=(m=t.extension)==null?void 0:m.call(t);return d.value=!!(e.extended||k),n(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},s.value,a.value,u.value,c.value,g.value,h.value,e.class],style:[l.value,e.style]},{default:()=>[$&&n("div",{key:"image",class:"v-toolbar__image"},[t.image?n(W,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):n(Ze,{key:"image-img",cover:!0,src:e.image},null)]),n(W,{defaults:{VTabs:{height:C(S.value)}}},{default:()=>{var V,P,R;return[n("div",{class:"v-toolbar__content",style:{height:C(S.value)}},[t.prepend&&n("div",{class:"v-toolbar__prepend"},[(V=t.prepend)==null?void 0:V.call(t)]),_&&n($e,{key:"title",text:e.title},{text:t.title}),(P=t.default)==null?void 0:P.call(t),t.append&&n("div",{class:"v-toolbar__append"},[(R=t.append)==null?void 0:R.call(t)])])]}}),n(W,{defaults:{VTabs:{height:C(y.value)}}},{default:()=>[n(Xe,null,{default:()=>[d.value&&n("div",{class:"v-toolbar__extension",style:{height:C(y.value)}},[k])]})]})]})}),{contentHeight:S,extensionHeight:y}}}),ut=B({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function rt(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:t}=o;let s=0;const l=ee(null),a=T(0),u=T(0),c=T(0),g=T(!1),h=T(!1),d=i(()=>Number(e.scrollThreshold)),S=i(()=>Ue((d.value-a.value)/d.value||0)),y=()=>{const v=l.value;!v||t&&!t.value||(s=a.value,a.value="window"in v?v.pageYOffset:v.scrollTop,h.value=a.value{u.value=u.value||a.value}),G(g,()=>{u.value=0}),re(()=>{G(()=>e.scrollTarget,v=>{var $;const _=v?document.querySelector(v):window;_&&_!==l.value&&(($=l.value)==null||$.removeEventListener("scroll",y),l.value=_,l.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),de(()=>{var v;(v=l.value)==null||v.removeEventListener("scroll",y)}),t&&G(t,y,{immediate:!0}),{scrollThreshold:d,currentScroll:a,currentThreshold:c,isScrollActive:g,scrollRatio:S,isScrollingUp:h,savedScroll:u}}const ct=B({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...Pe(),...we(),...ut(),height:{type:[Number,String],default:64}},"VAppBar"),dt=H()({name:"VAppBar",props:ct(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const s=ee(),l=qe(e,"modelValue"),a=i(()=>{var V;const m=new Set(((V=e.scrollBehavior)==null?void 0:V.split(" "))??[]);return{hide:m.has("hide"),inverted:m.has("inverted"),collapse:m.has("collapse"),elevate:m.has("elevate"),fadeImage:m.has("fade-image")}}),u=i(()=>{const m=a.value;return m.hide||m.inverted||m.collapse||m.elevate||m.fadeImage||!l.value}),{currentScroll:c,scrollThreshold:g,isScrollingUp:h,scrollRatio:d}=rt(e,{canScroll:u}),S=i(()=>e.collapse||a.value.collapse&&(a.value.inverted?d.value>0:d.value===0)),y=i(()=>e.flat||a.value.elevate&&(a.value.inverted?c.value>0:c.value===0)),v=i(()=>a.value.fadeImage?a.value.inverted?1-d.value:d.value:void 0),_=i(()=>{var P,R;if(a.value.hide&&a.value.inverted)return 0;const m=((P=s.value)==null?void 0:P.contentHeight)??0,V=((R=s.value)==null?void 0:R.extensionHeight)??0;return m+V});Ge(i(()=>!!e.scrollBehavior),()=>{Ke(()=>{a.value.hide?a.value.inverted?l.value=c.value>g.value:l.value=h.value||c.valueparseInt(e.order,10)),position:U(e,"location"),layoutSize:_,elementSize:T(void 0),active:l,absolute:U(e,"absolute")});return M(()=>{const m=ie.filterProps(e);return n(ie,he({ref:s,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...k.value,"--v-toolbar-image-opacity":v.value,height:void 0,...$.value},e.style]},m,{collapse:S.value,flat:y.value}),t)}),{}}}),vt=H()({name:"VAppBarTitle",props:Be(),setup(e,o){let{slots:t}=o;return M(()=>n($e,he(e,{class:"v-app-bar-title"}),t)),{}}});const mt=B({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...pe(),...q(),..._e(),...we(),...Se(),...Z({tag:"footer"}),...te()},"VFooter"),ft=H()({name:"VFooter",props:mt(),setup(e,o){let{slots:t}=o;const{themeClasses:s}=ae(e),{backgroundColorClasses:l,backgroundColorStyles:a}=xe(U(e,"color")),{borderClasses:u}=Ve(e),{elevationClasses:c}=ke(e),{roundedClasses:g}=Ie(e),h=T(32),{resizeRef:d}=ye(v=>{v.length&&(h.value=v[0].target.clientHeight)}),S=i(()=>e.height==="auto"?h.value:parseInt(e.height,10)),{layoutItemStyles:y}=Ce({id:e.name,order:i(()=>parseInt(e.order,10)),position:i(()=>"bottom"),layoutSize:S,elementSize:i(()=>e.height==="auto"?void 0:S.value),active:i(()=>e.app),absolute:U(e,"absolute")});return M(()=>n(e.tag,{ref:d,class:["v-footer",s.value,l.value,u.value,c.value,g.value,e.class],style:[a.value,e.app?y.value:{height:C(e.height)},e.style]},t)),{}}}),gt={class:"text-no-wrap ml-2 float-left"},ht=A("a",{class:"text-decoration-none",href:"https://monitoringartist.com",_target:"_blank"},"Monitoring Artist",-1),yt=A("div",{class:"ml-2 float-left"}," | ",-1),bt={class:"text-no-wrap ml-2 float-left"},pt=A("a",{class:"text-decoration-none",target:"_blank",href:"https://github.com/monitoringartist/grafana-debugger"},"GitHub repository",-1),_t=A("div",{class:"ml-2 float-left"}," | ",-1),St={class:"text-no-wrap ml-2 float-left"},xt=A("a",{class:"text-decoration-none",target:"_blank",href:"todo"},"Legal",-1),Vt={mounted(){const e=localStorage.getItem("theme");e?this.$vuetify.theme.dark=e==="dark":this.$vuetify.theme.dark=window.matchMedia("(prefers-color-scheme: dark)").matches},methods:{toggle_dark_mode:function(){this.$vuetify.theme.dark=!this.$vuetify.theme.dark,localStorage.setItem("theme",this.$vuetify.theme.dark.toString())}}},wt=Object.assign(Vt,{__name:"Default",setup(e){const o=ve();function t(){o.global.name.value=o.global.current.value.dark?"light":"dark",localStorage.setItem("theme",o.global.name.value)}return(s,l)=>(me(),fe(st,null,{default:z(()=>[n(dt,{flat:""},{default:z(()=>[n(vt,null,{default:z(()=>[n(j,{icon:"mdi-bug",size:"x-large"}),N(" Grafana Debugger ")]),_:1}),n(Ye,{onClick:t},{default:z(()=>[n(j,null,{default:z(()=>[N("mdi-theme-light-dark")]),_:1})]),_:1})]),_:1}),n(ot),n(ft,{class:"text-center"},{default:z(()=>[n(Je,{tile:"",flat:"",width:"100%",class:"d-flex align-center justify-center",style:{"font-size":"0.75rem"}},{default:z(()=>[A("div",gt,[N(" Crafted with "),n(j,{icon:"mdi-cards-heart",color:"red"}),N(" by: "),ht]),yt,A("div",bt,[n(j,{icon:"mdi-github"}),N(" "),pt]),_t,A("div",St,[n(j,{icon:"mdi-scale-balance"}),N(" "),xt])]),_:1})]),_:1})]),_:1}))}});export{wt as default}; diff --git a/assets/Main-05e8c888.js b/assets/Main-8ffff2eb.js similarity index 98% rename from assets/Main-05e8c888.js rename to assets/Main-8ffff2eb.js index 87389b1..287db45 100644 --- a/assets/Main-05e8c888.js +++ b/assets/Main-8ffff2eb.js @@ -1,16 +1,16 @@ -var Ty=Object.defineProperty;var Ey=(n,e,t)=>e in n?Ty(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var it=(n,e,t)=>(Ey(n,typeof e!="symbol"?e+"":e,t),t),ba=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var k=(n,e,t)=>(ba(n,e,"read from private field"),t?t.call(n):e.get(n)),oe=(n,e,t)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,t)},te=(n,e,t,i)=>(ba(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t);var Oo=(n,e,t,i)=>({set _(r){te(n,e,r,t)},get _(){return k(n,e,i)}}),H=(n,e,t)=>(ba(n,e,"access private method"),t);import{K as We,i as le,m as g,a as Ct,r as ce,D as se,o as De,h as Kn,L as fl,c as M,M as Nt,N as Qu,_ as T,O as _t,b as wt,A as ke,s as ct,P as Zy,p as Oe,Q as ng,x as Dn,l as xe,y as Jn,B as Au,R as $t,S as An,T as Il,E as Mi,U as Zn,V as Gs,W as Us,G as Tn,j as xr,z as Ll,X as Vl,Y as Tu,Z as Vr,g as Ry,d as ql,$ as Dy,a0 as Iy,a1 as Ly,a2 as Ti,a3 as ig,a4 as rg,a5 as Vy,a6 as qy,a7 as sg,a8 as My,a9 as Xy,aa as No,ab as Mn,ac as Wy,F as Od,ad as By,ae as zy,q as qe,af as Mt,w as B,ag as bd,u as jy,I as K,ah as Ne,t as Jt,ai as va,J as z,aj as Yy,ak as Ny,v as Fy}from"./index-b1080ed6.js";import{m as Ue,q as og,a as Ut,r as Ml,s as Eu,c as Be,d as Xl,t as Hs,e as Wl,v as Zu,f as Ks,w as lg,x as Gy,R as Ru,h as Bl,y as ag,z as Js,i as zl,j as eo,A as Uy,B as Du,C as cg,D as ug,E as hg,n as $n,k as Yn,F as Xi,G as jl,b as dg,M as Yl,l as Hy,H as Iu,I as Lu,J as Vu,g as qu,o as ze,K as Ky,L as Jy,N as ek,O as tk,P as fg,Q as pg,S as nk,T as ik,U as rk,W as sk,p as Ur,X as Hr}from"./VCard-351f29df.js";class ya{constructor(e){let{x:t,y:i,width:r,height:s}=e;this.x=t,this.y=i,this.width=r,this.height=s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function ok(n){const e=n.getBoundingClientRect(),t=getComputedStyle(n),i=t.transform;if(i){let r,s,o,l,a;if(i.startsWith("matrix3d("))r=i.slice(9,-1).split(/, /),s=+r[0],o=+r[5],l=+r[12],a=+r[13];else if(i.startsWith("matrix("))r=i.slice(7,-1).split(/, /),s=+r[0],o=+r[3],l=+r[4],a=+r[5];else return new ya(e);const c=t.transformOrigin,u=e.x-l-(1-s)*parseFloat(c),h=e.y-a-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),d=s?e.width/s:n.offsetWidth+1,f=o?e.height/o:n.offsetHeight+1;return new ya({x:u,y:h,width:d,height:f})}else return new ya(e)}function lk(n,e,t){if(typeof n.animate>"u")return{finished:Promise.resolve()};let i;try{i=n.animate(e,t)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(r=>{i.onfinish=()=>{r(i)}})),i}const ak="cubic-bezier(0.4, 0, 0.2, 1)";var ck=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function uk(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}const hk="/grot-icon.png",P="md-editor",dk="md-editor-v3",fk="https://at.alicdn.com/t/c/font_2605852_prouiefeic.js",pk="https://at.alicdn.com/t/c/font_2605852_prouiefeic.css",Te="https://cdnjs.cloudflare.com/ajax/libs",mk=`${Te}/highlight.js/11.9.0/highlight.min.js`,vd={main:`${Te}/prettier/2.8.0/standalone.js`,markdown:`${Te}/prettier/2.8.0/parser-markdown.js`},yd={css:`${Te}/cropperjs/1.5.13/cropper.min.css`,js:`${Te}/cropperjs/1.5.13/cropper.min.js`},gk=`${Te}/screenfull.js/5.2.0/screenfull.min.js`,mg=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],gg=["markdownTotal","=","scrollSwitch"],kd={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},Ok=`${Te}/mermaid/10.6.1/mermaid.esm.min.mjs`,Sd={js:`${Te}/KaTeX/0.16.9/katex.min.js`,css:`${Te}/KaTeX/0.16.9/katex.min.css`},wd={a11y:{light:`${Te}/highlight.js/11.9.0/styles/a11y-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/a11y-dark.min.css`},atom:{light:`${Te}/highlight.js/11.9.0/styles/atom-one-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/atom-one-dark.min.css`},github:{light:`${Te}/highlight.js/11.9.0/styles/github.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/github-dark.min.css`},gradient:{light:`${Te}/highlight.js/11.9.0/styles/gradient-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/gradient-dark.min.css`},kimbie:{light:`${Te}/highlight.js/11.9.0/styles/kimbie-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/kimbie-dark.min.css`},paraiso:{light:`${Te}/highlight.js/11.9.0/styles/paraiso-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${Te}/highlight.js/11.9.0/styles/qtcreator-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Te}/highlight.js/11.9.0/styles/stackoverflow-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/stackoverflow-dark.min.css`}},je={editorExtensions:{},editorConfig:{},codeMirrorExtensions:(n,e)=>e,markdownItConfig:()=>{},markdownItPlugins:n=>n,iconfontType:"svg",mermaidConfig:n=>n},bo=170,Fl=(n,e=200)=>{let t=0;return(...i)=>new Promise(r=>{t&&(clearTimeout(t),r("cancel")),t=window.setTimeout(()=>{n.apply(void 0,i),t=0,r("done")},e)})},bk=(n,e={_blank:!0,nofollow:!0})=>{const t=document.createElement("a");t.href=n,e._blank&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),t.click()},vk=()=>{let n=-1;return(e,t,i,r=100)=>{const s=()=>{i&&(typeof r=="number"?setTimeout(i,r):i())};n!==-1&&(cancelAnimationFrame(n),s());let o=e.scrollTop;const l=()=>{n=-1;const a=t-o;o=o+a/5,Math.abs(a)<1?(e.scrollTo(0,t),s()):(e.scrollTo(0,o),n=requestAnimationFrame(l))};n=requestAnimationFrame(l)}},yk=(n,e=200)=>{let t=0,i=null;return(...r)=>{const s=o=>{t===0&&(t=o),o-t>=e?(n.apply(void 0,i),i=null,t=0):window.requestAnimationFrame(s)};i===null&&window.requestAnimationFrame(s),i=r}},kk=n=>{const e=t=>{const{scrollHeight:i,scrollWidth:r,offsetHeight:s,offsetWidth:o,scrollLeft:l,scrollTop:a}=n,c=t.x,u=t.y,h=f=>{const p=a+u-f.y,m=l+c-f.x,O=i-s,b=r-o,y={};m>=0&&m<=b&&(y.left=m),p>=0&&p<=O&&(y.top=p),n.scroll(y)};document.addEventListener("mousemove",h);const d=()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return n.addEventListener("mousedown",e),()=>{n.removeEventListener("mousedown",e)}},zt=({instance:n,ctx:e,props:t={}},i="default")=>{const r=(n==null?void 0:n.$slots[i])||(e==null?void 0:e.slots[i]);return(r?r(n):"")||t[i]},Sk={overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}},sr=We({props:Sk,setup(n,e){const t=`${P}-dropdown-hidden`,i=Ct({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),r=ce(),s=ce(),o=()=>{var u;i.triggerHover=!0;const h=r.value,d=s.value;if(!h||!d)return;const f=h.getBoundingClientRect(),p=h.offsetTop,m=h.offsetLeft,O=f.height,b=f.width,y=((u=document.querySelector(n.relative))==null?void 0:u.scrollLeft)||0;i.overlayStyle={...i.overlayStyle,top:p+O+"px",left:m-d.offsetWidth/2+b/2-y+"px"},n.onChange(!0)},l=()=>{i.overlayHover=!0};se(()=>n.visible,u=>{u?i.overlayClass=i.overlayClass.filter(h=>h!==t):i.overlayClass.push(t)});let a=-1;const c=u=>{r.value===u.target?i.triggerHover=!1:i.overlayHover=!1,clearTimeout(a),a=window.setTimeout(()=>{!i.overlayHover&&!i.triggerHover&&n.onChange(!1)},10)};return De(()=>{r.value.addEventListener("mouseenter",o),r.value.addEventListener("mouseleave",c),s.value.addEventListener("mouseenter",l),s.value.addEventListener("mouseleave",c)}),Kn(()=>{r.value.removeEventListener("mouseenter",o),r.value.removeEventListener("mouseleave",c),s.value.removeEventListener("mouseenter",l),s.value.removeEventListener("mouseleave",c)}),()=>{const u=zt({ctx:e}),h=zt({props:n,ctx:e},"overlay"),d=fl(u instanceof Array?u[0]:u,{ref:r}),f=g("div",{class:[`${P}-dropdown`,i.overlayClass],style:i.overlayStyle,ref:s},[g("div",{class:`${P}-dropdown-overlay`},[h instanceof Array?h[0]:h])]);return[d,f]}}}),wk={title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]},insert:{type:Function},language:{type:String},theme:{type:String},default:{type:[String,Object]}},Fo=We({name:"DropdownToolbar",props:wk,emits:["onChange"],setup(n,e){const t=le("editorId");return()=>{const i=zt({props:n,ctx:e},"trigger"),r=zt({props:n,ctx:e},"overlay"),s=zt({props:n,ctx:e});return g(sr,{relative:`#${t}-toolbar-wrapper`,visible:n.visible,onChange:o=>{n.onChange instanceof Function?n.onChange(o):e.emit("onChange",o)},overlay:r},{default:()=>[g("div",{class:`${P}-toolbar-item`,title:n.title||""},[i,s])]})}}});Fo.install=n=>(n.component(Fo.name,Fo),n);var xk=Object.defineProperty,$k=(n,e,t)=>e in n?xk(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Pk=(n,e,t)=>($k(n,typeof e!="symbol"?e+"":e,t),t);let Ck=class{constructor(){Pk(this,"pools",{})}remove(e,t,i){const r=this.pools[e]&&this.pools[e][t];r&&(this.pools[e][t]=r.filter(s=>s!==i))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...i){this.pools[e]||(this.pools[e]={});const r=this.pools[e][t];r&&r.forEach(s=>{try{s(...i)}catch(o){console.error(`${t} monitor event exception!`,o)}})}};const Y=new Ck,Gl="onSave",Mu="changeCatalogVisible",Og="changeFullscreen",xd="pageFullscreenChanged",$d="fullscreenChanged",Pd="previewChanged",Cd="htmlPreviewChanged",_d="catalogVisibleChanged",bg="textareaFocus",Go="buildFinished",Fi="errorCatcher",Ae="replace",Ul="uploadImage",bc="openModals",vg="ctrlZ",yg="ctrlShiftZ",vc="catalogChanged",kg="pushCatalog",_k=(n,e="image.png")=>{const t=n.split(","),i=t[0].match(/:(.*?);/);if(i){const r=i[1],s=atob(t[1]);let o=s.length;const l=new Uint8Array(o);for(;o--;)l[o]=s.charCodeAt(o);return new File([l],e,{type:r})}return null},Qk=n=>{if(!n)return n;const e=n.split(` -`),t=['"),`${n}${t.join("")}`},Ak=(n,e)=>{if(!n||!e)return 0;const t=n==null?void 0:n.getBoundingClientRect();if(e===document.documentElement)return t.top-e.clientTop;const i=e==null?void 0:e.getBoundingClientRect();return t.top-i.top},Tk=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,Qd=(n,e)=>{const t=i=>{const r=n.parentElement||document.body,s=r.offsetWidth,o=r.offsetHeight,{clientWidth:l}=document.documentElement,{clientHeight:a}=document.documentElement,c=i.offsetX,u=i.offsetY,h=f=>{let p=f.x+document.body.scrollLeft-document.body.clientLeft-c,m=f.y+document.body.scrollTop-document.body.clientTop-u;p=p<1?1:p{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return n.addEventListener("mousedown",t),()=>{n.removeEventListener("mousedown",t)}},Xt=(n,e="")=>{const t=document.getElementById(n.id),i=n.onload;n.onload=null;const r=function(s){typeof i=="function"&&i.bind(this)(s),n.removeEventListener("load",r)};t?e!==""&&(t.addEventListener("load",r),Reflect.get(window,e)&&t.dispatchEvent(new Event("load"))):(n.addEventListener("load",r),document.head.appendChild(n))},Ek=Fl((n,e,t)=>{const i=document.getElementById(n);i&&i.setAttribute(e,t)},10),Zk=We({props:{name:{type:String,default:""}},setup(n){return()=>je.iconfontType==="svg"?g("svg",{class:`${P}-icon`,"aria-hidden":"true"},[g("use",{"xlink:href":`#${P}-icon-${n.name}`},null)]):g("i",{class:`${P}-iconfont ${P}-icon-${n.name}`},null)}}),fe=We({props:{name:{type:String,default:""}},setup(n){const e=le("customIcon");return()=>{const t=e.value[n.name];return typeof t=="object"?typeof t.component=="object"?Qu(t.component,t.props):g("span",{innerHTML:t.component},null):g(Zk,{name:n.name},null)}}}),Rk={title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}}},ur=We({name:"MdModal",props:Rk,emits:["onClose"],setup(n,e){const t=ce(n.visible),i=ce([`${P}-modal`]),r=ce(),s=ce();let o=()=>{};const l=Ct({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),a=M(()=>n.isFullscreen?{width:"100%",height:"100%"}:{width:n.width,height:n.height});return De(()=>{o=Qd(s.value,(c,u)=>{l.initPos.left=c+"px",l.initPos.top=u+"px"})}),Kn(()=>{o()}),se(()=>n.isFullscreen,c=>{c?o():o=Qd(s.value,(u,h)=>{l.initPos.left=u+"px",l.initPos.top=h+"px"})}),se(()=>n.visible,c=>{c?(i.value.push("zoom-in"),t.value=c,Nt(()=>{const u=r.value.offsetWidth/2,h=r.value.offsetHeight/2,d=document.documentElement.clientWidth/2,f=document.documentElement.clientHeight/2;l.initPos.left=d-u+"px",l.initPos.top=f-h+"px"}),setTimeout(()=>{i.value=i.value.filter(u=>u!=="zoom-in")},140)):(i.value.push("zoom-out"),setTimeout(()=>{i.value=i.value.filter(u=>u!=="zoom-out"),t.value=c},130))}),()=>{const c=zt({ctx:e}),u=zt({props:n,ctx:e},"title");return g("div",{style:{display:t.value?"block":"none"}},[g("div",{class:`${P}-modal-mask`,onClick:()=>{n.onClose?n.onClose():e.emit("onClose")}},null),g("div",{class:i.value,style:{...l.initPos,...a.value},ref:r},[g("div",{class:`${P}-modal-header`,ref:s},[u||""]),g("div",{class:`${P}-modal-body`},[c]),g("div",{class:`${P}-modal-func`},[n.showAdjust&&g("div",{class:`${P}-modal-adjust`,onClick:h=>{h.stopPropagation(),n.isFullscreen?l.initPos=l.historyPos:(l.historyPos=l.initPos,l.initPos={left:"0",top:"0"}),n.onAdjust(!n.isFullscreen)}},[g(fe,{name:n.isFullscreen?"suoxiao":"fangda"},null)]),g("div",{class:`${P}-modal-close`,onClick:h=>{h.stopPropagation(),n.onClose?n.onClose():e.emit("onClose")}},[g(fe,{name:"close"},null)])])])])}}});ur.install=n=>(n.component(ur.name,ur),n);class ge{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=$r(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),wn.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$r(this,e,t);let i=[];return this.decompose(e,t,i,0),wn.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new bs(this),s=new bs(e);for(let o=t,l=t;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(l+=r.value.length,r.done||l>=i)return!0}}iter(e=1){return new bs(this,e)}iterRange(e,t=this.length){return new Sg(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new wg(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ge.empty:e.length<=32?new Ye(e):wn.from(Ye.split(e,[]))}}class Ye extends ge{constructor(e,t=Dk(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let s=0;;s++){let o=this.text[s],l=r+o.length;if((t?i:l)>=e)return new Ik(r,l,i,o);r=l+1,i++}}decompose(e,t,i,r){let s=e<=0&&t>=this.length?this:new Ye(Ad(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),l=Uo(s.text,o.text.slice(),0,s.length);if(l.length<=32)i.push(new Ye(l,o.length+s.length));else{let a=l.length>>1;i.push(new Ye(l.slice(0,a)),new Ye(l.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof Ye))return super.replace(e,t,i);[e,t]=$r(this,e,t);let r=Uo(this.text,Uo(i.text,Ad(this.text,0,e)),t),s=this.length+i.length-(t-e);return r.length<=32?new Ye(r,s):wn.from(Ye.split(r,[]),s)}sliceString(e,t=this.length,i=` +var Ty=Object.defineProperty;var Ey=(n,e,t)=>e in n?Ty(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var it=(n,e,t)=>(Ey(n,typeof e!="symbol"?e+"":e,t),t),ba=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var k=(n,e,t)=>(ba(n,e,"read from private field"),t?t.call(n):e.get(n)),oe=(n,e,t)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,t)},te=(n,e,t,i)=>(ba(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t);var Oo=(n,e,t,i)=>({set _(r){te(n,e,r,t)},get _(){return k(n,e,i)}}),H=(n,e,t)=>(ba(n,e,"access private method"),t);import{K as We,i as le,m as g,a as Ct,r as ce,D as se,o as De,h as Kn,L as fl,c as M,M as Nt,N as Qu,_ as T,O as _t,b as wt,A as ke,s as ct,P as Zy,p as Oe,Q as ng,x as Dn,l as xe,y as Jn,B as Au,R as $t,S as An,T as Il,E as Mi,U as Zn,V as Gs,W as Us,G as Tn,j as xr,z as Ll,X as Vl,Y as Tu,Z as Vr,g as Ry,d as ql,$ as Dy,a0 as Iy,a1 as Ly,a2 as Ti,a3 as ig,a4 as rg,a5 as Vy,a6 as qy,a7 as sg,a8 as My,a9 as Xy,aa as No,ab as Mn,ac as Wy,F as Od,ad as By,ae as zy,q as qe,af as Mt,w as B,ag as bd,u as jy,I as J,ah as Ne,t as Jt,ai as va,J as z,aj as Yy,ak as Ny,v as Fy}from"./index-f61adea6.js";import{m as Ue,q as og,a as Ut,r as Ml,s as Eu,c as Be,d as Xl,t as Hs,e as Wl,v as Zu,f as Ks,w as lg,x as Gy,R as Ru,h as Bl,y as ag,z as Js,i as zl,j as eo,A as Uy,B as Du,C as cg,D as ug,E as hg,n as $n,k as Yn,F as Xi,G as jl,b as dg,M as Yl,l as Hy,H as Iu,I as Lu,J as Vu,g as qu,o as je,K as Ky,L as Jy,N as ek,O as tk,P as fg,Q as pg,S as nk,T as ik,U as rk,W as sk,p as Ur,X as Hr}from"./VCard-e8733d6d.js";class ya{constructor(e){let{x:t,y:i,width:r,height:s}=e;this.x=t,this.y=i,this.width=r,this.height=s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function ok(n){const e=n.getBoundingClientRect(),t=getComputedStyle(n),i=t.transform;if(i){let r,s,o,l,a;if(i.startsWith("matrix3d("))r=i.slice(9,-1).split(/, /),s=+r[0],o=+r[5],l=+r[12],a=+r[13];else if(i.startsWith("matrix("))r=i.slice(7,-1).split(/, /),s=+r[0],o=+r[3],l=+r[4],a=+r[5];else return new ya(e);const c=t.transformOrigin,u=e.x-l-(1-s)*parseFloat(c),h=e.y-a-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),d=s?e.width/s:n.offsetWidth+1,f=o?e.height/o:n.offsetHeight+1;return new ya({x:u,y:h,width:d,height:f})}else return new ya(e)}function lk(n,e,t){if(typeof n.animate>"u")return{finished:Promise.resolve()};let i;try{i=n.animate(e,t)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(r=>{i.onfinish=()=>{r(i)}})),i}const ak="cubic-bezier(0.4, 0, 0.2, 1)";var ck=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function uk(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}const hk="/grot-icon.png",P="md-editor",dk="md-editor-v3",fk="https://at.alicdn.com/t/c/font_2605852_prouiefeic.js",pk="https://at.alicdn.com/t/c/font_2605852_prouiefeic.css",Te="https://cdnjs.cloudflare.com/ajax/libs",mk=`${Te}/highlight.js/11.9.0/highlight.min.js`,vd={main:`${Te}/prettier/2.8.0/standalone.js`,markdown:`${Te}/prettier/2.8.0/parser-markdown.js`},yd={css:`${Te}/cropperjs/1.5.13/cropper.min.css`,js:`${Te}/cropperjs/1.5.13/cropper.min.js`},gk=`${Te}/screenfull.js/5.2.0/screenfull.min.js`,mg=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],gg=["markdownTotal","=","scrollSwitch"],kd={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},Ok=`${Te}/mermaid/10.6.1/mermaid.esm.min.mjs`,Sd={js:`${Te}/KaTeX/0.16.9/katex.min.js`,css:`${Te}/KaTeX/0.16.9/katex.min.css`},wd={a11y:{light:`${Te}/highlight.js/11.9.0/styles/a11y-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/a11y-dark.min.css`},atom:{light:`${Te}/highlight.js/11.9.0/styles/atom-one-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/atom-one-dark.min.css`},github:{light:`${Te}/highlight.js/11.9.0/styles/github.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/github-dark.min.css`},gradient:{light:`${Te}/highlight.js/11.9.0/styles/gradient-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/gradient-dark.min.css`},kimbie:{light:`${Te}/highlight.js/11.9.0/styles/kimbie-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/kimbie-dark.min.css`},paraiso:{light:`${Te}/highlight.js/11.9.0/styles/paraiso-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${Te}/highlight.js/11.9.0/styles/qtcreator-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Te}/highlight.js/11.9.0/styles/stackoverflow-light.min.css`,dark:`${Te}/highlight.js/11.9.0/styles/stackoverflow-dark.min.css`}},ze={editorExtensions:{},editorConfig:{},codeMirrorExtensions:(n,e)=>e,markdownItConfig:()=>{},markdownItPlugins:n=>n,iconfontType:"svg",mermaidConfig:n=>n},bo=170,Fl=(n,e=200)=>{let t=0;return(...i)=>new Promise(r=>{t&&(clearTimeout(t),r("cancel")),t=window.setTimeout(()=>{n.apply(void 0,i),t=0,r("done")},e)})},bk=(n,e={_blank:!0,nofollow:!0})=>{const t=document.createElement("a");t.href=n,e._blank&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),t.click()},vk=()=>{let n=-1;return(e,t,i,r=100)=>{const s=()=>{i&&(typeof r=="number"?setTimeout(i,r):i())};n!==-1&&(cancelAnimationFrame(n),s());let o=e.scrollTop;const l=()=>{n=-1;const a=t-o;o=o+a/5,Math.abs(a)<1?(e.scrollTo(0,t),s()):(e.scrollTo(0,o),n=requestAnimationFrame(l))};n=requestAnimationFrame(l)}},yk=(n,e=200)=>{let t=0,i=null;return(...r)=>{const s=o=>{t===0&&(t=o),o-t>=e?(n.apply(void 0,i),i=null,t=0):window.requestAnimationFrame(s)};i===null&&window.requestAnimationFrame(s),i=r}},kk=n=>{const e=t=>{const{scrollHeight:i,scrollWidth:r,offsetHeight:s,offsetWidth:o,scrollLeft:l,scrollTop:a}=n,c=t.x,u=t.y,h=f=>{const p=a+u-f.y,m=l+c-f.x,O=i-s,b=r-o,y={};m>=0&&m<=b&&(y.left=m),p>=0&&p<=O&&(y.top=p),n.scroll(y)};document.addEventListener("mousemove",h);const d=()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return n.addEventListener("mousedown",e),()=>{n.removeEventListener("mousedown",e)}},zt=({instance:n,ctx:e,props:t={}},i="default")=>{const r=(n==null?void 0:n.$slots[i])||(e==null?void 0:e.slots[i]);return(r?r(n):"")||t[i]},Sk={overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}},sr=We({props:Sk,setup(n,e){const t=`${P}-dropdown-hidden`,i=Ct({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),r=ce(),s=ce(),o=()=>{var u;i.triggerHover=!0;const h=r.value,d=s.value;if(!h||!d)return;const f=h.getBoundingClientRect(),p=h.offsetTop,m=h.offsetLeft,O=f.height,b=f.width,y=((u=document.querySelector(n.relative))==null?void 0:u.scrollLeft)||0;i.overlayStyle={...i.overlayStyle,top:p+O+"px",left:m-d.offsetWidth/2+b/2-y+"px"},n.onChange(!0)},l=()=>{i.overlayHover=!0};se(()=>n.visible,u=>{u?i.overlayClass=i.overlayClass.filter(h=>h!==t):i.overlayClass.push(t)});let a=-1;const c=u=>{r.value===u.target?i.triggerHover=!1:i.overlayHover=!1,clearTimeout(a),a=window.setTimeout(()=>{!i.overlayHover&&!i.triggerHover&&n.onChange(!1)},10)};return De(()=>{r.value.addEventListener("mouseenter",o),r.value.addEventListener("mouseleave",c),s.value.addEventListener("mouseenter",l),s.value.addEventListener("mouseleave",c)}),Kn(()=>{r.value.removeEventListener("mouseenter",o),r.value.removeEventListener("mouseleave",c),s.value.removeEventListener("mouseenter",l),s.value.removeEventListener("mouseleave",c)}),()=>{const u=zt({ctx:e}),h=zt({props:n,ctx:e},"overlay"),d=fl(u instanceof Array?u[0]:u,{ref:r}),f=g("div",{class:[`${P}-dropdown`,i.overlayClass],style:i.overlayStyle,ref:s},[g("div",{class:`${P}-dropdown-overlay`},[h instanceof Array?h[0]:h])]);return[d,f]}}}),wk={title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]},insert:{type:Function},language:{type:String},theme:{type:String},default:{type:[String,Object]}},Fo=We({name:"DropdownToolbar",props:wk,emits:["onChange"],setup(n,e){const t=le("editorId");return()=>{const i=zt({props:n,ctx:e},"trigger"),r=zt({props:n,ctx:e},"overlay"),s=zt({props:n,ctx:e});return g(sr,{relative:`#${t}-toolbar-wrapper`,visible:n.visible,onChange:o=>{n.onChange instanceof Function?n.onChange(o):e.emit("onChange",o)},overlay:r},{default:()=>[g("div",{class:`${P}-toolbar-item`,title:n.title||""},[i,s])]})}}});Fo.install=n=>(n.component(Fo.name,Fo),n);var xk=Object.defineProperty,$k=(n,e,t)=>e in n?xk(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Pk=(n,e,t)=>($k(n,typeof e!="symbol"?e+"":e,t),t);let Ck=class{constructor(){Pk(this,"pools",{})}remove(e,t,i){const r=this.pools[e]&&this.pools[e][t];r&&(this.pools[e][t]=r.filter(s=>s!==i))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...i){this.pools[e]||(this.pools[e]={});const r=this.pools[e][t];r&&r.forEach(s=>{try{s(...i)}catch(o){console.error(`${t} monitor event exception!`,o)}})}};const Y=new Ck,Gl="onSave",Mu="changeCatalogVisible",Og="changeFullscreen",xd="pageFullscreenChanged",$d="fullscreenChanged",Pd="previewChanged",Cd="htmlPreviewChanged",_d="catalogVisibleChanged",bg="textareaFocus",Go="buildFinished",Fi="errorCatcher",Ae="replace",Ul="uploadImage",bc="openModals",vg="ctrlZ",yg="ctrlShiftZ",vc="catalogChanged",kg="pushCatalog",_k=(n,e="image.png")=>{const t=n.split(","),i=t[0].match(/:(.*?);/);if(i){const r=i[1],s=atob(t[1]);let o=s.length;const l=new Uint8Array(o);for(;o--;)l[o]=s.charCodeAt(o);return new File([l],e,{type:r})}return null},Qk=n=>{if(!n)return n;const e=n.split(` +`),t=['"),`${n}${t.join("")}`},Ak=(n,e)=>{if(!n||!e)return 0;const t=n==null?void 0:n.getBoundingClientRect();if(e===document.documentElement)return t.top-e.clientTop;const i=e==null?void 0:e.getBoundingClientRect();return t.top-i.top},Tk=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,Qd=(n,e)=>{const t=i=>{const r=n.parentElement||document.body,s=r.offsetWidth,o=r.offsetHeight,{clientWidth:l}=document.documentElement,{clientHeight:a}=document.documentElement,c=i.offsetX,u=i.offsetY,h=f=>{let p=f.x+document.body.scrollLeft-document.body.clientLeft-c,m=f.y+document.body.scrollTop-document.body.clientTop-u;p=p<1?1:p{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d)};return n.addEventListener("mousedown",t),()=>{n.removeEventListener("mousedown",t)}},Xt=(n,e="")=>{const t=document.getElementById(n.id),i=n.onload;n.onload=null;const r=function(s){typeof i=="function"&&i.bind(this)(s),n.removeEventListener("load",r)};t?e!==""&&(t.addEventListener("load",r),Reflect.get(window,e)&&t.dispatchEvent(new Event("load"))):(n.addEventListener("load",r),document.head.appendChild(n))},Ek=Fl((n,e,t)=>{const i=document.getElementById(n);i&&i.setAttribute(e,t)},10),Zk=We({props:{name:{type:String,default:""}},setup(n){return()=>ze.iconfontType==="svg"?g("svg",{class:`${P}-icon`,"aria-hidden":"true"},[g("use",{"xlink:href":`#${P}-icon-${n.name}`},null)]):g("i",{class:`${P}-iconfont ${P}-icon-${n.name}`},null)}}),fe=We({props:{name:{type:String,default:""}},setup(n){const e=le("customIcon");return()=>{const t=e.value[n.name];return typeof t=="object"?typeof t.component=="object"?Qu(t.component,t.props):g("span",{innerHTML:t.component},null):g(Zk,{name:n.name},null)}}}),Rk={title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}}},ur=We({name:"MdModal",props:Rk,emits:["onClose"],setup(n,e){const t=ce(n.visible),i=ce([`${P}-modal`]),r=ce(),s=ce();let o=()=>{};const l=Ct({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),a=M(()=>n.isFullscreen?{width:"100%",height:"100%"}:{width:n.width,height:n.height});return De(()=>{o=Qd(s.value,(c,u)=>{l.initPos.left=c+"px",l.initPos.top=u+"px"})}),Kn(()=>{o()}),se(()=>n.isFullscreen,c=>{c?o():o=Qd(s.value,(u,h)=>{l.initPos.left=u+"px",l.initPos.top=h+"px"})}),se(()=>n.visible,c=>{c?(i.value.push("zoom-in"),t.value=c,Nt(()=>{const u=r.value.offsetWidth/2,h=r.value.offsetHeight/2,d=document.documentElement.clientWidth/2,f=document.documentElement.clientHeight/2;l.initPos.left=d-u+"px",l.initPos.top=f-h+"px"}),setTimeout(()=>{i.value=i.value.filter(u=>u!=="zoom-in")},140)):(i.value.push("zoom-out"),setTimeout(()=>{i.value=i.value.filter(u=>u!=="zoom-out"),t.value=c},130))}),()=>{const c=zt({ctx:e}),u=zt({props:n,ctx:e},"title");return g("div",{style:{display:t.value?"block":"none"}},[g("div",{class:`${P}-modal-mask`,onClick:()=>{n.onClose?n.onClose():e.emit("onClose")}},null),g("div",{class:i.value,style:{...l.initPos,...a.value},ref:r},[g("div",{class:`${P}-modal-header`,ref:s},[u||""]),g("div",{class:`${P}-modal-body`},[c]),g("div",{class:`${P}-modal-func`},[n.showAdjust&&g("div",{class:`${P}-modal-adjust`,onClick:h=>{h.stopPropagation(),n.isFullscreen?l.initPos=l.historyPos:(l.historyPos=l.initPos,l.initPos={left:"0",top:"0"}),n.onAdjust(!n.isFullscreen)}},[g(fe,{name:n.isFullscreen?"suoxiao":"fangda"},null)]),g("div",{class:`${P}-modal-close`,onClick:h=>{h.stopPropagation(),n.onClose?n.onClose():e.emit("onClose")}},[g(fe,{name:"close"},null)])])])])}}});ur.install=n=>(n.component(ur.name,ur),n);class ge{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=$r(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),wn.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$r(this,e,t);let i=[];return this.decompose(e,t,i,0),wn.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new bs(this),s=new bs(e);for(let o=t,l=t;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(l+=r.value.length,r.done||l>=i)return!0}}iter(e=1){return new bs(this,e)}iterRange(e,t=this.length){return new Sg(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new wg(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ge.empty:e.length<=32?new Ye(e):wn.from(Ye.split(e,[]))}}class Ye extends ge{constructor(e,t=Dk(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let s=0;;s++){let o=this.text[s],l=r+o.length;if((t?i:l)>=e)return new Ik(r,l,i,o);r=l+1,i++}}decompose(e,t,i,r){let s=e<=0&&t>=this.length?this:new Ye(Ad(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),l=Uo(s.text,o.text.slice(),0,s.length);if(l.length<=32)i.push(new Ye(l,o.length+s.length));else{let a=l.length>>1;i.push(new Ye(l.slice(0,a)),new Ye(l.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof Ye))return super.replace(e,t,i);[e,t]=$r(this,e,t);let r=Uo(this.text,Uo(i.text,Ad(this.text,0,e)),t),s=this.length+i.length-(t-e);return r.length<=32?new Ye(r,s):wn.from(Ye.split(r,[]),s)}sliceString(e,t=this.length,i=` `){[e,t]=$r(this,e,t);let r="";for(let s=0,o=0;s<=t&&oe&&o&&(r+=i),es&&(r+=l.slice(Math.max(0,e-s),t-s)),s=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,i.length==32&&(t.push(new Ye(i,r)),i=[],r=-1);return r>-1&&t.push(new Ye(i,r)),t}}class wn extends ge{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let s=0;;s++){let o=this.children[s],l=r+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,r);r=l+1,i=a+1}}decompose(e,t,i,r){for(let s=0,o=0;o<=t&&s=o){let c=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!c?i.push(l):l.decompose(e-o,t-o,i,c)}o=a+1}}replace(e,t,i){if([e,t]=$r(this,e,t),i.lines=s&&t<=l){let a=o.replace(e-s,t-s,i),c=this.lines-o.lines+a.lines;if(a.lines>5-1&&a.lines>c>>5+1){let u=this.children.slice();return u[r]=a,new wn(u,this.length-(t-e)+i.length)}return super.replace(s,l,a)}s=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` `){[e,t]=$r(this,e,t);let r="";for(let s=0,o=0;se&&s&&(r+=i),eo&&(r+=l.sliceString(e-o,t-o,i)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof wn))return 0;let i=0,[r,s,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,s+=t){if(r==o||s==l)return i;let a=this.children[r],c=e.children[s];if(a!=c)return i+a.scanIdentical(c,t);i+=a.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let f of e)i+=f.lines;if(i<32){let f=[];for(let p of e)p.flatten(f);return new Ye(f,t)}let r=Math.max(32,i>>5),s=r<<1,o=r>>1,l=[],a=0,c=-1,u=[];function h(f){let p;if(f.lines>s&&f instanceof wn)for(let m of f.children)h(m);else f.lines>o&&(a>o||!a)?(d(),l.push(f)):f instanceof Ye&&a&&(p=u[u.length-1])instanceof Ye&&f.lines+p.lines<=32?(a+=f.lines,c+=f.length+1,u[u.length-1]=new Ye(p.text.concat(f.text),p.length+1+f.length)):(a+f.lines>r&&d(),a+=f.lines,c+=f.length+1,u.push(f))}function d(){a!=0&&(l.push(u.length==1?u[0]:wn.from(u,c)),c=-1,a=u.length=0)}for(let f of e)h(f);return d(),l.length==1?l[0]:new wn(l,t)}}ge.empty=new Ye([""],0);function Dk(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Uo(n,e,t=0,i=1e9){for(let r=0,s=0,o=!0;s=t&&(a>i&&(l=l.slice(0,i-r)),r0?1:(e instanceof Ye?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],o=s>>1,l=r instanceof Ye?r.text.length:r.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(r instanceof Ye){let a=r.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=r.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof Ye?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Sg{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new bs(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class wg{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ge.prototype[Symbol.iterator]=function(){return this.iter()},bs.prototype[Symbol.iterator]=Sg.prototype[Symbol.iterator]=wg.prototype[Symbol.iterator]=function(){return this});let Ik=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){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8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;nn)return hr[e-1]<=n;return!1}function Td(n){return n>=127462&&n<=127487}const Ed=8205;function bt(n,e,t=!0,i=!0){return(t?xg:Vk)(n,e,i)}function xg(n,e,t){if(e==n.length)return e;e&&$g(n.charCodeAt(e))&&Pg(n.charCodeAt(e-1))&&e--;let i=on(n,e);for(e+=hi(i);e=0&&Td(on(n,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function Vk(n,e,t){for(;e>0;){let i=xg(n,e-2,t);if(i=56320&&n<57344}function Pg(n){return n>=55296&&n<56320}function on(n,e){let t=n.charCodeAt(e);if(!Pg(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return $g(i)?(t-55296<<10)+(i-56320)+65536:t}function qk(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function hi(n){return n<65536?1:2}const yc=/\r\n?|\n/;var Ot=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Ot||(Ot={}));class En{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return s+(e-r);s+=l}else{if(i!=Ot.Simple&&c>=e&&(i==Ot.TrackDel&&re||i==Ot.TrackBefore&&re))return null;if(c>e||c==e&&t<0&&!l)return e==r||t<0?s:s+a;s+=a}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let i=0,r=0;i=0&&r<=t&&l>=e)return rt?"cover":!0;r=l}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new En(e)}static create(e){return new En(e)}}class et extends En{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return kc(this,(t,i,r,s,o)=>e=e.replace(r,r+(i-t),o),!1),e}mapDesc(e,t=!1){return Sc(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,s=0;r=0){t[r]=l,t[r+1]=o;let a=r>>1;for(;i.length0&&pi(i,t,s.text),s.forward(u),l+=u}let c=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let r=[],s=[],o=0,l=null;function a(u=!1){if(!u&&!r.length)return;od||h<0||d>t)throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${t})`);let p=f?typeof f=="string"?ge.of(f.split(i||yc)):f:ge.empty,m=p.length;if(h==d&&m==0)return;ho&&ht(r,h-o,-1),ht(r,d-h,m),pi(s,r,p),o=d}}return c(e),a(!l),l}static empty(e){return new et(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let r=0;rl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;i.length=0&&t<=0&&t==n[r+1]?n[r]+=e:e==0&&n[r]==0?n[r+1]+=t:i?(n[r]+=e,n[r+1]+=t):n.push(e,t)}function pi(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(r,c,s,u,h),r=c,s=u}}}function Sc(n,e,t,i=!1){let r=[],s=i?[]:null,o=new Cs(n),l=new Cs(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);ht(r,c,-1),o.forward(c),l.forward(c)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let c=0,u=o.len;for(;u;)if(l.ins==-1){let h=Math.min(u,l.len);c+=h,u-=h,l.forward(h)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>c),s.forward2(a),o.forward(a)}}}}class Cs{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?ge.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?ge.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ri{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Ri(i,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return V.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return V.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return V.range(e.anchor,e.head)}static create(e,t,i){return new Ri(e,t,i)}}class V{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:V.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new V(e.ranges.map(t=>Ri.fromJSON(t)),e.main)}static single(e,t=e){return new V([V.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;re?8:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((r,s)=>r.from-s.from),t=e.indexOf(i);for(let r=1;rs.head?V.range(a,l):V.range(l,a))}}return new V(e,t)}}function _g(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Xu=0;class J{constructor(e,t,i,r,s){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=r,this.id=Xu++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new J(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Wu),!!e.static,e.enables)}of(e){return new Ho([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ho(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ho(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Wu(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Ho{constructor(e,t,i,r){this.dependencies=e,this.facet=t,this.type=i,this.value=r,this.id=Xu++}dynamicSlot(e){var t;let i=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,l=this.type==2,a=!1,c=!1,u=[];for(let h of this.dependencies)h=="doc"?a=!0:h=="selection"?c=!0:((t=e[h.id])!==null&&t!==void 0?t:1)&1||u.push(e[h.id]);return{create(h){return h.values[o]=i(h),1},update(h,d){if(a&&d.docChanged||c&&(d.docChanged||d.selection)||wc(h,u)){let f=i(h);if(l?!Zd(f,h.values[o],r):!r(f,h.values[o]))return h.values[o]=f,1}return 0},reconfigure:(h,d)=>{let f,p=d.config.address[s];if(p!=null){let m=ml(d,p);if(this.dependencies.every(O=>O instanceof J?d.facet(O)===h.facet(O):O instanceof In?d.field(O,!1)==h.field(O,!1):!0)||(l?Zd(f=i(h),m,r):r(f=i(h),m)))return h.values[o]=m,0}else f=i(h);return h.values[o]=f,1}}}}function Zd(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[a.id]),r=t.map(a=>a.type),s=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let c=[];for(let u=0;ui===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Rd).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,r)=>{let s=i.values[t],o=this.updateF(s,r);return this.compareF(s,o)?0:(i.values[t]=o,1)},reconfigure:(i,r)=>r.config.address[this.id]!=null?(i.values[t]=r.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,Rd.of({field:this,create:e})]}get extension(){return this}}const Ei={lowest:4,low:3,default:2,high:1,highest:0};function Kr(n){return e=>new Qg(e,n)}const Gi={highest:Kr(Ei.highest),high:Kr(Ei.high),default:Kr(Ei.default),low:Kr(Ei.low),lowest:Kr(Ei.lowest)};class Qg{constructor(e,t){this.inner=e,this.prec=t}}class Oi{of(e){return new xc(this,e)}reconfigure(e){return Oi.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class xc{constructor(e,t){this.compartment=e,this.inner=t}}class pl{constructor(e,t,i,r,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let r=[],s=Object.create(null),o=new Map;for(let d of Xk(e,t,o))d instanceof In?r.push(d):(s[d.facet.id]||(s[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],c=[];for(let d of r)l[d.id]=c.length<<1,c.push(f=>d.slot(f));let u=i==null?void 0:i.config.facets;for(let d in s){let f=s[d],p=f[0].facet,m=u&&u[d]||[];if(f.every(O=>O.type==0))if(l[p.id]=a.length<<1|1,Wu(m,f))a.push(i.facet(p));else{let O=p.combine(f.map(b=>b.value));a.push(i&&p.compare(O,i.facet(p))?i.facet(p):O)}else{for(let O of f)O.type==0?(l[O.id]=a.length<<1|1,a.push(O.value)):(l[O.id]=c.length<<1,c.push(b=>O.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(O=>Mk(O,p,f))}}let h=c.map(d=>d(l));return new pl(e,o,h,l,a,s)}}function Xk(n,e,t){let i=[[],[],[],[],[]],r=new Map;function s(o,l){let a=r.get(o);if(a!=null){if(a<=l)return;let c=i[a].indexOf(o);c>-1&&i[a].splice(c,1),o instanceof xc&&t.delete(o.compartment)}if(r.set(o,l),Array.isArray(o))for(let c of o)s(c,l);else if(o instanceof xc){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),s(c,l)}else if(o instanceof Qg)s(o.inner,o.prec);else if(o instanceof In)i[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof Ho)i[l].push(o),o.facet.extensions&&s(o.facet.extensions,Ei.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,l)}}return s(n,Ei.default),i.reduce((o,l)=>o.concat(l))}function vs(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let r=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|r}function ml(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Ag=J.define(),$c=J.define({combine:n=>n.some(e=>e),static:!0}),Tg=J.define({combine:n=>n.length?n[0]:void 0,static:!0}),Eg=J.define(),Zg=J.define(),Rg=J.define(),Dg=J.define({combine:n=>n.length?n[0]:!1});class ei{constructor(e,t){this.type=e,this.value=t}static define(){return new Wk}}class Wk{of(e){return new ei(this,e)}}class Bk{constructor(e){this.map=e}of(e){return new we(this,e)}}class we{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new we(this.type,t)}is(e){return this.type==e}static define(e={}){return new Bk(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let r of e){let s=r.map(t);s&&i.push(s)}return i}}we.reconfigure=we.define();we.appendConfig=we.define();class tt{constructor(e,t,i,r,s,o){this.startState=e,this.changes=t,this.selection=i,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&_g(i,t.newLength),s.some(l=>l.type==tt.time)||(this.annotations=s.concat(tt.time.of(Date.now())))}static create(e,t,i,r,s,o){return new tt(e,t,i,r,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(tt.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}tt.time=ei.define();tt.userEvent=ei.define();tt.addToHistory=ei.define();tt.remote=ei.define();function zk(n,e){let t=[];for(let i=0,r=0;;){let s,o;if(i=n[i]))s=n[i++],o=n[i++];else if(r=0;r--){let s=i[r](n);s instanceof tt?n=s:Array.isArray(s)&&s.length==1&&s[0]instanceof tt?n=s[0]:n=Lg(e,dr(s),!1)}return n}function Yk(n){let e=n.startState,t=e.facet(Rg),i=n;for(let r=t.length-1;r>=0;r--){let s=t[r](n);s&&Object.keys(s).length&&(i=Ig(i,Pc(e,s,n.changes.newLength),!0))}return i==n?n:tt.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Nk=[];function dr(n){return n==null?Nk:Array.isArray(n)?n:[n]}var Nn=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(Nn||(Nn={}));const Fk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Cc;try{Cc=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Gk(n){if(Cc)return Cc.test(n);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||Fk.test(t)))return!0}return!1}function Uk(n){return e=>{if(!/\S/.test(e))return Nn.Space;if(Gk(e))return Nn.Word;for(let t=0;t-1)return Nn.Word;return Nn.Other}}class pe{constructor(e,t,i,r,s,o){this.config=e,this.doc=t,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;lr.set(c,a)),t=null),r.set(l.value.compartment,l.value.extension)):l.is(we.reconfigure)?(t=null,i=l.value):l.is(we.appendConfig)&&(t=null,i=dr(i).concat(l.value));let s;t?s=e.startState.values.slice():(t=pl.resolve(i,r,this),s=new pe(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let o=e.startState.facet($c)?e.newSelection:e.newSelection.asSingle();new pe(t,e.newDoc,o,s,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:V.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),r=this.changes(i.changes),s=[i.range],o=dr(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return pe.create({doc:e.doc,selection:V.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=pl.resolve(e.extensions||[],new Map),i=e.doc instanceof ge?e.doc:ge.of((e.doc||"").split(t.staticFacet(pe.lineSeparator)||yc)),r=e.selection?e.selection instanceof V?e.selection:V.single(e.selection.anchor,e.selection.head):V.single(0);return _g(r,i.length),t.staticFacet($c)||(r=r.asSingle()),new pe(t,i,r,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(pe.tabSize)}get lineBreak(){return this.facet(pe.lineSeparator)||` -`}get readOnly(){return this.facet(Dg)}phrase(e,...t){for(let i of this.facet(pe.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>t.length?i:t[s-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let s of this.facet(Ag))for(let o of s(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Uk(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let a=bt(t,o,!1);if(s(t.slice(a,o))!=Nn.Word)break;o=a}for(;ln.length?n[0]:4});pe.lineSeparator=Tg;pe.readOnly=Dg;pe.phrases=J.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});pe.languageData=Ag;pe.changeFilter=Eg;pe.transactionFilter=Zg;pe.transactionExtender=Rg;Oi.reconfigure=we.define();function Hl(n,e,t={}){let i={};for(let r of n)for(let s of Object.keys(r)){let o=r[s],l=i[s];if(l===void 0)i[s]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,s))i[s]=t[s](l,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Wi{eq(e){return this==e}range(e,t=e){return _c.create(e,t,this)}}Wi.prototype.startSide=Wi.prototype.endSide=0;Wi.prototype.point=!1;Wi.prototype.mapMode=Ot.TrackDel;let _c=class Vg{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Vg(e,t,i)}};function Qc(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Bu{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let s=i?this.to:this.from;for(let o=r,l=s.length;;){if(o==l)return o;let a=o+l>>1,c=s[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return c>=0?o:l;c>=0?l=a:o=a+1}}between(e,t,i,r){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,s);sf||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(l=Math.max(l,f-d)),i.push(c),r.push(d-o),s.push(f-o))}return{mapped:i.length?new Bu(r,s,i,l):null,pos:o}}}class Ze{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new Ze(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(Qc)),this.isEmpty)return t.length?Ze.of(t):this;let l=new qg(this,null,-1).goto(0),a=0,c=[],u=new Pr;for(;l.value||a=0){let h=t[a++];u.addInner(h.from,h.to,h.value)||c.push(h)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&e<=s+o.length&&o.between(s,e-s,t-s,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return _s.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return _s.from(e).goto(t)}static compare(e,t,i,r,s=-1){let o=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),a=Dd(o,l,i),c=new Jr(o,a,s),u=new Jr(l,a,s);i.iterGaps((h,d,f)=>Id(c,h,u,d,f,r)),i.empty&&i.length==0&&Id(c,0,u,0,0,r)}static eq(e,t,i=0,r){r==null&&(r=1e9-1);let s=e.filter(u=>!u.isEmpty&&t.indexOf(u)<0),o=t.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let l=Dd(s,o),a=new Jr(s,l,0).goto(i),c=new Jr(o,l,0).goto(i);for(;;){if(a.to!=c.to||!Ac(a.active,c.active)||a.point&&(!c.point||!a.point.eq(c.point)))return!1;if(a.to>r)return!0;a.next(),c.next()}}static spans(e,t,i,r,s=-1){let o=new Jr(e,null,s).goto(t),l=t,a=o.openStart;for(;;){let c=Math.min(o.to,i);if(o.point){let u=o.activeForPoint(o.to),h=o.pointFroml&&(r.span(l,c,o.active,a),a=o.openEnd(c));if(o.to>i)return a+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(e,t=!1){let i=new Pr;for(let r of e instanceof _c?[e]:t?Hk(e):e)i.add(r.from,r.to,r.value);return i.finish()}static join(e){if(!e.length)return Ze.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let r=e[i];r!=Ze.empty;r=r.nextLayer)t=new Ze(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}Ze.empty=new Ze([],[],null,-1);function Hk(n){if(n.length>1)for(let e=n[0],t=1;t0)return n.slice().sort(Qc);e=i}return n}Ze.empty.nextLayer=Ze.empty;class Pr{finishChunk(e){this.chunks.push(new Bu(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new Pr)).add(e,t,i)}addInner(e,t,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(Ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Dd(n,e,t){let i=new Map;for(let s of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&r.push(new qg(o,t,i,s));return r.length==1?r[0]:new _s(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)ka(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)ka(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ka(this.heap,0)}}}function ka(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let r=n[i];if(i+1=0&&(r=n[i+1],i++),t.compare(r)<0)break;n[i]=t,n[e]=r,e=i}}class Jr{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=_s.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){vo(this.active,e),vo(this.activeTo,e),vo(this.activeRank,e),this.minActive=Ld(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:r,rank:s}=this.cursor;for(;t0;)t++;yo(this.active,t,i),yo(this.activeTo,t,r),yo(this.activeRank,t,s),e&&yo(e,t,this.cursor.from),this.minActive=Ld(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&vo(i,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[r]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Id(n,e,t,i,r,s){n.goto(e),t.goto(i);let o=i+r,l=i,a=i-e;for(;;){let c=n.to+a-t.to||n.endSide-t.endSide,u=c<0?n.to+a:t.to,h=Math.min(u,o);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&Ac(n.activeForPoint(n.to),t.activeForPoint(t.to))||s.comparePoint(l,h,n.point,t.point):h>l&&!Ac(n.active,t.active)&&s.compareRange(l,h,n.active,t.active),u>o)break;l=u,c<=0&&n.next(),c>=0&&t.next()}}function Ac(n,e){if(n.length!=e.length)return!1;for(let t=0;t=e;i--)n[i+1]=n[i];n[e]=t}function Ld(n,e){let t=-1,i=1e9;for(let r=0;r=e)return r;if(r==n.length)break;s+=n.charCodeAt(r)==9?t-s%t:1,r=bt(n,r)}return i===!0?-1:n.length}const Tc="ͼ",Vd=typeof Symbol>"u"?"__"+Tc:Symbol.for(Tc),Ec=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class yi{constructor(e,t){this.rules=[];let{finish:i}=t||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,l,a,c){let u=[],h=/^@(\w+)\b/.exec(o[0]),d=h&&h[1]=="keyframes";if(h&&l==null)return a.push(o[0]+";");for(let f in l){let p=l[f];if(/&/.test(f))s(f.split(/,\s*/).map(m=>o.map(O=>m.replace(/&/,O))).reduce((m,O)=>m.concat(O)),p,a);else if(p&&typeof p=="object"){if(!h)throw new RangeError("The value of a property ("+f+") should be a primitive value.");s(r(f),p,u,d)}else p!=null&&u.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(u.length||d)&&a.push((i&&!h&&!c?o.map(i):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in e)s(r(o),e[o],this.rules)}getRules(){return this.rules.join(` +`,this;e--}else if(r instanceof Ye){let a=r.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=r.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof Ye?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Sg{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new bs(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class wg{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ge.prototype[Symbol.iterator]=function(){return this.iter()},bs.prototype[Symbol.iterator]=Sg.prototype[Symbol.iterator]=wg.prototype[Symbol.iterator]=function(){return this});let Ik=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function $r(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let hr="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;nn)return hr[e-1]<=n;return!1}function Td(n){return n>=127462&&n<=127487}const Ed=8205;function bt(n,e,t=!0,i=!0){return(t?xg:Vk)(n,e,i)}function xg(n,e,t){if(e==n.length)return e;e&&$g(n.charCodeAt(e))&&Pg(n.charCodeAt(e-1))&&e--;let i=on(n,e);for(e+=hi(i);e=0&&Td(on(n,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function Vk(n,e,t){for(;e>0;){let i=xg(n,e-2,t);if(i=56320&&n<57344}function Pg(n){return n>=55296&&n<56320}function on(n,e){let t=n.charCodeAt(e);if(!Pg(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return $g(i)?(t-55296<<10)+(i-56320)+65536:t}function qk(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function hi(n){return n<65536?1:2}const yc=/\r\n?|\n/;var Ot=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Ot||(Ot={}));class En{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return s+(e-r);s+=l}else{if(i!=Ot.Simple&&c>=e&&(i==Ot.TrackDel&&re||i==Ot.TrackBefore&&re))return null;if(c>e||c==e&&t<0&&!l)return e==r||t<0?s:s+a;s+=a}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let i=0,r=0;i=0&&r<=t&&l>=e)return rt?"cover":!0;r=l}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new En(e)}static create(e){return new En(e)}}class et extends En{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return kc(this,(t,i,r,s,o)=>e=e.replace(r,r+(i-t),o),!1),e}mapDesc(e,t=!1){return Sc(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,s=0;r=0){t[r]=l,t[r+1]=o;let a=r>>1;for(;i.length0&&pi(i,t,s.text),s.forward(u),l+=u}let c=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let r=[],s=[],o=0,l=null;function a(u=!1){if(!u&&!r.length)return;od||h<0||d>t)throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${t})`);let p=f?typeof f=="string"?ge.of(f.split(i||yc)):f:ge.empty,m=p.length;if(h==d&&m==0)return;ho&&ht(r,h-o,-1),ht(r,d-h,m),pi(s,r,p),o=d}}return c(e),a(!l),l}static empty(e){return new et(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let r=0;rl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;i.length=0&&t<=0&&t==n[r+1]?n[r]+=e:e==0&&n[r]==0?n[r+1]+=t:i?(n[r]+=e,n[r+1]+=t):n.push(e,t)}function pi(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(r,c,s,u,h),r=c,s=u}}}function Sc(n,e,t,i=!1){let r=[],s=i?[]:null,o=new Cs(n),l=new Cs(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);ht(r,c,-1),o.forward(c),l.forward(c)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let c=0,u=o.len;for(;u;)if(l.ins==-1){let h=Math.min(u,l.len);c+=h,u-=h,l.forward(h)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>c),s.forward2(a),o.forward(a)}}}}class Cs{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?ge.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?ge.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ri{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Ri(i,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return V.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return V.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return V.range(e.anchor,e.head)}static create(e,t,i){return new Ri(e,t,i)}}class V{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:V.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new V(e.ranges.map(t=>Ri.fromJSON(t)),e.main)}static single(e,t=e){return new V([V.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;re?8:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((r,s)=>r.from-s.from),t=e.indexOf(i);for(let r=1;rs.head?V.range(a,l):V.range(l,a))}}return new V(e,t)}}function _g(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Xu=0;class K{constructor(e,t,i,r,s){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=r,this.id=Xu++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new K(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Wu),!!e.static,e.enables)}of(e){return new Ho([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ho(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ho(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Wu(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Ho{constructor(e,t,i,r){this.dependencies=e,this.facet=t,this.type=i,this.value=r,this.id=Xu++}dynamicSlot(e){var t;let i=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,l=this.type==2,a=!1,c=!1,u=[];for(let h of this.dependencies)h=="doc"?a=!0:h=="selection"?c=!0:((t=e[h.id])!==null&&t!==void 0?t:1)&1||u.push(e[h.id]);return{create(h){return h.values[o]=i(h),1},update(h,d){if(a&&d.docChanged||c&&(d.docChanged||d.selection)||wc(h,u)){let f=i(h);if(l?!Zd(f,h.values[o],r):!r(f,h.values[o]))return h.values[o]=f,1}return 0},reconfigure:(h,d)=>{let f,p=d.config.address[s];if(p!=null){let m=ml(d,p);if(this.dependencies.every(O=>O instanceof K?d.facet(O)===h.facet(O):O instanceof In?d.field(O,!1)==h.field(O,!1):!0)||(l?Zd(f=i(h),m,r):r(f=i(h),m)))return h.values[o]=m,0}else f=i(h);return h.values[o]=f,1}}}}function Zd(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[a.id]),r=t.map(a=>a.type),s=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let c=[];for(let u=0;ui===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Rd).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,r)=>{let s=i.values[t],o=this.updateF(s,r);return this.compareF(s,o)?0:(i.values[t]=o,1)},reconfigure:(i,r)=>r.config.address[this.id]!=null?(i.values[t]=r.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,Rd.of({field:this,create:e})]}get extension(){return this}}const Ei={lowest:4,low:3,default:2,high:1,highest:0};function Kr(n){return e=>new Qg(e,n)}const Gi={highest:Kr(Ei.highest),high:Kr(Ei.high),default:Kr(Ei.default),low:Kr(Ei.low),lowest:Kr(Ei.lowest)};class Qg{constructor(e,t){this.inner=e,this.prec=t}}class Oi{of(e){return new xc(this,e)}reconfigure(e){return Oi.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class xc{constructor(e,t){this.compartment=e,this.inner=t}}class pl{constructor(e,t,i,r,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let r=[],s=Object.create(null),o=new Map;for(let d of Xk(e,t,o))d instanceof In?r.push(d):(s[d.facet.id]||(s[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],c=[];for(let d of r)l[d.id]=c.length<<1,c.push(f=>d.slot(f));let u=i==null?void 0:i.config.facets;for(let d in s){let f=s[d],p=f[0].facet,m=u&&u[d]||[];if(f.every(O=>O.type==0))if(l[p.id]=a.length<<1|1,Wu(m,f))a.push(i.facet(p));else{let O=p.combine(f.map(b=>b.value));a.push(i&&p.compare(O,i.facet(p))?i.facet(p):O)}else{for(let O of f)O.type==0?(l[O.id]=a.length<<1|1,a.push(O.value)):(l[O.id]=c.length<<1,c.push(b=>O.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(O=>Mk(O,p,f))}}let h=c.map(d=>d(l));return new pl(e,o,h,l,a,s)}}function Xk(n,e,t){let i=[[],[],[],[],[]],r=new Map;function s(o,l){let a=r.get(o);if(a!=null){if(a<=l)return;let c=i[a].indexOf(o);c>-1&&i[a].splice(c,1),o instanceof xc&&t.delete(o.compartment)}if(r.set(o,l),Array.isArray(o))for(let c of o)s(c,l);else if(o instanceof xc){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),s(c,l)}else if(o instanceof Qg)s(o.inner,o.prec);else if(o instanceof In)i[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof Ho)i[l].push(o),o.facet.extensions&&s(o.facet.extensions,Ei.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,l)}}return s(n,Ei.default),i.reduce((o,l)=>o.concat(l))}function vs(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let r=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|r}function ml(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Ag=K.define(),$c=K.define({combine:n=>n.some(e=>e),static:!0}),Tg=K.define({combine:n=>n.length?n[0]:void 0,static:!0}),Eg=K.define(),Zg=K.define(),Rg=K.define(),Dg=K.define({combine:n=>n.length?n[0]:!1});class ei{constructor(e,t){this.type=e,this.value=t}static define(){return new Wk}}class Wk{of(e){return new ei(this,e)}}class Bk{constructor(e){this.map=e}of(e){return new we(this,e)}}class we{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new we(this.type,t)}is(e){return this.type==e}static define(e={}){return new Bk(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let r of e){let s=r.map(t);s&&i.push(s)}return i}}we.reconfigure=we.define();we.appendConfig=we.define();class tt{constructor(e,t,i,r,s,o){this.startState=e,this.changes=t,this.selection=i,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&_g(i,t.newLength),s.some(l=>l.type==tt.time)||(this.annotations=s.concat(tt.time.of(Date.now())))}static create(e,t,i,r,s,o){return new tt(e,t,i,r,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(tt.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}tt.time=ei.define();tt.userEvent=ei.define();tt.addToHistory=ei.define();tt.remote=ei.define();function zk(n,e){let t=[];for(let i=0,r=0;;){let s,o;if(i=n[i]))s=n[i++],o=n[i++];else if(r=0;r--){let s=i[r](n);s instanceof tt?n=s:Array.isArray(s)&&s.length==1&&s[0]instanceof tt?n=s[0]:n=Lg(e,dr(s),!1)}return n}function Yk(n){let e=n.startState,t=e.facet(Rg),i=n;for(let r=t.length-1;r>=0;r--){let s=t[r](n);s&&Object.keys(s).length&&(i=Ig(i,Pc(e,s,n.changes.newLength),!0))}return i==n?n:tt.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Nk=[];function dr(n){return n==null?Nk:Array.isArray(n)?n:[n]}var Nn=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(Nn||(Nn={}));const Fk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Cc;try{Cc=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Gk(n){if(Cc)return Cc.test(n);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||Fk.test(t)))return!0}return!1}function Uk(n){return e=>{if(!/\S/.test(e))return Nn.Space;if(Gk(e))return Nn.Word;for(let t=0;t-1)return Nn.Word;return Nn.Other}}class pe{constructor(e,t,i,r,s,o){this.config=e,this.doc=t,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;lr.set(c,a)),t=null),r.set(l.value.compartment,l.value.extension)):l.is(we.reconfigure)?(t=null,i=l.value):l.is(we.appendConfig)&&(t=null,i=dr(i).concat(l.value));let s;t?s=e.startState.values.slice():(t=pl.resolve(i,r,this),s=new pe(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let o=e.startState.facet($c)?e.newSelection:e.newSelection.asSingle();new pe(t,e.newDoc,o,s,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:V.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),r=this.changes(i.changes),s=[i.range],o=dr(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return pe.create({doc:e.doc,selection:V.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=pl.resolve(e.extensions||[],new Map),i=e.doc instanceof ge?e.doc:ge.of((e.doc||"").split(t.staticFacet(pe.lineSeparator)||yc)),r=e.selection?e.selection instanceof V?e.selection:V.single(e.selection.anchor,e.selection.head):V.single(0);return _g(r,i.length),t.staticFacet($c)||(r=r.asSingle()),new pe(t,i,r,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(pe.tabSize)}get lineBreak(){return this.facet(pe.lineSeparator)||` +`}get readOnly(){return this.facet(Dg)}phrase(e,...t){for(let i of this.facet(pe.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>t.length?i:t[s-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let s of this.facet(Ag))for(let o of s(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Uk(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let a=bt(t,o,!1);if(s(t.slice(a,o))!=Nn.Word)break;o=a}for(;ln.length?n[0]:4});pe.lineSeparator=Tg;pe.readOnly=Dg;pe.phrases=K.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});pe.languageData=Ag;pe.changeFilter=Eg;pe.transactionFilter=Zg;pe.transactionExtender=Rg;Oi.reconfigure=we.define();function Hl(n,e,t={}){let i={};for(let r of n)for(let s of Object.keys(r)){let o=r[s],l=i[s];if(l===void 0)i[s]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,s))i[s]=t[s](l,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Wi{eq(e){return this==e}range(e,t=e){return _c.create(e,t,this)}}Wi.prototype.startSide=Wi.prototype.endSide=0;Wi.prototype.point=!1;Wi.prototype.mapMode=Ot.TrackDel;let _c=class Vg{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Vg(e,t,i)}};function Qc(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Bu{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let s=i?this.to:this.from;for(let o=r,l=s.length;;){if(o==l)return o;let a=o+l>>1,c=s[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return c>=0?o:l;c>=0?l=a:o=a+1}}between(e,t,i,r){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,s);sf||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(l=Math.max(l,f-d)),i.push(c),r.push(d-o),s.push(f-o))}return{mapped:i.length?new Bu(r,s,i,l):null,pos:o}}}class Ze{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new Ze(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(Qc)),this.isEmpty)return t.length?Ze.of(t):this;let l=new qg(this,null,-1).goto(0),a=0,c=[],u=new Pr;for(;l.value||a=0){let h=t[a++];u.addInner(h.from,h.to,h.value)||c.push(h)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&e<=s+o.length&&o.between(s,e-s,t-s,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return _s.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return _s.from(e).goto(t)}static compare(e,t,i,r,s=-1){let o=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),a=Dd(o,l,i),c=new Jr(o,a,s),u=new Jr(l,a,s);i.iterGaps((h,d,f)=>Id(c,h,u,d,f,r)),i.empty&&i.length==0&&Id(c,0,u,0,0,r)}static eq(e,t,i=0,r){r==null&&(r=1e9-1);let s=e.filter(u=>!u.isEmpty&&t.indexOf(u)<0),o=t.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let l=Dd(s,o),a=new Jr(s,l,0).goto(i),c=new Jr(o,l,0).goto(i);for(;;){if(a.to!=c.to||!Ac(a.active,c.active)||a.point&&(!c.point||!a.point.eq(c.point)))return!1;if(a.to>r)return!0;a.next(),c.next()}}static spans(e,t,i,r,s=-1){let o=new Jr(e,null,s).goto(t),l=t,a=o.openStart;for(;;){let c=Math.min(o.to,i);if(o.point){let u=o.activeForPoint(o.to),h=o.pointFroml&&(r.span(l,c,o.active,a),a=o.openEnd(c));if(o.to>i)return a+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(e,t=!1){let i=new Pr;for(let r of e instanceof _c?[e]:t?Hk(e):e)i.add(r.from,r.to,r.value);return i.finish()}static join(e){if(!e.length)return Ze.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let r=e[i];r!=Ze.empty;r=r.nextLayer)t=new Ze(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}Ze.empty=new Ze([],[],null,-1);function Hk(n){if(n.length>1)for(let e=n[0],t=1;t0)return n.slice().sort(Qc);e=i}return n}Ze.empty.nextLayer=Ze.empty;class Pr{finishChunk(e){this.chunks.push(new Bu(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new Pr)).add(e,t,i)}addInner(e,t,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(Ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Dd(n,e,t){let i=new Map;for(let s of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&r.push(new qg(o,t,i,s));return r.length==1?r[0]:new _s(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)ka(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)ka(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ka(this.heap,0)}}}function ka(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let r=n[i];if(i+1=0&&(r=n[i+1],i++),t.compare(r)<0)break;n[i]=t,n[e]=r,e=i}}class Jr{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=_s.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){vo(this.active,e),vo(this.activeTo,e),vo(this.activeRank,e),this.minActive=Ld(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:r,rank:s}=this.cursor;for(;t0;)t++;yo(this.active,t,i),yo(this.activeTo,t,r),yo(this.activeRank,t,s),e&&yo(e,t,this.cursor.from),this.minActive=Ld(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&vo(i,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[r]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Id(n,e,t,i,r,s){n.goto(e),t.goto(i);let o=i+r,l=i,a=i-e;for(;;){let c=n.to+a-t.to||n.endSide-t.endSide,u=c<0?n.to+a:t.to,h=Math.min(u,o);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&Ac(n.activeForPoint(n.to),t.activeForPoint(t.to))||s.comparePoint(l,h,n.point,t.point):h>l&&!Ac(n.active,t.active)&&s.compareRange(l,h,n.active,t.active),u>o)break;l=u,c<=0&&n.next(),c>=0&&t.next()}}function Ac(n,e){if(n.length!=e.length)return!1;for(let t=0;t=e;i--)n[i+1]=n[i];n[e]=t}function Ld(n,e){let t=-1,i=1e9;for(let r=0;r=e)return r;if(r==n.length)break;s+=n.charCodeAt(r)==9?t-s%t:1,r=bt(n,r)}return i===!0?-1:n.length}const Tc="ͼ",Vd=typeof Symbol>"u"?"__"+Tc:Symbol.for(Tc),Ec=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class yi{constructor(e,t){this.rules=[];let{finish:i}=t||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,l,a,c){let u=[],h=/^@(\w+)\b/.exec(o[0]),d=h&&h[1]=="keyframes";if(h&&l==null)return a.push(o[0]+";");for(let f in l){let p=l[f];if(/&/.test(f))s(f.split(/,\s*/).map(m=>o.map(O=>m.replace(/&/,O))).reduce((m,O)=>m.concat(O)),p,a);else if(p&&typeof p=="object"){if(!h)throw new RangeError("The value of a property ("+f+") should be a primitive value.");s(r(f),p,u,d)}else p!=null&&u.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(u.length||d)&&a.push((i&&!h&&!c?o.map(i):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in e)s(r(o),e[o],this.rules)}getRules(){return this.rules.join(` `)}static newName(){let e=qd[Vd]||1;return qd[Vd]=e+1,Tc+e.toString(36)}static mount(e,t,i){let r=e[Ec],s=i&&i.nonce;r?s&&r.setNonce(s):r=new Jk(e,s),r.mount(Array.isArray(t)?t:[t])}}let Md=new Map;class Jk{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=Md.get(i);if(s)return e.adoptedStyleSheets=[s.sheet,...e.adoptedStyleSheets],e[Ec]=s;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Md.set(i,this)}else{this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let s=e.head||e;s.insertBefore(this.styleTag,s.firstChild)}this.modules=[],e[Ec]=this}mount(e){let t=this.sheet,i=0,r=0;for(let s=0;s-1&&(this.modules.splice(l,1),r--,l=-1),l==-1){if(this.modules.splice(r++,0,o),t)for(let a=0;a",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},e1=typeof navigator<"u"&&/Mac/.test(navigator.platform),t1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var at=0;at<10;at++)ki[48+at]=ki[96+at]=String(at);for(var at=1;at<=24;at++)ki[at+111]="F"+at;for(var at=65;at<=90;at++)ki[at]=String.fromCharCode(at+32),Qs[at]=String.fromCharCode(at);for(var Sa in ki)Qs.hasOwnProperty(Sa)||(Qs[Sa]=ki[Sa]);function n1(n){var e=e1&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||t1&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Qs:ki)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function gl(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function Zc(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function i1(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Ko(n,e){if(!e.anchorNode)return!1;try{return Zc(n,e.anchorNode)}catch{return!1}}function Cr(n){return n.nodeType==3?Bi(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function ys(n,e,t,i){return t?Xd(n,e,t,i,-1)||Xd(n,e,t,i,1):!1}function As(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function Xd(n,e,t,i,r){for(;;){if(n==t&&e==i)return!0;if(e==(r<0?0:Gn(n))){if(n.nodeName=="DIV")return!1;let s=n.parentNode;if(!s||s.nodeType!=1)return!1;e=As(n)+(r<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=r<0?Gn(n):0}else return!1}}function Gn(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Kl(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function r1(n){return{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Mg(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function s1(n,e,t,i,r,s,o,l){let a=n.ownerDocument,c=a.defaultView||window;for(let u=n,h=!1;u&&!h;)if(u.nodeType==1){let d,f=u==a.body,p=1,m=1;if(f)d=r1(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let y=u.getBoundingClientRect();({scaleX:p,scaleY:m}=Mg(u,y)),d={left:y.left,right:y.left+u.clientWidth*p,top:y.top,bottom:y.top+u.clientHeight*m}}let O=0,b=0;if(r=="nearest")e.top0&&e.bottom>d.bottom+b&&(b=e.bottom-d.bottom+b+o)):e.bottom>d.bottom&&(b=e.bottom-d.bottom+o,t<0&&e.top-b0&&e.right>d.right+O&&(O=e.right-d.right+O+s)):e.right>d.right&&(O=e.right-d.right+s,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class l1{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?Gn(t):0),i,Math.min(e.focusOffset,i?Gn(i):0))}set(e,t,i,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=r}}let tr=null;function Xg(n){if(n.setActive)return n.setActive();if(tr)return n.focus(tr);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(tr==null?{get preventScroll(){return tr={preventScroll:!0},!0}}:void 0),!tr){tr=!1;for(let t=0;tMath.max(1,n.scrollHeight-n.clientHeight-4)}class dt{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new dt(e.parentNode,As(e),t)}static after(e,t){return new dt(e.parentNode,As(e)+1,t)}}const zu=[];class Re{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let i=this.dom,r=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=r?r.nextSibling:i.firstChild)){let l=Re.get(s);(!l||!l.parent&&l.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,t),o.flags&=-8}if(s=r?r.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&s!=o.dom&&(t.written=!0),o.dom.parentNode==i)for(;s&&s!=o.dom;)s=Bd(s);else i.insertBefore(o.dom,s);r=o.dom}for(s=r?r.nextSibling:i.firstChild,s&&t&&t.node==i&&(t.written=!0);s;)s=Bd(s)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,t),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let r=Gn(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!Re.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,s=0;;r++){let o=this.children[r];if(o.dom==i)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,t,i=0){let r=-1,s=-1,o=-1,l=-1;for(let a=0,c=i,u=i;at)return h.domBoundsAround(e,t,c);if(d>=e&&r==-1&&(r=a,s=c),c>t&&h.dom.parentNode==this.dom){o=a,l=u;break}u=d,c=d+h.breakAfter}return{from:s,to:l<0?i+this.length:l,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=zu){this.markDirty();for(let r=e;rthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function jg(n,e,t,i,r,s,o,l,a){let{children:c}=n,u=c.length?c[e]:null,h=s.length?s[s.length-1]:null,d=h?h.breakAfter:o;if(!(e==i&&u&&!o&&!d&&s.length<2&&u.merge(t,r,s.length?h:null,t==0,l,a))){if(i0&&(!o&&s.length&&u.merge(t,u.length,s[0],!1,l,0)?u.breakAfter=s.shift().breakAfter:(t2);var F={mac:Yd||/Mac/.test(It.platform),windows:/Win/.test(It.platform),linux:/Linux|X11/.test(It.platform),ie:Jl,ie_version:Ng?Rc.documentMode||6:Ic?+Ic[1]:Dc?+Dc[1]:0,gecko:zd,gecko_version:zd?+(/Firefox\/(\d+)/.exec(It.userAgent)||[0,0])[1]:0,chrome:!!wa,chrome_version:wa?+wa[1]:0,ios:Yd,android:/Android\b/.test(It.userAgent),webkit:jd,safari:Fg,webkit_version:jd?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Rc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const u1=256;class Un extends Re{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof Un)||this.length-(t-e)+i.length>u1||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Un(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new dt(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return h1(this.dom,e,t)}}class Hn extends Re{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let r of t)r.setParent(this)}setAttrs(e){if(Wg(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,r,s,o){return i&&(!(i instanceof Hn&&i.mark.eq(this.mark))||e&&s<=0||te&&t.push(i=e&&(r=s),i=a,s++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Hn(this.mark,t,o)}domAtPos(e){return Gg(this,e)}coordsAt(e,t){return Hg(this,e,t)}}function h1(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let r=e,s=e,o=0;e==0&&t<0||e==i&&t>=0?F.chrome||F.gecko||(e?(r--,o=1):s=0)?0:l.length-1];return F.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,c=>c.width)||a),o?Kl(a,o<0):a||null}class Di extends Re{static create(e,t,i){return new Di(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=Di.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,r,s,o){return i&&(!(i instanceof Di)||!this.widget.compare(i.widget)||e>0&&s<=0||t0)?dt.before(this.dom):dt.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let l=o?r.length-1:0;s=r[l],!(e>0?l==0:l==r.length-1||s.top0?dt.before(this.dom):dt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ge.empty}get isHidden(){return!0}}Un.prototype.children=Di.prototype.children=_r.prototype.children=zu;function Gg(n,e){let t=n.dom,{children:i}=n,r=0;for(let s=0;rs&&e0;s--){let o=i[s-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let s=r;s0&&e instanceof Hn&&r.length&&(i=r[r.length-1])instanceof Hn&&i.mark.eq(e.mark)?Ug(i,e.children[0],t-1):(r.push(e),e.setParent(n)),n.length+=e.length}function Hg(n,e,t){let i=null,r=-1,s=null,o=-1;function l(c,u){for(let h=0,d=0;h=u&&(f.children.length?l(f,u-d):(!s||s.isHidden&&t>0)&&(p>u||d==p&&f.getSide()>0)?(s=f,o=u-d):(d-1?1:0)!=r.length-(t&&r.indexOf(t)>-1?1:0))return!1;for(let s of i)if(s!=t&&(r.indexOf(s)==-1||n[s]!==e[s]))return!1;return!0}function Vc(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function f1(n){let e=Object.create(null);for(let t=0;t0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ju(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Ug(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=Lc(t,this.attrs||{})),i&&(this.attrs=Lc({class:i},this.attrs||{}))}domAtPos(e){return Gg(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(Wg(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Vc(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&Re.get(r)instanceof Hn;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=Re.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!F.ios||!this.children.some(s=>s instanceof Un))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof Un)||/[^ -~]/.test(i.text))return null;let r=Cr(i.dom);if(r.length!=1)return null;e+=r[0].width,t=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=Hg(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight=t){if(s instanceof Je)return s;if(o>t)break}r=o+s.breakAfter}return null}}class bi extends Re{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,r,s,o){return i&&(!(i instanceof bi)||!this.widget.compare(i.widget)||e>0&&s<=0||t0}}class Ui{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Vt=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(Vt||(Vt={}));class Ce extends Wi{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new to(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Si(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:o}=Kg(e,t);i=(s?t?-3e8:-1:5e8)-1,r=(o?t?2e8:1:-6e8)+1}return new Si(e,i,r,t,e.widget||null,!0)}static line(e){return new no(e)}static set(e,t=!1){return Ze.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ce.none=Ze.empty;class to extends Ce{constructor(e){let{start:t,end:i}=Kg(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof to&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&ju(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}to.prototype.point=!1;class no extends Ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof no&&this.spec.class==e.spec.class&&ju(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}no.prototype.mapMode=Ot.TrackBefore;no.prototype.point=!0;class Si extends Ce{constructor(e,t,i,r,s,o){super(t,i,s,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?Ot.TrackBefore:Ot.TrackAfter:Ot.TrackDel}get type(){return this.startSide!=this.endSide?Vt.WidgetRange:this.startSide<=0?Vt.WidgetBefore:Vt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Si&&p1(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Si.prototype.point=!0;function Kg(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function p1(n,e){return n==e||!!(n&&e&&n.compare(e))}function qc(n,e,t,i=0){let r=t.length-1;r>=0&&t[r]+i>=n?t[r]=Math.max(t[r],e):t.push(n,e)}class ks{constructor(e,t,i,r){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof bi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Je),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ko(new _r(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof bi)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(ko(new Un(this.text.slice(this.textOff,this.textOff+r)),t),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,t,i,r){this.buildText(t-e,i,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,i,r,s,o){if(this.disallowBlockEffectsFor[o]&&i instanceof Si){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(i instanceof Si)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new bi(i.widget||new Fd("div"),l,i));else{let a=Di.create(i.widget||new Fd("span"),l,l?0:i.startSide),c=this.atCursorPos&&!a.isEditable&&s<=r.length&&(e0),u=!a.isEditable&&(er.length||i.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!c&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(h.append(ko(new _r(1),r),s),s=r.length+Math.max(0,s-r.length)),h.append(ko(a,r),s),this.atCursorPos=u,this.pendingBuffer=u?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,i,r,s){let o=new ks(e,t,i,s);return o.openEnd=Ze.spans(r,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function ko(n,e){for(let t of e)n=new Hn(t,[n],n.length);return n}class Fd extends Ui{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Me=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(Me||(Me={}));const zi=Me.LTR,Yu=Me.RTL;function Jg(n){let e=[];for(let t=0;t=t){if(l.level==i)return o;(s<0||(r!=0?r<0?l.fromt:e[s].level>l.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function tO(n,e){if(n.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(mn[m+1]==-f){let O=mn[m+2],b=O&2?r:O&4?O&1?s:r:0;b&&(Se[h]=Se[mn[m]]=b),l=m;break}}else{if(mn.length==189)break;mn[l++]=h,mn[l++]=d,mn[l++]=a}else if((p=Se[h])==2||p==1){let m=p==r;a=m?0:1;for(let O=l-3;O>=0;O-=3){let b=mn[O+2];if(b&2)break;if(m)mn[O+2]|=2;else{if(b&4)break;mn[O+2]|=4}}}}}function y1(n,e,t,i){for(let r=0,s=i;r<=t.length;r++){let o=r?t[r-1].to:n,l=ra;)p==O&&(p=t[--m].from,O=m?t[m-1].to:n),Se[--p]=f;a=u}else s=c,a++}}}function Xc(n,e,t,i,r,s,o){let l=i%2?2:1;if(i%2==r%2)for(let a=e,c=0;aa&&o.push(new mi(a,m.from,f));let O=m.direction==zi!=!(f%2);Wc(n,O?i+1:i,r,m.inner,m.from,m.to,o),a=m.to}p=m.to}else{if(p==t||(u?Se[p]!=l:Se[p]==l))break;p++}d?Xc(n,a,p,i+1,r,d,o):ae;){let u=!0,h=!1;if(!c||a>s[c-1].to){let m=Se[a-1];m!=l&&(u=!1,h=m==16)}let d=!u&&l==1?[]:null,f=u?i:i+1,p=a;e:for(;;)if(c&&p==s[c-1].to){if(h)break e;let m=s[--c];if(!u)for(let O=m.from,b=c;;){if(O==e)break e;if(b&&s[b-1].to==O)O=s[--b].from;else{if(Se[O-1]==l)break e;break}}if(d)d.push(m);else{m.toSe.length;)Se[Se.length]=256;let i=[],r=e==zi?0:1;return Wc(n,r,r,t,0,n.length,i),i}function nO(n){return[new mi(0,n,0)]}let iO="";function S1(n,e,t,i,r){var s;let o=i.head-n.from,l=mi.find(e,o,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),a=e[l],c=a.side(r,t);if(o==c){let d=l+=r?1:-1;if(d<0||d>=e.length)return null;a=e[l=d],o=a.side(!r,t),c=a.side(r,t)}let u=bt(n.text,o,a.forward(r,t));(ua.to)&&(u=c),iO=n.text.slice(Math.min(o,u),Math.max(o,u));let h=l==(r?e.length-1:0)?null:e[l+(r?1:-1)];return h&&u==c&&h.level+(r?0:1)n.some(e=>e)}),hO=J.define({combine:n=>n.some(e=>e)});class pr{constructor(e,t="nearest",i="nearest",r=5,s=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new pr(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new pr(V.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const So=we.define({map:(n,e)=>n.map(e)});function cn(n,e,t){let i=n.facet(lO);i.length?i[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const ea=J.define({combine:n=>n.length?n[0]:!0});let x1=0;const us=J.define();class Ft{constructor(e,t,i,r,s){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,t){const{eventHandlers:i,eventObservers:r,provide:s,decorations:o}=t||{};return new Ft(x1++,e,i,r,l=>{let a=[us.of(l)];return o&&a.push(Ts.of(c=>{let u=c.plugin(l);return u?o(u):Ce.none})),s&&a.push(s(l)),a})}static fromClass(e,t){return Ft.define(i=>new e(i),t)}}class xa{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(cn(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){cn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){cn(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const dO=J.define(),Nu=J.define(),Ts=J.define(),fO=J.define(),Fu=J.define(),pO=J.define();function Gd(n,e){let t=n.state.facet(pO);if(!t.length)return t;let i=t.map(s=>s instanceof Function?s(n):s),r=[];return Ze.spans(i,e.from,e.to,{point(){},span(s,o,l,a){let c=s-e.from,u=o-e.from,h=r;for(let d=l.length-1;d>=0;d--,a--){let f=l[d].spec.bidiIsolate,p;if(f==null&&(f=w1(e.text,c,u)),a>0&&h.length&&(p=h[h.length-1]).to==c&&p.direction==f)p.to=u,h=p.inner;else{let m={from:c,to:u,direction:f,inner:[]};h.push(m),h=m.inner}}}}),r}const mO=J.define();function gO(n){let e=0,t=0,i=0,r=0;for(let s of n.state.facet(mO)){let o=s(n);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:t,top:i,bottom:r}}const hs=J.define();class jt{constructor(e,t,i,r){this.fromA=e,this.toA=t,this.fromB=i,this.toB=r}join(e){return new jt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>i.toA)){if(r.toAu)break;s+=2}if(!a)return i;new jt(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),o=a.toA,l=a.toB}}}class Ol{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=et.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,o,l,a)=>r.push(new jt(s,o,l,a))),this.changedRanges=r}static create(e,t,i){return new Ol(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Ud extends Re{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Je],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new jt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:u})=>uthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?r=this.domChanged.newSel.head:!T1(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?P1(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;i=new jt(c,u,e.changes.mapPos(c,-1),e.changes.mapPos(u,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(F.ie||F.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.updateDeco(),a=Q1(o,l,e.changes);return i=jt.extendWithRanges(i,a),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=F.chrome||F.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||r.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to=0?r[o]:null;if(!l)break;let{fromA:a,toA:c,fromB:u,toB:h}=l,d,f,p,m;if(i&&i.range.fromBu){let w=ks.build(this.view.state.doc,u,i.range.fromB,this.decorations,this.dynamicDecorationMap),$=ks.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);f=w.breakAtStart,p=w.openStart,m=$.openEnd;let x=this.compositionView(i);$.breakAtStart?x.breakAfter=1:$.content.length&&x.merge(x.length,x.length,$.content[0],!1,$.openStart,0)&&(x.breakAfter=$.content[0].breakAfter,$.content.shift()),w.content.length&&x.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),d=w.content.concat(x).concat($.content)}else({content:d,breakAtStart:f,openStart:p,openEnd:m}=ks.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:O,off:b}=s.findPos(c,1),{i:y,off:S}=s.findPos(a,-1);jg(this,y,S,O,b,d,f,p,m)}i&&this.fixCompositionDOM(i)}compositionView(e){let t=new Un(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new Hn(r,[t],t.length);let i=new Je;return i.append(t,0),i}fixCompositionDOM(e){let t=(s,o)=>{o.flags|=8|(o.children.some(a=>a.flags&7)?1:0),this.markedForComposition.add(o);let l=Re.get(s);l&&l!=o&&(l.dom=null),o.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];t(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],t(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&Ko(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||t||s))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),c=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(F.gecko&&l.empty&&!this.hasComposition&&$1(a)){let h=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(h,a.node.childNodes[a.offset]||null)),a=c=new dt(h,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!ys(a.node,a.offset,u.anchorNode,u.anchorOffset)||!ys(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,l))&&(this.view.observer.ignore(()=>{F.android&&F.chrome&&this.dom.contains(u.focusNode)&&A1(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=gl(this.view.root);if(h)if(l.empty){if(F.gecko){let d=C1(a.node,a.offset);if(d&&d!=3){let f=bO(a.node,a.offset,d==1?1:-1);f&&(a=new dt(f.node,f.offset))}}h.collapse(a.node,a.offset),l.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=l.bidiLevel)}else if(h.extend){h.collapse(a.node,a.offset);try{h.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();l.anchor>l.head&&([a,c]=[c,a]),d.setEnd(c.node,c.offset),d.setStart(a.node,a.offset),h.removeAllRanges(),h.addRange(d)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(a,c)),this.impreciseAnchor=a.precise?null:new dt(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new dt(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&ys(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=gl(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=Je.find(this,t.head);if(!o)return;let l=o.posAtStart;if(t.head==l||t.head==l+o.length)return;let a=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!a||!c||a.bottom>c.top)return;let u=this.domAtPos(t.head+t.assoc);i.collapse(u.node,u.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&i.collapse(r,s)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let r=e.offset;!i&&r=0;r--){let s=Re.get(t.childNodes[r]);s instanceof Je&&(i=s.domAtPos(s.length))}return i?new dt(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=Re.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t=0;o--){let l=this.children[o],a=s-l.breakAfter,c=a-l.length;if(ae||l.covers(1))&&(!i||l instanceof Je&&!(i instanceof Je&&t>=0))&&(i=l,r=c),s=c}return i?i.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),r=this.children[t];if(!(r instanceof Je))return null;for(;r.children.length;){let{i:l,off:a}=r.childPos(i,1);for(;;l++){if(l==r.children.length)return null;if((r=r.children[l]).length)break}i=a}if(!(r instanceof Un))return null;let s=bt(r.text,i);if(s==i)return null;let o=Bi(r.dom,i,s).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==Me.LTR;for(let c=0,u=0;ur)break;if(c>=i){let f=h.dom.getBoundingClientRect();if(t.push(f.height),o){let p=h.dom.lastChild,m=p?Cr(p):[];if(m.length){let O=m[m.length-1],b=a?O.right-f.left:f.right-O.left;b>l&&(l=b,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+h.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Me.RTL:Me.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Je){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),t,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Cr(e.firstChild)[0];t=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new zg(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,r=0;;r++){let s=r==t.viewports.length?null:t.viewports[r],o=s?s.from-1:this.length;if(o>i){let l=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(Ce.replace({widget:new Hd(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!s)break;i=s.to+1}return Ce.set(e)}updateDeco(){let e=this.view.state.facet(Ts).map((r,s)=>(this.dynamicDecorationMap[s]=typeof r=="function")?r(this.view):r),t=!1,i=this.view.state.facet(fO).map((r,s)=>{let o=typeof r=="function";return o&&(t=!0),o?r(this.view):r});i.length&&(this.dynamicDecorationMap[e.length]=t,e.push(Ze.join(i)));for(let r=e.length;rt.anchor?-1:1),r;if(!i)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=gO(this.view),o={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;s1(this.view.scrollDOM,o,t.head0)i=i.childNodes[r-1],r=Gn(i);else break}if(t>=0)for(let i=n,r=e;;){if(i.nodeType==3)return{node:i,offset:r};if(i.nodeType==1&&r=0)i=i.childNodes[r],r=0;else break}return null}function C1(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e{ie.from&&(t=!0)}),t}function E1(n,e,t=1){let i=n.charCategorizer(e),r=n.doc.lineAt(e),s=e-r.from;if(r.length==0)return V.cursor(e);s==0?t=1:s==r.length&&(t=-1);let o=s,l=s;t<0?o=bt(r.text,s,!1):l=bt(r.text,s);let a=i(r.text.slice(o,l));for(;o>0;){let c=bt(r.text,o,!1);if(i(r.text.slice(c,o))!=a)break;o=c}for(;ln?e.left-n:Math.max(0,n-e.right)}function R1(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function $a(n,e){return n.tope.top+1}function Kd(n,e){return en.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function zc(n,e,t){let i,r,s,o,l=!1,a,c,u,h;for(let p=n.firstChild;p;p=p.nextSibling){let m=Cr(p);for(let O=0;OS||o==S&&s>y){i=p,r=b,s=y,o=S;let w=S?t0?O0)}y==0?t>b.bottom&&(!u||u.bottomb.top)&&(c=p,h=b):u&&$a(u,b)?u=Jd(u,b.bottom):h&&$a(h,b)&&(h=Kd(h,b.top))}}if(u&&u.bottom>=t?(i=a,r=u):h&&h.top<=t&&(i=c,r=h),!i)return{node:n,offset:0};let d=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return ef(i,d,t);if(l&&i.contentEditable!="false")return zc(i,d,t);let f=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:n,offset:f}}function ef(n,e,t){let i=n.nodeValue.length,r=-1,s=1e9,o=0;for(let l=0;lt?u.top-t:t-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&h=(u.left+u.right)/2,f=d;if((F.chrome||F.gecko)&&Bi(n,l).getBoundingClientRect().left==u.right&&(f=!d),h<=0)return{node:n,offset:l+(f?1:0)};r=l+(f?1:0),s=h}}}return{node:n,offset:r>-1?r:o>0?n.nodeValue.length:0}}function vO(n,e,t,i=-1){var r,s;let o=n.contentDOM.getBoundingClientRect(),l=o.top+n.viewState.paddingTop,a,{docHeight:c}=n.viewState,{x:u,y:h}=e,d=h-l;if(d<0)return 0;if(d>c)return n.state.doc.length;for(let w=n.viewState.heightOracle.textHeight/2,$=!1;a=n.elementAtHeight(d),a.type!=Vt.Text;)for(;d=i>0?a.bottom+w:a.top-w,!(d>=0&&d<=c);){if($)return t?null:0;$=!0,i=-i}h=l+d;let f=a.from;if(fn.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:tf(n,o,a,u,h);let p=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:p,O=m.elementFromPoint(u,h);O&&!n.contentDOM.contains(O)&&(O=null),O||(u=Math.max(o.left+1,Math.min(o.right-1,u)),O=m.elementFromPoint(u,h),O&&!n.contentDOM.contains(O)&&(O=null));let b,y=-1;if(O&&((r=n.docView.nearest(O))===null||r===void 0?void 0:r.isEditable)!=!1){if(p.caretPositionFromPoint){let w=p.caretPositionFromPoint(u,h);w&&({offsetNode:b,offset:y}=w)}else if(p.caretRangeFromPoint){let w=p.caretRangeFromPoint(u,h);w&&({startContainer:b,startOffset:y}=w,(!n.contentDOM.contains(b)||F.safari&&D1(b,y,u)||F.chrome&&I1(b,y,u))&&(b=void 0))}}if(!b||!n.docView.dom.contains(b)){let w=Je.find(n.docView,f);if(!w)return d>a.top+a.height/2?a.to:a.from;({node:b,offset:y}=zc(w.dom,u,h))}let S=n.docView.nearest(b);if(!S)return null;if(S.isWidget&&((s=S.dom)===null||s===void 0?void 0:s.nodeType)==1){let w=S.dom.getBoundingClientRect();return e.yn.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((r-t.top-(n.defaultLineHeight-l)*.5)/l);s+=a*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+Kk(o,s,n.state.tabSize)}function D1(n,e,t){let i;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(let r=n.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Bi(n,i-1,i).getBoundingClientRect().left>t}function I1(n,e,t){if(e!=0)return!1;for(let r=n;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let i=n.nodeType==1?n.getBoundingClientRect():Bi(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function jc(n,e){let t=n.lineBlockAt(e);if(Array.isArray(t.type)){for(let i of t.type)if(i.to>e||i.to==e&&(i.to==t.to||i.type==Vt.Text))return i}return t}function L1(n,e,t,i){let r=jc(n,e.head),s=!i||r.type!=Vt.Text||!(n.lineWrapping||r.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(r.from),a=n.posAtCoords({x:t==(l==Me.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(a!=null)return V.cursor(a,t?-1:1)}return V.cursor(t?r.to:r.from,t?-1:1)}function nf(n,e,t,i){let r=n.state.doc.lineAt(e.head),s=n.bidiSpans(r),o=n.textDirectionAt(r.from);for(let l=e,a=null;;){let c=S1(r,s,o,l,t),u=iO;if(!c){if(r.number==(t?n.state.doc.lines:1))return l;u=` -`,r=n.state.doc.line(r.number+(t?1:-1)),s=n.bidiSpans(r),c=n.visualLineSide(r,!t)}if(a){if(!a(u))return l}else{if(!i)return c;a=i(u)}l=c}}function V1(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return s=>{let o=i(s);return r==Nn.Space&&(r=o),r==o}}function q1(n,e,t,i){let r=e.head,s=t?1:-1;if(r==(t?n.state.doc.length:0))return V.cursor(r,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(r,e.assoc||-1),u=n.documentTop;if(c)o==null&&(o=c.left-a.left),l=s<0?c.top:c.bottom;else{let f=n.viewState.lineBlockAt(r);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(r-f.from))),l=(s<0?f.top:f.bottom)+u}let h=a.left+o,d=i??n.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let p=l+(d+f)*s,m=vO(n,{x:h,y:p},!1,s);if(pa.bottom||(s<0?mr)){let O=n.docView.coordsForChar(m),b=!O||p{if(e>s&&er(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:V.cursor(i,inull),F.gecko&&nS(e.contentDOM.ownerDocument)}handleEvent(e){!F1(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=X1(e),i=this.handlers,r=this.view.contentDOM;for(let s in t)if(s!="scroll"){let o=!t[s].handlers.length,l=i[s];l&&o!=!l.handlers.length&&(r.removeEventListener(s,this.handleEvent),l=null),l||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in i)s!="scroll"&&!t[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()i.keyCode==e.keyCode))&&!e.ctrlKey||W1.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,fr(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:F.safari&&!F.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function rf(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(r){cn(t.state,r)}}}function X1(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let o=r.domEventHandlers[s];o&&t(s).handlers.push(rf(i.value,o))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let o=r.domEventObservers[s];o&&t(s).observers.push(rf(i.value,o))}}for(let i in un)t(i).handlers.push(un[i]);for(let i in hn)t(i).observers.push(hn[i]);return e}const yO=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],W1="dthko",kO=[16,17,18,20,91,92,224,225],wo=6;function xo(n){return Math.max(0,n)*.7+8}function B1(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class z1{constructor(e,t,i,r){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=o1(e.contentDOM),this.atoms=e.state.facet(Fu).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(pe.allowMultipleSelections)&&j1(e,t),this.dragging=N1(e,t)&&$O(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&B1(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,s=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=gO(this.view);e.clientX-o.left<=s.left+wo?i=-xo(s.left-e.clientX):e.clientX+o.right>=s.right-wo&&(i=xo(e.clientX-s.right)),e.clientY-o.top<=s.top+wo?r=-xo(s.top-e.clientY):e.clientY+o.bottom>=s.bottom-wo&&(r=xo(e.clientY-s.bottom)),this.setScrollSpeed(i,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;ithis.select(this.lastEvent),20)}}function j1(n,e){let t=n.state.facet(rO);return t.length?t[0](e):F.mac?e.metaKey:e.ctrlKey}function Y1(n,e){let t=n.state.facet(sO);return t.length?t[0](e):F.mac?!e.altKey:!e.ctrlKey}function N1(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=gl(n.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function F1(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=Re.get(t))&&i.ignoreEvent(e))return!1;return!0}const un=Object.create(null),hn=Object.create(null),SO=F.ie&&F.ie_version<15||F.ios&&F.webkit_version<604;function G1(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),wO(n,t.value)},50)}function wO(n,e){let{state:t}=n,i,r=1,s=t.toText(e),o=s.lines==t.selection.ranges.length;if(Yc!=null&&t.selection.ranges.every(a=>a.empty)&&Yc==s.toString()){let a=-1;i=t.changeByRange(c=>{let u=t.doc.lineAt(c.from);if(u.from==a)return{range:c};a=u.from;let h=t.toText((o?s.line(r++).text:e)+t.lineBreak);return{changes:{from:u.from,insert:h},range:V.cursor(c.from+h.length)}})}else o?i=t.changeByRange(a=>{let c=s.line(r++);return{changes:{from:a.from,to:a.to,insert:c.text},range:V.cursor(a.from+c.length)}}):i=t.replaceSelection(s);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}hn.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};un.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&(n.inputState.lastEscPress=Date.now()),!1);hn.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};hn.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};un.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(oO))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=K1(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new z1(n,e,t,i)),i&&n.observer.ignore(()=>Xg(n.contentDOM));let r=n.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function sf(n,e,t,i){if(i==1)return V.cursor(e,t);if(i==2)return E1(n.state,e,t);{let r=Je.find(n.docView,e),s=n.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:s.from,l=r?r.posAtEnd:s.to;return ln>=e.top&&n<=e.bottom,of=(n,e,t)=>xO(e,t)&&n>=t.left&&n<=t.right;function U1(n,e,t,i){let r=Je.find(n.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let o=r.coordsAt(s,-1);if(o&&of(t,i,o))return-1;let l=r.coordsAt(s,1);return l&&of(t,i,l)?1:o&&xO(i,o)?-1:1}function lf(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:U1(n,t,e.clientX,e.clientY)}}const H1=F.ie&&F.ie_version<=11;let af=null,cf=0,uf=0;function $O(n){if(!H1)return n.detail;let e=af,t=uf;return af=n,uf=Date.now(),cf=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(cf+1)%3:1}function K1(n,e){let t=lf(n,e),i=$O(e),r=n.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),r=r.map(s.changes))},get(s,o,l){let a=lf(n,s),c,u=sf(n,a.pos,a.bias,i);if(t.pos!=a.pos&&!o){let h=sf(n,t.pos,t.bias,i),d=Math.min(h.from,u.from),f=Math.max(h.to,u.to);u=d1&&(c=J1(r,a.pos))?c:l?r.addRange(u):V.create([u])}}}function J1(n,e){for(let t=0;t=e)return V.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}un.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let r=n.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,o=s+r.length;(s>=t.to||o<=t.from)&&(t=V.range(s,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",n.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};un.dragend=n=>(n.inputState.draggedContent=null,!1);function hf(n,e,t,i){if(!t)return;let r=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=n.inputState,o=i&&s&&Y1(n,e)?{from:s.from,to:s.to}:null,l={from:r,insert:t},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(r,-1),head:a.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}un.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),r=0,s=()=>{++r==t.length&&hf(n,e,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),s()},l.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return hf(n,e,i,!0),!0}return!1};un.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=SO?null:e.clipboardData;return t?(wO(n,t.getData("text/plain")||t.getData("text/uri-text")),!0):(G1(n),!1)};function eS(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function tS(n){let e=[],t=[],i=!1;for(let r of n.selection.ranges)r.empty||(e.push(n.sliceDoc(r.from,r.to)),t.push(r));if(!e.length){let r=-1;for(let{from:s}of n.selection.ranges){let o=n.doc.lineAt(s);o.number>r&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),r=o.number}i=!0}return{text:e.join(n.lineBreak),ranges:t,linewise:i}}let Yc=null;un.copy=un.cut=(n,e)=>{let{text:t,ranges:i,linewise:r}=tS(n.state);if(!t&&!r)return!1;Yc=r?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=SO?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(eS(n,t),!1)};const PO=ei.define();function CO(n,e){let t=[];for(let i of n.facet(cO)){let r=i(n,e);r&&t.push(r)}return t?n.update({effects:t,annotations:PO.of(!0)}):null}function _O(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=CO(n.state,e);t?n.dispatch(t):n.update([])}},10)}hn.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),_O(n)};hn.blur=n=>{n.observer.clearSelectionRange(),_O(n)};hn.compositionstart=hn.compositionupdate=n=>{n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0)};hn.compositionend=n=>{n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,F.chrome&&F.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50)};hn.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};un.beforeinput=(n,e)=>{var t;let i;if(F.chrome&&F.android&&(i=yO.find(r=>r.inputType==e.inputType))&&(n.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let r=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return!1};const df=new Set;function nS(n){df.has(n)||(df.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const ff=["pre-wrap","normal","pre-line","break-spaces"];class iS{constructor(e){this.lineWrapping=e,this.doc=ge.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ff.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=r,this.lineLength=s,a){this.heightSamples={};for(let c=0;c0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>el&&(e.heightChanged=!0),this.height=t)}replace(e,t,i){return vt.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,r){let s=this,o=i.doc;for(let l=r.length-1;l>=0;l--){let{fromA:a,toA:c,fromB:u,toB:h}=r[l],d=s.lineAt(a,Ee.ByPosNoHeight,i.setDoc(t),0,0),f=d.to>=c?d:s.lineAt(c,Ee.ByPosNoHeight,i,0,0);for(h+=f.to-c,c=f.to;l>0&&d.from<=r[l-1].toA;)a=r[l-1].fromA,u=r[l-1].fromB,l--,as*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,r-=l.size}else if(s>r*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,s-=l.size}else break;else if(r=s&&o(this.blockAt(0,i,r,s))}updateHeight(e,t=0,i=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Rt extends QO{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,r){return new xn(r,this.length,i,this.height,this.breaks)}replace(e,t,i){let r=i[0];return i.length==1&&(r instanceof Rt||r instanceof lt&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof lt?r=new Rt(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):vt.of(i)}updateHeight(e,t=0,i=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class lt extends vt{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,s=r-i+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*s);o=a/s,this.length>s+1&&(l=(this.height-a)/(this.length-s-1))}else o=this.height/s;return{firstLine:i,lastLine:r,perLine:o,perChar:l}}blockAt(e,t,i,r){let{firstLine:s,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let c=r+Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length),u=t.doc.lineAt(c),h=l+u.length*a,d=Math.max(i,e-h/2);return new xn(u.from,u.length,d,h,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-i)/l))),{from:u,length:h}=t.doc.line(s+c);return new xn(u,h,i+l*c,l,0)}}lineAt(e,t,i,r,s){if(t==Ee.ByHeight)return this.blockAt(e,i,r,s);if(t==Ee.ByPosNoHeight){let{from:f,to:p}=i.doc.lineAt(e);return new xn(f,p-f,0,0,0)}let{firstLine:o,perLine:l,perChar:a}=this.heightMetrics(i,s),c=i.doc.lineAt(e),u=l+c.length*a,h=c.number-o,d=r+l*h+a*(c.from-s-h);return new xn(c.from,c.length,Math.max(r,Math.min(d,r+this.height-u)),u,0)}forEachLine(e,t,i,r,s,o){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:l,perLine:a,perChar:c}=this.heightMetrics(i,s);for(let u=e,h=r;u<=t;){let d=i.doc.lineAt(u);if(u==e){let p=d.number-l;h+=a*p+c*(e-s-p)}let f=a+c*d.length;o(new xn(d.from,d.length,h,f,0)),h+=f,u=d.to+1}}replace(e,t,i){let r=this.length-t;if(r>0){let s=i[i.length-1];s instanceof lt?i[i.length-1]=new lt(s.length+r):i.push(null,new lt(r-1))}if(e>0){let s=i[0];s instanceof lt?i[0]=new lt(e+s.length):i.unshift(new lt(e-1),null)}return vt.of(i)}decomposeLeft(e,t){t.push(new lt(e-1),null)}decomposeRight(e,t){t.push(null,new lt(this.length-e-1))}updateHeight(e,t=0,i=!1,r){let s=t+this.length;if(r&&r.from<=t+this.length&&r.more){let o=[],l=Math.max(t,r.from),a=-1;for(r.from>t&&o.push(new lt(r.from-t-1).updateHeight(e,t));l<=s&&r.more;){let u=e.doc.lineAt(l).length;o.length&&o.push(null);let h=r.heights[r.index++];a==-1?a=h:Math.abs(h-a)>=el&&(a=-2);let d=new Rt(u,h);d.outdated=!1,o.push(d),l+=u+1}l<=s&&o.push(null,new lt(s-l).updateHeight(e,l));let c=vt.of(o);return(a<0||Math.abs(c.height-this.height)>=el||Math.abs(a-this.heightMetrics(e,t).perLine)>=el)&&(e.heightChanged=!0),c}else(i||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class sS extends vt{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,r){let s=i+this.left.height;return el))return c;let u=t==Ee.ByPosNoHeight?Ee.ByPosNoHeight:Ee.ByPos;return a?c.join(this.right.lineAt(l,u,i,o,l)):this.left.lineAt(l,u,i,r,s).join(c)}forEachLine(e,t,i,r,s,o){let l=r+this.left.height,a=s+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,i,l,a,o);else{let c=this.lineAt(a,Ee.ByPos,i,r,s);e=e&&c.from<=t&&o(c),t>c.to&&this.right.forEachLine(c.to+1,t,i,l,a,o)}}replace(e,t,i){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let l of i)s.push(l);if(e>0&&pf(s,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?vt.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,r){let{left:s,right:o}=this,l=t+s.length+this.break,a=null;return r&&r.from<=t+s.length&&r.more?a=s=s.updateHeight(e,t,i,r):s.updateHeight(e,t,i),r&&r.from<=l+o.length&&r.more?a=o=o.updateHeight(e,l,i,r):o.updateHeight(e,l,i),a?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function pf(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof lt&&(i=n[e+1])instanceof lt&&n.splice(e-1,3,new lt(t.length+1+i.length))}const oS=5;class Gu{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Rt?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Rt(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=oS)&&this.addLineDeco(r,s,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Rt(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new lt(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Rt)return e;let t=new Rt(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Rt)&&!this.isCovered?this.nodes.push(new Rt(0,-1)):(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&h.overflow!="visible"){let d=u.getBoundingClientRect();s=Math.max(s,d.left),o=Math.min(o,d.right),l=Math.max(l,d.top),a=c==n.parentNode?d.bottom:Math.min(a,d.bottom)}c=h.position=="absolute"||h.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-t.left,right:Math.max(s,o)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function uS(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Ca{constructor(e,t,i){this.from=e,this.to=t,this.size=i}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new iS(t),this.stateDeco=e.facet(Ts).filter(i=>typeof i!="function"),this.heightMap=vt.empty().applyChanges(this.stateDeco,ge.empty,this.heightOracle.setDoc(e.doc),[new jt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ce.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let r=i?t.head:t.anchor;if(!e.some(({from:s,to:o})=>r>=s&&r<=o)){let{from:s,to:o}=this.lineBlockAt(r);e.push(new $o(s,o))}}this.viewports=e.sort((i,r)=>i.from-r.from),this.scaler=this.heightMap.height<=7e6?gf:new pS(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:ds(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ts).filter(u=>typeof u!="function");let r=e.changedRanges,s=jt.extendWithRanges(r,lS(i,this.stateDeco,e?e.changes:et.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let c=!e.changes.empty||e.flags&2||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(hO)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Me.RTL:Me.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),l=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,u=0;if(l.width&&l.height){let{scaleX:w,scaleY:$}=Mg(t,l);(this.scaleX!=w||this.scaleY!=$)&&(this.scaleX=w,this.scaleY=$,c|=8,o=a=!0)}let h=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=d)&&(this.paddingTop=h,this.paddingBottom=d,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=Bg(e.scrollDOM);let p=(this.printing?uS:cS)(t,this.paddingTop),m=p.top-this.pixelViewport.top,O=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let y=l.width;if((this.contentDOMWidth!=y||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),a){let w=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(w)&&(o=!0),o||r.lineWrapping&&Math.abs(y-this.contentDOMWidth)>r.charWidth){let{lineHeight:$,charWidth:x,textHeight:_}=e.docView.measureTextSize();o=$>0&&r.refresh(s,$,x,_,y/x,w),o&&(e.docView.minWidth=0,c|=8)}m>0&&O>0?u=Math.max(m,O):m<0&&O<0&&(u=Math.min(m,O)),r.heightChanged=!1;for(let $ of this.viewports){let x=$.from==this.viewport.from?w:e.docView.measureVisibleLineHeights($);this.heightMap=(o?vt.empty().applyChanges(this.stateDeco,ge.empty,this.heightOracle,[new jt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new rS($.from,x))}r.heightChanged&&(c|=2)}let S=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(c&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new $o(r.lineAt(o-i*1e3,Ee.ByHeight,s,0,0).from,r.lineAt(l+(1-i)*1e3,Ee.ByHeight,s,0,0).to);if(t){let{head:c}=t.range;if(ca.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Ee.ByPos,s,0,0),d;t.y=="center"?d=(h.top+h.bottom)/2-u/2:t.y=="start"||t.y=="nearest"&&c=l+Math.max(10,Math.min(i,250)))&&r>o-2*1e3&&s>1,o=r<<1;if(this.defaultTextDirection!=Me.LTR&&!i)return[];let l=[],a=(c,u,h,d)=>{if(u-cc&&OO.from>=h.from&&O.to<=h.to&&Math.abs(O.from-c)O.fromb));if(!m){if(uO.from<=u&&O.to>=u)){let O=t.moveToLineBoundary(V.cursor(u),!1,!0).head;O>c&&(u=O)}m=new Ca(c,u,this.gapSize(h,c,u,d))}l.push(m)};for(let c of this.viewportLines){if(c.lengthc.from&&a(c.from,d,c,u),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Ze.spans(e,this.viewport.from,this.viewport.to,{span(r,s){t.push({from:r,to:s})},point(){}},20);let i=t.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=t[s].from||r.to!=t[s].to);return this.visibleRanges=t,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ds(this.heightMap.lineAt(e,Ee.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return ds(this.heightMap.lineAt(this.scaler.fromDOM(e),Ee.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ds(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class $o{constructor(e,t){this.from=e,this.to=t}}function dS(n,e,t){let i=[],r=n,s=0;return Ze.spans(t,n,e,{span(){},point(o,l){o>r&&(i.push({from:r,to:o}),s+=o-r),r=l}},20),r=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let r=0;;r++){let{from:s,to:o}=e[r],l=o-s;if(i<=l)return s+i;i-=l}}function Co(n,e){let t=0;for(let{from:i,to:r}of n.ranges){if(e<=r){t+=e-i;break}t+=r-i}return t/n.total}function fS(n,e){for(let t of n)if(e(t))return t}const gf={toDOM(n){return n},fromDOM(n){return n},scale:1};class pS{constructor(e,t,i){let r=0,s=0,o=0;this.viewports=i.map(({from:l,to:a})=>{let c=t.lineAt(l,Ee.ByPos,e,0,0).top,u=t.lineAt(a,Ee.ByPos,e,0,0).bottom;return r+=u-c,{from:l,to:a,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let l of this.viewports)l.domTop=o+(l.top-s)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let t=0,i=0,r=0;;t++){let s=tds(r,e)):n._content)}const _o=J.define({combine:n=>n.join(" ")}),Nc=J.define({combine:n=>n.indexOf(!0)>-1}),Fc=yi.newName(),AO=yi.newName(),TO=yi.newName(),EO={"&light":"."+AO,"&dark":"."+TO};function Gc(n,e,t){return new yi(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return n;if(!t||!t[r])throw new RangeError(`Unsupported selector: ${r}`);return t[r]}):n+" "+i}})}const mS=Gc("."+Fc,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},EO),fs="￿";class gS{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(pe.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=fs}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==t)break;let l=Re.get(r),a=Re.get(o);(l&&a?l.breakAfter:(l?l.breakAfter:Of(r))||Of(o)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=o}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,l;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=r.exec(t))&&(s=l.index,o=l[0].length),this.append(t.slice(i,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);i=s+o}}readNode(e){if(e.cmIgnore)return;let t=Re.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(OS(e,i.node,i.offset)?t:0))}}function OS(n,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let l=s||o?[]:kS(e),a=new gS(l,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=SS(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!Zc(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!Zc(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),u=e.viewport;if(F.ios&&e.state.selection.main.empty&&a!=c&&(u.from>0||u.toDate.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds,a=r.from,c=null;(s===8||F.android&&e.text.length=r.from&&t.to<=r.to&&(t.from!=r.from||t.to!=r.to)&&r.to-r.from-(t.to-t.from)<=4?t={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,r.to))}:(F.mac||F.android)&&t&&t.from==t.to&&t.from==r.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=V.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:ge.of([" "])}):F.chrome&&t&&t.from==t.to&&t.from==r.head&&t.insert.toString()==` - `&&n.lineWrapping&&(i&&(i=V.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:ge.of([" "])}),t){if(F.ios&&n.inputState.flushIOSKey()||F.android&&(t.from==r.from&&t.to==r.to&&t.insert.length==1&&t.insert.lines==2&&fr(n.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&t.insert.length==0||s==8&&t.insert.lengthr.head)&&fr(n.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&t.insert.length==0&&fr(n.contentDOM,"Delete",46)))return!0;let o=t.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let l,a=()=>l||(l=vS(n,t,i));return n.state.facet(aO).some(c=>c(n,t.from,t.to,o,a))||n.dispatch(a()),!0}else if(i&&!i.main.eq(r)){let o=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function vS(n,e,t){let i,r=n.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=s.frome.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+a))}else{let l=r.changes(e),a=t&&t.main.to<=l.newLength?t.main:void 0;if(r.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=n.state.sliceDoc(e.from,e.to),u,h=t&&OO(n,t.main.head);if(h){let p=e.insert.length-(e.to-e.from);u={from:h.from,to:h.to-p}}else u=n.state.doc.lineAt(s.head);let d=s.to-e.to,f=s.to-s.from;i=r.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:l,range:a||p.map(l)};let m=p.to-d,O=m-c.length;if(p.to-p.from!=f||n.state.sliceDoc(O,m)!=c||p.to>=u.from&&p.from<=u.to)return{range:p};let b=r.changes({from:O,to:m,insert:e.insert}),y=p.to-s.to;return{changes:b,range:a?V.range(Math.max(0,a.anchor+y),Math.max(0,a.head+y)):p.map(b)}})}else i={changes:l,selection:a&&r.selection.replaceRange(a)}}let o="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,o+=".compose",n.inputState.compositionFirstChange&&(o+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:o,scrollIntoView:!0})}function yS(n,e,t,i){let r=Math.min(n.length,e.length),s=0;for(;s0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,s-Math.min(o,l));t-=o+a-s}if(o=o?s-t:0;s-=a,l=s+(l-o),o=s}else if(l=l?s-t:0;s-=a,o=s+(o-l),l=s}return{from:s,toA:o,toB:l}}function kS(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:s}=n.observer.selectionRange;return t&&(e.push(new bf(t,i)),(r!=t||s!=i)&&e.push(new bf(r,s))),e}function SS(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?V.single(t+e,i+e):null}const wS={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},_a=F.ie&&F.ie_version<=11;class xS{constructor(e){this.view=e,this.active=!1,this.selectionRange=new l1,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(F.ie&&F.ie_version<=11||F.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),_a&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(ea)?i.root.activeElement!=this.dom:!Ko(i.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(F.ie&&F.ie_version<=11||F.android&&F.chrome)&&!i.state.selection.main.empty&&r.focusNode&&ys(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=F.safari&&e.root.nodeType==11&&i1(this.dom.ownerDocument)==this.dom&&$S(this.view)||gl(e.root);if(!t||this.selectionRange.eq(t))return!1;let i=Ko(this.dom,t);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&fr(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,r=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(r=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:r}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),r=this.selectionChanged&&Ko(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new bS(this.view,e,t,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,r=ZO(this.view,t);return this.view.state==i&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=vf(t,e.previousSibling||e.target.previousSibling,-1),r=vf(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function vf(n,e,t){for(;e;){let i=Re.get(e);if(i&&i.parent==n)return i;let r=e.parentNode;e=r!=n.dom?r:t>0?e.nextSibling:e.previousSibling}return null}function $S(n){let e=null;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}if(n.contentDOM.addEventListener("beforeinput",t,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let i=e.startContainer,r=e.startOffset,s=e.endContainer,o=e.endOffset,l=n.docView.domAtPos(n.state.selection.main.anchor);return ys(l.node,l.offset,s,o)&&([i,r,s,o]=[s,o,i,r]),{anchorNode:i,anchorOffset:r,focusNode:s,focusOffset:o}}class ee{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(i=>i.forEach(r=>t(r,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||a1(e.parent)||document,this.viewState=new mf(e.state||pe.create(e)),e.scrollTo&&e.scrollTo.is(So)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(us).map(i=>new xa(i));for(let i of this.plugins)i.update(this);this.observer=new xS(this),this.inputState=new M1(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ud(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof tt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,r,s=this.state;for(let d of e){if(d.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=d.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,l=0,a=null;e.some(d=>d.annotation(PO))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=CO(s,o),a||(l=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(pe.phrases)!=this.state.facet(pe.phrases))return this.setState(s);r=Ol.create(this,s,e),r.flags|=l;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(h&&(h=h.map(d.changes)),d.scrollIntoView){let{main:f}=d.state.selection;h=new pr(f.empty?f:V.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of d.effects)f.is(So)&&(h=f.value.clip(this.state))}this.viewState.update(r,h),this.bidiCache=bl.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(hs)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(_o)!=r.state.facet(_o)&&(this.viewState.mustMeasureContent=!0),(t||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let d of this.state.facet(Bc))try{d(r)}catch(f){cn(this.state,f,"update listener")}(a||u)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),u&&!ZO(this,u)&&c.force&&fr(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new mf(e),this.plugins=e.facet(us).map(i=>new xa(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new Ud(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(us),i=e.state.facet(us);if(t!=i){let r=[];for(let s of i){let o=t.indexOf(s);if(o<0)r.push(new xa(s));else{let l=this.plugins[o];l.mustUpdate=e,r.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(Bg(i))s=-1,o=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(r);s=f.from,o=f.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];a&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(f=>{try{return f.read(this)}catch(p){return cn(this.state,p),yf}}),h=Ol.create(this,this.state,[]),d=!1;h.flags|=a,t?t.flags|=a:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),d=this.docView.update(h));for(let f=0;f1||p<-1){r=r+p,i.scrollTop=r/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Bc))l(t)}get themeClasses(){return Fc+" "+(this.state.facet(Nc)?TO:AO)+" "+this.state.facet(_o)}updateAttrs(){let e=kf(this,dO,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ea)?"true":"false",class:"cm-content",style:`${F.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),kf(this,Nu,t);let i=this.observer.ignore(()=>{let r=Vc(this.contentDOM,this.contentAttrs,t),s=Vc(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let r of i.effects)if(r.is(ee.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(hs);let e=this.state.facet(ee.cspNonce);yi.mount(this.root,this.styleModules.concat(mS).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ti.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Pa(this,e,nf(this,e,t,i))}moveByGroup(e,t){return Pa(this,e,nf(this,e,t,i=>V1(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=i[t?i.length-1:0];return V.cursor(s.side(t,r)+e.from,s.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,i=!0){return L1(this,e,t,i)}moveVertically(e,t,i){return Pa(this,e,q1(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),vO(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),o=s[mi.find(s,e-r.from,-1,t)];return Kl(i,o.dir==Me.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(uO)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>PS)return nO(e.length);let t=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||tO(s.isolates,i=Gd(this,e))))return s.order;i||(i=Gd(this,e));let r=k1(e.text,t,i);return this.bidiCache.push(new bl(e.from,e.to,t,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||F.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Xg(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return So.of(new pr(typeof e=="number"?V.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return So.of(new pr(V.cursor(i.from),"start","start",i.top-e,t,!0))}static domEventHandlers(e){return Ft.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ft.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=yi.newName(),r=[_o.of(i),hs.of(Gc(`.${i}`,e))];return t&&t.dark&&r.push(Nc.of(!0)),r}static baseTheme(e){return Gi.lowest(hs.of(Gc("."+Fc,e,EO)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),r=i&&Re.get(i)||Re.get(e);return((t=r==null?void 0:r.rootView)===null||t===void 0?void 0:t.view)||null}}ee.styleModule=hs;ee.inputHandler=aO;ee.focusChangeEffect=cO;ee.perLineTextDirection=uO;ee.exceptionSink=lO;ee.updateListener=Bc;ee.editable=ea;ee.mouseSelectionStyle=oO;ee.dragMovesSelection=sO;ee.clickAddsSelectionRange=rO;ee.decorations=Ts;ee.outerDecorations=fO;ee.atomicRanges=Fu;ee.bidiIsolatedRanges=pO;ee.scrollMargins=mO;ee.darkTheme=Nc;ee.cspNonce=J.define({combine:n=>n.length?n[0]:""});ee.contentAttributes=Nu;ee.editorAttributes=dO;ee.lineWrapping=ee.contentAttributes.of({class:"cm-lineWrapping"});ee.announce=we.define();const PS=4096,yf={};class bl{constructor(e,t,i,r,s,o){this.from=e,this.to=t,this.dir=i,this.isolates=r,this.fresh=s,this.order=o}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:Me.LTR;for(let s=Math.max(0,e.length-10);s=0;r--){let s=i[r],o=typeof s=="function"?s(n):s;o&&Lc(o,t)}return t}const CS=F.mac?"mac":F.windows?"win":F.linux?"linux":"key";function _S(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let r,s,o,l;for(let a=0;ai.concat(r),[]))),t}let di=null;const TS=4e3;function ES(n,e=CS){let t=Object.create(null),i=Object.create(null),r=(o,l)=>{let a=i[o];if(a==null)i[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,l,a,c,u)=>{var h,d;let f=t[o]||(t[o]=Object.create(null)),p=l.split(/ (?!$)/).map(b=>_S(b,e));for(let b=1;b{let w=di={view:S,prefix:y,scope:o};return setTimeout(()=>{di==w&&(di=null)},TS),!0}]})}let m=p.join(" ");r(m,!1);let O=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((d=(h=f._any)===null||h===void 0?void 0:h.run)===null||d===void 0?void 0:d.slice())||[]});a&&O.run.push(a),c&&(O.preventDefault=!0),u&&(O.stopPropagation=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of l){let u=t[c]||(t[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let h in u)u[h].run.push(o.any)}let a=o[e]||o.key;if(a)for(let c of l)s(c,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return t}function ZS(n,e,t,i){let r=n1(e),s=on(r,0),o=hi(s)==r.length&&r!=" ",l="",a=!1,c=!1,u=!1;di&&di.view==t&&di.scope==i&&(l=di.prefix+" ",kO.indexOf(e.keyCode)<0&&(c=!0,di=null));let h=new Set,d=O=>{if(O){for(let b of O.run)if(!h.has(b)&&(h.add(b),b(t,e)))return O.stopPropagation&&(u=!0),!0;O.preventDefault&&(O.stopPropagation&&(u=!0),c=!0)}return!1},f=n[i],p,m;return f&&(d(f[l+Qo(r,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(F.windows&&e.ctrlKey&&e.altKey)&&(p=ki[e.keyCode])&&p!=r?(d(f[l+Qo(p,e,!0)])||e.shiftKey&&(m=Qs[e.keyCode])!=r&&m!=p&&d(f[l+Qo(m,e,!1)]))&&(a=!0):o&&e.shiftKey&&d(f[l+Qo(r,e,!0)])&&(a=!0),!a&&d(f._any)&&(a=!0)),c&&(a=!0),a&&u&&e.stopPropagation(),a}class io{constructor(e,t,i,r,s){this.className=e,this.left=t,this.top=i,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let s=RO(e);return[new io(t,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}else return RS(e,t,i)}}function RO(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==Me.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function wf(n,e,t){let i=V.cursor(e);return{from:Math.max(t.from,n.moveToLineBoundary(i,!1,!0).from),to:Math.min(t.to,n.moveToLineBoundary(i,!0,!0).from),type:Vt.Text}}function RS(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),r=Math.min(t.to,n.viewport.to),s=n.textDirection==Me.LTR,o=n.contentDOM,l=o.getBoundingClientRect(),a=RO(n),c=o.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=l.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=l.right-(u?parseInt(u.paddingRight):0),f=jc(n,i),p=jc(n,r),m=f.type==Vt.Text?f:null,O=p.type==Vt.Text?p:null;if(m&&(n.lineWrapping||f.widgetLineBreaks)&&(m=wf(n,i,m)),O&&(n.lineWrapping||p.widgetLineBreaks)&&(O=wf(n,r,O)),m&&O&&m.from==O.from)return y(S(t.from,t.to,m));{let $=m?S(t.from,null,m):w(f,!1),x=O?S(null,t.to,O):w(p,!0),_=[];return(m||f).to<(O||p).from-(m&&O?1:0)||f.widgetLineBreaks>1&&$.bottom+n.defaultLineHeight/2Z&&Q.from=E)break;ne>R&&X(Math.max(ae,R),$==null&&ae<=Z,Math.min(ne,E),x==null&&ne>=L,G.dir)}if(R=N.to+1,R>=E)break}return D.length==0&&X(Z,$==null,L,x==null,n.textDirection),{top:C,bottom:q,horizontal:D}}function w($,x){let _=l.top+(x?$.top:$.bottom);return{top:_,bottom:_,horizontal:[]}}}function DS(n,e){return n.constructor==e.constructor&&n.eq(e)}class IS{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(tl)!=e.state.facet(tl)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,i=e.facet(tl);for(;t!DS(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[i].constructor&&r.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(r.draw(),t);for(;t;){let r=t.nextSibling;t.remove(),t=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const tl=J.define();function DO(n){return[Ft.define(e=>new IS(e,n)),tl.of(n)]}const IO=!F.ios,Es=J.define({combine(n){return Hl(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function LS(n={}){return[Es.of(n),VS,qS,MS,hO.of(!0)]}function LO(n){return n.startState.facet(Es)!=n.state.facet(Es)}const VS=DO({above:!0,markers(n){let{state:e}=n,t=e.facet(Es),i=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty?!s||IO:t.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=r.empty?r:V.cursor(r.head,r.head>r.anchor?-1:1);for(let a of io.forRange(n,o,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=LO(n);return t&&xf(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){xf(e.state,n)},class:"cm-cursorLayer"});function xf(n,e){e.style.animationDuration=n.facet(Es).cursorBlinkRate+"ms"}const qS=DO({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:io.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||LO(n)},class:"cm-selectionLayer"}),Uc={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};IO&&(Uc[".cm-line"].caretColor="transparent !important",Uc[".cm-content"]={caretColor:"transparent !important"});const MS=Gi.highest(ee.theme(Uc));function $f(n,e,t,i,r){e.lastIndex=0;for(let s=n.iterRange(t,i),o=t,l;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)r(o+l.index,l)}function XS(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:r,to:s}of t)r=Math.max(n.state.doc.lineAt(r).from,r-e),s=Math.min(n.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}class WS{constructor(e){const{regexp:t,decoration:i,decorate:r,boundary:s,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(l,a,c,u)=>r(u,c,c+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,c,u)=>{let h=i(l,a,c);h&&u(c,c+l[0].length,h)};else if(i)this.addMatch=(l,a,c,u)=>u(c,c+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let t=new Pr,i=t.add.bind(t);for(let{from:r,to:s}of XS(e,this.maxLength))$f(e.state.doc,this.regexp,r,s,(o,l)=>this.addMatch(l,e,o,i));return t.finish()}updateDeco(e,t){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,o,l,a)=>{a>e.view.viewport.from&&l1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),i,r):t}updateRange(e,t,i,r){for(let s of e.visibleRanges){let o=Math.max(s.from,i),l=Math.min(s.to,r);if(l>o){let a=e.state.doc.lineAt(o),c=a.toa.from;o--)if(this.boundary.test(a.text[o-1-a.from])){u=o;break}for(;ld.push(b.range(m,O));if(a==c)for(this.regexp.lastIndex=u-a.from;(f=this.regexp.exec(a.text))&&f.indexthis.addMatch(O,e,m,p));t=t.update({filterFrom:u,filterTo:h,filter:(m,O)=>mh,add:d})}}return t}}const Hc=/x/.unicode!=null?"gu":"g",BS=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Hc),zS={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Qa=null;function jS(){var n;if(Qa==null&&typeof document<"u"&&document.body){let e=document.body.style;Qa=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Qa||!1}const nl=J.define({combine(n){let e=Hl(n,{render:null,specialChars:BS,addSpecialChars:null});return(e.replaceTabs=!jS())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Hc)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Hc)),e}});function YS(n={}){return[nl.of(n),NS()]}let Pf=null;function NS(){return Pf||(Pf=Ft.fromClass(class{constructor(n){this.view=n,this.decorations=Ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(nl)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new WS({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,s=on(e[0],0);if(s==9){let o=r.lineAt(i),l=t.state.tabSize,a=Rn(o.text,l,i-o.from);return Ce.replace({widget:new HS((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Ce.replace({widget:new US(n,s)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(nl);n.startState.facet(nl)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const FS="•";function GS(n){return n>=32?FS:n==10?"␤":String.fromCharCode(9216+n)}class US extends Ui{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=GS(this.code),i=e.state.phrase("Control character")+" "+(zS[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let s=document.createElement("span");return s.textContent=t,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class HS extends Ui{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}class KS extends Ui{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?Cr(e.firstChild):[];if(!t.length)return null;let i=window.getComputedStyle(e.parentNode),r=Kl(t[0],i.direction!="rtl"),s=parseInt(i.lineHeight);return r.bottom-r.top>s*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+s}:r}ignoreEvent(){return!1}}function JS(n){return Ft.fromClass(class{constructor(e){this.view=e,this.placeholder=n?Ce.set([Ce.widget({widget:new KS(n),side:1}).range(0)]):Ce.none}get decorations(){return this.view.state.doc.length?Ce.none:this.placeholder}},{decorations:e=>e.decorations})}const es="-10000px";class ew{constructor(e,t,i){this.facet=t,this.createTooltipView=i,this.input=e.state.facet(t),this.tooltips=this.input.filter(r=>r),this.tooltipViews=this.tooltips.map(i)}update(e,t){var i;let r=e.state.facet(this.facet),s=r.filter(a=>a);if(r===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],l=t?[]:null;for(let a=0;at[c]=a),t.length=l.length),this.input=r,this.tooltips=s,this.tooltipViews=o,!0}}function tw(n){let{win:e}=n;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Aa=J.define({combine:n=>{var e,t,i;return{position:F.ios?"absolute":((e=n.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(r=>r.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||tw}}}),Cf=new WeakMap,VO=Ft.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(Aa);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new ew(n,qO,t=>this.createTooltip(t)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(Aa);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n){let e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=es,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(n=t.destroy)===null||n===void 0||n.call(t);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=this.view.dom.getBoundingClientRect(),e=1,t=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(F.gecko)i=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==es&&r.style.left=="0px"){let s=r.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map((r,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(Aa).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:i}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:i,scaleX:r,scaleY:s}=n,o=[];for(let l=0;l=Math.min(t.bottom,i.bottom)||h.rightMath.min(t.right,i.right)+.1){u.style.top=es;continue}let f=a.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,m=d.right-d.left,O=(e=Cf.get(c))!==null&&e!==void 0?e:d.bottom-d.top,b=c.offset||iw,y=this.view.textDirection==Me.LTR,S=d.width>i.right-i.left?y?i.left:i.right-d.width:y?Math.min(h.left-(f?14:0)+b.x,i.right-m):Math.max(i.left,h.left-m+(f?14:0)-b.x),w=this.above[l];!a.strictSide&&(w?h.top-(d.bottom-d.top)-b.yi.bottom)&&w==i.bottom-h.bottom>h.top-i.top&&(w=this.above[l]=!w);let $=(w?h.top-i.top:i.bottom-h.bottom)-p;if($S&&C.topx&&(x=w?C.top-O-2-p:C.bottom+p+2);if(this.position=="absolute"?(u.style.top=(x-n.parent.top)/s+"px",u.style.left=(S-n.parent.left)/r+"px"):(u.style.top=x/s+"px",u.style.left=S/r+"px"),f){let C=h.left+(y?b.x:-b.x)-(S+14-7);f.style.left=C/r+"px"}c.overlap!==!0&&o.push({left:S,top:x,right:_,bottom:x+O}),u.classList.toggle("cm-tooltip-above",w),u.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=es}},{eventObservers:{scroll(){this.maybeMeasure()}}}),nw=ee.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),iw={x:0,y:0},qO=J.define({enables:[VO,nw]});function MO(n,e){let t=n.plugin(VO);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}class Qr extends Wi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Qr.prototype.elementClass="";Qr.prototype.toDOM=void 0;Qr.prototype.mapMode=Ot.TrackBefore;Qr.prototype.startSide=Qr.prototype.endSide=-1;Qr.prototype.point=!0;const XO=1024;let rw=0;class Wt{constructor(e,t){this.from=e,this.to=t}}class ie{constructor(e={}){this.id=rw++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ge.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}ie.closedBy=new ie({deserialize:n=>n.split(" ")});ie.openedBy=new ie({deserialize:n=>n.split(" ")});ie.group=new ie({deserialize:n=>n.split(" ")});ie.isolate=new ie({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});ie.contextHash=new ie({perNode:!0});ie.lookAhead=new ie({perNode:!0});ie.mounted=new ie({perNode:!0});class Zs{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[ie.mounted.id]}}const sw=Object.create(null);class Ge{constructor(e,t,i,r=0){this.name=e,this.props=t,this.id=i,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):sw,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new Ge(e.name||"",t,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(ie.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let r of i.split(" "))t[r]=e[i];return i=>{for(let r=i.prop(ie.group),s=-1;s<(r?r.length:0);s++){let o=t[s<0?i.name:r[s]];if(o)return o}}}}Ge.none=new Ge("",Object.create(null),0,8);class Mr{constructor(e){this.types=e;for(let t=0;t0;for(let a=this.cursor(o|Pe.IncludeAnonymous);;){let c=!1;if(a.from<=s&&a.to>=r&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;c=!0}for(;c&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Ku(Ge.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,r)=>new ue(this.type,t,i,r,this.propValues),e.makeTree||((t,i,r)=>new ue(Ge.none,t,i,r)))}static build(e){return cw(e)}}ue.empty=new ue(Ge.none,[],[],0);class Uu{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Uu(this.buffer,this.index)}}class wi{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Ge.none}toString(){let e=[];for(let t=0;t0));a=o[a+3]);return l}slice(e,t,i){let r=this.buffer,s=new Uint16Array(t-e),o=0;for(let l=e,a=0;l=e&&te;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function Rs(n,e,t,i){for(var r;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to0?l.length:-1;e!=c;e+=t){let u=l[e],h=a[e]+o.from;if(WO(r,i,h,h+u.length)){if(u instanceof wi){if(s&Pe.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,t,i-h,r);if(d>-1)return new Pn(new ow(o,u,e,h),null,d)}else if(s&Pe.IncludeAnonymous||!u.type.isAnonymous||Hu(u)){let d;if(!(s&Pe.IgnoreMounts)&&(d=Zs.get(u))&&!d.overlay)return new pt(d.tree,h,e,o);let f=new pt(u,h,e,o);return s&Pe.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?u.children.length-1:0,t,i,r)}}}if(s&Pe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let r;if(!(i&Pe.IgnoreOverlays)&&(r=Zs.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:o,to:l}of r.overlay)if((t>0?o<=s:o=s:l>s))return new pt(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Qf(n,e,t,i){let r=n.cursor(),s=[];if(!r.firstChild())return s;if(t!=null){for(;!r.type.is(t);)if(!r.nextSibling())return s}for(;;){if(i!=null&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return i==null?s:[]}}function Kc(n,e,t=e.length-1){for(let i=n.parent;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class ow{constructor(e,t,i,r){this.parent=e,this.buffer=t,this.index=i,this.start=r}}class Pn extends BO{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,i);return s<0?null:new Pn(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&Pe.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new Pn(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Pn(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Pn(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];if(s>r){let o=i.buffer[this.index+1];e.push(i.slice(r,s,o)),t.push(0)}return new ue(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function zO(n){if(!n.length)return null;let e=0,t=n[0];for(let s=1;st.from||o.to=e){let l=new pt(o.tree,o.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(Rs(l,e,t,!1))}}return r?zO(r):i}class vl{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof pt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof pt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&Pe.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Pe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Pe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(t.findChild(r,this.index,-1,0,4))}else{let r=t.buffer[this.index+3];if(r<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let s=t+e,o=e<0?-1:i._tree.children.length;s!=o;s+=e){let l=i._tree.children[s];if(this.mode&Pe.IncludeAnonymous||l instanceof wi||!l.type.isAnonymous||Hu(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,i=s+1;break e}r=this.stack[--s]}for(let r=i;r=0;s--){if(s<0)return Kc(this.node,e,r);let o=i[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function Hu(n){return n.children.some(e=>e instanceof wi||!e.type.isAnonymous||Hu(e))}function cw(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:r=XO,reused:s=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(t)?new Uu(t,t.length):t,a=i.types,c=0,u=0;function h($,x,_,C,q,D){let{id:X,start:Z,end:L,size:Q}=l,R=u;for(;Q<0;)if(l.next(),Q==-1){let ne=s[X];_.push(ne),C.push(Z-$);return}else if(Q==-3){c=X;return}else if(Q==-4){u=X;return}else throw new RangeError(`Unrecognized record size: ${Q}`);let E=a[X],N,G,ae=Z-$;if(L-Z<=r&&(G=O(l.pos-x,q))){let ne=new Uint16Array(G.size-G.skip),he=l.pos-G.size,_e=ne.length;for(;l.pos>he;)_e=b(G.start,ne,_e);N=new wi(ne,L-G.start,i),ae=G.start-$}else{let ne=l.pos-Q;l.next();let he=[],_e=[],Ie=X>=o?X:-1,ve=0,ye=L;for(;l.pos>ne;)Ie>=0&&l.id==Ie&&l.size>=0?(l.end<=ye-r&&(p(he,_e,Z,ve,l.end,ye,Ie,R),ve=he.length,ye=l.end),l.next()):D>2500?d(Z,ne,he,_e):h(Z,ne,he,_e,Ie,D+1);if(Ie>=0&&ve>0&&ve-1&&ve>0){let Le=f(E);N=Ku(E,he,_e,0,he.length,0,L-Z,Le,Le)}else N=m(E,he,_e,L-Z,R-L)}_.push(N),C.push(ae)}function d($,x,_,C){let q=[],D=0,X=-1;for(;l.pos>x;){let{id:Z,start:L,end:Q,size:R}=l;if(R>4)l.next();else{if(X>-1&&L=0;Q-=3)Z[R++]=q[Q],Z[R++]=q[Q+1]-L,Z[R++]=q[Q+2]-L,Z[R++]=R;_.push(new wi(Z,q[2]-L,i)),C.push(L-$)}}function f($){return(x,_,C)=>{let q=0,D=x.length-1,X,Z;if(D>=0&&(X=x[D])instanceof ue){if(!D&&X.type==$&&X.length==C)return X;(Z=X.prop(ie.lookAhead))&&(q=_[D]+X.length+Z)}return m($,x,_,C,q)}}function p($,x,_,C,q,D,X,Z){let L=[],Q=[];for(;$.length>C;)L.push($.pop()),Q.push(x.pop()+_-q);$.push(m(i.types[X],L,Q,D-q,Z-D)),x.push(q-_)}function m($,x,_,C,q=0,D){if(c){let X=[ie.contextHash,c];D=D?[X].concat(D):[X]}if(q>25){let X=[ie.lookAhead,q];D=D?[X].concat(D):[X]}return new ue($,x,_,C,D)}function O($,x){let _=l.fork(),C=0,q=0,D=0,X=_.end-r,Z={size:0,start:0,skip:0};e:for(let L=_.pos-$;_.pos>L;){let Q=_.size;if(_.id==x&&Q>=0){Z.size=C,Z.start=q,Z.skip=D,D+=4,C+=4,_.next();continue}let R=_.pos-Q;if(Q<0||R=o?4:0,N=_.start;for(_.next();_.pos>R;){if(_.size<0)if(_.size==-3)E+=4;else break e;else _.id>=o&&(E+=4);_.next()}q=N,C+=Q,D+=E}return(x<0||C==$)&&(Z.size=C,Z.start=q,Z.skip=D),Z.size>4?Z:void 0}function b($,x,_){let{id:C,start:q,end:D,size:X}=l;if(l.next(),X>=0&&C4){let L=l.pos-(X-4);for(;l.pos>L;)_=b($,x,_)}x[--_]=Z,x[--_]=D-$,x[--_]=q-$,x[--_]=C}else X==-3?c=C:X==-4&&(u=C);return _}let y=[],S=[];for(;l.pos>0;)h(n.start||0,n.bufferStart||0,y,S,-1,0);let w=(e=n.length)!==null&&e!==void 0?e:y.length?S[0]+y[0].length:0;return new ue(a[n.topID],y.reverse(),S.reverse(),w)}const Af=new WeakMap;function il(n,e){if(!n.isAnonymous||e instanceof wi||e.type!=n)return 1;let t=Af.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof ue)){t=1;break}t+=il(n,i)}Af.set(e,t)}return t}function Ku(n,e,t,i,r,s,o,l,a){let c=0;for(let p=i;p=u)break;x+=_}if(S==w+1){if(x>u){let _=p[w];f(_.children,_.positions,0,_.children.length,m[w]+y);continue}h.push(p[w])}else{let _=m[S-1]+p[S-1].length-$;h.push(Ku(n,p,m,w,S,$,_,null,a))}d.push($+y-s)}}return f(e,t,i,r,0),(l||a)(h,d,o)}class jO{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof Pn?this.setBuffer(e.context.buffer,e.index,t):e instanceof pt&&this.map.set(e.tree,t)}get(e){return e instanceof Pn?this.getBuffer(e.context.buffer,e.index):e instanceof pt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Fn{constructor(e,t,i,r,s=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=r,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let r=[new Fn(0,e.length,e,0,!1,i)];for(let s of t)s.to>e.length&&r.push(s);return r}static applyChanges(e,t,i=128){if(!t.length)return e;let r=[],s=1,o=e.length?e[0]:null;for(let l=0,a=0,c=0;;l++){let u=l=i)for(;o&&o.from=d.from||h<=d.to||c){let f=Math.max(d.from,a)-c,p=Math.min(d.to,h)-c;d=f>=p?null:new Fn(f,p,d.tree,d.offset+c,l>0,!!u)}if(d&&r.push(d),o.to>h)break;o=snew Wt(r.from,r.to)):[new Wt(0,0)]:[new Wt(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let r=this.startParse(e,t,i);for(;;){let s=r.advance();if(s)return s}}}class uw{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function YO(n){return(e,t,i,r)=>new dw(e,n,t,i,r)}class Tf{constructor(e,t,i,r,s){this.parser=e,this.parse=t,this.overlay=i,this.target=r,this.from=s}}function Ef(n){if(!n.length||n.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(n))}class hw{constructor(e,t,i,r,s,o,l){this.parser=e,this.predicate=t,this.mounts=i,this.index=r,this.start=s,this.target=o,this.prev=l,this.depth=0,this.ranges=[]}}const Jc=new ie({perNode:!0});class dw{constructor(e,t,i,r,s){this.nest=t,this.input=i,this.fragments=r,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new ue(i.type,i.children,i.positions,i.length,i.propValues.concat([[Jc,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[ie.mounted.id]=new Zs(t,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t=this.stoppedAt)l=!1;else if(e.hasNode(r)){if(t){let c=t.mounts.find(u=>u.frag.from<=r.from&&u.frag.to>=r.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let h=u.from+c.pos,d=u.to+c.pos;h>=r.from&&d<=r.to&&!t.ranges.some(f=>f.fromh)&&t.ranges.push({from:h,to:d})}}l=!1}else if(i&&(o=fw(i.ranges,r.from,r.to)))l=o!=2;else if(!r.type.isAnonymous&&(s=this.nest(r,this.input))&&(r.fromnew Wt(h.from-r.from,h.to-r.from)):null,r.tree,u.length?u[0].from:r.from)),s.overlay?u.length&&(i={ranges:u,depth:0,prev:i}):l=!1}}else t&&(a=t.predicate(r))&&(a===!0&&(a=new Wt(r.from,r.to)),a.fromnew Wt(u.from-t.start,u.to-t.start)),t.target,c[0].from))),t=t.prev}i&&!--i.depth&&(i=i.prev)}}}}function fw(n,e,t){for(let i of n){if(i.from>=t)break;if(i.to>e)return i.from<=e&&i.to>=t?2:1}return 0}function Zf(n,e,t,i,r,s){if(e=e&&t.enter(i,1,Pe.IgnoreOverlays|Pe.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof ue)t=t.children[0];else break}return!1}}let mw=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=(t=i.tree.prop(Jc))!==null&&t!==void 0?t:i.to,this.inner=new Rf(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(Jc))!==null&&e!==void 0?e:t.to,this.inner=new Rf(t.tree,-t.offset)}}findMounts(e,t){var i;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(i=s.tree)===null||i===void 0?void 0:i.prop(ie.mounted);if(o&&o.parser==t)for(let l=this.fragI;l=s.to)break;a.tree==this.curFrag.tree&&r.push({frag:a,pos:s.from-a.offset,mount:o})}}}return r}};function Df(n,e){let t=null,i=e;for(let r=1,s=0;r=l)break;a.to<=o||(t||(i=t=e.slice()),a.froml&&t.splice(s+1,0,new Wt(l,a.to))):a.to>l?t[s--]=new Wt(l,a.to):t.splice(s--,1))}}return i}function gw(n,e,t,i){let r=0,s=0,o=!1,l=!1,a=-1e9,c=[];for(;;){let u=r==n.length?1e9:o?n[r].to:n[r].from,h=s==e.length?1e9:l?e[s].to:e[s].from;if(o!=l){let d=Math.max(a,t),f=Math.min(u,h,i);dnew Wt(d.from+i,d.to+i)),h=gw(e,u,a,c);for(let d=0,f=a;;d++){let p=d==h.length,m=p?c:h[d].from;if(m>f&&t.push(new Fn(f,m,r.tree,-o,s.from>=f||s.openStart,s.to<=m||s.openEnd)),p)break;f=h[d].to}}else t.push(new Fn(a,c,r.tree,-o,s.from>=o||s.openStart,s.to<=l||s.openEnd))}return t}let Ow=0;class ln{constructor(e,t,i){this.set=e,this.base=t,this.modified=i,this.id=Ow++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new ln([],null,[]);if(t.set.push(t),e)for(let i of e.set)t.set.push(i);return t}static defineModifier(){let e=new yl;return t=>t.modified.indexOf(e)>-1?t:yl.get(t.base||t,t.modified.concat(e).sort((i,r)=>i.id-r.id))}}let bw=0;class yl{constructor(){this.instances=[],this.id=bw++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&vw(t,l.modified));if(i)return i;let r=[],s=new ln(r,e,t);for(let l of t)l.instances.push(s);let o=yw(t);for(let l of e.set)if(!l.modified.length)for(let a of o)r.push(yl.get(l,a));return s}}function vw(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function yw(n){let e=[[]];for(let t=0;ti.length-t.length)}function Xr(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let r of t.split(" "))if(r){let s=[],o=2,l=r;for(let h=0;;){if(l=="..."&&h>0&&h+3==r.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!d)throw new RangeError("Invalid path: "+r);if(s.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),h+=d[0].length,h==r.length)break;let f=r[h++];if(h==r.length&&f=="!"){o=0;break}if(f!="/")throw new RangeError("Invalid path: "+r);l=r.slice(h)}let a=s.length-1,c=s[a];if(!c)throw new RangeError("Invalid path: "+r);let u=new kl(i,o,a>0?s.slice(0,a):null);e[c]=u.sort(e[c])}}return NO.add(e)}const NO=new ie;class kl{constructor(e,t,i,r){this.tags=e,this.mode=t,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=r;for(let l of s)for(let a of l.set){let c=t[a.id];if(c){o=o?o+" "+c:c;break}}return o},scope:i}}function kw(n,e){let t=null;for(let i of n){let r=i.style(e);r&&(t=t?t+" "+r:r)}return t}function Sw(n,e,t,i=0,r=n.length){let s=new ww(i,Array.isArray(e)?e:[e],t);s.highlightRange(n.cursor(),i,r,"",s.highlighters),s.flush(r)}class ww{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,r,s){let{type:o,from:l,to:a}=e;if(l>=i||a<=t)return;o.isTop&&(s=this.highlighters.filter(f=>!f.scope||f.scope(o)));let c=r,u=xw(e)||kl.empty,h=kw(s,u.tags);if(h&&(c&&(c+=" "),c+=h,u.mode==1&&(r+=(r?" ":"")+h)),this.startSpan(Math.max(t,l),c),u.opaque)return;let d=e.tree&&e.tree.prop(ie.mounted);if(d&&d.overlay){let f=e.node.enter(d.overlay[0].from+l,1),p=this.highlighters.filter(O=>!O.scope||O.scope(d.tree.type)),m=e.firstChild();for(let O=0,b=l;;O++){let y=O=S||!e.nextSibling())););if(!y||S>i)break;b=y.to+l,b>t&&(this.highlightRange(f.cursor(),Math.max(t,y.from+l),Math.min(i,b),"",p),this.startSpan(Math.min(i,b),c))}m&&e.parent()}else if(e.firstChild()){d&&(r="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,r,s),this.startSpan(Math.min(i,e.to),c)}while(e.nextSibling());e.parent()}}}function xw(n){let e=n.type.prop(NO);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const j=ln.define,To=j(),ai=j(),Lf=j(ai),Vf=j(ai),ci=j(),Eo=j(ci),Ta=j(ci),bn=j(),Pi=j(bn),gn=j(),On=j(),eu=j(),ts=j(eu),Zo=j(),v={comment:To,lineComment:j(To),blockComment:j(To),docComment:j(To),name:ai,variableName:j(ai),typeName:Lf,tagName:j(Lf),propertyName:Vf,attributeName:j(Vf),className:j(ai),labelName:j(ai),namespace:j(ai),macroName:j(ai),literal:ci,string:Eo,docString:j(Eo),character:j(Eo),attributeValue:j(Eo),number:Ta,integer:j(Ta),float:j(Ta),bool:j(ci),regexp:j(ci),escape:j(ci),color:j(ci),url:j(ci),keyword:gn,self:j(gn),null:j(gn),atom:j(gn),unit:j(gn),modifier:j(gn),operatorKeyword:j(gn),controlKeyword:j(gn),definitionKeyword:j(gn),moduleKeyword:j(gn),operator:On,derefOperator:j(On),arithmeticOperator:j(On),logicOperator:j(On),bitwiseOperator:j(On),compareOperator:j(On),updateOperator:j(On),definitionOperator:j(On),typeOperator:j(On),controlOperator:j(On),punctuation:eu,separator:j(eu),bracket:ts,angleBracket:j(ts),squareBracket:j(ts),paren:j(ts),brace:j(ts),content:bn,heading:Pi,heading1:j(Pi),heading2:j(Pi),heading3:j(Pi),heading4:j(Pi),heading5:j(Pi),heading6:j(Pi),contentSeparator:j(bn),list:j(bn),quote:j(bn),emphasis:j(bn),strong:j(bn),link:j(bn),monospace:j(bn),strikethrough:j(bn),inserted:j(),deleted:j(),changed:j(),invalid:j(),meta:Zo,documentMeta:j(Zo),annotation:j(Zo),processingInstruction:j(Zo),definition:ln.defineModifier(),constant:ln.defineModifier(),function:ln.defineModifier(),standard:ln.defineModifier(),local:ln.defineModifier(),special:ln.defineModifier()};FO([{tag:v.link,class:"tok-link"},{tag:v.heading,class:"tok-heading"},{tag:v.emphasis,class:"tok-emphasis"},{tag:v.strong,class:"tok-strong"},{tag:v.keyword,class:"tok-keyword"},{tag:v.atom,class:"tok-atom"},{tag:v.bool,class:"tok-bool"},{tag:v.url,class:"tok-url"},{tag:v.labelName,class:"tok-labelName"},{tag:v.inserted,class:"tok-inserted"},{tag:v.deleted,class:"tok-deleted"},{tag:v.literal,class:"tok-literal"},{tag:v.string,class:"tok-string"},{tag:v.number,class:"tok-number"},{tag:[v.regexp,v.escape,v.special(v.string)],class:"tok-string2"},{tag:v.variableName,class:"tok-variableName"},{tag:v.local(v.variableName),class:"tok-variableName tok-local"},{tag:v.definition(v.variableName),class:"tok-variableName tok-definition"},{tag:v.special(v.variableName),class:"tok-variableName2"},{tag:v.definition(v.propertyName),class:"tok-propertyName tok-definition"},{tag:v.typeName,class:"tok-typeName"},{tag:v.namespace,class:"tok-namespace"},{tag:v.className,class:"tok-className"},{tag:v.macroName,class:"tok-macroName"},{tag:v.propertyName,class:"tok-propertyName"},{tag:v.operator,class:"tok-operator"},{tag:v.comment,class:"tok-comment"},{tag:v.meta,class:"tok-meta"},{tag:v.invalid,class:"tok-invalid"},{tag:v.punctuation,class:"tok-punctuation"}]);var Ea;const gi=new ie;function na(n){return J.define({combine:n?e=>e.concat(n):void 0})}const Ju=new ie;class Lt{constructor(e,t,i=[],r=""){this.data=e,this.name=r,pe.prototype.hasOwnProperty("tree")||Object.defineProperty(pe.prototype,"tree",{get(){return Xe(this)}}),this.parser=t,this.extension=[Er.of(this),pe.languageData.of((s,o,l)=>{let a=qf(s,o,l),c=a.type.prop(gi);if(!c)return[];let u=s.facet(c),h=a.type.prop(Ju);if(h){let d=a.resolve(o-a.from,l);for(let f of h)if(f.test(d,s)){let p=s.facet(f.facet);return f.type=="replace"?p:p.concat(u)}}return u})].concat(i)}isActiveAt(e,t,i=-1){return qf(e,t,i).type.prop(gi)==this.data}findRegions(e){let t=e.facet(Er);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],r=(s,o)=>{if(s.prop(gi)==this.data){i.push({from:o,to:o+s.length});return}let l=s.prop(ie.mounted);if(l){if(l.tree.prop(gi)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+o,to:a.to+o});else i.push({from:o,to:o+s.length});return}else if(l.overlay){let a=i.length;if(r(l.tree,l.overlay[0].from+o),i.length>a)return}}for(let a=0;ai.isTop?t:void 0)]}),e.name)}configure(e,t){return new Ar(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Xe(n){let e=n.field(Lt.state,!1);return e?e.tree:ue.empty}class $w{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let ns=null;class ji{constructor(e,t,i=[],r,s,o,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new ji(e,t,[],ue.empty,0,i,[],null)}startParse(){return this.parser.startParse(new $w(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=ue.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Fn.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ns;ns=this;try{return e()}finally{ns=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Mf(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:r,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((c,u,h,d)=>a.push({fromA:c,toA:u,fromB:h,toB:d})),i=Fn.applyChanges(i,a),r=ue.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let c of this.skipped){let u=e.mapPos(c.from,1),h=e.mapPos(c.to,-1);ue.from&&(this.fragments=Mf(this.fragments,r,s),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends ta{createParse(t,i,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let a=ns;if(a){for(let c of r)a.tempSkipped.push(c);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new ue(Ge.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return ns}}function Mf(n,e,t){return Fn.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class Tr{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Tr(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=ji.create(e.facet(Er).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Tr(i)}}Lt.state=In.define({create:Tr.init,update(n,e){for(let t of e.effects)if(t.is(Lt.setState))return t.value;return e.startState.facet(Er)!=e.state.facet(Er)?Tr.init(e.state):n.apply(e)}});let GO=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(GO=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:500-100})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Za=typeof navigator<"u"&&(!((Ea=navigator.scheduling)===null||Ea===void 0)&&Ea.isInputPending)?()=>navigator.scheduling.isInputPending():null,Pw=Ft.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Lt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Lt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=GO(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,a=s.context.work(()=>Za&&Za()||Date.now()>o,r+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Lt.setState.of(new Tr(s.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>cn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Er=J.define({combine(n){return n.length?n[0]:null},enables:n=>[Lt.state,Pw,ee.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class Zr{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class A{constructor(e,t,i,r,s,o=void 0){this.name=e,this.alias=t,this.extensions=i,this.filename=r,this.loadFunc=s,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:i}=e;if(!t){if(!i)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(i)}return new A(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,t,i)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let i=/\.([^.]+)$/.exec(t);if(i){for(let r of e)if(r.extensions.indexOf(i[1])>-1)return r}return null}static matchLanguageName(e,t,i=!0){t=t.toLowerCase();for(let r of e)if(r.alias.some(s=>s==t))return r;if(i)for(let r of e)for(let s of r.alias){let o=t.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(t[o-1])&&!/\w/.test(t[o+s.length])))return r}return null}}const UO=J.define(),Wr=J.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Yi(n){let e=n.facet(Wr);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Sl(n,e){let t="",i=n.tabSize,r=n.facet(Wr)[0];if(r==" "){for(;e>=i;)t+=" ",e-=i;r=" "}for(let s=0;s=e?Cw(n,t,e):null}class ia{constructor(e,t={}){this.state=e,this.options=t,this.unit=Yi(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(t<0?r-1&&(s+=o-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,t=e.length){return Rn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:r}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let o=s(r);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ro=new ie;function Cw(n,e,t){let i=e.resolveStack(t),r=i.node.enterUnfinishedNodesBefore(t);if(r!=i.node){let s=[];for(let o=r;o!=i.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)i={node:s[o],next:i}}return KO(i,n,t)}function KO(n,e,t){for(let i=n;i;i=i.next){let r=Qw(i.node);if(r)return r(eh.create(e,t,i))}return 0}function _w(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Qw(n){let e=n.type.prop(ro);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(ie.closedBy))){let r=n.lastChild,s=r&&i.indexOf(r.name)>-1;return o=>JO(o,!0,1,void 0,s&&!_w(o)?r.from:void 0)}return n.parent==null?Aw:null}function Aw(){return 0}class eh extends ia{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new eh(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Tw(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return KO(this.context.next,this.base,this.pos)}}function Tw(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function Ew(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let r=n.options.simulateBreak,s=n.state.doc.lineAt(t.from),o=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped)return a.fromJO(i,e,t,n)}function JO(n,e,t,i,r){let s=n.textAfter,o=s.match(/^\s*/)[0].length,l=i&&s.slice(o,o+i.length)==i||r==n.pos+o,a=e?Ew(n):null;return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const Rw=n=>n.baseIndent;function rl({except:n,units:e=1}={}){return t=>{let i=n&&n.test(t.textAfter);return t.baseIndent+(i?0:e*t.unit)}}const Dw=J.define(),so=new ie;function e0(n){let e=n.firstChild,t=n.lastChild;return e&&e.tol.prop(gi)==o.data:o?l=>l==o:void 0,this.style=FO(e.map(l=>({tag:l.tag,class:l.class||r(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=i?new yi(i):null,this.themeType=t.themeType}static define(e,t){return new Br(e,t||{})}}const tu=J.define(),t0=J.define({combine(n){return n.length?[n[0]]:null}});function Ra(n){let e=n.facet(tu);return e.length?e:n.facet(t0)}function th(n,e){let t=[Lw],i;return n instanceof Br&&(n.module&&t.push(ee.styleModule.of(n.module)),i=n.themeType),e!=null&&e.fallback?t.push(t0.of(n)):i?t.push(tu.computeN([ee.darkTheme],r=>r.facet(ee.darkTheme)==(i=="dark")?[n]:[])):t.push(tu.of(n)),t}class Iw{constructor(e){this.markCache=Object.create(null),this.tree=Xe(e.state),this.decorations=this.buildDeco(e,Ra(e.state))}update(e){let t=Xe(e.state),i=Ra(e.state),r=i!=Ra(e.startState);t.length{i.add(o,l,this.markCache[a]||(this.markCache[a]=Ce.mark({class:a})))},r,s);return i.finish()}}const Lw=Gi.high(Ft.fromClass(Iw,{decorations:n=>n.decorations})),Vw=Br.define([{tag:v.meta,color:"#404740"},{tag:v.link,textDecoration:"underline"},{tag:v.heading,textDecoration:"underline",fontWeight:"bold"},{tag:v.emphasis,fontStyle:"italic"},{tag:v.strong,fontWeight:"bold"},{tag:v.strikethrough,textDecoration:"line-through"},{tag:v.keyword,color:"#708"},{tag:[v.atom,v.bool,v.url,v.contentSeparator,v.labelName],color:"#219"},{tag:[v.literal,v.inserted],color:"#164"},{tag:[v.string,v.deleted],color:"#a11"},{tag:[v.regexp,v.escape,v.special(v.string)],color:"#e40"},{tag:v.definition(v.variableName),color:"#00f"},{tag:v.local(v.variableName),color:"#30a"},{tag:[v.typeName,v.namespace],color:"#085"},{tag:v.className,color:"#167"},{tag:[v.special(v.variableName),v.macroName],color:"#256"},{tag:v.definition(v.propertyName),color:"#00c"},{tag:v.comment,color:"#940"},{tag:v.invalid,color:"#f00"}]),qw=1e4,Mw="()[]{}",n0=new ie;function nu(n,e,t){let i=n.prop(e<0?ie.openedBy:ie.closedBy);if(i)return i;if(n.name.length==1){let r=t.indexOf(n.name);if(r>-1&&r%2==(e<0?1:0))return[t[r+e]]}return null}function iu(n){let e=n.type.prop(n0);return e?e(n.node):n}function ar(n,e,t,i={}){let r=i.maxScanDistance||qw,s=i.brackets||Mw,o=Xe(n),l=o.resolveInner(e,t);for(let a=l;a;a=a.parent){let c=nu(a.type,t,s);if(c&&a.from0?e>=u.from&&eu.from&&e<=u.to))return Xw(n,e,t,a,u,c,s)}}return Ww(n,e,t,o,l.type,r,s)}function Xw(n,e,t,i,r,s,o){let l=i.parent,a={from:r.from,to:r.to},c=0,u=l==null?void 0:l.cursor();if(u&&(t<0?u.childBefore(i.from):u.childAfter(i.to)))do if(t<0?u.to<=i.from:u.from>=i.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},u=n.doc.iterRange(e,t>0?n.doc.length:0),h=0;for(let d=0;!u.next().done&&d<=s;){let f=u.value;t<0&&(d+=f.length);let p=e+d*t;for(let m=t>0?0:f.length-1,O=t>0?f.length:-1;m!=O;m+=t){let b=o.indexOf(f[m]);if(!(b<0||i.resolveInner(p+m,1).type!=r))if(b%2==0==t>0)h++;else{if(h==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==a>>1};h--}}t>0&&(d+=f.length)}return u.done?{start:c,matched:!1}:null}function Xf(n,e,t,i=0,r=0){e==null&&(e=n.search(/[^\s\u00a0]/),e==-1&&(e=n.length));let s=r;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosi?o.toLowerCase():o,s=this.string.substr(this.pos,e.length);return r(s)==r(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function Bw(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||zw,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||rh}}function zw(n){if(typeof n!="object")return n;let e={};for(let t in n){let i=n[t];e[t]=i instanceof Array?i.slice():i}return e}const Wf=new WeakMap;class nh extends Lt{constructor(e){let t=na(e.languageData),i=Bw(e),r,s=new class extends ta{createParse(o,l,a){return new Yw(r,o,l,a)}};super(t,s,[UO.of((o,l)=>this.getIndent(o,l))],e.name),this.topNode=Gw(t),r=this,this.streamParser=i,this.stateAfter=new ie({perNode:!0}),this.tokenTable=e.tokenTable?new l0(i.tokenTable):Fw}static define(e){return new nh(e)}getIndent(e,t){let i=Xe(e.state),r=i.resolve(t);for(;r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;let s,{overrideIndentation:o}=e.options;o&&(s=Wf.get(e.state),s!=null&&s1e4)return null;for(;a=i&&t+e.length<=r&&e.prop(n.stateAfter);if(s)return{state:n.streamParser.copyState(s),pos:t+e.length};for(let o=e.children.length-1;o>=0;o--){let l=e.children[o],a=t+e.positions[o],c=l instanceof ue&&a=e.length)return e;!r&&e.type==n.topNode&&(r=!0);for(let s=e.children.length-1;s>=0;s--){let o=e.positions[s],l=e.children[s],a;if(ot&&ih(n,r.tree,0-r.offset,t,o),a;if(l&&(a=r0(n,r.tree,t+r.offset,l.pos+r.offset,!1)))return{state:l.state,tree:a}}return{state:n.streamParser.startState(i?Yi(i):4),tree:ue.empty}}let Yw=class{constructor(e,t,i,r){this.lang=e,this.input=t,this.fragments=i,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let s=ji.get(),o=r[0].from,{state:l,tree:a}=jw(e,i,o,s==null?void 0:s.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let c=0;c=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==` +`;this.styleTag.textContent=s}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var ki={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Qs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},e1=typeof navigator<"u"&&/Mac/.test(navigator.platform),t1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var at=0;at<10;at++)ki[48+at]=ki[96+at]=String(at);for(var at=1;at<=24;at++)ki[at+111]="F"+at;for(var at=65;at<=90;at++)ki[at]=String.fromCharCode(at+32),Qs[at]=String.fromCharCode(at);for(var Sa in ki)Qs.hasOwnProperty(Sa)||(Qs[Sa]=ki[Sa]);function n1(n){var e=e1&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||t1&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Qs:ki)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function gl(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function Zc(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function i1(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Ko(n,e){if(!e.anchorNode)return!1;try{return Zc(n,e.anchorNode)}catch{return!1}}function Cr(n){return n.nodeType==3?Bi(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function ys(n,e,t,i){return t?Xd(n,e,t,i,-1)||Xd(n,e,t,i,1):!1}function As(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function Xd(n,e,t,i,r){for(;;){if(n==t&&e==i)return!0;if(e==(r<0?0:Gn(n))){if(n.nodeName=="DIV")return!1;let s=n.parentNode;if(!s||s.nodeType!=1)return!1;e=As(n)+(r<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=r<0?Gn(n):0}else return!1}}function Gn(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Kl(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function r1(n){return{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Mg(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function s1(n,e,t,i,r,s,o,l){let a=n.ownerDocument,c=a.defaultView||window;for(let u=n,h=!1;u&&!h;)if(u.nodeType==1){let d,f=u==a.body,p=1,m=1;if(f)d=r1(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let y=u.getBoundingClientRect();({scaleX:p,scaleY:m}=Mg(u,y)),d={left:y.left,right:y.left+u.clientWidth*p,top:y.top,bottom:y.top+u.clientHeight*m}}let O=0,b=0;if(r=="nearest")e.top0&&e.bottom>d.bottom+b&&(b=e.bottom-d.bottom+b+o)):e.bottom>d.bottom&&(b=e.bottom-d.bottom+o,t<0&&e.top-b0&&e.right>d.right+O&&(O=e.right-d.right+O+s)):e.right>d.right&&(O=e.right-d.right+s,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class l1{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?Gn(t):0),i,Math.min(e.focusOffset,i?Gn(i):0))}set(e,t,i,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=r}}let tr=null;function Xg(n){if(n.setActive)return n.setActive();if(tr)return n.focus(tr);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(tr==null?{get preventScroll(){return tr={preventScroll:!0},!0}}:void 0),!tr){tr=!1;for(let t=0;tMath.max(1,n.scrollHeight-n.clientHeight-4)}class dt{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new dt(e.parentNode,As(e),t)}static after(e,t){return new dt(e.parentNode,As(e)+1,t)}}const zu=[];class Re{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let i=this.dom,r=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=r?r.nextSibling:i.firstChild)){let l=Re.get(s);(!l||!l.parent&&l.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,t),o.flags&=-8}if(s=r?r.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&s!=o.dom&&(t.written=!0),o.dom.parentNode==i)for(;s&&s!=o.dom;)s=Bd(s);else i.insertBefore(o.dom,s);r=o.dom}for(s=r?r.nextSibling:i.firstChild,s&&t&&t.node==i&&(t.written=!0);s;)s=Bd(s)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,t),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let r=Gn(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!Re.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,s=0;;r++){let o=this.children[r];if(o.dom==i)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,t,i=0){let r=-1,s=-1,o=-1,l=-1;for(let a=0,c=i,u=i;at)return h.domBoundsAround(e,t,c);if(d>=e&&r==-1&&(r=a,s=c),c>t&&h.dom.parentNode==this.dom){o=a,l=u;break}u=d,c=d+h.breakAfter}return{from:s,to:l<0?i+this.length:l,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=zu){this.markDirty();for(let r=e;rthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function jg(n,e,t,i,r,s,o,l,a){let{children:c}=n,u=c.length?c[e]:null,h=s.length?s[s.length-1]:null,d=h?h.breakAfter:o;if(!(e==i&&u&&!o&&!d&&s.length<2&&u.merge(t,r,s.length?h:null,t==0,l,a))){if(i0&&(!o&&s.length&&u.merge(t,u.length,s[0],!1,l,0)?u.breakAfter=s.shift().breakAfter:(t2);var F={mac:Yd||/Mac/.test(It.platform),windows:/Win/.test(It.platform),linux:/Linux|X11/.test(It.platform),ie:Jl,ie_version:Ng?Rc.documentMode||6:Ic?+Ic[1]:Dc?+Dc[1]:0,gecko:zd,gecko_version:zd?+(/Firefox\/(\d+)/.exec(It.userAgent)||[0,0])[1]:0,chrome:!!wa,chrome_version:wa?+wa[1]:0,ios:Yd,android:/Android\b/.test(It.userAgent),webkit:jd,safari:Fg,webkit_version:jd?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Rc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const u1=256;class Un extends Re{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof Un)||this.length-(t-e)+i.length>u1||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Un(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new dt(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return h1(this.dom,e,t)}}class Hn extends Re{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let r of t)r.setParent(this)}setAttrs(e){if(Wg(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,r,s,o){return i&&(!(i instanceof Hn&&i.mark.eq(this.mark))||e&&s<=0||te&&t.push(i=e&&(r=s),i=a,s++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Hn(this.mark,t,o)}domAtPos(e){return Gg(this,e)}coordsAt(e,t){return Hg(this,e,t)}}function h1(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let r=e,s=e,o=0;e==0&&t<0||e==i&&t>=0?F.chrome||F.gecko||(e?(r--,o=1):s=0)?0:l.length-1];return F.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,c=>c.width)||a),o?Kl(a,o<0):a||null}class Di extends Re{static create(e,t,i){return new Di(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=Di.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,r,s,o){return i&&(!(i instanceof Di)||!this.widget.compare(i.widget)||e>0&&s<=0||t0)?dt.before(this.dom):dt.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let l=o?r.length-1:0;s=r[l],!(e>0?l==0:l==r.length-1||s.top0?dt.before(this.dom):dt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ge.empty}get isHidden(){return!0}}Un.prototype.children=Di.prototype.children=_r.prototype.children=zu;function Gg(n,e){let t=n.dom,{children:i}=n,r=0;for(let s=0;rs&&e0;s--){let o=i[s-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let s=r;s0&&e instanceof Hn&&r.length&&(i=r[r.length-1])instanceof Hn&&i.mark.eq(e.mark)?Ug(i,e.children[0],t-1):(r.push(e),e.setParent(n)),n.length+=e.length}function Hg(n,e,t){let i=null,r=-1,s=null,o=-1;function l(c,u){for(let h=0,d=0;h=u&&(f.children.length?l(f,u-d):(!s||s.isHidden&&t>0)&&(p>u||d==p&&f.getSide()>0)?(s=f,o=u-d):(d-1?1:0)!=r.length-(t&&r.indexOf(t)>-1?1:0))return!1;for(let s of i)if(s!=t&&(r.indexOf(s)==-1||n[s]!==e[s]))return!1;return!0}function Vc(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function f1(n){let e=Object.create(null);for(let t=0;t0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ju(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Ug(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=Lc(t,this.attrs||{})),i&&(this.attrs=Lc({class:i},this.attrs||{}))}domAtPos(e){return Gg(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(Wg(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Vc(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&Re.get(r)instanceof Hn;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=Re.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!F.ios||!this.children.some(s=>s instanceof Un))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof Un)||/[^ -~]/.test(i.text))return null;let r=Cr(i.dom);if(r.length!=1)return null;e+=r[0].width,t=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=Hg(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight=t){if(s instanceof Je)return s;if(o>t)break}r=o+s.breakAfter}return null}}class bi extends Re{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,r,s,o){return i&&(!(i instanceof bi)||!this.widget.compare(i.widget)||e>0&&s<=0||t0}}class Ui{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Vt=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(Vt||(Vt={}));class Ce extends Wi{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new to(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Si(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:o}=Kg(e,t);i=(s?t?-3e8:-1:5e8)-1,r=(o?t?2e8:1:-6e8)+1}return new Si(e,i,r,t,e.widget||null,!0)}static line(e){return new no(e)}static set(e,t=!1){return Ze.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ce.none=Ze.empty;class to extends Ce{constructor(e){let{start:t,end:i}=Kg(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof to&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&ju(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}to.prototype.point=!1;class no extends Ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof no&&this.spec.class==e.spec.class&&ju(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}no.prototype.mapMode=Ot.TrackBefore;no.prototype.point=!0;class Si extends Ce{constructor(e,t,i,r,s,o){super(t,i,s,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?Ot.TrackBefore:Ot.TrackAfter:Ot.TrackDel}get type(){return this.startSide!=this.endSide?Vt.WidgetRange:this.startSide<=0?Vt.WidgetBefore:Vt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Si&&p1(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Si.prototype.point=!0;function Kg(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function p1(n,e){return n==e||!!(n&&e&&n.compare(e))}function qc(n,e,t,i=0){let r=t.length-1;r>=0&&t[r]+i>=n?t[r]=Math.max(t[r],e):t.push(n,e)}class ks{constructor(e,t,i,r){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof bi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Je),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ko(new _r(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof bi)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(ko(new Un(this.text.slice(this.textOff,this.textOff+r)),t),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,t,i,r){this.buildText(t-e,i,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,i,r,s,o){if(this.disallowBlockEffectsFor[o]&&i instanceof Si){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(i instanceof Si)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new bi(i.widget||new Fd("div"),l,i));else{let a=Di.create(i.widget||new Fd("span"),l,l?0:i.startSide),c=this.atCursorPos&&!a.isEditable&&s<=r.length&&(e0),u=!a.isEditable&&(er.length||i.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!c&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(h.append(ko(new _r(1),r),s),s=r.length+Math.max(0,s-r.length)),h.append(ko(a,r),s),this.atCursorPos=u,this.pendingBuffer=u?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,i,r,s){let o=new ks(e,t,i,s);return o.openEnd=Ze.spans(r,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function ko(n,e){for(let t of e)n=new Hn(t,[n],n.length);return n}class Fd extends Ui{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Me=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(Me||(Me={}));const zi=Me.LTR,Yu=Me.RTL;function Jg(n){let e=[];for(let t=0;t=t){if(l.level==i)return o;(s<0||(r!=0?r<0?l.fromt:e[s].level>l.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function tO(n,e){if(n.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(mn[m+1]==-f){let O=mn[m+2],b=O&2?r:O&4?O&1?s:r:0;b&&(Se[h]=Se[mn[m]]=b),l=m;break}}else{if(mn.length==189)break;mn[l++]=h,mn[l++]=d,mn[l++]=a}else if((p=Se[h])==2||p==1){let m=p==r;a=m?0:1;for(let O=l-3;O>=0;O-=3){let b=mn[O+2];if(b&2)break;if(m)mn[O+2]|=2;else{if(b&4)break;mn[O+2]|=4}}}}}function y1(n,e,t,i){for(let r=0,s=i;r<=t.length;r++){let o=r?t[r-1].to:n,l=ra;)p==O&&(p=t[--m].from,O=m?t[m-1].to:n),Se[--p]=f;a=u}else s=c,a++}}}function Xc(n,e,t,i,r,s,o){let l=i%2?2:1;if(i%2==r%2)for(let a=e,c=0;aa&&o.push(new mi(a,m.from,f));let O=m.direction==zi!=!(f%2);Wc(n,O?i+1:i,r,m.inner,m.from,m.to,o),a=m.to}p=m.to}else{if(p==t||(u?Se[p]!=l:Se[p]==l))break;p++}d?Xc(n,a,p,i+1,r,d,o):ae;){let u=!0,h=!1;if(!c||a>s[c-1].to){let m=Se[a-1];m!=l&&(u=!1,h=m==16)}let d=!u&&l==1?[]:null,f=u?i:i+1,p=a;e:for(;;)if(c&&p==s[c-1].to){if(h)break e;let m=s[--c];if(!u)for(let O=m.from,b=c;;){if(O==e)break e;if(b&&s[b-1].to==O)O=s[--b].from;else{if(Se[O-1]==l)break e;break}}if(d)d.push(m);else{m.toSe.length;)Se[Se.length]=256;let i=[],r=e==zi?0:1;return Wc(n,r,r,t,0,n.length,i),i}function nO(n){return[new mi(0,n,0)]}let iO="";function S1(n,e,t,i,r){var s;let o=i.head-n.from,l=mi.find(e,o,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),a=e[l],c=a.side(r,t);if(o==c){let d=l+=r?1:-1;if(d<0||d>=e.length)return null;a=e[l=d],o=a.side(!r,t),c=a.side(r,t)}let u=bt(n.text,o,a.forward(r,t));(ua.to)&&(u=c),iO=n.text.slice(Math.min(o,u),Math.max(o,u));let h=l==(r?e.length-1:0)?null:e[l+(r?1:-1)];return h&&u==c&&h.level+(r?0:1)n.some(e=>e)}),hO=K.define({combine:n=>n.some(e=>e)});class pr{constructor(e,t="nearest",i="nearest",r=5,s=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new pr(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new pr(V.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const So=we.define({map:(n,e)=>n.map(e)});function cn(n,e,t){let i=n.facet(lO);i.length?i[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const ea=K.define({combine:n=>n.length?n[0]:!0});let x1=0;const us=K.define();class Ft{constructor(e,t,i,r,s){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,t){const{eventHandlers:i,eventObservers:r,provide:s,decorations:o}=t||{};return new Ft(x1++,e,i,r,l=>{let a=[us.of(l)];return o&&a.push(Ts.of(c=>{let u=c.plugin(l);return u?o(u):Ce.none})),s&&a.push(s(l)),a})}static fromClass(e,t){return Ft.define(i=>new e(i),t)}}class xa{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(cn(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){cn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){cn(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const dO=K.define(),Nu=K.define(),Ts=K.define(),fO=K.define(),Fu=K.define(),pO=K.define();function Gd(n,e){let t=n.state.facet(pO);if(!t.length)return t;let i=t.map(s=>s instanceof Function?s(n):s),r=[];return Ze.spans(i,e.from,e.to,{point(){},span(s,o,l,a){let c=s-e.from,u=o-e.from,h=r;for(let d=l.length-1;d>=0;d--,a--){let f=l[d].spec.bidiIsolate,p;if(f==null&&(f=w1(e.text,c,u)),a>0&&h.length&&(p=h[h.length-1]).to==c&&p.direction==f)p.to=u,h=p.inner;else{let m={from:c,to:u,direction:f,inner:[]};h.push(m),h=m.inner}}}}),r}const mO=K.define();function gO(n){let e=0,t=0,i=0,r=0;for(let s of n.state.facet(mO)){let o=s(n);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:t,top:i,bottom:r}}const hs=K.define();class jt{constructor(e,t,i,r){this.fromA=e,this.toA=t,this.fromB=i,this.toB=r}join(e){return new jt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>i.toA)){if(r.toAu)break;s+=2}if(!a)return i;new jt(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),o=a.toA,l=a.toB}}}class Ol{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=et.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,o,l,a)=>r.push(new jt(s,o,l,a))),this.changedRanges=r}static create(e,t,i){return new Ol(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Ud extends Re{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Je],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new jt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:u})=>uthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?r=this.domChanged.newSel.head:!T1(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?P1(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;i=new jt(c,u,e.changes.mapPos(c,-1),e.changes.mapPos(u,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(F.ie||F.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.updateDeco(),a=Q1(o,l,e.changes);return i=jt.extendWithRanges(i,a),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=F.chrome||F.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||r.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to=0?r[o]:null;if(!l)break;let{fromA:a,toA:c,fromB:u,toB:h}=l,d,f,p,m;if(i&&i.range.fromBu){let w=ks.build(this.view.state.doc,u,i.range.fromB,this.decorations,this.dynamicDecorationMap),$=ks.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);f=w.breakAtStart,p=w.openStart,m=$.openEnd;let x=this.compositionView(i);$.breakAtStart?x.breakAfter=1:$.content.length&&x.merge(x.length,x.length,$.content[0],!1,$.openStart,0)&&(x.breakAfter=$.content[0].breakAfter,$.content.shift()),w.content.length&&x.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),d=w.content.concat(x).concat($.content)}else({content:d,breakAtStart:f,openStart:p,openEnd:m}=ks.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:O,off:b}=s.findPos(c,1),{i:y,off:S}=s.findPos(a,-1);jg(this,y,S,O,b,d,f,p,m)}i&&this.fixCompositionDOM(i)}compositionView(e){let t=new Un(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new Hn(r,[t],t.length);let i=new Je;return i.append(t,0),i}fixCompositionDOM(e){let t=(s,o)=>{o.flags|=8|(o.children.some(a=>a.flags&7)?1:0),this.markedForComposition.add(o);let l=Re.get(s);l&&l!=o&&(l.dom=null),o.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];t(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],t(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&Ko(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||t||s))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),c=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(F.gecko&&l.empty&&!this.hasComposition&&$1(a)){let h=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(h,a.node.childNodes[a.offset]||null)),a=c=new dt(h,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!ys(a.node,a.offset,u.anchorNode,u.anchorOffset)||!ys(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,l))&&(this.view.observer.ignore(()=>{F.android&&F.chrome&&this.dom.contains(u.focusNode)&&A1(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=gl(this.view.root);if(h)if(l.empty){if(F.gecko){let d=C1(a.node,a.offset);if(d&&d!=3){let f=bO(a.node,a.offset,d==1?1:-1);f&&(a=new dt(f.node,f.offset))}}h.collapse(a.node,a.offset),l.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=l.bidiLevel)}else if(h.extend){h.collapse(a.node,a.offset);try{h.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();l.anchor>l.head&&([a,c]=[c,a]),d.setEnd(c.node,c.offset),d.setStart(a.node,a.offset),h.removeAllRanges(),h.addRange(d)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(a,c)),this.impreciseAnchor=a.precise?null:new dt(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new dt(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&ys(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=gl(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=Je.find(this,t.head);if(!o)return;let l=o.posAtStart;if(t.head==l||t.head==l+o.length)return;let a=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!a||!c||a.bottom>c.top)return;let u=this.domAtPos(t.head+t.assoc);i.collapse(u.node,u.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&i.collapse(r,s)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let r=e.offset;!i&&r=0;r--){let s=Re.get(t.childNodes[r]);s instanceof Je&&(i=s.domAtPos(s.length))}return i?new dt(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=Re.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t=0;o--){let l=this.children[o],a=s-l.breakAfter,c=a-l.length;if(ae||l.covers(1))&&(!i||l instanceof Je&&!(i instanceof Je&&t>=0))&&(i=l,r=c),s=c}return i?i.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),r=this.children[t];if(!(r instanceof Je))return null;for(;r.children.length;){let{i:l,off:a}=r.childPos(i,1);for(;;l++){if(l==r.children.length)return null;if((r=r.children[l]).length)break}i=a}if(!(r instanceof Un))return null;let s=bt(r.text,i);if(s==i)return null;let o=Bi(r.dom,i,s).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==Me.LTR;for(let c=0,u=0;ur)break;if(c>=i){let f=h.dom.getBoundingClientRect();if(t.push(f.height),o){let p=h.dom.lastChild,m=p?Cr(p):[];if(m.length){let O=m[m.length-1],b=a?O.right-f.left:f.right-O.left;b>l&&(l=b,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+h.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Me.RTL:Me.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Je){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),t,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Cr(e.firstChild)[0];t=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:r}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new zg(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,r=0;;r++){let s=r==t.viewports.length?null:t.viewports[r],o=s?s.from-1:this.length;if(o>i){let l=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(Ce.replace({widget:new Hd(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!s)break;i=s.to+1}return Ce.set(e)}updateDeco(){let e=this.view.state.facet(Ts).map((r,s)=>(this.dynamicDecorationMap[s]=typeof r=="function")?r(this.view):r),t=!1,i=this.view.state.facet(fO).map((r,s)=>{let o=typeof r=="function";return o&&(t=!0),o?r(this.view):r});i.length&&(this.dynamicDecorationMap[e.length]=t,e.push(Ze.join(i)));for(let r=e.length;rt.anchor?-1:1),r;if(!i)return;!t.empty&&(r=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=gO(this.view),o={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;s1(this.view.scrollDOM,o,t.head0)i=i.childNodes[r-1],r=Gn(i);else break}if(t>=0)for(let i=n,r=e;;){if(i.nodeType==3)return{node:i,offset:r};if(i.nodeType==1&&r=0)i=i.childNodes[r],r=0;else break}return null}function C1(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e{ie.from&&(t=!0)}),t}function E1(n,e,t=1){let i=n.charCategorizer(e),r=n.doc.lineAt(e),s=e-r.from;if(r.length==0)return V.cursor(e);s==0?t=1:s==r.length&&(t=-1);let o=s,l=s;t<0?o=bt(r.text,s,!1):l=bt(r.text,s);let a=i(r.text.slice(o,l));for(;o>0;){let c=bt(r.text,o,!1);if(i(r.text.slice(c,o))!=a)break;o=c}for(;ln?e.left-n:Math.max(0,n-e.right)}function R1(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function $a(n,e){return n.tope.top+1}function Kd(n,e){return en.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function zc(n,e,t){let i,r,s,o,l=!1,a,c,u,h;for(let p=n.firstChild;p;p=p.nextSibling){let m=Cr(p);for(let O=0;OS||o==S&&s>y){i=p,r=b,s=y,o=S;let w=S?t0?O0)}y==0?t>b.bottom&&(!u||u.bottomb.top)&&(c=p,h=b):u&&$a(u,b)?u=Jd(u,b.bottom):h&&$a(h,b)&&(h=Kd(h,b.top))}}if(u&&u.bottom>=t?(i=a,r=u):h&&h.top<=t&&(i=c,r=h),!i)return{node:n,offset:0};let d=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return ef(i,d,t);if(l&&i.contentEditable!="false")return zc(i,d,t);let f=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:n,offset:f}}function ef(n,e,t){let i=n.nodeValue.length,r=-1,s=1e9,o=0;for(let l=0;lt?u.top-t:t-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&h=(u.left+u.right)/2,f=d;if((F.chrome||F.gecko)&&Bi(n,l).getBoundingClientRect().left==u.right&&(f=!d),h<=0)return{node:n,offset:l+(f?1:0)};r=l+(f?1:0),s=h}}}return{node:n,offset:r>-1?r:o>0?n.nodeValue.length:0}}function vO(n,e,t,i=-1){var r,s;let o=n.contentDOM.getBoundingClientRect(),l=o.top+n.viewState.paddingTop,a,{docHeight:c}=n.viewState,{x:u,y:h}=e,d=h-l;if(d<0)return 0;if(d>c)return n.state.doc.length;for(let w=n.viewState.heightOracle.textHeight/2,$=!1;a=n.elementAtHeight(d),a.type!=Vt.Text;)for(;d=i>0?a.bottom+w:a.top-w,!(d>=0&&d<=c);){if($)return t?null:0;$=!0,i=-i}h=l+d;let f=a.from;if(fn.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:tf(n,o,a,u,h);let p=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:p,O=m.elementFromPoint(u,h);O&&!n.contentDOM.contains(O)&&(O=null),O||(u=Math.max(o.left+1,Math.min(o.right-1,u)),O=m.elementFromPoint(u,h),O&&!n.contentDOM.contains(O)&&(O=null));let b,y=-1;if(O&&((r=n.docView.nearest(O))===null||r===void 0?void 0:r.isEditable)!=!1){if(p.caretPositionFromPoint){let w=p.caretPositionFromPoint(u,h);w&&({offsetNode:b,offset:y}=w)}else if(p.caretRangeFromPoint){let w=p.caretRangeFromPoint(u,h);w&&({startContainer:b,startOffset:y}=w,(!n.contentDOM.contains(b)||F.safari&&D1(b,y,u)||F.chrome&&I1(b,y,u))&&(b=void 0))}}if(!b||!n.docView.dom.contains(b)){let w=Je.find(n.docView,f);if(!w)return d>a.top+a.height/2?a.to:a.from;({node:b,offset:y}=zc(w.dom,u,h))}let S=n.docView.nearest(b);if(!S)return null;if(S.isWidget&&((s=S.dom)===null||s===void 0?void 0:s.nodeType)==1){let w=S.dom.getBoundingClientRect();return e.yn.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((r-t.top-(n.defaultLineHeight-l)*.5)/l);s+=a*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+Kk(o,s,n.state.tabSize)}function D1(n,e,t){let i;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(let r=n.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Bi(n,i-1,i).getBoundingClientRect().left>t}function I1(n,e,t){if(e!=0)return!1;for(let r=n;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let i=n.nodeType==1?n.getBoundingClientRect():Bi(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function jc(n,e){let t=n.lineBlockAt(e);if(Array.isArray(t.type)){for(let i of t.type)if(i.to>e||i.to==e&&(i.to==t.to||i.type==Vt.Text))return i}return t}function L1(n,e,t,i){let r=jc(n,e.head),s=!i||r.type!=Vt.Text||!(n.lineWrapping||r.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(r.from),a=n.posAtCoords({x:t==(l==Me.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(a!=null)return V.cursor(a,t?-1:1)}return V.cursor(t?r.to:r.from,t?-1:1)}function nf(n,e,t,i){let r=n.state.doc.lineAt(e.head),s=n.bidiSpans(r),o=n.textDirectionAt(r.from);for(let l=e,a=null;;){let c=S1(r,s,o,l,t),u=iO;if(!c){if(r.number==(t?n.state.doc.lines:1))return l;u=` +`,r=n.state.doc.line(r.number+(t?1:-1)),s=n.bidiSpans(r),c=n.visualLineSide(r,!t)}if(a){if(!a(u))return l}else{if(!i)return c;a=i(u)}l=c}}function V1(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return s=>{let o=i(s);return r==Nn.Space&&(r=o),r==o}}function q1(n,e,t,i){let r=e.head,s=t?1:-1;if(r==(t?n.state.doc.length:0))return V.cursor(r,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(r,e.assoc||-1),u=n.documentTop;if(c)o==null&&(o=c.left-a.left),l=s<0?c.top:c.bottom;else{let f=n.viewState.lineBlockAt(r);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(r-f.from))),l=(s<0?f.top:f.bottom)+u}let h=a.left+o,d=i??n.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let p=l+(d+f)*s,m=vO(n,{x:h,y:p},!1,s);if(pa.bottom||(s<0?mr)){let O=n.docView.coordsForChar(m),b=!O||p{if(e>s&&er(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:V.cursor(i,inull),F.gecko&&nS(e.contentDOM.ownerDocument)}handleEvent(e){!F1(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=X1(e),i=this.handlers,r=this.view.contentDOM;for(let s in t)if(s!="scroll"){let o=!t[s].handlers.length,l=i[s];l&&o!=!l.handlers.length&&(r.removeEventListener(s,this.handleEvent),l=null),l||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in i)s!="scroll"&&!t[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()i.keyCode==e.keyCode))&&!e.ctrlKey||W1.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,fr(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:F.safari&&!F.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function rf(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(r){cn(t.state,r)}}}function X1(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let o=r.domEventHandlers[s];o&&t(s).handlers.push(rf(i.value,o))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let o=r.domEventObservers[s];o&&t(s).observers.push(rf(i.value,o))}}for(let i in un)t(i).handlers.push(un[i]);for(let i in hn)t(i).observers.push(hn[i]);return e}const yO=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],W1="dthko",kO=[16,17,18,20,91,92,224,225],wo=6;function xo(n){return Math.max(0,n)*.7+8}function B1(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class z1{constructor(e,t,i,r){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=o1(e.contentDOM),this.atoms=e.state.facet(Fu).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(pe.allowMultipleSelections)&&j1(e,t),this.dragging=N1(e,t)&&$O(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&B1(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,s=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=gO(this.view);e.clientX-o.left<=s.left+wo?i=-xo(s.left-e.clientX):e.clientX+o.right>=s.right-wo&&(i=xo(e.clientX-s.right)),e.clientY-o.top<=s.top+wo?r=-xo(s.top-e.clientY):e.clientY+o.bottom>=s.bottom-wo&&(r=xo(e.clientY-s.bottom)),this.setScrollSpeed(i,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;ithis.select(this.lastEvent),20)}}function j1(n,e){let t=n.state.facet(rO);return t.length?t[0](e):F.mac?e.metaKey:e.ctrlKey}function Y1(n,e){let t=n.state.facet(sO);return t.length?t[0](e):F.mac?!e.altKey:!e.ctrlKey}function N1(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=gl(n.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function F1(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=Re.get(t))&&i.ignoreEvent(e))return!1;return!0}const un=Object.create(null),hn=Object.create(null),SO=F.ie&&F.ie_version<15||F.ios&&F.webkit_version<604;function G1(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),wO(n,t.value)},50)}function wO(n,e){let{state:t}=n,i,r=1,s=t.toText(e),o=s.lines==t.selection.ranges.length;if(Yc!=null&&t.selection.ranges.every(a=>a.empty)&&Yc==s.toString()){let a=-1;i=t.changeByRange(c=>{let u=t.doc.lineAt(c.from);if(u.from==a)return{range:c};a=u.from;let h=t.toText((o?s.line(r++).text:e)+t.lineBreak);return{changes:{from:u.from,insert:h},range:V.cursor(c.from+h.length)}})}else o?i=t.changeByRange(a=>{let c=s.line(r++);return{changes:{from:a.from,to:a.to,insert:c.text},range:V.cursor(a.from+c.length)}}):i=t.replaceSelection(s);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}hn.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};un.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&(n.inputState.lastEscPress=Date.now()),!1);hn.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};hn.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};un.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(oO))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=K1(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new z1(n,e,t,i)),i&&n.observer.ignore(()=>Xg(n.contentDOM));let r=n.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function sf(n,e,t,i){if(i==1)return V.cursor(e,t);if(i==2)return E1(n.state,e,t);{let r=Je.find(n.docView,e),s=n.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:s.from,l=r?r.posAtEnd:s.to;return ln>=e.top&&n<=e.bottom,of=(n,e,t)=>xO(e,t)&&n>=t.left&&n<=t.right;function U1(n,e,t,i){let r=Je.find(n.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let o=r.coordsAt(s,-1);if(o&&of(t,i,o))return-1;let l=r.coordsAt(s,1);return l&&of(t,i,l)?1:o&&xO(i,o)?-1:1}function lf(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:U1(n,t,e.clientX,e.clientY)}}const H1=F.ie&&F.ie_version<=11;let af=null,cf=0,uf=0;function $O(n){if(!H1)return n.detail;let e=af,t=uf;return af=n,uf=Date.now(),cf=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(cf+1)%3:1}function K1(n,e){let t=lf(n,e),i=$O(e),r=n.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),r=r.map(s.changes))},get(s,o,l){let a=lf(n,s),c,u=sf(n,a.pos,a.bias,i);if(t.pos!=a.pos&&!o){let h=sf(n,t.pos,t.bias,i),d=Math.min(h.from,u.from),f=Math.max(h.to,u.to);u=d1&&(c=J1(r,a.pos))?c:l?r.addRange(u):V.create([u])}}}function J1(n,e){for(let t=0;t=e)return V.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}un.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let r=n.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,o=s+r.length;(s>=t.to||o<=t.from)&&(t=V.range(s,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",n.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};un.dragend=n=>(n.inputState.draggedContent=null,!1);function hf(n,e,t,i){if(!t)return;let r=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=n.inputState,o=i&&s&&Y1(n,e)?{from:s.from,to:s.to}:null,l={from:r,insert:t},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(r,-1),head:a.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}un.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),r=0,s=()=>{++r==t.length&&hf(n,e,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),s()},l.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return hf(n,e,i,!0),!0}return!1};un.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=SO?null:e.clipboardData;return t?(wO(n,t.getData("text/plain")||t.getData("text/uri-text")),!0):(G1(n),!1)};function eS(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function tS(n){let e=[],t=[],i=!1;for(let r of n.selection.ranges)r.empty||(e.push(n.sliceDoc(r.from,r.to)),t.push(r));if(!e.length){let r=-1;for(let{from:s}of n.selection.ranges){let o=n.doc.lineAt(s);o.number>r&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),r=o.number}i=!0}return{text:e.join(n.lineBreak),ranges:t,linewise:i}}let Yc=null;un.copy=un.cut=(n,e)=>{let{text:t,ranges:i,linewise:r}=tS(n.state);if(!t&&!r)return!1;Yc=r?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=SO?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(eS(n,t),!1)};const PO=ei.define();function CO(n,e){let t=[];for(let i of n.facet(cO)){let r=i(n,e);r&&t.push(r)}return t?n.update({effects:t,annotations:PO.of(!0)}):null}function _O(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=CO(n.state,e);t?n.dispatch(t):n.update([])}},10)}hn.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),_O(n)};hn.blur=n=>{n.observer.clearSelectionRange(),_O(n)};hn.compositionstart=hn.compositionupdate=n=>{n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0)};hn.compositionend=n=>{n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,F.chrome&&F.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50)};hn.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};un.beforeinput=(n,e)=>{var t;let i;if(F.chrome&&F.android&&(i=yO.find(r=>r.inputType==e.inputType))&&(n.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let r=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return!1};const df=new Set;function nS(n){df.has(n)||(df.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const ff=["pre-wrap","normal","pre-line","break-spaces"];class iS{constructor(e){this.lineWrapping=e,this.doc=ge.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ff.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=r,this.lineLength=s,a){this.heightSamples={};for(let c=0;c0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>el&&(e.heightChanged=!0),this.height=t)}replace(e,t,i){return vt.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,r){let s=this,o=i.doc;for(let l=r.length-1;l>=0;l--){let{fromA:a,toA:c,fromB:u,toB:h}=r[l],d=s.lineAt(a,Ee.ByPosNoHeight,i.setDoc(t),0,0),f=d.to>=c?d:s.lineAt(c,Ee.ByPosNoHeight,i,0,0);for(h+=f.to-c,c=f.to;l>0&&d.from<=r[l-1].toA;)a=r[l-1].fromA,u=r[l-1].fromB,l--,as*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,r-=l.size}else if(s>r*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,s-=l.size}else break;else if(r=s&&o(this.blockAt(0,i,r,s))}updateHeight(e,t=0,i=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Rt extends QO{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,r){return new xn(r,this.length,i,this.height,this.breaks)}replace(e,t,i){let r=i[0];return i.length==1&&(r instanceof Rt||r instanceof lt&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof lt?r=new Rt(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):vt.of(i)}updateHeight(e,t=0,i=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class lt extends vt{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,s=r-i+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*s);o=a/s,this.length>s+1&&(l=(this.height-a)/(this.length-s-1))}else o=this.height/s;return{firstLine:i,lastLine:r,perLine:o,perChar:l}}blockAt(e,t,i,r){let{firstLine:s,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let c=r+Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length),u=t.doc.lineAt(c),h=l+u.length*a,d=Math.max(i,e-h/2);return new xn(u.from,u.length,d,h,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-i)/l))),{from:u,length:h}=t.doc.line(s+c);return new xn(u,h,i+l*c,l,0)}}lineAt(e,t,i,r,s){if(t==Ee.ByHeight)return this.blockAt(e,i,r,s);if(t==Ee.ByPosNoHeight){let{from:f,to:p}=i.doc.lineAt(e);return new xn(f,p-f,0,0,0)}let{firstLine:o,perLine:l,perChar:a}=this.heightMetrics(i,s),c=i.doc.lineAt(e),u=l+c.length*a,h=c.number-o,d=r+l*h+a*(c.from-s-h);return new xn(c.from,c.length,Math.max(r,Math.min(d,r+this.height-u)),u,0)}forEachLine(e,t,i,r,s,o){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:l,perLine:a,perChar:c}=this.heightMetrics(i,s);for(let u=e,h=r;u<=t;){let d=i.doc.lineAt(u);if(u==e){let p=d.number-l;h+=a*p+c*(e-s-p)}let f=a+c*d.length;o(new xn(d.from,d.length,h,f,0)),h+=f,u=d.to+1}}replace(e,t,i){let r=this.length-t;if(r>0){let s=i[i.length-1];s instanceof lt?i[i.length-1]=new lt(s.length+r):i.push(null,new lt(r-1))}if(e>0){let s=i[0];s instanceof lt?i[0]=new lt(e+s.length):i.unshift(new lt(e-1),null)}return vt.of(i)}decomposeLeft(e,t){t.push(new lt(e-1),null)}decomposeRight(e,t){t.push(null,new lt(this.length-e-1))}updateHeight(e,t=0,i=!1,r){let s=t+this.length;if(r&&r.from<=t+this.length&&r.more){let o=[],l=Math.max(t,r.from),a=-1;for(r.from>t&&o.push(new lt(r.from-t-1).updateHeight(e,t));l<=s&&r.more;){let u=e.doc.lineAt(l).length;o.length&&o.push(null);let h=r.heights[r.index++];a==-1?a=h:Math.abs(h-a)>=el&&(a=-2);let d=new Rt(u,h);d.outdated=!1,o.push(d),l+=u+1}l<=s&&o.push(null,new lt(s-l).updateHeight(e,l));let c=vt.of(o);return(a<0||Math.abs(c.height-this.height)>=el||Math.abs(a-this.heightMetrics(e,t).perLine)>=el)&&(e.heightChanged=!0),c}else(i||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class sS extends vt{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,r){let s=i+this.left.height;return el))return c;let u=t==Ee.ByPosNoHeight?Ee.ByPosNoHeight:Ee.ByPos;return a?c.join(this.right.lineAt(l,u,i,o,l)):this.left.lineAt(l,u,i,r,s).join(c)}forEachLine(e,t,i,r,s,o){let l=r+this.left.height,a=s+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,i,l,a,o);else{let c=this.lineAt(a,Ee.ByPos,i,r,s);e=e&&c.from<=t&&o(c),t>c.to&&this.right.forEachLine(c.to+1,t,i,l,a,o)}}replace(e,t,i){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let l of i)s.push(l);if(e>0&&pf(s,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?vt.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,r){let{left:s,right:o}=this,l=t+s.length+this.break,a=null;return r&&r.from<=t+s.length&&r.more?a=s=s.updateHeight(e,t,i,r):s.updateHeight(e,t,i),r&&r.from<=l+o.length&&r.more?a=o=o.updateHeight(e,l,i,r):o.updateHeight(e,l,i),a?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function pf(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof lt&&(i=n[e+1])instanceof lt&&n.splice(e-1,3,new lt(t.length+1+i.length))}const oS=5;class Gu{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Rt?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Rt(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=oS)&&this.addLineDeco(r,s,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Rt(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new lt(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Rt)return e;let t=new Rt(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Rt)&&!this.isCovered?this.nodes.push(new Rt(0,-1)):(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&h.overflow!="visible"){let d=u.getBoundingClientRect();s=Math.max(s,d.left),o=Math.min(o,d.right),l=Math.max(l,d.top),a=c==n.parentNode?d.bottom:Math.min(a,d.bottom)}c=h.position=="absolute"||h.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-t.left,right:Math.max(s,o)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function uS(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Ca{constructor(e,t,i){this.from=e,this.to=t,this.size=i}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new iS(t),this.stateDeco=e.facet(Ts).filter(i=>typeof i!="function"),this.heightMap=vt.empty().applyChanges(this.stateDeco,ge.empty,this.heightOracle.setDoc(e.doc),[new jt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ce.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let r=i?t.head:t.anchor;if(!e.some(({from:s,to:o})=>r>=s&&r<=o)){let{from:s,to:o}=this.lineBlockAt(r);e.push(new $o(s,o))}}this.viewports=e.sort((i,r)=>i.from-r.from),this.scaler=this.heightMap.height<=7e6?gf:new pS(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:ds(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ts).filter(u=>typeof u!="function");let r=e.changedRanges,s=jt.extendWithRanges(r,lS(i,this.stateDeco,e?e.changes:et.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let c=!e.changes.empty||e.flags&2||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(hO)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Me.RTL:Me.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),l=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,u=0;if(l.width&&l.height){let{scaleX:w,scaleY:$}=Mg(t,l);(this.scaleX!=w||this.scaleY!=$)&&(this.scaleX=w,this.scaleY=$,c|=8,o=a=!0)}let h=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=d)&&(this.paddingTop=h,this.paddingBottom=d,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=Bg(e.scrollDOM);let p=(this.printing?uS:cS)(t,this.paddingTop),m=p.top-this.pixelViewport.top,O=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let y=l.width;if((this.contentDOMWidth!=y||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),a){let w=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(w)&&(o=!0),o||r.lineWrapping&&Math.abs(y-this.contentDOMWidth)>r.charWidth){let{lineHeight:$,charWidth:x,textHeight:_}=e.docView.measureTextSize();o=$>0&&r.refresh(s,$,x,_,y/x,w),o&&(e.docView.minWidth=0,c|=8)}m>0&&O>0?u=Math.max(m,O):m<0&&O<0&&(u=Math.min(m,O)),r.heightChanged=!1;for(let $ of this.viewports){let x=$.from==this.viewport.from?w:e.docView.measureVisibleLineHeights($);this.heightMap=(o?vt.empty().applyChanges(this.stateDeco,ge.empty,this.heightOracle,[new jt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new rS($.from,x))}r.heightChanged&&(c|=2)}let S=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(c&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new $o(r.lineAt(o-i*1e3,Ee.ByHeight,s,0,0).from,r.lineAt(l+(1-i)*1e3,Ee.ByHeight,s,0,0).to);if(t){let{head:c}=t.range;if(ca.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=r.lineAt(c,Ee.ByPos,s,0,0),d;t.y=="center"?d=(h.top+h.bottom)/2-u/2:t.y=="start"||t.y=="nearest"&&c=l+Math.max(10,Math.min(i,250)))&&r>o-2*1e3&&s>1,o=r<<1;if(this.defaultTextDirection!=Me.LTR&&!i)return[];let l=[],a=(c,u,h,d)=>{if(u-cc&&OO.from>=h.from&&O.to<=h.to&&Math.abs(O.from-c)O.fromb));if(!m){if(uO.from<=u&&O.to>=u)){let O=t.moveToLineBoundary(V.cursor(u),!1,!0).head;O>c&&(u=O)}m=new Ca(c,u,this.gapSize(h,c,u,d))}l.push(m)};for(let c of this.viewportLines){if(c.lengthc.from&&a(c.from,d,c,u),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Ze.spans(e,this.viewport.from,this.viewport.to,{span(r,s){t.push({from:r,to:s})},point(){}},20);let i=t.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=t[s].from||r.to!=t[s].to);return this.visibleRanges=t,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ds(this.heightMap.lineAt(e,Ee.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return ds(this.heightMap.lineAt(this.scaler.fromDOM(e),Ee.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ds(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class $o{constructor(e,t){this.from=e,this.to=t}}function dS(n,e,t){let i=[],r=n,s=0;return Ze.spans(t,n,e,{span(){},point(o,l){o>r&&(i.push({from:r,to:o}),s+=o-r),r=l}},20),r=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let r=0;;r++){let{from:s,to:o}=e[r],l=o-s;if(i<=l)return s+i;i-=l}}function Co(n,e){let t=0;for(let{from:i,to:r}of n.ranges){if(e<=r){t+=e-i;break}t+=r-i}return t/n.total}function fS(n,e){for(let t of n)if(e(t))return t}const gf={toDOM(n){return n},fromDOM(n){return n},scale:1};class pS{constructor(e,t,i){let r=0,s=0,o=0;this.viewports=i.map(({from:l,to:a})=>{let c=t.lineAt(l,Ee.ByPos,e,0,0).top,u=t.lineAt(a,Ee.ByPos,e,0,0).bottom;return r+=u-c,{from:l,to:a,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let l of this.viewports)l.domTop=o+(l.top-s)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let t=0,i=0,r=0;;t++){let s=tds(r,e)):n._content)}const _o=K.define({combine:n=>n.join(" ")}),Nc=K.define({combine:n=>n.indexOf(!0)>-1}),Fc=yi.newName(),AO=yi.newName(),TO=yi.newName(),EO={"&light":"."+AO,"&dark":"."+TO};function Gc(n,e,t){return new yi(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return n;if(!t||!t[r])throw new RangeError(`Unsupported selector: ${r}`);return t[r]}):n+" "+i}})}const mS=Gc("."+Fc,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},EO),fs="￿";class gS{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(pe.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=fs}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==t)break;let l=Re.get(r),a=Re.get(o);(l&&a?l.breakAfter:(l?l.breakAfter:Of(r))||Of(o)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=o}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,l;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=r.exec(t))&&(s=l.index,o=l[0].length),this.append(t.slice(i,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);i=s+o}}readNode(e){if(e.cmIgnore)return;let t=Re.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(OS(e,i.node,i.offset)?t:0))}}function OS(n,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let l=s||o?[]:kS(e),a=new gS(l,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=SS(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!Zc(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!Zc(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),u=e.viewport;if(F.ios&&e.state.selection.main.empty&&a!=c&&(u.from>0||u.toDate.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds,a=r.from,c=null;(s===8||F.android&&e.text.length=r.from&&t.to<=r.to&&(t.from!=r.from||t.to!=r.to)&&r.to-r.from-(t.to-t.from)<=4?t={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,r.to))}:(F.mac||F.android)&&t&&t.from==t.to&&t.from==r.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=V.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:ge.of([" "])}):F.chrome&&t&&t.from==t.to&&t.from==r.head&&t.insert.toString()==` + `&&n.lineWrapping&&(i&&(i=V.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:ge.of([" "])}),t){if(F.ios&&n.inputState.flushIOSKey()||F.android&&(t.from==r.from&&t.to==r.to&&t.insert.length==1&&t.insert.lines==2&&fr(n.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&t.insert.length==0||s==8&&t.insert.lengthr.head)&&fr(n.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&t.insert.length==0&&fr(n.contentDOM,"Delete",46)))return!0;let o=t.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let l,a=()=>l||(l=vS(n,t,i));return n.state.facet(aO).some(c=>c(n,t.from,t.to,o,a))||n.dispatch(a()),!0}else if(i&&!i.main.eq(r)){let o=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function vS(n,e,t){let i,r=n.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=s.frome.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+a))}else{let l=r.changes(e),a=t&&t.main.to<=l.newLength?t.main:void 0;if(r.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=n.state.sliceDoc(e.from,e.to),u,h=t&&OO(n,t.main.head);if(h){let p=e.insert.length-(e.to-e.from);u={from:h.from,to:h.to-p}}else u=n.state.doc.lineAt(s.head);let d=s.to-e.to,f=s.to-s.from;i=r.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:l,range:a||p.map(l)};let m=p.to-d,O=m-c.length;if(p.to-p.from!=f||n.state.sliceDoc(O,m)!=c||p.to>=u.from&&p.from<=u.to)return{range:p};let b=r.changes({from:O,to:m,insert:e.insert}),y=p.to-s.to;return{changes:b,range:a?V.range(Math.max(0,a.anchor+y),Math.max(0,a.head+y)):p.map(b)}})}else i={changes:l,selection:a&&r.selection.replaceRange(a)}}let o="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,o+=".compose",n.inputState.compositionFirstChange&&(o+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:o,scrollIntoView:!0})}function yS(n,e,t,i){let r=Math.min(n.length,e.length),s=0;for(;s0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,s-Math.min(o,l));t-=o+a-s}if(o=o?s-t:0;s-=a,l=s+(l-o),o=s}else if(l=l?s-t:0;s-=a,o=s+(o-l),l=s}return{from:s,toA:o,toB:l}}function kS(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:s}=n.observer.selectionRange;return t&&(e.push(new bf(t,i)),(r!=t||s!=i)&&e.push(new bf(r,s))),e}function SS(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?V.single(t+e,i+e):null}const wS={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},_a=F.ie&&F.ie_version<=11;class xS{constructor(e){this.view=e,this.active=!1,this.selectionRange=new l1,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(F.ie&&F.ie_version<=11||F.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),_a&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(ea)?i.root.activeElement!=this.dom:!Ko(i.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(F.ie&&F.ie_version<=11||F.android&&F.chrome)&&!i.state.selection.main.empty&&r.focusNode&&ys(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=F.safari&&e.root.nodeType==11&&i1(this.dom.ownerDocument)==this.dom&&$S(this.view)||gl(e.root);if(!t||this.selectionRange.eq(t))return!1;let i=Ko(this.dom,t);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&fr(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,r=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(r=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:r}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),r=this.selectionChanged&&Ko(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new bS(this.view,e,t,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,r=ZO(this.view,t);return this.view.state==i&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=vf(t,e.previousSibling||e.target.previousSibling,-1),r=vf(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function vf(n,e,t){for(;e;){let i=Re.get(e);if(i&&i.parent==n)return i;let r=e.parentNode;e=r!=n.dom?r:t>0?e.nextSibling:e.previousSibling}return null}function $S(n){let e=null;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}if(n.contentDOM.addEventListener("beforeinput",t,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let i=e.startContainer,r=e.startOffset,s=e.endContainer,o=e.endOffset,l=n.docView.domAtPos(n.state.selection.main.anchor);return ys(l.node,l.offset,s,o)&&([i,r,s,o]=[s,o,i,r]),{anchorNode:i,anchorOffset:r,focusNode:s,focusOffset:o}}class ee{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(i=>i.forEach(r=>t(r,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||a1(e.parent)||document,this.viewState=new mf(e.state||pe.create(e)),e.scrollTo&&e.scrollTo.is(So)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(us).map(i=>new xa(i));for(let i of this.plugins)i.update(this);this.observer=new xS(this),this.inputState=new M1(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ud(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof tt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,r,s=this.state;for(let d of e){if(d.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=d.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,l=0,a=null;e.some(d=>d.annotation(PO))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=CO(s,o),a||(l=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(pe.phrases)!=this.state.facet(pe.phrases))return this.setState(s);r=Ol.create(this,s,e),r.flags|=l;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(h&&(h=h.map(d.changes)),d.scrollIntoView){let{main:f}=d.state.selection;h=new pr(f.empty?f:V.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of d.effects)f.is(So)&&(h=f.value.clip(this.state))}this.viewState.update(r,h),this.bidiCache=bl.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(hs)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(_o)!=r.state.facet(_o)&&(this.viewState.mustMeasureContent=!0),(t||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let d of this.state.facet(Bc))try{d(r)}catch(f){cn(this.state,f,"update listener")}(a||u)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),u&&!ZO(this,u)&&c.force&&fr(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new mf(e),this.plugins=e.facet(us).map(i=>new xa(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new Ud(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(us),i=e.state.facet(us);if(t!=i){let r=[];for(let s of i){let o=t.indexOf(s);if(o<0)r.push(new xa(s));else{let l=this.plugins[o];l.mustUpdate=e,r.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(Bg(i))s=-1,o=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(r);s=f.from,o=f.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];a&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(f=>{try{return f.read(this)}catch(p){return cn(this.state,p),yf}}),h=Ol.create(this,this.state,[]),d=!1;h.flags|=a,t?t.flags|=a:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),d=this.docView.update(h));for(let f=0;f1||p<-1){r=r+p,i.scrollTop=r/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Bc))l(t)}get themeClasses(){return Fc+" "+(this.state.facet(Nc)?TO:AO)+" "+this.state.facet(_o)}updateAttrs(){let e=kf(this,dO,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ea)?"true":"false",class:"cm-content",style:`${F.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),kf(this,Nu,t);let i=this.observer.ignore(()=>{let r=Vc(this.contentDOM,this.contentAttrs,t),s=Vc(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let r of i.effects)if(r.is(ee.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(hs);let e=this.state.facet(ee.cspNonce);yi.mount(this.root,this.styleModules.concat(mS).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ti.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Pa(this,e,nf(this,e,t,i))}moveByGroup(e,t){return Pa(this,e,nf(this,e,t,i=>V1(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=i[t?i.length-1:0];return V.cursor(s.side(t,r)+e.from,s.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,i=!0){return L1(this,e,t,i)}moveVertically(e,t,i){return Pa(this,e,q1(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),vO(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),o=s[mi.find(s,e-r.from,-1,t)];return Kl(i,o.dir==Me.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(uO)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>PS)return nO(e.length);let t=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||tO(s.isolates,i=Gd(this,e))))return s.order;i||(i=Gd(this,e));let r=k1(e.text,t,i);return this.bidiCache.push(new bl(e.from,e.to,t,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||F.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Xg(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return So.of(new pr(typeof e=="number"?V.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return So.of(new pr(V.cursor(i.from),"start","start",i.top-e,t,!0))}static domEventHandlers(e){return Ft.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ft.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=yi.newName(),r=[_o.of(i),hs.of(Gc(`.${i}`,e))];return t&&t.dark&&r.push(Nc.of(!0)),r}static baseTheme(e){return Gi.lowest(hs.of(Gc("."+Fc,e,EO)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),r=i&&Re.get(i)||Re.get(e);return((t=r==null?void 0:r.rootView)===null||t===void 0?void 0:t.view)||null}}ee.styleModule=hs;ee.inputHandler=aO;ee.focusChangeEffect=cO;ee.perLineTextDirection=uO;ee.exceptionSink=lO;ee.updateListener=Bc;ee.editable=ea;ee.mouseSelectionStyle=oO;ee.dragMovesSelection=sO;ee.clickAddsSelectionRange=rO;ee.decorations=Ts;ee.outerDecorations=fO;ee.atomicRanges=Fu;ee.bidiIsolatedRanges=pO;ee.scrollMargins=mO;ee.darkTheme=Nc;ee.cspNonce=K.define({combine:n=>n.length?n[0]:""});ee.contentAttributes=Nu;ee.editorAttributes=dO;ee.lineWrapping=ee.contentAttributes.of({class:"cm-lineWrapping"});ee.announce=we.define();const PS=4096,yf={};class bl{constructor(e,t,i,r,s,o){this.from=e,this.to=t,this.dir=i,this.isolates=r,this.fresh=s,this.order=o}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:Me.LTR;for(let s=Math.max(0,e.length-10);s=0;r--){let s=i[r],o=typeof s=="function"?s(n):s;o&&Lc(o,t)}return t}const CS=F.mac?"mac":F.windows?"win":F.linux?"linux":"key";function _S(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let r,s,o,l;for(let a=0;ai.concat(r),[]))),t}let di=null;const TS=4e3;function ES(n,e=CS){let t=Object.create(null),i=Object.create(null),r=(o,l)=>{let a=i[o];if(a==null)i[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,l,a,c,u)=>{var h,d;let f=t[o]||(t[o]=Object.create(null)),p=l.split(/ (?!$)/).map(b=>_S(b,e));for(let b=1;b{let w=di={view:S,prefix:y,scope:o};return setTimeout(()=>{di==w&&(di=null)},TS),!0}]})}let m=p.join(" ");r(m,!1);let O=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((d=(h=f._any)===null||h===void 0?void 0:h.run)===null||d===void 0?void 0:d.slice())||[]});a&&O.run.push(a),c&&(O.preventDefault=!0),u&&(O.stopPropagation=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of l){let u=t[c]||(t[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let h in u)u[h].run.push(o.any)}let a=o[e]||o.key;if(a)for(let c of l)s(c,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return t}function ZS(n,e,t,i){let r=n1(e),s=on(r,0),o=hi(s)==r.length&&r!=" ",l="",a=!1,c=!1,u=!1;di&&di.view==t&&di.scope==i&&(l=di.prefix+" ",kO.indexOf(e.keyCode)<0&&(c=!0,di=null));let h=new Set,d=O=>{if(O){for(let b of O.run)if(!h.has(b)&&(h.add(b),b(t,e)))return O.stopPropagation&&(u=!0),!0;O.preventDefault&&(O.stopPropagation&&(u=!0),c=!0)}return!1},f=n[i],p,m;return f&&(d(f[l+Qo(r,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(F.windows&&e.ctrlKey&&e.altKey)&&(p=ki[e.keyCode])&&p!=r?(d(f[l+Qo(p,e,!0)])||e.shiftKey&&(m=Qs[e.keyCode])!=r&&m!=p&&d(f[l+Qo(m,e,!1)]))&&(a=!0):o&&e.shiftKey&&d(f[l+Qo(r,e,!0)])&&(a=!0),!a&&d(f._any)&&(a=!0)),c&&(a=!0),a&&u&&e.stopPropagation(),a}class io{constructor(e,t,i,r,s){this.className=e,this.left=t,this.top=i,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let s=RO(e);return[new io(t,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}else return RS(e,t,i)}}function RO(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==Me.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function wf(n,e,t){let i=V.cursor(e);return{from:Math.max(t.from,n.moveToLineBoundary(i,!1,!0).from),to:Math.min(t.to,n.moveToLineBoundary(i,!0,!0).from),type:Vt.Text}}function RS(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),r=Math.min(t.to,n.viewport.to),s=n.textDirection==Me.LTR,o=n.contentDOM,l=o.getBoundingClientRect(),a=RO(n),c=o.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=l.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=l.right-(u?parseInt(u.paddingRight):0),f=jc(n,i),p=jc(n,r),m=f.type==Vt.Text?f:null,O=p.type==Vt.Text?p:null;if(m&&(n.lineWrapping||f.widgetLineBreaks)&&(m=wf(n,i,m)),O&&(n.lineWrapping||p.widgetLineBreaks)&&(O=wf(n,r,O)),m&&O&&m.from==O.from)return y(S(t.from,t.to,m));{let $=m?S(t.from,null,m):w(f,!1),x=O?S(null,t.to,O):w(p,!0),_=[];return(m||f).to<(O||p).from-(m&&O?1:0)||f.widgetLineBreaks>1&&$.bottom+n.defaultLineHeight/2Z&&Q.from=E)break;ne>R&&X(Math.max(ae,R),$==null&&ae<=Z,Math.min(ne,E),x==null&&ne>=L,G.dir)}if(R=N.to+1,R>=E)break}return D.length==0&&X(Z,$==null,L,x==null,n.textDirection),{top:C,bottom:q,horizontal:D}}function w($,x){let _=l.top+(x?$.top:$.bottom);return{top:_,bottom:_,horizontal:[]}}}function DS(n,e){return n.constructor==e.constructor&&n.eq(e)}class IS{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(tl)!=e.state.facet(tl)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,i=e.facet(tl);for(;t!DS(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[i].constructor&&r.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(r.draw(),t);for(;t;){let r=t.nextSibling;t.remove(),t=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const tl=K.define();function DO(n){return[Ft.define(e=>new IS(e,n)),tl.of(n)]}const IO=!F.ios,Es=K.define({combine(n){return Hl(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function LS(n={}){return[Es.of(n),VS,qS,MS,hO.of(!0)]}function LO(n){return n.startState.facet(Es)!=n.state.facet(Es)}const VS=DO({above:!0,markers(n){let{state:e}=n,t=e.facet(Es),i=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty?!s||IO:t.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=r.empty?r:V.cursor(r.head,r.head>r.anchor?-1:1);for(let a of io.forRange(n,o,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=LO(n);return t&&xf(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){xf(e.state,n)},class:"cm-cursorLayer"});function xf(n,e){e.style.animationDuration=n.facet(Es).cursorBlinkRate+"ms"}const qS=DO({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:io.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||LO(n)},class:"cm-selectionLayer"}),Uc={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};IO&&(Uc[".cm-line"].caretColor="transparent !important",Uc[".cm-content"]={caretColor:"transparent !important"});const MS=Gi.highest(ee.theme(Uc));function $f(n,e,t,i,r){e.lastIndex=0;for(let s=n.iterRange(t,i),o=t,l;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)r(o+l.index,l)}function XS(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:r,to:s}of t)r=Math.max(n.state.doc.lineAt(r).from,r-e),s=Math.min(n.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}class WS{constructor(e){const{regexp:t,decoration:i,decorate:r,boundary:s,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(l,a,c,u)=>r(u,c,c+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,c,u)=>{let h=i(l,a,c);h&&u(c,c+l[0].length,h)};else if(i)this.addMatch=(l,a,c,u)=>u(c,c+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let t=new Pr,i=t.add.bind(t);for(let{from:r,to:s}of XS(e,this.maxLength))$f(e.state.doc,this.regexp,r,s,(o,l)=>this.addMatch(l,e,o,i));return t.finish()}updateDeco(e,t){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,o,l,a)=>{a>e.view.viewport.from&&l1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),i,r):t}updateRange(e,t,i,r){for(let s of e.visibleRanges){let o=Math.max(s.from,i),l=Math.min(s.to,r);if(l>o){let a=e.state.doc.lineAt(o),c=a.toa.from;o--)if(this.boundary.test(a.text[o-1-a.from])){u=o;break}for(;ld.push(b.range(m,O));if(a==c)for(this.regexp.lastIndex=u-a.from;(f=this.regexp.exec(a.text))&&f.indexthis.addMatch(O,e,m,p));t=t.update({filterFrom:u,filterTo:h,filter:(m,O)=>mh,add:d})}}return t}}const Hc=/x/.unicode!=null?"gu":"g",BS=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Hc),zS={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Qa=null;function jS(){var n;if(Qa==null&&typeof document<"u"&&document.body){let e=document.body.style;Qa=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Qa||!1}const nl=K.define({combine(n){let e=Hl(n,{render:null,specialChars:BS,addSpecialChars:null});return(e.replaceTabs=!jS())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Hc)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Hc)),e}});function YS(n={}){return[nl.of(n),NS()]}let Pf=null;function NS(){return Pf||(Pf=Ft.fromClass(class{constructor(n){this.view=n,this.decorations=Ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(nl)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new WS({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,s=on(e[0],0);if(s==9){let o=r.lineAt(i),l=t.state.tabSize,a=Rn(o.text,l,i-o.from);return Ce.replace({widget:new HS((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Ce.replace({widget:new US(n,s)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(nl);n.startState.facet(nl)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const FS="•";function GS(n){return n>=32?FS:n==10?"␤":String.fromCharCode(9216+n)}class US extends Ui{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=GS(this.code),i=e.state.phrase("Control character")+" "+(zS[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let s=document.createElement("span");return s.textContent=t,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class HS extends Ui{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}class KS extends Ui{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?Cr(e.firstChild):[];if(!t.length)return null;let i=window.getComputedStyle(e.parentNode),r=Kl(t[0],i.direction!="rtl"),s=parseInt(i.lineHeight);return r.bottom-r.top>s*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+s}:r}ignoreEvent(){return!1}}function JS(n){return Ft.fromClass(class{constructor(e){this.view=e,this.placeholder=n?Ce.set([Ce.widget({widget:new KS(n),side:1}).range(0)]):Ce.none}get decorations(){return this.view.state.doc.length?Ce.none:this.placeholder}},{decorations:e=>e.decorations})}const es="-10000px";class ew{constructor(e,t,i){this.facet=t,this.createTooltipView=i,this.input=e.state.facet(t),this.tooltips=this.input.filter(r=>r),this.tooltipViews=this.tooltips.map(i)}update(e,t){var i;let r=e.state.facet(this.facet),s=r.filter(a=>a);if(r===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],l=t?[]:null;for(let a=0;at[c]=a),t.length=l.length),this.input=r,this.tooltips=s,this.tooltipViews=o,!0}}function tw(n){let{win:e}=n;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Aa=K.define({combine:n=>{var e,t,i;return{position:F.ios?"absolute":((e=n.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(r=>r.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||tw}}}),Cf=new WeakMap,VO=Ft.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(Aa);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new ew(n,qO,t=>this.createTooltip(t)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(Aa);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n){let e=n.create(this.view);if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=es,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var n,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(n=t.destroy)===null||n===void 0||n.call(t);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=this.view.dom.getBoundingClientRect(),e=1,t=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(F.gecko)i=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==es&&r.style.left=="0px"){let s=r.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map((r,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(Aa).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:i}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:i,scaleX:r,scaleY:s}=n,o=[];for(let l=0;l=Math.min(t.bottom,i.bottom)||h.rightMath.min(t.right,i.right)+.1){u.style.top=es;continue}let f=a.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,m=d.right-d.left,O=(e=Cf.get(c))!==null&&e!==void 0?e:d.bottom-d.top,b=c.offset||iw,y=this.view.textDirection==Me.LTR,S=d.width>i.right-i.left?y?i.left:i.right-d.width:y?Math.min(h.left-(f?14:0)+b.x,i.right-m):Math.max(i.left,h.left-m+(f?14:0)-b.x),w=this.above[l];!a.strictSide&&(w?h.top-(d.bottom-d.top)-b.yi.bottom)&&w==i.bottom-h.bottom>h.top-i.top&&(w=this.above[l]=!w);let $=(w?h.top-i.top:i.bottom-h.bottom)-p;if($S&&C.topx&&(x=w?C.top-O-2-p:C.bottom+p+2);if(this.position=="absolute"?(u.style.top=(x-n.parent.top)/s+"px",u.style.left=(S-n.parent.left)/r+"px"):(u.style.top=x/s+"px",u.style.left=S/r+"px"),f){let C=h.left+(y?b.x:-b.x)-(S+14-7);f.style.left=C/r+"px"}c.overlap!==!0&&o.push({left:S,top:x,right:_,bottom:x+O}),u.classList.toggle("cm-tooltip-above",w),u.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=es}},{eventObservers:{scroll(){this.maybeMeasure()}}}),nw=ee.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),iw={x:0,y:0},qO=K.define({enables:[VO,nw]});function MO(n,e){let t=n.plugin(VO);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}class Qr extends Wi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Qr.prototype.elementClass="";Qr.prototype.toDOM=void 0;Qr.prototype.mapMode=Ot.TrackBefore;Qr.prototype.startSide=Qr.prototype.endSide=-1;Qr.prototype.point=!0;const XO=1024;let rw=0;class Wt{constructor(e,t){this.from=e,this.to=t}}class ie{constructor(e={}){this.id=rw++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ge.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}ie.closedBy=new ie({deserialize:n=>n.split(" ")});ie.openedBy=new ie({deserialize:n=>n.split(" ")});ie.group=new ie({deserialize:n=>n.split(" ")});ie.isolate=new ie({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});ie.contextHash=new ie({perNode:!0});ie.lookAhead=new ie({perNode:!0});ie.mounted=new ie({perNode:!0});class Zs{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[ie.mounted.id]}}const sw=Object.create(null);class Ge{constructor(e,t,i,r=0){this.name=e,this.props=t,this.id=i,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):sw,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new Ge(e.name||"",t,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(ie.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let r of i.split(" "))t[r]=e[i];return i=>{for(let r=i.prop(ie.group),s=-1;s<(r?r.length:0);s++){let o=t[s<0?i.name:r[s]];if(o)return o}}}}Ge.none=new Ge("",Object.create(null),0,8);class Mr{constructor(e){this.types=e;for(let t=0;t0;for(let a=this.cursor(o|Pe.IncludeAnonymous);;){let c=!1;if(a.from<=s&&a.to>=r&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;c=!0}for(;c&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Ku(Ge.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,r)=>new ue(this.type,t,i,r,this.propValues),e.makeTree||((t,i,r)=>new ue(Ge.none,t,i,r)))}static build(e){return cw(e)}}ue.empty=new ue(Ge.none,[],[],0);class Uu{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Uu(this.buffer,this.index)}}class wi{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Ge.none}toString(){let e=[];for(let t=0;t0));a=o[a+3]);return l}slice(e,t,i){let r=this.buffer,s=new Uint16Array(t-e),o=0;for(let l=e,a=0;l=e&&te;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function Rs(n,e,t,i){for(var r;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to0?l.length:-1;e!=c;e+=t){let u=l[e],h=a[e]+o.from;if(WO(r,i,h,h+u.length)){if(u instanceof wi){if(s&Pe.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,t,i-h,r);if(d>-1)return new Pn(new ow(o,u,e,h),null,d)}else if(s&Pe.IncludeAnonymous||!u.type.isAnonymous||Hu(u)){let d;if(!(s&Pe.IgnoreMounts)&&(d=Zs.get(u))&&!d.overlay)return new pt(d.tree,h,e,o);let f=new pt(u,h,e,o);return s&Pe.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?u.children.length-1:0,t,i,r)}}}if(s&Pe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let r;if(!(i&Pe.IgnoreOverlays)&&(r=Zs.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:o,to:l}of r.overlay)if((t>0?o<=s:o=s:l>s))return new pt(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Qf(n,e,t,i){let r=n.cursor(),s=[];if(!r.firstChild())return s;if(t!=null){for(;!r.type.is(t);)if(!r.nextSibling())return s}for(;;){if(i!=null&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return i==null?s:[]}}function Kc(n,e,t=e.length-1){for(let i=n.parent;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class ow{constructor(e,t,i,r){this.parent=e,this.buffer=t,this.index=i,this.start=r}}class Pn extends BO{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,i);return s<0?null:new Pn(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&Pe.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new Pn(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Pn(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Pn(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];if(s>r){let o=i.buffer[this.index+1];e.push(i.slice(r,s,o)),t.push(0)}return new ue(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function zO(n){if(!n.length)return null;let e=0,t=n[0];for(let s=1;st.from||o.to=e){let l=new pt(o.tree,o.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(Rs(l,e,t,!1))}}return r?zO(r):i}class vl{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof pt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof pt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&Pe.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Pe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Pe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(t.findChild(r,this.index,-1,0,4))}else{let r=t.buffer[this.index+3];if(r<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let s=t+e,o=e<0?-1:i._tree.children.length;s!=o;s+=e){let l=i._tree.children[s];if(this.mode&Pe.IncludeAnonymous||l instanceof wi||!l.type.isAnonymous||Hu(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,i=s+1;break e}r=this.stack[--s]}for(let r=i;r=0;s--){if(s<0)return Kc(this.node,e,r);let o=i[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function Hu(n){return n.children.some(e=>e instanceof wi||!e.type.isAnonymous||Hu(e))}function cw(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:r=XO,reused:s=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(t)?new Uu(t,t.length):t,a=i.types,c=0,u=0;function h($,x,_,C,q,D){let{id:X,start:Z,end:L,size:Q}=l,R=u;for(;Q<0;)if(l.next(),Q==-1){let ne=s[X];_.push(ne),C.push(Z-$);return}else if(Q==-3){c=X;return}else if(Q==-4){u=X;return}else throw new RangeError(`Unrecognized record size: ${Q}`);let E=a[X],N,G,ae=Z-$;if(L-Z<=r&&(G=O(l.pos-x,q))){let ne=new Uint16Array(G.size-G.skip),he=l.pos-G.size,_e=ne.length;for(;l.pos>he;)_e=b(G.start,ne,_e);N=new wi(ne,L-G.start,i),ae=G.start-$}else{let ne=l.pos-Q;l.next();let he=[],_e=[],Ie=X>=o?X:-1,ve=0,ye=L;for(;l.pos>ne;)Ie>=0&&l.id==Ie&&l.size>=0?(l.end<=ye-r&&(p(he,_e,Z,ve,l.end,ye,Ie,R),ve=he.length,ye=l.end),l.next()):D>2500?d(Z,ne,he,_e):h(Z,ne,he,_e,Ie,D+1);if(Ie>=0&&ve>0&&ve-1&&ve>0){let Le=f(E);N=Ku(E,he,_e,0,he.length,0,L-Z,Le,Le)}else N=m(E,he,_e,L-Z,R-L)}_.push(N),C.push(ae)}function d($,x,_,C){let q=[],D=0,X=-1;for(;l.pos>x;){let{id:Z,start:L,end:Q,size:R}=l;if(R>4)l.next();else{if(X>-1&&L=0;Q-=3)Z[R++]=q[Q],Z[R++]=q[Q+1]-L,Z[R++]=q[Q+2]-L,Z[R++]=R;_.push(new wi(Z,q[2]-L,i)),C.push(L-$)}}function f($){return(x,_,C)=>{let q=0,D=x.length-1,X,Z;if(D>=0&&(X=x[D])instanceof ue){if(!D&&X.type==$&&X.length==C)return X;(Z=X.prop(ie.lookAhead))&&(q=_[D]+X.length+Z)}return m($,x,_,C,q)}}function p($,x,_,C,q,D,X,Z){let L=[],Q=[];for(;$.length>C;)L.push($.pop()),Q.push(x.pop()+_-q);$.push(m(i.types[X],L,Q,D-q,Z-D)),x.push(q-_)}function m($,x,_,C,q=0,D){if(c){let X=[ie.contextHash,c];D=D?[X].concat(D):[X]}if(q>25){let X=[ie.lookAhead,q];D=D?[X].concat(D):[X]}return new ue($,x,_,C,D)}function O($,x){let _=l.fork(),C=0,q=0,D=0,X=_.end-r,Z={size:0,start:0,skip:0};e:for(let L=_.pos-$;_.pos>L;){let Q=_.size;if(_.id==x&&Q>=0){Z.size=C,Z.start=q,Z.skip=D,D+=4,C+=4,_.next();continue}let R=_.pos-Q;if(Q<0||R=o?4:0,N=_.start;for(_.next();_.pos>R;){if(_.size<0)if(_.size==-3)E+=4;else break e;else _.id>=o&&(E+=4);_.next()}q=N,C+=Q,D+=E}return(x<0||C==$)&&(Z.size=C,Z.start=q,Z.skip=D),Z.size>4?Z:void 0}function b($,x,_){let{id:C,start:q,end:D,size:X}=l;if(l.next(),X>=0&&C4){let L=l.pos-(X-4);for(;l.pos>L;)_=b($,x,_)}x[--_]=Z,x[--_]=D-$,x[--_]=q-$,x[--_]=C}else X==-3?c=C:X==-4&&(u=C);return _}let y=[],S=[];for(;l.pos>0;)h(n.start||0,n.bufferStart||0,y,S,-1,0);let w=(e=n.length)!==null&&e!==void 0?e:y.length?S[0]+y[0].length:0;return new ue(a[n.topID],y.reverse(),S.reverse(),w)}const Af=new WeakMap;function il(n,e){if(!n.isAnonymous||e instanceof wi||e.type!=n)return 1;let t=Af.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof ue)){t=1;break}t+=il(n,i)}Af.set(e,t)}return t}function Ku(n,e,t,i,r,s,o,l,a){let c=0;for(let p=i;p=u)break;x+=_}if(S==w+1){if(x>u){let _=p[w];f(_.children,_.positions,0,_.children.length,m[w]+y);continue}h.push(p[w])}else{let _=m[S-1]+p[S-1].length-$;h.push(Ku(n,p,m,w,S,$,_,null,a))}d.push($+y-s)}}return f(e,t,i,r,0),(l||a)(h,d,o)}class jO{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof Pn?this.setBuffer(e.context.buffer,e.index,t):e instanceof pt&&this.map.set(e.tree,t)}get(e){return e instanceof Pn?this.getBuffer(e.context.buffer,e.index):e instanceof pt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Fn{constructor(e,t,i,r,s=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=r,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let r=[new Fn(0,e.length,e,0,!1,i)];for(let s of t)s.to>e.length&&r.push(s);return r}static applyChanges(e,t,i=128){if(!t.length)return e;let r=[],s=1,o=e.length?e[0]:null;for(let l=0,a=0,c=0;;l++){let u=l=i)for(;o&&o.from=d.from||h<=d.to||c){let f=Math.max(d.from,a)-c,p=Math.min(d.to,h)-c;d=f>=p?null:new Fn(f,p,d.tree,d.offset+c,l>0,!!u)}if(d&&r.push(d),o.to>h)break;o=snew Wt(r.from,r.to)):[new Wt(0,0)]:[new Wt(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let r=this.startParse(e,t,i);for(;;){let s=r.advance();if(s)return s}}}class uw{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function YO(n){return(e,t,i,r)=>new dw(e,n,t,i,r)}class Tf{constructor(e,t,i,r,s){this.parser=e,this.parse=t,this.overlay=i,this.target=r,this.from=s}}function Ef(n){if(!n.length||n.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(n))}class hw{constructor(e,t,i,r,s,o,l){this.parser=e,this.predicate=t,this.mounts=i,this.index=r,this.start=s,this.target=o,this.prev=l,this.depth=0,this.ranges=[]}}const Jc=new ie({perNode:!0});class dw{constructor(e,t,i,r,s){this.nest=t,this.input=i,this.fragments=r,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new ue(i.type,i.children,i.positions,i.length,i.propValues.concat([[Jc,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[ie.mounted.id]=new Zs(t,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t=this.stoppedAt)l=!1;else if(e.hasNode(r)){if(t){let c=t.mounts.find(u=>u.frag.from<=r.from&&u.frag.to>=r.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let h=u.from+c.pos,d=u.to+c.pos;h>=r.from&&d<=r.to&&!t.ranges.some(f=>f.fromh)&&t.ranges.push({from:h,to:d})}}l=!1}else if(i&&(o=fw(i.ranges,r.from,r.to)))l=o!=2;else if(!r.type.isAnonymous&&(s=this.nest(r,this.input))&&(r.fromnew Wt(h.from-r.from,h.to-r.from)):null,r.tree,u.length?u[0].from:r.from)),s.overlay?u.length&&(i={ranges:u,depth:0,prev:i}):l=!1}}else t&&(a=t.predicate(r))&&(a===!0&&(a=new Wt(r.from,r.to)),a.fromnew Wt(u.from-t.start,u.to-t.start)),t.target,c[0].from))),t=t.prev}i&&!--i.depth&&(i=i.prev)}}}}function fw(n,e,t){for(let i of n){if(i.from>=t)break;if(i.to>e)return i.from<=e&&i.to>=t?2:1}return 0}function Zf(n,e,t,i,r,s){if(e=e&&t.enter(i,1,Pe.IgnoreOverlays|Pe.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof ue)t=t.children[0];else break}return!1}}let mw=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=(t=i.tree.prop(Jc))!==null&&t!==void 0?t:i.to,this.inner=new Rf(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(Jc))!==null&&e!==void 0?e:t.to,this.inner=new Rf(t.tree,-t.offset)}}findMounts(e,t){var i;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(i=s.tree)===null||i===void 0?void 0:i.prop(ie.mounted);if(o&&o.parser==t)for(let l=this.fragI;l=s.to)break;a.tree==this.curFrag.tree&&r.push({frag:a,pos:s.from-a.offset,mount:o})}}}return r}};function Df(n,e){let t=null,i=e;for(let r=1,s=0;r=l)break;a.to<=o||(t||(i=t=e.slice()),a.froml&&t.splice(s+1,0,new Wt(l,a.to))):a.to>l?t[s--]=new Wt(l,a.to):t.splice(s--,1))}}return i}function gw(n,e,t,i){let r=0,s=0,o=!1,l=!1,a=-1e9,c=[];for(;;){let u=r==n.length?1e9:o?n[r].to:n[r].from,h=s==e.length?1e9:l?e[s].to:e[s].from;if(o!=l){let d=Math.max(a,t),f=Math.min(u,h,i);dnew Wt(d.from+i,d.to+i)),h=gw(e,u,a,c);for(let d=0,f=a;;d++){let p=d==h.length,m=p?c:h[d].from;if(m>f&&t.push(new Fn(f,m,r.tree,-o,s.from>=f||s.openStart,s.to<=m||s.openEnd)),p)break;f=h[d].to}}else t.push(new Fn(a,c,r.tree,-o,s.from>=o||s.openStart,s.to<=l||s.openEnd))}return t}let Ow=0;class ln{constructor(e,t,i){this.set=e,this.base=t,this.modified=i,this.id=Ow++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new ln([],null,[]);if(t.set.push(t),e)for(let i of e.set)t.set.push(i);return t}static defineModifier(){let e=new yl;return t=>t.modified.indexOf(e)>-1?t:yl.get(t.base||t,t.modified.concat(e).sort((i,r)=>i.id-r.id))}}let bw=0;class yl{constructor(){this.instances=[],this.id=bw++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&vw(t,l.modified));if(i)return i;let r=[],s=new ln(r,e,t);for(let l of t)l.instances.push(s);let o=yw(t);for(let l of e.set)if(!l.modified.length)for(let a of o)r.push(yl.get(l,a));return s}}function vw(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function yw(n){let e=[[]];for(let t=0;ti.length-t.length)}function Xr(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let r of t.split(" "))if(r){let s=[],o=2,l=r;for(let h=0;;){if(l=="..."&&h>0&&h+3==r.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!d)throw new RangeError("Invalid path: "+r);if(s.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),h+=d[0].length,h==r.length)break;let f=r[h++];if(h==r.length&&f=="!"){o=0;break}if(f!="/")throw new RangeError("Invalid path: "+r);l=r.slice(h)}let a=s.length-1,c=s[a];if(!c)throw new RangeError("Invalid path: "+r);let u=new kl(i,o,a>0?s.slice(0,a):null);e[c]=u.sort(e[c])}}return NO.add(e)}const NO=new ie;class kl{constructor(e,t,i,r){this.tags=e,this.mode=t,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=r;for(let l of s)for(let a of l.set){let c=t[a.id];if(c){o=o?o+" "+c:c;break}}return o},scope:i}}function kw(n,e){let t=null;for(let i of n){let r=i.style(e);r&&(t=t?t+" "+r:r)}return t}function Sw(n,e,t,i=0,r=n.length){let s=new ww(i,Array.isArray(e)?e:[e],t);s.highlightRange(n.cursor(),i,r,"",s.highlighters),s.flush(r)}class ww{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,r,s){let{type:o,from:l,to:a}=e;if(l>=i||a<=t)return;o.isTop&&(s=this.highlighters.filter(f=>!f.scope||f.scope(o)));let c=r,u=xw(e)||kl.empty,h=kw(s,u.tags);if(h&&(c&&(c+=" "),c+=h,u.mode==1&&(r+=(r?" ":"")+h)),this.startSpan(Math.max(t,l),c),u.opaque)return;let d=e.tree&&e.tree.prop(ie.mounted);if(d&&d.overlay){let f=e.node.enter(d.overlay[0].from+l,1),p=this.highlighters.filter(O=>!O.scope||O.scope(d.tree.type)),m=e.firstChild();for(let O=0,b=l;;O++){let y=O=S||!e.nextSibling())););if(!y||S>i)break;b=y.to+l,b>t&&(this.highlightRange(f.cursor(),Math.max(t,y.from+l),Math.min(i,b),"",p),this.startSpan(Math.min(i,b),c))}m&&e.parent()}else if(e.firstChild()){d&&(r="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,r,s),this.startSpan(Math.min(i,e.to),c)}while(e.nextSibling());e.parent()}}}function xw(n){let e=n.type.prop(NO);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const j=ln.define,To=j(),ai=j(),Lf=j(ai),Vf=j(ai),ci=j(),Eo=j(ci),Ta=j(ci),bn=j(),Pi=j(bn),gn=j(),On=j(),eu=j(),ts=j(eu),Zo=j(),v={comment:To,lineComment:j(To),blockComment:j(To),docComment:j(To),name:ai,variableName:j(ai),typeName:Lf,tagName:j(Lf),propertyName:Vf,attributeName:j(Vf),className:j(ai),labelName:j(ai),namespace:j(ai),macroName:j(ai),literal:ci,string:Eo,docString:j(Eo),character:j(Eo),attributeValue:j(Eo),number:Ta,integer:j(Ta),float:j(Ta),bool:j(ci),regexp:j(ci),escape:j(ci),color:j(ci),url:j(ci),keyword:gn,self:j(gn),null:j(gn),atom:j(gn),unit:j(gn),modifier:j(gn),operatorKeyword:j(gn),controlKeyword:j(gn),definitionKeyword:j(gn),moduleKeyword:j(gn),operator:On,derefOperator:j(On),arithmeticOperator:j(On),logicOperator:j(On),bitwiseOperator:j(On),compareOperator:j(On),updateOperator:j(On),definitionOperator:j(On),typeOperator:j(On),controlOperator:j(On),punctuation:eu,separator:j(eu),bracket:ts,angleBracket:j(ts),squareBracket:j(ts),paren:j(ts),brace:j(ts),content:bn,heading:Pi,heading1:j(Pi),heading2:j(Pi),heading3:j(Pi),heading4:j(Pi),heading5:j(Pi),heading6:j(Pi),contentSeparator:j(bn),list:j(bn),quote:j(bn),emphasis:j(bn),strong:j(bn),link:j(bn),monospace:j(bn),strikethrough:j(bn),inserted:j(),deleted:j(),changed:j(),invalid:j(),meta:Zo,documentMeta:j(Zo),annotation:j(Zo),processingInstruction:j(Zo),definition:ln.defineModifier(),constant:ln.defineModifier(),function:ln.defineModifier(),standard:ln.defineModifier(),local:ln.defineModifier(),special:ln.defineModifier()};FO([{tag:v.link,class:"tok-link"},{tag:v.heading,class:"tok-heading"},{tag:v.emphasis,class:"tok-emphasis"},{tag:v.strong,class:"tok-strong"},{tag:v.keyword,class:"tok-keyword"},{tag:v.atom,class:"tok-atom"},{tag:v.bool,class:"tok-bool"},{tag:v.url,class:"tok-url"},{tag:v.labelName,class:"tok-labelName"},{tag:v.inserted,class:"tok-inserted"},{tag:v.deleted,class:"tok-deleted"},{tag:v.literal,class:"tok-literal"},{tag:v.string,class:"tok-string"},{tag:v.number,class:"tok-number"},{tag:[v.regexp,v.escape,v.special(v.string)],class:"tok-string2"},{tag:v.variableName,class:"tok-variableName"},{tag:v.local(v.variableName),class:"tok-variableName tok-local"},{tag:v.definition(v.variableName),class:"tok-variableName tok-definition"},{tag:v.special(v.variableName),class:"tok-variableName2"},{tag:v.definition(v.propertyName),class:"tok-propertyName tok-definition"},{tag:v.typeName,class:"tok-typeName"},{tag:v.namespace,class:"tok-namespace"},{tag:v.className,class:"tok-className"},{tag:v.macroName,class:"tok-macroName"},{tag:v.propertyName,class:"tok-propertyName"},{tag:v.operator,class:"tok-operator"},{tag:v.comment,class:"tok-comment"},{tag:v.meta,class:"tok-meta"},{tag:v.invalid,class:"tok-invalid"},{tag:v.punctuation,class:"tok-punctuation"}]);var Ea;const gi=new ie;function na(n){return K.define({combine:n?e=>e.concat(n):void 0})}const Ju=new ie;class Lt{constructor(e,t,i=[],r=""){this.data=e,this.name=r,pe.prototype.hasOwnProperty("tree")||Object.defineProperty(pe.prototype,"tree",{get(){return Xe(this)}}),this.parser=t,this.extension=[Er.of(this),pe.languageData.of((s,o,l)=>{let a=qf(s,o,l),c=a.type.prop(gi);if(!c)return[];let u=s.facet(c),h=a.type.prop(Ju);if(h){let d=a.resolve(o-a.from,l);for(let f of h)if(f.test(d,s)){let p=s.facet(f.facet);return f.type=="replace"?p:p.concat(u)}}return u})].concat(i)}isActiveAt(e,t,i=-1){return qf(e,t,i).type.prop(gi)==this.data}findRegions(e){let t=e.facet(Er);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],r=(s,o)=>{if(s.prop(gi)==this.data){i.push({from:o,to:o+s.length});return}let l=s.prop(ie.mounted);if(l){if(l.tree.prop(gi)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+o,to:a.to+o});else i.push({from:o,to:o+s.length});return}else if(l.overlay){let a=i.length;if(r(l.tree,l.overlay[0].from+o),i.length>a)return}}for(let a=0;ai.isTop?t:void 0)]}),e.name)}configure(e,t){return new Ar(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Xe(n){let e=n.field(Lt.state,!1);return e?e.tree:ue.empty}class $w{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let ns=null;class ji{constructor(e,t,i=[],r,s,o,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new ji(e,t,[],ue.empty,0,i,[],null)}startParse(){return this.parser.startParse(new $w(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=ue.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Fn.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ns;ns=this;try{return e()}finally{ns=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Mf(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:r,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((c,u,h,d)=>a.push({fromA:c,toA:u,fromB:h,toB:d})),i=Fn.applyChanges(i,a),r=ue.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let c of this.skipped){let u=e.mapPos(c.from,1),h=e.mapPos(c.to,-1);ue.from&&(this.fragments=Mf(this.fragments,r,s),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends ta{createParse(t,i,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let a=ns;if(a){for(let c of r)a.tempSkipped.push(c);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new ue(Ge.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return ns}}function Mf(n,e,t){return Fn.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class Tr{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Tr(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=ji.create(e.facet(Er).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Tr(i)}}Lt.state=In.define({create:Tr.init,update(n,e){for(let t of e.effects)if(t.is(Lt.setState))return t.value;return e.startState.facet(Er)!=e.state.facet(Er)?Tr.init(e.state):n.apply(e)}});let GO=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(GO=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:500-100})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Za=typeof navigator<"u"&&(!((Ea=navigator.scheduling)===null||Ea===void 0)&&Ea.isInputPending)?()=>navigator.scheduling.isInputPending():null,Pw=Ft.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Lt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Lt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=GO(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,a=s.context.work(()=>Za&&Za()||Date.now()>o,r+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Lt.setState.of(new Tr(s.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>cn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Er=K.define({combine(n){return n.length?n[0]:null},enables:n=>[Lt.state,Pw,ee.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class Zr{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class A{constructor(e,t,i,r,s,o=void 0){this.name=e,this.alias=t,this.extensions=i,this.filename=r,this.loadFunc=s,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:i}=e;if(!t){if(!i)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(i)}return new A(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,t,i)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let i=/\.([^.]+)$/.exec(t);if(i){for(let r of e)if(r.extensions.indexOf(i[1])>-1)return r}return null}static matchLanguageName(e,t,i=!0){t=t.toLowerCase();for(let r of e)if(r.alias.some(s=>s==t))return r;if(i)for(let r of e)for(let s of r.alias){let o=t.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(t[o-1])&&!/\w/.test(t[o+s.length])))return r}return null}}const UO=K.define(),Wr=K.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Yi(n){let e=n.facet(Wr);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Sl(n,e){let t="",i=n.tabSize,r=n.facet(Wr)[0];if(r==" "){for(;e>=i;)t+=" ",e-=i;r=" "}for(let s=0;s=e?Cw(n,t,e):null}class ia{constructor(e,t={}){this.state=e,this.options=t,this.unit=Yi(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(t<0?r-1&&(s+=o-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,t=e.length){return Rn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:r}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let o=s(r);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ro=new ie;function Cw(n,e,t){let i=e.resolveStack(t),r=i.node.enterUnfinishedNodesBefore(t);if(r!=i.node){let s=[];for(let o=r;o!=i.node;o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)i={node:s[o],next:i}}return KO(i,n,t)}function KO(n,e,t){for(let i=n;i;i=i.next){let r=Qw(i.node);if(r)return r(eh.create(e,t,i))}return 0}function _w(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Qw(n){let e=n.type.prop(ro);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(ie.closedBy))){let r=n.lastChild,s=r&&i.indexOf(r.name)>-1;return o=>JO(o,!0,1,void 0,s&&!_w(o)?r.from:void 0)}return n.parent==null?Aw:null}function Aw(){return 0}class eh extends ia{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new eh(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Tw(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return KO(this.context.next,this.base,this.pos)}}function Tw(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function Ew(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let r=n.options.simulateBreak,s=n.state.doc.lineAt(t.from),o=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped)return a.fromJO(i,e,t,n)}function JO(n,e,t,i,r){let s=n.textAfter,o=s.match(/^\s*/)[0].length,l=i&&s.slice(o,o+i.length)==i||r==n.pos+o,a=e?Ew(n):null;return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const Rw=n=>n.baseIndent;function rl({except:n,units:e=1}={}){return t=>{let i=n&&n.test(t.textAfter);return t.baseIndent+(i?0:e*t.unit)}}const Dw=K.define(),so=new ie;function e0(n){let e=n.firstChild,t=n.lastChild;return e&&e.tol.prop(gi)==o.data:o?l=>l==o:void 0,this.style=FO(e.map(l=>({tag:l.tag,class:l.class||r(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=i?new yi(i):null,this.themeType=t.themeType}static define(e,t){return new Br(e,t||{})}}const tu=K.define(),t0=K.define({combine(n){return n.length?[n[0]]:null}});function Ra(n){let e=n.facet(tu);return e.length?e:n.facet(t0)}function th(n,e){let t=[Lw],i;return n instanceof Br&&(n.module&&t.push(ee.styleModule.of(n.module)),i=n.themeType),e!=null&&e.fallback?t.push(t0.of(n)):i?t.push(tu.computeN([ee.darkTheme],r=>r.facet(ee.darkTheme)==(i=="dark")?[n]:[])):t.push(tu.of(n)),t}class Iw{constructor(e){this.markCache=Object.create(null),this.tree=Xe(e.state),this.decorations=this.buildDeco(e,Ra(e.state))}update(e){let t=Xe(e.state),i=Ra(e.state),r=i!=Ra(e.startState);t.length{i.add(o,l,this.markCache[a]||(this.markCache[a]=Ce.mark({class:a})))},r,s);return i.finish()}}const Lw=Gi.high(Ft.fromClass(Iw,{decorations:n=>n.decorations})),Vw=Br.define([{tag:v.meta,color:"#404740"},{tag:v.link,textDecoration:"underline"},{tag:v.heading,textDecoration:"underline",fontWeight:"bold"},{tag:v.emphasis,fontStyle:"italic"},{tag:v.strong,fontWeight:"bold"},{tag:v.strikethrough,textDecoration:"line-through"},{tag:v.keyword,color:"#708"},{tag:[v.atom,v.bool,v.url,v.contentSeparator,v.labelName],color:"#219"},{tag:[v.literal,v.inserted],color:"#164"},{tag:[v.string,v.deleted],color:"#a11"},{tag:[v.regexp,v.escape,v.special(v.string)],color:"#e40"},{tag:v.definition(v.variableName),color:"#00f"},{tag:v.local(v.variableName),color:"#30a"},{tag:[v.typeName,v.namespace],color:"#085"},{tag:v.className,color:"#167"},{tag:[v.special(v.variableName),v.macroName],color:"#256"},{tag:v.definition(v.propertyName),color:"#00c"},{tag:v.comment,color:"#940"},{tag:v.invalid,color:"#f00"}]),qw=1e4,Mw="()[]{}",n0=new ie;function nu(n,e,t){let i=n.prop(e<0?ie.openedBy:ie.closedBy);if(i)return i;if(n.name.length==1){let r=t.indexOf(n.name);if(r>-1&&r%2==(e<0?1:0))return[t[r+e]]}return null}function iu(n){let e=n.type.prop(n0);return e?e(n.node):n}function ar(n,e,t,i={}){let r=i.maxScanDistance||qw,s=i.brackets||Mw,o=Xe(n),l=o.resolveInner(e,t);for(let a=l;a;a=a.parent){let c=nu(a.type,t,s);if(c&&a.from0?e>=u.from&&eu.from&&e<=u.to))return Xw(n,e,t,a,u,c,s)}}return Ww(n,e,t,o,l.type,r,s)}function Xw(n,e,t,i,r,s,o){let l=i.parent,a={from:r.from,to:r.to},c=0,u=l==null?void 0:l.cursor();if(u&&(t<0?u.childBefore(i.from):u.childAfter(i.to)))do if(t<0?u.to<=i.from:u.from>=i.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},u=n.doc.iterRange(e,t>0?n.doc.length:0),h=0;for(let d=0;!u.next().done&&d<=s;){let f=u.value;t<0&&(d+=f.length);let p=e+d*t;for(let m=t>0?0:f.length-1,O=t>0?f.length:-1;m!=O;m+=t){let b=o.indexOf(f[m]);if(!(b<0||i.resolveInner(p+m,1).type!=r))if(b%2==0==t>0)h++;else{if(h==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==a>>1};h--}}t>0&&(d+=f.length)}return u.done?{start:c,matched:!1}:null}function Xf(n,e,t,i=0,r=0){e==null&&(e=n.search(/[^\s\u00a0]/),e==-1&&(e=n.length));let s=r;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosi?o.toLowerCase():o,s=this.string.substr(this.pos,e.length);return r(s)==r(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function Bw(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||zw,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||rh}}function zw(n){if(typeof n!="object")return n;let e={};for(let t in n){let i=n[t];e[t]=i instanceof Array?i.slice():i}return e}const Wf=new WeakMap;class nh extends Lt{constructor(e){let t=na(e.languageData),i=Bw(e),r,s=new class extends ta{createParse(o,l,a){return new Yw(r,o,l,a)}};super(t,s,[UO.of((o,l)=>this.getIndent(o,l))],e.name),this.topNode=Gw(t),r=this,this.streamParser=i,this.stateAfter=new ie({perNode:!0}),this.tokenTable=e.tokenTable?new l0(i.tokenTable):Fw}static define(e){return new nh(e)}getIndent(e,t){let i=Xe(e.state),r=i.resolve(t);for(;r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;let s,{overrideIndentation:o}=e.options;o&&(s=Wf.get(e.state),s!=null&&s1e4)return null;for(;a=i&&t+e.length<=r&&e.prop(n.stateAfter);if(s)return{state:n.streamParser.copyState(s),pos:t+e.length};for(let o=e.children.length-1;o>=0;o--){let l=e.children[o],a=t+e.positions[o],c=l instanceof ue&&a=e.length)return e;!r&&e.type==n.topNode&&(r=!0);for(let s=e.children.length-1;s>=0;s--){let o=e.positions[s],l=e.children[s],a;if(ot&&ih(n,r.tree,0-r.offset,t,o),a;if(l&&(a=r0(n,r.tree,t+r.offset,l.pos+r.offset,!1)))return{state:l.state,tree:a}}return{state:n.streamParser.startState(i?Yi(i):4),tree:ue.empty}}let Yw=class{constructor(e,t,i,r){this.lang=e,this.input=t,this.fragments=i,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let s=ji.get(),o=r[0].from,{state:l,tree:a}=jw(e,i,o,s==null?void 0:s.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let c=0;c=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==` `&&(t="");else{let i=t.indexOf(` -`);i>-1&&(t=t.slice(0,i))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),i=e+t.length;for(let r=this.rangeIndex;;){let s=this.ranges[r].to;if(s>=i||(t=t.slice(0,s-(i-t.length)),r++,r==this.ranges.length))break;let o=this.ranges[r].from,l=this.lineAfter(o);t+=l,i=o+l.length}return{line:t,end:i}}skipGapsTo(e,t,i){for(;;){let r=this.ranges[this.rangeIndex].to,s=e+t;if(i>0?r>s:r>=s)break;let o=this.ranges[++this.rangeIndex].from;t+=o-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){s=this.skipGapsTo(t,s,1),t+=s;let o=this.chunk.length;s=this.skipGapsTo(i,s,-1),i+=s,r+=this.chunk.length-o}return this.chunk.push(e,t,i,r),s}parseLine(e){let{line:t,end:i}=this.nextLine(),r=0,{streamParser:s}=this.lang,o=new i0(t,e?e.state.tabSize:4,e?Yi(e.state):2);if(o.eol())s.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=s0(s.token,o,this.state);if(l&&(r=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPose.start)return r}throw new Error("Stream parser failed to advance stream.")}const rh=Object.create(null),Ds=[Ge.none],Nw=new Mr(Ds),Bf=[],zf=Object.create(null),o0=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])o0[n]=a0(rh,e);class l0{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),o0)}resolve(e){return e?this.table[e]||(this.table[e]=a0(this.extra,e)):0}}const Fw=new l0(rh);function Da(n,e){Bf.indexOf(n)>-1||(Bf.push(n),console.warn(e))}function a0(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let c of l.split(".")){let u=n[c]||v[c];u?typeof u=="function"?a.length?a=a.map(u):Da(c,`Modifier ${c} used at start of tag`):a.length?Da(c,`Tag ${c} used as modifier`):a=Array.isArray(u)?u:[u]:Da(c,`Unknown highlighting tag ${c}`)}for(let c of a)t.push(c)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+t.map(l=>l.id),s=zf[r];if(s)return s.id;let o=zf[r]=Ge.define({id:Ds.length,name:i,props:[Xr({[i]:t})]});return Ds.push(o),o.id}function Gw(n){let e=Ge.define({id:Ds.length,name:"Document",props:[gi.add(()=>n)],top:!0});return Ds.push(e),e}Me.RTL,Me.LTR;const Uw=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=oh(n.state,t.from);return i.line?Hw(n):i.block?Jw(n):!1};function sh(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let r=n(e,t);return r?(i(t.update(r)),!0):!1}}const Hw=sh(nx,0),Kw=sh(c0,0),Jw=sh((n,e)=>c0(n,e,tx(e)),0);function oh(n,e){let t=n.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const is=50;function ex(n,{open:e,close:t},i,r){let s=n.sliceDoc(i-is,i),o=n.sliceDoc(r,r+is),l=/\s*$/.exec(s)[0].length,a=/^\s*/.exec(o)[0].length,c=s.length-l;if(s.slice(c-e.length,c)==e&&o.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:r+a,margin:a&&1}};let u,h;r-i<=2*is?u=h=n.sliceDoc(i,r):(u=n.sliceDoc(i,i+is),h=n.sliceDoc(r-is,r));let d=/^\s*/.exec(u)[0].length,f=/\s*$/.exec(h)[0].length,p=h.length-f-t.length;return u.slice(d,d+e.length)==e&&h.slice(p,p+t.length)==t?{open:{pos:i+d+e.length,margin:/\s/.test(u.charAt(d+e.length))?1:0},close:{pos:r-f-t.length,margin:/\s/.test(h.charAt(p-1))?1:0}}:null}function tx(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),r=t.to<=i.to?i:n.doc.lineAt(t.to),s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}function c0(n,e,t=e.selection.ranges){let i=t.map(s=>oh(e,s.from).block);if(!i.every(s=>s))return null;let r=t.map((s,o)=>ex(e,i[o],s.from,s.to));if(n!=2&&!r.every(s=>s))return{changes:e.changes(t.map((s,o)=>r[o]?[]:[{from:s.from,insert:i[o].open+" "},{from:s.to,insert:" "+i[o].close}]))};if(n!=1&&r.some(s=>s)){let s=[];for(let o=0,l;or&&(s==o||o>h.from)){r=h.from;let d=/^\s*/.exec(h.text)[0].length,f=d==h.length,p=h.text.slice(d,d+c.length)==c?d:-1;ds.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:a,indent:c,empty:u,single:h}of i)(h||!u)&&s.push({from:l.from+c,insert:a+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(n!=1&&i.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:l,token:a}of i)if(l>=0){let c=o.from+l,u=c+a.length;o.text[u-o.from]==" "&&u++,s.push({from:c,to:u})}return{changes:s}}return null}const ru=ei.define(),ix=ei.define(),rx=J.define(),u0=J.define({combine(n){return Hl(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,r)=>e(i,r)||t(i,r)})}}),h0=In.define({create(){return Cn.empty},update(n,e){let t=e.state.facet(u0),i=e.annotation(ru);if(i){let a=Pt.fromTransaction(e,i.selection),c=i.side,u=c==0?n.undone:n.done;return a?u=xl(u,u.length,t.minDepth,a):u=f0(u,e.startState.selection),new Cn(c==0?i.rest:u,c==0?u:i.rest)}let r=e.annotation(ix);if((r=="full"||r=="before")&&(n=n.isolate()),e.annotation(tt.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let s=Pt.fromTransaction(e),o=e.annotation(tt.time),l=e.annotation(tt.userEvent);return s?n=n.addChanges(s,o,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,o,l,t.newGroupDelay)),(r=="full"||r=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new Cn(n.done.map(Pt.fromJSON),n.undone.map(Pt.fromJSON))}});function sx(n={}){return[h0,u0.of(n),ee.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?lh:e.inputType=="historyRedo"?wl:null;return i?(e.preventDefault(),i(t)):!1}})]}function ra(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let r=t.field(h0,!1);if(!r)return!1;let s=r.pop(n,t,e);return s?(i(s),!0):!1}}const lh=ra(0,!1),wl=ra(1,!1),ox=ra(0,!0),lx=ra(1,!0);class Pt{constructor(e,t,i,r,s){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new Pt(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new Pt(e.changes&&et.fromJSON(e.changes),[],e.mapped&&En.fromJSON(e.mapped),e.startSelection&&V.fromJSON(e.startSelection),e.selectionsAfter.map(V.fromJSON))}static fromTransaction(e,t){let i=Bt;for(let r of e.startState.facet(rx)){let s=r(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new Pt(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,Bt)}static selection(e){return new Pt(void 0,Bt,void 0,void 0,e)}}function xl(n,e,t,i){let r=e+1>t+20?e-t-1:0,s=n.slice(r,e);return s.push(i),s}function ax(n,e){let t=[],i=!1;return n.iterChangedRanges((r,s)=>t.push(r,s)),e.iterChangedRanges((r,s,o,l)=>{for(let a=0;a=c&&o<=u&&(i=!0)}}),i}function cx(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function d0(n,e){return n.length?e.length?n.concat(e):n:e}const Bt=[],ux=200;function f0(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-ux));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),xl(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Pt.selection([e])]}function hx(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Ia(n,e){if(!n.length)return n;let t=n.length,i=Bt;for(;t;){let r=dx(n[t-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=n.slice(0,t);return s[t-1]=r,s}else e=r.mapped,t--,i=r.selectionsAfter}return i.length?[Pt.selection(i)]:Bt}function dx(n,e,t){let i=d0(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):Bt,t);if(!n.changes)return Pt.selection(i);let r=n.changes.map(e),s=e.mapDesc(n.changes,!0),o=n.mapped?n.mapped.composeDesc(s):s;return new Pt(r,we.mapEffects(n.effects,e),o,n.startSelection.map(s),i)}const fx=/^(input\.type|delete)($|\.)/;class Cn{constructor(e,t,i=0,r=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=r}isolate(){return this.prevTime?new Cn(this.done,this.undone):this}addChanges(e,t,i,r,s){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||fx.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?n.moveByChar(t,e):sa(t,e))}function mt(n){return n.textDirectionAt(n.state.selection.main.head)==Me.LTR}const m0=n=>p0(n,!mt(n)),g0=n=>p0(n,mt(n));function O0(n,e){return dn(n,t=>t.empty?n.moveByGroup(t,e):sa(t,e))}const mx=n=>O0(n,!mt(n)),gx=n=>O0(n,mt(n));function Ox(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function oa(n,e,t){let i=Xe(n).resolveInner(e.head),r=t?ie.closedBy:ie.openedBy;for(let a=e.head;;){let c=t?i.childAfter(a):i.childBefore(a);if(!c)break;Ox(n,c,r)?i=c:a=t?c.to:c.from}let s=i.type.prop(r),o,l;return s&&(o=t?ar(n,i.from,1):ar(n,i.to,-1))&&o.matched?l=t?o.end.to:o.end.from:l=t?i.to:i.from,V.cursor(l,t?-1:1)}const bx=n=>dn(n,e=>oa(n.state,e,!mt(n))),vx=n=>dn(n,e=>oa(n.state,e,mt(n)));function b0(n,e){return dn(n,t=>{if(!t.empty)return sa(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const v0=n=>b0(n,!1),y0=n=>b0(n,!0);function k0(n){let e=n.scrollDOM.clientHeighto.empty?n.moveVertically(o,e,t.height):sa(o,e));if(r.eq(i.selection))return!1;let s;if(t.selfScroll){let o=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,c=l.bottom-t.marginBottom;o&&o.top>a&&o.bottomS0(n,!1),su=n=>S0(n,!0);function xi(n,e,t){let i=n.lineBlockAt(e.head),r=n.moveToLineBoundary(e,t);if(r.head==e.head&&r.head!=(t?i.to:i.from)&&(r=n.moveToLineBoundary(e,t,!1)),!t&&r.head==i.from&&i.length){let s=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=V.cursor(i.from+s))}return r}const yx=n=>dn(n,e=>xi(n,e,!0)),kx=n=>dn(n,e=>xi(n,e,!1)),Sx=n=>dn(n,e=>xi(n,e,!mt(n))),wx=n=>dn(n,e=>xi(n,e,mt(n))),xx=n=>dn(n,e=>V.cursor(n.lineBlockAt(e.head).from,1)),$x=n=>dn(n,e=>V.cursor(n.lineBlockAt(e.head).to,-1));function Px(n,e,t){let i=!1,r=zr(n.selection,s=>{let o=ar(n,s.head,-1)||ar(n,s.head,1)||s.head>0&&ar(n,s.head-1,1)||s.headPx(n,e,!1);function Ht(n,e){let t=zr(n.state.selection,i=>{let r=e(i);return V.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(Ln(n.state,t)),!0)}function w0(n,e){return Ht(n,t=>n.moveByChar(t,e))}const x0=n=>w0(n,!mt(n)),$0=n=>w0(n,mt(n));function P0(n,e){return Ht(n,t=>n.moveByGroup(t,e))}const _x=n=>P0(n,!mt(n)),Qx=n=>P0(n,mt(n)),Ax=n=>Ht(n,e=>oa(n.state,e,!mt(n))),Tx=n=>Ht(n,e=>oa(n.state,e,mt(n)));function C0(n,e){return Ht(n,t=>n.moveVertically(t,e))}const _0=n=>C0(n,!1),Q0=n=>C0(n,!0);function A0(n,e){return Ht(n,t=>n.moveVertically(t,e,k0(n).height))}const Yf=n=>A0(n,!1),Nf=n=>A0(n,!0),Ex=n=>Ht(n,e=>xi(n,e,!0)),Zx=n=>Ht(n,e=>xi(n,e,!1)),Rx=n=>Ht(n,e=>xi(n,e,!mt(n))),Dx=n=>Ht(n,e=>xi(n,e,mt(n))),Ix=n=>Ht(n,e=>V.cursor(n.lineBlockAt(e.head).from)),Lx=n=>Ht(n,e=>V.cursor(n.lineBlockAt(e.head).to)),Ff=({state:n,dispatch:e})=>(e(Ln(n,{anchor:0})),!0),Gf=({state:n,dispatch:e})=>(e(Ln(n,{anchor:n.doc.length})),!0),Uf=({state:n,dispatch:e})=>(e(Ln(n,{anchor:n.selection.main.anchor,head:0})),!0),Hf=({state:n,dispatch:e})=>(e(Ln(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),Vx=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),qx=({state:n,dispatch:e})=>{let t=la(n).map(({from:i,to:r})=>V.range(i,Math.min(r+1,n.doc.length)));return e(n.update({selection:V.create(t),userEvent:"select"})),!0},Mx=({state:n,dispatch:e})=>{let t=zr(n.selection,i=>{var r;let s=Xe(n).resolveStack(i.from,1);for(let o=s;o;o=o.next){let{node:l}=o;if((l.from=i.to||l.to>i.to&&l.from<=i.from)&&(!((r=l.parent)===null||r===void 0)&&r.parent))return V.range(l.to,l.from)}return i});return e(Ln(n,t)),!0},Xx=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=V.create([t.main]):t.main.empty||(i=V.create([V.cursor(t.main.head)])),i?(e(Ln(n,i)),!0):!1};function oo(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,r=i.changeByRange(s=>{let{from:o,to:l}=s;if(o==l){let a=e(s);ao&&(t="delete.forward",a=Ro(n,a,!0)),o=Math.min(o,a),l=Math.max(l,a)}else o=Ro(n,o,!1),l=Ro(n,l,!0);return o==l?{range:s}:{changes:{from:o,to:l},range:V.cursor(o,or(n)))i.between(e,e,(r,s)=>{re&&(e=t?s:r)});return e}const T0=(n,e)=>oo(n,t=>{let i=t.from,{state:r}=n,s=r.doc.lineAt(i),o,l;if(!e&&i>s.from&&iT0(n,!1),E0=n=>T0(n,!0),Z0=(n,e)=>oo(n,t=>{let i=t.head,{state:r}=n,s=r.doc.lineAt(i),o=r.charCategorizer(i);for(let l=null;;){if(i==(e?s.to:s.from)){i==t.head&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let a=bt(s.text,i-s.from,e)+s.from,c=s.text.slice(Math.min(i,a)-s.from,Math.max(i,a)-s.from),u=o(c);if(l!=null&&u!=l)break;(c!=" "||i!=t.head)&&(l=u),i=a}return i}),R0=n=>Z0(n,!1),Wx=n=>Z0(n,!0),Bx=n=>oo(n,e=>{let t=n.lineBlockAt(e.head).to;return e.headoo(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),jx=n=>oo(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:ge.of(["",""])},range:V.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},Nx=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let r=i.from,s=n.doc.lineAt(r),o=r==s.from?r-1:bt(s.text,r-s.from,!1)+s.from,l=r==s.to?r+1:bt(s.text,r-s.from,!0)+s.from;return{changes:{from:o,to:l,insert:n.doc.slice(r,l).append(n.doc.slice(o,r))},range:V.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function la(n){let e=[],t=-1;for(let i of n.selection.ranges){let r=n.doc.lineAt(i.from),s=n.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=n.doc.lineAt(i.to-1)),t>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});t=s.number+1}return e}function D0(n,e,t){if(n.readOnly)return!1;let i=[],r=[];for(let s of la(n)){if(t?s.to==n.doc.length:s.from==0)continue;let o=n.doc.lineAt(t?s.to+1:s.from-1),l=o.length+1;if(t){i.push({from:s.to,to:o.to},{from:s.from,insert:o.text+n.lineBreak});for(let a of s.ranges)r.push(V.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:o.from,to:s.from},{from:s.to,insert:n.lineBreak+o.text});for(let a of s.ranges)r.push(V.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:V.create(r,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Fx=({state:n,dispatch:e})=>D0(n,e,!1),Gx=({state:n,dispatch:e})=>D0(n,e,!0);function I0(n,e,t){if(n.readOnly)return!1;let i=[];for(let r of la(n))t?i.push({from:r.from,insert:n.doc.slice(r.from,r.to)+n.lineBreak}):i.push({from:r.to,insert:n.lineBreak+n.doc.slice(r.from,r.to)});return e(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ux=({state:n,dispatch:e})=>I0(n,e,!1),Hx=({state:n,dispatch:e})=>I0(n,e,!0),L0=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(la(e).map(({from:r,to:s})=>(r>0?r--:sn.moveVertically(r,!0)).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Kx(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Xe(n).resolveInner(e),i=t.childBefore(e),r=t.childAfter(e),s;return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(ie.closedBy))&&s.indexOf(r.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(r.from).from&&!/\S/.test(n.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}const Jx=V0(!1),e$=V0(!0);function V0(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:s,to:o}=r,l=e.doc.lineAt(s),a=!n&&s==o&&Kx(e,s);n&&(s=o=(o<=l.to?l:e.doc.lineAt(o)).to);let c=new ia(e,{simulateBreak:s,simulateDoubleBreak:!!a}),u=HO(c,s);for(u==null&&(u=Rn(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));ol.from&&s{let r=[];for(let o=i.from;o<=i.to;){let l=n.doc.lineAt(o);l.number>t&&(i.empty||i.to>l.from)&&(e(l,r,i),t=l.number),o=l.to+1}let s=n.changes(r);return{changes:r,range:V.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const t$=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new ia(n,{overrideIndentation:s=>{let o=t[s];return o??-1}}),r=ah(n,(s,o,l)=>{let a=HO(i,s.from);if(a==null)return;/\S/.test(s.text)||(a=0);let c=/^\s*/.exec(s.text)[0],u=Sl(n,a);(c!=u||l.fromn.readOnly?!1:(e(n.update(ah(n,(t,i)=>{i.push({from:t.from,insert:n.facet(Wr)})}),{userEvent:"input.indent"})),!0),M0=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(ah(n,(t,i)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let s=Rn(r,n.tabSize),o=0,l=Sl(n,Math.max(0,s-Yi(n)));for(;o({mac:n.key,run:n.run,shift:n.shift}))),r$=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:bx,shift:Ax},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:vx,shift:Tx},{key:"Alt-ArrowUp",run:Fx},{key:"Shift-Alt-ArrowUp",run:Ux},{key:"Alt-ArrowDown",run:Gx},{key:"Shift-Alt-ArrowDown",run:Hx},{key:"Escape",run:Xx},{key:"Mod-Enter",run:e$},{key:"Alt-l",mac:"Ctrl-l",run:qx},{key:"Mod-i",run:Mx,preventDefault:!0},{key:"Mod-[",run:M0},{key:"Mod-]",run:q0},{key:"Mod-Alt-\\",run:t$},{key:"Shift-Mod-k",run:L0},{key:"Shift-Mod-\\",run:Cx},{key:"Mod-/",run:Uw},{key:"Alt-A",run:Kw}].concat(i$),s$={key:"Tab",run:q0,shift:M0};class ch{constructor(e,t,i){this.state=e,this.pos=t,this.explicit=i,this.abortListeners=[]}tokenBefore(e){let t=Xe(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),r=t.text.slice(i-t.from,this.pos-t.from),s=r.search(W0(e,!1));return s<0?null:{from:i+s,to:this.pos,text:r.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function Kf(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function o$(n){let e=Object.create(null),t=Object.create(null);for(let{label:r}of n){e[r[0]]=!0;for(let s=1;stypeof r=="string"?{label:r}:r),[t,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:o$(e);return r=>{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:t}:null}}function l$(n,e){return t=>{for(let i=Xe(t.state).resolveInner(t.pos,-1);i;i=i.parent){if(n.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(t)}}class Jf{constructor(e,t,i,r){this.completion=e,this.source=t,this.match=i,this.score=r}}function vi(n){return n.selection.main.from}function W0(n,e){var t;let{source:i}=n,r=e&&i[0]!="^",s=i[i.length-1]!="$";return!r&&!s?n:new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const B0=ei.define();function a$(n,e,t,i){let{main:r}=n.selection,s=t-r.from,o=i-r.from;return Object.assign(Object.assign({},n.changeByRange(l=>l!=r&&t!=i&&n.sliceDoc(l.from+s,l.from+o)!=n.sliceDoc(t,i)?{range:l}:{changes:{from:l.from+s,to:i==r.from?l.to:l.from+o,insert:e},range:V.cursor(l.from+s+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const ep=new WeakMap;function c$(n){if(!Array.isArray(n))return n;let e=ep.get(n);return e||ep.set(n,e=X0(n)),e}const uh=we.define(),Is=we.define();class u${constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&$<=57||$>=97&&$<=122?2:$>=65&&$<=90?1:0:(x=qk($))!=x.toLowerCase()?1:x!=x.toUpperCase()?2:0;(!y||_==1&&O||w==0&&_!=0)&&(t[h]==$||i[h]==$&&(d=!0)?o[h++]=y:o.length&&(b=!1)),w=_,y+=hi($)}return h==a&&o[0]==0&&b?this.result(-100+(d?-200:0),o,e):f==a&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):f==a?this.ret(-200+-700-e.length,[p,m]):h==a?this.result(-100+(d?-200:0)+-700+(b?0:-1100),o,e):t.length==2?!1:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,i){let r=[],s=0;for(let o of t){let l=o+(this.astral?hi(on(i,o)):1);s&&r[s-1]==o?r[s-1]=l:(r[s++]=o,r[s++]=l)}return this.ret(e-i.length,r)}}const ft=J.define({combine(n){return Hl(n,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:h$,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>tp(e(i),t(i)),optionClass:(e,t)=>i=>tp(e(i),t(i)),addToOptions:(e,t)=>e.concat(t)})}});function tp(n,e){return n?e?n+" "+e:n:e}function h$(n,e,t,i,r,s){let o=n.textDirection==Me.RTL,l=o,a=!1,c="top",u,h,d=e.left-r.left,f=r.right-e.right,p=i.right-i.left,m=i.bottom-i.top;if(l&&d=m||y>e.top?u=t.bottom-e.top:(c="bottom",u=e.bottom-t.top)}let O=(e.bottom-e.top)/s.offsetHeight,b=(e.right-e.left)/s.offsetWidth;return{style:`${c}: ${u/O}px; max-width: ${h/b}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":l?"left":"right")}}function d$(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,r,s){let o=document.createElement("span");o.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let c=0;ca&&o.appendChild(document.createTextNode(l.slice(a,u)));let d=o.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(l.slice(u,h))),d.className="cm-completionMatchedText",a=h}return at.position-i.position).map(t=>t.render)}function La(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let r=Math.floor(e/t);return{from:r*t,to:(r+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class f${constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:s,selected:o}=r.open,l=e.state.facet(ft);this.optionContent=d$(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=La(s.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:c}=e.state.field(t).open;for(let u=a.target,h;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(h=/-(\d+)$/.exec(u.id))&&+h[1]{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(ft).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:Is.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=r){let{options:s,selected:o,disabled:l}=i.open;(!r.open||r.open.options!=s)&&(this.range=La(s.length,o,e.state.facet(ft).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),l!=((t=r.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=La(t.options.length,t.selected,this.view.state.facet(ft).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:i}=t.options[t.selected],{info:r}=i;if(!r)return;let s=typeof r=="string"?document.createTextNode(r):r(i);if(!s)return;"then"in s?s.then(o=>{o&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(o,i)}).catch(o=>cn(this.view.state,o,"completion info")):this.addInfoPane(s,i)}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;i.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)i.nodeName!="LI"||!i.id?r--:r==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return t&&m$(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}return r.top>Math.min(s.bottom,t.bottom)-10||r.bottomi.from||i.from==0))if(s=d,typeof c!="string"&&c.header)r.appendChild(c.header(c));else{let f=r.appendChild(document.createElement("completion-section"));f.textContent=d}}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let h=this.optionClass(l);h&&(u.className=h);for(let d of this.optionContent){let f=d(l,this.view.state,this.view,a);f&&u.appendChild(f)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.tonew f$(t,n,e)}function m$(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),r=t.height/n.offsetHeight;i.topt.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/r)}function np(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function g$(n,e){let t=[],i=null,r=a=>{t.push(a);let{section:c}=a.completion;if(c){i||(i=[]);let u=typeof c=="string"?c:c.name;i.some(h=>h.name==u)||i.push(typeof c=="string"?{name:u}:c)}};for(let a of n)if(a.hasResult()){let c=a.result.getMatch;if(a.result.filter===!1)for(let u of a.result.options)r(new Jf(u,a.source,c?c(u):[],1e9-t.length));else{let u=new u$(e.sliceDoc(a.from,a.to));for(let h of a.result.options)if(u.match(h.label)){let d=h.displayLabel?c?c(h,u.matched):[]:u.matched;r(new Jf(h,a.source,d,u.score+(h.boost||0)))}}}if(i){let a=Object.create(null),c=0,u=(h,d)=>{var f,p;return((f=h.rank)!==null&&f!==void 0?f:1e9)-((p=d.rank)!==null&&p!==void 0?p:1e9)||(h.nameu.score-c.score||l(c.completion,u.completion))){let c=a.completion;!o||o.label!=c.label||o.detail!=c.detail||o.type!=null&&c.type!=null&&o.type!=c.type||o.apply!=c.apply||o.boost!=c.boost?s.push(a):np(a.completion)>np(o)&&(s[s.length-1]=a),o=a.completion}return s}class cr{constructor(e,t,i,r,s,o){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=r,this.selected=s,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new cr(this.options,ip(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,r,s){let o=g$(e,t);if(!o.length)return r&&e.some(a=>a.state==1)?new cr(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let l=t.facet(ft).selectOnOpen?0:-1;if(r&&r.selected!=l&&r.selected!=-1){let a=r.options[r.selected].completion;for(let c=0;cc.hasResult()?Math.min(a,c.from):a,1e8),create:k$,above:s.aboveCursor},r?r.timestamp:Date.now(),l,!1)}map(e){return new cr(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class $l{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new $l(v$,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(ft),s=(i.override||t.languageDataAt("autocomplete",vi(t)).map(c$)).map(l=>(this.active.find(c=>c.source==l)||new xt(l,this.active.some(c=>c.state!=0)?1:0)).update(e,i));s.length==this.active.length&&s.every((l,a)=>l==this.active[a])&&(s=this.active);let o=this.open;o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!O$(s,this.active)?o=cr.build(s,t,this.id,o,i):o&&o.disabled&&!s.some(l=>l.state==1)&&(o=null),!o&&s.every(l=>l.state!=1)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new xt(l.source,0):l));for(let l of e.effects)l.is(j0)&&(o=o&&o.setSelected(l.value,this.id));return s==this.active&&o==this.open?this:new $l(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:b$}}function O$(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t-1&&(t["aria-activedescendant"]=n+"-"+e),t}const v$=[];function lu(n){return n.isUserEvent("input.type")?"input":n.isUserEvent("delete.backward")?"delete":null}class xt{constructor(e,t,i=-1){this.source=e,this.state=t,this.explicitPos=i}hasResult(){return!1}update(e,t){let i=lu(e),r=this;i?r=r.handleUserEvent(e,i,t):e.docChanged?r=r.handleChange(e):e.selection&&r.state!=0&&(r=new xt(r.source,0));for(let s of e.effects)if(s.is(uh))r=new xt(r.source,1,s.value?vi(e.state):-1);else if(s.is(Is))r=new xt(r.source,0);else if(s.is(z0))for(let o of s.value)o.source==r.source&&(r=o);return r}handleUserEvent(e,t,i){return t=="delete"||!i.activateOnTyping?this.map(e.changes):new xt(this.source,1)}handleChange(e){return e.changes.touchesRange(vi(e.startState))?new xt(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new xt(this.source,this.state,e.mapPos(this.explicitPos))}}class mr extends xt{constructor(e,t,i,r,s){super(e,2,t),this.result=i,this.from=r,this.to=s}hasResult(){return!0}handleUserEvent(e,t,i){var r;let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),l=vi(e.state);if((this.explicitPos<0?l<=s:lo||t=="delete"&&vi(e.startState)==this.from)return new xt(this.source,t=="input"&&i.activateOnTyping?1:0);let a=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),c;return y$(this.result.validFor,e.state,s,o)?new mr(this.source,a,this.result,s,o):this.result.update&&(c=this.result.update(this.result,s,o,new ch(e.state,l,a>=0)))?new mr(this.source,a,c,c.from,(r=c.to)!==null&&r!==void 0?r:vi(e.state)):new xt(this.source,1,a)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new xt(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new mr(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function y$(n,e,t,i){if(!n)return!1;let r=e.sliceDoc(t,i);return typeof n=="function"?n(r,t,i,e):W0(n,!0).test(r)}const z0=we.define({map(n,e){return n.map(t=>t.map(e))}}),j0=we.define(),Dt=In.define({create(){return $l.start()},update(n,e){return n.update(e)},provide:n=>[qO.from(n,e=>e.tooltip),ee.contentAttributes.from(n,e=>e.attrs)]});function Y0(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(Dt).active.find(r=>r.source==e.source);return i instanceof mr?(typeof t=="string"?n.dispatch(Object.assign(Object.assign({},a$(n.state,t,i.from,i.to)),{annotations:B0.of(e.completion)})):t(n,e.completion,i.from,i.to),!0):!1}const k$=p$(Dt,Y0);function Do(n,e="option"){return t=>{let i=t.state.field(Dt,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+r*(n?1:-1):n?0:o-1;return l<0?l=e=="page"?0:o-1:l>=o&&(l=e=="page"?o-1:0),t.dispatch({effects:j0.of(l)}),!0}}const S$=n=>{let e=n.state.field(Dt,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampn.state.field(Dt,!1)?(n.dispatch({effects:uh.of(!0)}),!0):!1,x$=n=>{let e=n.state.field(Dt,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:Is.of(null)}),!0)};class $${constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const P$=50,C$=1e3,_$=Ft.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of n.state.field(Dt).active)e.state==1&&this.startQuery(e)}update(n){let e=n.state.field(Dt);if(!n.selectionSet&&!n.docChanged&&n.startState.field(Dt)==e)return;let t=n.transactions.some(i=>(i.selection||i.docChanged)&&!lu(i));for(let i=0;iP$&&Date.now()-r.time>C$){for(let s of r.context.abortListeners)try{s()}catch(o){cn(this.view.state,o)}r.context.abortListeners=null,this.running.splice(i--,1)}else r.updates.push(...n.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(i=>i.state==1&&!this.running.some(r=>r.active.source==i.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let i of n.transactions)lu(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:n}=this.view,e=n.field(Dt);for(let t of e.active)t.state==1&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t)}startQuery(n){let{state:e}=this.view,t=vi(e),i=new ch(e,t,n.explicitPos==t),r=new $$(n,i);this.running.push(r),Promise.resolve(n.source(i)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:Is.of(null)}),cn(this.view.state,s)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ft).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(ft);for(let i=0;io.source==r.active.source);if(s&&s.state==1)if(r.done==null){let o=new xt(r.active.source,0);for(let l of r.updates)o=o.update(l,t);o.state!=1&&e.push(o)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:z0.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(Dt,!1);if(e&&e.tooltip&&this.view.state.facet(ft).closeOnBlur){let t=e.open&&MO(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&this.view.dispatch({effects:Is.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:uh.of(!1)}),20),this.composing=0}}}),N0=ee.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Q${constructor(e,t,i,r){this.field=e,this.line=t,this.from=i,this.to=r}}class hh{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,Ot.TrackDel),i=e.mapPos(this.to,1,Ot.TrackDel);return t==null||i==null?null:new hh(this.field,t,i)}}class dh{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],r=[t],s=e.doc.lineAt(t),o=/^\s*/.exec(s.text)[0];for(let a of this.lines){if(i.length){let c=o,u=/^\t*/.exec(a)[0].length;for(let h=0;hnew hh(a.field,r[a.line]+a.from,r[a.line]+a.to));return{text:i,ranges:l}}static parse(e){let t=[],i=[],r=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let l=s[1]?+s[1]:null,a=s[2]||s[3]||"",c=-1;for(let u=0;u=c&&h.field++}r.push(new Q$(c,i.length,s.index,s.index+a.length)),o=o.slice(0,s.index)+a+o.slice(s.index+s[0].length)}for(let l;l=/\\([{}])/.exec(o);){o=o.slice(0,l.index)+l[1]+o.slice(l.index+l[0].length);for(let a of r)a.line==i.length&&a.from>l.index&&(a.from--,a.to--)}i.push(o)}return new dh(i,r)}}let A$=Ce.widget({widget:new class extends Ui{toDOM(){let n=document.createElement("span");return n.className="cm-snippetFieldPosition",n}ignoreEvent(){return!1}}}),T$=Ce.mark({class:"cm-snippetField"});class jr{constructor(e,t){this.ranges=e,this.active=t,this.deco=Ce.set(e.map(i=>(i.from==i.to?A$:T$).range(i.from,i.to)))}map(e){let t=[];for(let i of this.ranges){let r=i.map(e);if(!r)return null;t.push(r)}return new jr(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(i=>i.field==this.active&&i.from<=t.from&&i.to>=t.to))}}const lo=we.define({map(n,e){return n&&n.map(e)}}),E$=we.define(),Ls=In.define({create(){return null},update(n,e){for(let t of e.effects){if(t.is(lo))return t.value;if(t.is(E$)&&n)return new jr(n.ranges,t.value)}return n&&e.docChanged&&(n=n.map(e.changes)),n&&e.selection&&!n.selectionInsideField(e.selection)&&(n=null),n},provide:n=>ee.decorations.from(n,e=>e?e.deco:Ce.none)});function fh(n,e){return V.create(n.filter(t=>t.field==e).map(t=>V.range(t.from,t.to)))}function Z$(n){let e=dh.parse(n);return(t,i,r,s)=>{let{text:o,ranges:l}=e.instantiate(t.state,r),a={changes:{from:r,to:s,insert:ge.of(o)},scrollIntoView:!0,annotations:i?B0.of(i):void 0};if(l.length&&(a.selection=fh(l,0)),l.length>1){let c=new jr(l,0),u=a.effects=[lo.of(c)];t.state.field(Ls,!1)===void 0&&u.push(we.appendConfig.of([Ls,V$,q$,N0]))}t.dispatch(t.state.update(a))}}function F0(n){return({state:e,dispatch:t})=>{let i=e.field(Ls,!1);if(!i||n<0&&i.active==0)return!1;let r=i.active+n,s=n>0&&!i.ranges.some(o=>o.field==r+n);return t(e.update({selection:fh(i.ranges,r),effects:lo.of(s?null:new jr(i.ranges,r)),scrollIntoView:!0})),!0}}const R$=({state:n,dispatch:e})=>n.field(Ls,!1)?(e(n.update({effects:lo.of(null)})),!0):!1,D$=F0(1),I$=F0(-1),L$=[{key:"Tab",run:D$,shift:I$},{key:"Escape",run:R$}],rp=J.define({combine(n){return n.length?n[0]:L$}}),V$=Gi.highest(qr.compute([rp],n=>n.facet(rp)));function kt(n,e){return Object.assign(Object.assign({},e),{apply:Z$(n)})}const q$=ee.domEventHandlers({mousedown(n,e){let t=e.state.field(Ls,!1),i;if(!t||(i=e.posAtCoords({x:n.clientX,y:n.clientY}))==null)return!1;let r=t.ranges.find(s=>s.from<=i&&s.to>=i);return!r||r.field==t.active?!1:(e.dispatch({selection:fh(t.ranges,r.field),effects:lo.of(t.ranges.some(s=>s.field>r.field)?new jr(t.ranges,r.field):null),scrollIntoView:!0}),!0)}}),G0=new class extends Wi{};G0.startSide=1;G0.endSide=-1;function M$(n={}){return[Dt,ft.of(n),_$,W$,N0]}const X$=[{key:"Ctrl-Space",run:w$},{key:"Escape",run:x$},{key:"ArrowDown",run:Do(!0)},{key:"ArrowUp",run:Do(!1)},{key:"PageDown",run:Do(!0,"page")},{key:"PageUp",run:Do(!1,"page")},{key:"Enter",run:S$}],W$=Gi.highest(qr.computeN([ft],n=>n.facet(ft).defaultKeymap?[X$]:[])),B$=(()=>[YS(),sx(),LS(),th(Vw,{fallback:!0}),qr.of([...r$,...px])])();function I(n){return new Zr(nh.define(n))}function ti(n){return T(()=>import("./index-4141977f.js"),["assets/index-4141977f.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(e=>e.sql({dialect:e[n]}))}const z$=[A.of({name:"C",extensions:["c","h","ino"],load(){return T(()=>import("./index-f870a73c.js"),["assets/index-f870a73c.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.cpp())}}),A.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return T(()=>import("./index-f870a73c.js"),["assets/index-f870a73c.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.cpp())}}),A.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return ti("Cassandra")}}),A.of({name:"CSS",extensions:["css"],load(){return T(()=>Promise.resolve().then(()=>LC),void 0).then(n=>n.css())}}),A.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return T(()=>Promise.resolve().then(()=>w_),void 0).then(n=>n.html())}}),A.of({name:"Java",extensions:["java"],load(){return T(()=>import("./index-9c442895.js"),["assets/index-9c442895.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.java())}}),A.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return T(()=>Promise.resolve().then(()=>Vo),void 0).then(n=>n.javascript())}}),A.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return T(()=>import("./index-4c6c0d24.js"),["assets/index-4c6c0d24.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.json())}}),A.of({name:"JSX",extensions:["jsx"],load(){return T(()=>Promise.resolve().then(()=>Vo),void 0).then(n=>n.javascript({jsx:!0}))}}),A.of({name:"LESS",extensions:["less"],load(){return T(()=>import("./index-6b5cec7f.js"),["assets/index-6b5cec7f.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.less())}}),A.of({name:"MariaDB SQL",load(){return ti("MariaSQL")}}),A.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return T(()=>Promise.resolve().then(()=>T_),void 0).then(n=>n.markdown())}}),A.of({name:"MS SQL",load(){return ti("MSSQL")}}),A.of({name:"MySQL",load(){return ti("MySQL")}}),A.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return T(()=>import("./index-2bbf4953.js"),["assets/index-2bbf4953.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.php())}}),A.of({name:"PLSQL",extensions:["pls"],load(){return ti("PLSQL")}}),A.of({name:"PostgreSQL",load(){return ti("PostgreSQL")}}),A.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return T(()=>import("./index-9d2f8ccc.js"),["assets/index-9d2f8ccc.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.python())}}),A.of({name:"Rust",extensions:["rs"],load(){return T(()=>import("./index-0f3cbc5a.js"),["assets/index-0f3cbc5a.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.rust())}}),A.of({name:"Sass",extensions:["sass"],load(){return T(()=>import("./index-fd458b62.js"),["assets/index-fd458b62.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.sass({indented:!0}))}}),A.of({name:"SCSS",extensions:["scss"],load(){return T(()=>import("./index-fd458b62.js"),["assets/index-fd458b62.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.sass())}}),A.of({name:"SQL",extensions:["sql"],load(){return ti("StandardSQL")}}),A.of({name:"SQLite",load(){return ti("SQLite")}}),A.of({name:"TSX",extensions:["tsx"],load(){return T(()=>Promise.resolve().then(()=>Vo),void 0).then(n=>n.javascript({jsx:!0,typescript:!0}))}}),A.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load(){return T(()=>Promise.resolve().then(()=>Vo),void 0).then(n=>n.javascript({typescript:!0}))}}),A.of({name:"WebAssembly",extensions:["wat","wast"],load(){return T(()=>import("./index-fec11b86.js"),["assets/index-fec11b86.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.wast())}}),A.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return T(()=>import("./index-5add8869.js"),["assets/index-5add8869.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.xml())}}),A.of({name:"APL",extensions:["dyalog","apl"],load(){return T(()=>import("./apl-f73da2d7.js"),[]).then(n=>I(n.apl))}}),A.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return T(()=>import("./asciiarmor-e7973ceb.js"),[]).then(n=>I(n.asciiArmor))}}),A.of({name:"ASN.1",extensions:["asn","asn1"],load(){return T(()=>import("./asn1-f9c290f0.js"),[]).then(n=>I(n.asn1({})))}}),A.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return T(()=>import("./asterisk-9c249b4c.js"),[]).then(n=>I(n.asterisk))}}),A.of({name:"Brainfuck",extensions:["b","bf"],load(){return T(()=>import("./brainfuck-637b9bf0.js"),[]).then(n=>I(n.brainfuck))}}),A.of({name:"Cobol",extensions:["cob","cpy"],load(){return T(()=>import("./cobol-3c0e8dcf.js"),[]).then(n=>I(n.cobol))}}),A.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.csharp))}}),A.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return T(()=>import("./clojure-46c215dd.js"),[]).then(n=>I(n.clojure))}}),A.of({name:"ClojureScript",extensions:["cljs"],load(){return T(()=>import("./clojure-46c215dd.js"),[]).then(n=>I(n.clojure))}}),A.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return T(()=>import("./css-ae0ae1d0.js"),[]).then(n=>I(n.gss))}}),A.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return T(()=>import("./cmake-f314e514.js"),[]).then(n=>I(n.cmake))}}),A.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return T(()=>import("./coffeescript-cf6fb77c.js"),[]).then(n=>I(n.coffeeScript))}}),A.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return T(()=>import("./commonlisp-0ea12945.js"),[]).then(n=>I(n.commonLisp))}}),A.of({name:"Cypher",extensions:["cyp","cypher"],load(){return T(()=>import("./cypher-236a65ad.js"),[]).then(n=>I(n.cypher))}}),A.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return T(()=>import("./python-fa45e8d1.js"),[]).then(n=>I(n.cython))}}),A.of({name:"Crystal",extensions:["cr"],load(){return T(()=>import("./crystal-594a913c.js"),[]).then(n=>I(n.crystal))}}),A.of({name:"D",extensions:["d"],load(){return T(()=>import("./d-76ab4361.js"),[]).then(n=>I(n.d))}}),A.of({name:"Dart",extensions:["dart"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.dart))}}),A.of({name:"diff",extensions:["diff","patch"],load(){return T(()=>import("./diff-1bf42f34.js"),[]).then(n=>I(n.diff))}}),A.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return T(()=>import("./dockerfile-c8a8b9da.js"),["assets/dockerfile-c8a8b9da.js","assets/simple-mode-851e42ff.js"]).then(n=>I(n.dockerFile))}}),A.of({name:"DTD",extensions:["dtd"],load(){return T(()=>import("./dtd-8d673f3f.js"),[]).then(n=>I(n.dtd))}}),A.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return T(()=>import("./dylan-94e68d48.js"),[]).then(n=>I(n.dylan))}}),A.of({name:"EBNF",load(){return T(()=>import("./ebnf-9a58f677.js"),[]).then(n=>I(n.ebnf))}}),A.of({name:"ECL",extensions:["ecl"],load(){return T(()=>import("./ecl-8c848bde.js"),[]).then(n=>I(n.ecl))}}),A.of({name:"edn",extensions:["edn"],load(){return T(()=>import("./clojure-46c215dd.js"),[]).then(n=>I(n.clojure))}}),A.of({name:"Eiffel",extensions:["e"],load(){return T(()=>import("./eiffel-c812667a.js"),[]).then(n=>I(n.eiffel))}}),A.of({name:"Elm",extensions:["elm"],load(){return T(()=>import("./elm-389625db.js"),[]).then(n=>I(n.elm))}}),A.of({name:"Erlang",extensions:["erl"],load(){return T(()=>import("./erlang-72724d5c.js"),[]).then(n=>I(n.erlang))}}),A.of({name:"Esper",load(){return T(()=>import("./sql-62feda9f.js"),[]).then(n=>I(n.esper))}}),A.of({name:"Factor",extensions:["factor"],load(){return T(()=>import("./factor-7bfcb4fc.js"),["assets/factor-7bfcb4fc.js","assets/simple-mode-851e42ff.js"]).then(n=>I(n.factor))}}),A.of({name:"FCL",load(){return T(()=>import("./fcl-d5e95185.js"),[]).then(n=>I(n.fcl))}}),A.of({name:"Forth",extensions:["forth","fth","4th"],load(){return T(()=>import("./forth-a6c07be1.js"),[]).then(n=>I(n.forth))}}),A.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return T(()=>import("./fortran-b746f455.js"),[]).then(n=>I(n.fortran))}}),A.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return T(()=>import("./mllike-1f866598.js"),[]).then(n=>I(n.fSharp))}}),A.of({name:"Gas",extensions:["s"],load(){return T(()=>import("./gas-a519128b.js"),[]).then(n=>I(n.gas))}}),A.of({name:"Gherkin",extensions:["feature"],load(){return T(()=>import("./gherkin-0efe02ac.js"),[]).then(n=>I(n.gherkin))}}),A.of({name:"Go",extensions:["go"],load(){return T(()=>import("./go-8a088acb.js"),[]).then(n=>I(n.go))}}),A.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return T(()=>import("./groovy-4592a472.js"),[]).then(n=>I(n.groovy))}}),A.of({name:"Haskell",extensions:["hs"],load(){return T(()=>import("./haskell-b620645c.js"),[]).then(n=>I(n.haskell))}}),A.of({name:"Haxe",extensions:["hx"],load(){return T(()=>import("./haxe-7215664e.js"),[]).then(n=>I(n.haxe))}}),A.of({name:"HXML",extensions:["hxml"],load(){return T(()=>import("./haxe-7215664e.js"),[]).then(n=>I(n.hxml))}}),A.of({name:"HTTP",load(){return T(()=>import("./http-e091c18d.js"),[]).then(n=>I(n.http))}}),A.of({name:"IDL",extensions:["pro"],load(){return T(()=>import("./idl-91cb7788.js"),[]).then(n=>I(n.idl))}}),A.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return T(()=>import("./javascript-da64953c.js"),[]).then(n=>I(n.jsonld))}}),A.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load(){return T(()=>import("./jinja2-580c43a7.js"),[]).then(n=>I(n.jinja2))}}),A.of({name:"Julia",extensions:["jl"],load(){return T(()=>import("./julia-2f39a740.js"),[]).then(n=>I(n.julia))}}),A.of({name:"Kotlin",extensions:["kt"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.kotlin))}}),A.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return T(()=>import("./livescript-a3318e59.js"),[]).then(n=>I(n.liveScript))}}),A.of({name:"Lua",extensions:["lua"],load(){return T(()=>import("./lua-ee237842.js"),[]).then(n=>I(n.lua))}}),A.of({name:"mIRC",extensions:["mrc"],load(){return T(()=>import("./mirc-c043bc0a.js"),[]).then(n=>I(n.mirc))}}),A.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return T(()=>import("./mathematica-4db1ec63.js"),[]).then(n=>I(n.mathematica))}}),A.of({name:"Modelica",extensions:["mo"],load(){return T(()=>import("./modelica-c19c47b8.js"),[]).then(n=>I(n.modelica))}}),A.of({name:"MUMPS",extensions:["mps"],load(){return T(()=>import("./mumps-82310ef4.js"),[]).then(n=>I(n.mumps))}}),A.of({name:"Mbox",extensions:["mbox"],load(){return T(()=>import("./mbox-b40e52ca.js"),[]).then(n=>I(n.mbox))}}),A.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return T(()=>import("./nginx-0992a7c8.js"),[]).then(n=>I(n.nginx))}}),A.of({name:"NSIS",extensions:["nsh","nsi"],load(){return T(()=>import("./nsis-419655c7.js"),["assets/nsis-419655c7.js","assets/simple-mode-851e42ff.js"]).then(n=>I(n.nsis))}}),A.of({name:"NTriples",extensions:["nt","nq"],load(){return T(()=>import("./ntriples-8490b09b.js"),[]).then(n=>I(n.ntriples))}}),A.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.objectiveC))}}),A.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.objectiveCpp))}}),A.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return T(()=>import("./mllike-1f866598.js"),[]).then(n=>I(n.oCaml))}}),A.of({name:"Octave",extensions:["m"],load(){return T(()=>import("./octave-3f516c2f.js"),[]).then(n=>I(n.octave))}}),A.of({name:"Oz",extensions:["oz"],load(){return T(()=>import("./oz-a640e05c.js"),[]).then(n=>I(n.oz))}}),A.of({name:"Pascal",extensions:["p","pas"],load(){return T(()=>import("./pascal-bcac1c04.js"),[]).then(n=>I(n.pascal))}}),A.of({name:"Perl",extensions:["pl","pm"],load(){return T(()=>import("./perl-a9455719.js"),[]).then(n=>I(n.perl))}}),A.of({name:"Pig",extensions:["pig"],load(){return T(()=>import("./pig-3510ca5f.js"),[]).then(n=>I(n.pig))}}),A.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return T(()=>import("./powershell-c2c54630.js"),[]).then(n=>I(n.powerShell))}}),A.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return T(()=>import("./properties-aba123c1.js"),[]).then(n=>I(n.properties))}}),A.of({name:"ProtoBuf",extensions:["proto"],load(){return T(()=>import("./protobuf-1713bf80.js"),[]).then(n=>I(n.protobuf))}}),A.of({name:"Puppet",extensions:["pp"],load(){return T(()=>import("./puppet-3229bfe4.js"),[]).then(n=>I(n.puppet))}}),A.of({name:"Q",extensions:["q"],load(){return T(()=>import("./q-887a0cfa.js"),[]).then(n=>I(n.q))}}),A.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return T(()=>import("./r-3ca97919.js"),[]).then(n=>I(n.r))}}),A.of({name:"RPM Changes",load(){return T(()=>import("./rpm-aa81b362.js"),[]).then(n=>I(n.rpmChanges))}}),A.of({name:"RPM Spec",extensions:["spec"],load(){return T(()=>import("./rpm-aa81b362.js"),[]).then(n=>I(n.rpmSpec))}}),A.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return T(()=>import("./ruby-e88f1f8d.js"),[]).then(n=>I(n.ruby))}}),A.of({name:"SAS",extensions:["sas"],load(){return T(()=>import("./sas-4096b960.js"),[]).then(n=>I(n.sas))}}),A.of({name:"Scala",extensions:["scala"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.scala))}}),A.of({name:"Scheme",extensions:["scm","ss"],load(){return T(()=>import("./scheme-ca3e6863.js"),[]).then(n=>I(n.scheme))}}),A.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return T(()=>import("./shell-61e14131.js"),[]).then(n=>I(n.shell))}}),A.of({name:"Sieve",extensions:["siv","sieve"],load(){return T(()=>import("./sieve-4b1eb6fb.js"),[]).then(n=>I(n.sieve))}}),A.of({name:"Smalltalk",extensions:["st"],load(){return T(()=>import("./smalltalk-b41561ee.js"),[]).then(n=>I(n.smalltalk))}}),A.of({name:"Solr",load(){return T(()=>import("./solr-7928d730.js"),[]).then(n=>I(n.solr))}}),A.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return T(()=>import("./mllike-1f866598.js"),[]).then(n=>I(n.sml))}}),A.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return T(()=>import("./sparql-a1ae2f33.js"),[]).then(n=>I(n.sparql))}}),A.of({name:"Spreadsheet",alias:["excel","formula"],load(){return T(()=>import("./spreadsheet-9f4dc4c6.js"),[]).then(n=>I(n.spreadsheet))}}),A.of({name:"Squirrel",extensions:["nut"],load(){return T(()=>import("./clike-c6a401fb.js"),[]).then(n=>I(n.squirrel))}}),A.of({name:"Stylus",extensions:["styl"],load(){return T(()=>import("./stylus-2d29a832.js"),[]).then(n=>I(n.stylus))}}),A.of({name:"Swift",extensions:["swift"],load(){return T(()=>import("./swift-b6dd686e.js"),[]).then(n=>I(n.swift))}}),A.of({name:"sTeX",load(){return T(()=>import("./stex-611747c4.js"),[]).then(n=>I(n.stex))}}),A.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return T(()=>import("./stex-611747c4.js"),[]).then(n=>I(n.stex))}}),A.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return T(()=>import("./verilog-701759f4.js"),[]).then(n=>I(n.verilog))}}),A.of({name:"Tcl",extensions:["tcl"],load(){return T(()=>import("./tcl-9a9d281f.js"),[]).then(n=>I(n.tcl))}}),A.of({name:"Textile",extensions:["textile"],load(){return T(()=>import("./textile-27197230.js"),[]).then(n=>I(n.textile))}}),A.of({name:"TiddlyWiki",load(){return T(()=>import("./tiddlywiki-053c4b39.js"),[]).then(n=>I(n.tiddlyWiki))}}),A.of({name:"Tiki wiki",load(){return T(()=>import("./tiki-f8970e14.js"),[]).then(n=>I(n.tiki))}}),A.of({name:"TOML",extensions:["toml"],load(){return T(()=>import("./toml-fed73c05.js"),[]).then(n=>I(n.toml))}}),A.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return T(()=>import("./troff-1c50c70f.js"),[]).then(n=>I(n.troff))}}),A.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return T(()=>import("./ttcn-a4846d83.js"),[]).then(n=>I(n.ttcn))}}),A.of({name:"TTCN_CFG",extensions:["cfg"],load(){return T(()=>import("./ttcn-cfg-0c96bcc1.js"),[]).then(n=>I(n.ttcnCfg))}}),A.of({name:"Turtle",extensions:["ttl"],load(){return T(()=>import("./turtle-b550492d.js"),[]).then(n=>I(n.turtle))}}),A.of({name:"Web IDL",extensions:["webidl"],load(){return T(()=>import("./webidl-beade871.js"),[]).then(n=>I(n.webIDL))}}),A.of({name:"VB.NET",extensions:["vb"],load(){return T(()=>import("./vb-e9655ff4.js"),[]).then(n=>I(n.vb))}}),A.of({name:"VBScript",extensions:["vbs"],load(){return T(()=>import("./vbscript-e62417ba.js"),[]).then(n=>I(n.vbScript))}}),A.of({name:"Velocity",extensions:["vtl"],load(){return T(()=>import("./velocity-5bdd1b6a.js"),[]).then(n=>I(n.velocity))}}),A.of({name:"Verilog",extensions:["v"],load(){return T(()=>import("./verilog-701759f4.js"),[]).then(n=>I(n.verilog))}}),A.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return T(()=>import("./vhdl-288f0dde.js"),[]).then(n=>I(n.vhdl))}}),A.of({name:"XQuery",extensions:["xy","xquery"],load(){return T(()=>import("./xquery-f004ff15.js"),[]).then(n=>I(n.xQuery))}}),A.of({name:"Yacas",extensions:["ys"],load(){return T(()=>import("./yacas-d031e2ab.js"),[]).then(n=>I(n.yacas))}}),A.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return T(()=>import("./yaml-95012b83.js"),[]).then(n=>I(n.yaml))}}),A.of({name:"Z80",extensions:["z80"],load(){return T(()=>import("./z80-bb7f2654.js"),[]).then(n=>I(n.z80))}}),A.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return T(()=>import("./mscgen-96577242.js"),[]).then(n=>I(n.mscgen))}}),A.of({name:"Xù",extensions:["xu"],load(){return T(()=>import("./mscgen-96577242.js"),[]).then(n=>I(n.xu))}}),A.of({name:"MsGenny",extensions:["msgenny"],load(){return T(()=>import("./mscgen-96577242.js"),[]).then(n=>I(n.msgenny))}}),A.of({name:"Vue",extensions:["vue"],load(){return T(()=>import("./index-547495c1.js"),["assets/index-547495c1.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.vue())}}),A.of({name:"Angular Template",load(){return T(()=>import("./index-56164c88.js"),["assets/index-56164c88.js","assets/index-b1080ed6.js","assets/index-2f9def03.css","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css"]).then(n=>n.angular())}})];class Pl{static create(e,t,i,r,s){let o=r+(r<<8)+e+(t<<4)|0;return new Pl(e,t,i,o,s,[],[])}constructor(e,t,i,r,s,o,l){this.type=e,this.value=t,this.from=i,this.hash=r,this.end=s,this.children=o,this.positions=l,this.hashProp=[[ie.contextHash,r]]}addChild(e,t){e.prop(ie.contextHash)!=this.hash&&(e=new ue(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let i=this.children.length-1;return i>=0&&(t=Math.max(t,this.positions[i]+this.children[i].length+this.from)),new ue(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(r,s,o)=>new ue(Ge.none,r,s,o,this.hashProp)})}}var W;(function(n){n[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.Autolink=33]="Autolink",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel",n[n.URL=44]="URL"})(W||(W={}));class j${constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class Y${constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return Ss(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,i=0){for(let r=t;r=e.stack[t.depth+1].value+t.baseIndent)return!0;if(t.indent>=t.baseIndent+4)return!1;let i=(n.type==W.OrderedList?gh:mh)(t,e,!1);return i>0&&(n.type!=W.BulletList||ph(t,e,!1)<0)&&t.text.charCodeAt(t.pos+i-1)==n.value}const U0={[W.Blockquote](n,e,t){return t.next!=62?!1:(t.markers.push(de(W.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1)),t.moveBase(t.pos+(Kt(t.text.charCodeAt(t.pos+1))?2:1)),n.end=e.lineStart+t.text.length,!0)},[W.ListItem](n,e,t){return t.indent-1?!1:(t.moveBaseColumn(t.baseIndent+n.value),!0)},[W.OrderedList]:sp,[W.BulletList]:sp,[W.Document](){return!0}};function Kt(n){return n==32||n==9||n==10||n==13}function Ss(n,e=0){for(;et&&Kt(n.charCodeAt(e-1));)e--;return e}function H0(n){if(n.next!=96&&n.next!=126)return-1;let e=n.pos+1;for(;e-1&&n.depth==e.stack.length||i<3?-1:1}function J0(n,e){for(let t=n.stack.length-1;t>=0;t--)if(n.stack[t].type==e)return!0;return!1}function mh(n,e,t){return(n.next==45||n.next==43||n.next==42)&&(n.pos==n.text.length-1||Kt(n.text.charCodeAt(n.pos+1)))&&(!t||J0(e,W.BulletList)||n.skipSpace(n.pos+2)=48&&r<=57;){i++;if(i==n.text.length)return-1;r=n.text.charCodeAt(i)}return i==n.pos||i>n.pos+9||r!=46&&r!=41||in.pos+1||n.next!=49)?-1:i+1-n.pos}function eb(n){if(n.next!=35)return-1;let e=n.pos+1;for(;e6?-1:t}function tb(n){if(n.next!=45&&n.next!=61||n.indent>=n.baseIndent+4)return-1;let e=n.pos+1;for(;e/,ib=/\?>/,cu=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,ib=/\?>/,cu=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*|",wle="<[?][\\s\\S]*?[?]>",xle="]*>",$le="",Ple=new RegExp("^(?:"+kv+"|"+Sv+"|"+Sle+"|"+wle+"|"+xle+"|"+$le+")"),Cle=new RegExp("^(?:"+kv+"|"+Sv+")");da.HTML_TAG_RE=Ple;da.HTML_OPEN_CLOSE_TAG_RE=Cle;var _le=mle,Qle=da.HTML_OPEN_CLOSE_TAG_RE,ir=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Qle.source+"\\s*$"),/^$/,!1]],Ale=function(e,t,i,r){var s,o,l,a,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(a=e.src.slice(c,u),s=0;s=4||(s=e.src.charCodeAt(c),s!==35||c>=u))return!1;for(o=1,s=e.src.charCodeAt(++c);s===35&&c6||cc&&mm(e.src.charCodeAt(l-1))&&(u=l),e.line=t+1,a=e.push("heading_open","h"+String(o),1),a.markup="########".slice(0,o),a.map=[t,e.line],a=e.push("inline","",0),a.content=e.src.slice(c,u).trim(),a.map=[t,e.line],a.children=[],a=e.push("heading_close","h"+String(o),-1),a.markup="########".slice(0,o)),!0)},Ele=function(e,t,i){var r,s,o,l,a,c,u,h,d,f=t+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f],u=e.eMarks[f],c=u)))){h=d===61?1:2;break}if(!(e.sCount[f]<0)){for(s=!1,o=0,l=m.length;o3)&&!(e.sCount[u]<0)){for(s=!1,o=0,l=h.length;o0&&this.level++,this.tokens.push(i),i};qn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};qn.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!fa(this.src.charCodeAt(--e)))return e+1;return e};qn.prototype.skipChars=function(e,t){for(var i=this.src.length;ei;)if(t!==this.src.charCodeAt(--e))return e+1;return e};qn.prototype.getLines=function(e,t,i,r){var s,o,l,a,c,u,h,d=e;if(e>=t)return"";for(u=new Array(t-e),s=0;di?u[s]=new Array(o-i+1).join(" ")+this.src.slice(a,c):u[s]=this.src.slice(a,c)}return u.join("")};qn.prototype.Token=wv;var Rle=qn,Dle=Qh,Bo=[["table",rle,["paragraph","reference"]],["code",sle],["fence",ole,["paragraph","reference","blockquote","list"]],["blockquote",ale,["paragraph","reference","blockquote","list"]],["hr",ule,["paragraph","reference","blockquote","list"]],["list",dle,["paragraph","reference","blockquote"]],["reference",ple],["html_block",Ale,["paragraph","reference","blockquote"]],["heading",Tle,["paragraph","reference","blockquote"]],["lheading",Ele],["paragraph",Zle]];function pa(){this.ruler=new Dle;for(var n=0;n=t||n.sCount[a]=u){n.line=t;break}for(s=n.line,r=0;r=n.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");n.tight=!c,n.isEmpty(n.line-1)&&(c=!0),a=n.line,a0||(i=e.pos,r=e.posMax,i+3>r)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(s=e.pending.match(qle),!s)||(o=s[1],l=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!l)||(a=l.url,a.length<=o.length)||(a=a.replace(/\*+$/,""),c=e.md.normalizeLink(a),!e.md.validateLink(c))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(a),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=a.length-o.length,!0)},Xle=be.isSpace,Wle=function(e,t){var i,r,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,r=e.posMax,!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(s=i-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){Eh[n.charCodeAt(0)]=1});var zle=function(e,t){var i,r,s,o,l,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==92||(a++,a>=c))return!1;if(i=e.src.charCodeAt(a),i===10){for(t||e.push("hardbreak","br",0),a++;a=55296&&i<=56319&&a+1=56320&&r<=57343&&(o+=e.src[a+1],a++)),s="\\"+o,t||(l=e.push("text_special","",0),i<256&&Eh[i]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"),e.pos=a+1,!0},jle=function(e,t){var i,r,s,o,l,a,c,u,h=e.pos,d=e.src.charCodeAt(h);if(d!==96)return!1;for(i=h,h++,r=e.posMax;h=0;t--)i=e[t],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(r=e[i.end],l=t>0&&e[t-1].end===i.end+1&&e[t-1].marker===i.marker&&e[t-1].token===i.token-1&&e[i.end+1].token===r.token+1,o=String.fromCharCode(i.marker),s=n.tokens[i.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?o+o:o,s.content="",s=n.tokens[r.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?o+o:o,s.content="",l&&(n.tokens[e[t-1].token].content="",n.tokens[e[i.end+1].token].content="",t--))}ga.postProcess=function(e){var t,i=e.tokens_meta,r=e.tokens_meta.length;for(bm(e,e.delimiters),t=0;t=m)return!1;if(O=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?a=c.pos:d="",O=a;a=m||e.src.charCodeAt(a)!==41)&&(b=!0),a++}if(b){if(typeof e.env.references>"u")return!1;if(a=0?s=e.src.slice(O,a++):a=o+1):a=o+1,s||(s=e.src.slice(l,o)),u=e.env.references[Yle(s)],!u)return e.pos=p,!1;d=u.href,f=u.title}return t||(e.pos=l,e.posMax=o,h=e.push("link_open","a",1),h.attrs=i=[["href",d]],f&&i.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=a,e.posMax=m,!0},Fle=be.normalizeReference,lc=be.isSpace,Gle=function(e,t){var i,r,s,o,l,a,c,u,h,d,f,p,m,O="",b=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(c=l+1,c=y)return!1;for(m=c,h=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),h.ok&&(O=e.md.normalizeLink(h.str),e.md.validateLink(O)?c=h.pos:O=""),m=c;c=y||e.src.charCodeAt(c)!==41)return e.pos=b,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c=0?o=e.src.slice(m,c++):c=l+1):c=l+1,o||(o=e.src.slice(a,l)),u=e.env.references[Fle(o)],!u)return e.pos=b,!1;O=u.href,d=u.title}return t||(s=e.src.slice(a,l),e.md.inline.parse(s,e.md,e.env,p=[]),f=e.push("image","img",0),f.attrs=i=[["src",O],["alt",""]],f.children=p,f.content=s,d&&i.push(["title",d])),e.pos=c,e.posMax=y,!0},Ule=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Hle=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Kle=function(e,t){var i,r,s,o,l,a,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(l=e.pos,a=e.posMax;;){if(++c>=a||(o=e.src.charCodeAt(c),o===60))return!1;if(o===62)break}return i=e.src.slice(l+1,c),Hle.test(i)?(r=e.md.normalizeLink(i),e.md.validateLink(r)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(i),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=i.length+2,!0):!1):Ule.test(i)?(r=e.md.normalizeLink("mailto:"+i),e.md.validateLink(r)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(i),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=i.length+2,!0):!1):!1},Jle=da.HTML_TAG_RE;function eae(n){return/^\s]/i.test(n)}function tae(n){return/^<\/a\s*>/i.test(n)}function nae(n){var e=n|32;return e>=97&&e<=122}var iae=function(e,t){var i,r,s,o,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(i=e.src.charCodeAt(l+1),i!==33&&i!==63&&i!==47&&!nae(i))||(r=e.src.slice(l).match(Jle),!r)?!1:(t||(o=e.push("html_inline","",0),o.content=r[0],eae(o.content)&&e.linkLevel++,tae(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},vm=pv,rae=be.has,sae=be.isValidEntityCode,ym=be.fromCodePoint,oae=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,lae=/^&([a-z][a-z0-9]{1,31});/i,aae=function(e,t){var i,r,s,o,l=e.pos,a=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=a)return!1;if(i=e.src.charCodeAt(l+1),i===35){if(s=e.src.slice(l).match(oae),s)return t||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=sae(r)?ym(r):ym(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(lae),s&&rae(vm,s[1]))return t||(o=e.push("text_special","",0),o.content=vm[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1};function km(n){var e,t,i,r,s,o,l,a,c={},u=n.length;if(u){var h=0,d=-2,f=[];for(e=0;es;t-=f[t]+1)if(r=n[t],r.marker===i.marker&&r.open&&r.end<0&&(l=!1,(r.close||i.open)&&(r.length+i.length)%3===0&&(r.length%3!==0||i.length%3!==0)&&(l=!0),!l)){a=t>0&&!n[t-1].open?f[t-1]+1:0,f[e]=e-t+a,f[t]=a,i.open=!1,r.end=e,r.close=!1,o=-1,d=-2;break}o!==-1&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var cae=function(e){var t,i=e.tokens_meta,r=e.tokens_meta.length;for(km(e.delimiters),t=0;t0&&r++,s[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i};ao.prototype.scanDelims=function(n,e){var t=n,i,r,s,o,l,a,c,u,h,d=!0,f=!0,p=this.posMax,m=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,l[i]=n.pos};co.prototype.tokenize=function(n){for(var e,t,i,r=this.ruler.getRules(""),s=r.length,o=n.posMax,l=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};co.prototype.parse=function(n,e,t,i){var r,s,o,l=new this.State(n,e,t,i);for(this.tokenize(l),s=this.ruler2.getRules(""),o=s.length,r=0;r|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),uc}function yu(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n}function Oa(n){return Object.prototype.toString.call(n)}function pae(n){return Oa(n)==="[object String]"}function mae(n){return Oa(n)==="[object Object]"}function gae(n){return Oa(n)==="[object RegExp]"}function Cm(n){return Oa(n)==="[object Function]"}function Oae(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xv={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function bae(n){return Object.keys(n||{}).reduce(function(e,t){return e||xv.hasOwnProperty(t)},!1)}var vae={"http:":{validate:function(n,e,t){var i=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(i)?i.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var i=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(i)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:i.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var i=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(i)?i.match(t.re.mailto)[0].length:0}}},yae="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",kae="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Sae(n){n.__index__=-1,n.__text_cache__=""}function wae(n){return function(e,t){var i=e.slice(t);return n.test(i)?i.match(n)[0].length:0}}function _m(){return function(n,e){e.normalize(n)}}function Rl(n){var e=n.re=fae()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(yae),t.push(e.src_xn),e.src_tlds=t.join("|");function i(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var r=[];n.__compiled__={};function s(l,a){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+a)}Object.keys(n.__schemas__).forEach(function(l){var a=n.__schemas__[l];if(a!==null){var c={validate:null,link:null};if(n.__compiled__[l]=c,mae(a)){gae(a.validate)?c.validate=wae(a.validate):Cm(a.validate)?c.validate=a.validate:s(l,a),Cm(a.normalize)?c.normalize=a.normalize:a.normalize?s(l,a):c.normalize=_m();return}if(pae(a)){r.push(l);return}s(l,a)}}),r.forEach(function(l){n.__compiled__[n.__schemas__[l]]&&(n.__compiled__[l].validate=n.__compiled__[n.__schemas__[l]].validate,n.__compiled__[l].normalize=n.__compiled__[n.__schemas__[l]].normalize)}),n.__compiled__[""]={validate:null,normalize:_m()};var o=Object.keys(n.__compiled__).filter(function(l){return l.length>0&&n.__compiled__[l]}).map(Oae).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),Sae(n)}function xae(n,e){var t=n.__index__,i=n.__last_index__,r=n.__text_cache__.slice(t,i);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=i+e,this.raw=r,this.text=r,this.url=r}function ku(n,e){var t=new xae(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function qt(n,e){if(!(this instanceof qt))return new qt(n,e);e||bae(n)&&(e=n,n={}),this.__opts__=yu({},xv,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=yu({},vae,n),this.__compiled__={},this.__tlds__=kae,this.__tlds_replaced__=!1,this.re={},Rl(this)}qt.prototype.add=function(e,t){return this.__schemas__[e]=t,Rl(this),this};qt.prototype.set=function(e){return this.__opts__=yu(this.__opts__,e),this};qt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,i,r,s,o,l,a,c,u;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],a.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=l))),this.__index__>=0};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0};qt.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(ku(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)i.push(ku(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null};qt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,ku(this,0)):null};qt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,r,s){return i!==s[r-1]}).reverse(),Rl(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Rl(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var $ae=qt;const Or=2147483647,_n=36,Rh=1,Ws=26,Pae=38,Cae=700,$v=72,Pv=128,Cv="-",_ae=/^xn--/,Qae=/[^\0-\x7F]/,Aae=/[\x2E\u3002\uFF0E\uFF61]/g,Tae={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hc=_n-Rh,Qn=Math.floor,dc=String.fromCharCode;function ui(n){throw new RangeError(Tae[n])}function Eae(n,e){const t=[];let i=n.length;for(;i--;)t[i]=e(n[i]);return t}function _v(n,e){const t=n.split("@");let i="";t.length>1&&(i=t[0]+"@",n=t[1]),n=n.replace(Aae,".");const r=n.split("."),s=Eae(r,e).join(".");return i+s}function Dh(n){const e=[];let t=0;const i=n.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...n),Zae=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:_n},Qm=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},Av=function(n,e,t){let i=0;for(n=t?Qn(n/Cae):n>>1,n+=Qn(n/e);n>hc*Ws>>1;i+=_n)n=Qn(n/hc);return Qn(i+(hc+1)*n/(n+Pae))},Ih=function(n){const e=[],t=n.length;let i=0,r=Pv,s=$v,o=n.lastIndexOf(Cv);o<0&&(o=0);for(let l=0;l=128&&ui("not-basic"),e.push(n.charCodeAt(l));for(let l=o>0?o+1:0;l=t&&ui("invalid-input");const d=Zae(n.charCodeAt(l++));d>=_n&&ui("invalid-input"),d>Qn((Or-i)/u)&&ui("overflow"),i+=d*u;const f=h<=s?Rh:h>=s+Ws?Ws:h-s;if(dQn(Or/p)&&ui("overflow"),u*=p}const c=e.length+1;s=Av(i-a,c,a==0),Qn(i/c)>Or-r&&ui("overflow"),r+=Qn(i/c),i%=c,e.splice(i++,0,r)}return String.fromCodePoint(...e)},Lh=function(n){const e=[];n=Dh(n);const t=n.length;let i=Pv,r=0,s=$v;for(const a of n)a<128&&e.push(dc(a));const o=e.length;let l=o;for(o&&e.push(Cv);l=i&&uQn((Or-r)/c)&&ui("overflow"),r+=(a-i)*c,i=a;for(const u of n)if(uOr&&ui("overflow"),u===i){let h=r;for(let d=_n;;d+=_n){const f=d<=s?Rh:d>=s+Ws?Ws:d-s;if(h=0))try{e.hostname=Zv.toASCII(e.hostname)}catch{}return Ii.encode(Ii.format(e))}function Hae(n){var e=Ii.parse(n,!0);if(e.hostname&&(!e.protocol||Rv.indexOf(e.protocol)>=0))try{e.hostname=Zv.toUnicode(e.hostname)}catch{}return Ii.decode(Ii.format(e),Ii.decode.defaultChars+"%")}function Gt(n,e){if(!(this instanceof Gt))return new Gt(n,e);e||$s.isString(n)||(e=n||{},n="default"),this.inline=new zae,this.block=new Bae,this.core=new Wae,this.renderer=new Xae,this.linkify=new jae,this.validateLink=Gae,this.normalizeLink=Uae,this.normalizeLinkText=Hae,this.utils=$s,this.helpers=$s.assign({},Mae),this.options={},this.configure(n),e&&this.set(e)}Gt.prototype.set=function(n){return $s.assign(this.options,n),this};Gt.prototype.configure=function(n){var e=this,t;if($s.isString(n)&&(t=n,n=Yae[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};Gt.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(r){return t.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Gt.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(r){return t.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Gt.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Gt.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Gt.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Gt.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Gt.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Kae=Gt,Jae=Kae;const ece=Nl(Jae),Am=new Set([!0,!1,"alt","title"]);function Dv(n,e){return(Array.isArray(n)?n:[]).filter(([t])=>t!==e)}function Iv(n,e){n&&n.attrs&&(n.attrs=Dv(n.attrs,e))}function tce(n,e){if(!Am.has(n))throw new TypeError(`figcaption must be one of: ${[...Am]}.`);if(n==="alt")return e.content;const t=e.attrs.find(([i])=>i==="title");return Array.isArray(t)&&t[1]?(Iv(e,"title"),t[1]):void 0}function nce(n,e){e=e||{},n.core.ruler.before("linkify","image_figures",function(t){let i=1;for(let r=1,s=t.tokens.length;ru.match(c)).map(u=>Array.from(u))}if(e.tabindex&&(t.tokens[r-1].attrPush(["tabindex",i]),i++),e.lazy&&(a.attrs.some(([c])=>c==="loading")||a.attrs.push(["loading","lazy"])),e.async&&(a.attrs.some(([c])=>c==="decoding")||a.attrs.push(["decoding","async"])),e.classes&&typeof e.classes=="string"){let c=!1;for(let u=0,h=a.attrs.length;uu==="src");a.attrs.push(["data-src",c[1]]),Iv(a,"src")}}})}var Su=!0,Lv=!1,Vv=!1,ice=function(n,e){e&&(Su=!e.enabled,Lv=!!e.label,Vv=!!e.labelAfter),n.core.ruler.after("inline","github-task-lists",function(t){for(var i=t.tokens,r=2;r=0;i--)if(n[i].level===t)return i;return-1}function sce(n,e){return hce(n[e])&&dce(n[e-1])&&fce(n[e-2])&&pce(n[e])}function oce(n,e){if(n.children.unshift(lce(n,e)),n.children[1].content=n.children[1].content.slice(3),n.content=n.content.slice(3),Lv)if(Vv){n.children.pop();var t="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);n.children[0].content=n.children[0].content.slice(0,-1)+' id="'+t+'">',n.children.push(uce(n.content,t,e))}else n.children.unshift(ace(e)),n.children.push(cce(e))}function lce(n,e){var t=new e("html_inline","",0),i=Su?' disabled="" ':"";return n.content.indexOf("[ ] ")===0?t.content='':(n.content.indexOf("[x] ")===0||n.content.indexOf("[X] ")===0)&&(t.content=''),t}function ace(n){var e=new n("html_inline","",0);return e.content="",e}function uce(n,e,t){var i=new t("html_inline","",0);return i.content='",i.attrs=[{for:e}],i}function hce(n){return n.type==="inline"}function dce(n){return n.type==="paragraph_open"}function fce(n){return n.type==="list_item_open"}function pce(n){return n.content.indexOf("[ ] ")===0||n.content.indexOf("[x] ")===0||n.content.indexOf("[X] ")===0}const mce=Nl(ice),as=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,qv=new Set,gce=(n,e,t,i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(n,e,t,i):console.error(`[${t}] ${e}: ${n}`)},Oce=n=>!qv.has(n),si=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),Mv=n=>si(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?al:null:null;class al extends Array{constructor(e){super(e),this.fill(0)}}var vr;const Zi=class Zi{constructor(e,t){it(this,"heap");it(this,"length");if(!k(Zi,vr))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){const t=Mv(e);if(!t)return[];te(Zi,vr,!0);const i=new Zi(e,t);return te(Zi,vr,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};vr=new WeakMap,oe(Zi,vr,!1);let wu=Zi;var en,Tt,vn,tn,yr,He,nn,Ke,Qe,re,gt,Et,ut,rt,rn,ot,Bn,zn,sn,yn,fi,St,zs,$u,Li,jn,js,Zt,Dl,Xv,Vi,kr,Ys,kn,oi,Sn,li,Ns,Pu,Sr,cl,wr,ul,$e,Ve,Fs,Cu,qi,ms;const Xh=class Xh{constructor(e){oe(this,zs);oe(this,Dl);oe(this,kn);oe(this,Sn);oe(this,Ns);oe(this,Sr);oe(this,wr);oe(this,$e);oe(this,Fs);oe(this,qi);oe(this,en,void 0);oe(this,Tt,void 0);oe(this,vn,void 0);oe(this,tn,void 0);oe(this,yr,void 0);it(this,"ttl");it(this,"ttlResolution");it(this,"ttlAutopurge");it(this,"updateAgeOnGet");it(this,"updateAgeOnHas");it(this,"allowStale");it(this,"noDisposeOnSet");it(this,"noUpdateTTL");it(this,"maxEntrySize");it(this,"sizeCalculation");it(this,"noDeleteOnFetchRejection");it(this,"noDeleteOnStaleGet");it(this,"allowStaleOnFetchAbort");it(this,"allowStaleOnFetchRejection");it(this,"ignoreFetchAbort");oe(this,He,void 0);oe(this,nn,void 0);oe(this,Ke,void 0);oe(this,Qe,void 0);oe(this,re,void 0);oe(this,gt,void 0);oe(this,Et,void 0);oe(this,ut,void 0);oe(this,rt,void 0);oe(this,rn,void 0);oe(this,ot,void 0);oe(this,Bn,void 0);oe(this,zn,void 0);oe(this,sn,void 0);oe(this,yn,void 0);oe(this,fi,void 0);oe(this,St,void 0);oe(this,Li,()=>{});oe(this,jn,()=>{});oe(this,js,()=>{});oe(this,Zt,()=>!1);oe(this,Vi,e=>{});oe(this,kr,(e,t,i)=>{});oe(this,Ys,(e,t,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:t=0,ttl:i,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:l,allowStale:a,dispose:c,disposeAfter:u,noDisposeOnSet:h,noUpdateTTL:d,maxSize:f=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:O,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:w,ignoreFetchAbort:$}=e;if(t!==0&&!si(t))throw new TypeError("max option must be a nonnegative integer");const x=t?Mv(t):Array;if(!x)throw new Error("invalid max value: "+t);if(te(this,en,t),te(this,Tt,f),this.maxEntrySize=p||k(this,Tt),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Tt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(O!==void 0&&typeof O!="function")throw new TypeError("fetchMethod must be a function if specified");if(te(this,yr,O),te(this,fi,!!O),te(this,Ke,new Map),te(this,Qe,new Array(t).fill(void 0)),te(this,re,new Array(t).fill(void 0)),te(this,gt,new x(t)),te(this,Et,new x(t)),te(this,ut,0),te(this,rt,0),te(this,rn,wu.create(t)),te(this,He,0),te(this,nn,0),typeof c=="function"&&te(this,vn,c),typeof u=="function"?(te(this,tn,u),te(this,ot,[])):(te(this,tn,void 0),te(this,ot,void 0)),te(this,yn,!!k(this,vn)),te(this,St,!!k(this,tn)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!$,this.maxEntrySize!==0){if(k(this,Tt)!==0&&!si(k(this,Tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!si(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");H(this,Dl,Xv).call(this)}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!l,this.ttlResolution=si(r)||r===0?r:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!si(this.ttl))throw new TypeError("ttl must be a positive integer if specified");H(this,zs,$u).call(this)}if(k(this,en)===0&&this.ttl===0&&k(this,Tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,en)&&!k(this,Tt)){const _="LRU_CACHE_UNBOUNDED";Oce(_)&&(qv.add(_),gce("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,Xh))}}static unsafeExposeInternals(e){return{starts:k(e,zn),ttls:k(e,sn),sizes:k(e,Bn),keyMap:k(e,Ke),keyList:k(e,Qe),valList:k(e,re),next:k(e,gt),prev:k(e,Et),get head(){return k(e,ut)},get tail(){return k(e,rt)},free:k(e,rn),isBackgroundFetch:t=>{var i;return H(i=e,$e,Ve).call(i,t)},backgroundFetch:(t,i,r,s)=>{var o;return H(o=e,wr,ul).call(o,t,i,r,s)},moveToTail:t=>{var i;return H(i=e,qi,ms).call(i,t)},indexes:t=>{var i;return H(i=e,kn,oi).call(i,t)},rindexes:t=>{var i;return H(i=e,Sn,li).call(i,t)},isStale:t=>{var i;return k(i=e,Zt).call(i,t)}}}get max(){return k(this,en)}get maxSize(){return k(this,Tt)}get calculatedSize(){return k(this,nn)}get size(){return k(this,He)}get fetchMethod(){return k(this,yr)}get dispose(){return k(this,vn)}get disposeAfter(){return k(this,tn)}getRemainingTTL(e){return k(this,Ke).has(e)?1/0:0}*entries(){for(const e of H(this,kn,oi).call(this))k(this,re)[e]!==void 0&&k(this,Qe)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield[k(this,Qe)[e],k(this,re)[e]])}*rentries(){for(const e of H(this,Sn,li).call(this))k(this,re)[e]!==void 0&&k(this,Qe)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield[k(this,Qe)[e],k(this,re)[e]])}*keys(){for(const e of H(this,kn,oi).call(this)){const t=k(this,Qe)[e];t!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield t)}}*rkeys(){for(const e of H(this,Sn,li).call(this)){const t=k(this,Qe)[e];t!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield t)}}*values(){for(const e of H(this,kn,oi).call(this))k(this,re)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield k(this,re)[e])}*rvalues(){for(const e of H(this,Sn,li).call(this))k(this,re)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield k(this,re)[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const i of H(this,kn,oi).call(this)){const r=k(this,re)[i],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;if(s!==void 0&&e(s,k(this,Qe)[i],this))return this.get(k(this,Qe)[i],t)}}forEach(e,t=this){for(const i of H(this,kn,oi).call(this)){const r=k(this,re)[i],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,k(this,Qe)[i],this)}}rforEach(e,t=this){for(const i of H(this,Sn,li).call(this)){const r=k(this,re)[i],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,k(this,Qe)[i],this)}}purgeStale(){let e=!1;for(const t of H(this,Sn,li).call(this,{allowStale:!0}))k(this,Zt).call(this,t)&&(this.delete(k(this,Qe)[t]),e=!0);return e}dump(){const e=[];for(const t of H(this,kn,oi).call(this,{allowStale:!0})){const i=k(this,Qe)[t],r=k(this,re)[t],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;if(s===void 0||i===void 0)continue;const o={value:s};if(k(this,sn)&&k(this,zn)){o.ttl=k(this,sn)[t];const l=as.now()-k(this,zn)[t];o.start=Math.floor(Date.now()-l)}k(this,Bn)&&(o.size=k(this,Bn)[t]),e.unshift([i,o])}return e}load(e){this.clear();for(const[t,i]of e){if(i.start){const r=Date.now()-i.start;i.start=as.now()-r}this.set(t,i.value,i)}}set(e,t,i={}){var d,f,p;const{ttl:r=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:a}=i;let{noUpdateTTL:c=this.noUpdateTTL}=i;const u=k(this,Ys).call(this,e,t,i.size||0,l);if(this.maxEntrySize&&u>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(e),this;let h=k(this,He)===0?void 0:k(this,Ke).get(e);if(h===void 0)h=k(this,He)===0?k(this,rt):k(this,rn).length!==0?k(this,rn).pop():k(this,He)===k(this,en)?H(this,Sr,cl).call(this,!1):k(this,He),k(this,Qe)[h]=e,k(this,re)[h]=t,k(this,Ke).set(e,h),k(this,gt)[k(this,rt)]=h,k(this,Et)[h]=k(this,rt),te(this,rt,h),Oo(this,He)._++,k(this,kr).call(this,h,u,a),a&&(a.set="add"),c=!1;else{H(this,qi,ms).call(this,h);const m=k(this,re)[h];if(t!==m){if(k(this,fi)&&H(this,$e,Ve).call(this,m)?m.__abortController.abort(new Error("replaced")):o||(k(this,yn)&&((d=k(this,vn))==null||d.call(this,m,e,"set")),k(this,St)&&((f=k(this,ot))==null||f.push([m,e,"set"]))),k(this,Vi).call(this,h),k(this,kr).call(this,h,u,a),k(this,re)[h]=t,a){a.set="replace";const O=m&&H(this,$e,Ve).call(this,m)?m.__staleWhileFetching:m;O!==void 0&&(a.oldValue=O)}}else a&&(a.set="update")}if(r!==0&&!k(this,sn)&&H(this,zs,$u).call(this),k(this,sn)&&(c||k(this,js).call(this,h,r,s),a&&k(this,jn).call(this,a,h)),!o&&k(this,St)&&k(this,ot)){const m=k(this,ot);let O;for(;O=m==null?void 0:m.shift();)(p=k(this,tn))==null||p.call(this,...O)}return this}pop(){var e;try{for(;k(this,He);){const t=k(this,re)[k(this,ut)];if(H(this,Sr,cl).call(this,!0),H(this,$e,Ve).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(k(this,St)&&k(this,ot)){const t=k(this,ot);let i;for(;i=t==null?void 0:t.shift();)(e=k(this,tn))==null||e.call(this,...i)}}}has(e,t={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=t,s=k(this,Ke).get(e);if(s!==void 0){const o=k(this,re)[s];if(H(this,$e,Ve).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(k(this,Zt).call(this,s))r&&(r.has="stale",k(this,jn).call(this,r,s));else return i&&k(this,Li).call(this,s),r&&(r.has="hit",k(this,jn).call(this,r,s)),!0}else r&&(r.has="miss");return!1}peek(e,t={}){const{allowStale:i=this.allowStale}=t,r=k(this,Ke).get(e);if(r!==void 0&&(i||!k(this,Zt).call(this,r))){const s=k(this,re)[r];return H(this,$e,Ve).call(this,s)?s.__staleWhileFetching:s}}async fetch(e,t={}){const{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:O=!1,status:b,signal:y}=t;if(!k(this,fi))return b&&(b.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:b});const S={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:l,size:a,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:b,signal:y};let w=k(this,Ke).get(e);if(w===void 0){b&&(b.fetch="miss");const $=H(this,wr,ul).call(this,e,w,S,m);return $.__returned=$}else{const $=k(this,re)[w];if(H(this,$e,Ve).call(this,$)){const D=i&&$.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",D&&(b.returnedStale=!0)),D?$.__staleWhileFetching:$.__returned=$}const x=k(this,Zt).call(this,w);if(!O&&!x)return b&&(b.fetch="hit"),H(this,qi,ms).call(this,w),r&&k(this,Li).call(this,w),b&&k(this,jn).call(this,b,w),$;const _=H(this,wr,ul).call(this,e,w,S,m),q=_.__staleWhileFetching!==void 0&&i;return b&&(b.fetch=x?"stale":"refresh",q&&x&&(b.returnedStale=!0)),q?_.__staleWhileFetching:_.__returned=_}}get(e,t={}){const{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=t,l=k(this,Ke).get(e);if(l!==void 0){const a=k(this,re)[l],c=H(this,$e,Ve).call(this,a);return o&&k(this,jn).call(this,o,l),k(this,Zt).call(this,l)?(o&&(o.get="stale"),c?(o&&i&&a.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?a.__staleWhileFetching:void 0):(s||this.delete(e),o&&i&&(o.returnedStale=!0),i?a:void 0)):(o&&(o.get="hit"),c?a.__staleWhileFetching:(H(this,qi,ms).call(this,l),r&&k(this,Li).call(this,l),a))}else o&&(o.get="miss")}delete(e){var i,r,s,o;let t=!1;if(k(this,He)!==0){const l=k(this,Ke).get(e);if(l!==void 0)if(t=!0,k(this,He)===1)this.clear();else{k(this,Vi).call(this,l);const a=k(this,re)[l];H(this,$e,Ve).call(this,a)?a.__abortController.abort(new Error("deleted")):(k(this,yn)||k(this,St))&&(k(this,yn)&&((i=k(this,vn))==null||i.call(this,a,e,"delete")),k(this,St)&&((r=k(this,ot))==null||r.push([a,e,"delete"]))),k(this,Ke).delete(e),k(this,Qe)[l]=void 0,k(this,re)[l]=void 0,l===k(this,rt)?te(this,rt,k(this,Et)[l]):l===k(this,ut)?te(this,ut,k(this,gt)[l]):(k(this,gt)[k(this,Et)[l]]=k(this,gt)[l],k(this,Et)[k(this,gt)[l]]=k(this,Et)[l]),Oo(this,He)._--,k(this,rn).push(l)}}if(k(this,St)&&((s=k(this,ot))!=null&&s.length)){const l=k(this,ot);let a;for(;a=l==null?void 0:l.shift();)(o=k(this,tn))==null||o.call(this,...a)}return t}clear(){var e,t,i;for(const r of H(this,Sn,li).call(this,{allowStale:!0})){const s=k(this,re)[r];if(H(this,$e,Ve).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=k(this,Qe)[r];k(this,yn)&&((e=k(this,vn))==null||e.call(this,s,o,"delete")),k(this,St)&&((t=k(this,ot))==null||t.push([s,o,"delete"]))}}if(k(this,Ke).clear(),k(this,re).fill(void 0),k(this,Qe).fill(void 0),k(this,sn)&&k(this,zn)&&(k(this,sn).fill(0),k(this,zn).fill(0)),k(this,Bn)&&k(this,Bn).fill(0),te(this,ut,0),te(this,rt,0),k(this,rn).length=0,te(this,nn,0),te(this,He,0),k(this,St)&&k(this,ot)){const r=k(this,ot);let s;for(;s=r==null?void 0:r.shift();)(i=k(this,tn))==null||i.call(this,...s)}}};en=new WeakMap,Tt=new WeakMap,vn=new WeakMap,tn=new WeakMap,yr=new WeakMap,He=new WeakMap,nn=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,re=new WeakMap,gt=new WeakMap,Et=new WeakMap,ut=new WeakMap,rt=new WeakMap,rn=new WeakMap,ot=new WeakMap,Bn=new WeakMap,zn=new WeakMap,sn=new WeakMap,yn=new WeakMap,fi=new WeakMap,St=new WeakMap,zs=new WeakSet,$u=function(){const e=new al(k(this,en)),t=new al(k(this,en));te(this,sn,e),te(this,zn,t),te(this,js,(s,o,l=as.now())=>{if(t[s]=o!==0?l:0,e[s]=o,o!==0&&this.ttlAutopurge){const a=setTimeout(()=>{k(this,Zt).call(this,s)&&this.delete(k(this,Qe)[s])},o+1);a.unref&&a.unref()}}),te(this,Li,s=>{t[s]=e[s]!==0?as.now():0}),te(this,jn,(s,o)=>{if(e[o]){const l=e[o],a=t[o];s.ttl=l,s.start=a,s.now=i||r(),s.remainingTTL=s.now+l-a}});let i=0;const r=()=>{const s=as.now();if(this.ttlResolution>0){i=s;const o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{const o=k(this,Ke).get(s);return o===void 0?0:e[o]===0||t[o]===0?1/0:t[o]+e[o]-(i||r())},te(this,Zt,s=>e[s]!==0&&t[s]!==0&&(i||r())-t[s]>e[s])},Li=new WeakMap,jn=new WeakMap,js=new WeakMap,Zt=new WeakMap,Dl=new WeakSet,Xv=function(){const e=new al(k(this,en));te(this,nn,0),te(this,Bn,e),te(this,Vi,t=>{te(this,nn,k(this,nn)-e[t]),e[t]=0}),te(this,Ys,(t,i,r,s)=>{if(H(this,$e,Ve).call(this,i))return 0;if(!si(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(i,t),!si(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r}),te(this,kr,(t,i,r)=>{if(e[t]=i,k(this,Tt)){const s=k(this,Tt)-e[t];for(;k(this,nn)>s;)H(this,Sr,cl).call(this,!0)}te(this,nn,k(this,nn)+e[t]),r&&(r.entrySize=i,r.totalCalculatedSize=k(this,nn))})},Vi=new WeakMap,kr=new WeakMap,Ys=new WeakMap,kn=new WeakSet,oi=function*({allowStale:e=this.allowStale}={}){if(k(this,He))for(let t=k(this,rt);!(!H(this,Ns,Pu).call(this,t)||((e||!k(this,Zt).call(this,t))&&(yield t),t===k(this,ut)));)t=k(this,Et)[t]},Sn=new WeakSet,li=function*({allowStale:e=this.allowStale}={}){if(k(this,He))for(let t=k(this,ut);!(!H(this,Ns,Pu).call(this,t)||((e||!k(this,Zt).call(this,t))&&(yield t),t===k(this,rt)));)t=k(this,gt)[t]},Ns=new WeakSet,Pu=function(e){return e!==void 0&&k(this,Ke).get(k(this,Qe)[e])===e},Sr=new WeakSet,cl=function(e){var s,o;const t=k(this,ut),i=k(this,Qe)[t],r=k(this,re)[t];return k(this,fi)&&H(this,$e,Ve).call(this,r)?r.__abortController.abort(new Error("evicted")):(k(this,yn)||k(this,St))&&(k(this,yn)&&((s=k(this,vn))==null||s.call(this,r,i,"evict")),k(this,St)&&((o=k(this,ot))==null||o.push([r,i,"evict"]))),k(this,Vi).call(this,t),e&&(k(this,Qe)[t]=void 0,k(this,re)[t]=void 0,k(this,rn).push(t)),k(this,He)===1?(te(this,ut,te(this,rt,0)),k(this,rn).length=0):te(this,ut,k(this,gt)[t]),k(this,Ke).delete(i),Oo(this,He)._--,t},wr=new WeakSet,ul=function(e,t,i,r){const s=t===void 0?void 0:k(this,re)[t];if(H(this,$e,Ve).call(this,s))return s;const o=new AbortController,{signal:l}=i;l==null||l.addEventListener("abort",()=>o.abort(l.reason),{signal:o.signal});const a={signal:o.signal,options:i,context:r},c=(m,O=!1)=>{const{aborted:b}=o.signal,y=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(b&&!O?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,y&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),b&&!y&&!O)return h(o.signal.reason);const S=f;return k(this,re)[t]===f&&(m===void 0?S.__staleWhileFetching?k(this,re)[t]=S.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,a.options))),m},u=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),h(m)),h=m=>{const{aborted:O}=o.signal,b=O&&i.allowStaleOnFetchAbort,y=b||i.allowStaleOnFetchRejection,S=y||i.noDeleteOnFetchRejection,w=f;if(k(this,re)[t]===f&&(!S||w.__staleWhileFetching===void 0?this.delete(e):b||(k(this,re)[t]=w.__staleWhileFetching)),y)return i.status&&w.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw m},d=(m,O)=>{var y;const b=(y=k(this,yr))==null?void 0:y.call(this,e,s,a);b&&b instanceof Promise&&b.then(S=>m(S),O),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(),i.allowStaleOnFetchAbort&&(m=S=>c(S,!0)))})};i.status&&(i.status.fetchDispatched=!0);const f=new Promise(d).then(c,u),p=Object.assign(f,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,p,{...a.options,status:void 0}),t=k(this,Ke).get(e)):k(this,re)[t]=p,p},$e=new WeakSet,Ve=function(e){if(!k(this,fi))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController},Fs=new WeakSet,Cu=function(e,t){k(this,Et)[t]=e,k(this,gt)[e]=t},qi=new WeakSet,ms=function(e){e!==k(this,rt)&&(e===k(this,ut)?te(this,ut,k(this,gt)[e]):H(this,Fs,Cu).call(this,k(this,Et)[e],k(this,gt)[e]),H(this,Fs,Cu).call(this,k(this,rt),e),te(this,rt,e))};let xu=Xh;const bce=xu,vce=(n,e)=>{const t=le("editorId"),{noImgZoomIn:i}=n,r=Fl(()=>{const s=document.querySelectorAll(`#${t}-preview img`);s.length!==0&&V_(s,{background:"#00000073"})});De(()=>{!i&&r()}),se([e,ke(n.setting,"preview")],()=>{!i&&r()})},yce=vce,kce=(n,e)=>{if(typeof e[n]=="string")return e[n];const t=``;switch(je.iconfontType){case"svg":return``;default:return t}},Sce=(n,e)=>{const t=le("editorId"),i=le("usedLanguageText"),r=le("customIcon"),s=()=>{document.querySelectorAll(`#${t}-preview pre`).forEach(a=>{var c,u;let h=-1;(c=a.querySelector(".copy-button"))==null||c.remove();const d=((u=i.value.copyCode)==null?void 0:u.text)||"复制代码",f=document.createElement("span");f.setAttribute("class","copy-button"),f.dataset.tips=d,f.innerHTML=kce("copy",r.value),f.addEventListener("click",()=>{var p,m;clearTimeout(h);const O=a.querySelector("code").innerText,b=j_(n.formatCopiedText(O)),y=((p=i.value.copyCode)==null?void 0:p.successTips)||"已复制!",S=((m=i.value.copyCode)==null?void 0:m.failTips)||"已复制!";f.dataset.tips=b?y:S,h=window.setTimeout(()=>{f.dataset.tips=d},1500)}),a.appendChild(f)})},o=()=>{Nt(s)},l=a=>{a&&Nt(s)};se(()=>e.value,o),se(()=>n.setting.preview,l),se(()=>n.setting.htmlPreview,l),se(()=>i.value,s),De(s)},wce=Sce,xce=n=>{var e;const t=(e=je.editorExtensions)==null?void 0:e.highlight,i=t==null?void 0:t.instance,r=le("highlight"),s=ct(i);return De(()=>{if(!n.noHighlight&&!s.value){const o=document.createElement("script");o.src=r.value.js,o.onload=()=>{s.value=window.hljs},o.id=`${P}-hljs`,Xt(o,"hljs");const l=document.createElement("link");l.rel="stylesheet",l.href=r.value.css,l.id=`${P}-hlCss`,Xt(l)}}),se(()=>r.value.css,o=>{Ek(`${P}-hlCss`,"href",o)}),s},$ce=xce,Pce=n=>{const e=le("theme"),{editorExtensions:t,mermaidConfig:i}=je,r=t==null?void 0:t.mermaid,s=ct(r==null?void 0:r.instance),o=ct(-1),l=new bce({max:1e3,ttl:6e5}),a=()=>{const c=s.value;!n.noMermaid&&c&&(c.initialize(i({startOnLoad:!1,theme:e.value==="dark"?"dark":"default"})),o.value=o.value+1)};return se(()=>e.value,()=>{l.clear(),a()}),De(()=>{if(!n.noMermaid&&!(r!=null&&r.instance)){const c=(r==null?void 0:r.js)||Ok;if(/\.mjs/.test(c))T(()=>import(c),[]).then(u=>{s.value=u.default,a()});else{const u=document.createElement("script");u.id=`${P}-mermaid`,u.src=c,u.onload=()=>{s.value=window.mermaid,a()},Xt(u,"mermaid")}}}),{mermaidRef:s,reRenderRef:o,replaceMermaid:()=>{Nt(()=>{if(!n.noMermaid&&s.value){const c=document.querySelectorAll(`div.${P}-mermaid`),u=document.createElement("div");u.style.width=document.body.offsetWidth+"px",u.style.height=document.body.offsetHeight+"px",u.style.position="fixed",u.style.zIndex="-10000",u.style.top="-10000";let h=c.length;h>0&&document.body.appendChild(u),c.forEach(async d=>{let f=l.get(d.innerText);if(!f){const m=Tk(),O=s.value.renderAsync||s.value.render;let b="";try{b=await O(m,d.innerText,u)}catch{}f=await n.sanitizeMermaid(typeof b=="string"?b:b.svg),l.set(d.innerText,f)}const p=document.createElement("p");p.className=`${P}-mermaid`,p.setAttribute("data-processed",""),p.innerHTML=f,d.dataset.line!==void 0&&(p.dataset.line=d.dataset.line),d.replaceWith(p),--h===0&&u.remove()})}})}}},Cce=Pce,_ce=n=>{var e;const t=(e=je.editorExtensions)==null?void 0:e.katex,i=t==null?void 0:t.instance,r=ct(i);return De(()=>{if(!n.noKatex&&!r.value){const s=document.createElement("script");s.src=(t==null?void 0:t.js)||Sd.js,s.onload=()=>{r.value=window.katex},s.id=`${P}-katex`;const o=document.createElement("link");o.rel="stylesheet",o.href=(t==null?void 0:t.css)||Sd.css,o.id=`${P}-katexCss`,Xt(s,"katex"),Xt(o)}}),r},Qce=_ce,Ace=(n,e)=>{const t=n.renderer.rules.fence.bind(n.renderer.rules);n.renderer.rules.fence=(i,r,s,o,l)=>{const a=i[r],c=a.content.trim();if(a.info==="mermaid"){let u;return i[r].map&&i[r].level===0&&(u=i[r].map[0],i[r].attrSet("data-line",String(u))),`
${c}
`}return t(i,r,s,o,l)}},Tce=Ace,Em=(n,e)=>{let t=!0,i=!0;const r=n.posMax,s=e>0?n.src.charCodeAt(e-1):-1,o=e+1<=r?n.src.charCodeAt(e+1):-1;return(s===32||s===9||o>=48&&o<=57)&&(i=!1),(o===32||o===9)&&(t=!1),{can_open:t,can_close:i}},Ece=(n,e)=>{let t,i,r,s;if(n.src[n.pos]!=="$")return!1;if(r=Em(n,n.pos),!r.can_open)return e||(n.pending+="$"),n.pos+=1,!0;const o=n.pos+1;for(t=o;(t=n.src.indexOf("$",t))!==-1;){for(s=t-1;n.src[s]==="\\";)s-=1;if((t-s)%2==1)break;t+=1}return t===-1?(e||(n.pending+="$"),n.pos=o,!0):t-o===0?(e||(n.pending+="$$"),n.pos=o+1,!0):(r=Em(n,t),r.can_close?(e||(i=n.push("math_inline","math",0),i.markup="$",i.content=n.src.slice(o,t)),n.pos=t+1,!0):(e||(n.pending+="$"),n.pos=o,!0))},Zce=(n,e,t,i)=>{let r,s,o,l,a=!1,c=n.bMarks[e]+n.tShift[e],u=n.eMarks[e];if(c+2>u||n.src.slice(c,c+2)!=="$$")return!1;if(c+=2,r=n.src.slice(c,u),i)return!0;for(r.trim().slice(-2)==="$$"&&(r=r.trim().slice(0,-2),a=!0),o=e;!a&&(o++,!(o>=t||(c=n.bMarks[o]+n.tShift[o],u=n.eMarks[o],c=4||f+3>p||(s=e.src.charCodeAt(f),s!==126&&s!==96)||(c=f,f=e.skipChars(f,s),o=f-c,o<3)||(h=e.src.slice(c,f),l=e.src.slice(f,p),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(r)return!0;for(a=t;a++,!(a>=i||(f=c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],f=4)&&(f=e.skipChars(f,s),!(f-c=4||e.src.charCodeAt(D)!==62)return!1;if(r)return!0;for(p=[],m=[],y=[],S=[],x=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",d=t;d=X));d++){if(e.src.charCodeAt(D++)===62&&!C){for(a=e.sCount[d]+1,e.src.charCodeAt(D)===32?(D++,a++,s=!1,w=!0):e.src.charCodeAt(D)===9?(w=!0,(e.bsCount[d]+a)%4===3?(D++,a++,s=!1):s=!0):w=!1,f=a,p.push(e.bMarks[d]),e.bMarks[d]=D;D=X,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(w?1:0),y.push(e.sCount[d]),e.sCount[d]=f-a,S.push(e.tShift[d]),e.tShift[d]=D-e.bMarks[d];continue}if(u)break;for($=!1,l=0,c=x.length;l",_.map=h=[t,0],e.md.block.tokenize(e,t,d),_=e.push("blockquote_close","blockquote",-1),_.markup=">",e.lineMax=q,e.parentType=b,h[1]=e.line,l=0;l=4||(s=e.src.charCodeAt(c++),s!==42&&s!==45&&s!==95))return!1;for(o=1;c=s||(t=n.src.charCodeAt(r++),t<48||t>57))return-1;for(;;){if(r>=s)return-1;if(t=n.src.charCodeAt(r++),t>=48&&t<=57){if(r-i>=10)return-1;continue}if(t===41||t===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[E]-e.listIndent>=4&&e.sCount[E]=e.blkIndent&&(N=!0),(D=pm(e,E))>=0){if(h=!0,Z=e.bMarks[E]+e.tShift[E],b=Number(e.src.slice(Z,D-1)),N&&b!==1)return!1}else if((D=fm(e,E))>=0)h=!1;else return!1;if(N&&e.skipSpaces(D)>=e.eMarks[E])return!1;if(r)return!0;for(O=e.src.charCodeAt(D-1),m=e.tokens.length,h?(R=e.push("ordered_list_open","ol",1),b!==1&&(R.attrs=[["start",b]])):R=e.push("bullet_list_open","ul",1),R.map=p=[E,0],R.markup=String.fromCharCode(O),X=!1,Q=e.md.block.ruler.getRules("list"),$=e.parentType,e.parentType="list";E=y?c=1:c=S-u,c>4&&(c=1),a=u+c,R=e.push("list_item_open","li",1),R.markup=String.fromCharCode(O),R.map=d=[E,0],h&&(R.info=e.src.slice(Z,D-1)),C=e.tight,_=e.tShift[E],x=e.sCount[E],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[E]=o-e.bMarks[E],e.sCount[E]=S,o>=y&&e.isEmpty(E+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,E,i,!0),(!e.tight||X)&&(G=!1),X=e.line-E>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[E]=_,e.sCount[E]=x,e.tight=C,R=e.push("list_item_close","li",-1),R.markup=String.fromCharCode(O),E=e.line,d[1]=E,E>=i||e.sCount[E]=4)break;for(L=!1,l=0,f=Q.length;l=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<_;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===_||e.src.charCodeAt(x+1)!==58)return!1;break}for(a=e.lineMax,S=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";C3)&&!(e.sCount[C]<0)){for(y=!1,u=0,h=S.length;u"u"&&(e.env.references={}),typeof e.env.references[d]>"u"&&(e.env.references[d]={title:w,href:c}),e.parentType=p,e.line=t+$+1),!0)},mle=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],da={},gle="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ole="[^\"'=<>`\\x00-\\x20]+",ble="'[^']*'",vle='"[^"]*"',yle="(?:"+Ole+"|"+ble+"|"+vle+")",kle="(?:\\s+"+gle+"(?:\\s*=\\s*"+yle+")?)",kv="<[A-Za-z][A-Za-z0-9\\-]*"+kle+"*\\s*\\/?>",Sv="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Sle="|",wle="<[?][\\s\\S]*?[?]>",xle="]*>",$le="",Ple=new RegExp("^(?:"+kv+"|"+Sv+"|"+Sle+"|"+wle+"|"+xle+"|"+$le+")"),Cle=new RegExp("^(?:"+kv+"|"+Sv+")");da.HTML_TAG_RE=Ple;da.HTML_OPEN_CLOSE_TAG_RE=Cle;var _le=mle,Qle=da.HTML_OPEN_CLOSE_TAG_RE,ir=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Qle.source+"\\s*$"),/^$/,!1]],Ale=function(e,t,i,r){var s,o,l,a,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(a=e.src.slice(c,u),s=0;s=4||(s=e.src.charCodeAt(c),s!==35||c>=u))return!1;for(o=1,s=e.src.charCodeAt(++c);s===35&&c6||cc&&mm(e.src.charCodeAt(l-1))&&(u=l),e.line=t+1,a=e.push("heading_open","h"+String(o),1),a.markup="########".slice(0,o),a.map=[t,e.line],a=e.push("inline","",0),a.content=e.src.slice(c,u).trim(),a.map=[t,e.line],a.children=[],a=e.push("heading_close","h"+String(o),-1),a.markup="########".slice(0,o)),!0)},Ele=function(e,t,i){var r,s,o,l,a,c,u,h,d,f=t+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f],u=e.eMarks[f],c=u)))){h=d===61?1:2;break}if(!(e.sCount[f]<0)){for(s=!1,o=0,l=m.length;o3)&&!(e.sCount[u]<0)){for(s=!1,o=0,l=h.length;o0&&this.level++,this.tokens.push(i),i};qn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};qn.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!fa(this.src.charCodeAt(--e)))return e+1;return e};qn.prototype.skipChars=function(e,t){for(var i=this.src.length;ei;)if(t!==this.src.charCodeAt(--e))return e+1;return e};qn.prototype.getLines=function(e,t,i,r){var s,o,l,a,c,u,h,d=e;if(e>=t)return"";for(u=new Array(t-e),s=0;di?u[s]=new Array(o-i+1).join(" ")+this.src.slice(a,c):u[s]=this.src.slice(a,c)}return u.join("")};qn.prototype.Token=wv;var Rle=qn,Dle=Qh,Bo=[["table",rle,["paragraph","reference"]],["code",sle],["fence",ole,["paragraph","reference","blockquote","list"]],["blockquote",ale,["paragraph","reference","blockquote","list"]],["hr",ule,["paragraph","reference","blockquote","list"]],["list",dle,["paragraph","reference","blockquote"]],["reference",ple],["html_block",Ale,["paragraph","reference","blockquote"]],["heading",Tle,["paragraph","reference","blockquote"]],["lheading",Ele],["paragraph",Zle]];function pa(){this.ruler=new Dle;for(var n=0;n=t||n.sCount[a]=u){n.line=t;break}for(s=n.line,r=0;r=n.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");n.tight=!c,n.isEmpty(n.line-1)&&(c=!0),a=n.line,a0||(i=e.pos,r=e.posMax,i+3>r)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(s=e.pending.match(qle),!s)||(o=s[1],l=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!l)||(a=l.url,a.length<=o.length)||(a=a.replace(/\*+$/,""),c=e.md.normalizeLink(a),!e.md.validateLink(c))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(a),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=a.length-o.length,!0)},Xle=be.isSpace,Wle=function(e,t){var i,r,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,r=e.posMax,!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(s=i-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(n){Eh[n.charCodeAt(0)]=1});var zle=function(e,t){var i,r,s,o,l,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==92||(a++,a>=c))return!1;if(i=e.src.charCodeAt(a),i===10){for(t||e.push("hardbreak","br",0),a++;a=55296&&i<=56319&&a+1=56320&&r<=57343&&(o+=e.src[a+1],a++)),s="\\"+o,t||(l=e.push("text_special","",0),i<256&&Eh[i]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"),e.pos=a+1,!0},jle=function(e,t){var i,r,s,o,l,a,c,u,h=e.pos,d=e.src.charCodeAt(h);if(d!==96)return!1;for(i=h,h++,r=e.posMax;h=0;t--)i=e[t],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(r=e[i.end],l=t>0&&e[t-1].end===i.end+1&&e[t-1].marker===i.marker&&e[t-1].token===i.token-1&&e[i.end+1].token===r.token+1,o=String.fromCharCode(i.marker),s=n.tokens[i.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?o+o:o,s.content="",s=n.tokens[r.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?o+o:o,s.content="",l&&(n.tokens[e[t-1].token].content="",n.tokens[e[i.end+1].token].content="",t--))}ga.postProcess=function(e){var t,i=e.tokens_meta,r=e.tokens_meta.length;for(bm(e,e.delimiters),t=0;t=m)return!1;if(O=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?a=c.pos:d="",O=a;a=m||e.src.charCodeAt(a)!==41)&&(b=!0),a++}if(b){if(typeof e.env.references>"u")return!1;if(a=0?s=e.src.slice(O,a++):a=o+1):a=o+1,s||(s=e.src.slice(l,o)),u=e.env.references[Yle(s)],!u)return e.pos=p,!1;d=u.href,f=u.title}return t||(e.pos=l,e.posMax=o,h=e.push("link_open","a",1),h.attrs=i=[["href",d]],f&&i.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=a,e.posMax=m,!0},Fle=be.normalizeReference,lc=be.isSpace,Gle=function(e,t){var i,r,s,o,l,a,c,u,h,d,f,p,m,O="",b=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(c=l+1,c=y)return!1;for(m=c,h=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),h.ok&&(O=e.md.normalizeLink(h.str),e.md.validateLink(O)?c=h.pos:O=""),m=c;c=y||e.src.charCodeAt(c)!==41)return e.pos=b,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c=0?o=e.src.slice(m,c++):c=l+1):c=l+1,o||(o=e.src.slice(a,l)),u=e.env.references[Fle(o)],!u)return e.pos=b,!1;O=u.href,d=u.title}return t||(s=e.src.slice(a,l),e.md.inline.parse(s,e.md,e.env,p=[]),f=e.push("image","img",0),f.attrs=i=[["src",O],["alt",""]],f.children=p,f.content=s,d&&i.push(["title",d])),e.pos=c,e.posMax=y,!0},Ule=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Hle=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Kle=function(e,t){var i,r,s,o,l,a,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(l=e.pos,a=e.posMax;;){if(++c>=a||(o=e.src.charCodeAt(c),o===60))return!1;if(o===62)break}return i=e.src.slice(l+1,c),Hle.test(i)?(r=e.md.normalizeLink(i),e.md.validateLink(r)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(i),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=i.length+2,!0):!1):Ule.test(i)?(r=e.md.normalizeLink("mailto:"+i),e.md.validateLink(r)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",r]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(i),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=i.length+2,!0):!1):!1},Jle=da.HTML_TAG_RE;function eae(n){return/^\s]/i.test(n)}function tae(n){return/^<\/a\s*>/i.test(n)}function nae(n){var e=n|32;return e>=97&&e<=122}var iae=function(e,t){var i,r,s,o,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(i=e.src.charCodeAt(l+1),i!==33&&i!==63&&i!==47&&!nae(i))||(r=e.src.slice(l).match(Jle),!r)?!1:(t||(o=e.push("html_inline","",0),o.content=r[0],eae(o.content)&&e.linkLevel++,tae(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},vm=pv,rae=be.has,sae=be.isValidEntityCode,ym=be.fromCodePoint,oae=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,lae=/^&([a-z][a-z0-9]{1,31});/i,aae=function(e,t){var i,r,s,o,l=e.pos,a=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=a)return!1;if(i=e.src.charCodeAt(l+1),i===35){if(s=e.src.slice(l).match(oae),s)return t||(r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=sae(r)?ym(r):ym(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(lae),s&&rae(vm,s[1]))return t||(o=e.push("text_special","",0),o.content=vm[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1};function km(n){var e,t,i,r,s,o,l,a,c={},u=n.length;if(u){var h=0,d=-2,f=[];for(e=0;es;t-=f[t]+1)if(r=n[t],r.marker===i.marker&&r.open&&r.end<0&&(l=!1,(r.close||i.open)&&(r.length+i.length)%3===0&&(r.length%3!==0||i.length%3!==0)&&(l=!0),!l)){a=t>0&&!n[t-1].open?f[t-1]+1:0,f[e]=e-t+a,f[t]=a,i.open=!1,r.end=e,r.close=!1,o=-1,d=-2;break}o!==-1&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var cae=function(e){var t,i=e.tokens_meta,r=e.tokens_meta.length;for(km(e.delimiters),t=0;t0&&r++,s[t].type==="text"&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i};ao.prototype.scanDelims=function(n,e){var t=n,i,r,s,o,l,a,c,u,h,d=!0,f=!0,p=this.posMax,m=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;t=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,l[i]=n.pos};co.prototype.tokenize=function(n){for(var e,t,i,r=this.ruler.getRules(""),s=r.length,o=n.posMax,l=n.md.options.maxNesting;n.pos=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};co.prototype.parse=function(n,e,t,i){var r,s,o,l=new this.State(n,e,t,i);for(this.tokenize(l),s=this.ruler2.getRules(""),o=s.length,r=0;r|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),uc}function yu(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n}function Oa(n){return Object.prototype.toString.call(n)}function pae(n){return Oa(n)==="[object String]"}function mae(n){return Oa(n)==="[object Object]"}function gae(n){return Oa(n)==="[object RegExp]"}function Cm(n){return Oa(n)==="[object Function]"}function Oae(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xv={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function bae(n){return Object.keys(n||{}).reduce(function(e,t){return e||xv.hasOwnProperty(t)},!1)}var vae={"http:":{validate:function(n,e,t){var i=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(i)?i.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var i=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(i)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:i.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var i=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(i)?i.match(t.re.mailto)[0].length:0}}},yae="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",kae="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Sae(n){n.__index__=-1,n.__text_cache__=""}function wae(n){return function(e,t){var i=e.slice(t);return n.test(i)?i.match(n)[0].length:0}}function _m(){return function(n,e){e.normalize(n)}}function Rl(n){var e=n.re=fae()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(yae),t.push(e.src_xn),e.src_tlds=t.join("|");function i(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var r=[];n.__compiled__={};function s(l,a){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+a)}Object.keys(n.__schemas__).forEach(function(l){var a=n.__schemas__[l];if(a!==null){var c={validate:null,link:null};if(n.__compiled__[l]=c,mae(a)){gae(a.validate)?c.validate=wae(a.validate):Cm(a.validate)?c.validate=a.validate:s(l,a),Cm(a.normalize)?c.normalize=a.normalize:a.normalize?s(l,a):c.normalize=_m();return}if(pae(a)){r.push(l);return}s(l,a)}}),r.forEach(function(l){n.__compiled__[n.__schemas__[l]]&&(n.__compiled__[l].validate=n.__compiled__[n.__schemas__[l]].validate,n.__compiled__[l].normalize=n.__compiled__[n.__schemas__[l]].normalize)}),n.__compiled__[""]={validate:null,normalize:_m()};var o=Object.keys(n.__compiled__).filter(function(l){return l.length>0&&n.__compiled__[l]}).map(Oae).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),Sae(n)}function xae(n,e){var t=n.__index__,i=n.__last_index__,r=n.__text_cache__.slice(t,i);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=i+e,this.raw=r,this.text=r,this.url=r}function ku(n,e){var t=new xae(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function qt(n,e){if(!(this instanceof qt))return new qt(n,e);e||bae(n)&&(e=n,n={}),this.__opts__=yu({},xv,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=yu({},vae,n),this.__compiled__={},this.__tlds__=kae,this.__tlds_replaced__=!1,this.re={},Rl(this)}qt.prototype.add=function(e,t){return this.__schemas__[e]=t,Rl(this),this};qt.prototype.set=function(e){return this.__opts__=yu(this.__opts__,e),this};qt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,i,r,s,o,l,a,c,u;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],a.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,l=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=l))),this.__index__>=0};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0};qt.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(ku(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)i.push(ku(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null};qt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,ku(this,0)):null};qt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,r,s){return i!==s[r-1]}).reverse(),Rl(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Rl(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var $ae=qt;const Or=2147483647,_n=36,Rh=1,Ws=26,Pae=38,Cae=700,$v=72,Pv=128,Cv="-",_ae=/^xn--/,Qae=/[^\0-\x7F]/,Aae=/[\x2E\u3002\uFF0E\uFF61]/g,Tae={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hc=_n-Rh,Qn=Math.floor,dc=String.fromCharCode;function ui(n){throw new RangeError(Tae[n])}function Eae(n,e){const t=[];let i=n.length;for(;i--;)t[i]=e(n[i]);return t}function _v(n,e){const t=n.split("@");let i="";t.length>1&&(i=t[0]+"@",n=t[1]),n=n.replace(Aae,".");const r=n.split("."),s=Eae(r,e).join(".");return i+s}function Dh(n){const e=[];let t=0;const i=n.length;for(;t=55296&&r<=56319&&tString.fromCodePoint(...n),Zae=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:_n},Qm=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},Av=function(n,e,t){let i=0;for(n=t?Qn(n/Cae):n>>1,n+=Qn(n/e);n>hc*Ws>>1;i+=_n)n=Qn(n/hc);return Qn(i+(hc+1)*n/(n+Pae))},Ih=function(n){const e=[],t=n.length;let i=0,r=Pv,s=$v,o=n.lastIndexOf(Cv);o<0&&(o=0);for(let l=0;l=128&&ui("not-basic"),e.push(n.charCodeAt(l));for(let l=o>0?o+1:0;l=t&&ui("invalid-input");const d=Zae(n.charCodeAt(l++));d>=_n&&ui("invalid-input"),d>Qn((Or-i)/u)&&ui("overflow"),i+=d*u;const f=h<=s?Rh:h>=s+Ws?Ws:h-s;if(dQn(Or/p)&&ui("overflow"),u*=p}const c=e.length+1;s=Av(i-a,c,a==0),Qn(i/c)>Or-r&&ui("overflow"),r+=Qn(i/c),i%=c,e.splice(i++,0,r)}return String.fromCodePoint(...e)},Lh=function(n){const e=[];n=Dh(n);const t=n.length;let i=Pv,r=0,s=$v;for(const a of n)a<128&&e.push(dc(a));const o=e.length;let l=o;for(o&&e.push(Cv);l=i&&uQn((Or-r)/c)&&ui("overflow"),r+=(a-i)*c,i=a;for(const u of n)if(uOr&&ui("overflow"),u===i){let h=r;for(let d=_n;;d+=_n){const f=d<=s?Rh:d>=s+Ws?Ws:d-s;if(h=0))try{e.hostname=Zv.toASCII(e.hostname)}catch{}return Ii.encode(Ii.format(e))}function Hae(n){var e=Ii.parse(n,!0);if(e.hostname&&(!e.protocol||Rv.indexOf(e.protocol)>=0))try{e.hostname=Zv.toUnicode(e.hostname)}catch{}return Ii.decode(Ii.format(e),Ii.decode.defaultChars+"%")}function Gt(n,e){if(!(this instanceof Gt))return new Gt(n,e);e||$s.isString(n)||(e=n||{},n="default"),this.inline=new zae,this.block=new Bae,this.core=new Wae,this.renderer=new Xae,this.linkify=new jae,this.validateLink=Gae,this.normalizeLink=Uae,this.normalizeLinkText=Hae,this.utils=$s,this.helpers=$s.assign({},Mae),this.options={},this.configure(n),e&&this.set(e)}Gt.prototype.set=function(n){return $s.assign(this.options,n),this};Gt.prototype.configure=function(n){var e=this,t;if($s.isString(n)&&(t=n,n=Yae[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};Gt.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(r){return t.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Gt.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(r){return t.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Gt.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Gt.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Gt.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Gt.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Gt.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Kae=Gt,Jae=Kae;const ece=Nl(Jae),Am=new Set([!0,!1,"alt","title"]);function Dv(n,e){return(Array.isArray(n)?n:[]).filter(([t])=>t!==e)}function Iv(n,e){n&&n.attrs&&(n.attrs=Dv(n.attrs,e))}function tce(n,e){if(!Am.has(n))throw new TypeError(`figcaption must be one of: ${[...Am]}.`);if(n==="alt")return e.content;const t=e.attrs.find(([i])=>i==="title");return Array.isArray(t)&&t[1]?(Iv(e,"title"),t[1]):void 0}function nce(n,e){e=e||{},n.core.ruler.before("linkify","image_figures",function(t){let i=1;for(let r=1,s=t.tokens.length;ru.match(c)).map(u=>Array.from(u))}if(e.tabindex&&(t.tokens[r-1].attrPush(["tabindex",i]),i++),e.lazy&&(a.attrs.some(([c])=>c==="loading")||a.attrs.push(["loading","lazy"])),e.async&&(a.attrs.some(([c])=>c==="decoding")||a.attrs.push(["decoding","async"])),e.classes&&typeof e.classes=="string"){let c=!1;for(let u=0,h=a.attrs.length;uu==="src");a.attrs.push(["data-src",c[1]]),Iv(a,"src")}}})}var Su=!0,Lv=!1,Vv=!1,ice=function(n,e){e&&(Su=!e.enabled,Lv=!!e.label,Vv=!!e.labelAfter),n.core.ruler.after("inline","github-task-lists",function(t){for(var i=t.tokens,r=2;r=0;i--)if(n[i].level===t)return i;return-1}function sce(n,e){return hce(n[e])&&dce(n[e-1])&&fce(n[e-2])&&pce(n[e])}function oce(n,e){if(n.children.unshift(lce(n,e)),n.children[1].content=n.children[1].content.slice(3),n.content=n.content.slice(3),Lv)if(Vv){n.children.pop();var t="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);n.children[0].content=n.children[0].content.slice(0,-1)+' id="'+t+'">',n.children.push(uce(n.content,t,e))}else n.children.unshift(ace(e)),n.children.push(cce(e))}function lce(n,e){var t=new e("html_inline","",0),i=Su?' disabled="" ':"";return n.content.indexOf("[ ] ")===0?t.content='':(n.content.indexOf("[x] ")===0||n.content.indexOf("[X] ")===0)&&(t.content=''),t}function ace(n){var e=new n("html_inline","",0);return e.content="",e}function uce(n,e,t){var i=new t("html_inline","",0);return i.content='",i.attrs=[{for:e}],i}function hce(n){return n.type==="inline"}function dce(n){return n.type==="paragraph_open"}function fce(n){return n.type==="list_item_open"}function pce(n){return n.content.indexOf("[ ] ")===0||n.content.indexOf("[x] ")===0||n.content.indexOf("[X] ")===0}const mce=Nl(ice),as=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,qv=new Set,gce=(n,e,t,i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(n,e,t,i):console.error(`[${t}] ${e}: ${n}`)},Oce=n=>!qv.has(n),si=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),Mv=n=>si(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?al:null:null;class al extends Array{constructor(e){super(e),this.fill(0)}}var vr;const Zi=class Zi{constructor(e,t){it(this,"heap");it(this,"length");if(!k(Zi,vr))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){const t=Mv(e);if(!t)return[];te(Zi,vr,!0);const i=new Zi(e,t);return te(Zi,vr,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};vr=new WeakMap,oe(Zi,vr,!1);let wu=Zi;var en,Tt,vn,tn,yr,He,nn,Ke,Qe,re,gt,Et,ut,rt,rn,ot,Bn,zn,sn,yn,fi,St,zs,$u,Li,jn,js,Zt,Dl,Xv,Vi,kr,Ys,kn,oi,Sn,li,Ns,Pu,Sr,cl,wr,ul,$e,Ve,Fs,Cu,qi,ms;const Xh=class Xh{constructor(e){oe(this,zs);oe(this,Dl);oe(this,kn);oe(this,Sn);oe(this,Ns);oe(this,Sr);oe(this,wr);oe(this,$e);oe(this,Fs);oe(this,qi);oe(this,en,void 0);oe(this,Tt,void 0);oe(this,vn,void 0);oe(this,tn,void 0);oe(this,yr,void 0);it(this,"ttl");it(this,"ttlResolution");it(this,"ttlAutopurge");it(this,"updateAgeOnGet");it(this,"updateAgeOnHas");it(this,"allowStale");it(this,"noDisposeOnSet");it(this,"noUpdateTTL");it(this,"maxEntrySize");it(this,"sizeCalculation");it(this,"noDeleteOnFetchRejection");it(this,"noDeleteOnStaleGet");it(this,"allowStaleOnFetchAbort");it(this,"allowStaleOnFetchRejection");it(this,"ignoreFetchAbort");oe(this,He,void 0);oe(this,nn,void 0);oe(this,Ke,void 0);oe(this,Qe,void 0);oe(this,re,void 0);oe(this,gt,void 0);oe(this,Et,void 0);oe(this,ut,void 0);oe(this,rt,void 0);oe(this,rn,void 0);oe(this,ot,void 0);oe(this,Bn,void 0);oe(this,zn,void 0);oe(this,sn,void 0);oe(this,yn,void 0);oe(this,fi,void 0);oe(this,St,void 0);oe(this,Li,()=>{});oe(this,jn,()=>{});oe(this,js,()=>{});oe(this,Zt,()=>!1);oe(this,Vi,e=>{});oe(this,kr,(e,t,i)=>{});oe(this,Ys,(e,t,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:t=0,ttl:i,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:l,allowStale:a,dispose:c,disposeAfter:u,noDisposeOnSet:h,noUpdateTTL:d,maxSize:f=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:O,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:w,ignoreFetchAbort:$}=e;if(t!==0&&!si(t))throw new TypeError("max option must be a nonnegative integer");const x=t?Mv(t):Array;if(!x)throw new Error("invalid max value: "+t);if(te(this,en,t),te(this,Tt,f),this.maxEntrySize=p||k(this,Tt),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Tt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(O!==void 0&&typeof O!="function")throw new TypeError("fetchMethod must be a function if specified");if(te(this,yr,O),te(this,fi,!!O),te(this,Ke,new Map),te(this,Qe,new Array(t).fill(void 0)),te(this,re,new Array(t).fill(void 0)),te(this,gt,new x(t)),te(this,Et,new x(t)),te(this,ut,0),te(this,rt,0),te(this,rn,wu.create(t)),te(this,He,0),te(this,nn,0),typeof c=="function"&&te(this,vn,c),typeof u=="function"?(te(this,tn,u),te(this,ot,[])):(te(this,tn,void 0),te(this,ot,void 0)),te(this,yn,!!k(this,vn)),te(this,St,!!k(this,tn)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!$,this.maxEntrySize!==0){if(k(this,Tt)!==0&&!si(k(this,Tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!si(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");H(this,Dl,Xv).call(this)}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!l,this.ttlResolution=si(r)||r===0?r:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!si(this.ttl))throw new TypeError("ttl must be a positive integer if specified");H(this,zs,$u).call(this)}if(k(this,en)===0&&this.ttl===0&&k(this,Tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,en)&&!k(this,Tt)){const _="LRU_CACHE_UNBOUNDED";Oce(_)&&(qv.add(_),gce("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,Xh))}}static unsafeExposeInternals(e){return{starts:k(e,zn),ttls:k(e,sn),sizes:k(e,Bn),keyMap:k(e,Ke),keyList:k(e,Qe),valList:k(e,re),next:k(e,gt),prev:k(e,Et),get head(){return k(e,ut)},get tail(){return k(e,rt)},free:k(e,rn),isBackgroundFetch:t=>{var i;return H(i=e,$e,Ve).call(i,t)},backgroundFetch:(t,i,r,s)=>{var o;return H(o=e,wr,ul).call(o,t,i,r,s)},moveToTail:t=>{var i;return H(i=e,qi,ms).call(i,t)},indexes:t=>{var i;return H(i=e,kn,oi).call(i,t)},rindexes:t=>{var i;return H(i=e,Sn,li).call(i,t)},isStale:t=>{var i;return k(i=e,Zt).call(i,t)}}}get max(){return k(this,en)}get maxSize(){return k(this,Tt)}get calculatedSize(){return k(this,nn)}get size(){return k(this,He)}get fetchMethod(){return k(this,yr)}get dispose(){return k(this,vn)}get disposeAfter(){return k(this,tn)}getRemainingTTL(e){return k(this,Ke).has(e)?1/0:0}*entries(){for(const e of H(this,kn,oi).call(this))k(this,re)[e]!==void 0&&k(this,Qe)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield[k(this,Qe)[e],k(this,re)[e]])}*rentries(){for(const e of H(this,Sn,li).call(this))k(this,re)[e]!==void 0&&k(this,Qe)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield[k(this,Qe)[e],k(this,re)[e]])}*keys(){for(const e of H(this,kn,oi).call(this)){const t=k(this,Qe)[e];t!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield t)}}*rkeys(){for(const e of H(this,Sn,li).call(this)){const t=k(this,Qe)[e];t!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield t)}}*values(){for(const e of H(this,kn,oi).call(this))k(this,re)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield k(this,re)[e])}*rvalues(){for(const e of H(this,Sn,li).call(this))k(this,re)[e]!==void 0&&!H(this,$e,Ve).call(this,k(this,re)[e])&&(yield k(this,re)[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const i of H(this,kn,oi).call(this)){const r=k(this,re)[i],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;if(s!==void 0&&e(s,k(this,Qe)[i],this))return this.get(k(this,Qe)[i],t)}}forEach(e,t=this){for(const i of H(this,kn,oi).call(this)){const r=k(this,re)[i],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,k(this,Qe)[i],this)}}rforEach(e,t=this){for(const i of H(this,Sn,li).call(this)){const r=k(this,re)[i],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,k(this,Qe)[i],this)}}purgeStale(){let e=!1;for(const t of H(this,Sn,li).call(this,{allowStale:!0}))k(this,Zt).call(this,t)&&(this.delete(k(this,Qe)[t]),e=!0);return e}dump(){const e=[];for(const t of H(this,kn,oi).call(this,{allowStale:!0})){const i=k(this,Qe)[t],r=k(this,re)[t],s=H(this,$e,Ve).call(this,r)?r.__staleWhileFetching:r;if(s===void 0||i===void 0)continue;const o={value:s};if(k(this,sn)&&k(this,zn)){o.ttl=k(this,sn)[t];const l=as.now()-k(this,zn)[t];o.start=Math.floor(Date.now()-l)}k(this,Bn)&&(o.size=k(this,Bn)[t]),e.unshift([i,o])}return e}load(e){this.clear();for(const[t,i]of e){if(i.start){const r=Date.now()-i.start;i.start=as.now()-r}this.set(t,i.value,i)}}set(e,t,i={}){var d,f,p;const{ttl:r=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:a}=i;let{noUpdateTTL:c=this.noUpdateTTL}=i;const u=k(this,Ys).call(this,e,t,i.size||0,l);if(this.maxEntrySize&&u>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(e),this;let h=k(this,He)===0?void 0:k(this,Ke).get(e);if(h===void 0)h=k(this,He)===0?k(this,rt):k(this,rn).length!==0?k(this,rn).pop():k(this,He)===k(this,en)?H(this,Sr,cl).call(this,!1):k(this,He),k(this,Qe)[h]=e,k(this,re)[h]=t,k(this,Ke).set(e,h),k(this,gt)[k(this,rt)]=h,k(this,Et)[h]=k(this,rt),te(this,rt,h),Oo(this,He)._++,k(this,kr).call(this,h,u,a),a&&(a.set="add"),c=!1;else{H(this,qi,ms).call(this,h);const m=k(this,re)[h];if(t!==m){if(k(this,fi)&&H(this,$e,Ve).call(this,m)?m.__abortController.abort(new Error("replaced")):o||(k(this,yn)&&((d=k(this,vn))==null||d.call(this,m,e,"set")),k(this,St)&&((f=k(this,ot))==null||f.push([m,e,"set"]))),k(this,Vi).call(this,h),k(this,kr).call(this,h,u,a),k(this,re)[h]=t,a){a.set="replace";const O=m&&H(this,$e,Ve).call(this,m)?m.__staleWhileFetching:m;O!==void 0&&(a.oldValue=O)}}else a&&(a.set="update")}if(r!==0&&!k(this,sn)&&H(this,zs,$u).call(this),k(this,sn)&&(c||k(this,js).call(this,h,r,s),a&&k(this,jn).call(this,a,h)),!o&&k(this,St)&&k(this,ot)){const m=k(this,ot);let O;for(;O=m==null?void 0:m.shift();)(p=k(this,tn))==null||p.call(this,...O)}return this}pop(){var e;try{for(;k(this,He);){const t=k(this,re)[k(this,ut)];if(H(this,Sr,cl).call(this,!0),H(this,$e,Ve).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(k(this,St)&&k(this,ot)){const t=k(this,ot);let i;for(;i=t==null?void 0:t.shift();)(e=k(this,tn))==null||e.call(this,...i)}}}has(e,t={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=t,s=k(this,Ke).get(e);if(s!==void 0){const o=k(this,re)[s];if(H(this,$e,Ve).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(k(this,Zt).call(this,s))r&&(r.has="stale",k(this,jn).call(this,r,s));else return i&&k(this,Li).call(this,s),r&&(r.has="hit",k(this,jn).call(this,r,s)),!0}else r&&(r.has="miss");return!1}peek(e,t={}){const{allowStale:i=this.allowStale}=t,r=k(this,Ke).get(e);if(r!==void 0&&(i||!k(this,Zt).call(this,r))){const s=k(this,re)[r];return H(this,$e,Ve).call(this,s)?s.__staleWhileFetching:s}}async fetch(e,t={}){const{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:O=!1,status:b,signal:y}=t;if(!k(this,fi))return b&&(b.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:b});const S={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:l,size:a,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:p,ignoreFetchAbort:f,status:b,signal:y};let w=k(this,Ke).get(e);if(w===void 0){b&&(b.fetch="miss");const $=H(this,wr,ul).call(this,e,w,S,m);return $.__returned=$}else{const $=k(this,re)[w];if(H(this,$e,Ve).call(this,$)){const D=i&&$.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",D&&(b.returnedStale=!0)),D?$.__staleWhileFetching:$.__returned=$}const x=k(this,Zt).call(this,w);if(!O&&!x)return b&&(b.fetch="hit"),H(this,qi,ms).call(this,w),r&&k(this,Li).call(this,w),b&&k(this,jn).call(this,b,w),$;const _=H(this,wr,ul).call(this,e,w,S,m),q=_.__staleWhileFetching!==void 0&&i;return b&&(b.fetch=x?"stale":"refresh",q&&x&&(b.returnedStale=!0)),q?_.__staleWhileFetching:_.__returned=_}}get(e,t={}){const{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=t,l=k(this,Ke).get(e);if(l!==void 0){const a=k(this,re)[l],c=H(this,$e,Ve).call(this,a);return o&&k(this,jn).call(this,o,l),k(this,Zt).call(this,l)?(o&&(o.get="stale"),c?(o&&i&&a.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?a.__staleWhileFetching:void 0):(s||this.delete(e),o&&i&&(o.returnedStale=!0),i?a:void 0)):(o&&(o.get="hit"),c?a.__staleWhileFetching:(H(this,qi,ms).call(this,l),r&&k(this,Li).call(this,l),a))}else o&&(o.get="miss")}delete(e){var i,r,s,o;let t=!1;if(k(this,He)!==0){const l=k(this,Ke).get(e);if(l!==void 0)if(t=!0,k(this,He)===1)this.clear();else{k(this,Vi).call(this,l);const a=k(this,re)[l];H(this,$e,Ve).call(this,a)?a.__abortController.abort(new Error("deleted")):(k(this,yn)||k(this,St))&&(k(this,yn)&&((i=k(this,vn))==null||i.call(this,a,e,"delete")),k(this,St)&&((r=k(this,ot))==null||r.push([a,e,"delete"]))),k(this,Ke).delete(e),k(this,Qe)[l]=void 0,k(this,re)[l]=void 0,l===k(this,rt)?te(this,rt,k(this,Et)[l]):l===k(this,ut)?te(this,ut,k(this,gt)[l]):(k(this,gt)[k(this,Et)[l]]=k(this,gt)[l],k(this,Et)[k(this,gt)[l]]=k(this,Et)[l]),Oo(this,He)._--,k(this,rn).push(l)}}if(k(this,St)&&((s=k(this,ot))!=null&&s.length)){const l=k(this,ot);let a;for(;a=l==null?void 0:l.shift();)(o=k(this,tn))==null||o.call(this,...a)}return t}clear(){var e,t,i;for(const r of H(this,Sn,li).call(this,{allowStale:!0})){const s=k(this,re)[r];if(H(this,$e,Ve).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=k(this,Qe)[r];k(this,yn)&&((e=k(this,vn))==null||e.call(this,s,o,"delete")),k(this,St)&&((t=k(this,ot))==null||t.push([s,o,"delete"]))}}if(k(this,Ke).clear(),k(this,re).fill(void 0),k(this,Qe).fill(void 0),k(this,sn)&&k(this,zn)&&(k(this,sn).fill(0),k(this,zn).fill(0)),k(this,Bn)&&k(this,Bn).fill(0),te(this,ut,0),te(this,rt,0),k(this,rn).length=0,te(this,nn,0),te(this,He,0),k(this,St)&&k(this,ot)){const r=k(this,ot);let s;for(;s=r==null?void 0:r.shift();)(i=k(this,tn))==null||i.call(this,...s)}}};en=new WeakMap,Tt=new WeakMap,vn=new WeakMap,tn=new WeakMap,yr=new WeakMap,He=new WeakMap,nn=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,re=new WeakMap,gt=new WeakMap,Et=new WeakMap,ut=new WeakMap,rt=new WeakMap,rn=new WeakMap,ot=new WeakMap,Bn=new WeakMap,zn=new WeakMap,sn=new WeakMap,yn=new WeakMap,fi=new WeakMap,St=new WeakMap,zs=new WeakSet,$u=function(){const e=new al(k(this,en)),t=new al(k(this,en));te(this,sn,e),te(this,zn,t),te(this,js,(s,o,l=as.now())=>{if(t[s]=o!==0?l:0,e[s]=o,o!==0&&this.ttlAutopurge){const a=setTimeout(()=>{k(this,Zt).call(this,s)&&this.delete(k(this,Qe)[s])},o+1);a.unref&&a.unref()}}),te(this,Li,s=>{t[s]=e[s]!==0?as.now():0}),te(this,jn,(s,o)=>{if(e[o]){const l=e[o],a=t[o];s.ttl=l,s.start=a,s.now=i||r(),s.remainingTTL=s.now+l-a}});let i=0;const r=()=>{const s=as.now();if(this.ttlResolution>0){i=s;const o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{const o=k(this,Ke).get(s);return o===void 0?0:e[o]===0||t[o]===0?1/0:t[o]+e[o]-(i||r())},te(this,Zt,s=>e[s]!==0&&t[s]!==0&&(i||r())-t[s]>e[s])},Li=new WeakMap,jn=new WeakMap,js=new WeakMap,Zt=new WeakMap,Dl=new WeakSet,Xv=function(){const e=new al(k(this,en));te(this,nn,0),te(this,Bn,e),te(this,Vi,t=>{te(this,nn,k(this,nn)-e[t]),e[t]=0}),te(this,Ys,(t,i,r,s)=>{if(H(this,$e,Ve).call(this,i))return 0;if(!si(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(i,t),!si(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r}),te(this,kr,(t,i,r)=>{if(e[t]=i,k(this,Tt)){const s=k(this,Tt)-e[t];for(;k(this,nn)>s;)H(this,Sr,cl).call(this,!0)}te(this,nn,k(this,nn)+e[t]),r&&(r.entrySize=i,r.totalCalculatedSize=k(this,nn))})},Vi=new WeakMap,kr=new WeakMap,Ys=new WeakMap,kn=new WeakSet,oi=function*({allowStale:e=this.allowStale}={}){if(k(this,He))for(let t=k(this,rt);!(!H(this,Ns,Pu).call(this,t)||((e||!k(this,Zt).call(this,t))&&(yield t),t===k(this,ut)));)t=k(this,Et)[t]},Sn=new WeakSet,li=function*({allowStale:e=this.allowStale}={}){if(k(this,He))for(let t=k(this,ut);!(!H(this,Ns,Pu).call(this,t)||((e||!k(this,Zt).call(this,t))&&(yield t),t===k(this,rt)));)t=k(this,gt)[t]},Ns=new WeakSet,Pu=function(e){return e!==void 0&&k(this,Ke).get(k(this,Qe)[e])===e},Sr=new WeakSet,cl=function(e){var s,o;const t=k(this,ut),i=k(this,Qe)[t],r=k(this,re)[t];return k(this,fi)&&H(this,$e,Ve).call(this,r)?r.__abortController.abort(new Error("evicted")):(k(this,yn)||k(this,St))&&(k(this,yn)&&((s=k(this,vn))==null||s.call(this,r,i,"evict")),k(this,St)&&((o=k(this,ot))==null||o.push([r,i,"evict"]))),k(this,Vi).call(this,t),e&&(k(this,Qe)[t]=void 0,k(this,re)[t]=void 0,k(this,rn).push(t)),k(this,He)===1?(te(this,ut,te(this,rt,0)),k(this,rn).length=0):te(this,ut,k(this,gt)[t]),k(this,Ke).delete(i),Oo(this,He)._--,t},wr=new WeakSet,ul=function(e,t,i,r){const s=t===void 0?void 0:k(this,re)[t];if(H(this,$e,Ve).call(this,s))return s;const o=new AbortController,{signal:l}=i;l==null||l.addEventListener("abort",()=>o.abort(l.reason),{signal:o.signal});const a={signal:o.signal,options:i,context:r},c=(m,O=!1)=>{const{aborted:b}=o.signal,y=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(b&&!O?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,y&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),b&&!y&&!O)return h(o.signal.reason);const S=f;return k(this,re)[t]===f&&(m===void 0?S.__staleWhileFetching?k(this,re)[t]=S.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,a.options))),m},u=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),h(m)),h=m=>{const{aborted:O}=o.signal,b=O&&i.allowStaleOnFetchAbort,y=b||i.allowStaleOnFetchRejection,S=y||i.noDeleteOnFetchRejection,w=f;if(k(this,re)[t]===f&&(!S||w.__staleWhileFetching===void 0?this.delete(e):b||(k(this,re)[t]=w.__staleWhileFetching)),y)return i.status&&w.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw m},d=(m,O)=>{var y;const b=(y=k(this,yr))==null?void 0:y.call(this,e,s,a);b&&b instanceof Promise&&b.then(S=>m(S),O),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(),i.allowStaleOnFetchAbort&&(m=S=>c(S,!0)))})};i.status&&(i.status.fetchDispatched=!0);const f=new Promise(d).then(c,u),p=Object.assign(f,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,p,{...a.options,status:void 0}),t=k(this,Ke).get(e)):k(this,re)[t]=p,p},$e=new WeakSet,Ve=function(e){if(!k(this,fi))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController},Fs=new WeakSet,Cu=function(e,t){k(this,Et)[t]=e,k(this,gt)[e]=t},qi=new WeakSet,ms=function(e){e!==k(this,rt)&&(e===k(this,ut)?te(this,ut,k(this,gt)[e]):H(this,Fs,Cu).call(this,k(this,Et)[e],k(this,gt)[e]),H(this,Fs,Cu).call(this,k(this,rt),e),te(this,rt,e))};let xu=Xh;const bce=xu,vce=(n,e)=>{const t=le("editorId"),{noImgZoomIn:i}=n,r=Fl(()=>{const s=document.querySelectorAll(`#${t}-preview img`);s.length!==0&&V_(s,{background:"#00000073"})});De(()=>{!i&&r()}),se([e,ke(n.setting,"preview")],()=>{!i&&r()})},yce=vce,kce=(n,e)=>{if(typeof e[n]=="string")return e[n];const t=``;switch(ze.iconfontType){case"svg":return``;default:return t}},Sce=(n,e)=>{const t=le("editorId"),i=le("usedLanguageText"),r=le("customIcon"),s=()=>{document.querySelectorAll(`#${t}-preview pre`).forEach(a=>{var c,u;let h=-1;(c=a.querySelector(".copy-button"))==null||c.remove();const d=((u=i.value.copyCode)==null?void 0:u.text)||"复制代码",f=document.createElement("span");f.setAttribute("class","copy-button"),f.dataset.tips=d,f.innerHTML=kce("copy",r.value),f.addEventListener("click",()=>{var p,m;clearTimeout(h);const O=a.querySelector("code").innerText,b=j_(n.formatCopiedText(O)),y=((p=i.value.copyCode)==null?void 0:p.successTips)||"已复制!",S=((m=i.value.copyCode)==null?void 0:m.failTips)||"已复制!";f.dataset.tips=b?y:S,h=window.setTimeout(()=>{f.dataset.tips=d},1500)}),a.appendChild(f)})},o=()=>{Nt(s)},l=a=>{a&&Nt(s)};se(()=>e.value,o),se(()=>n.setting.preview,l),se(()=>n.setting.htmlPreview,l),se(()=>i.value,s),De(s)},wce=Sce,xce=n=>{var e;const t=(e=ze.editorExtensions)==null?void 0:e.highlight,i=t==null?void 0:t.instance,r=le("highlight"),s=ct(i);return De(()=>{if(!n.noHighlight&&!s.value){const o=document.createElement("script");o.src=r.value.js,o.onload=()=>{s.value=window.hljs},o.id=`${P}-hljs`,Xt(o,"hljs");const l=document.createElement("link");l.rel="stylesheet",l.href=r.value.css,l.id=`${P}-hlCss`,Xt(l)}}),se(()=>r.value.css,o=>{Ek(`${P}-hlCss`,"href",o)}),s},$ce=xce,Pce=n=>{const e=le("theme"),{editorExtensions:t,mermaidConfig:i}=ze,r=t==null?void 0:t.mermaid,s=ct(r==null?void 0:r.instance),o=ct(-1),l=new bce({max:1e3,ttl:6e5}),a=()=>{const c=s.value;!n.noMermaid&&c&&(c.initialize(i({startOnLoad:!1,theme:e.value==="dark"?"dark":"default"})),o.value=o.value+1)};return se(()=>e.value,()=>{l.clear(),a()}),De(()=>{if(!n.noMermaid&&!(r!=null&&r.instance)){const c=(r==null?void 0:r.js)||Ok;if(/\.mjs/.test(c))T(()=>import(c),[]).then(u=>{s.value=u.default,a()});else{const u=document.createElement("script");u.id=`${P}-mermaid`,u.src=c,u.onload=()=>{s.value=window.mermaid,a()},Xt(u,"mermaid")}}}),{mermaidRef:s,reRenderRef:o,replaceMermaid:()=>{Nt(()=>{if(!n.noMermaid&&s.value){const c=document.querySelectorAll(`div.${P}-mermaid`),u=document.createElement("div");u.style.width=document.body.offsetWidth+"px",u.style.height=document.body.offsetHeight+"px",u.style.position="fixed",u.style.zIndex="-10000",u.style.top="-10000";let h=c.length;h>0&&document.body.appendChild(u),c.forEach(async d=>{let f=l.get(d.innerText);if(!f){const m=Tk(),O=s.value.renderAsync||s.value.render;let b="";try{b=await O(m,d.innerText,u)}catch{}f=await n.sanitizeMermaid(typeof b=="string"?b:b.svg),l.set(d.innerText,f)}const p=document.createElement("p");p.className=`${P}-mermaid`,p.setAttribute("data-processed",""),p.innerHTML=f,d.dataset.line!==void 0&&(p.dataset.line=d.dataset.line),d.replaceWith(p),--h===0&&u.remove()})}})}}},Cce=Pce,_ce=n=>{var e;const t=(e=ze.editorExtensions)==null?void 0:e.katex,i=t==null?void 0:t.instance,r=ct(i);return De(()=>{if(!n.noKatex&&!r.value){const s=document.createElement("script");s.src=(t==null?void 0:t.js)||Sd.js,s.onload=()=>{r.value=window.katex},s.id=`${P}-katex`;const o=document.createElement("link");o.rel="stylesheet",o.href=(t==null?void 0:t.css)||Sd.css,o.id=`${P}-katexCss`,Xt(s,"katex"),Xt(o)}}),r},Qce=_ce,Ace=(n,e)=>{const t=n.renderer.rules.fence.bind(n.renderer.rules);n.renderer.rules.fence=(i,r,s,o,l)=>{const a=i[r],c=a.content.trim();if(a.info==="mermaid"){let u;return i[r].map&&i[r].level===0&&(u=i[r].map[0],i[r].attrSet("data-line",String(u))),`
${c}
`}return t(i,r,s,o,l)}},Tce=Ace,Em=(n,e)=>{let t=!0,i=!0;const r=n.posMax,s=e>0?n.src.charCodeAt(e-1):-1,o=e+1<=r?n.src.charCodeAt(e+1):-1;return(s===32||s===9||o>=48&&o<=57)&&(i=!1),(o===32||o===9)&&(t=!1),{can_open:t,can_close:i}},Ece=(n,e)=>{let t,i,r,s;if(n.src[n.pos]!=="$")return!1;if(r=Em(n,n.pos),!r.can_open)return e||(n.pending+="$"),n.pos+=1,!0;const o=n.pos+1;for(t=o;(t=n.src.indexOf("$",t))!==-1;){for(s=t-1;n.src[s]==="\\";)s-=1;if((t-s)%2==1)break;t+=1}return t===-1?(e||(n.pending+="$"),n.pos=o,!0):t-o===0?(e||(n.pending+="$$"),n.pos=o+1,!0):(r=Em(n,t),r.can_close?(e||(i=n.push("math_inline","math",0),i.markup="$",i.content=n.src.slice(o,t)),n.pos=t+1,!0):(e||(n.pending+="$"),n.pos=o,!0))},Zce=(n,e,t,i)=>{let r,s,o,l,a=!1,c=n.bMarks[e]+n.tShift[e],u=n.eMarks[e];if(c+2>u||n.src.slice(c,c+2)!=="$$")return!1;if(c+=2,r=n.src.slice(c,u),i)return!0;for(r.trim().slice(-2)==="$$"&&(r=r.trim().slice(0,-2),a=!0),o=e;!a&&(o++,!(o>=t||(c=n.bMarks[o]+n.tShift[o],u=n.eMarks[o],c{const t=r=>{if(e.katexRef.value){const s=e.katexRef.value.renderToString(r,{throwOnError:!1});return`${s}`}else return`${r}`},i=(r,s)=>{if(e.katexRef.value){const o=e.katexRef.value.renderToString(r,{throwOnError:!1,displayMode:!0});return`

${o}

`}else return`

${r}

`};n.inline.ruler.after("escape","math_inline",Ece),n.block.ruler.after("blockquote","math_block",Zce,{alt:["paragraph","reference","blockquote","list"]}),n.renderer.rules.math_inline=(r,s)=>t(r[s].content),n.renderer.rules.math_block=(r,s)=>i(r[s].content,r[s].map[0])+` `},Dce=Rce,Ice=(n,e)=>{e=e||{};const t=3,i=e.marker||"!",r=i.charCodeAt(0),s=i.length;let o="",l="";const a=(u,h,d,f,p)=>{const m=u[h];return m.type==="admonition_open"?(u[h].attrPush(["class",`${P}-admonition ${P}-admonition-${m.info}`]),u[h].attrSet("data-line",String(u[h].map[0]))):m.type==="admonition_title_open"&&u[h].attrPush(["class",`${P}-admonition-title`]),p.renderToken(u,h,d)},c=u=>{const h=u.trim().split(" ",2);l="",o=h[0],h.length>1&&(l=u.substring(o.length+2)),(l===""||!l)&&(l=o)};n.block.ruler.before("code","admonition",(u,h,d,f)=>{let p,m,O,b=!1,y=u.bMarks[h]+u.tShift[h],S=u.eMarks[h];if(r!==u.src.charCodeAt(y))return!1;for(p=y+1;p<=S&&i[(p-y)%s]===u.src[p];p++);const w=Math.floor((p-y)/s);if(w!==t)return!1;p-=(p-y)%s;const $=u.src.slice(y,p),x=u.src.slice(p,S);if(c(x),f)return!0;for(m=h;m++,!(m>=d||(y=u.bMarks[m]+u.tShift[m],S=u.eMarks[m],y=4)){for(p=y+1;p<=S&&i[(p-y)%s]===u.src[p];p++);if(!(Math.floor((p-y)/s){n.renderer.rules.heading_open=(t,i)=>{var r;const s=t[i],o=((r=t[i+1].children)==null?void 0:r.reduce((a,c)=>a+(c.content||""),""))||"",l=s.markup.length;return e.headsRef.value.push({text:o,level:l}),s.map&&s.level===0&&(s.attrSet("data-line",String(s.map[0])),s.attrSet("id",e.mdHeadingId(o,l,e.headsRef.value.length))),n.renderer.renderToken(t,i,e)},n.renderer.rules.heading_close=(t,i,r,s,o)=>o.renderToken(t,i,r)},qce=Vce,Mce=(n,e)=>{const t=n.renderer.rules.fence,i=n.utils.unescapeAll,r=/\[(\w*)(?::([\w ]*))?\]/;function s(c){return c.info?i(c.info).trim():""}function o(c){const u=s(c),[h=null,d=""]=(r.exec(u)||[]).slice(1);return[h,d]}function l(c){const u=s(c);return u?u.split(/(\s+)/g)[0]:""}const a=(c,u,h,d,f)=>{if(c[u].hidden)return"";const[p,m]=o(c[u]);if(p===null)return t(c,u,h,d,f);let O,b,y,S,w="",$="";for(let x=u;x0?"":" checked",w+=`
  • `,$+=` `+t(c,x,h,d,f);return`
      `+w+`
    -`+$+"
    "};n.renderer.rules.fence=a},Xce=Mce,Wce=n=>{["paragraph_open","table_open","ordered_list_open","bullet_list_open","blockquote_open","hr","html_block","fence"].forEach(e=>{const t=n.renderer.rules[e];t?n.renderer.rules[e]=(i,r,s,o,l)=>{let a;const c=t(i,r,s,o,l);return i[r].map&&i[r].level===0&&!/^"),le=W(H,"?>"),oe=W(L,"]]>"),se=N({Text:$.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":$.angleBracket,TagName:$.tagName,"MismatchedCloseTag/Tagname":[$.tagName,$.invalid],AttributeName:$.attributeName,AttributeValue:$.attributeValue,Is:$.definitionOperator,"EntityReference CharacterReference":$.character,Comment:$.blockComment,ProcessingInst:$.processingInstruction,DoctypeDecl:$.documentMeta,Cdata:$.special($.string)}),ie=Y.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$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$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[ae,re,le,oe,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});function T(e,t){let n=t&&t.getChild("TagName");return n?e.sliceString(n.from,n.to):""}function _(e,t){let n=t&&t.firstChild;return!n||n.name!="OpenTag"?"":T(e,n)}function ye(e,t,n){let O=t&&t.getChildren("Attribute").find(r=>r.from<=n&&r.to>=n),a=O&&O.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}function h(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function $e(e,t){var n;let O=q(e).resolveInner(t,-1),a=null;for(let r=O;!a&&r.parent;r=r.parent)(r.name=="OpenTag"||r.name=="CloseTag"||r.name=="SelfClosingTag"||r.name=="MismatchedCloseTag")&&(a=r);if(a&&(a.to>t||a.lastChild.type.isError)){let r=a.parent;if(O.name=="TagName")return a.name=="CloseTag"||a.name=="MismatchedCloseTag"?{type:"closeTag",from:O.from,context:r}:{type:"openTag",from:O.from,context:h(r)};if(O.name=="AttributeName")return{type:"attrName",from:O.from,context:a};if(O.name=="AttributeValue")return{type:"attrValue",from:O.from,context:a};let i=O==a||O.name=="Attribute"?O.childBefore(t):O;return(i==null?void 0:i.name)=="StartTag"?{type:"openTag",from:t,context:h(r)}:(i==null?void 0:i.name)=="StartCloseTag"&&i.to<=t?{type:"closeTag",from:t,context:r}:(i==null?void 0:i.name)=="Is"?{type:"attrValue",from:t,context:a}:i?{type:"attrName",from:t,context:a}:null}else if(O.name=="StartCloseTag")return{type:"closeTag",from:t,context:O.parent};for(;O.parent&&O.to==t&&!(!((n=O.lastChild)===null||n===void 0)&&n.type.isError);)O=O.parent;return O.name=="Element"||O.name=="Text"||O.name=="Document"?{type:"tag",from:t,context:O.name=="Element"?O:h(O)}:null}class ge{constructor(t,n,O){this.attrs=n,this.attrValues=O,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(a=>({label:a,type:"text"})):[]}}const C=/^[:\-\.\w\u00b7-\uffff]*$/;function E(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function G(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function me(e,t){let n=[],O=[],a=Object.create(null);for(let l of t){let g=E(l);n.push(g),l.global&&O.push(g),l.values&&(a[l.name]=l.values.map(G))}let r=[],i=[],p=Object.create(null);for(let l of e){let g=O,o=a;l.attributes&&(g=g.concat(l.attributes.map(m=>typeof m=="string"?n.find(f=>f.label==m)||{label:m,type:"property"}:(m.values&&(o==a&&(o=Object.create(o)),o[m.name]=m.values.map(G)),E(m)))));let S=new ge(l,g,o);p[S.name]=S,r.push(S),l.top&&i.push(S)}i.length||(i=r);for(let l=0;l{var g;let{doc:o}=l.state,S=$e(l.state,l.pos);if(!S||S.type=="tag"&&!l.explicit)return null;let{type:m,from:f,context:u}=S;if(m=="openTag"){let s=i,y=_(o,u);if(y){let c=p[y];s=(c==null?void 0:c.children)||r}return{from:f,options:s.map(c=>c.completion),validFor:C}}else if(m=="closeTag"){let s=_(o,u);return s?{from:f,to:l.pos+(o.sliceString(l.pos,l.pos+1)==">"?1:0),options:[((g=p[s])===null||g===void 0?void 0:g.closeNameCompletion)||{label:s+">",type:"type"}],validFor:C}:null}else if(m=="attrName"){let s=p[T(o,u)];return{from:f,options:(s==null?void 0:s.attrs)||O,validFor:C}}else if(m=="attrValue"){let s=ye(o,u,f);if(!s)return null;let y=p[T(o,u)],c=((y==null?void 0:y.attrValues)||a)[s];return!c||!c.length?null:{from:f,to:l.pos+(o.sliceString(l.pos,l.pos+1)=='"'?1:0),options:c,validFor:/^"[^"]*"?$/}}else if(m=="tag"){let s=_(o,u),y=p[s],c=[],P=u&&u.lastChild;s&&(!P||P.name!="CloseTag"||T(o,P)!=s)&&c.push(y?y.closeCompletion:{label:"",type:"type",boost:2});let V=c.concat(((y==null?void 0:y.children)||(u?r:i)).map(d=>d.openCompletion));if(u&&(y!=null&&y.text.length)){let d=u.firstChild;d.to>l.pos-20&&!/\S/.test(l.state.sliceDoc(d.to,l.pos))&&(V=V.concat(y.text))}return{from:f,options:V,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const R=A.define({name:"xml",parser:ie.configure({props:[I.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),j.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:n.name=="CloseTag"?n.from:e.to}}}),U.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/$/}});function pe(e={}){return new z(R,R.data.of({autocomplete:me(e.elements||[],e.attributes||[])}))}export{me as completeFromSchema,pe as xml,R as xmlLanguage}; +import{C as Z,E as k,s as N,t as $,b as Y,L as A,i as I,f as j,o as U,a as z,g as q}from"./Main-8ffff2eb.js";import"./index-f61adea6.js";import"./VCard-e8733d6d.js";const v=1,D=2,M=3,B=4,F=5,J=35,H=36,L=37,K=11,ee=13;function te(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function Oe(e){return e==9||e==10||e==13||e==32}let w=null,X=null,Q=0;function b(e,t){let n=e.pos+t;if(X==e&&Q==n)return w;for(;Oe(e.peek(t));)t++;let O="";for(;;){let a=e.peek(t);if(!te(a))break;O+=String.fromCharCode(a),t++}return X=e,Q=n,w=O||null}function x(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n{if(e.next==60){if(e.advance(),e.next==47){e.advance();let n=b(e,0);if(!n)return e.acceptToken(F);if(t.context&&n==t.context.name)return e.acceptToken(D);for(let O=t.context;O;O=O.parent)if(O.name==n)return e.acceptToken(M,-2);e.acceptToken(B)}else if(e.next!=33&&e.next!=63)return e.acceptToken(v)}},{contextual:!0});function W(e,t){return new k(n=>{let O=0,a=t.charCodeAt(0);e:for(;!(n.next<0);n.advance(),O++)if(n.next==a){for(let r=1;r"),le=W(H,"?>"),oe=W(L,"]]>"),se=N({Text:$.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":$.angleBracket,TagName:$.tagName,"MismatchedCloseTag/Tagname":[$.tagName,$.invalid],AttributeName:$.attributeName,AttributeValue:$.attributeValue,Is:$.definitionOperator,"EntityReference CharacterReference":$.character,Comment:$.blockComment,ProcessingInst:$.processingInstruction,DoctypeDecl:$.documentMeta,Cdata:$.special($.string)}),ie=Y.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,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r$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[ae,re,le,oe,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});function T(e,t){let n=t&&t.getChild("TagName");return n?e.sliceString(n.from,n.to):""}function _(e,t){let n=t&&t.firstChild;return!n||n.name!="OpenTag"?"":T(e,n)}function ye(e,t,n){let O=t&&t.getChildren("Attribute").find(r=>r.from<=n&&r.to>=n),a=O&&O.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}function h(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function $e(e,t){var n;let O=q(e).resolveInner(t,-1),a=null;for(let r=O;!a&&r.parent;r=r.parent)(r.name=="OpenTag"||r.name=="CloseTag"||r.name=="SelfClosingTag"||r.name=="MismatchedCloseTag")&&(a=r);if(a&&(a.to>t||a.lastChild.type.isError)){let r=a.parent;if(O.name=="TagName")return a.name=="CloseTag"||a.name=="MismatchedCloseTag"?{type:"closeTag",from:O.from,context:r}:{type:"openTag",from:O.from,context:h(r)};if(O.name=="AttributeName")return{type:"attrName",from:O.from,context:a};if(O.name=="AttributeValue")return{type:"attrValue",from:O.from,context:a};let i=O==a||O.name=="Attribute"?O.childBefore(t):O;return(i==null?void 0:i.name)=="StartTag"?{type:"openTag",from:t,context:h(r)}:(i==null?void 0:i.name)=="StartCloseTag"&&i.to<=t?{type:"closeTag",from:t,context:r}:(i==null?void 0:i.name)=="Is"?{type:"attrValue",from:t,context:a}:i?{type:"attrName",from:t,context:a}:null}else if(O.name=="StartCloseTag")return{type:"closeTag",from:t,context:O.parent};for(;O.parent&&O.to==t&&!(!((n=O.lastChild)===null||n===void 0)&&n.type.isError);)O=O.parent;return O.name=="Element"||O.name=="Text"||O.name=="Document"?{type:"tag",from:t,context:O.name=="Element"?O:h(O)}:null}class ge{constructor(t,n,O){this.attrs=n,this.attrValues=O,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(a=>({label:a,type:"text"})):[]}}const C=/^[:\-\.\w\u00b7-\uffff]*$/;function E(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function G(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function me(e,t){let n=[],O=[],a=Object.create(null);for(let l of t){let g=E(l);n.push(g),l.global&&O.push(g),l.values&&(a[l.name]=l.values.map(G))}let r=[],i=[],p=Object.create(null);for(let l of e){let g=O,o=a;l.attributes&&(g=g.concat(l.attributes.map(m=>typeof m=="string"?n.find(f=>f.label==m)||{label:m,type:"property"}:(m.values&&(o==a&&(o=Object.create(o)),o[m.name]=m.values.map(G)),E(m)))));let S=new ge(l,g,o);p[S.name]=S,r.push(S),l.top&&i.push(S)}i.length||(i=r);for(let l=0;l{var g;let{doc:o}=l.state,S=$e(l.state,l.pos);if(!S||S.type=="tag"&&!l.explicit)return null;let{type:m,from:f,context:u}=S;if(m=="openTag"){let s=i,y=_(o,u);if(y){let c=p[y];s=(c==null?void 0:c.children)||r}return{from:f,options:s.map(c=>c.completion),validFor:C}}else if(m=="closeTag"){let s=_(o,u);return s?{from:f,to:l.pos+(o.sliceString(l.pos,l.pos+1)==">"?1:0),options:[((g=p[s])===null||g===void 0?void 0:g.closeNameCompletion)||{label:s+">",type:"type"}],validFor:C}:null}else if(m=="attrName"){let s=p[T(o,u)];return{from:f,options:(s==null?void 0:s.attrs)||O,validFor:C}}else if(m=="attrValue"){let s=ye(o,u,f);if(!s)return null;let y=p[T(o,u)],c=((y==null?void 0:y.attrValues)||a)[s];return!c||!c.length?null:{from:f,to:l.pos+(o.sliceString(l.pos,l.pos+1)=='"'?1:0),options:c,validFor:/^"[^"]*"?$/}}else if(m=="tag"){let s=_(o,u),y=p[s],c=[],P=u&&u.lastChild;s&&(!P||P.name!="CloseTag"||T(o,P)!=s)&&c.push(y?y.closeCompletion:{label:"",type:"type",boost:2});let V=c.concat(((y==null?void 0:y.children)||(u?r:i)).map(d=>d.openCompletion));if(u&&(y!=null&&y.text.length)){let d=u.firstChild;d.to>l.pos-20&&!/\S/.test(l.state.sliceDoc(d.to,l.pos))&&(V=V.concat(y.text))}return{from:f,options:V,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const R=A.define({name:"xml",parser:ie.configure({props:[I.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),j.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:n.name=="CloseTag"?n.from:e.to}}}),U.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/$/}});function pe(e={}){return new z(R,R.data.of({autocomplete:me(e.elements||[],e.attributes||[])}))}export{me as completeFromSchema,pe as xml,R as xmlLanguage}; diff --git a/assets/index-547495c1.js b/assets/index-9f504b76.js similarity index 96% rename from assets/index-547495c1.js rename to assets/index-9f504b76.js index dbd41d2..a077382 100644 --- a/assets/index-547495c1.js +++ b/assets/index-9f504b76.js @@ -1 +1 @@ -import{s as p,t as e,L as u,a as l,b as m,q as r,m as b,p as n,r as S}from"./Main-05e8c888.js";import"./index-b1080ed6.js";import"./VCard-351f29df.js";const c=m.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r("[~RPwxU~ZOp~~",11,15),new r("[~RPrsU~ZOn~~",11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),P=S.parser.configure({top:"SingleExpression"}),o=c.configure({props:[p({Text:e.content,Is:e.definitionOperator,AttributeName:e.attributeName,VueAttributeName:e.keyword,Identifier:e.variableName,"AttributeValue ScriptAttributeValue":e.attributeValue,Entity:e.character,"{{ }}":e.brace,"@ :":e.punctuation})]}),s={parser:P},Q=o.configure({wrap:n((O,t)=>O.name=="InterpolationContent"?s:null)}),g=o.configure({wrap:n((O,t)=>O.name=="AttributeScript"?s:null),top:"Attribute"}),y={parser:Q},R={parser:g},a=b();function i(O){return O.configure({dialect:"selfClosing",wrap:n(X)},"vue")}const T=i(a.language);function X(O,t){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(t.read(O.from,O.from+2))?R:null;case"Text":return y}return null}function x(O={}){let t=a;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof u))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new l(t.language==a.language?T:i(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{x as vue,T as vueLanguage}; +import{s as p,t as e,L as u,a as l,b as m,q as r,m as b,p as n,r as S}from"./Main-8ffff2eb.js";import"./index-f61adea6.js";import"./VCard-e8733d6d.js";const c=m.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r("[~RPwxU~ZOp~~",11,15),new r("[~RPrsU~ZOn~~",11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),P=S.parser.configure({top:"SingleExpression"}),o=c.configure({props:[p({Text:e.content,Is:e.definitionOperator,AttributeName:e.attributeName,VueAttributeName:e.keyword,Identifier:e.variableName,"AttributeValue ScriptAttributeValue":e.attributeValue,Entity:e.character,"{{ }}":e.brace,"@ :":e.punctuation})]}),s={parser:P},Q=o.configure({wrap:n((O,t)=>O.name=="InterpolationContent"?s:null)}),g=o.configure({wrap:n((O,t)=>O.name=="AttributeScript"?s:null),top:"Attribute"}),y={parser:Q},R={parser:g},a=b();function i(O){return O.configure({dialect:"selfClosing",wrap:n(X)},"vue")}const T=i(a.language);function X(O,t){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(t.read(O.from,O.from+2))?R:null;case"Text":return y}return null}function x(O={}){let t=a;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof u))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new l(t.language==a.language?T:i(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{x as vue,T as vueLanguage}; diff --git a/assets/index-fec11b86.js b/assets/index-c370a9f3.js similarity index 95% rename from assets/index-fec11b86.js rename to assets/index-c370a9f3.js index de3e756..783f81c 100644 --- a/assets/index-fec11b86.js +++ b/assets/index-c370a9f3.js @@ -1 +1 @@ -import{L as O,i as r,j as b,f as s,k as a,s as t,t as e,a as P,b as n}from"./Main-05e8c888.js";import"./index-b1080ed6.js";import"./VCard-351f29df.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},i=n.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>S[o]||-1}],tokenPrec:0}),Q=O.define({name:"wast",parser:i.configure({props:[r.add({App:b({closing:")",align:!1})}),s.add({App:a,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),t({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function m(){return new P(Q)}export{m as wast,Q as wastLanguage}; +import{L as O,i as r,j as b,f as s,k as a,s as t,t as e,a as P,b as n}from"./Main-8ffff2eb.js";import"./index-f61adea6.js";import"./VCard-e8733d6d.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},i=n.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>S[o]||-1}],tokenPrec:0}),Q=O.define({name:"wast",parser:i.configure({props:[r.add({App:b({closing:")",align:!1})}),s.add({App:a,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),t({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function m(){return new P(Q)}export{m as wast,Q as wastLanguage}; diff --git a/assets/index-2bbf4953.js b/assets/index-d443257a.js similarity index 99% rename from assets/index-2bbf4953.js rename to assets/index-d443257a.js index 73849ce..e7524d2 100644 --- a/assets/index-2bbf4953.js +++ b/assets/index-d443257a.js @@ -1 +1 @@ -import{E as S,s as o,t as $,b as t,L as l,i as x,c as W,j as R,f as V,k as r,m as U,a as v,p as u}from"./Main-05e8c888.js";import"./index-b1080ed6.js";import"./VCard-351f29df.js";const m=1,b=2,p=263,k=3,c=264,s=265,Y=266,Z=4,w=5,_=6,h=7,X=8,j=9,f=10,G=11,g=12,E=13,I=14,N=15,F=16,C=17,L=18,A=19,H=20,K=21,D=22,B=23,M=24,J=25,OO=26,$O=27,QO=28,iO=29,yO=30,aO=31,zO=32,SO=33,PO=34,WO=35,eO=36,TO=37,sO=38,XO=39,dO=40,nO=41,qO=42,oO=43,tO=44,lO=45,xO=46,RO=47,VO=48,rO=49,UO=50,vO=51,uO=52,mO=53,bO=54,pO=55,kO=56,cO=57,YO=58,ZO=59,wO=60,_O=61,e=62,hO=63,jO=64,fO=65,GO={abstract:Z,and:w,array:_,as:h,true:X,false:X,break:j,case:f,catch:G,clone:g,const:E,continue:I,declare:F,default:N,do:C,echo:L,else:A,elseif:H,enddeclare:K,endfor:D,endforeach:B,endif:M,endswitch:J,endwhile:OO,enum:$O,extends:QO,final:iO,finally:yO,fn:aO,for:zO,foreach:SO,from:PO,function:WO,global:eO,goto:TO,if:sO,implements:XO,include:dO,include_once:nO,instanceof:qO,insteadof:oO,interface:tO,list:lO,match:xO,namespace:RO,new:VO,null:rO,or:UO,print:vO,require:uO,require_once:mO,return:bO,switch:pO,throw:kO,trait:cO,try:YO,unset:ZO,use:wO,var:_O,public:e,private:e,protected:e,while:hO,xor:jO,yield:fO,__proto__:null};function d(O){let Q=GO[O.toLowerCase()];return Q??-1}function n(O){return O==9||O==10||O==13||O==32}function q(O){return O>=97&&O<=122||O>=65&&O<=90}function a(O){return O==95||O>=128||q(O)}function T(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const gO={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},EO=new S(O=>{if(O.next==40){O.advance();let Q=0;for(;n(O.peek(Q));)Q++;let i="",y;for(;q(y=O.peek(Q));)i+=String.fromCharCode(y),Q++;for(;n(O.peek(Q));)Q++;O.peek(Q)==41&&gO[i.toLowerCase()]&&O.acceptToken(m)}else if(O.next==60&&O.peek(1)==60&&O.peek(2)==60){for(let y=0;y<3;y++)O.advance();for(;O.next==32||O.next==9;)O.advance();let Q=O.next==39;if(Q&&O.advance(),!a(O.next))return;let i=String.fromCharCode(O.next);for(;O.advance(),!(!a(O.next)&&!(O.next>=48&&O.next<=55));)i+=String.fromCharCode(O.next);if(Q){if(O.next!=39)return;O.advance()}if(O.next!=10&&O.next!=13)return;for(;;){let y=O.next==10||O.next==13;if(O.advance(),O.next<0)return;if(y){for(;O.next==32||O.next==9;)O.advance();let z=!0;for(let P=0;P{O.next<0&&O.acceptToken(Y)}),NO=new S((O,Q)=>{O.next==63&&Q.canShift(s)&&O.peek(1)==62&&O.acceptToken(s)});function FO(O){let Q=O.peek(1);if(Q==110||Q==114||Q==116||Q==118||Q==101||Q==102||Q==92||Q==36||Q==34||Q==123)return 2;if(Q>=48&&Q<=55){let i=2,y;for(;i<5&&(y=O.peek(i))>=48&&y<=55;)i++;return i}if(Q==120&&T(O.peek(2)))return T(O.peek(3))?4:3;if(Q==117&&O.peek(2)==123)for(let i=3;;i++){let y=O.peek(i);if(y==125)return i==2?0:i+1;if(!T(y))break}return 0}const CO=new S((O,Q)=>{let i=!1;for(;!(O.next==34||O.next<0||O.next==36&&(a(O.peek(1))||O.peek(1)==123)||O.next==123&&O.peek(1)==36);i=!0){if(O.next==92){let y=FO(O);if(y){if(i)break;return O.acceptToken(k,y)}}else if(!i&&(O.next==91||O.next==45&&O.peek(1)==62&&a(O.peek(2))||O.next==63&&O.peek(1)==45&&O.peek(2)==62&&a(O.peek(3)))&&Q.canShift(c))break;O.advance()}i&&O.acceptToken(p)}),LO=o({"Visibility abstract final static":$.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":$.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":$.controlKeyword,"and or xor yield unset clone instanceof insteadof":$.operatorKeyword,"function fn class trait implements extends const enum global interface use var":$.definitionKeyword,"include include_once require require_once namespace":$.moduleKeyword,"new from echo print array list as":$.keyword,null:$.null,Boolean:$.bool,VariableName:$.variableName,"NamespaceName/...":$.namespace,"NamedType/...":$.typeName,Name:$.name,"CallExpression/Name":$.function($.variableName),"LabelStatement/Name":$.labelName,"MemberExpression/Name":$.propertyName,"MemberExpression/VariableName":$.special($.propertyName),"ScopedExpression/ClassMemberName/Name":$.propertyName,"ScopedExpression/ClassMemberName/VariableName":$.special($.propertyName),"CallExpression/MemberExpression/Name":$.function($.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":$.function($.propertyName),"MethodDeclaration/Name":$.function($.definition($.variableName)),"FunctionDefinition/Name":$.function($.definition($.variableName)),"ClassDeclaration/Name":$.definition($.className),UpdateOp:$.updateOperator,ArithOp:$.arithmeticOperator,LogicOp:$.logicOperator,BitOp:$.bitwiseOperator,CompareOp:$.compareOperator,ControlOp:$.controlOperator,AssignOp:$.definitionOperator,"$ ConcatOp":$.operator,LineComment:$.lineComment,BlockComment:$.blockComment,Integer:$.integer,Float:$.float,String:$.string,ShellExpression:$.special($.string),"=> ->":$.punctuation,"( )":$.paren,"#[ [ ]":$.squareBracket,"${ { }":$.brace,"-> ?->":$.derefOperator,", ; :: : \\":$.separator,"PhpOpen PhpClose":$.processingInstruction}),AO={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},HO=t.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#I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$U$y%}&S'Y(O)p+P-z/x0e1R2[2]6x6yd+^(T)W+]+`+g,g,h,k.Q/O!t6w'U2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3z3|4O4Q4S4U5v5w!x;b3u3v3x3y3{3}4P4R4T4V4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["isolate",-4,66,67,70,191,""],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[LO],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`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:{284:1},specialized:[{term:81,get:(O,Q)=>d(O)<<1,external:d},{term:81,get:O=>AO[O]||-1}],tokenPrec:29354}),KO=l.define({name:"php",parser:HO.configure({props:[x.add({IfStatement:W({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:W({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let Q=O.textAfter,i=/^\s*\}/.test(Q),y=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(i?0:y?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":R({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:W({except:/^({|end(for|foreach|switch|while)\b)/})}),V.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":r,ColonBlock(O){return{from:O.from+1,to:O.to}},BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function JO(O={}){let Q=[],i;if(O.baseLanguage!==null)if(O.baseLanguage)i=O.baseLanguage;else{let y=U({matchClosingTags:!1});Q.push(y.support),i=y.language}return new v(KO.configure({wrap:i&&u(y=>y.type.isTop?{parser:i.parser,overlay:z=>z.name=="Text"}:null),top:O.plain?"Program":"Template"}),Q)}export{JO as php,KO as phpLanguage}; +import{E as S,s as o,t as $,b as t,L as l,i as x,c as W,j as R,f as V,k as r,m as U,a as v,p as u}from"./Main-8ffff2eb.js";import"./index-f61adea6.js";import"./VCard-e8733d6d.js";const m=1,b=2,p=263,k=3,c=264,s=265,Y=266,Z=4,w=5,_=6,h=7,X=8,j=9,f=10,G=11,g=12,E=13,I=14,N=15,F=16,C=17,L=18,A=19,H=20,K=21,D=22,B=23,M=24,J=25,OO=26,$O=27,QO=28,iO=29,yO=30,aO=31,zO=32,SO=33,PO=34,WO=35,eO=36,TO=37,sO=38,XO=39,dO=40,nO=41,qO=42,oO=43,tO=44,lO=45,xO=46,RO=47,VO=48,rO=49,UO=50,vO=51,uO=52,mO=53,bO=54,pO=55,kO=56,cO=57,YO=58,ZO=59,wO=60,_O=61,e=62,hO=63,jO=64,fO=65,GO={abstract:Z,and:w,array:_,as:h,true:X,false:X,break:j,case:f,catch:G,clone:g,const:E,continue:I,declare:F,default:N,do:C,echo:L,else:A,elseif:H,enddeclare:K,endfor:D,endforeach:B,endif:M,endswitch:J,endwhile:OO,enum:$O,extends:QO,final:iO,finally:yO,fn:aO,for:zO,foreach:SO,from:PO,function:WO,global:eO,goto:TO,if:sO,implements:XO,include:dO,include_once:nO,instanceof:qO,insteadof:oO,interface:tO,list:lO,match:xO,namespace:RO,new:VO,null:rO,or:UO,print:vO,require:uO,require_once:mO,return:bO,switch:pO,throw:kO,trait:cO,try:YO,unset:ZO,use:wO,var:_O,public:e,private:e,protected:e,while:hO,xor:jO,yield:fO,__proto__:null};function d(O){let Q=GO[O.toLowerCase()];return Q??-1}function n(O){return O==9||O==10||O==13||O==32}function q(O){return O>=97&&O<=122||O>=65&&O<=90}function a(O){return O==95||O>=128||q(O)}function T(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const gO={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},EO=new S(O=>{if(O.next==40){O.advance();let Q=0;for(;n(O.peek(Q));)Q++;let i="",y;for(;q(y=O.peek(Q));)i+=String.fromCharCode(y),Q++;for(;n(O.peek(Q));)Q++;O.peek(Q)==41&&gO[i.toLowerCase()]&&O.acceptToken(m)}else if(O.next==60&&O.peek(1)==60&&O.peek(2)==60){for(let y=0;y<3;y++)O.advance();for(;O.next==32||O.next==9;)O.advance();let Q=O.next==39;if(Q&&O.advance(),!a(O.next))return;let i=String.fromCharCode(O.next);for(;O.advance(),!(!a(O.next)&&!(O.next>=48&&O.next<=55));)i+=String.fromCharCode(O.next);if(Q){if(O.next!=39)return;O.advance()}if(O.next!=10&&O.next!=13)return;for(;;){let y=O.next==10||O.next==13;if(O.advance(),O.next<0)return;if(y){for(;O.next==32||O.next==9;)O.advance();let z=!0;for(let P=0;P{O.next<0&&O.acceptToken(Y)}),NO=new S((O,Q)=>{O.next==63&&Q.canShift(s)&&O.peek(1)==62&&O.acceptToken(s)});function FO(O){let Q=O.peek(1);if(Q==110||Q==114||Q==116||Q==118||Q==101||Q==102||Q==92||Q==36||Q==34||Q==123)return 2;if(Q>=48&&Q<=55){let i=2,y;for(;i<5&&(y=O.peek(i))>=48&&y<=55;)i++;return i}if(Q==120&&T(O.peek(2)))return T(O.peek(3))?4:3;if(Q==117&&O.peek(2)==123)for(let i=3;;i++){let y=O.peek(i);if(y==125)return i==2?0:i+1;if(!T(y))break}return 0}const CO=new S((O,Q)=>{let i=!1;for(;!(O.next==34||O.next<0||O.next==36&&(a(O.peek(1))||O.peek(1)==123)||O.next==123&&O.peek(1)==36);i=!0){if(O.next==92){let y=FO(O);if(y){if(i)break;return O.acceptToken(k,y)}}else if(!i&&(O.next==91||O.next==45&&O.peek(1)==62&&a(O.peek(2))||O.next==63&&O.peek(1)==45&&O.peek(2)==62&&a(O.peek(3)))&&Q.canShift(c))break;O.advance()}i&&O.acceptToken(p)}),LO=o({"Visibility abstract final static":$.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":$.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":$.controlKeyword,"and or xor yield unset clone instanceof insteadof":$.operatorKeyword,"function fn class trait implements extends const enum global interface use var":$.definitionKeyword,"include include_once require require_once namespace":$.moduleKeyword,"new from echo print array list as":$.keyword,null:$.null,Boolean:$.bool,VariableName:$.variableName,"NamespaceName/...":$.namespace,"NamedType/...":$.typeName,Name:$.name,"CallExpression/Name":$.function($.variableName),"LabelStatement/Name":$.labelName,"MemberExpression/Name":$.propertyName,"MemberExpression/VariableName":$.special($.propertyName),"ScopedExpression/ClassMemberName/Name":$.propertyName,"ScopedExpression/ClassMemberName/VariableName":$.special($.propertyName),"CallExpression/MemberExpression/Name":$.function($.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":$.function($.propertyName),"MethodDeclaration/Name":$.function($.definition($.variableName)),"FunctionDefinition/Name":$.function($.definition($.variableName)),"ClassDeclaration/Name":$.definition($.className),UpdateOp:$.updateOperator,ArithOp:$.arithmeticOperator,LogicOp:$.logicOperator,BitOp:$.bitwiseOperator,CompareOp:$.compareOperator,ControlOp:$.controlOperator,AssignOp:$.definitionOperator,"$ ConcatOp":$.operator,LineComment:$.lineComment,BlockComment:$.blockComment,Integer:$.integer,Float:$.float,String:$.string,ShellExpression:$.special($.string),"=> ->":$.punctuation,"( )":$.paren,"#[ [ ]":$.squareBracket,"${ { }":$.brace,"-> ?->":$.derefOperator,", ; :: : \\":$.separator,"PhpOpen PhpClose":$.processingInstruction}),AO={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},HO=t.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#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e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["isolate",-4,66,67,70,191,""],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[LO],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l9m<%lO9mQ;[P;=`<%l9mR;fV&wP%VQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRV<%l~8V~O8V~~%fR=OW&wPOY8VYZ9PZ!^8V!^!_;{!_;'S8V;'S;=`=h;=`<%l9m<%lO8VR=mW%VQOw9mwx:Xx#O9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#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?tRO;'S!?X;'S;=`!?};=`O!?XQ!@QWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!?X<%lO!?XQ!@oO${QQ!@rP;=`<%l!?XR!@x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[EO,CO,NO,0,1,2,3,IO],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(O,Q)=>d(O)<<1,external:d},{term:81,get:O=>AO[O]||-1}],tokenPrec:29354}),KO=l.define({name:"php",parser:HO.configure({props:[x.add({IfStatement:W({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:W({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let Q=O.textAfter,i=/^\s*\}/.test(Q),y=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(i?0:y?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":R({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:W({except:/^({|end(for|foreach|switch|while)\b)/})}),V.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":r,ColonBlock(O){return{from:O.from+1,to:O.to}},BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function JO(O={}){let Q=[],i;if(O.baseLanguage!==null)if(O.baseLanguage)i=O.baseLanguage;else{let y=U({matchClosingTags:!1});Q.push(y.support),i=y.language}return new v(KO.configure({wrap:i&&u(y=>y.type.isTop?{parser:i.parser,overlay:z=>z.name=="Text"}:null),top:O.plain?"Program":"Template"}),Q)}export{JO as php,KO as phpLanguage}; diff --git a/assets/index-6b5cec7f.js b/assets/index-dbd37248.js similarity index 99% rename from assets/index-6b5cec7f.js rename to assets/index-dbd37248.js index 6f42536..64d248f 100644 --- a/assets/index-6b5cec7f.js +++ b/assets/index-dbd37248.js @@ -1 +1 @@ -import{s as r,t as O,L as i,i as n,c as $,f as y,k as P,l as X,a as m,b as c,E as S}from"./Main-05e8c888.js";import"./index-b1080ed6.js";import"./VCard-351f29df.js";const s=110,l=1,f=2,t=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function e(T){return T>=65&&T<=90||T>=97&&T<=122||T>=161}function p(T){return T>=48&&T<=57}const W=new S((T,Q)=>{if(T.next==40){let a=T.peek(-1);(e(a)||p(a)||a==95||a==45)&&T.acceptToken(f,1)}}),d=new S(T=>{if(t.indexOf(T.peek(-1))>-1){let{next:Q}=T;(e(Q)||Q==95||Q==35||Q==46||Q==91||Q==58||Q==45)&&T.acceptToken(s)}}),Z=new S(T=>{if(t.indexOf(T.peek(-1))<0){let{next:Q}=T;if(Q==37&&(T.advance(),T.acceptToken(l)),e(Q)){do T.advance();while(e(T.next));T.acceptToken(l)}}}),w=r({"import charset namespace keyframes media supports when":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName PropertyVariable":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,"AtKeyword Interpolation":O.special(O.variableName),Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,MatchOp:O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,"Comment LineComment":O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,Escape:O.special(O.string),": ...":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),z={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},h={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},g=c.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#F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km!.|Z|`OY!.wYZ%TZw!.wwx!+cxy!.wyz!/oz#O!.w#O#P!1^#P;'S!.w;'S;=`!2e<%lO!.w]!/rWOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W<%lO!/o]!0_RO;'S!/o;'S;=`!0h;=`O!/o]!0kXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[d,Z,W,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:T=>z[T]||-1},{term:23,get:T=>h[T]||-1}],tokenPrec:2180}),o=i.define({name:"less",parser:g.configure({props:[n.add({Declaration:$()}),y.add({Block:P})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),u=X(T=>T.name=="VariableName"||T.name=="AtKeyword");function k(){return new m(o,o.data.of({autocomplete:u}))}export{k as less,u as lessCompletionSource,o as lessLanguage}; +import{s as r,t as O,L as i,i as n,c as $,f as y,k as P,l as X,a as m,b as c,E as S}from"./Main-8ffff2eb.js";import"./index-f61adea6.js";import"./VCard-e8733d6d.js";const s=110,l=1,f=2,t=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function e(T){return T>=65&&T<=90||T>=97&&T<=122||T>=161}function p(T){return T>=48&&T<=57}const W=new S((T,Q)=>{if(T.next==40){let a=T.peek(-1);(e(a)||p(a)||a==95||a==45)&&T.acceptToken(f,1)}}),d=new S(T=>{if(t.indexOf(T.peek(-1))>-1){let{next:Q}=T;(e(Q)||Q==95||Q==35||Q==46||Q==91||Q==58||Q==45)&&T.acceptToken(s)}}),Z=new S(T=>{if(t.indexOf(T.peek(-1))<0){let{next:Q}=T;if(Q==37&&(T.advance(),T.acceptToken(l)),e(Q)){do T.advance();while(e(T.next));T.acceptToken(l)}}}),w=r({"import charset namespace keyframes media supports when":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName PropertyVariable":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,"AtKeyword Interpolation":O.special(O.variableName),Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,MatchOp:O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,"Comment LineComment":O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,Escape:O.special(O.string),": ...":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),z={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},h={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},g=c.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQ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z|`OY!.wYZ%TZw!.wwx!+cxy!.wyz!/oz#O!.w#O#P!1^#P;'S!.w;'S;=`!2e<%lO!.w]!/rWOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W<%lO!/o]!0_RO;'S!/o;'S;=`!0h;=`O!/o]!0kXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[d,Z,W,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:T=>z[T]||-1},{term:23,get:T=>h[T]||-1}],tokenPrec:2180}),o=i.define({name:"less",parser:g.configure({props:[n.add({Declaration:$()}),y.add({Block:P})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),u=X(T=>T.name=="VariableName"||T.name=="AtKeyword");function k(){return new m(o,o.data.of({autocomplete:u}))}export{k as less,u as lessCompletionSource,o as lessLanguage}; diff --git a/assets/index-b1080ed6.js b/assets/index-f61adea6.js similarity index 99% rename from assets/index-b1080ed6.js rename to assets/index-f61adea6.js index e5f4cac..fa9e8d7 100644 --- a/assets/index-b1080ed6.js +++ b/assets/index-f61adea6.js @@ -6,4 +6,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Lt=typeof window<"u";function Cd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const q=Object.assign;function xr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Le(s)?s.map(e):e(s)}return n}const ln=()=>{},Le=Array.isArray,xd=/\/$/,Od=e=>e.replace(xd,"");function Or(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Rd(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function Ad(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ko(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pd(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&zt(t.matched[r],n.matched[s])&&Ha(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ha(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Sd(e[n],t[n]))return!1;return!0}function Sd(e,t){return Le(e)?Wo(e,t):Le(t)?Wo(t,e):e===t}function Wo(e,t){return Le(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Rd(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var wn;(function(e){e.pop="pop",e.push="push"})(wn||(wn={}));var cn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cn||(cn={}));function Td(e){if(!e)if(Lt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Od(e)}const Md=/^[^#]+#/;function Dd(e,t){return e.replace(Md,"#")+t}function kd(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ur=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fd(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=kd(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Vo(e,t){return(history.state?history.state.position-t:-1)+e}const Kr=new Map;function Id(e,t){Kr.set(e,t)}function Nd(e){const t=Kr.get(e);return Kr.delete(e),t}let $d=()=>location.protocol+"//"+location.host;function Ua(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Ko(l,"")}return Ko(n,e)+r+s}function Ld(e,t,n,r){let s=[],o=[],i=null;const a=({state:h})=>{const m=Ua(e,location),v=n.value,_=t.value;let D=0;if(h){if(n.value=m,t.value=h,i&&i===v){i=null;return}D=_?h.position-_.position:0}else r(m);s.forEach(R=>{R(n.value,v,{delta:D,type:wn.pop,direction:D?D>0?cn.forward:cn.back:cn.unknown})})};function l(){i=n.value}function c(h){s.push(h);const m=()=>{const v=s.indexOf(h);v>-1&&s.splice(v,1)};return o.push(m),m}function u(){const{history:h}=window;h.state&&h.replaceState(q({},h.state,{scroll:ur()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Yo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ur():null}}function Bd(e){const{history:t,location:n}=window,r={value:Ua(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:$d()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),s.value=c}catch(m){console.error(m),n[u?"replace":"assign"](h)}}function i(l,c){const u=q({},t.state,Yo(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});o(l,u,!0),r.value=l}function a(l,c){const u=q({},s.value,t.state,{forward:l,scroll:ur()});o(u.current,u,!0);const f=q({},Yo(r.value,l,null),{position:u.position+1},c);o(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function jd(e){e=Td(e);const t=Bd(e),n=Ld(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=q({location:"",base:e,go:r,createHref:Dd.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Hd(e){return typeof e=="string"||e&&typeof e=="object"}function Ka(e){return typeof e=="string"||typeof e=="symbol"}const st={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Wa=Symbol("");var zo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(zo||(zo={}));function Gt(e,t){return q(new Error,{type:e,[Wa]:!0},t)}function Ge(e,t){return e instanceof Error&&Wa in e&&(t==null||!!(e.type&t))}const Go="[^/]+?",Ud={sensitive:!1,strict:!1,start:!0,end:!0},Kd=/[.+*?^${}()[\]/\\]/g;function Wd(e,t){const n=q({},Ud,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Yd(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const zd={type:0,value:""},Gd=/[a-zA-Z0-9_]/;function qd(e){if(!e)return[[]];if(e==="/")return[[zd]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,c="",u="";function f(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{i(T)}:ln}function i(u){if(Ka(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Va(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Jo(u)&&r.set(u.record.name,u)}function c(u,f){let h,m={},v,_;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Gt(1,{location:u});_=h.record.name,m=q(Zo(f.params,h.keys.filter(T=>!T.optional).map(T=>T.name)),u.params&&Zo(u.params,h.keys.map(T=>T.name))),v=h.stringify(m)}else if("path"in u)v=u.path,h=n.find(T=>T.re.test(v)),h&&(m=h.parse(v),_=h.record.name);else{if(h=f.name?r.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw Gt(1,{location:u,currentLocation:f});_=h.record.name,m=q({},f.params,u.params),v=h.stringify(m)}const D=[];let R=h;for(;R;)D.unshift(R.record),R=R.parent;return{name:_,path:v,params:m,matched:D,meta:eh(D)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function Zo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Xd(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Qd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Qd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Jo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eh(e){return e.reduce((t,n)=>q(t,n.meta),{})}function Xo(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Va(e,t){return t.children.some(n=>n===e||Va(e,n))}const Ya=/#/g,th=/&/g,nh=/\//g,rh=/=/g,sh=/\?/g,za=/\+/g,oh=/%5B/g,ih=/%5D/g,Ga=/%5E/g,ah=/%60/g,qa=/%7B/g,lh=/%7C/g,Za=/%7D/g,ch=/%20/g;function Es(e){return encodeURI(""+e).replace(lh,"|").replace(oh,"[").replace(ih,"]")}function uh(e){return Es(e).replace(qa,"{").replace(Za,"}").replace(Ga,"^")}function Wr(e){return Es(e).replace(za,"%2B").replace(ch,"+").replace(Ya,"%23").replace(th,"%26").replace(ah,"`").replace(qa,"{").replace(Za,"}").replace(Ga,"^")}function fh(e){return Wr(e).replace(rh,"%3D")}function dh(e){return Es(e).replace(Ya,"%23").replace(sh,"%3F")}function hh(e){return e==null?"":dh(e).replace(nh,"%2F")}function qn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ph(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Wr(o)):[r&&Wr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Le(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const mh=Symbol(""),ei=Symbol(""),Cs=Symbol(""),Ja=Symbol(""),Vr=Symbol("");function tn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function lt(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Gt(4,{from:n,to:t})):f instanceof Error?a(f):Hd(f)?a(Gt(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},c=e.call(r&&r.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function Ar(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(vh(a)){const c=(a.__vccOpts||a)[t];c&&s.push(lt(c,n,r,o,i))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=Cd(c)?c.default:c;o.components[i]=u;const h=(u.__vccOpts||u)[t];return h&<(h,n,r,o,i)()}))}}return s}function vh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ti(e){const t=be(Cs),n=be(Ja),r=Z(()=>t.resolve(ke(e.to))),s=Z(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(zt.bind(null,u));if(h>-1)return h;const m=ni(l[c-2]);return c>1&&ni(u)===m&&f[f.length-1].path!==m?f.findIndex(zt.bind(null,l[c-2])):h}),o=Z(()=>s.value>-1&&_h(n.params,r.value.params)),i=Z(()=>s.value>-1&&s.value===n.matched.length-1&&Ha(n.params,r.value.params));function a(l={}){return wh(l)?t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(ln):Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}const yh=ds({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ti,setup(e,{slots:t}){const n=ht(ti(e)),{options:r}=be(Cs),s=Z(()=>({[ri(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ri(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:lr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),bh=yh;function wh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _h(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Le(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function ni(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ri=(e,t,n)=>e??t??n,Eh=ds({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=be(Vr),s=Z(()=>e.route||r.value),o=be(ei,0),i=Z(()=>{let c=ke(o);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Z(()=>s.value.matched[i.value]);xt(ei,Z(()=>i.value+1)),xt(mh,a),xt(Vr,s);const l=Qe();return We(()=>[l.value,a.value,e.name],([c,u,f],[h,m,v])=>{u&&(u.instances[f]=c,m&&m!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!zt(u,m)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return si(n.default,{Component:h,route:c});const m=f.props[u],v=m?m===!0?c.params:typeof m=="function"?m(c):m:null,D=lr(h,q({},v,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return si(n.default,{Component:D,route:c})||D}}});function si(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ch=Eh;function xh(e){const t=Jd(e.routes,e),n=e.parseQuery||ph,r=e.stringifyQuery||Qo,s=e.history,o=tn(),i=tn(),a=tn(),l=Ct(st);let c=st;Lt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=xr.bind(null,b=>""+b),f=xr.bind(null,hh),h=xr.bind(null,qn);function m(b,S){let A,I;return Ka(b)?(A=t.getRecordMatcher(b),I=S):I=b,t.addRoute(I,A)}function v(b){const S=t.getRecordMatcher(b);S&&t.removeRoute(S)}function _(){return t.getRoutes().map(b=>b.record)}function D(b){return!!t.getRecordMatcher(b)}function R(b,S){if(S=q({},S||l.value),typeof b=="string"){const g=Or(n,b,S.path),y=t.resolve({path:g.path},S),w=s.createHref(g.fullPath);return q(g,y,{params:h(y.params),hash:qn(g.hash),redirectedFrom:void 0,href:w})}let A;if("path"in b)A=q({},b,{path:Or(n,b.path,S.path).path});else{const g=q({},b.params);for(const y in g)g[y]==null&&delete g[y];A=q({},b,{params:f(g)}),S.params=f(S.params)}const I=t.resolve(A,S),z=b.hash||"";I.params=u(h(I.params));const d=Ad(r,q({},b,{hash:uh(z),path:I.path})),p=s.createHref(d);return q({fullPath:d,hash:z,query:r===Qo?gh(b.query):b.query||{}},I,{redirectedFrom:void 0,href:p})}function T(b){return typeof b=="string"?Or(n,b,l.value.path):q({},b)}function U(b,S){if(c!==b)return Gt(8,{from:S,to:b})}function k(b){return pe(b)}function J(b){return k(q(T(b),{replace:!0}))}function ie(b){const S=b.matched[b.matched.length-1];if(S&&S.redirect){const{redirect:A}=S;let I=typeof A=="function"?A(b):A;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=T(I):{path:I},I.params={}),q({query:b.query,hash:b.hash,params:"path"in I?{}:b.params},I)}}function pe(b,S){const A=c=R(b),I=l.value,z=b.state,d=b.force,p=b.replace===!0,g=ie(A);if(g)return pe(q(T(g),{state:typeof g=="object"?q({},z,g.state):z,force:d,replace:p}),S||A);const y=A;y.redirectedFrom=S;let w;return!d&&Pd(r,I,A)&&(w=Gt(16,{to:y,from:I}),Be(I,I,!0,!1)),(w?Promise.resolve(w):X(y,I)).catch(E=>Ge(E)?Ge(E,2)?E:tt(E):Y(E,y,I)).then(E=>{if(E){if(Ge(E,2))return pe(q({replace:p},T(E.to),{state:typeof E.to=="object"?q({},z,E.to.state):z,force:d}),S||y)}else E=F(y,I,!0,p,z);return fe(y,I,E),E})}function H(b,S){const A=U(b,S);return A?Promise.reject(A):Promise.resolve()}function re(b){const S=kt.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(b):b()}function X(b,S){let A;const[I,z,d]=Oh(b,S);A=Ar(I.reverse(),"beforeRouteLeave",b,S);for(const g of I)g.leaveGuards.forEach(y=>{A.push(lt(y,b,S))});const p=H.bind(null,b,S);return A.push(p),ge(A).then(()=>{A=[];for(const g of o.list())A.push(lt(g,b,S));return A.push(p),ge(A)}).then(()=>{A=Ar(z,"beforeRouteUpdate",b,S);for(const g of z)g.updateGuards.forEach(y=>{A.push(lt(y,b,S))});return A.push(p),ge(A)}).then(()=>{A=[];for(const g of d)if(g.beforeEnter)if(Le(g.beforeEnter))for(const y of g.beforeEnter)A.push(lt(y,b,S));else A.push(lt(g.beforeEnter,b,S));return A.push(p),ge(A)}).then(()=>(b.matched.forEach(g=>g.enterCallbacks={}),A=Ar(d,"beforeRouteEnter",b,S),A.push(p),ge(A))).then(()=>{A=[];for(const g of i.list())A.push(lt(g,b,S));return A.push(p),ge(A)}).catch(g=>Ge(g,8)?g:Promise.reject(g))}function fe(b,S,A){a.list().forEach(I=>re(()=>I(b,S,A)))}function F(b,S,A,I,z){const d=U(b,S);if(d)return d;const p=S===st,g=Lt?history.state:{};A&&(I||p?s.replace(b.fullPath,q({scroll:p&&g&&g.scroll},z)):s.push(b.fullPath,z)),l.value=b,Be(b,S,A,p),tt()}let G;function ve(){G||(G=s.listen((b,S,A)=>{if(!On.listening)return;const I=R(b),z=ie(I);if(z){pe(q(z,{replace:!0}),I).catch(ln);return}c=I;const d=l.value;Lt&&Id(Vo(d.fullPath,A.delta),ur()),X(I,d).catch(p=>Ge(p,12)?p:Ge(p,2)?(pe(p.to,I).then(g=>{Ge(g,20)&&!A.delta&&A.type===wn.pop&&s.go(-1,!1)}).catch(ln),Promise.reject()):(A.delta&&s.go(-A.delta,!1),Y(p,I,d))).then(p=>{p=p||F(I,d,!1),p&&(A.delta&&!Ge(p,8)?s.go(-A.delta,!1):A.type===wn.pop&&Ge(p,20)&&s.go(-1,!1)),fe(I,d,p)}).catch(ln)}))}let Ye=tn(),ae=tn(),ee;function Y(b,S,A){tt(b);const I=ae.list();return I.length?I.forEach(z=>z(b,S,A)):console.error(b),Promise.reject(b)}function ze(){return ee&&l.value!==st?Promise.resolve():new Promise((b,S)=>{Ye.add([b,S])})}function tt(b){return ee||(ee=!b,ve(),Ye.list().forEach(([S,A])=>b?A(b):S()),Ye.reset()),b}function Be(b,S,A,I){const{scrollBehavior:z}=e;if(!Lt||!z)return Promise.resolve();const d=!A&&Nd(Vo(b.fullPath,0))||(I||!A)&&history.state&&history.state.scroll||null;return dn().then(()=>z(b,S,d)).then(p=>p&&Fd(p)).catch(p=>Y(p,b,S))}const we=b=>s.go(b);let Dt;const kt=new Set,On={currentRoute:l,listening:!0,addRoute:m,removeRoute:v,hasRoute:D,getRoutes:_,resolve:R,options:e,push:k,replace:J,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ae.add,isReady:ze,install(b){const S=this;b.component("RouterLink",bh),b.component("RouterView",Ch),b.config.globalProperties.$router=S,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(l)}),Lt&&!Dt&&l.value===st&&(Dt=!0,k(s.location).catch(z=>{}));const A={};for(const z in st)Object.defineProperty(A,z,{get:()=>l.value[z],enumerable:!0});b.provide(Cs,S),b.provide(Ja,Pi(A)),b.provide(Vr,l);const I=b.unmount;kt.add(b),b.unmount=function(){kt.delete(b),kt.size<1&&(c=st,G&&G(),G=null,l.value=st,Dt=!1,ee=!1),I()}}};function ge(b){return b.reduce((S,A)=>S.then(()=>re(A)),Promise.resolve())}return On}function Oh(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;izt(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>zt(c,l))||s.push(l))}return[n,r,s]}const Ah=[{path:"/",component:()=>Uo(()=>import("./Default-1dc9e720.js"),["assets/Default-1dc9e720.js","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css","assets/Default-e7b00e9f.css"]),children:[{path:"",name:"Introduction",component:()=>Uo(()=>import("./Main-05e8c888.js").then(e=>e.M),["assets/Main-05e8c888.js","assets/VCard-351f29df.js","assets/VCard-89fe34b4.css","assets/Main-a39a52d4.css"])}]}],Xa=xh({history:jd({}.BASE_URL),mode:"hash",routes:Ah});function Ph(e){e.use(wd).use(Xa)}const Sh={__name:"App",setup(e){return(t,n)=>{const r=cc("router-view");return aa(),ca(r)}}};var Qa={exports:{}};(function(e,t){(function(){var n={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax"},r={install:function(s,o){o&&this.config(o.expires,o.path,o.domain,o.secure,o.sameSite),s.prototype&&(s.prototype.$cookies=this),s.config&&s.config.globalProperties&&(s.config.globalProperties.$cookies=this,s.provide("$cookies",this)),s.$cookies=this},config:function(s,o,i,a,l){n.expires=s||"1d",n.path=o?"; path="+o:"; path=/",n.domain=i?"; domain="+i:"",n.secure=a?"; Secure":"",n.sameSite=l?"; SameSite="+l:"; SameSite=Lax"},get:function(s){var o=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(s).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(o&&(o.substring(0,1)==="{"&&o.substring(o.length-1,o.length)==="}"||o.substring(0,1)==="["&&o.substring(o.length-1,o.length)==="]"))try{o=JSON.parse(o)}catch{return o}return o},set:function(s,o,i,a,l,c,u){if(s){if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(s))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+s)}else throw new Error("Cookie name is not found in the first argument.");o&&typeof o=="object"&&(o=JSON.stringify(o));var f="";if(i=i??n.expires,i&&i!=0)switch(i.constructor){case Number:i===1/0||i===-1?f="; expires=Fri, 31 Dec 9999 23:59:59 GMT":f="; max-age="+i;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(i)){var h=i.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(i.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":f="; max-age="+ +h*2592e3;break;case"d":f="; max-age="+ +h*86400;break;case"h":f="; max-age="+ +h*3600;break;case"min":f="; max-age="+ +h*60;break;case"s":f="; max-age="+h;break;case"y":f="; max-age="+ +h*31104e3;break}}else f="; expires="+i;break;case Date:f="; expires="+i.toUTCString();break}return document.cookie=encodeURIComponent(s)+"="+encodeURIComponent(o)+f+(l?"; domain="+l:n.domain)+(a?"; path="+a:n.path)+(c==null?n.secure:c?"; Secure":"")+(u==null?n.sameSite:u?"; SameSite="+u:""),this},remove:function(s,o,i){return!s||!this.isKey(s)?!1:(document.cookie=encodeURIComponent(s)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:n.domain)+(o?"; path="+o:n.path)+"; SameSite=Lax",!0)},isKey:function(s){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(s).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var s=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),o=0;o1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(r,s){if(!(typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");if(i.async=!0,i.src=t,i.defer=n.defer,n.preconnectOrigin){var a=document.createElement("link");a.href=n.preconnectOrigin,a.rel="preconnect",o.appendChild(a)}o.appendChild(i),i.onload=r,i.onerror=s}})},Mh=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s"u"||typeof document>"u")},ii=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Cn()},Dh=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ii('Missing "appName" property inside the plugin options.',t.app_name==null),ii('Missing "name" property in the route.',t.screen_name==null),t};function kh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("/"),r=t.split("/");return n[0]===""&&t[t.length-1]==="/"&&n.shift(),r.join("/")+n.join("/")}var Fh=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},el={},Ih=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Fh();el=Mh(n,t)},Ae=function(){return el},St=function(){var e,t=Ae(),n=t.globalObjectName;!Cn()||typeof window[n]>"u"||(e=window)[n].apply(e,arguments)},xs=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=Ae(),n=t.config,r=t.includes;ai(n.id,e),Array.isArray(r)&&r.forEach(function(s){return ai(s.id,e)})},nl=function(){tl(!0)},Nh=function(){tl(!1)},rl,$h=function(t){rl=t},Os=function(){return rl},Mt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ae(),r=n.includes,s=n.defaultGroupName;t.send_to==null&&Array.isArray(r)&&r.length&&(t.send_to=r.map(function(o){return o.id}).concat(s)),St("event",e,t)},sl=function(e){if(Cn()){var t;if(typeof e=="string")t={page_path:e};else if(e.path||e.fullPath){var n=Ae(),r=n.pageTrackerUseFullPath,s=n.pageTrackerPrependBase,o=Os(),i=o&&o.options.base,a=r?e.fullPath:e.path;t=zr(zr({},e.name&&{page_title:e.name}),{},{page_path:s?kh(a,i):a})}else t=e;t.page_location==null&&(t.page_location=window.location.href),t.send_page_view==null&&(t.send_page_view=!0),Mt("page_view",t)}},ol=function(e){var t=Ae(),n=t.appName;if(e){var r;typeof e=="string"?r={screen_name:e}:r=e,r.app_name=r.app_name||n,Mt("screen_view",r)}},Lh=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ae(),r=n.appName,s=n.pageTrackerTemplate,o=n.pageTrackerScreenviewEnabled,i=n.pageTrackerSkipSamePath;if(!(i&&e.path===t.path)){var a=e;if(B(s)?a=s(e,t):o&&(a=Dh({app_name:r,screen_name:e.name})),o){ol(a);return}sl(a)}},ui=function(t){var n=Ae(),r=n.pageTrackerExcludedRoutes;return r.includes(t.path)||r.includes(t.name)},Gh=function(){var e=Ae(),t=e.onBeforeTrack,n=e.onAfterTrack,r=Os();r.isReady().then(function(){dn().then(function(){var s=r.currentRoute;il(),!ui(s.value)&&ci(s.value)}),r.afterEach(function(s,o){dn().then(function(){ui(s)||(B(t)&&t(s,o),ci(s,o),B(n)&&n(s,o))})})})},qh=function(){var e=Ae(),t=e.onReady,n=e.onError,r=e.globalObjectName,s=e.globalDataLayerName,o=e.config,i=e.customResourceURL,a=e.customPreconnectOrigin,l=e.deferScriptLoad,c=e.pageTrackerEnabled,u=e.disableScriptLoad,f=!!(c&&Os());if(zh(),f?Gh():il(),!u)return Th("".concat(i,"?id=").concat(o.id,"&l=").concat(s),{preconnectOrigin:a,defer:l}).then(function(){t&&t(window[r])}).catch(function(h){return n&&n(h),h})},Zh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;Yh(t),Ih(n),$h(r),Ae().bootstrap&&qh()};const xn=Du(Sh);Ph(xn);xn.use(Rh.VueCookies);xn.use(Zh,{config:{id:"G-KY34G7DB1G"},appName:"Grafan Debugger",pageTrackerScreenviewEnabled:!0},Xa);xn.mount("#app");xn.config.globalProperties.window=window;export{En as $,Xh as A,Op as B,Uu as C,We as D,Ef as E,Nu as F,da as G,nr as H,Vc as I,fa as J,ds as K,dt as L,dn as M,lr as N,Se as O,$r as P,Lu as Q,pd as R,wp as S,Pp as T,tp as U,ep as V,op as W,Rp as X,_n as Y,W as Z,Uo as _,ht as a,Cp as a0,zu as a1,cp as a2,ju as a3,hp as a4,pp as a5,Ii as a6,Ap as a7,gp as a8,Bu as a9,Wu as aA,or as aB,Qh as aC,_p as aD,po as aE,dp as aF,vp as aa,ke as ab,yc as ac,mp as ad,Ep as ae,rp as af,Mt as ag,sp as ah,Jh as ai,np as aj,ap as ak,bp as al,Ve as am,Ie as an,fp as ao,Si as ap,ip as aq,ga as ar,lp as as,he as at,yp as au,lf as av,xp as aw,Je as ax,mf as ay,Tp as az,xt as b,Z as c,Ma as d,mc as e,gc as f,Tt as g,Ji as h,be as i,up as j,Er as k,wf as l,oe as m,cc as n,qi as o,ws as p,aa as q,Qe as r,Ct as s,ca as t,kp as u,Qr as v,rc as w,Mp as x,Dp as y,Sp as z}; + */const Lt=typeof window<"u";function Cd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const q=Object.assign;function xr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Le(s)?s.map(e):e(s)}return n}const ln=()=>{},Le=Array.isArray,xd=/\/$/,Od=e=>e.replace(xd,"");function Or(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Rd(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function Ad(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ko(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pd(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&zt(t.matched[r],n.matched[s])&&Ha(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ha(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Sd(e[n],t[n]))return!1;return!0}function Sd(e,t){return Le(e)?Wo(e,t):Le(t)?Wo(t,e):e===t}function Wo(e,t){return Le(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Rd(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var wn;(function(e){e.pop="pop",e.push="push"})(wn||(wn={}));var cn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cn||(cn={}));function Td(e){if(!e)if(Lt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Od(e)}const Md=/^[^#]+#/;function Dd(e,t){return e.replace(Md,"#")+t}function kd(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ur=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fd(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=kd(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Vo(e,t){return(history.state?history.state.position-t:-1)+e}const Kr=new Map;function Id(e,t){Kr.set(e,t)}function Nd(e){const t=Kr.get(e);return Kr.delete(e),t}let $d=()=>location.protocol+"//"+location.host;function Ua(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Ko(l,"")}return Ko(n,e)+r+s}function Ld(e,t,n,r){let s=[],o=[],i=null;const a=({state:h})=>{const m=Ua(e,location),v=n.value,_=t.value;let D=0;if(h){if(n.value=m,t.value=h,i&&i===v){i=null;return}D=_?h.position-_.position:0}else r(m);s.forEach(R=>{R(n.value,v,{delta:D,type:wn.pop,direction:D?D>0?cn.forward:cn.back:cn.unknown})})};function l(){i=n.value}function c(h){s.push(h);const m=()=>{const v=s.indexOf(h);v>-1&&s.splice(v,1)};return o.push(m),m}function u(){const{history:h}=window;h.state&&h.replaceState(q({},h.state,{scroll:ur()}),"")}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Yo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ur():null}}function Bd(e){const{history:t,location:n}=window,r={value:Ua(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:$d()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),s.value=c}catch(m){console.error(m),n[u?"replace":"assign"](h)}}function i(l,c){const u=q({},t.state,Yo(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});o(l,u,!0),r.value=l}function a(l,c){const u=q({},s.value,t.state,{forward:l,scroll:ur()});o(u.current,u,!0);const f=q({},Yo(r.value,l,null),{position:u.position+1},c);o(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function jd(e){e=Td(e);const t=Bd(e),n=Ld(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=q({location:"",base:e,go:r,createHref:Dd.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Hd(e){return typeof e=="string"||e&&typeof e=="object"}function Ka(e){return typeof e=="string"||typeof e=="symbol"}const st={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Wa=Symbol("");var zo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(zo||(zo={}));function Gt(e,t){return q(new Error,{type:e,[Wa]:!0},t)}function Ge(e,t){return e instanceof Error&&Wa in e&&(t==null||!!(e.type&t))}const Go="[^/]+?",Ud={sensitive:!1,strict:!1,start:!0,end:!0},Kd=/[.+*?^${}()[\]/\\]/g;function Wd(e,t){const n=q({},Ud,t),r=[];let s=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Yd(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const zd={type:0,value:""},Gd=/[a-zA-Z0-9_]/;function qd(e){if(!e)return[[]];if(e==="/")return[[zd]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,c="",u="";function f(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{i(T)}:ln}function i(u){if(Ka(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Va(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Jo(u)&&r.set(u.record.name,u)}function c(u,f){let h,m={},v,_;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw Gt(1,{location:u});_=h.record.name,m=q(Zo(f.params,h.keys.filter(T=>!T.optional).map(T=>T.name)),u.params&&Zo(u.params,h.keys.map(T=>T.name))),v=h.stringify(m)}else if("path"in u)v=u.path,h=n.find(T=>T.re.test(v)),h&&(m=h.parse(v),_=h.record.name);else{if(h=f.name?r.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw Gt(1,{location:u,currentLocation:f});_=h.record.name,m=q({},f.params,u.params),v=h.stringify(m)}const D=[];let R=h;for(;R;)D.unshift(R.record),R=R.parent;return{name:_,path:v,params:m,matched:D,meta:eh(D)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function Zo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Xd(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Qd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Qd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Jo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eh(e){return e.reduce((t,n)=>q(t,n.meta),{})}function Xo(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Va(e,t){return t.children.some(n=>n===e||Va(e,n))}const Ya=/#/g,th=/&/g,nh=/\//g,rh=/=/g,sh=/\?/g,za=/\+/g,oh=/%5B/g,ih=/%5D/g,Ga=/%5E/g,ah=/%60/g,qa=/%7B/g,lh=/%7C/g,Za=/%7D/g,ch=/%20/g;function Es(e){return encodeURI(""+e).replace(lh,"|").replace(oh,"[").replace(ih,"]")}function uh(e){return Es(e).replace(qa,"{").replace(Za,"}").replace(Ga,"^")}function Wr(e){return Es(e).replace(za,"%2B").replace(ch,"+").replace(Ya,"%23").replace(th,"%26").replace(ah,"`").replace(qa,"{").replace(Za,"}").replace(Ga,"^")}function fh(e){return Wr(e).replace(rh,"%3D")}function dh(e){return Es(e).replace(Ya,"%23").replace(sh,"%3F")}function hh(e){return e==null?"":dh(e).replace(nh,"%2F")}function qn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ph(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Wr(o)):[r&&Wr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Le(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const mh=Symbol(""),ei=Symbol(""),Cs=Symbol(""),Ja=Symbol(""),Vr=Symbol("");function tn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function lt(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Gt(4,{from:n,to:t})):f instanceof Error?a(f):Hd(f)?a(Gt(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},c=e.call(r&&r.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function Ar(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(vh(a)){const c=(a.__vccOpts||a)[t];c&&s.push(lt(c,n,r,o,i))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=Cd(c)?c.default:c;o.components[i]=u;const h=(u.__vccOpts||u)[t];return h&<(h,n,r,o,i)()}))}}return s}function vh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ti(e){const t=be(Cs),n=be(Ja),r=Z(()=>t.resolve(ke(e.to))),s=Z(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(zt.bind(null,u));if(h>-1)return h;const m=ni(l[c-2]);return c>1&&ni(u)===m&&f[f.length-1].path!==m?f.findIndex(zt.bind(null,l[c-2])):h}),o=Z(()=>s.value>-1&&_h(n.params,r.value.params)),i=Z(()=>s.value>-1&&s.value===n.matched.length-1&&Ha(n.params,r.value.params));function a(l={}){return wh(l)?t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(ln):Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}const yh=ds({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ti,setup(e,{slots:t}){const n=ht(ti(e)),{options:r}=be(Cs),s=Z(()=>({[ri(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ri(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:lr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),bh=yh;function wh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _h(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Le(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function ni(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ri=(e,t,n)=>e??t??n,Eh=ds({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=be(Vr),s=Z(()=>e.route||r.value),o=be(ei,0),i=Z(()=>{let c=ke(o);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Z(()=>s.value.matched[i.value]);xt(ei,Z(()=>i.value+1)),xt(mh,a),xt(Vr,s);const l=Qe();return We(()=>[l.value,a.value,e.name],([c,u,f],[h,m,v])=>{u&&(u.instances[f]=c,m&&m!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!zt(u,m)||!h)&&(u.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return si(n.default,{Component:h,route:c});const m=f.props[u],v=m?m===!0?c.params:typeof m=="function"?m(c):m:null,D=lr(h,q({},v,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return si(n.default,{Component:D,route:c})||D}}});function si(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ch=Eh;function xh(e){const t=Jd(e.routes,e),n=e.parseQuery||ph,r=e.stringifyQuery||Qo,s=e.history,o=tn(),i=tn(),a=tn(),l=Ct(st);let c=st;Lt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=xr.bind(null,b=>""+b),f=xr.bind(null,hh),h=xr.bind(null,qn);function m(b,S){let A,I;return Ka(b)?(A=t.getRecordMatcher(b),I=S):I=b,t.addRoute(I,A)}function v(b){const S=t.getRecordMatcher(b);S&&t.removeRoute(S)}function _(){return t.getRoutes().map(b=>b.record)}function D(b){return!!t.getRecordMatcher(b)}function R(b,S){if(S=q({},S||l.value),typeof b=="string"){const g=Or(n,b,S.path),y=t.resolve({path:g.path},S),w=s.createHref(g.fullPath);return q(g,y,{params:h(y.params),hash:qn(g.hash),redirectedFrom:void 0,href:w})}let A;if("path"in b)A=q({},b,{path:Or(n,b.path,S.path).path});else{const g=q({},b.params);for(const y in g)g[y]==null&&delete g[y];A=q({},b,{params:f(g)}),S.params=f(S.params)}const I=t.resolve(A,S),z=b.hash||"";I.params=u(h(I.params));const d=Ad(r,q({},b,{hash:uh(z),path:I.path})),p=s.createHref(d);return q({fullPath:d,hash:z,query:r===Qo?gh(b.query):b.query||{}},I,{redirectedFrom:void 0,href:p})}function T(b){return typeof b=="string"?Or(n,b,l.value.path):q({},b)}function U(b,S){if(c!==b)return Gt(8,{from:S,to:b})}function k(b){return pe(b)}function J(b){return k(q(T(b),{replace:!0}))}function ie(b){const S=b.matched[b.matched.length-1];if(S&&S.redirect){const{redirect:A}=S;let I=typeof A=="function"?A(b):A;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=T(I):{path:I},I.params={}),q({query:b.query,hash:b.hash,params:"path"in I?{}:b.params},I)}}function pe(b,S){const A=c=R(b),I=l.value,z=b.state,d=b.force,p=b.replace===!0,g=ie(A);if(g)return pe(q(T(g),{state:typeof g=="object"?q({},z,g.state):z,force:d,replace:p}),S||A);const y=A;y.redirectedFrom=S;let w;return!d&&Pd(r,I,A)&&(w=Gt(16,{to:y,from:I}),Be(I,I,!0,!1)),(w?Promise.resolve(w):X(y,I)).catch(E=>Ge(E)?Ge(E,2)?E:tt(E):Y(E,y,I)).then(E=>{if(E){if(Ge(E,2))return pe(q({replace:p},T(E.to),{state:typeof E.to=="object"?q({},z,E.to.state):z,force:d}),S||y)}else E=F(y,I,!0,p,z);return fe(y,I,E),E})}function H(b,S){const A=U(b,S);return A?Promise.reject(A):Promise.resolve()}function re(b){const S=kt.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(b):b()}function X(b,S){let A;const[I,z,d]=Oh(b,S);A=Ar(I.reverse(),"beforeRouteLeave",b,S);for(const g of I)g.leaveGuards.forEach(y=>{A.push(lt(y,b,S))});const p=H.bind(null,b,S);return A.push(p),ge(A).then(()=>{A=[];for(const g of o.list())A.push(lt(g,b,S));return A.push(p),ge(A)}).then(()=>{A=Ar(z,"beforeRouteUpdate",b,S);for(const g of z)g.updateGuards.forEach(y=>{A.push(lt(y,b,S))});return A.push(p),ge(A)}).then(()=>{A=[];for(const g of d)if(g.beforeEnter)if(Le(g.beforeEnter))for(const y of g.beforeEnter)A.push(lt(y,b,S));else A.push(lt(g.beforeEnter,b,S));return A.push(p),ge(A)}).then(()=>(b.matched.forEach(g=>g.enterCallbacks={}),A=Ar(d,"beforeRouteEnter",b,S),A.push(p),ge(A))).then(()=>{A=[];for(const g of i.list())A.push(lt(g,b,S));return A.push(p),ge(A)}).catch(g=>Ge(g,8)?g:Promise.reject(g))}function fe(b,S,A){a.list().forEach(I=>re(()=>I(b,S,A)))}function F(b,S,A,I,z){const d=U(b,S);if(d)return d;const p=S===st,g=Lt?history.state:{};A&&(I||p?s.replace(b.fullPath,q({scroll:p&&g&&g.scroll},z)):s.push(b.fullPath,z)),l.value=b,Be(b,S,A,p),tt()}let G;function ve(){G||(G=s.listen((b,S,A)=>{if(!On.listening)return;const I=R(b),z=ie(I);if(z){pe(q(z,{replace:!0}),I).catch(ln);return}c=I;const d=l.value;Lt&&Id(Vo(d.fullPath,A.delta),ur()),X(I,d).catch(p=>Ge(p,12)?p:Ge(p,2)?(pe(p.to,I).then(g=>{Ge(g,20)&&!A.delta&&A.type===wn.pop&&s.go(-1,!1)}).catch(ln),Promise.reject()):(A.delta&&s.go(-A.delta,!1),Y(p,I,d))).then(p=>{p=p||F(I,d,!1),p&&(A.delta&&!Ge(p,8)?s.go(-A.delta,!1):A.type===wn.pop&&Ge(p,20)&&s.go(-1,!1)),fe(I,d,p)}).catch(ln)}))}let Ye=tn(),ae=tn(),ee;function Y(b,S,A){tt(b);const I=ae.list();return I.length?I.forEach(z=>z(b,S,A)):console.error(b),Promise.reject(b)}function ze(){return ee&&l.value!==st?Promise.resolve():new Promise((b,S)=>{Ye.add([b,S])})}function tt(b){return ee||(ee=!b,ve(),Ye.list().forEach(([S,A])=>b?A(b):S()),Ye.reset()),b}function Be(b,S,A,I){const{scrollBehavior:z}=e;if(!Lt||!z)return Promise.resolve();const d=!A&&Nd(Vo(b.fullPath,0))||(I||!A)&&history.state&&history.state.scroll||null;return dn().then(()=>z(b,S,d)).then(p=>p&&Fd(p)).catch(p=>Y(p,b,S))}const we=b=>s.go(b);let Dt;const kt=new Set,On={currentRoute:l,listening:!0,addRoute:m,removeRoute:v,hasRoute:D,getRoutes:_,resolve:R,options:e,push:k,replace:J,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ae.add,isReady:ze,install(b){const S=this;b.component("RouterLink",bh),b.component("RouterView",Ch),b.config.globalProperties.$router=S,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(l)}),Lt&&!Dt&&l.value===st&&(Dt=!0,k(s.location).catch(z=>{}));const A={};for(const z in st)Object.defineProperty(A,z,{get:()=>l.value[z],enumerable:!0});b.provide(Cs,S),b.provide(Ja,Pi(A)),b.provide(Vr,l);const I=b.unmount;kt.add(b),b.unmount=function(){kt.delete(b),kt.size<1&&(c=st,G&&G(),G=null,l.value=st,Dt=!1,ee=!1),I()}}};function ge(b){return b.reduce((S,A)=>S.then(()=>re(A)),Promise.resolve())}return On}function Oh(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;izt(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>zt(c,l))||s.push(l))}return[n,r,s]}const Ah=[{path:"/",component:()=>Uo(()=>import("./Default-d865cde3.js"),["assets/Default-d865cde3.js","assets/VCard-e8733d6d.js","assets/VCard-89fe34b4.css","assets/Default-e7b00e9f.css"]),children:[{path:"",name:"Introduction",component:()=>Uo(()=>import("./Main-8ffff2eb.js").then(e=>e.M),["assets/Main-8ffff2eb.js","assets/VCard-e8733d6d.js","assets/VCard-89fe34b4.css","assets/Main-a39a52d4.css"])}]}],Xa=xh({history:jd({}.BASE_URL),mode:"hash",routes:Ah});function Ph(e){e.use(wd).use(Xa)}const Sh={__name:"App",setup(e){return(t,n)=>{const r=cc("router-view");return aa(),ca(r)}}};var Qa={exports:{}};(function(e,t){(function(){var n={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax"},r={install:function(s,o){o&&this.config(o.expires,o.path,o.domain,o.secure,o.sameSite),s.prototype&&(s.prototype.$cookies=this),s.config&&s.config.globalProperties&&(s.config.globalProperties.$cookies=this,s.provide("$cookies",this)),s.$cookies=this},config:function(s,o,i,a,l){n.expires=s||"1d",n.path=o?"; path="+o:"; path=/",n.domain=i?"; domain="+i:"",n.secure=a?"; Secure":"",n.sameSite=l?"; SameSite="+l:"; SameSite=Lax"},get:function(s){var o=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(s).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(o&&(o.substring(0,1)==="{"&&o.substring(o.length-1,o.length)==="}"||o.substring(0,1)==="["&&o.substring(o.length-1,o.length)==="]"))try{o=JSON.parse(o)}catch{return o}return o},set:function(s,o,i,a,l,c,u){if(s){if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(s))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+s)}else throw new Error("Cookie name is not found in the first argument.");o&&typeof o=="object"&&(o=JSON.stringify(o));var f="";if(i=i??n.expires,i&&i!=0)switch(i.constructor){case Number:i===1/0||i===-1?f="; expires=Fri, 31 Dec 9999 23:59:59 GMT":f="; max-age="+i;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(i)){var h=i.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(i.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":f="; max-age="+ +h*2592e3;break;case"d":f="; max-age="+ +h*86400;break;case"h":f="; max-age="+ +h*3600;break;case"min":f="; max-age="+ +h*60;break;case"s":f="; max-age="+h;break;case"y":f="; max-age="+ +h*31104e3;break}}else f="; expires="+i;break;case Date:f="; expires="+i.toUTCString();break}return document.cookie=encodeURIComponent(s)+"="+encodeURIComponent(o)+f+(l?"; domain="+l:n.domain)+(a?"; path="+a:n.path)+(c==null?n.secure:c?"; Secure":"")+(u==null?n.sameSite:u?"; SameSite="+u:""),this},remove:function(s,o,i){return!s||!this.isKey(s)?!1:(document.cookie=encodeURIComponent(s)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:n.domain)+(o?"; path="+o:n.path)+"; SameSite=Lax",!0)},isKey:function(s){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(s).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var s=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),o=0;o1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(r,s){if(!(typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");if(i.async=!0,i.src=t,i.defer=n.defer,n.preconnectOrigin){var a=document.createElement("link");a.href=n.preconnectOrigin,a.rel="preconnect",o.appendChild(a)}o.appendChild(i),i.onload=r,i.onerror=s}})},Mh=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s"u"||typeof document>"u")},ii=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Cn()},Dh=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ii('Missing "appName" property inside the plugin options.',t.app_name==null),ii('Missing "name" property in the route.',t.screen_name==null),t};function kh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("/"),r=t.split("/");return n[0]===""&&t[t.length-1]==="/"&&n.shift(),r.join("/")+n.join("/")}var Fh=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},el={},Ih=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Fh();el=Mh(n,t)},Ae=function(){return el},St=function(){var e,t=Ae(),n=t.globalObjectName;!Cn()||typeof window[n]>"u"||(e=window)[n].apply(e,arguments)},xs=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=Ae(),n=t.config,r=t.includes;ai(n.id,e),Array.isArray(r)&&r.forEach(function(s){return ai(s.id,e)})},nl=function(){tl(!0)},Nh=function(){tl(!1)},rl,$h=function(t){rl=t},Os=function(){return rl},Mt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ae(),r=n.includes,s=n.defaultGroupName;t.send_to==null&&Array.isArray(r)&&r.length&&(t.send_to=r.map(function(o){return o.id}).concat(s)),St("event",e,t)},sl=function(e){if(Cn()){var t;if(typeof e=="string")t={page_path:e};else if(e.path||e.fullPath){var n=Ae(),r=n.pageTrackerUseFullPath,s=n.pageTrackerPrependBase,o=Os(),i=o&&o.options.base,a=r?e.fullPath:e.path;t=zr(zr({},e.name&&{page_title:e.name}),{},{page_path:s?kh(a,i):a})}else t=e;t.page_location==null&&(t.page_location=window.location.href),t.send_page_view==null&&(t.send_page_view=!0),Mt("page_view",t)}},ol=function(e){var t=Ae(),n=t.appName;if(e){var r;typeof e=="string"?r={screen_name:e}:r=e,r.app_name=r.app_name||n,Mt("screen_view",r)}},Lh=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ae(),r=n.appName,s=n.pageTrackerTemplate,o=n.pageTrackerScreenviewEnabled,i=n.pageTrackerSkipSamePath;if(!(i&&e.path===t.path)){var a=e;if(B(s)?a=s(e,t):o&&(a=Dh({app_name:r,screen_name:e.name})),o){ol(a);return}sl(a)}},ui=function(t){var n=Ae(),r=n.pageTrackerExcludedRoutes;return r.includes(t.path)||r.includes(t.name)},Gh=function(){var e=Ae(),t=e.onBeforeTrack,n=e.onAfterTrack,r=Os();r.isReady().then(function(){dn().then(function(){var s=r.currentRoute;il(),!ui(s.value)&&ci(s.value)}),r.afterEach(function(s,o){dn().then(function(){ui(s)||(B(t)&&t(s,o),ci(s,o),B(n)&&n(s,o))})})})},qh=function(){var e=Ae(),t=e.onReady,n=e.onError,r=e.globalObjectName,s=e.globalDataLayerName,o=e.config,i=e.customResourceURL,a=e.customPreconnectOrigin,l=e.deferScriptLoad,c=e.pageTrackerEnabled,u=e.disableScriptLoad,f=!!(c&&Os());if(zh(),f?Gh():il(),!u)return Th("".concat(i,"?id=").concat(o.id,"&l=").concat(s),{preconnectOrigin:a,defer:l}).then(function(){t&&t(window[r])}).catch(function(h){return n&&n(h),h})},Zh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;Yh(t),Ih(n),$h(r),Ae().bootstrap&&qh()};const xn=Du(Sh);Ph(xn);xn.use(Rh.VueCookies);xn.use(Zh,{config:{id:"G-KY34G7DB1G"},appName:"Grafan Debugger",pageTrackerScreenviewEnabled:!0},Xa);xn.mount("#app");xn.config.globalProperties.window=window;export{En as $,Xh as A,Op as B,Uu as C,We as D,Ef as E,Nu as F,da as G,nr as H,Vc as I,fa as J,ds as K,dt as L,dn as M,lr as N,Se as O,$r as P,Lu as Q,pd as R,wp as S,Pp as T,tp as U,ep as V,op as W,Rp as X,_n as Y,W as Z,Uo as _,ht as a,Cp as a0,zu as a1,cp as a2,ju as a3,hp as a4,pp as a5,Ii as a6,Ap as a7,gp as a8,Bu as a9,Wu as aA,or as aB,Qh as aC,_p as aD,po as aE,dp as aF,vp as aa,ke as ab,yc as ac,mp as ad,Ep as ae,rp as af,Mt as ag,sp as ah,Jh as ai,np as aj,ap as ak,bp as al,Ve as am,Ie as an,fp as ao,Si as ap,ip as aq,ga as ar,lp as as,he as at,yp as au,lf as av,xp as aw,Je as ax,mf as ay,Tp as az,xt as b,Z as c,Ma as d,mc as e,gc as f,Tt as g,Ji as h,be as i,up as j,Er as k,wf as l,oe as m,cc as n,qi as o,ws as p,aa as q,Qe as r,Ct as s,ca as t,kp as u,Qr as v,rc as w,Mp as x,Dp as y,Sp as z}; diff --git a/index.html b/index.html index a990d95..8fb9fe0 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ Grafana Debugger | Monitoring Artist - +