diff --git a/css/main-CLWZwcZO.chunk.css b/css/main-CLWZwcZO.chunk.css deleted file mode 100644 index e92f53afa..000000000 --- a/css/main-CLWZwcZO.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.notifications-button .notification__dot{fill:#ff4402}.notifications-button .notification__dot--warning{fill:var(--color-warning)}.notifications-button .notification__dot--white{fill:var(--color-primary-text)}.notifications-button.hasNotifications{animation-name:pulse;animation-duration:1.6s;animation-iteration-count:4}.notifications-button.hasNotifications svg{opacity:1}@keyframes pulse{0%{opacity:1}60%{opacity:.85}to{opacity:1}}.notification{padding-bottom:12px}.notification:not(:last-child){border-bottom:1px solid var(--color-border)}.notification .notification-heading{display:flex;align-items:center;min-height:26px}.notification .notification-heading .notification-time{color:var(--color-text-maxcontrast);margin:13px 0 13px auto}.notification .notification-heading .notification-dismiss-button{margin:6px}.notification .notification-subject,.notification .notification-message,.notification .notification-full-message,.notification .notification-actions{margin:0 12px 12px}.notification .notification-subject{display:flex;align-items:center}.notification .notification-subject>.image{align-self:flex-start}.notification .notification-subject>span.subject,.notification .notification-subject>a>span.subject,.notification .notification-subject>.rich-text--wrapper,.notification .notification-subject>a>.rich-text--wrapper{padding-left:10px;word-wrap:anywhere}.notification .notification-message,.notification .notification-full-message{padding-left:42px;color:var(--color-text-maxcontrast)}.notification .notification-message>.collapsed,.notification .notification-full-message>.collapsed{overflow:hidden;max-height:70px}.notification .notification-message>.notification-overflow,.notification .notification-full-message>.notification-overflow{box-shadow:0 0 20px 20px var(--color-main-background);position:relative}.notification strong{font-weight:700;opacity:1}.notification .notification-actions{overflow:hidden}.notification .notification-actions .button-vue{line-height:normal;margin:2px 8px}.notification .notification-actions:first-child{margin-left:auto} diff --git a/css/main-D1MVrAjl.chunk.css b/css/main-D1MVrAjl.chunk.css new file mode 100644 index 000000000..41facb080 --- /dev/null +++ b/css/main-D1MVrAjl.chunk.css @@ -0,0 +1 @@ +.notifications-button .notifications-button__icon{height:20px}.notifications-button .notification__dot{fill:#ff4402}.notifications-button .notification__dot--warning{fill:var(--color-warning)}.notifications-button .notification__dot--white{fill:var(--color-primary-text)}.notifications-button.hasNotifications{animation-name:pulse;animation-duration:1.6s;animation-iteration-count:4}.notifications-button.hasNotifications svg{opacity:1}@keyframes pulse{0%{opacity:1}60%{opacity:.85}to{opacity:1}}.notification{padding-bottom:12px}.notification:not(:last-child){border-bottom:1px solid var(--color-border)}.notification .notification-heading{display:flex;align-items:center;min-height:26px}.notification .notification-heading .notification-time{color:var(--color-text-maxcontrast);margin:13px 0 13px auto}.notification .notification-heading .notification-dismiss-button{margin:6px}.notification .notification-subject,.notification .notification-message,.notification .notification-full-message,.notification .notification-actions{margin:0 12px 12px}.notification .notification-subject{display:flex;align-items:center}.notification .notification-subject>.image{align-self:flex-start}.notification .notification-subject>span.subject,.notification .notification-subject>a>span.subject,.notification .notification-subject>.rich-text--wrapper,.notification .notification-subject>a>.rich-text--wrapper{padding-left:10px;word-wrap:anywhere}.notification .notification-message,.notification .notification-full-message{padding-left:42px;color:var(--color-text-maxcontrast)}.notification .notification-message>.collapsed,.notification .notification-full-message>.collapsed{overflow:hidden;max-height:70px}.notification .notification-message>.notification-overflow,.notification .notification-full-message>.notification-overflow{box-shadow:0 0 20px 20px var(--color-main-background);position:relative}.notification strong{font-weight:700;opacity:1}.notification .notification-actions{overflow:hidden}.notification .notification-actions .button-vue{line-height:normal;margin:2px 8px}.notification .notification-actions:first-child{margin-left:auto} diff --git a/css/notifications-main.css b/css/notifications-main.css index b89f5cd7a..112dd1956 100644 --- a/css/notifications-main.css +++ b/css/notifications-main.css @@ -1,3 +1,3 @@ /* extracted by css-entry-points-plugin */ -@import './main-CLWZwcZO.chunk.css'; +@import './main-D1MVrAjl.chunk.css'; @import './style-YXBskS14.chunk.css'; \ No newline at end of file diff --git a/js/NotificationsApp-DpvUfGe4.chunk.mjs b/js/NotificationsApp-DpvUfGe4.chunk.mjs index 21f1bd5dd..03269df92 100644 --- a/js/NotificationsApp-DpvUfGe4.chunk.mjs +++ b/js/NotificationsApp-DpvUfGe4.chunk.mjs @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('notifications', '', 'js/index-4DwEIkIB.chunk.mjs'),window.OC.filePath('notifications', '', 'js/_plugin-vue2_normalizer-53aIz_Ja.chunk.mjs'),window.OC.filePath('notifications', '', 'js/style-yD8At2-T.chunk.mjs'),window.OC.filePath('notifications', '', 'css/style-YXBskS14.chunk.css'),window.OC.filePath('notifications', '', 'css/_plugin-vue2_normalizer-C438kvtE.chunk.css'),window.OC.filePath('notifications', '', 'js/BrowserStorage-DzGqC7Hy.chunk.mjs'),window.OC.filePath('notifications', '', 'css/BrowserStorage-CyhoevBY.chunk.css'),window.OC.filePath('notifications', '', 'js/notifications-main.mjs'),window.OC.filePath('notifications', '', 'css/main-CLWZwcZO.chunk.css')])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('notifications', '', 'js/index-4DwEIkIB.chunk.mjs'),window.OC.filePath('notifications', '', 'js/_plugin-vue2_normalizer-53aIz_Ja.chunk.mjs'),window.OC.filePath('notifications', '', 'js/style-yD8At2-T.chunk.mjs'),window.OC.filePath('notifications', '', 'css/style-YXBskS14.chunk.css'),window.OC.filePath('notifications', '', 'css/_plugin-vue2_normalizer-C438kvtE.chunk.css'),window.OC.filePath('notifications', '', 'js/BrowserStorage-DzGqC7Hy.chunk.mjs'),window.OC.filePath('notifications', '', 'css/BrowserStorage-CyhoevBY.chunk.css'),window.OC.filePath('notifications', '', 'js/notifications-main.mjs'),window.OC.filePath('notifications', '', 'css/main-D1MVrAjl.chunk.css')])))=>i.map(i=>d[i]); /*! third party licenses: js/vendor.LICENSE.txt */ import{n as At,b as Tt,e as r0,G as H0,u as ch,r as hn,f as mh,h as _h,d as cm,i as ph,j as fh,k as hh,m as Dh,o as mm,l as e0,p as yh,q as Il,w as gh,x as Eh,y as Ah,z as Ch,A as Mh,g as j0,N as vh,B as _m,c as Vt,v as Dn,C as b0,s as vr,D as Qe,E as xh,F as Wl,H as Bh,I as kh,J as Lh,K as Fh,L as wh,M as bh,O as zl,P as Ua,Q as Va}from"./_plugin-vue2_normalizer-53aIz_Ja.chunk.mjs";import{c as Ul,a as Ps,n as Yh,V as Th}from"./style-yD8At2-T.chunk.mjs";import{e as Sh,C as Hh,g as pm,c as fm,v as Oh,a as P0,E as jh,r as Ph,p as Rh,U as Vl,u as ql,S as Nh,b as Ih,B as se,d as Wh}from"./BrowserStorage-DzGqC7Hy.chunk.mjs";import{_ as zh}from"./notifications-main.mjs";const Uh={name:"BellIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Vh=function(){var u=this,r=u._self._c;return r("span",u._b({staticClass:"material-design-icon bell-icon",attrs:{"aria-hidden":u.title?null:"true","aria-label":u.title,role:"img"},on:{click:function(n){return u.$emit("click",n)}}},"span",u.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:u.fillColor,width:u.size,height:u.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21"}},[u.title?r("title",[u._v(u._s(u.title))]):u._e()])])])},qh=[],$h=At(Uh,Vh,qh,!1,null,null);const hm=$h.exports,Jh={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Gh=function(){var u=this,r=u._self._c;return r("span",u._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":u.title?null:"true","aria-label":u.title,role:"img"},on:{click:function(n){return u.$emit("click",n)}}},"span",u.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:u.fillColor,width:u.size,height:u.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[u.title?r("title",[u._v(u._s(u.title))]):u._e()])])])},Kh=[],Zh=At(Jh,Gh,Kh,!1,null,null);const Dm=Zh.exports,Qh={name:"MessageIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xh=function(){var u=this,r=u._self._c;return r("span",u._b({staticClass:"material-design-icon message-icon",attrs:{"aria-hidden":u.title?null:"true","aria-label":u.title,role:"img"},on:{click:function(n){return u.$emit("click",n)}}},"span",u.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:u.fillColor,width:u.size,height:u.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4C22,2.89 21.1,2 20,2Z"}},[u.title?r("title",[u._v(u._s(u.title))]):u._e()])])])},u6=[],e6=At(Qh,Xh,u6,!1,null,null);const ym=e6.exports,t6={__name:"IconNotification",props:{showDot:{type:Boolean,default:!1},showWarning:{type:Boolean,default:!1},size:{type:Number,default:20}},setup(u){const r=Sh()?.theming,n=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,a=d=>{const _=parseInt(d.substring(1,3),16)/255,p=parseInt(d.substring(3,5),16)/255,D=parseInt(d.substring(5,7),16)/255,y=Math.max(_,p,D),o=Math.min(_,p,D);let m=0,f=0;const E=(y+o)/2;if(y!==o){const C=y-o;switch(f=E>.5?C/(2-y-o):C/(y+o),y){case _:m=(p-D)/C+(p{if(!r?.color||!n.test(r?.color))return!1;const[d,_,p]=a(r.color);return(d>=330||d<=15)&&_>.4&&(p>.1||p<.6)}),l=Ul(()=>{if(!r?.color||!n.test(r?.color))return!1;const[d,_,p]=a(r.color);return(d>=305||d<=64)&&_>.7&&(p>.1||p<.6)});return{__sfc:!0,theming:r,hexRegex:n,hexToHSL:a,isRedThemed:s,isOrangeThemed:l,IconBell:hm}}};var n6=function(){var u=this,r=u._self._c,n=u._self._setupProxy;return u.showDot||u.showWarning?r("span",{staticClass:"notifications-button__icon"},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",width:u.size,height:u.size,viewBox:"0 0 24 24",fill:"currentColor"}},[r("path",{attrs:{d:"M 19,11.79 C 18.5,11.92 18,12 17.5,12 14.47,12 12,9.53 12,6.5 12,5.03 12.58,3.7 13.5,2.71 13.15,2.28 12.61,2 12,2 10.9,2 10,2.9 10,4 V 4.29 C 7.03,5.17 5,7.9 5,11 v 6 l -2,2 v 1 H 21 V 19 L 19,17 V 11.79 M 12,23 c 1.11,0 2,-0.89 2,-2 h -4 c 0,1.11 0.9,2 2,2 z"}}),r("path",{staticClass:"notification__dot",class:{"notification__dot--warning":u.showWarning&&!n.isOrangeThemed,"notification__dot--white":n.isRedThemed||u.showWarning&&n.isOrangeThemed},attrs:{d:"M 21,6.5 C 21,8.43 19.43,10 17.5,10 15.57,10 14,8.43 14,6.5 14,4.57 15.57,3 17.5,3 19.43,3 21,4.57 21,6.5"}})])]):r(n.IconBell,{staticClass:"notifications-button__icon",attrs:{size:u.size}})},r6=[],a6=At(t6,n6,r6,!1,null,null);const i6=a6.exports;window._vue_richtext_widgets||(window._vue_richtext_widgets={});const $l=u=>!!window._vue_richtext_widgets[u],s6=u=>!!window._vue_richtext_widgets[u]?.hasInteractiveView,o6=u=>!!window._vue_richtext_widgets[u]?.fullWidth,l6=(u,r,n=s=>{},a)=>{const s={hasInteractiveView:!0,fullWidth:!1,...a};if(window._vue_richtext_widgets[u]){console.error("Widget for id "+u+" already registered");return}window._vue_richtext_widgets[u]={id:u,callback:r,onDestroy:n,...s}},d6=(u,{richObjectType:r,richObject:n,accessible:a,interactive:s})=>{if(r!=="open-graph"){if(!window._vue_richtext_widgets[r]){console.error("Widget for rich object type "+r+" not registered");return}window._vue_richtext_widgets[r].callback(u,{richObjectType:r,richObject:n,accessible:a,interactive:s})}},c6=(u,r)=>{u!=="open-graph"&&window._vue_richtext_widgets[u]&&window._vue_richtext_widgets[u].onDestroy(r)};window._registerWidget=(u,r,n,a)=>{l6(u,r,n,a)},window._vue_richtext_custom_picker_elements||(window._vue_richtext_custom_picker_elements={});const m6=(u,r,n=s=>{},a="large")=>{if(window._vue_richtext_custom_picker_elements[u]){console.error("Custom reference picker element for id "+u+" already registered");return}window._vue_richtext_custom_picker_elements[u]={id:u,callback:r,onDestroy:n,size:a}};window._registerCustomPickerElement=m6;const _6={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){return this.description!==""||this.$slots.description?.[0]}}};var p6=function(){var u=this,r=u._self._c;return r("div",{staticClass:"empty-content",attrs:{role:"note"}},[u.$slots.icon?r("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[u._t("icon")],2):u._e(),u._t("name",function(){return[u.hasName?r("span",{staticClass:"empty-content__name"},[u._v(" "+u._s(u.name)+" ")]):u._e()]}),u.hasDescription?r("p",{staticClass:"empty-content__description"},[u._t("description",function(){return[u._v(" "+u._s(u.description)+" ")]})],2):u._e(),u.$slots.action?r("div",{staticClass:"empty-content__action"},[u._t("action")],2):u._e()],2)},f6=[],h6=Tt(_6,p6,f6,!1,null,"fede0c71");const D6=h6.exports;function ct(u,r){for(var n in r)u[n]=r[n];return u}var y6=/[!'()*]/g,g6=function(u){return"%"+u.charCodeAt(0).toString(16)},E6=/%2C/g,Gn=function(u){return encodeURIComponent(u).replace(y6,g6).replace(E6,",")};function Rs(u){try{return decodeURIComponent(u)}catch{}return u}function A6(u,r,n){r===void 0&&(r={});var a=n||C6,s;try{s=a(u||"")}catch{s={}}for(var l in r){var d=r[l];s[l]=Array.isArray(d)?d.map(Jl):Jl(d)}return s}var Jl=function(u){return u==null||typeof u=="object"?u:String(u)};function C6(u){var r={};return u=u.trim().replace(/^(\?|#|&)/,""),u&&u.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),s=Rs(a.shift()),l=a.length>0?Rs(a.join("=")):null;r[s]===void 0?r[s]=l:Array.isArray(r[s])?r[s].push(l):r[s]=[r[s],l]}),r}function M6(u){var r=u?Object.keys(u).map(function(n){var a=u[n];if(a===void 0)return"";if(a===null)return Gn(n);if(Array.isArray(a)){var s=[];return a.forEach(function(l){l!==void 0&&(l===null?s.push(Gn(n)):s.push(Gn(n)+"="+Gn(l)))}),s.join("&")}return Gn(n)+"="+Gn(a)}).filter(function(n){return n.length>0}).join("&"):null;return r?"?"+r:""}var xr=/\/?$/;function Br(u,r,n,a){var s=a&&a.options.stringifyQuery,l=r.query||{};try{l=Ns(l)}catch{}var d={name:r.name||u&&u.name,meta:u&&u.meta||{},path:r.path||"/",hash:r.hash||"",query:l,params:r.params||{},fullPath:Gl(r,s),matched:u?v6(u):[]};return n&&(d.redirectedFrom=Gl(n,s)),Object.freeze(d)}function Ns(u){if(Array.isArray(u))return u.map(Ns);if(u&&typeof u=="object"){var r={};for(var n in u)r[n]=Ns(u[n]);return r}else return u}var Kt=Br(null,{path:"/"});function v6(u){for(var r=[];u;)r.unshift(u),u=u.parent;return r}function Gl(u,r){var n=u.path,a=u.query;a===void 0&&(a={});var s=u.hash;s===void 0&&(s="");var l=r||M6;return(n||"/")+l(a)+s}function gm(u,r,n){return r===Kt?u===r:r?u.path&&r.path?u.path.replace(xr,"")===r.path.replace(xr,"")&&(n||u.hash===r.hash&&yr(u.query,r.query)):u.name&&r.name?u.name===r.name&&(n||u.hash===r.hash&&yr(u.query,r.query)&&yr(u.params,r.params)):!1:!1}function yr(u,r){if(u===void 0&&(u={}),r===void 0&&(r={}),!u||!r)return u===r;var n=Object.keys(u).sort(),a=Object.keys(r).sort();return n.length!==a.length?!1:n.every(function(s,l){var d=u[s],_=a[l];if(_!==s)return!1;var p=r[s];return d==null||p==null?d===p:typeof d=="object"&&typeof p=="object"?yr(d,p):String(d)===String(p)})}function x6(u,r){return u.path.replace(xr,"/").indexOf(r.path.replace(xr,"/"))===0&&(!r.hash||u.hash===r.hash)&&B6(u.query,r.query)}function B6(u,r){for(var n in r)if(!(n in u))return!1;return!0}function Em(u){for(var r=0;r=0&&(r=u.slice(a),u=u.slice(0,a));var s=u.indexOf("?");return s>=0&&(n=u.slice(s+1),u=u.slice(0,s)),{path:u,query:n,hash:r}}function $t(u){return u.replace(/\/(?:\s*\/)+/g,"/")}var kr=Array.isArray||function(u){return Object.prototype.toString.call(u)=="[object Array]"},Xn=vm,w6=to,b6=H6,Y6=Cm,T6=Mm,S6=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function to(u,r){for(var n=[],a=0,s=0,l="",d=r&&r.delimiter||"/",_;(_=S6.exec(u))!=null;){var p=_[0],D=_[1],y=_.index;if(l+=u.slice(s,y),s=y+p.length,D){l+=D[1];continue}var o=u[s],m=_[2],f=_[3],E=_[4],C=_[5],v=_[6],x=_[7];l&&(n.push(l),l="");var L=m!=null&&o!=null&&o!==m,Y=v==="+"||v==="*",R=v==="?"||v==="*",U=_[2]||d,H=E||C;n.push({name:f||a++,prefix:m||"",delimiter:U,optional:R,repeat:Y,partial:L,asterisk:!!x,pattern:H?P6(H):x?".*":"[^"+gr(U)+"]+?"})}return s1||!R.length)return R.length===0?u():u("span",{},R)}if(this.tag==="a")Y.on=L,Y.attrs={href:_,"aria-current":v};else{var U=xm(this.$slots.default);if(U){U.isStatic=!1;var H=U.data=ct({},U.data);H.on=H.on||{};for(var nu in H.on){var ou=H.on[nu];nu in L&&(H.on[nu]=Array.isArray(ou)?ou:[ou])}for(var eu in L)eu in H.on?H.on[eu].push(L[eu]):H.on[eu]=x;var O=U.data.attrs=ct({},U.data.attrs);O.href=_,O["aria-current"]=v}else Y.on=L}return u(this.tag,Y,this.$slots.default)}};function Xl(u){if(!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)&&!u.defaultPrevented&&!(u.button!==void 0&&u.button!==0)){if(u.currentTarget&&u.currentTarget.getAttribute){var r=u.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return u.preventDefault&&u.preventDefault(),!0}}function xm(u){if(u){for(var r,n=0;n-1&&(v.params[R]=E.params[R]);return v.path=Er(L.path,v.params),m(L,v,C)}else if(v.path){v.params={};for(var U=0;U-1}function br(u,r){return wr(u)&&u._isRouter&&(r==null||u.type===r)}function ad(u,r,n){var a=function(s){s>=u.length?n():u[s]?r(u[s],function(){a(s+1)}):a(s+1)};a(0)}function a2(u){return function(r,n,a){var s=!1,l=0,d=null;Ym(u,function(_,p,D,y){if(typeof _=="function"&&_.cid===void 0){s=!0,l++;var o=id(function(C){s2(C)&&(C=C.default),_.resolved=typeof C=="function"?C:Lr.extend(C),D.components[y]=C,l--,l<=0&&a()}),m=id(function(C){var v="Failed to resolve async component "+y+": "+C;d||(d=wr(C)?C:new Error(v),a(d))}),f;try{f=_(o,m)}catch(C){m(C)}if(f)if(typeof f.then=="function")f.then(o,m);else{var E=f.component;E&&typeof E.then=="function"&&E.then(o,m)}}}),s||a()}}function Ym(u,r){return Tm(u.map(function(n){return Object.keys(n.components).map(function(a){return r(n.components[a],n.instances[a],n,a)})}))}function Tm(u){return Array.prototype.concat.apply([],u)}var i2=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function s2(u){return u.__esModule||i2&&u[Symbol.toStringTag]==="Module"}function id(u){var r=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!r)return r=!0,u.apply(this,n)}}var dt=function(u,r){this.router=u,this.base=o2(r),this.current=Kt,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};dt.prototype.listen=function(u){this.cb=u},dt.prototype.onReady=function(u,r){this.ready?u():(this.readyCbs.push(u),r&&this.readyErrorCbs.push(r))},dt.prototype.onError=function(u){this.errorCbs.push(u)},dt.prototype.transitionTo=function(u,r,n){var a=this,s;try{s=this.router.match(u,this.current)}catch(d){throw this.errorCbs.forEach(function(_){_(d)}),d}var l=this.current;this.confirmTransition(s,function(){a.updateRoute(s),r&&r(s),a.ensureURL(),a.router.afterHooks.forEach(function(d){d&&d(s,l)}),a.ready||(a.ready=!0,a.readyCbs.forEach(function(d){d(s)}))},function(d){n&&n(d),d&&!a.ready&&(!br(d,En.redirected)||l!==Kt)&&(a.ready=!0,a.readyErrorCbs.forEach(function(_){_(d)}))})},dt.prototype.confirmTransition=function(u,r,n){var a=this,s=this.current;this.pending=u;var l=function(E){!br(E)&&wr(E)&&(a.errorCbs.length?a.errorCbs.forEach(function(C){C(E)}):console.error(E)),n&&n(E)},d=u.matched.length-1,_=s.matched.length-1;if(gm(u,s)&&d===_&&u.matched[d]===s.matched[_])return this.ensureURL(),u.hash&&Jt(this.router,s,u,!1),l(e2(s,u));var p=l2(this.current.matched,u.matched),D=p.updated,y=p.deactivated,o=p.activated,m=[].concat(c2(y),this.router.beforeHooks,m2(D),o.map(function(E){return E.beforeEnter}),a2(o)),f=function(E,C){if(a.pending!==u)return l(rd(s,u));try{E(u,s,function(v){v===!1?(a.ensureURL(!0),l(t2(s,u))):wr(v)?(a.ensureURL(!0),l(v)):typeof v=="string"||typeof v=="object"&&(typeof v.path=="string"||typeof v.name=="string")?(l(u2(s,u)),typeof v=="object"&&v.replace?a.replace(v):a.push(v)):C(v)})}catch(v){l(v)}};ad(m,f,function(){var E=_2(o),C=E.concat(a.router.resolveHooks);ad(C,f,function(){if(a.pending!==u)return l(rd(s,u));a.pending=null,r(u),a.router.app&&a.router.app.$nextTick(function(){Em(u)})})})},dt.prototype.updateRoute=function(u){this.current=u,this.cb&&this.cb(u)},dt.prototype.setupListeners=function(){},dt.prototype.teardown=function(){this.listeners.forEach(function(u){u()}),this.listeners=[],this.current=Kt,this.pending=null};function o2(u){if(!u)if(R0){var r=document.querySelector("base");u=r&&r.getAttribute("href")||"/",u=u.replace(/^https?:\/\/[^\/]+/,"")}else u="/";return u.charAt(0)!=="/"&&(u="/"+u),u.replace(/\/$/,"")}function l2(u,r){var n,a=Math.max(u.length,r.length);for(n=0;n0)){var a=this.router,s=a.options.scrollBehavior,l=Gt&&s;l&&this.listeners.push(wm());var d=function(){var _=n.current,p=w0(n.base);n.current===Kt&&p===n._startLocation||n.transitionTo(p,function(D){l&&Jt(a,D,_,!0)})};window.addEventListener("popstate",d),this.listeners.push(function(){window.removeEventListener("popstate",d)})}},r.prototype.go=function(n){window.history.go(n)},r.prototype.push=function(n,a,s){var l=this,d=this,_=d.current;this.transitionTo(n,function(p){Fr($t(l.base+p.fullPath)),Jt(l.router,p,_,!1),a&&a(p)},s)},r.prototype.replace=function(n,a,s){var l=this,d=this,_=d.current;this.transitionTo(n,function(p){zs($t(l.base+p.fullPath)),Jt(l.router,p,_,!1),a&&a(p)},s)},r.prototype.ensureURL=function(n){if(w0(this.base)!==this.current.fullPath){var a=$t(this.base+this.current.fullPath);n?Fr(a):zs(a)}},r.prototype.getCurrentLocation=function(){return w0(this.base)},r}(dt);function w0(u){var r=window.location.pathname,n=r.toLowerCase(),a=u.toLowerCase();return u&&(n===a||n.indexOf($t(a+"/"))===0)&&(r=r.slice(u.length)),(r||"/")+window.location.search+window.location.hash}var Om=function(u){function r(n,a,s){u.call(this,n,a),!(s&&f2(this.base))&&sd()}return u&&(r.__proto__=u),r.prototype=Object.create(u&&u.prototype),r.prototype.constructor=r,r.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var a=this.router,s=a.options.scrollBehavior,l=Gt&&s;l&&this.listeners.push(wm());var d=function(){var p=n.current;sd()&&n.transitionTo(Ar(),function(D){l&&Jt(n.router,D,p,!0),Gt||Cr(D.fullPath)})},_=Gt?"popstate":"hashchange";window.addEventListener(_,d),this.listeners.push(function(){window.removeEventListener(_,d)})}},r.prototype.push=function(n,a,s){var l=this,d=this,_=d.current;this.transitionTo(n,function(p){od(p.fullPath),Jt(l.router,p,_,!1),a&&a(p)},s)},r.prototype.replace=function(n,a,s){var l=this,d=this,_=d.current;this.transitionTo(n,function(p){Cr(p.fullPath),Jt(l.router,p,_,!1),a&&a(p)},s)},r.prototype.go=function(n){window.history.go(n)},r.prototype.ensureURL=function(n){var a=this.current.fullPath;Ar()!==a&&(n?od(a):Cr(a))},r.prototype.getCurrentLocation=function(){return Ar()},r}(dt);function f2(u){var r=w0(u);if(!/^\/#/.test(r))return window.location.replace($t(u+"/#"+r)),!0}function sd(){var u=Ar();return u.charAt(0)==="/"?!0:(Cr("/"+u),!1)}function Ar(){var u=window.location.href,r=u.indexOf("#");return r<0?"":(u=u.slice(r+1),u)}function Us(u){var r=window.location.href,n=r.indexOf("#"),a=n>=0?r.slice(0,n):r;return a+"#"+u}function od(u){Gt?Fr(Us(u)):window.location.hash=u}function Cr(u){Gt?zs(Us(u)):window.location.replace(Us(u))}var h2=function(u){function r(n,a){u.call(this,n,a),this.stack=[],this.index=-1}return u&&(r.__proto__=u),r.prototype=Object.create(u&&u.prototype),r.prototype.constructor=r,r.prototype.push=function(n,a,s){var l=this;this.transitionTo(n,function(d){l.stack=l.stack.slice(0,l.index+1).concat(d),l.index++,a&&a(d)},s)},r.prototype.replace=function(n,a,s){var l=this;this.transitionTo(n,function(d){l.stack=l.stack.slice(0,l.index).concat(d),a&&a(d)},s)},r.prototype.go=function(n){var a=this,s=this.index+n;if(!(s<0||s>=this.stack.length)){var l=this.stack[s];this.confirmTransition(l,function(){var d=a.current;a.index=s,a.updateRoute(l),a.router.afterHooks.forEach(function(_){_&&_(l,d)})},function(d){br(d,En.duplicated)&&(a.index=s)})}},r.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},r.prototype.ensureURL=function(){},r}(dt),qu=function(u){u===void 0&&(u={}),this.app=null,this.apps=[],this.options=u,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=q6(u.routes||[],this);var r=u.mode||"hash";switch(this.fallback=r==="history"&&!Gt&&u.fallback!==!1,this.fallback&&(r="hash"),R0||(r="abstract"),this.mode=r,r){case"history":this.history=new Hm(this,u.base);break;case"hash":this.history=new Om(this,u.base,this.fallback);break;case"abstract":this.history=new h2(this,u.base);break}},ld={currentRoute:{configurable:!0}};qu.prototype.match=function(u,r,n){return this.matcher.match(u,r,n)},ld.currentRoute.get=function(){return this.history&&this.history.current},qu.prototype.init=function(u){var r=this;if(this.apps.push(u),u.$once("hook:destroyed",function(){var l=r.apps.indexOf(u);l>-1&&r.apps.splice(l,1),r.app===u&&(r.app=r.apps[0]||null),r.app||r.history.teardown()}),!this.app){this.app=u;var n=this.history;if(n instanceof Hm||n instanceof Om){var a=function(l){var d=n.current,_=r.options.scrollBehavior,p=Gt&&_;p&&"fullPath"in l&&Jt(r,l,d,!1)},s=function(l){n.setupListeners(),a(l)};n.transitionTo(n.getCurrentLocation(),s,s)}n.listen(function(l){r.apps.forEach(function(d){d._route=l})})}},qu.prototype.beforeEach=function(u){return qa(this.beforeHooks,u)},qu.prototype.beforeResolve=function(u){return qa(this.resolveHooks,u)},qu.prototype.afterEach=function(u){return qa(this.afterHooks,u)},qu.prototype.onReady=function(u,r){this.history.onReady(u,r)},qu.prototype.onError=function(u){this.history.onError(u)},qu.prototype.push=function(u,r,n){var a=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(s,l){a.history.push(u,s,l)});this.history.push(u,r,n)},qu.prototype.replace=function(u,r,n){var a=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(s,l){a.history.replace(u,s,l)});this.history.replace(u,r,n)},qu.prototype.go=function(u){this.history.go(u)},qu.prototype.back=function(){this.go(-1)},qu.prototype.forward=function(){this.go(1)},qu.prototype.getMatchedComponents=function(u){var r=u?u.matched?u:this.resolve(u).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(n){return Object.keys(n.components).map(function(a){return n.components[a]})})):[]},qu.prototype.resolve=function(u,r,n){r=r||this.history.current;var a=ao(u,r,n,this),s=this.match(a,r),l=s.redirectedFrom||s.fullPath,d=this.history.base,_=D2(d,l,this.mode);return{location:a,route:s,href:_,normalizedTo:a,resolved:s}},qu.prototype.getRoutes=function(){return this.matcher.getRoutes()},qu.prototype.addRoute=function(u,r){this.matcher.addRoute(u,r),this.history.current!==Kt&&this.history.transitionTo(this.history.getCurrentLocation())},qu.prototype.addRoutes=function(u){this.matcher.addRoutes(u),this.history.current!==Kt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(qu.prototype,ld);function qa(u,r){return u.push(r),function(){var n=u.indexOf(r);n>-1&&u.splice(n,1)}}function D2(u,r,n){var a=n==="hash"?"#"+r:r;return u?$t(u+"/"+a):a}qu.install=Is,qu.version="3.6.5",qu.isNavigationFailure=br,qu.NavigationFailureType=En,qu.START_LOCATION=Kt,R0&&window.Vue&&window.Vue.use(qu);const y2={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var g2=function(){var u=this,r=u._self._c;return r("span",u._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":u.title?null:"true","aria-label":u.title,role:"img"},on:{click:function(n){return u.$emit("click",n)}}},"span",u.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:u.fillColor,width:u.size,height:u.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[u.title?r("title",[u._v(u._s(u.title))]):u._e()])])])},E2=[],A2=Tt(y2,g2,E2,!1,null,null);const C2=A2.exports,M2={name:"NcInputField",components:{NcButton:r0,AlertCircle:C2,Check:Hh},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:u=>["text","password","email","tel","url","search","number"].includes(u)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){return{model:ch("value","update:value",!0)}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+H0()},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){return this.hasPlaceholder?this.placeholder:this.label},isValidLabel(){const u=this.label||this.labelOutside;return u||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),u},ariaDescribedby(){const u=[];return this.helperText.length>0&&u.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&u.push(this.$attrs["aria-describedby"]),u.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(u){const r=this.type==="number"&&typeof this.model=="number"?parseFloat(u.target.value,10):u.target.value;this.model=r},handleTrailingButtonClick(u){this.$emit("trailing-button-click",u)}}};var v2=function(){var u=this,r=u._self._c;return r("div",{staticClass:"input-field",class:{"input-field--disabled":u.disabled,"input-field--label-outside":u.labelOutside||!u.isValidLabel,"input-field--leading-icon":!!u.$scopedSlots.icon||!!u.$scopedSlots.default||!!u.$slots.default,"input-field--trailing-icon":u.showTrailingButton||u.hasTrailingIcon,"input-field--pill":u.pill}},[r("div",{staticClass:"input-field__main-wrapper"},[r("input",u._g(u._b({ref:"input",staticClass:"input-field__input",class:[u.inputClass,{"input-field__input--success":u.success,"input-field__input--error":u.error}],attrs:{id:u.computedId,type:u.type,disabled:u.disabled,placeholder:u.computedPlaceholder,"aria-describedby":u.ariaDescribedby,"aria-live":"polite"},domProps:{value:u.model?.toString()},on:{input:u.handleInput}},"input",u.$attrs,!1),u.$listeners)),!u.labelOutside&&u.isValidLabel?r("label",{staticClass:"input-field__label",attrs:{for:u.computedId}},[u._v(" "+u._s(u.label)+" ")]):u._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:!!u.$scopedSlots.icon||!!u.$scopedSlots.default||!!u.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[u._t("icon",function(){return[u._t("default")]})],2),u.showTrailingButton?r("NcButton",{staticClass:"input-field__trailing-button",attrs:{type:"tertiary-no-background","aria-label":u.trailingButtonLabel,disabled:u.disabled},on:{click:u.handleTrailingButtonClick},scopedSlots:u._u([{key:"icon",fn:function(){return[u._t("trailing-button-icon")]},proxy:!0}],null,!0)}):u.success||u.error?r("div",{staticClass:"input-field__icon input-field__icon--trailing"},[u.success?r("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):u.error?r("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):u._e()],1):u._e()],1),u.helperText.length>0?r("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":u.error,"input-field__helper-text-message--success":u.success},attrs:{id:`${u.inputName}-helper-text`}},[u.success?r("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):u.error?r("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):u._e(),u._v(" "+u._s(u.helperText)+" ")],1):u._e()])},x2=[],B2=Tt(M2,v2,x2,!1,null,"ceb23641");const dd=B2.exports;hn(_h,mh),new Set(Object.keys(dd.props)),{...dd.props},hn(hh);const k2=3*60*1e3,L2={name:"NcReferenceWidget",components:{NcButton:r0},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const u=Ps(!1),r=Ps(),{width:n}=ph(r);return fh(r,([a])=>{Yh(()=>{u.value=a.isIntersecting})}),{width:n,isVisible:u,widgetRoot:r}},data(){return{showInteractive:!1,rendered:!1,idleTimeout:null}},computed:{isInteractive(){return!this.interactiveOptIn&&this.interactive||this.showInteractive},hasFullWidth(){return o6(this.reference.richObjectType)},hasCustomWidget(){return $l(this.reference.richObjectType)},hasInteractiveView(){return $l(this.reference.richObjectType)&&s6(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.numberOfLines===0)return{display:"none"};const u=this.numberOfLines;return{lineClamp:u,webkitLineClamp:u}},numberOfLines(){return[450,550,650,1/0].findIndex(u=>this.width{this.isVisible||this.destroyWidget()},k2);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:cm,enableInteractive(){this.showInteractive=!0,this.renderWidget()},renderWidget(){if(!this.$refs.customWidget||this?.reference?.richObjectType==="open-graph")return;this.$refs.customWidget.innerHTML="";const u=document.createElement("div");u.style="width: 100%;",this.$refs.customWidget.appendChild(u),this.$nextTick(()=>{d6(u,{...this.reference,interactive:this.isInteractive}),this.rendered=!0})},destroyWidget(){this.rendered&&(c6(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var F2=function(){var u=this,r=u._self._c;return r("div",{ref:"widgetRoot",class:{"toggle-interactive":u.hasInteractiveView&&!u.isInteractive}},[u.reference&&u.hasCustomWidget?r("div",{ref:"customWidget",staticClass:"widget-custom",class:{"full-width":u.hasFullWidth}}):!u.noAccess&&u.reference&&u.reference.openGraphObject&&!u.hasCustomWidget?r(u.referenceWidgetLinkComponent,u._b({tag:"component",staticClass:"widget-default",attrs:{rel:"noopener noreferrer"}},"component",u.referenceWidgetLinkProps,!1),[u.reference.openGraphObject.thumb?r("img",{staticClass:"widget-default--image",attrs:{src:u.reference.openGraphObject.thumb}}):u._e(),r("div",{staticClass:"widget-default--details"},[r("p",{staticClass:"widget-default--name"},[u._v(" "+u._s(u.reference.openGraphObject.name)+" ")]),r("p",{staticClass:"widget-default--description",style:u.descriptionStyle},[u._v(" "+u._s(u.reference.openGraphObject.description)+" ")]),r("p",{staticClass:"widget-default--link"},[u._v(" "+u._s(u.compactLink)+" ")])])]):u._e(),u.interactiveOptIn&&u.hasInteractiveView&&!u.isInteractive?r("NcButton",{staticClass:"toggle-interactive--button",on:{click:u.enableInteractive}},[u._v(" "+u._s(u.t("Enable interactive view"))+" ")]):u._e()],1)},w2=[],b2=Tt(L2,F2,w2,!1,null,"734d6ae9");const Y2=b2.exports;hn(Dh),cm("Any link"),mm("core","filetypes/link.svg"),window._vue_richtext_reference_providers||(window._vue_richtext_reference_providers=e0("core","reference-provider-list",[])),window._vue_richtext_reference_provider_timestamps||(window._vue_richtext_reference_provider_timestamps=e0("core","reference-provider-timestamps",{})),hn(Il,yh),hn(gh),hn(Ah,Il,Eh),hn(Mh,Ch);function cd(){return e0("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}function md(u){if(u)throw u}var $a,_d;function T2(){if(_d)return $a;_d=1;var u=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},l=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var D=u.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&u.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!D&&!y)return!1;var o;for(o in p);return typeof o>"u"||u.call(p,o)},d=function(p,D){n&&D.name==="__proto__"?n(p,D.name,{enumerable:!0,configurable:!0,value:D.newValue,writable:!0}):p[D.name]=D.newValue},_=function(p,D){if(D==="__proto__")if(u.call(p,D)){if(a)return a(p,D).value}else return;return p[D]};return $a=function p(){var D,y,o,m,f,E,C=arguments[0],v=1,x=arguments.length,L=!1;for(typeof C=="boolean"&&(L=C,C=arguments[1]||{},v=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});vd.length;let p;_&&d.push(s);try{p=u.apply(this,d)}catch(D){const y=D;if(_&&n)throw y;return s(y)}_||(p instanceof Promise?p.then(l,s):p instanceof Error?s(p):l(p))}function s(d,..._){n||(n=!0,r(d,..._))}function l(d){s(null,d)}}function Y0(u){return!u||typeof u!="object"?"":"position"in u||"type"in u?pd(u.position):"start"in u||"end"in u?pd(u):"line"in u||"column"in u?qs(u):""}function qs(u){return fd(u&&u.line)+":"+fd(u&&u.column)}function pd(u){return qs(u&&u.start)+"-"+qs(u&&u.end)}function fd(u){return u&&typeof u=="number"?u:1}class ge extends Error{constructor(r,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let s="",l={},d=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof r=="string"?s=r:!l.cause&&r&&(d=!0,s=r.message,l.cause=r),!l.ruleId&&!l.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?l.ruleId=a:(l.source=a.slice(0,p),l.ruleId=a.slice(p+1))}if(!l.place&&l.ancestors&&l.ancestors){const p=l.ancestors[l.ancestors.length-1];p&&(l.place=p.position)}const _=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=_?_.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=_?_.line:void 0,this.name=Y0(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=d&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}ge.prototype.file="",ge.prototype.name="",ge.prototype.reason="",ge.prototype.message="",ge.prototype.stack="",ge.prototype.column=void 0,ge.prototype.line=void 0,ge.prototype.ancestors=void 0,ge.prototype.cause=void 0,ge.prototype.fatal=void 0,ge.prototype.place=void 0,ge.prototype.ruleId=void 0,ge.prototype.source=void 0;const gt={basename:j2,dirname:P2,extname:R2,join:N2,sep:"/"};function j2(u,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');N0(u);let n=0,a=-1,s=u.length,l;if(r===void 0||r.length===0||r.length>u.length){for(;s--;)if(u.codePointAt(s)===47){if(l){n=s+1;break}}else a<0&&(l=!0,a=s+1);return a<0?"":u.slice(n,a)}if(r===u)return"";let d=-1,_=r.length-1;for(;s--;)if(u.codePointAt(s)===47){if(l){n=s+1;break}}else d<0&&(l=!0,d=s+1),_>-1&&(u.codePointAt(s)===r.codePointAt(_--)?_<0&&(a=s):(_=-1,a=d));return n===a?a=d:a<0&&(a=u.length),u.slice(n,a)}function P2(u){if(N0(u),u.length===0)return".";let r=-1,n=u.length,a;for(;--n;)if(u.codePointAt(n)===47){if(a){r=n;break}}else a||(a=!0);return r<0?u.codePointAt(0)===47?"/":".":r===1&&u.codePointAt(0)===47?"//":u.slice(0,r)}function R2(u){N0(u);let r=u.length,n=-1,a=0,s=-1,l=0,d;for(;r--;){const _=u.codePointAt(r);if(_===47){if(d){a=r+1;break}continue}n<0&&(d=!0,n=r+1),_===46?s<0?s=r:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===a+1?"":u.slice(s,n)}function N2(...u){let r=-1,n;for(;++r0&&u.codePointAt(u.length-1)===47&&(n+="/"),r?"/"+n:n}function W2(u,r){let n="",a=0,s=-1,l=0,d=-1,_,p;for(;++d<=u.length;){if(d2){if(p=n.lastIndexOf("/"),p!==n.length-1){p<0?(n="",a=0):(n=n.slice(0,p),a=n.length-1-n.lastIndexOf("/")),s=d,l=0;continue}}else if(n.length>0){n="",a=0,s=d,l=0;continue}}r&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+u.slice(s+1,d):n=u.slice(s+1,d),a=d-s-1;s=d,l=0}else _===46&&l>-1?l++:l=-1}return n}function N0(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}const z2={cwd:U2};function U2(){return"/"}function $s(u){return!!(u!==null&&typeof u=="object"&&"href"in u&&u.href&&"protocol"in u&&u.protocol&&u.auth===void 0)}function V2(u){if(typeof u=="string")u=new URL(u);else if(!$s(u)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+u+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(u.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return q2(u)}function q2(u){if(u.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=u.pathname;let n=-1;for(;++n0){let[f,...E]=y;const C=a[m][1];Vs(C)&&Vs(f)&&(f=Ja(!0,C,f)),a[m]=[D,f,...E]}}}}const Z2=new so().freeze();function Qa(u,r){if(typeof r!="function")throw new TypeError("Cannot `"+u+"` without `parser`")}function Xa(u,r){if(typeof r!="function")throw new TypeError("Cannot `"+u+"` without `compiler`")}function ui(u,r){if(r)throw new Error("Cannot call `"+u+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dd(u){if(!Vs(u)||typeof u.type!="string")throw new TypeError("Expected node, got `"+u+"`")}function yd(u,r,n){if(!n)throw new Error("`"+u+"` finished async. Use `"+r+"` instead")}function _r(u){return Q2(u)?u:new $2(u)}function Q2(u){return!!(u&&typeof u=="object"&&"message"in u&&"messages"in u)}function X2(u){return typeof u=="string"||uD(u)}function uD(u){return!!(u&&typeof u=="object"&&"byteLength"in u&&"byteOffset"in u)}const eD={};function oo(u,r){const n=eD,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return jm(u,a,s)}function jm(u,r,n){if(tD(u)){if("value"in u)return u.type==="html"&&!n?"":u.value;if(r&&"alt"in u&&u.alt)return u.alt;if("children"in u)return gd(u.children,r,n)}return Array.isArray(u)?gd(u,r,n):""}function gd(u,r,n){const a=[];let s=-1;for(;++ss?0:s+r:r=r>s?s:r,n=n>0?n:0,a.length<1e4)d=Array.from(a),d.unshift(r,n),u.splice(...d);else for(n&&u.splice(r,n);l0?(Le(u,u.length,0,r),u):r}const Ad={}.hasOwnProperty;function Pm(u){const r={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(u){return u.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aD=Zt(new RegExp("\\p{P}","u")),me=Zt(/[A-Za-z]/),oe=Zt(/[\dA-Za-z]/),iD=Zt(/[#-'*+\--9=?A-Z^-~]/);function Yr(u){return u!==null&&(u<32||u===127)}const Js=Zt(/\d/),sD=Zt(/[\dA-Fa-f]/),Nm=Zt(/[!-/:-@[-`{-~]/);function fu(u){return u!==null&&u<-2}function ju(u){return u!==null&&(u<0||u===32)}function xu(u){return u===-2||u===-1||u===32}function Rr(u){return Nm(u)||aD(u)}const gn=Zt(/\s/);function Zt(u){return r;function r(n){return n!==null&&n>-1&&u.test(String.fromCharCode(n))}}function a0(u){const r=[];let n=-1,a=0,s=0;for(;++n55295&&l<57344){const _=u.charCodeAt(n+1);l<56320&&_>56319&&_<57344?(d=String.fromCharCode(l,_),s=1):d="�"}else d=String.fromCharCode(l);d&&(r.push(u.slice(a,n),encodeURIComponent(d)),a=n+s+1,d=""),s&&(n+=s,s=0)}return r.join("")+u.slice(a)}function Fu(u,r,n,a){const s=a?a-1:Number.POSITIVE_INFINITY;let l=0;return d;function d(p){return xu(p)?(u.enter(n),_(p)):r(p)}function _(p){return xu(p)&&l++d))return;const nu=r.events.length;let ou=nu,eu,O;for(;ou--;)if(r.events[ou][0]==="exit"&&r.events[ou][1].type==="chunkFlow"){if(eu){O=r.events[ou][1].end;break}eu=!0}for(x(a),H=nu;HY;){const U=n[R];r.containerState=U[1],U[0].exit.call(r,u)}n.length=Y}function L(){s.write([null]),l=void 0,s=void 0,r.containerState._closeFlow=void 0}}function mD(u,r,n){return Fu(u,u.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function n0(u){if(u===null||ju(u)||gn(u))return 1;if(Rr(u))return 2}function Nr(u,r,n){const a=[];let s=-1;for(;++s1&&u[n][1].end.offset-u[n][1].start.offset>1?2:1;const o={...u[a][1].end},m={...u[n][1].start};Md(o,-p),Md(m,p),d={type:p>1?"strongSequence":"emphasisSequence",start:o,end:{...u[a][1].end}},_={type:p>1?"strongSequence":"emphasisSequence",start:{...u[n][1].start},end:m},l={type:p>1?"strongText":"emphasisText",start:{...u[a][1].end},end:{...u[n][1].start}},s={type:p>1?"strong":"emphasis",start:{...d.start},end:{..._.end}},u[a][1].end={...d.start},u[n][1].start={..._.end},D=[],u[a][1].end.offset-u[a][1].start.offset&&(D=Ze(D,[["enter",u[a][1],r],["exit",u[a][1],r]])),D=Ze(D,[["enter",s,r],["enter",d,r],["exit",d,r],["enter",l,r]]),D=Ze(D,Nr(r.parser.constructs.insideSpan.null,u.slice(a+1,n),r)),D=Ze(D,[["exit",l,r],["enter",_,r],["exit",_,r],["exit",s,r]]),u[n][1].end.offset-u[n][1].start.offset?(y=2,D=Ze(D,[["enter",u[n][1],r],["exit",u[n][1],r]])):y=0,Le(u,a-1,n-a+3,D),n=a+D.length-y-2;break}}for(n=-1;++n0&&xu(H)?Fu(u,L,"linePrefix",l+1)(H):L(H)}function L(H){return H===null||fu(H)?u.check(vd,C,R)(H):(u.enter("codeFlowValue"),Y(H))}function Y(H){return H===null||fu(H)?(u.exit("codeFlowValue"),L(H)):(u.consume(H),Y)}function R(H){return u.exit("codeFenced"),r(H)}function U(H,nu,ou){let eu=0;return O;function O(su){return H.enter("lineEnding"),H.consume(su),H.exit("lineEnding"),X}function X(su){return H.enter("codeFencedFence"),xu(su)?Fu(H,tu,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(su):tu(su)}function tu(su){return su===_?(H.enter("codeFencedFenceSequence"),z(su)):ou(su)}function z(su){return su===_?(eu++,H.consume(su),z):eu>=d?(H.exit("codeFencedFenceSequence"),xu(su)?Fu(H,Z,"whitespace")(su):Z(su)):ou(su)}function Z(su){return su===null||fu(su)?(H.exit("codeFencedFence"),nu(su)):ou(su)}}}function vD(u,r,n){const a=this;return s;function s(d){return d===null?n(d):(u.enter("lineEnding"),u.consume(d),u.exit("lineEnding"),l)}function l(d){return a.parser.lazy[a.now().line]?n(d):r(d)}}const ei={name:"codeIndented",tokenize:BD},xD={partial:!0,tokenize:kD};function BD(u,r,n){const a=this;return s;function s(D){return u.enter("codeIndented"),Fu(u,l,"linePrefix",5)(D)}function l(D){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?d(D):n(D)}function d(D){return D===null?p(D):fu(D)?u.attempt(xD,d,p)(D):(u.enter("codeFlowValue"),_(D))}function _(D){return D===null||fu(D)?(u.exit("codeFlowValue"),d(D)):(u.consume(D),_)}function p(D){return u.exit("codeIndented"),r(D)}}function kD(u,r,n){const a=this;return s;function s(d){return a.parser.lazy[a.now().line]?n(d):fu(d)?(u.enter("lineEnding"),u.consume(d),u.exit("lineEnding"),s):Fu(u,l,"linePrefix",5)(d)}function l(d){const _=a.events[a.events.length-1];return _&&_[1].type==="linePrefix"&&_[2].sliceSerialize(_[1],!0).length>=4?r(d):fu(d)?s(d):n(d)}}const LD={name:"codeText",previous:wD,resolve:FD,tokenize:bD};function FD(u){let r=u.length-4,n=3,a,s;if((u[n][1].type==="lineEnding"||u[n][1].type==="space")&&(u[r][1].type==="lineEnding"||u[r][1].type==="space")){for(a=n;++a=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,n,a){const s=n||0;this.setCursor(Math.trunc(r));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&B0(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),B0(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),B0(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(d):u.interrupt(a.parser.constructs.flow,n,r)(d)}}function Vm(u,r,n,a,s,l,d,_,p){const D=p||Number.POSITIVE_INFINITY;let y=0;return o;function o(x){return x===60?(u.enter(a),u.enter(s),u.enter(l),u.consume(x),u.exit(l),m):x===null||x===32||x===41||Yr(x)?n(x):(u.enter(a),u.enter(d),u.enter(_),u.enter("chunkString",{contentType:"string"}),C(x))}function m(x){return x===62?(u.enter(l),u.consume(x),u.exit(l),u.exit(s),u.exit(a),r):(u.enter(_),u.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(u.exit("chunkString"),u.exit(_),m(x)):x===null||x===60||fu(x)?n(x):(u.consume(x),x===92?E:f)}function E(x){return x===60||x===62||x===92?(u.consume(x),f):f(x)}function C(x){return!y&&(x===null||x===41||ju(x))?(u.exit("chunkString"),u.exit(_),u.exit(d),u.exit(a),r(x)):y999||f===null||f===91||f===93&&!p||f===94&&!_&&"_hiddenFootnoteSupport"in d.parser.constructs?n(f):f===93?(u.exit(l),u.enter(s),u.consume(f),u.exit(s),u.exit(a),r):fu(f)?(u.enter("lineEnding"),u.consume(f),u.exit("lineEnding"),y):(u.enter("chunkString",{contentType:"string"}),o(f))}function o(f){return f===null||f===91||f===93||fu(f)||_++>999?(u.exit("chunkString"),y(f)):(u.consume(f),p||(p=!xu(f)),f===92?m:o)}function m(f){return f===91||f===92||f===93?(u.consume(f),_++,o):o(f)}}function $m(u,r,n,a,s,l){let d;return _;function _(m){return m===34||m===39||m===40?(u.enter(a),u.enter(s),u.consume(m),u.exit(s),d=m===40?41:m,p):n(m)}function p(m){return m===d?(u.enter(s),u.consume(m),u.exit(s),u.exit(a),r):(u.enter(l),D(m))}function D(m){return m===d?(u.exit(l),p(d)):m===null?n(m):fu(m)?(u.enter("lineEnding"),u.consume(m),u.exit("lineEnding"),Fu(u,D,"linePrefix")):(u.enter("chunkString",{contentType:"string"}),y(m))}function y(m){return m===d||m===null||fu(m)?(u.exit("chunkString"),D(m)):(u.consume(m),m===92?o:y)}function o(m){return m===d||m===92?(u.consume(m),y):y(m)}}function T0(u,r){let n;return a;function a(s){return fu(s)?(u.enter("lineEnding"),u.consume(s),u.exit("lineEnding"),n=!0,a):xu(s)?Fu(u,a,n?"linePrefix":"lineSuffix")(s):r(s)}}const RD={name:"definition",tokenize:ID},ND={partial:!0,tokenize:WD};function ID(u,r,n){const a=this;let s;return l;function l(f){return u.enter("definition"),d(f)}function d(f){return qm.call(a,u,_,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function _(f){return s=mt(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(u.enter("definitionMarker"),u.consume(f),u.exit("definitionMarker"),p):n(f)}function p(f){return ju(f)?T0(u,D)(f):D(f)}function D(f){return Vm(u,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function y(f){return u.attempt(ND,o,o)(f)}function o(f){return xu(f)?Fu(u,m,"whitespace")(f):m(f)}function m(f){return f===null||fu(f)?(u.exit("definition"),a.parser.defined.push(s),r(f)):n(f)}}function WD(u,r,n){return a;function a(_){return ju(_)?T0(u,s)(_):n(_)}function s(_){return $m(u,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(_)}function l(_){return xu(_)?Fu(u,d,"whitespace")(_):d(_)}function d(_){return _===null||fu(_)?r(_):n(_)}}const zD={name:"hardBreakEscape",tokenize:UD};function UD(u,r,n){return a;function a(l){return u.enter("hardBreakEscape"),u.consume(l),s}function s(l){return fu(l)?(u.exit("hardBreakEscape"),r(l)):n(l)}}const VD={name:"headingAtx",resolve:qD,tokenize:$D};function qD(u,r){let n=u.length-2,a=3,s,l;return u[a][1].type==="whitespace"&&(a+=2),n-2>a&&u[n][1].type==="whitespace"&&(n-=2),u[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&u[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(s={type:"atxHeadingText",start:u[a][1].start,end:u[n][1].end},l={type:"chunkText",start:u[a][1].start,end:u[n][1].end,contentType:"text"},Le(u,a,n-a+1,[["enter",s,r],["enter",l,r],["exit",l,r],["exit",s,r]])),u}function $D(u,r,n){let a=0;return s;function s(y){return u.enter("atxHeading"),l(y)}function l(y){return u.enter("atxHeadingSequence"),d(y)}function d(y){return y===35&&a++<6?(u.consume(y),d):y===null||ju(y)?(u.exit("atxHeadingSequence"),_(y)):n(y)}function _(y){return y===35?(u.enter("atxHeadingSequence"),p(y)):y===null||fu(y)?(u.exit("atxHeading"),r(y)):xu(y)?Fu(u,_,"whitespace")(y):(u.enter("atxHeadingText"),D(y))}function p(y){return y===35?(u.consume(y),p):(u.exit("atxHeadingSequence"),_(y))}function D(y){return y===null||y===35||ju(y)?(u.exit("atxHeadingText"),_(y)):(u.consume(y),D)}}const JD=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Bd=["pre","script","style","textarea"],GD={concrete:!0,name:"htmlFlow",resolveTo:QD,tokenize:XD},KD={partial:!0,tokenize:e9},ZD={partial:!0,tokenize:u9};function QD(u){let r=u.length;for(;r--&&!(u[r][0]==="enter"&&u[r][1].type==="htmlFlow"););return r>1&&u[r-2][1].type==="linePrefix"&&(u[r][1].start=u[r-2][1].start,u[r+1][1].start=u[r-2][1].start,u.splice(r-2,2)),u}function XD(u,r,n){const a=this;let s,l,d,_,p;return D;function D(b){return y(b)}function y(b){return u.enter("htmlFlow"),u.enter("htmlFlowData"),u.consume(b),o}function o(b){return b===33?(u.consume(b),m):b===47?(u.consume(b),l=!0,C):b===63?(u.consume(b),s=3,a.interrupt?r:w):me(b)?(u.consume(b),d=String.fromCharCode(b),v):n(b)}function m(b){return b===45?(u.consume(b),s=2,f):b===91?(u.consume(b),s=5,_=0,E):me(b)?(u.consume(b),s=4,a.interrupt?r:w):n(b)}function f(b){return b===45?(u.consume(b),a.interrupt?r:w):n(b)}function E(b){const Ru="CDATA[";return b===Ru.charCodeAt(_++)?(u.consume(b),_===Ru.length?a.interrupt?r:tu:E):n(b)}function C(b){return me(b)?(u.consume(b),d=String.fromCharCode(b),v):n(b)}function v(b){if(b===null||b===47||b===62||ju(b)){const Ru=b===47,uu=d.toLowerCase();return!Ru&&!l&&Bd.includes(uu)?(s=1,a.interrupt?r(b):tu(b)):JD.includes(d.toLowerCase())?(s=6,Ru?(u.consume(b),x):a.interrupt?r(b):tu(b)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(b):l?L(b):Y(b))}return b===45||oe(b)?(u.consume(b),d+=String.fromCharCode(b),v):n(b)}function x(b){return b===62?(u.consume(b),a.interrupt?r:tu):n(b)}function L(b){return xu(b)?(u.consume(b),L):O(b)}function Y(b){return b===47?(u.consume(b),O):b===58||b===95||me(b)?(u.consume(b),R):xu(b)?(u.consume(b),Y):O(b)}function R(b){return b===45||b===46||b===58||b===95||oe(b)?(u.consume(b),R):U(b)}function U(b){return b===61?(u.consume(b),H):xu(b)?(u.consume(b),U):Y(b)}function H(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(u.consume(b),p=b,nu):xu(b)?(u.consume(b),H):ou(b)}function nu(b){return b===p?(u.consume(b),p=null,eu):b===null||fu(b)?n(b):(u.consume(b),nu)}function ou(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ju(b)?U(b):(u.consume(b),ou)}function eu(b){return b===47||b===62||xu(b)?Y(b):n(b)}function O(b){return b===62?(u.consume(b),X):n(b)}function X(b){return b===null||fu(b)?tu(b):xu(b)?(u.consume(b),X):n(b)}function tu(b){return b===45&&s===2?(u.consume(b),Eu):b===60&&s===1?(u.consume(b),Au):b===62&&s===4?(u.consume(b),Pu):b===63&&s===3?(u.consume(b),w):b===93&&s===5?(u.consume(b),ku):fu(b)&&(s===6||s===7)?(u.exit("htmlFlowData"),u.check(KD,Tu,z)(b)):b===null||fu(b)?(u.exit("htmlFlowData"),z(b)):(u.consume(b),tu)}function z(b){return u.check(ZD,Z,Tu)(b)}function Z(b){return u.enter("lineEnding"),u.consume(b),u.exit("lineEnding"),su}function su(b){return b===null||fu(b)?z(b):(u.enter("htmlFlowData"),tu(b))}function Eu(b){return b===45?(u.consume(b),w):tu(b)}function Au(b){return b===47?(u.consume(b),d="",bu):tu(b)}function bu(b){if(b===62){const Ru=d.toLowerCase();return Bd.includes(Ru)?(u.consume(b),Pu):tu(b)}return me(b)&&d.length<8?(u.consume(b),d+=String.fromCharCode(b),bu):tu(b)}function ku(b){return b===93?(u.consume(b),w):tu(b)}function w(b){return b===62?(u.consume(b),Pu):b===45&&s===2?(u.consume(b),w):tu(b)}function Pu(b){return b===null||fu(b)?(u.exit("htmlFlowData"),Tu(b)):(u.consume(b),Pu)}function Tu(b){return u.exit("htmlFlow"),r(b)}}function u9(u,r,n){const a=this;return s;function s(d){return fu(d)?(u.enter("lineEnding"),u.consume(d),u.exit("lineEnding"),l):n(d)}function l(d){return a.parser.lazy[a.now().line]?n(d):r(d)}}function e9(u,r,n){return a;function a(s){return u.enter("lineEnding"),u.consume(s),u.exit("lineEnding"),u.attempt(I0,r,n)}}const t9={name:"htmlText",tokenize:n9};function n9(u,r,n){const a=this;let s,l,d;return _;function _(w){return u.enter("htmlText"),u.enter("htmlTextData"),u.consume(w),p}function p(w){return w===33?(u.consume(w),D):w===47?(u.consume(w),U):w===63?(u.consume(w),Y):me(w)?(u.consume(w),ou):n(w)}function D(w){return w===45?(u.consume(w),y):w===91?(u.consume(w),l=0,E):me(w)?(u.consume(w),L):n(w)}function y(w){return w===45?(u.consume(w),f):n(w)}function o(w){return w===null?n(w):w===45?(u.consume(w),m):fu(w)?(d=o,Au(w)):(u.consume(w),o)}function m(w){return w===45?(u.consume(w),f):o(w)}function f(w){return w===62?Eu(w):w===45?m(w):o(w)}function E(w){const Pu="CDATA[";return w===Pu.charCodeAt(l++)?(u.consume(w),l===Pu.length?C:E):n(w)}function C(w){return w===null?n(w):w===93?(u.consume(w),v):fu(w)?(d=C,Au(w)):(u.consume(w),C)}function v(w){return w===93?(u.consume(w),x):C(w)}function x(w){return w===62?Eu(w):w===93?(u.consume(w),x):C(w)}function L(w){return w===null||w===62?Eu(w):fu(w)?(d=L,Au(w)):(u.consume(w),L)}function Y(w){return w===null?n(w):w===63?(u.consume(w),R):fu(w)?(d=Y,Au(w)):(u.consume(w),Y)}function R(w){return w===62?Eu(w):Y(w)}function U(w){return me(w)?(u.consume(w),H):n(w)}function H(w){return w===45||oe(w)?(u.consume(w),H):nu(w)}function nu(w){return fu(w)?(d=nu,Au(w)):xu(w)?(u.consume(w),nu):Eu(w)}function ou(w){return w===45||oe(w)?(u.consume(w),ou):w===47||w===62||ju(w)?eu(w):n(w)}function eu(w){return w===47?(u.consume(w),Eu):w===58||w===95||me(w)?(u.consume(w),O):fu(w)?(d=eu,Au(w)):xu(w)?(u.consume(w),eu):Eu(w)}function O(w){return w===45||w===46||w===58||w===95||oe(w)?(u.consume(w),O):X(w)}function X(w){return w===61?(u.consume(w),tu):fu(w)?(d=X,Au(w)):xu(w)?(u.consume(w),X):eu(w)}function tu(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(u.consume(w),s=w,z):fu(w)?(d=tu,Au(w)):xu(w)?(u.consume(w),tu):(u.consume(w),Z)}function z(w){return w===s?(u.consume(w),s=void 0,su):w===null?n(w):fu(w)?(d=z,Au(w)):(u.consume(w),z)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ju(w)?eu(w):(u.consume(w),Z)}function su(w){return w===47||w===62||ju(w)?eu(w):n(w)}function Eu(w){return w===62?(u.consume(w),u.exit("htmlTextData"),u.exit("htmlText"),r):n(w)}function Au(w){return u.exit("htmlTextData"),u.enter("lineEnding"),u.consume(w),u.exit("lineEnding"),bu}function bu(w){return xu(w)?Fu(u,ku,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ku(w)}function ku(w){return u.enter("htmlTextData"),d(w)}}const co={name:"labelEnd",resolveAll:s9,resolveTo:o9,tokenize:l9},r9={tokenize:d9},a9={tokenize:c9},i9={tokenize:m9};function s9(u){let r=-1;const n=[];for(;++r=3&&(D===null||fu(D))?(u.exit("thematicBreak"),r(D)):n(D)}function p(D){return D===s?(u.consume(D),a++,p):(u.exit("thematicBreakSequence"),xu(D)?Fu(u,_,"whitespace")(D):_(D))}}const Ee={continuation:{tokenize:C9},exit:v9,name:"list",tokenize:A9},g9={partial:!0,tokenize:x9},E9={partial:!0,tokenize:M9};function A9(u,r,n){const a=this,s=a.events[a.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,d=0;return _;function _(f){const E=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:Js(f)){if(a.containerState.type||(a.containerState.type=E,u.enter(E,{_container:!0})),E==="listUnordered")return u.enter("listItemPrefix"),f===42||f===45?u.check(Mr,n,D)(f):D(f);if(!a.interrupt||f===49)return u.enter("listItemPrefix"),u.enter("listItemValue"),p(f)}return n(f)}function p(f){return Js(f)&&++d<10?(u.consume(f),p):(!a.interrupt||d<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(u.exit("listItemValue"),D(f)):n(f)}function D(f){return u.enter("listItemMarker"),u.consume(f),u.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,u.check(I0,a.interrupt?n:y,u.attempt(g9,m,o))}function y(f){return a.containerState.initialBlankLine=!0,l++,m(f)}function o(f){return xu(f)?(u.enter("listItemPrefixWhitespace"),u.consume(f),u.exit("listItemPrefixWhitespace"),m):n(f)}function m(f){return a.containerState.size=l+a.sliceSerialize(u.exit("listItemPrefix"),!0).length,r(f)}}function C9(u,r,n){const a=this;return a.containerState._closeFlow=void 0,u.check(I0,s,l);function s(_){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Fu(u,r,"listItemIndent",a.containerState.size+1)(_)}function l(_){return a.containerState.furtherBlankLines||!xu(_)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,d(_)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u.attempt(E9,r,d)(_))}function d(_){return a.containerState._closeFlow=!0,a.interrupt=void 0,Fu(u,u.attempt(Ee,r,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_)}}function M9(u,r,n){const a=this;return Fu(u,s,"listItemIndent",a.containerState.size+1);function s(l){const d=a.events[a.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===a.containerState.size?r(l):n(l)}}function v9(u){u.exit(this.containerState.type)}function x9(u,r,n){const a=this;return Fu(u,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const d=a.events[a.events.length-1];return!xu(l)&&d&&d[1].type==="listItemPrefixWhitespace"?r(l):n(l)}}const kd={name:"setextUnderline",resolveTo:B9,tokenize:k9};function B9(u,r){let n=u.length,a,s,l;for(;n--;)if(u[n][0]==="enter"){if(u[n][1].type==="content"){a=n;break}u[n][1].type==="paragraph"&&(s=n)}else u[n][1].type==="content"&&u.splice(n,1),!l&&u[n][1].type==="definition"&&(l=n);const d={type:"setextHeading",start:{...u[a][1].start},end:{...u[u.length-1][1].end}};return u[s][1].type="setextHeadingText",l?(u.splice(s,0,["enter",d,r]),u.splice(l+1,0,["exit",u[a][1],r]),u[a][1].end={...u[l][1].end}):u[a][1]=d,u.push(["exit",d,r]),u}function k9(u,r,n){const a=this;let s;return l;function l(D){let y=a.events.length,o;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){o=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||o)?(u.enter("setextHeadingLine"),s=D,d(D)):n(D)}function d(D){return u.enter("setextHeadingLineSequence"),_(D)}function _(D){return D===s?(u.consume(D),_):(u.exit("setextHeadingLineSequence"),xu(D)?Fu(u,p,"lineSuffix")(D):p(D))}function p(D){return D===null||fu(D)?(u.exit("setextHeadingLine"),r(D)):n(D)}}const L9={tokenize:F9};function F9(u){const r=this,n=u.attempt(I0,a,u.attempt(this.parser.constructs.flowInitial,s,Fu(u,u.attempt(this.parser.constructs.flow,s,u.attempt(SD,s)),"linePrefix")));return n;function a(l){if(l===null){u.consume(l);return}return u.enter("lineEndingBlank"),u.consume(l),u.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function s(l){if(l===null){u.consume(l);return}return u.enter("lineEnding"),u.consume(l),u.exit("lineEnding"),r.currentConstruct=void 0,n}}const w9={resolveAll:Gm()},b9=Jm("string"),Y9=Jm("text");function Jm(u){return{resolveAll:Gm(u==="text"?T9:void 0),tokenize:r};function r(n){const a=this,s=this.parser.constructs[u],l=n.attempt(s,d,_);return d;function d(y){return D(y)?l(y):_(y)}function _(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),p}function p(y){return D(y)?(n.exit("data"),l(y)):(n.consume(y),p)}function D(y){if(y===null)return!0;const o=s[y];let m=-1;if(o)for(;++m-1){const _=d[0];typeof _=="string"?d[0]=_.slice(a):d.shift()}l>0&&d.push(u[s].slice(0,l))}return d}function q9(u,r){let n=-1;const a=[];let s;for(;++n