1import{$ as Tl,A as ii,B as kl,C as Al,D as Pl,E as Rl,F as Se,G as Dl,H as Ol,I as _e,J as zr,K as mo,L as jt,M as Nl,N as oi,O as Il,P as _s,Q as go,R as $e,S as $l,T as Ll,U as Ts,V as vo,W as Wn,X as mt,Y as Fl,_ as jl,a as Bl,b as Vl,c as ks,d as zl,f as Hl,g as Kl,h as Wl,i as Ul,j as ql,k as Gl,l as Le,m as Jl,n as Yl,p as Xl,q as Ql,r as Zl,s as ec,t as tc,u as nc,v as rc,w as sc,x as ic,y as oc,z as ac}from"./prosemirror.CXmCnmMx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"703f8047946e712fb749e5a7aadfc0405ed594c2"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bf4813d1-81af-4334-aa3c-1d7bea35969e",e._sentryDebugIdIdentifier="sentry-dbid-bf4813d1-81af-4334-aa3c-1d7bea35969e")}catch{}})();function dr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}var U={},Bt=[],Je=()=>{},yo=()=>!1,hr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pr=e=>e.startsWith("onUpdate:"),oe=Object.assign,As=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lc=Object.prototype.hasOwnProperty,Q=(e,t)=>lc.call(e,t),$=Array.isArray,gt=e=>Mn(e)==="[object Map]",it=e=>Mn(e)==="[object Set]",ai=e=>Mn(e)==="[object Date]",V=e=>typeof e=="function",re=e=>typeof e=="string",Oe=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",bo=e=>(J(e)||V(e))&&V(e.then)&&V(e.catch),wo=Object.prototype.toString,Mn=e=>wo.call(e),cc=e=>Mn(e).slice(8,-1),So=e=>Mn(e)==="[object Object]",mr=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,an=dr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},uc=/-\w/g,we=gr(e=>e.replace(uc,t=>t.slice(1).toUpperCase())),fc=/\B([A-Z])/g,ct=gr(e=>e.replace(fc,"-$1").toLowerCase()),vr=gr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hr=gr(e=>e?`on${vr(e)}`:""),me=(e,t)=>!Object.is(e,t),Un=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},yr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},dc=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t},li,br=()=>li||(li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wr(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=re(r)?gc(r):wr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(re(e)||J(e))return e}var hc=/;(?![^(]*\))/g,pc=/:([^]+)/,mc=/\/\*[^]*?\*\//g;function gc(e){const t={};
1return e.replace(mc,"").split(hc).forEach(n=>{if(n){const r=n.split(pc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Sr(e){let t="";if(re(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const r=Sr(e[n]);r&&(t+=r+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function $p(e){if(!e)return null;let{class:t,style:n}=e;return t&&!re(t)&&(e.class=Sr(t)),n&&(e.style=wr(n)),e}var Eo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vc=dr(Eo),Lp=dr(Eo+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Co(e){return!!e||e===""}function yc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ve(e[r],t[r]);return n}function ci(e,t){if(e.size!==t.size)return!1;const n=Array.from(t),r=new Uint8Array(n.length);for(const s of e){let i=-1;for(let o=0;o<n.length;o++)if(!r[o]&&Ve(s,n[o])){i=o;break}if(i<0)return!1;r[i]=1}return!0}function Ve(e,t){if(e===t)return!0;let n=ai(e),r=ai(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Oe(e),r=Oe(t),n||r)return e===t;if(n=$(e),r=$(t),n||r)return n&&r?yc(e,t):!1;if(n=J(e),r=J(t),n||r){if(!n||!r)return!1;if(n=gt(e),r=gt(t),n||r||(n=it(e),r=it(t),n||r))return n&&r?ci(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const i=e.hasOwnProperty(s),o=t.hasOwnProperty(s);if(i&&!o||!i&&o||!Ve(e[s],t[s]))return!1}}return String(e)===String(t)}function Ps(e,t){return e.findIndex(n=>Ve(n,t))}var Mo=e=>!!(e&&e.__v_isRef===!0),bc=e=>re(e)?e:e==null?"":$(e)||J(e)&&(e.toString===wo||!V(e.toString))?Mo(e)?bc(e.value):JSON.stringify(e,_o,2):String(e),_o=(e,t)=>Mo(t)?_o(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Kr(r,i)+" =>"]=s,n),{})}:it(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Kr(n))}:Oe(t)?Kr(t):J(t)&&!$(t)&&!So(t)?String(t):t,Kr=(e,t="")=>{var n;return Oe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},ce,To=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&ce&&(ce.active?(this.parent=ce,this.index=(ce.scopes||(ce.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const r=this.scopes.slice();for(e=0,t=r.length;e<t;e++)r[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=ce;try{return ce=this,e()}finally{ce=t}}}on(){++this._on===1&&(this.prevScope=ce,ce=this)}off(){if(this._on>0&&--this._on===0){if(ce===this)ce=this.prevScope;else{let e=ce;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}};function Fp(e){return new To(e)}function wc(){return ce}function jp(e,t=!1){ce&&ce.cleanups.push(e)}var ne,Wr=new WeakSet,ko=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ce&&(ce.active?ce.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wr.has(this)&&(Wr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Po(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ui(this),Ro(this);const e=ne,t=Be;ne=this,Be=!0;try{return this.fn()}finally{Do(this),ne=e,Be=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Os(e);this.deps=this.depsTail=void 0,ui(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){os(this)&&this.run()}get dirty(){return os(this)}},Ao=0,ln,cn;function Po(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=ln,ln=e}function Rs(){Ao++}function Ds(){if(--Ao>
10)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ln;){let t=ln;for(ln=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ro(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Do(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Os(r),Sc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function os(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Oo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Oo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gn)||(e.globalVersion=gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!os(e))))return;e.flags|=2;const t=e.dep,n=ne,r=Be;ne=e,Be=!0;try{Ro(e);const s=e.fn(e._value);(t.version===0||me(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ne=n,Be=r,Do(e),e.flags&=-3}}function Os(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Os(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Sc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Be=!0,No=[];function ot(){No.push(Be),Be=!1}function at(){const e=No.pop();Be=e===void 0?!0:e}function ui(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ne;ne=void 0;try{t()}finally{ne=n}}}var gn=0,xc=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},xr=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ne||!Be||ne===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ne)t=this.activeLink=new xc(ne,this),ne.deps?(t.prevDep=ne.depsTail,ne.depsTail.nextDep=t,ne.depsTail=t):ne.deps=ne.depsTail=t,Io(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=ne.depsTail,t.nextDep=void 0,ne.depsTail.nextDep=t,ne.depsTail=t,ne.deps===t&&(ne.deps=n)}return t}trigger(e){this.version++,gn++,this.notify(e)}notify(e){Rs();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Ds()}}};function Io(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Io(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Xn=new WeakMap,Pt=Symbol(""),as=Symbol(""),vn=Symbol("");function ye(e,t,n){if(Be&&ne){let r=Xn.get(e);r||Xn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new xr),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const o=Xn.get(e);if(!o){gn++;return}const a=l=>{l&&l.trigger()};if(Rs(),t==="clear")o.forEach(a);else{const l=$(e),c=l&&mr(n);if(l&&n==="length"){const u=Number(r);o.forEach((f,d)=>{(d==="length"||d===vn||!Oe(d)&&d>=u)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(vn)),t){case"add":l?c&&a(o.get("length")):(a(o.get(Pt)),gt(e)&&a(o.get(as)));break;case"delete":l||(a(o.get(Pt)),gt(e)&&a(o.get(as)));break;case"set":gt(e)&&a(o.get(Pt))}}Ds()}function Ec(e,t){const n=Xn.get(e);return n&&n.get(t)}function Nt(e){const t=G(e);return t===e?t:(ye(t,"iterate",vn),De(e)?t:t.map(ze))}function Er(e){return ye(e=G(e),"iterate",vn),e}function qe(e,t){return lt(e)?Kt(Rt(e)?ze(t):t):ze(t)}var Cc={__proto__:null,[Symbol.iterator](){return Ur(this,Symbol.iterator,e=>qe(this,e))},concat(...e){return Nt(this).concat(...e.map(t=>$(t)?Nt(t):t))},entries(){return Ur(this,"entries",e=>(e[1]=qe(this,e[1]),e))},every(e,t){return Ye(this,"every",e,t,void 0,arguments)},filter(e,t){return Ye(this,"filter",e,t,n=>n.map(r=>qe(this,r)),arguments)},find(e,t){return Ye(this,"find",e,t,n=>qe(this,n),arguments)},findIndex(e,t){return Ye(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ye(this,"findLast",e,t,n=>qe(this,n),arguments)},findLastIndex(e,t){return Ye(this,"findLastIndex",e,t,void 0,arguments)}
1,forEach(e,t){return Ye(this,"forEach",e,t,void 0,arguments)},includes(...e){return qr(this,"includes",e)},indexOf(...e){return qr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return qr(this,"lastIndexOf",e)},map(e,t){return Ye(this,"map",e,t,void 0,arguments)},pop(){return Qt(this,"pop")},push(...e){return Qt(this,"push",e)},reduce(e,...t){return fi(this,"reduce",e,t)},reduceRight(e,...t){return fi(this,"reduceRight",e,t)},shift(){return Qt(this,"shift")},some(e,t){return Ye(this,"some",e,t,void 0,arguments)},splice(...e){return Qt(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return Qt(this,"unshift",e)},values(){return Ur(this,"values",e=>qe(this,e))}};function Ur(e,t,n){const r=Er(e),s=r[t]();return r!==e&&!De(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}var Mc=Array.prototype;function Ye(e,t,n,r,s,i){const o=Er(e),a=o!==e&&!De(e),l=o[t];if(l!==Mc[t]){const f=l.apply(e,i);return a?ze(f):f}let c=n;o!==e&&(a?c=function(f,d){return n.call(this,qe(e,f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(o,c,r);return a&&s?s(u):u}function fi(e,t,n,r){const s=Er(e),i=s!==e&&!De(e);let o=n,a=!1;s!==e&&(i?(a=r.length===0,o=function(c,u,f){return a&&(a=!1,c=qe(e,c)),n.call(this,c,qe(e,u),f,e)}):n.length>3&&(o=function(c,u,f){return n.call(this,c,u,f,e)}));const l=s[t](o,...r);return a?qe(e,l):l}function qr(e,t,n){const r=G(e);ye(r,"iterate",vn);const s=r[t](...n);return(s===-1||s===!1)&&Tr(n[0])?(n[0]=G(n[0]),r[t](...n)):s}function Qt(e,t,n=[]){ot(),Rs();const r=G(e)[t].apply(e,n);return Ds(),at(),r}var _c=dr("__proto__,__v_isRef,__isVue"),$o=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Oe));function Tc(e){Oe(e)||(e=String(e));const t=G(this);return ye(t,"has",e),t.hasOwnProperty(e)}var Lo=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t==="__v_skip")return e.__v_skip;const r=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return s;if(t==="__v_raw")return n===(r?s?Ho:zo:s?Vo:Bo).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=$(e);if(!r){let a;if(i&&(a=Cc[t]))return a;if(t==="hasOwnProperty")return Tc}const o=Reflect.get(e,t,ue(e)?e:n);if((Oe(t)?$o.has(t):_c(t))||(r||ye(e,"get",t),s))return o;if(ue(o)){const a=i&&mr(t)?o:o.value;return r&&J(a)?cs(a):a}return J(o)?r?cs(o):Mr(o):o}},Fo=class extends Lo{constructor(e=!1){super(!1,e)}set(e,t,n,r){let s=e[t];const i=$(e)&&mr(t);if(!this._isShallow){const l=lt(s);if(!De(n)&&!lt(n)&&(s=G(s),n=G(n)),!i&&ue(s)&&!ue(n))return l||(s.value=n),!0}const o=i?Number(t)<e.length:Q(e,t),a=Reflect.set(e,t,n,ue(e)?e:r);return e===G(r)&&a&&(o?me(n,s)&&et(e,"set",t,n,s):et(e,"add",t,n)),a}deleteProperty(e,t){const n=Q(e,t),r=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&et(e,"delete",t,void 0,r),s}has(e,t){const n=Reflect.has(e,t);return(!Oe(t)||!$o.has(t))&&ye(e,"has",t),n}ownKeys(e){return ye(e,"iterate",$(e)?"length":Pt),Reflect.ownKeys(e)}},jo=class extends Lo{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},kc=new Fo,Ac=new jo,Pc=new Fo(!0),Rc=new jo(!0),ls=e=>e,Nn=e=>Reflect.getPrototypeOf(e);function Dc(e,t,n){return function(...r){const s=this.__v_raw,i=G(s),o=gt(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...r),u=n?ls:t?Kt:ze;return!t&&ye(i,"iterate",l?as:Pt),oe(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function In(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Oc(e,t){const n={get(r){const s=this.__v_raw,i=G(s),o=G(r);e||(me(r,o)&&ye(i,"get",r),ye(i,"get",o));const{has:a}=Nn(i),l=t?ls:e?Kt:ze;if(a.call(i,r))return l(s.get(r));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(r)},get size(){const r=this.__v_raw;return!e&&ye(G(r),"iterate",Pt),r.size},has(r){const s=this.__v_raw,i=G(s),o=G(r);return e||(me(r,o)&&ye(i,"has",r),ye(i,"has",o)),r===o?s.has(r):s.has(r)||s.has(o)}
1,forEach(r,s){const i=this,o=i.__v_raw,a=G(o),l=t?ls:e?Kt:ze;return!e&&ye(a,"iterate",Pt),o.forEach((c,u)=>r.call(s,l(c),l(u),i))}};return oe(n,e?{add:In("add"),set:In("set"),delete:In("delete"),clear:In("clear")}:{add(r){const s=G(this),i=Nn(s),o=G(r),a=!t&&!De(r)&&!lt(r)?o:r;return i.has.call(s,a)||me(r,a)&&i.has.call(s,r)||me(o,a)&&i.has.call(s,o)||(s.add(a),et(s,"add",a,a)),this},set(r,s){!t&&!De(s)&&!lt(s)&&(s=G(s));const i=G(this),{has:o,get:a}=Nn(i);let l=o.call(i,r);l||(r=G(r),l=o.call(i,r));const c=a.call(i,r);return i.set(r,s),l?me(s,c)&&et(i,"set",r,s,c):et(i,"add",r,s),this},delete(r){const s=G(this),{has:i,get:o}=Nn(s);let a=i.call(s,r);a||(r=G(r),a=i.call(s,r));const l=o?o.call(s,r):void 0,c=s.delete(r);return a&&et(s,"delete",r,void 0,l),c},clear(){const r=G(this),s=r.size!==0,i=void 0,o=r.clear();return s&&et(r,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Dc(r,e,t)}),n}function Cr(e,t){const n=Oc(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Q(n,s)&&s in r?n:r,s,i)}var Nc={get:Cr(!1,!1)},Ic={get:Cr(!1,!0)},$c={get:Cr(!0,!1)},Lc={get:Cr(!0,!0)},Bo=new WeakMap,Vo=new WeakMap,zo=new WeakMap,Ho=new WeakMap;function Fc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mr(e){return lt(e)?e:_r(e,!1,kc,Nc,Bo)}function jc(e){return _r(e,!1,Pc,Ic,Vo)}function cs(e){return _r(e,!0,Ac,$c,zo)}function Bp(e){return _r(e,!0,Rc,Lc,Ho)}function _r(e,t,n,r,s){if(!J(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const o=Fc(cc(e));if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Rt(e){return lt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Tr(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Ns(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&xo(e,"__v_skip",!0),e}var ze=e=>J(e)?Mr(e):e,Kt=e=>J(e)?cs(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function un(e){return Ko(e,!1)}function Bc(e){return Ko(e,!0)}function Ko(e,t){return ue(e)?e:new Vc(e,t)}var Vc=class{constructor(e,t){this.dep=new xr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:G(e),this._value=t?e:ze(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||De(e)||lt(e);e=n?e:G(e),me(e,t)&&(this._rawValue=e,this._value=n?e:ze(e),this.dep.trigger())}};function Vp(e){e.dep&&e.dep.trigger()}function kr(e){return ue(e)?e.value:e}function zp(e){return V(e)?e():kr(e)}var zc={get:(e,t,n)=>t==="__v_raw"?e:kr(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ue(s)&&!ue(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Wo(e){return Rt(e)?e:new Proxy(e,zc)}var Hc=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new xr,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Uo(e){return new Hc(e)}function Hp(e){const t=$(e)?new Array(e.length):{};for(const n in e)t[n]=qo(e,n);return t}var Kc=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Oe(t)?t:String(t),this._raw=G(e);let r=!0,s=e;if(!$(e)||Oe(this._key)||!mr(this._key))do r=!Tr(s)||De(s);while(r&&(s=s.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=kr(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&ue(this._raw[this._key])){const t=this._object[this._key];if(ue(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Ec(this._raw,this._key)}},Wc=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function Kp(e,t,n){return ue(e)?e:V(e)?new Wc(e):J(e)&&arguments.length>1?qo(e,t,n):un(e)}function qo(e,t,n){return new Kc(e,t,n)}var Uc=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new xr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return Po(this,!0),!0}get value(){const e=this.dep.track();return Oo(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function qc(e,t,n=!1){let r,s;return V(e)?r=e:(r=e.get,s=e.set),new Uc(r,s,n)}var $n={},Qn=new WeakMap,Tt=void 0;function Gc(e,t=!1,n=Tt){if(n){let r=Qn.get(n);r||Qn.set(n,r=[]),r.push(e)}}
vendor: 5,227 bytes, line 1
1function Jc(e,t,n=U){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,c=x=>s?x:De(x)||s===!1||s===0?tt(x,1):tt(x);let u,f,d,h,m=!1,g=!1;if(ue(e)?(f=()=>e.value,m=De(e)):Rt(e)?(f=()=>c(e),m=!0):$(e)?(g=!0,m=e.some(x=>Rt(x)||De(x)),f=()=>e.map(x=>{if(ue(x))return x.value;if(Rt(x))return c(x);if(V(x))return l?l(x,2):x()})):V(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){ot();try{d()}finally{at()}}const x=Tt;Tt=u;try{return l?l(e,3,[h]):e(h)}finally{Tt=x}}:f=Je,t&&s){const x=f,R=s===!0?1/0:s;f=()=>tt(x(),R)}const y=wc(),b=()=>{u.stop(),y&&y.active&&As(y.effects,u)};if(i&&t){const x=t;t=(...R)=>{const K=x(...R);return b(),K}}let M=g?new Array(e.length).fill($n):$n;const T=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(t){const R=u.run();if(x||s||m||(g?R.some((K,j)=>me(K,M[j])):me(R,M))){d&&d();const K=Tt;Tt=u;try{const j=[R,M===$n?void 0:g&&M[0]===$n?[]:M,h];M=R,l?l(t,3,j):t(...j)}finally{Tt=K}}}else u.run()};return a&&a(T),u=new ko(f),u.scheduler=o?()=>o(T,!1):T,h=x=>Gc(x,!1,u),d=u.onStop=()=>{const x=Qn.get(u);if(x){if(l)l(x,4);else for(const R of x)R();Qn.delete(u)}},t?r?T(!0):M=u.run():o?o(T.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function tt(e,t=1/0,n){if(t<=0||!J(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ue(e))tt(e.value,t,n);else if($(e))for(let r=0;r<e.length;r++)tt(e[r],t,n);else if(it(e)||gt(e))e.forEach(r=>{tt(r,t,n)});else if(So(e)){for(const r in e)tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tt(e[r],t,n)}return e}function _n(e,t,n,r){try{return r?e(...r):e()}catch(s){Tn(s,t,n)}}function Fe(e,t,n,r){if(V(e)){const s=_n(e,t,n,r);return s&&bo(s)&&s.catch(i=>{Tn(i,t,n)}),s}if($(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Fe(e[i],t,n,r));return s}}function Tn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||U;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(i){ot(),_n(i,null,10,[e,l,c]),at();return}}Yc(e,n,s,r,o)}function Yc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}var Ce=[],Ue=-1,Vt=[],pt=null,$t=0,Go=Promise.resolve(),Zn=null;function Is(e){const t=Zn||Go;return e?t.then(this?e.bind(this):e):t}function Xc(e){let t=Ue+1,n=Ce.length;for(;t<n;){const r=t+n>>>1,s=Ce[r],i=yn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function $s(e){if(!(e.flags&1)){const t=yn(e),n=Ce[Ce.length-1];!n||!(e.flags&2)&&t>=yn(n)?Ce.push(e):Ce.splice(Xc(t),0,e),e.flags|=1,Jo()}}function Jo(){Zn||(Zn=Go.then(Xo))}function Qc(e){if(!$(e))pt&&e.id===-1?pt.splice($t+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Vt.push(e[t]);Jo()}function di(e,t,n=Ue+1){for(;n<Ce.length;n++){const r=Ce[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ce.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Yo(e){if(Vt.length){const t=[...new Set(Vt)].sort((n,r)=>yn(n)-yn(r));if(Vt.length=0,pt){for(let n=0;n<t.length;n++)pt.push(t[n]);return}for(pt=t,$t=0;$t<pt.length;$t++){const n=pt[$t];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,$t=0}}var yn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Xo(e){try{for(Ue=0;Ue<Ce.length;Ue++){const t=Ce[Ue];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_n(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ue<Ce.length;Ue++){const t=Ce[Ue];t&&(t.flags&=-2)}Ue=-1,Ce.length=0,Yo(e),Zn=null,(Ce.length||Vt.length)&&Xo(e)}}var ve=null,Qo=null;function er(e){const t=ve;return ve=e,Qo=e&&e.type.__scopeId||null,t}function Zc(e,t=ve,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ir(-1);const i=er(t),o=st.length;let a;try{a=e(...s)}finally{for(let l=st.length;l>o;l--)Ws();er(i),r._d&&ir(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Wp(e,t){if(ve===null)return e;const n=Nr(ve),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=U]=t[s];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&tt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function xt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(ot(),Fe(l,n,8,[e.el,a,e,t]),at())}}function eu(e,t){if(ge){let n=ge.provides;const r=ge.parent&&ge.parent.provides;r===n&&(n=ge.provides=Object.create(r)),n[e]=t}}function qn(e,t,n=!1){const r=bt();if(r||Dt){let s=Dt?Dt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&V(t)?t.call(r&&r.proxy):t}}function Up(){return!!(bt()||Dt)}var tu=Symbol.for("v-scx"),nu=()=>{{const e=qn(tu);return e}};function ru(e,t){return Ar(e,null,t)}function su(e,t){return Ar(e,null,{flush:"sync"})}function Gr(e,t,n){return Ar(e,t,n)}function Ar(e,t,n=U){const{immediate:r,deep:s,flush:i,once:o}=n,a=oe({},n),l=t&&r||!t&&i!=="post";let c;if(Wt){if(i==="sync"){const h=nu();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Je,h.resume=Je,h.pause=Je,h}}const u=ge;a.call=(h,m,g)=>Fe(h,u,m,g);let f=!1;
1i==="post"?a.scheduler=h=>{Ee(h,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(h,m)=>{m?h():$s(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=Jc(e,t,a);return Wt&&(c?c.push(d):l&&d()),d}function iu(e,t,n){const r=this.proxy,s=re(e)?e.includes(".")?Zo(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const o=An(this),a=Ar(s,i.bind(r),n);return o(),a}function Zo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}var ht=new WeakMap,ea=Symbol("_vte"),Pr=e=>e.__isTeleport,kt=e=>e&&(e.disabled||e.disabled===""),ou=e=>e&&(e.defer||e.defer===""),hi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,us=(e,t)=>{const n=e&&e.to;return re(n)?t?t(n):null:n},au={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:m,createText:g,createComment:y,parentNode:b}}=c,M=kt(t.props);let{dynamicChildren:T}=t;const x=(j,H,N)=>{j.shapeFlag&16&&u(j.children,H,N,s,i,o,a,l)},R=(j=t)=>{const H=kt(j.props),N=j.target=us(j.props,m),z=fs(N,j,g,h);N&&(o!=="svg"&&hi(N)?o="svg":o!=="mathml"&&pi(N)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(N),H||(x(j,N,z),nn(j,!1)))},K=j=>{const H=()=>{if(ht.get(j)===H){if(ht.delete(j),kt(j.props)){const N=b(j.el)||n;x(j,N,j.anchor),nn(j,!0)}R(j)}};ht.set(j,H),Ee(H,i)};if(e==null){const j=t.el=g(""),H=t.anchor=g("");if(h(j,n,r),h(H,n,r),ou(t.props)||i&&i.pendingBranch){K(t);return}M&&(x(t,n,H),nn(t,!0)),R()}else{t.el=e.el;const j=t.anchor=e.anchor,H=ht.get(e);if(H){H.flags|=8,ht.delete(e),K(t);return}t.targetStart=e.targetStart;const N=t.target=e.target,z=t.targetAnchor=e.targetAnchor,Y=kt(e.props),D=Y?n:N,W=Y?j:z;if(o==="svg"||hi(N)?o="svg":(o==="mathml"||pi(N))&&(o="mathml"),T?(d(e.dynamicChildren,T,D,s,i,o,a),Ks(e,t,!0)):l||f(e,t,D,W,s,i,o,a,!1),M)Y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ln(t,n,j,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=us(t.props,m);se&&(t.target=se,Ln(t,se,null,c,0))}else Y&&Ln(t,N,z,c,1);nn(t,M)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e,h=kt(d),m=i||!h,g=ht.get(e);if(g&&(g.flags|=8,ht.delete(e)),f&&(s(c),s(u)),i&&s(l),!g&&(h||f)&&o&16)for(let y=0;y<a.length;y++){const b=a[y];r(b,t,n,m,!!b.dynamicChildren)}},move:Ln,hydrate:lu};function Ln(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,f=i===2;if(f&&r(o,t,n),!ht.has(e)&&(!f||kt(u))&&l&16)for(let d=0;d<c.length;d++)s(c[d],t,n,2);f&&r(a,t,n)}function lu(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:c,createText:u}},f){function d(y,b){let M=b;for(;M;){if(M&&M.nodeType===8){if(M.data==="teleport start anchor")t.targetStart=M;else if(M.data==="teleport anchor"){t.targetAnchor=M,y._lpa=t.targetAnchor&&o(t.targetAnchor);break}}M=o(M)}}function h(y,b){b.anchor=f(o(y),b,a(y),n,r,s,i)}const m=t.target=us(t.props,l),g=kt(t.props);if(m){const y=m._lpa||m.firstChild;t.shapeFlag&16&&(g?(h(e,t),d(m,y),t.targetAnchor||fs(m,t,u,c,a(e)===m?e:null)):(t.anchor=o(e),d(m,y),t.targetAnchor||fs(m,t,u,c),f(y&&o(y),t,m,n,r,s,i))),nn(t,g)}else g&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var qp=au;function nn(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function fs(e,t,n,r,s=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[ea]=o,e&&(r(i,e,s),r(o,e,s)),o}var Ie=Symbol("_leaveCb"),Zt=Symbol("_enterCb");function cu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return la(()=>{e.isMounted=!0}),Fs(()=>{e.isUnmounting=!0}),e}var Ne=[Function,Array],ta={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ne,onEnter:Ne,onAfterEnter:Ne,onEnterCancelled:Ne,onBeforeLeave:Ne,onLeave:Ne,onAfterLeave:Ne,onLeaveCancelled:Ne,onBeforeAppear:Ne,onAppear:Ne,onAfterAppear:Ne,onAppearCancelled:Ne},na=e=>{const t=e.subTree;return t.component?na(t.component):t},uu={name:"BaseTransition",props:ta,setup(e,{slots:t}){const n=bt(),r=cu();return()=>{const s=t.default&&ia(t.default(),!0),i=s&&s.length?ra(s):n.subTree?Xu():void 0;if(!i)return;const o=G(e),{mode:a}=o;if(r.isLeaving)return Jr(i);const l=tr(i);if(!l)return Jr(i);let c=ds(l,o,r,n,f=>c=f);l.type!==be&&bn(l,c);let u=n.subTree&&tr(n.subTree);if(u&&u.type!==be&&!At(u,l)&&na(n).type!==be){let f=ds(u,o,r,n);if(bn(u,f),a==="out-in"&&l.type!==be)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Jr(i);a==="in-out"&&l.type!==be?f.delayLeave=(d,h,m)=>{const g=sa(r,u);g[String(u.key)]=u,d[Ie]=()=>{h(),d[Ie]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function ra(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==be){t=n;break}}return t}var fu=uu;
1function sa(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ds(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:M,onAppearCancelled:T}=t,x=String(e.key),R=sa(n,e),K=(N,z)=>{N&&Fe(N,r,9,z)},j=(N,z)=>{const Y=z[1];K(N,z),$(N)?N.every(D=>D.length<=1)&&Y():N.length<=1&&Y()},H={mode:o,persisted:a,beforeEnter(N){let z=l;if(!n.isMounted)if(i)z=y||l;else return;N[Ie]&&N[Ie](!0);const Y=R[x];Y&&At(e,Y)&&Y.el[Ie]&&Y.el[Ie](),K(z,[N])},enter(N){if(R[x]===e)return;let z=c,Y=u,D=f;if(!n.isMounted)if(i)z=b||c,Y=M||u,D=T||f;else return;let W=!1;N[Zt]=Me=>{W||(W=!0,Me?K(D,[N]):K(Y,[N]),H.delayedLeave&&H.delayedLeave(),N[Zt]=void 0)};const se=N[Zt].bind(null,!1);z?j(z,[N,se]):se()},leave(N,z){const Y=String(e.key);if(N[Zt]&&N[Zt](!0),n.isUnmounting)return z();K(d,[N]);let D=!1;N[Ie]=se=>{D||(D=!0,z(),se?K(g,[N]):K(m,[N]),N[Ie]=void 0,R[Y]===e&&delete R[Y])};const W=N[Ie].bind(null,!1);R[Y]=e,h?j(h,[N,W]):W()},clone(N){const z=ds(N,t,n,r,s);return s&&s(z),z}};return H}function Jr(e){if(kn(e))return e=vt(e),e.children=null,e}function tr(e){if(!kn(e))return Pr(e.type)&&e.children?ra(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&V(n.default))return n.default()}}function bn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;bn(Pr(n.type)&&tr(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ia(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ae?(o.patchFlag&128&&s++,r=r.concat(ia(o.children,t,a))):(t||o.type!==be)&&r.push(a!=null?vt(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function oa(e,t){return V(e)?oe({name:e.name},t,{setup:e}):e}function Gp(){const e=bt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ls(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Jp(e){const t=bt(),n=Bc(null);if(t){const r=t.refs===U?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function mi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var nr=new WeakMap;function fn(e,t,n,r,s=!1){if($(e)){e.forEach((g,y)=>fn(g,t&&($(t)?t[y]:t),n,r,s));return}if(zt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&fn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Nr(r.component):r.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===U?a.refs={}:a.refs,f=a.setupState,d=G(f),h=f===U?yo:g=>mi(u,g)?!1:Q(d,g),m=(g,y)=>!(y&&mi(u,y));if(c!=null&&c!==l){if(gi(t),re(c))u[c]=null,h(c)&&(f[c]=null);else if(ue(c)){const g=t;m(c,g.k)&&(c.value=null),g.k&&(u[g.k]=null)}}if(V(l))_n(l,a,12,[o,u]);else{const g=re(l),y=ue(l);if(g||y){const b=()=>{if(e.f){const M=g?h(l)?f[l]:u[l]:m(l)||!e.k?l.value:u[e.k];if(s)$(M)&&As(M,i);else if($(M))M.includes(i)||M.push(i);else if(g)u[l]=[i],h(l)&&(f[l]=u[l]);else{const T=[i];m(l,e.k)&&(l.value=T),e.k&&(u[e.k]=T)}}else g?(u[l]=o,h(l)&&(f[l]=o)):y&&(m(l,e.k)&&(l.value=o),e.k&&(u[e.k]=o))};if(o){const M=()=>{b(),nr.delete(e)};M.id=-1,nr.set(e,M),Ee(M,n)}else gi(e),b()}}}function gi(e){const t=nr.get(e);t&&(t.flags|=8,nr.delete(e))}var vi=e=>e.nodeType===8,Yp=br().requestIdleCallback||(e=>setTimeout(e,1)),Xp=br().cancelIdleCallback||(e=>clearTimeout(e));function du(e,t){if(vi(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(vi(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}var zt=e=>!!e.type.__asyncLoader;function Qp(e){V(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const d=()=>(f++,c=null,h()),h=()=>{let m;return c||(m=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,b)=>{l(g,()=>y(d()),()=>b(g),f+1)});throw g}).then(g=>
1m!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return oa({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(m,g,y){const b=m.isConnected;let M=!1;(g.bu||(g.bu=[])).push(()=>M=!0);const T=()=>{M||!m.parentNode||b&&!m.isConnected||y()},x=i?()=>{const R=i(T,K=>du(m,K));R&&(g.bum||(g.bum=[])).push(R)}:T;u?x():h().then(()=>!g.isUnmounted&&x())},get __asyncResolved(){return u},setup(){const m=ge;if(Ls(m),u)return()=>Fn(u,m);const g=R=>{c=null,Tn(R,m,13,!r)};if(a&&m.suspense||Wt)return h().then(R=>()=>Fn(R,m)).catch(R=>(g(R),()=>r?de(r,{error:R}):null));const y=un(!1),b=un(),M=un(!!s);let T,x;return js(()=>{T!=null&&clearTimeout(T),x!=null&&clearTimeout(x)}),s&&(x=setTimeout(()=>{m.isUnmounted||(M.value=!1)},s)),o!=null&&(T=setTimeout(()=>{if(!m.isUnmounted&&!y.value&&!b.value){const R=new Error(`Async component timed out after ${o}ms.`);g(R),b.value=R}},o)),h().then(()=>{m.isUnmounted||(y.value=!0,m.parent&&kn(m.parent.vnode)&&m.parent.update())}).catch(R=>{if(m.isUnmounted){c=null;return}g(R),b.value=R}),()=>{if(y.value&&u)return Fn(u,m);if(b.value&&r)return de(r,{error:b.value});if(n&&!M.value)return Fn(n,m)}}})}function Fn(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=de(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}var kn=e=>e.type.__isKeepAlive;function hu(e,t){aa(e,"a",t)}function pu(e,t){aa(e,"da",t)}function aa(e,t,n=ge){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Rr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)kn(s.parent.vnode)&&mu(r,t,n,s),s=s.parent}}function mu(e,t,n,r){const s=Rr(t,e,r,!0);js(()=>{As(r[t],s)},n)}function Rr(e,t,n=ge,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ot();const a=An(n),l=Fe(t,n,e,o);return a(),at(),l});return r?s.unshift(i):s.push(i),i}}var ut=e=>(t,n=ge)=>{(!Wt||e==="sp")&&Rr(e,(...r)=>t(...r),n)},gu=ut("bm"),la=ut("m"),vu=ut("bu"),yu=ut("u"),Fs=ut("bum"),js=ut("um"),bu=ut("sp"),wu=ut("rtg"),Su=ut("rtc");function xu(e,t=ge){Rr("ec",e,t)}var Bs="components";function Zp(e,t){return ua(Bs,e,!0,t)||e}var ca=Symbol.for("v-ndc");function em(e){return re(e)?ua(Bs,e,!1)||e:e||ca}function ua(e,t,n=!0,r=!1){const s=ve||ge;if(s){const i=s.type;if(e===Bs){const a=of(i,!1);if(a&&(a===t||a===we(t)||a===vr(we(t))))return i}const o=yi(s[e]||i[e],t)||yi(s.appContext[e],t);return!o&&r?i:o}}function yi(e,t){return e&&(e[t]||e[we(t)]||e[vr(we(t))])}function tm(e,t,n,r){let s;const i=n&&n[r],o=$(e);if(o||re(e)){const a=o&&Rt(e);let l=!1,c=!1;a&&(l=!De(e),c=lt(e),e=Er(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(l?c?Kt(ze(e[u])):ze(e[u]):e[u],u,void 0,i&&i[u])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(J(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,i&&i[l])}}else s=[];return n&&(n[r]=s),s}function nm(e,t){for(let n=0;n<t.length;n++){const r=t[n];if($(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function rm(e,t,n,r,s,i){if(n==null&&(n={}),ve.ce||ve.parent&&zt(ve.parent)&&ve.parent.ce){const c=i!=null&&n.key==null?oe({},n,{key:i}):n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),vs(),ys(Ae,null,[de("slot",c,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const a=st.length;vs();let l;try{const c=o&&fa(o(n)),u=n.key||i||c&&c.key;l=ys(Ae,{key:(u&&!Oe(u)?u:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let u=st.length;u>a;u--)Ws();throw c}finally{o&&o._c&&(o._d=!0)}return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function fa(e){return e.some(t=>Sn(t)?!(t.type===be||t.type===Ae&&!fa(t.children)):!0)?e:null}var hs=e=>e?Da(e)?Nr(e):hs(e.parent):null,dn=oe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hs(e.parent),$root:e=>hs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vs(e),$forceUpdate:e=>e.f||(e.f=()=>{$s(e.update)}),$nextTick:e=>e.n||(e.n=Is.bind(e.proxy)),$watch:e=>iu.bind(e)}),Yr=(e,t)=>e!==U&&!e.__isScriptSetup&&Q(e,t),Eu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Yr(r,t))return o[t]=1,r[t];if(s!==U&&Q(s,t))return o[t]=2,s[t];if(Q(i,t))return o[t]=3,i[t];if(n!==U&&Q(n,t))return o[t]=4,n[t];ps&&(o[t]=0)}}const c=dn[t];let u,f;if(c)return t==="$attrs"&&ye(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==U&&Q(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,Q(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Yr(s,t)?(s[t]=n,!0):r!==U&&Q(r,t)?(r[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==U&&a[0]!=="$"&&Q(e,a)||Yr(t,a)||Q(i,a)||Q(r,a)||Q(dn,a)||Q(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function sm(){return da("useSlots").slots}function im(){return da("useAttrs").attrs}function da(e){const t=bt();return t.setupContext||(t.setupContext=Na(t))}function rr(e){return $(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function om(e,t){return!e||!t?e||t:$(e)&&$(t)?e.concat(t):oe({},rr(e),rr(t))}var ps=!0;function Cu(e){const t=Vs(e),n=e.proxy,r=e.ctx;ps=!1,t.beforeCreate&&bi(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:M,destroyed:T,unmounted:x,render:R,renderTracked:K,renderTriggered:j,errorCaptured:H,serverPrefetch:N,expose:z,inheritAttrs:Y,components:D,directives:W,filters:se}=t;if(c&&Mu(c,r,null),o)for(const ie in o){const Z=o[ie];V(Z)&&(r[ie]=Z.bind(n))}if(s){const ie=s.call(n,n);J(ie)&&(e.data=Mr(ie))}if(ps=!0,i)for(const ie in i){const Z=i[ie],wt=V(Z)?Z.bind(n,n):V(Z.get)?Z.get.bind(n,n):Je,Dn=!V(Z)&&V(Z.set)?Z.set.bind(n):Je,St=lf({get:wt,set:Dn});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>St.value,set:He=>St.value=He})}if(a)for(const ie in a)ha(a[ie],r,n,ie);if(l){const ie=V(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(Z=>{eu(Z,ie[Z])})}u&&bi(u,e,"c");function fe(ie,Z){$(Z)?Z.forEach(wt=>ie(wt.bind(n))):Z&&ie(Z.bind(n))}if(fe(gu,f),fe(la,d),fe(vu,h),fe(yu,m),fe(hu,g),fe(pu,y),fe(xu,H),fe(Su,K),fe(wu,j),fe(Fs,M),fe(js,x),fe(bu,N),$(z))if(z.length){const ie=e.exposed||(e.exposed={});z.forEach(Z=>{Object.defineProperty(ie,Z,{get:()=>n[Z],set:wt=>n[Z]=wt,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Je&&(e.render=R),Y!=null&&(e.inheritAttrs=Y),D&&(e.components=D),W&&(e.directives=W),N&&Ls(e)}function Mu(e,t,n=Je){$(e)&&(e=ms(e));for(const r in e){const s=e[r];let i;J(s)?"default"in s?i=qn(s.from||r,s.default,!0):i=qn(s.from||r):i=qn(s),ue(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function bi(e,t,n){Fe($(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ha(e,t,n,r){let s=r.includes(".")?Zo(n,r):()=>n[r];if(re(e)){const i=t[e];V(i)&&Gr(s,i)}else if(V(e))Gr(s,e.bind(n));else if(J(e))if($(e))e.forEach(i=>
vendor: 20,758 bytes, line 1
1ha(i,t,n,r));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&Gr(s,i,e)}}function Vs(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>sr(l,c,o,!0)),sr(l,t,o)),J(t)&&i.set(t,l),l}function sr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&sr(e,i,n,!0),s&&s.forEach(o=>sr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=_u[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}var _u={data:wi,props:Si,emits:Si,methods:rn,computed:rn,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:rn,directives:rn,watch:ku,provide:wi,inject:Tu};function wi(e,t){return t?e?function(){return oe(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return rn(ms(e),ms(t))}function ms(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function rn(e,t){return e?oe(Object.create(null),e,t):t}function Si(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:oe(Object.create(null),rr(e),rr(t??{})):t}function ku(e,t){if(!e)return t;if(!t)return e;const n=oe(Object.create(null),e);for(const r in t)n[r]=xe(e[r],t[r]);return n}function pa(){return{app:null,config:{isNativeTag:yo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Au=0;function Pu(e,t){return function(r,s=null){V(r)||(r=oe({},r)),s!=null&&!J(s)&&(s=null);const i=pa(),o=new WeakSet,a=[];let l=!1;const c=i.app={_uid:Au++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:cf,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&V(u.install)?(o.add(u),u.install(c,...f)):V(u)&&(o.add(u),u(c,...f))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!l){const h=c._ceVNode||de(r,s);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,u):e(h,u,d),l=!0,c._container=u,u.__vue_app__=c,Nr(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Fe(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Dt;Dt=c;try{return u()}finally{Dt=f}}};return c}}var Dt=null;function am(e,t,n=U){const r=bt(),s=we(t),i=ct(t),o=ma(e,s),a=Uo((l,c)=>{let u,f=U,d;return su(()=>{const h=e[s];me(u,h)&&(u=h,c())}),{get(){return l(),n.get?n.get(u):u},set(h){const m=n.set?n.set(h):h;if(!me(m,u)&&!(f!==U&&me(h,f)))return;const g=r.vnode.props,y=!!(g&&(t in g||s in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${s}`in g||`onUpdate:${i}`in g));y||(u=h,c()),r.emit(`update:${t}`,m),me(h,f)&&(me(h,m)&&!me(m,d)||y&&f!==U&&!me(m,u))&&c(),f=h,d=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||U:a,done:!1}:{done:!0}}}},a}var ma=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${ct(t)}Modifiers`];function Ru(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||U;let s=n;const i=t.startsWith("update:"),o=i&&ma(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>re(u)?u.trim():u)),o.number&&(s=s.map(yr)));let a,l=r[a=Hr(t)]||r[a=Hr(we(t))];!l&&i&&(l=r[a=Hr(ct(t))]),l&&Fe(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Fe(c,e,6,s)}}var Du=new WeakMap;function ga(e,t,n=!1){const r=n?Du:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!V(e)){const l=c=>{const u=ga(c,t,!0);u&&(a=!0,oe(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(J(e)&&r.set(e,null),null):($(i)?i.forEach(l=>o[l]=null):oe(o,i),J(e)&&r.set(e,o),o)}function Dr(e,t){return!e||!hr(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ct(t))||Q(e,t))}function Xr(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:m,inheritAttrs:g}=e,y=er(e);let b,M;try{if(n.shapeFlag&4){const x=s||r,R=x;b=Ge(c.call(R,x,u,f,h,d,m)),M=a}else{const x=t;b=Ge(x.length>1?x(f,{attrs:a,slots:o,emit:l}):x(f,null)),M=t.props?a:Ou(a)}}catch(x){st.length=0,Tn(x,e,1),b=de(be)}let T=b;if(M&&g!==!1){const x=Object.keys(M),{shapeFlag:R}=T;x.length&&R&7&&(i&&x.some(pr)&&(M=Nu(M,i)),T=vt(T,M,!1,!0))}return n.dirs&&(T=vt(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&bn(Pr(T.type)&&tr(T)||T,n.transition),b=T,er(y),b}var Ou=e=>{let t;for(const n in e)(n==="class"||n==="style"||hr(n))&&((t||(t={}))[n]=e[n]);return t},Nu=(e,t)=>{const n={};for(const r in e)(!pr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Iu(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?xi(r,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(va(o,r,d)&&!Dr(c,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?xi(r,o,c):!0:!!o;return!1}function xi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(va(t,e,i)&&!Dr(n,i))return!0}return!1}function va(e,t,n){const r=e[n],s=t[n];return n==="style"&&J(r)&&J(s)?!Ve(r,s):r!==s}function $u({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var ya={},ba=()=>Object.create(ya),wa=e=>Object.getPrototypeOf(e)===ya;function Lu(e,t,n,r=!1){const s={},i=ba();e.propsDefaults=Object.create(null),Sa(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:jc(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Fu(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=G(s),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Dr(e.emitsOptions,d))continue;const h=t[d];if(l)if(Q(i,d))h!==i[d]&&(i[d]=h,c=!0);else{const m=we(d);s[m]=gs(l,a,m,h,e,!1)}else h!==i[d]&&(i[d]=h,c=!0)}}}else{Sa(e,t,s,i)&&(c=!0);let u;for(const f in a)(!t||!Q(t,f)&&((u=ct(f))===f||!Q(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=gs(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!Q(t,f))&&(delete i[f],c=!0)}c&&et(e.attrs,"set","")}function Sa(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(an(l))continue;const c=t[l];let u;s&&Q(s,u=we(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Dr(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,o=!0)}if(i){const l=G(n),c=a||U;for(let u=0;u<i.length;u++){const f=i[u];n[f]=gs(s,l,f,c[f],e,!Q(c,f))}}return o}function gs(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=Q(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&V(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=An(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===ct(n))&&(r=!0))}return r}var ju=new WeakMap;function xa(e,t,n=!1){const r=n?ju:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!V(e)){const u=f=>{l=!0;const[d,h]=xa(f,t,!0);oe(o,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return J(e)&&r.set(e,Bt),Bt;if($(i))for(let u=0;u<i.length;u++){const f=we(i[u]);Ei(f)&&(o[f]=U)}else if(i)for(const u in i){const f=we(u);if(Ei(f)){const d=i[u],h=o[f]=$(d)||V(d)?{type:d}:oe({},d),m=h.type;let g=!1,y=!0;if($(m))for(let b=0;b<m.length;++b){const M=m[b],T=V(M)&&M.name;if(T==="Boolean"){g=!0;break}else T==="String"&&(y=!1)}else g=V(m)&&m.name==="Boolean";h[0]=g,h[1]=y,(g||Q(h,"default"))&&a.push(f)}}const c=[o,a];return J(e)&&r.set(e,c),c}function Ei(e){return e[0]!=="$"&&!an(e)}var zs=e=>e==="_"||e==="_ctx"||e==="$stable",Hs=e=>$(e)?e.map(Ge):[Ge(e)],Bu=(e,t,n)=>{if(t._n)return t;const r=Zc((...s)=>Hs(t(...s)),n);return r._c=!1,r},Ea=(e,t,n)=>{const r=e._ctx;for(const s in e){if(zs(s))continue;const i=e[s];if(V(i))t[s]=Bu(s,i,r);else if(i!=null){const o=Hs(i);t[s]=()=>o}}},Ca=(e,t)=>{const n=Hs(t);e.slots.default=()=>n},Ma=(e,t,n)=>{for(const r in t)(n||!zs(r))&&(e[r]=t[r])},Vu=(e,t,n)=>{const r=e.slots=ba();if(e.vnode.shapeFlag&32){const s=t._;s?(Ma(r,t,n),n&&xo(r,"_",s,!0)):Ea(t,r)}else t&&Ca(e,t)},zu=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=U;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ma(s,t,n):(i=!t.$stable,Ea(t,s)),o=t}else t&&(Ca(e,t),o={default:1});if(i)for(const a in s)!zs(a)&&o[a]==null&&delete s[a]},Ee=qu;function Hu(e){return Ku(e)}function Ku(e,t){const n=br();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Je,insertStaticContent:m}=e,g=(p,v,w,_=null,E=null,S=null,P=void 0,A=null,k=!!v.dynamicChildren)=>{if(p===v)return;p&&!At(p,v)&&(_=On(p),He(p,E,S,!0),p=null),v.patchFlag===-2&&(k=!1,v.dynamicChildren=null);const{type:C,ref:L,shapeFlag:O}=v;switch(C){case Or:y(p,v,w,_);break;case be:b(p,v,w,_);break;case Gn:p==null&&M(v,w,_,P);break;case Ae:D(p,v,w,_,E,S,P,A,k);break;default:O&1?R(p,v,w,_,E,S,P,A,k):O&6?W(p,v,w,_,E,S,P,A,k):(O&64||O&128)&&C.process(p,v,w,_,E,S,P,A,k,Ot)}L!=null&&E?fn(L,p&&p.ref,S,v||p,!v):L==null&&p&&p.ref!=null&&fn(p.ref,null,S,p,!0)},y=(p,v,w,_)=>{if(p==null)r(v.el=a(v.children),w,_);else{const E=v.el=p.el;v.children!==p.children&&c(E,v.children)}},b=(p,v,w,_)=>{p==null?r(v.el=l(v.children||""),w,_):v.el=p.el},M=(p,v,w,_)=>{[p.el,p.anchor]=m(p.children,v,w,_,p.el,p.anchor)},T=({el:p,anchor:v},w,_)=>{let E;for(;p&&p!==v;)E=d(p),r(p,w,_),p=E;r(v,w,_)},x=({el:p,anchor:v})=>{let w;for(;p&&p!==v;)w=d(p),s(p),p=w;s(v)},R=(p,v,w,_,E,S,P,A,k)=>{if(v.type==="svg"?P="svg":v.type==="math"&&(P="mathml"),p==null)K(v,w,_,E,S,P,A,k);else{const C=p.el&&p.el._isVueCE?p.el:null;try{C&&C._beginPatch(),N(p,v,E,S,P,A,k)}finally{C&&C._endPatch()}}},K=(p,v,w,_,E,S,P,A)=>{let k,C;const{props:L,shapeFlag:O,transition:F,dirs:B}=p;if(k=p.el=o(p.type,S,L&&L.is,L),O&8?u(k,p.children):O&16&&H(p.children,k,null,_,E,Qr(p,S),P,A),B&&xt(p,null,_,"created"),j(k,p,p.scopeId,P,_),L){for(const ee in L)ee!=="value"&&!an(ee)&&i(k,ee,null,L[ee],S,_);"value"in L&&i(k,"value",null,L.value,S),(C=L.onVnodeBeforeMount)&&We(C,_,p)}B&&xt(p,null,_,"beforeMount");const q=Wu(E,F);q&&F.beforeEnter(k),r(k,v,w),((C=L&&L.onVnodeMounted)||q||B)&&Ee(()=>{C&&We(C,_,p),q&&F.enter(k),B&&xt(p,null,_,"mounted")},E)},j=(p,v,w,_,E)=>{if(w&&h(p,w),_)for(let S=0;S<_.length;S++)h(p,_[S]);if(E){let S=E.subTree;if(v===S||ka(S.type)&&(S.ssContent===v||S.ssFallback===v)){const P=E.vnode;j(p,P,P.scopeId,P.slotScopeIds,E.parent)}}},H=(p,v,w,_,E,S,P,A,k=0)=>{for(let C=k;C<p.length;C++){const L=p[C]=A?Ze(p[C]):Ge(p[C]);g(null,L,v,w,_,E,S,P,A)}},N=(p,v,w,_,E,S,P)=>{const A=v.el=p.el;let{patchFlag:k,dynamicChildren:C,dirs:L}=v;k|=p.patchFlag&16;const O=p.props||U,F=v.props||U;let B;if(w&&Et(w,!1),(B=F.onVnodeBeforeUpdate)&&We(B,w,v,p),L&&xt(v,p,w,"beforeUpdate"),w&&Et(w,!0),C&&(!p.dynamicChildren||p.dynamicChildren.length!==C.length)&&(k=0,P=!1,C=null),(O.innerHTML&&F.innerHTML==null||O.textContent&&F.textContent==null)&&u(A,""),C?z(p.dynamicChildren,C,A,w,_,Qr(v,E),S):P||Z(p,v,A,null,w,_,Qr(v,E),S,!1),k>0){if(k&16)Y(A,O,F,w,E);else if(k&2&&O.class!==F.class&&i(A,"class",null,F.class,E),k&4&&i(A,"style",O.style,F.style,E),k&8){const q=v.dynamicProps;for(let ee=0;ee<q.length;ee++){const te=q[ee],ae=O[te],le=F[te];(le!==ae||te==="value")&&i(A,te,ae,le,E,w)}}k&1&&p.children!==v.children&&u(A,v.children)}else!P&&C==null&&Y(A,O,F,w,E);((B=F.onVnodeUpdated)||L)&&Ee(()=>{B&&We(B,w,v,p),L&&xt(v,p,w,"updated")},_)},z=(p,v,w,_,E,S,P)=>{for(let A=0;A<v.length;A++){const k=p[A],C=v[A],L=k.el&&(k.type===Ae||!At(k,C)||k.shapeFlag&198)?f(k.el):w;g(k,C,L,null,_,E,S,P,!0)}},Y=(p,v,w,_,E)=>{if(v!==w){if(v!==U)for(const S in v)!an(S)&&!(S in w)&&i(p,S,v[S],null,E,_);for(const S in w){if(an(S))continue;const P=w[S],A=v[S];P!==A&&S!=="value"&&i(p,S,A,P,E,_)}"value"in w&&i(p,"value",v.value,w.value,E)}},D=(p,v,w,_,E,S,P,A,k)=>{const C=v.el=p?p.el:a(""),L=v.anchor=p?p.anchor:a("");let{patchFlag:O,dynamicChildren:F,slotScopeIds:B}=v;B&&(A=A?A.concat(B):B),p==null?(r(C,w,_),r(L,w,_),H(v.children||[],w,L,E,S,P,A,k)):O>0&&O&64&&F&&p.dynamicChildren&&p.dynamicChildren.length===F.length?(z(p.dynamicChildren,F,w,E,S,P,A),(v.key!=null||E&&v===E.subTree)&&Ks(p,v,!0)):Z(p,v,w,L,E,S,P,A,k)},W=(p,v,w,_,E,S,P,A,k)=>{v.slotScopeIds=A,p==null?v.shapeFlag&512?E.ctx.activate(v,w,_,P,k):se(v,w,_,E,S,P,k):Me(p,v,k)},se=(p,v,w,_,E,S,P)=>{const A=p.component=tf(p,_,E);if(kn(p)&&(A.ctx.renderer=Ot),nf(A,!1,P),A.asyncDep){if(E&&E.registerDep(A,fe,P),!p.el){const k=A.subTree=de(be);b(null,k,v,w),p.placeholder=k.el}}else fe(A,p,v,w,E,S,P)},Me=(p,v,w)=>{const _=v.component=p.component;if(Iu(p,v,w))if(_.asyncDep&&!_.asyncResolved){ie(_,v,w);return}else _.next=v,_.update();else v.el=p.el,_.vnode=v},fe=(p,v,w,_,E,S,P)=>{const A=()=>{if(p.isMounted){let{next:O,bu:F,u:B,parent:q,vnode:ee}=p;{const Te=_a(p);if(Te){O&&(O.el=ee.el,ie(p,O,P)),Te.asyncDep.then(()=>{Ee(()=>{p.isUnmounted||C()},E)});return}}let te=O,ae;Et(p,!1),O?(O.el=ee.el,ie(p,O,P)):O=ee,F&&Un(F),(ae=O.props&&O.props.onVnodeBeforeUpdate)&&We(ae,q,O,ee),Et(p,!0);const le=Xr(p),je=p.subTree;p.subTree=le,g(je,le,f(je.el),On(je),p,E,S),O.el=le.el,te===null&&$u(p,le.el),B&&Ee(B,E),(ae=O.props&&O.props.onVnodeUpdated)&&Ee(()=>We(ae,q,O,ee),E)}else{let O;const{el:F,props:B}=v,{bm:q,m:ee,parent:te,root:ae,type:le}=p,je=zt(v);if(Et(p,!1),q&&Un(q),!je&&(O=B&&B.onVnodeBeforeMount)&&We(O,te,v),Et(p,!0),F&&Vr){const Te=()=>{p.subTree=Xr(p),Vr(F,p.subTree,p,E,null)};je&&le.__asyncHydrate?le.__asyncHydrate(F,p,Te):Te()}else{ae.ce&&ae.ce._hasShadowRoot()&&ae.ce._injectChildStyle(le,p.parent?p.parent.type:void 0);const Te=p.subTree=Xr(p);g(null,Te,w,_,p,E,S),v.el=Te.el}if(ee&&Ee(ee,E),!je&&(O=B&&B.onVnodeMounted)){const Te=v;Ee(()=>We(O,te,Te),E)}(v.shapeFlag&256||te&&zt(te.vnode)&&te.vnode.shapeFlag&256)&&p.a&&Ee(p.a,E),p.isMounted=!0,v=w=_=null}};p.scope.on();const k=p.effect=new ko(A);p.scope.off();const C=p.update=k.run.bind(k),L=p.job=k.runIfDirty.bind(k);L.i=p,L.id=p.uid,k.scheduler=()=>$s(L),Et(p,!0),C()},ie=(p,v,w)=>{v.component=p;const _=p.vnode.props;p.vnode=v,p.next=null,Fu(p,v.props,_,w),zu(p,v.children,w),ot(),di(p),at()},Z=(p,v,w,_,E,S,P,A,k=!1)=>{const C=p&&p.children,L=p?p.shapeFlag:0,O=v.children,{patchFlag:F,shapeFlag:B}=v;if(F>0){if(F&128){Dn(C,O,w,_,E,S,P,A,k);return}else if(F&256){wt(C,O,w,_,E,S,P,A,k);return}}B&8?(L&16&&Yt(C,E,S),O!==C&&u(w,O)):L&16?B&16?Dn(C,O,w,_,E,S,P,A,k):Yt(C,E,S,!0):(L&8&&u(w,""),B&16&&H(O,w,_,E,S,P,A,k))},wt=(p,v,w,_,E,S,P,A,k)=>{p=p||Bt,v=v||Bt;const C=p.length,L=v.length,O=Math.min(C,L);let F=0;for(;F<O;F++){const B=v[F]=k?Ze(v[F]):Ge(v[F]);g(p[F],B,w,null,E,S,P,A,k)}C>L?Yt(p,E,S,!0,!1,O):H(v,w,_,E,S,P,A,k,O)},Dn=(p,v,w,_,E,S,P,A,k)=>{let C=0;const L=v.length;let O=p.length-1,F=L-1;for(;C<=O&&C<=F;){const B=p[C],q=v[C]=k?Ze(v[C]):Ge(v[C]);if(At(B,q))g(B,q,w,null,E,S,P,A,k);else break;C++}for(;C<=O&&C<=F;){const B=p[O],q=v[F]=k?Ze(v[F]):Ge(v[F]);if(At(B,q))g(B,q,w,null,E,S,P,A,k);else break;O--,F--}if(C>O){if(C<=F){const B=F+1,q=B<L?v[B].el:_;for(;C<=F;)g(null,v[C]=k?Ze(v[C]):Ge(v[C]),w,q,E,S,P,A,k),C++}}else if(C>F)for(;C<=O;)He(p[C],E,S,!0),C++;else{const B=C,q=C,ee=new Map;for(C=q;C<=F;C++){const ke=v[C]=k?Ze(v[C]):Ge(v[C]);ke.key!=null&&ee.set(ke.key,C)}let te,ae=0;const le=F-q+1;let je=!1,Te=0;const Xt=new Array(le);for(C=0;C<le;C++)Xt[C]=0;for(C=B;C<=O;C++){const ke=p[C];if(ae>=le){He(ke,E,S,!0);continue}let Ke;if(ke.key!=null)Ke=ee.get(ke.key);else for(te=q;te<=F;te++)if(Xt[te-q]===0&&At(ke,v[te])){Ke=te;break}Ke===void 0?He(ke,E,S,!0):(Xt[Ke-q]=C+1,Ke>=Te?Te=Ke:je=!0,g(ke,v[Ke],w,null,E,S,P,A,k),ae++)}const ni=je?Uu(Xt):Bt;for(te=ni.length-1,C=le-1;C>=0;C--){const ke=q+C,Ke=v[ke],ri=v[ke+1],si=ke+1<L?ri.el||Ta(ri):_;Xt[C]===0?g(null,Ke,w,si,E,S,P,A,k):je&&(te<0||C!==ni[te]?St(Ke,w,si,2):te--)}}},St=(p,v,w,_,E=null)=>{const{el:S,type:P,transition:A,children:k,shapeFlag:C}=p;if(C&6){St(p.component.subTree,v,w,_);return}if(C&128){p.suspense.move(v,w,_);return}if(C&64){P.move(p,v,w,Ot);return}if(P===Ae){r(S,v,w);for(let L=0;L<k.length;L++)St(k[L],v,w,_);r(p.anchor,v,w);return}if(P===Gn){T(p,v,w);return}if(_!==2&&C&1&&A)if(_===0)A.persisted&&!S[Ie]?r(S,v,w):(A.beforeEnter(S),r(S,v,w),Ee(()=>A.enter(S),E));else{const{leave:L,delayLeave:O,afterLeave:F}=A,B=()=>{p.ctx.isUnmounted?s(S):r(S,v,w)},q=()=>{const ee=S._isLeaving||!!S[Ie];S._isLeaving&&S[Ie](!0),A.persisted&&!ee?B():L(S,()=>{B(),F&&F()})};O?O(S,B,q):q()}else r(S,v,w)},He=(p,v,w,_=!1,E=!1)=>{const{type:S,props:P,ref:A,children:k,dynamicChildren:C,shapeFlag:L,patchFlag:O,dirs:F,cacheIndex:B,memo:q}=p;if(O===-2&&(E=!1),A!=null&&(ot(),fn(A,null,w,p,!0),at()),B!=null&&(v.renderCache[B]=void 0),L&256){v.ctx.deactivate(p);return}const ee=L&1&&F,te=!zt(p);let ae;if(te&&(ae=P&&P.onVnodeBeforeUnmount)&&We(ae,v,p),L&6)_l(p.component,w,_);else{if(L&128){p.suspense.unmount(w,_);return}ee&&xt(p,null,v,"beforeUnmount"),L&64?p.type.remove(p,v,w,Ot,_):C&&!C.hasOnce&&(S!==Ae||O>0&&O&64)?Yt(C,v,w,!1,!0):(S===Ae&&O&384||!E&&L&16)&&Yt(k,v,w),_&&ei(p)}const le=q!=null&&B==null;(te&&(ae=P&&P.onVnodeUnmounted)||ee||le)&&Ee(()=>{ae&&We(ae,v,p),ee&&xt(p,null,v,"unmounted"),le&&(p.el=null)},w)},ei=p=>{const{type:v,el:w,anchor:_,transition:E}=p;if(v===Ae){Ml(w,_);return}if(v===Gn){x(p);return}const S=()=>{s(w),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(p.shapeFlag&1&&E&&!E.persisted){const{leave:P,delayLeave:A}=E,k=()=>P(w,S);A?A(p.el,S,k):k()}else S()},Ml=(p,v)=>{let w;for(;p!==v;)w=d(p),s(p),p=w;s(v)},_l=(p,v,w)=>{const{bum:_,scope:E,job:S,subTree:P,um:A,m:k,a:C}=p;Ci(k),Ci(C),_&&Un(_),E.stop(),S&&(S.flags|=8,He(P,p,v,w)),A&&Ee(A,v),Ee(()=>{p.isUnmounted=!0},v)},Yt=(p,v,w,_=!1,E=!1,S=0)=>{for(let P=S;P<p.length;P++)He(p[P],v,w,_,E)},On=p=>{if(p.shapeFlag&6)return On(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const v=d(p.anchor||p.el),w=v&&v[ea];return w?d(w):v};let jr=!1;const ti=(p,v,w)=>{let _;p==null?v._vnode&&(He(v._vnode,null,null,!0),_=v._vnode.component):g(v._vnode||null,p,v,null,null,null,w),v._vnode=p,jr||(jr=!0,di(_),Yo(),jr=!1)},Ot={p:g,um:He,m:St,r:ei,mt:se,mc:H,pc:Z,pbc:z,n:On,o:e};let Br,Vr;return t&&([Br,Vr]=t(Ot)),{render:ti,hydrate:Br,createApp:Pu(ti,Br)}}function Qr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const r=e.children,s=t.children;if($(r)&&$(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ze(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Ks(o,a)),a.type===Or&&(a.patchFlag===-1&&(a=s[i]=Ze(a)),a.el=o.el),a.type===be&&!a.el&&(a.el=o.el)}}function Uu(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<c?i=a+1:o=a;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function _a(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_a(t)}function Ci(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ta(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ta(t.subTree):null}var ka=e=>e.__isSuspense;function qu(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):Qc(e)}var Ae=Symbol.for("v-fgt"),Or=Symbol.for("v-txt"),be=Symbol.for("v-cmt"),Gn=Symbol.for("v-stc"),st=[],Pe=null;function vs(e=!1){st.push(Pe=e?null:[])}function Ws(){st.pop(),Pe=st[st.length-1]||null}var wn=1;function ir(e,t=!1){wn+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function Aa(e){return e.dynamicChildren=wn>0?Pe||Bt:null,Ws(),wn>0&&Pe&&Pe.push(e),e}function lm(e,t,n,r,s,i){return Aa(Ra(e,t,n,r,s,i,!0))}
vendor: 4,141 bytes, line 1
1function ys(e,t,n,r,s){return Aa(de(e,t,n,r,s,!0))}function Sn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}var Pa=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ue(e)||V(e)?{i:ve,r:e,k:t,f:!!n}:e:null);function Ra(e,t=null,n=null,r=0,s=null,i=e===Ae?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pa(t),ref:t&&Jn(t),scopeId:Qo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ve};return a?(or(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=re(n)?8:16),wn>0&&!o&&Pe&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Pe.push(l),l}var de=Gu;function Gu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===ca)&&(e=be),Sn(e)){const a=vt(e,t,!0);return n&&or(a,n),wn>0&&!i&&Pe&&(a.shapeFlag&6?Pe[Pe.indexOf(e)]=a:Pe.push(a)),a.patchFlag=-2,a}if(af(e)&&(e=e.__vccOpts),t){t=Ju(t);let{class:a,style:l}=t;a&&!re(a)&&(t.class=Sr(a)),J(l)&&(Tr(l)&&!$(l)&&(l=oe({},l)),t.style=wr(l))}const o=re(e)?1:ka(e)?128:Pr(e)?64:J(e)?4:V(e)?2:0;return Ra(e,t,n,r,s,o,i,!0)}function Ju(e){return e?Tr(e)||wa(e)?oe({},e):e:null}function vt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?Qu(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Pa(c),ref:t&&t.ref?n&&i?$(i)?i.concat(Jn(t)):[i,Jn(t)]:Jn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&bn(u,l.clone(u)),u}function Yu(e=" ",t=0){return de(Or,null,e,t)}function cm(e,t){const n=de(Gn,null,e);return n.staticCount=t,n}function Xu(e="",t=!1){return t?(vs(),ys(be,null,e)):de(be,null,e)}function Ge(e){return e==null||typeof e=="boolean"?de(be):$(e)?de(Ae,null,e.slice()):Sn(e)?Ze(e):de(Or,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function or(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if($(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),or(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!wa(t)?t._ctx=ve:s===3&&ve&&(ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(V(t)){if(r&65){or(e,{default:t});return}t={default:t,_ctx:ve},n=32}else t=String(t),r&64?(n=16,t=[Yu(t)]):n=8;e.children=t,e.shapeFlag|=n}function Qu(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Sr([t.class,r.class]));else if(s==="style")t.style=wr([t.style,r.style]);else if(hr(s)){const i=t[s],o=r[s];o&&i!==o&&!($(i)&&i.includes(o))?t[s]=i?[].concat(i,o):o:o==null&&i==null&&!pr(s)&&(t[s]=o)}else s!==""&&(t[s]=r[s])}return t}function We(e,t,n,r=null){Fe(e,t,7,[n,r])}var Zu=pa(),ef=0;function tf(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Zu,i={uid:ef++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new To(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xa(r,s),emitsOptions:ga(r,s),emit:null,emitted:null,propsDefaults:U,inheritAttrs:r.inheritAttrs,ctx:U,data:U,props:U,attrs:U,slots:U,refs:U,setupState:U,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
1sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ru.bind(null,i),e.ce&&e.ce(i),i}var ge=null,bt=()=>ge||ve,ar,xn;{const e=br(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};ar=t("__VUE_INSTANCE_SETTERS__",n=>ge=n),xn=t("__VUE_SSR_SETTERS__",n=>Wt=n)}var An=e=>{const t=ge;return ar(e),e.scope.on(),()=>{e.scope.off(),ar(t)}},Mi=()=>{ge&&ge.scope.off(),ar(null)};function Da(e){return e.vnode.shapeFlag&4}var Wt=!1;function nf(e,t=!1,n=!1){t&&xn(t);const{props:r,children:s}=e.vnode,i=Da(e);Lu(e,r,i,t),Vu(e,s,n||t);const o=i?rf(e,t):void 0;return t&&xn(!1),o}function rf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Eu);const{setup:r}=n;if(r){ot();const s=e.setupContext=r.length>1?Na(e):null,i=An(e),o=_n(r,e,0,[e.props,s]),a=bo(o);if(at(),i(),(a||e.sp)&&!zt(e)&&Ls(e),a){if(o.then(Mi,Mi),t)return o.then(l=>{xn(!0);try{_i(e,l,t)}finally{xn(!1)}}).catch(l=>{Tn(l,e,0)});e.asyncDep=o}else _i(e,o,t)}else Oa(e,t)}function _i(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:J(t)&&(e.setupState=Wo(t)),Oa(e,n)}var Ti,ki;function Oa(e,t,n){const r=e.type;if(!e.render){if(!t&&Ti&&!r.render){const s=r.template||Vs(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=oe(oe({isCustomElement:i,delimiters:a},o),l);r.render=Ti(s,c)}}e.render=r.render||Je,ki&&ki(e)}{const s=An(e);ot();try{Cu(e)}finally{at(),s()}}}var sf={get(e,t){return ye(e,"get",""),e[t]}};function Na(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sf),slots:e.slots,emit:e.emit,expose:t}}function Nr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Wo(Ns(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}function of(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function af(e){return V(e)&&"__vccOpts"in e}var lf=(e,t)=>qc(e,t,Wt);function Us(e,t,n){try{ir(-1);const r=arguments.length;return r===2?J(t)&&!$(t)?Sn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Sn(n)&&(n=[n]),de(e,t,n))}finally{ir(1)}}var cf="3.5.42",bs=void 0,Ai=typeof window<"u"&&window.trustedTypes;if(Ai)try{bs=Ai.createPolicy("vue",{createHTML:e=>e})}catch{}var Ia=bs?e=>bs.createHTML(e):e=>e,uf="http://www.w3.org/2000/svg",ff="http://www.w3.org/1998/Math/MathML",Qe=typeof document<"u"?document:null,Pi=Qe&&Qe.createElement("template"),df={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Qe.createElementNS(uf,e):t==="mathml"?Qe.createElementNS(ff,e):n?Qe.createElement(e,{is:n}):Qe.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Qe.createTextNode(e),createComment:e=>Qe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 4,219 bytes, line 1
1{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Pi.innerHTML=Ia(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Pi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",en="animation",En=Symbol("_vtc"),$a={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hf=oe({},ta,$a),pf=e=>(e.displayName="Transition",e.props=hf,e),um=pf((e,{slots:t})=>Us(fu,mf(e),t)),Ct=(e,t=[])=>{$(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ri=e=>e?$(e)?e.some(t=>t.length>1):e.length>1:!1;function mf(e){const t={};for(const D in e)D in $a||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=gf(s),g=m&&m[0],y=m&&m[1],{onBeforeEnter:b,onEnter:M,onEnterCancelled:T,onLeave:x,onLeaveCancelled:R,onBeforeAppear:K=b,onAppear:j=M,onAppearCancelled:H=T}=t,N=(D,W,se,Me)=>{D._enterCancelled=Me,Mt(D,W?u:a),Mt(D,W?c:o),se&&se()},z=(D,W)=>{D._isLeaving=!1,Mt(D,f),Mt(D,h),Mt(D,d),W&&W()},Y=D=>(W,se)=>{const Me=D?j:M,fe=()=>N(W,D,se);Ct(Me,[W,fe]),Di(()=>{Mt(W,D?l:i),Xe(W,D?u:a),Ri(Me)||Oi(W,r,g,fe)})};return oe(t,{onBeforeEnter(D){Ct(b,[D]),Xe(D,i),Xe(D,o)},onBeforeAppear(D){Ct(K,[D]),Xe(D,l),Xe(D,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(D,W){D._isLeaving=!0;const se=()=>z(D,W);Xe(D,f),D._enterCancelled?(Xe(D,d),$i(D)):($i(D),Xe(D,d)),Di(()=>{D._isLeaving&&(Mt(D,f),Xe(D,h),Ri(x)||Oi(D,r,y,se))}),Ct(x,[D,se])},onEnterCancelled(D){N(D,!1,void 0,!0),Ct(T,[D])},onAppearCancelled(D){N(D,!0,void 0,!0),Ct(H,[D])},onLeaveCancelled(D){z(D),Ct(R,[D])}})}function gf(e){if(e==null)return null;if(J(e))return[Zr(e.enter),Zr(e.leave)];{const t=Zr(e);return[t,t]}}function Zr(e){return dc(e)}function Xe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[En]||(e[En]=new Set)).add(t)}function Mt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[En];n&&(n.delete(t),n.size||(e[En]=void 0))}function Di(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var vf=0;function Oi(e,t,n,r){const s=e._endId=++vf,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=yf(e,t);if(!o)return r();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,d)}function yf(e,t){const n=window.getComputedStyle(e),r=m=>(n[m]||"").split(", "),s=r(`${dt}Delay`),i=r(`${dt}Duration`),o=Ni(s,i),a=r(`${en}Delay`),l=r(`${en}Duration`),c=Ni(a,l);let u=null,f=0,d=0;t===dt?o>0&&(u=dt,f=o,d=i.length):t===en?c>0&&(u=en,f=c,d=l.length):(f=Math.max(o,c),u=f>0?o>c?dt:en:null,d=u?u===dt?i.length:l.length:0);const h=u===dt&&/\b(?:transform|all)(?:,|$)/.test(r(`${dt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function Ni(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Ii(n)+Ii(e[r])))}function Ii(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $i(e){return(e?e.ownerDocument:document).body.offsetHeight}function bf(e,t,n){const r=e[En];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}var lr=Symbol("_vod"),La=Symbol("_vsh"),fm={name:"show",beforeMount(e,{value:t},{transition:n}){e[lr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tn(e,t)}
1,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),tn(e,!0),r.enter(e)):r.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[lr]:"none",e[La]=!t}var wf=Symbol(""),Sf=/(?:^|;)\s*display\s*:/;function xf(e,t,n){const r=e.style,s=re(n);let i=!1;if(n&&!s){if(t)if(re(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&sn(r,a,"")}else for(const o in t)n[o]==null&&sn(r,o,"");for(const o in n){o==="display"&&(i=!0);const a=n[o];a!=null?Cf(e,o,!re(t)&&t?t[o]:void 0,a)||sn(r,o,a):sn(r,o,"")}}else if(s){if(t!==n){const o=r[wf];o&&(n+=";"+o),r.cssText=n,i=Sf.test(n)}}else t&&e.removeAttribute("style");lr in e&&(e[lr]=i?r.display:"",e[La]&&(r.display="none"))}var jn=/\s*!important$/;function sn(e,t,n){if($(n))n.forEach(r=>sn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))jn.test(n)?e.setProperty(t,n.replace(jn,""),"important"):e.setProperty(t,n);else{const r=Ef(e,t);jn.test(n)?e.setProperty(ct(r),n.replace(jn,""),"important"):e[r]=n}}var Li=["Webkit","Moz","ms"],es={};function Ef(e,t){const n=es[t];if(n)return n;let r=we(t);if(r!=="filter"&&r in e)return es[t]=r;r=vr(r);for(let s=0;s<Li.length;s++){const i=Li[s]+r;if(i in e)return es[t]=i}return t}function Cf(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&re(r)&&n===r}var Fi="http://www.w3.org/1999/xlink";function ji(e,t,n,r,s,i=vc(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Fi,t.slice(6,t.length)):e.setAttributeNS(Fi,t,n):n==null||i&&!Co(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Oe(n)?String(n):n)}function Bi(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ia(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Co(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function nt(e,t,n,r){e.addEventListener(t,n,r)}function Mf(e,t,n,r){e.removeEventListener(t,n,r)}var Vi=Symbol("_vei");function _f(e,t,n,r,s=null){const i=e[Vi]||(e[Vi]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=Af(t);r?nt(e,a,i[t]=Df(r,s),l):o&&(Mf(e,a,o,l),i[t]=void 0)}}var Tf=/(Once|Passive|Capture)$/,kf=/^on:?(?:Once|Passive|Capture)$/;function Af(e){let t,n;for(;(n=e.match(Tf))&&!kf.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}var ts=0,Pf=Promise.resolve(),Rf=()=>ts||(Pf.then(()=>ts=0),ts=Date.now());function Df(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if($(s)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const o=s.slice(),a=[r];for(let l=0;l<o.length&&!r._stopped;l++){const c=o[l];c&&Fe(c,t,5,a)}}else Fe(s,t,5,[r])};return n.value=e,n.attached=Rf(),n}var zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Of=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?bf(e,r,o):t==="style"?xf(e,n,r):hr(t)?pr(t)||_f(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nf(e,t,r,o))?(Bi(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ji(e,t,r,o,i,t!=="value")):e._isVueCE&&(If(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(r)))?Bi(e,we(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ji(e,t,r,o))};function Nf(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&zi(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return zi(t)&&re(n)?!1:t in e}function If(e,t){const n=e._def.props;if(!n)return!1;const r=we(t);return Array.isArray(n)?n.some(s=>we(s)===r):Object.keys(n).some(s=>we(s)===r)}var yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?n=>Un(t,n):t};function $f(e){e.target.composing=!0}function Hi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Re=Symbol("_assign"),Bn=Symbol("_initialValue");function ns(e,t,n){return t&&(e=e.trim()),n&&(e=yr(e)),e}var dm={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Bn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Bn]=e.defaultValue.replace(/\r\n?/g,` 2`))),e[Re]=yt(s);const i=r||s.props&&s.props.type==="number";nt(e,t?"change":"input",o=>{o.target.composing||e[Re](ns(e.value,n,i))}),(n||i)&&nt(e,"change",()=>{e.value=ns(e.value,n,i)}
2),t||(nt(e,"compositionstart",$f),nt(e,"compositionend",Hi),nt(e,"change",Hi))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const s=t??"",i=e[Bn];delete e[Bn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Re](ns(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Re]=yt(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?yr(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l)}},hm={deep:!0,created(e,t,n){e[Re]=yt(n),nt(e,"change",()=>{const r=e._modelValue,s=Ut(e),i=e.checked,o=e[Re];if($(r)){const a=Ps(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const c=[...r];c.splice(a,1),o(c)}}else if(it(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Fa(e,i))})},mounted:Ki,beforeUpdate(e,t,n){e[Re]=yt(n),Ki(e,t,n)}};function Ki(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if($(t))s=Ps(t,r.props.value)>-1;else if(it(t))s=t.has(r.props.value);else{if(t===n)return;s=Ve(t,Fa(e,!0))}e.checked!==s&&(e.checked=s)}var pm={created(e,{value:t},n){e.checked=Ve(t,n.props.value),e[Re]=yt(n),nt(e,"change",()=>{e[Re](Ut(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Re]=yt(r),t!==n&&(e.checked=Ve(t,r.props.value))}},mm={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,nt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?yr(Ut(l)):Ut(l)),i=e.multiple,o=i?it(e._modelValue)?new Set(s):s:s[0],a=e._pendingValue=[i,i?$(o)?s.slice():s:o];try{e[Re](o)}finally{Is(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Re]=yt(r)},mounted(e,{value:t}){Wi(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Re]=yt(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Lf(t,n[1],n[0]))&&Wi(e,t)}};function Lf(e,t,n){if(!n||$(e))return Ve(e,t);if(it(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function Wi(e,t){const n=e.multiple,r=$(t);if(!(n&&!r&&!it(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=Ut(o);if(n)if(r){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Ps(t,a)>-1}else o.selected=t.has(a);else if(Ve(Ut(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ut(e){return"_value"in e?e._value:e.value}function Fa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}var Ff=["ctrl","shift","alt","meta"],jf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ff.some(n=>e[`${n}Key`]&&!t.includes(n))},gm=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=jf[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},Bf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vm=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=ct(s.key);if(t.some(o=>o===i||Bf[o]===i))return e(s)}))},Vf=oe({patchProp:Of},df),Ui;function ja(){return Ui||(Ui=Hu(Vf))}var qi=((...e)=>{ja().render(...e)}),ym=((...e)=>{const t=ja().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Hf(r);if(!s)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,zf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function zf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hf(e){return re(e)?document.querySelector(e):e}var Gi=Object.defineProperty,Kf=(e,t)=>
2{let n={};for(var r in e)Gi(n,r,{get:e[r],enumerable:!0});return t||Gi(n,Symbol.toStringTag,{value:"Module"}),n};function Ir(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:s}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return s},get tr(){return r=n.selection,s=n.doc,i=n.storedMarks,n}}}var Ht=class Ba{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:s}=n,{tr:i}=r,o=this.buildProps(i);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...u)=>{const f=l(...u)(o);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:s,state:i}=this,{view:o}=s,a=[],l=!!t,c=t||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(c),a.every(d=>d===!0)),f={...Object.fromEntries(Object.entries(r).map(([d,h])=>[d,(...g)=>{const y=this.buildProps(c,n),b=h(...g)(y);return a.push(b),f}])),run:u};return f}static createFakeChain(){const t=new Proxy({},{get:(n,r)=>{if(r!=="then")return r==="run"?()=>!1:()=>t}});return t}createCan(t){const{rawCommands:n,state:r}=this,s=!1,i=t||r.tr,o=this.buildProps(i,s);return{...Object.fromEntries(Object.entries(n).map(([a,l])=>[a,(...c)=>l(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(i,s)}}static createFallbackCan(){const t=Ba.createFakeChain();return new Proxy({chain:()=>t},{get:(n,r)=>{if(r!=="then")return r==="chain"?n.chain:()=>!1}})}buildProps(t,n=!0){const{rawCommands:r,editor:s,state:i}=this,{view:o}=s,a={tr:t,editor:s,view:o,state:Ir({state:i,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}},Wf=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;
2t.dom.blur(),(n=window)===null||n===void 0||(n=n.getSelection())===null||n===void 0||n.removeAllRanges()}}),!0),Uf=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),qf=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:s}=r;return n&&s.forEach(({$from:i,$to:o})=>{e.doc.nodesBetween(i.pos,o.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,f=c.resolve(u.map(l)),d=c.resolve(u.map(l+a.nodeSize)),h=f.blockRange(d);if(!h)return;const m=Ql(h);if(a.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());t.setNodeMarkup(h.start,g)}(m||m===0)&&t.lift(h,m)})}),!0},Gf=e=>t=>e(t),Jf=()=>({state:e,dispatch:t})=>Jl(e,t),Yf=(e,t)=>({editor:n,tr:r})=>{const{state:s}=n,i=s.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const o=r.mapping.map(t);return r.insert(o,i.content),r.setSelection(new $e(r.doc.resolve(Math.max(o-1,0)))),!0},Xf=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const s=e.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===r.type){if(t){const o=s.before(i),a=s.after(i);e.delete(o,a).scrollIntoView()}return!0}return!1};function he(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Qf=e=>({tr:t,state:n,dispatch:r})=>{const s=he(e,n.schema),i=t.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===s){if(r){const a=i.before(o),l=i.after(o);t.delete(a,l).scrollIntoView()}return!0}return!1},Zf=e=>({tr:t,dispatch:n})=>{const{from:r,to:s}=e;return n&&t.delete(r,s),!0},ed=e=>e.content?/^text(\*|\+)/.test(e.content):!1,Ji=(e,t,n)=>{if(!e.parent.isInline||n==="left"&&e.pos>e.start()||n==="right"&&e.pos<e.end())return e.pos;const r=t.nodes[e.parent.type.name].spec;return ed(r)?n==="left"?e.start()-1:e.end()+1:e.pos},td=(e,t,n)=>({from:Ji(e,n,"left"),to:Ji(t,n,"right")}),nd=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){const n=e.tr,{ranges:r}=e.selection,s=n.steps.length;r.forEach(i=>{const o=n.mapping.slice(s),a=n.doc.resolve(o.map(i.$from.pos)),l=n.doc.resolve(o.map(i.$to.pos)),{from:c,to:u}=td(a,l,e.schema);n.deleteRange(c,u)}),n.selection.empty||n.setSelection($e.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},rd=()=>({commands:e})=>e.keyboardShortcut("Enter"),sd=()=>({state:e,dispatch:t})=>Wl(e,t);function qs(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function cr(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(s=>n.strict?t[s]===e[s]:qs(t[s])?t[s].test(e[s]):t[s]===e[s]):!0}function Va(e,t,n={}){return e.find(r=>r.type===t&&cr(Object.fromEntries(Object.keys(n).map(s=>[s,r.attrs[s]])),n))}function Yi(e,t,n={}){return!!Va(e,t,n)}function Gs(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(l=>l.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(l=>l.type===t))return;if(!n){const l=r.node.marks.find(c=>c.type===t);l&&(n=l.attrs)}if(!Va([...r.node.marks],t,n))return;let s=r.index,i=e.start()+r.offset,o=s+1,a=i+r.node.nodeSize;for(;s>0&&Yi([...e.parent.child(s-1).marks],t,n);)s-=1,i-=e.parent.child(s).nodeSize;for(;o<e.parent.childCount&&Yi([...e.parent.child(o).marks],t,n);)a+=e.parent.child(o).nodeSize,o+=1;return{from:i,to:a}}function ft(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var id=(e,t)=>({tr:n,state:r,dispatch:s})=>{const i=ft(e,r.schema),{doc:o,selection:a}=n,{$from:l,from:c,to:u}=a;if(s){const f=Gs(l,i,t);if(f&&f.from<=c&&f.to>=u){const d=$e.create(o,f.from,f.to);n.setSelection(d)}}return!0},od=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function za(e){return e instanceof $e}function rt(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function ws(e,t=null){if(!t)return null;const n=jt.atStart(e),r=jt.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const s=n.from,i=r.to;return t==="all"?$e.create(e,rt(0,s,i),rt(e.content.size,s,i)):$e.create(e,rt(t,s,i),rt(t,s,i))}function Xi(){return["Android"].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function ur(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function ad(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var ld=(e=null,t={})=>({editor:n,view:r,tr:s,dispatch:i})=>{t={scrollIntoView:!0,...t};const o=()=>{(ur()||Xi())&&r.dom.focus(),ad()&&!ur()&&!Xi()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(i&&e===null&&!za(n.state.selection))return o(),!0;const a=ws(s.doc,e)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||s.setSelection(a),l&&s.storedMarks&&s.setStoredMarks(s.storedMarks),o()),!0},cd=(e,t)=>n=>e.every((r,s)=>t(r,{...n,index:s})),ud=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),Ha=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&Ha(r)}return e};function Vn(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return Ha(n)}function Ka(e){return typeof e?.nodesBetween=="function"}function qt(e,t,n){if(Ka(e))return e;const r=typeof e=="object"&&e!==null;n={slice:!0,parseOptions:{},...n};const s=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return mt.fromArray(e.map(o=>
2t.nodeFromJSON(o)));const i=t.nodeFromJSON(e);return n.errorOnInvalidContent&&i.check(),i}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",i),qt("",t,n)}if(s){if(n.errorOnInvalidContent){let o=!1,a="";const l=new go({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(o=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?zr.fromSchema(l).parseSlice(Vn(e),n.parseOptions):zr.fromSchema(l).parse(Vn(e),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=zr.fromSchema(t);return n.slice?i.parseSlice(Vn(e),n.parseOptions).content:i.parse(Vn(e),n.parseOptions)}return qt("",t,n)}function Wa(e){return!("type"in e)}function Ua(e,t,n){const r=e.steps.length-1;if(r<t)return;const s=e.steps[r];if(!(s instanceof vo||s instanceof kl))return;const i=e.mapping.maps[r];let o=0;i.forEach((a,l,c,u)=>{o===0&&(o=u)}),e.setSelection(jt.near(e.doc.resolve(o),n))}var fd=(e,t,n)=>({tr:r,dispatch:s,editor:i})=>{if(s){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=y=>{i.emit("contentError",{editor:i,error:y,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{qt(t,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(y){l(y)}try{var o;a=qt(t,i.schema,{parseOptions:c,errorOnInvalidContent:(o=n.errorOnInvalidContent)!==null&&o!==void 0?o:i.options.enableContentCheck})}catch(y){return l(y),!1}let{from:u,to:f}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},d=!0,h=!0;const m=Wa(a)?a.content:[a];if(m.forEach(y=>{y.check(),d=d?y.isText&&y.marks.length===0:!1,h=h?y.isBlock:!1}),u===f&&h){const{parent:y}=r.doc.resolve(u);y.isTextblock&&!y.type.spec.code&&!y.childCount&&(u-=1,f+=1)}let g;if(d)Array.isArray(t)?g=t.map(y=>y.text||"").join(""):Ka(t)?g=m.map(y=>{var b;return(b=y.text)!==null&&b!==void 0?b:""}).join(""):typeof t=="object"&&t&&t.text?g=t.text:g=t,r.insertText(g,u,f);else{g=mt.from(m);const y=r.doc.resolve(u),b=y.node(),M=y.parentOffset===0,T=b.isText||b.isTextblock,x=b.content.size>0;M&&T&&x&&h&&(u=Math.max(0,u-1)),r.replaceWith(u,f,m)}n.updateSelection&&Ua(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:g})}return!0};function qa(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var dd=(e={})=>({tr:t,dispatch:n,editor:r})=>{const{pos:s,attrs:i,content:o,updateSelection:a=!0}=e;let l;typeof s=="number"?l=t.doc.resolve(s):s?l=s:l=t.selection.$from;const c=qa(l.parent.contentMatchAt(l.index()));if(!c)return!1;const u=Object.keys(c.spec.attrs||{}),f=i?Object.fromEntries(Object.entries(i).filter(([h])=>u.includes(h))):{};let d;if(o){const h=qt(o,r.schema);d=c.createAndFill(f,h)}else d=c.createAndFill(f);return d?(n&&(t.insert(l.pos,d),a&&Ua(t,t.steps.length-1,-1)),!0):!1},hd=()=>({state:e,dispatch:t})=>ic(e,t),pd=()=>({state:e,dispatch:t})=>jl(e,t),md=()=>({state:e,dispatch:t})=>Kl(e,t),gd=()=>({state:e,dispatch:t})=>rc(e,t),vd=()=>({state:e,dispatch:t,tr:n})=>{try{const r=mo(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},yd=()=>({state:e,dispatch:t,tr:n})=>{try{const r=mo(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},bd=()=>({state:e,dispatch:t})=>oc(e,t),wd=()=>({state:e,dispatch:t})=>Vl(e,t);function Ga(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Sd(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,s,i,o;for(let a=0;a<t.length-1;a+=1){const l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))s=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))ur()||Ga()?o=!0:s=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),s&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}var xd=e=>({editor:t,view:n,tr:r,dispatch:s})=>{const i=Sd(e).split(/-(?!$)/),o=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l?.steps.forEach(c=>{const u=c.map(r.mapping);u&&s&&r.maybeStep(u)}),!0};function Cn(e,t,n={}){const{from:r,to:s,empty:i}=e.selection,o=t?he(t,e.schema):null,a=[];e.doc.nodesBetween(r,s,(u,f)=>{if(u.isText)return;const d=Math.max(r,f),h=Math.min(s,f+u.nodeSize);a.push({node:u,from:d,to:h})});const l=s-r,c=a.filter(u=>
2o?o.name===u.node.type.name:!0).filter(u=>cr(u.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((u,f)=>u+f.to-f.from,0)>=l}var Ed=(e,t={})=>({state:n,dispatch:r})=>Cn(n,he(e,n.schema),t)?$l(n,r):!1,Cd=()=>({state:e,dispatch:t})=>Al(e,t),Md=e=>({state:t,dispatch:n})=>{const r=he(e,t.schema);return zl(r)(t,n)},_d=()=>({state:e,dispatch:t})=>sc(e,t);function $r(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Qi(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,s)=>(n.includes(s)||(r[s]=e[s]),r),{})}var Td=(e,t)=>({tr:n,state:r,dispatch:s})=>{let i=null,o=null;const a=$r(typeof e=="string"?e:e.name,r.schema);if(!a)return!1;a==="node"&&(i=he(e,r.schema)),a==="mark"&&(o=ft(e,r.schema));let l=!1;return n.selection.ranges.forEach(c=>{r.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,f)=>{i&&i===u.type&&(l=!0,s&&n.setNodeMarkup(f,void 0,Qi(u.attrs,t))),o&&u.marks.length&&u.marks.forEach(d=>{o===d.type&&(l=!0,s&&n.addMark(f,f+u.nodeSize,o.create(Qi(d.attrs,t))))})})}),l},kd=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Ad=()=>({tr:e,dispatch:t})=>{if(t){const n=new Nl(e.doc);e.setSelection(n)}return!0},Pd=()=>({state:e,dispatch:t})=>Ll(e,t),Rd=()=>({state:e,dispatch:t})=>Rl(e,t),Dd=()=>({state:e,dispatch:t})=>Pl(e,t),Od=()=>({state:e,dispatch:t})=>Il(e,t),Nd=()=>({state:e,dispatch:t})=>Gl(e,t);function Ss(e,t,n={},r={}){return qt(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Id=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:s,tr:i,dispatch:o,commands:a})=>{const{doc:l}=i;if(r.preserveWhitespace!=="full"){const c=Ss(e,s.schema,r,{errorOnInvalidContent:t??s.options.enableContentCheck});if(o){const u=Wa(c)?c.content:[c];i.replaceWith(0,l.content.size,u).setMeta("preventUpdate",!n)}return!0}return o&&i.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},e,{parseOptions:r,errorOnInvalidContent:t??s.options.enableContentCheck})};function Ja(e,t){const n=ft(t,e.schema),{from:r,to:s,empty:i}=e.selection,o=[];i?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,s,l=>{o.push(...l.marks)});const a=o.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function $d(e,t){const n=new Ol(e);return t.forEach(r=>{r.steps.forEach(s=>{n.step(s)})}),n}function bm(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(s,i)=>{n(s)&&r.push({node:s,pos:i})}),r}function Ld(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function Lr(e){return t=>Ld(t.$from,e)}function I(e,t,n){return e.config[t]===void 0&&e.parent?I(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?I(e.parent,t,n):null}):e.config[t]}function Js(e){return e.map(t=>{const n=I(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return n?[t,...Js(n())]:t}).flat(10)}function Ys(e,t){const n=Fl.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function Ya(e){return typeof e=="function"}function X(e,t=void 0,...n){return Ya(e)?t?e.bind(t)(...n):e(...n):e}function Fd(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Gt(e){return{baseExtensions:e.filter(t=>t.type==="extension"),nodeExtensions:e.filter(t=>t.type==="node"),markExtensions:e.filter(t=>t.type==="mark")}}function Xa(e){const t=[],{nodeExtensions:n,markExtensions:r}=Gt(e),s=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(c=>c.name!=="text").map(c=>c.name),a=r.map(c=>c.name),l=[...o,...a];return e.forEach(c=>{const u=I(c,"addGlobalAttributes",{name:c.name,options:c.options,storage:c.storage,extensions:s});u&&u().forEach(f=>{let d;Array.isArray(f.types)?d=f.types:f.types==="*"?d=l:f.types==="nodes"?d=o:f.types==="marks"?d=a:d=[],d.forEach(h=>{Object.entries(f.attributes).forEach(([m,g])=>{t.push({type:h,name:m,attribute:{...i,...g}})})})})}),s.forEach(c=>{const u=I(c,"addAttributes",{name:c.name,options:c.options,storage:c.storage});if(!u)return;const f=u();Object.entries(f).forEach(([d,h])=>{const m={...i,...h};typeof m?.default=="function"&&(m.default=m.default()),m?.isRequired&&m?.default===void 0&&delete m.default,t.push({type:c.name,name:d,attribute:m})})}),t}
2function jd(e){const t=[];let n="",r=!1,s=!1,i=0;const o=e.length;for(let a=0;a<o;a+=1){const l=e[a];if(l==="'"&&!s){r=!r,n+=l;continue}if(l==='"'&&!r){s=!s,n+=l;continue}if(!r&&!s){if(l==="("){i+=1,n+=l;continue}if(l===")"&&i>0){i-=1,n+=l;continue}if(l===";"&&i===0){t.push(n),n="";continue}}n+=l}return n&&t.push(n),t}function Zi(e){const t=[],n=jd(e||""),r=n.length;for(let s=0;s<r;s+=1){const i=n[s],o=i.indexOf(":");if(o===-1)continue;const a=i.slice(0,o).trim(),l=i.slice(o+1).trim();a&&l&&t.push([a,l])}return t}function Bd(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([s,i])=>{if(s==="__proto__"){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,value:i,writable:!0});return}if(!r[s]){r[s]=i;return}if(s==="class"){const o=i?String(i).split(" "):[],a=r[s]?r[s].split(" "):[],l=o.filter(c=>!a.includes(c));r[s]=[...a,...l].join(" ")}else if(s==="style"){const o=new Map([...Zi(r[s]),...Zi(i)]);r[s]=Array.from(o.entries()).map(([a,l])=>`${a}: ${l}`).join("; ")}else r[s]=i}),r},{})}function fr(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Bd(n,r),{})}function Vd(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function eo(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const s=t.reduce((i,o)=>{const a=o.attribute.parseHTML?o.attribute.parseHTML(n):Vd(n.getAttribute(o.name));return a==null?i:{...i,[o.name]:a}},{});return{...r,...s}}}}function to(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Fd(n)?!1:n!=null))}function no(e){var t,n;const r={};return!(!(e==null||(t=e.attribute)===null||t===void 0)&&t.isRequired)&&"default"in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)===null||n===void 0?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function zd(e,t){var n;const r=Xa(e),{nodeExtensions:s,markExtensions:i}=Gt(e),o=(n=s.find(c=>I(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(s.map(c=>{const u=r.filter(y=>y.type===c.name),f={name:c.name,options:c.options,storage:c.storage,editor:t},d=to({...e.reduce((y,b)=>{const M=I(b,"extendNodeSchema",f);return{...y,...M?M(c):{}}},{}),content:X(I(c,"content",f)),marks:X(I(c,"marks",f)),group:X(I(c,"group",f)),inline:X(I(c,"inline",f)),atom:X(I(c,"atom",f)),selectable:X(I(c,"selectable",f)),draggable:X(I(c,"draggable",f)),code:X(I(c,"code",f)),whitespace:X(I(c,"whitespace",f)),linebreakReplacement:X(I(c,"linebreakReplacement",f)),defining:X(I(c,"defining",f)),isolating:X(I(c,"isolating",f)),attrs:Object.fromEntries(u.map(no))}),h=X(I(c,"parseHTML",f));h&&(d.parseDOM=h.map(y=>eo(y,u)));const m=I(c,"renderHTML",f);m&&(d.toDOM=y=>m({node:y,HTMLAttributes:fr(y,u)}));const g=I(c,"renderText",f);return g&&(d.toText=g),[c.name,d]})),l=Object.fromEntries(i.map(c=>{const u=r.filter(g=>g.type===c.name),f={name:c.name,options:c.options,storage:c.storage,editor:t},d=to({...e.reduce((g,y)=>{const b=I(y,"extendMarkSchema",f);return{...g,...b?b(c):{}}},{}),inclusive:X(I(c,"inclusive",f)),excludes:X(I(c,"excludes",f)),group:X(I(c,"group",f)),spanning:X(I(c,"spanning",f)),code:X(I(c,"code",f)),attrs:Object.fromEntries(u.map(no))}),h=X(I(c,"parseHTML",f));h&&(d.parseDOM=h.map(g=>eo(g,u)));const m=I(c,"renderHTML",f);return m&&(d.toDOM=g=>m({mark:g,HTMLAttributes:fr(g,u)})),[c.name,d]}));return new go({topNode:o,nodes:a,marks:l})}function Hd(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}function hn(e){return e.sort((n,r)=>{const s=I(n,"priority")||100,i=I(r,"priority")||100;return s>i?-1:s<i?1:0})}function Qa(e){const t=hn(Js(e)),n=Hd(t.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),t}function Za(e,t,n){const{from:r,to:s}=t,{blockSeparator:i=` 3 4`,textSerializers:o={}}=n||{};let a="";
4return e.nodesBetween(r,s,(l,c,u,f)=>{l.isBlock&&c>r&&(a+=i);const d=o?.[l.type.name];if(d)return u&&(a+=d({node:l,pos:c,parent:u,index:f,range:t})),!1;if(l.isText){var h;a+=l==null||(h=l.text)===null||h===void 0?void 0:h.slice(Math.max(r,c)-c,s-c)}}),a}function Kd(e,t){return Za(e,{from:0,to:e.content.size},t)}function el(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}function Wd(e,t){const n=he(t,e.schema),{from:r,to:s}=e.selection,i=[];e.doc.nodesBetween(r,s,a=>{i.push(a)});const o=i.reverse().find(a=>a.type.name===n.name);return o?{...o.attrs}:{}}function Ud(e,t){const n=$r(typeof t=="string"?t:t.name,e.schema);return n==="node"?Wd(e,t):n==="mark"?Ja(e,t):{}}function qd(e,t=JSON.stringify){const n={};return e.filter(r=>{const s=t(r);return Object.prototype.hasOwnProperty.call(n,s)?!1:n[s]=!0})}function Gd(e){const t=qd(e);return t.length===1?t:t.filter((n,r)=>!t.filter((s,i)=>i!==r).some(s=>n.oldRange.from>=s.oldRange.from&&n.oldRange.to<=s.oldRange.to&&n.newRange.from>=s.newRange.from&&n.newRange.to<=s.newRange.to))}function Xs(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((s,i)=>{const o=[];if(s.ranges.length)s.forEach((a,l)=>{o.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;o.push({from:a,to:l})}o.forEach(({from:a,to:l})=>{const c=t.slice(i).map(a,-1),u=t.slice(i).map(l),f=t.invert().map(c,-1),d=t.invert().map(u);r.push({oldRange:{from:f,to:d},newRange:{from:c,to:u}})})}),Gd(r)}function tl(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(s=>{const i=Gs(n.resolve(e),s.type);i&&r.push({mark:s,...i})}):n.nodesBetween(e,t,(s,i)=>{!s||s?.nodeSize===void 0||r.push(...s.marks.map(o=>({from:i,to:i+s.nodeSize,mark:o})))}),r}var wm=(e,t,n,r=20)=>{const s=e.doc.resolve(n);let i=r,o=null;for(;i>0&&o===null;){const a=s.node(i);a?.type.name===t?o=a:i-=1}return[o,i]},Sm=e=>{const t=e.depth-1;if(t<0)return null;const n=e.index(t);return n===0?null:e.node(t).child(n-1)};function It(e,t){return t.nodes[e]||t.marks[e]||null}function Yn(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const s=e.find(i=>i.type===t&&i.name===r);return s?s.attribute.keepOnSplit:!1}))}var Jd=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(s,i,o,a)=>{var l,c;const u=((l=(c=s.type.spec).toText)===null||l===void 0?void 0:l.call(c,{node:s,pos:i,parent:o,index:a}))||s.textContent||"%leaf%";n+=s.isAtom&&!s.isText?u:u.slice(0,Math.max(0,r-i))}),n};function xs(e,t,n={}){const{empty:r,ranges:s}=e.selection,i=t?ft(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(u=>i?i.name===u.type.name:!0).find(u=>cr(u.attrs,n,{strict:!1}));let o=0;const a=[];if(s.forEach(({$from:u,$to:f})=>{const d=u.pos,h=f.pos;e.doc.nodesBetween(d,h,(m,g)=>{if(i&&m.inlineContent&&!m.type.allowsMarkType(i))return!1;if(!m.isText&&!m.marks.length)return;const y=Math.max(d,g),b=Math.min(h,g+m.nodeSize),M=b-y;o+=M,a.push(...m.marks.map(T=>({mark:T,from:y,to:b})))})}),o===0)return!1;const l=a.filter(u=>i?i.name===u.mark.type.name:!0).filter(u=>cr(u.mark.attrs,n,{strict:!1})).reduce((u,f)=>u+f.to-f.from,0),c=a.filter(u=>i?u.mark.type!==i&&u.mark.type.excludes(i):!0).reduce((u,f)=>u+f.to-f.from,0);return(l>0?l+c:l)>=o}function Yd(e,t,n={}){if(!t)return Cn(e,null,n)||xs(e,null,n);const r=$r(t,e.schema);return r==="node"?Cn(e,t,n):r==="mark"?xs(e,t,n):!1}var xm=(e,t)=>{const{$from:n,$to:r,$anchor:s}=e.selection;if(t){const i=Lr(a=>a.type.name===t)(e.selection);if(!i)return!1;const o=e.doc.resolve(i.pos+1);return s.pos+1===o.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Em=e=>{const{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function ro(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function rs(e,t){const{nodeExtensions:n}=Gt(t),r=n.find(i=>i.name===e);if(!r)return!1;const s=X(I(r,"group",{name:r.name,options:r.options,storage:r.storage}));return typeof s!="string"?!1:s.split(" ").includes("list")}function Pn(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}
4){if(n){if(e.type.name==="hardBreak")return!0;if(e.isText){var r;return!/\S/.test((r=e.text)!==null&&r!==void 0?r:"")}}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let s=!0;return e.content.forEach(i=>{s!==!1&&(Pn(i,{ignoreWhitespace:n,checkChildren:t})||(s=!1))}),s}return!1}function Xd(e){return e instanceof _s}var nl=class rl{constructor(t){this.position=t}static fromJSON(t){return new rl(t.position)}toJSON(){return{position:this.position}}};function Qd(e,t){const n=t.mapping.mapResult(e.position);return{position:new nl(n.pos),mapResult:n}}function Zd(e){return new nl(e)}function Cm(e,t,n){const s=e.state.doc.content.size,i=rt(t,0,s),o=rt(n,0,s),a=e.coordsAtPos(i),l=e.coordsAtPos(o,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),f=Math.min(a.left,l.left),d=Math.max(a.right,l.right),h={top:c,bottom:u,left:f,right:d,width:d-f,height:u-c,x:f,y:c};return{...h,toJSON:()=>h}}function eh(e,t,n){const{selection:r}=t;let s=null;if(za(r)&&(s=r.$cursor),s){var i;const a=(i=e.storedMarks)!==null&&i!==void 0?i:s.marks();return s.parent.type.allowsMarkType(n)&&(!!n.isInSet(a)||!a.some(l=>l.type.excludes(n)))}const{ranges:o}=r;return o.some(({$from:a,$to:l})=>{let c=a.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(a.pos,l.pos,(u,f,d)=>{if(c)return!1;if(u.isInline){const h=!d||d.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=h&&m}return!c}),c})}var th=(e,t={})=>({tr:n,state:r,dispatch:s})=>{const{selection:i}=n,{empty:o,ranges:a}=i,l=ft(e,r.schema);if(s)if(o){const c=Ja(r,l);n.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;r.doc.nodesBetween(u,f,(d,h)=>{const m=Math.max(h,u),g=Math.min(h+d.nodeSize,f);d.marks.find(y=>y.type===l)?d.marks.forEach(y=>{l===y.type&&n.addMark(m,g,l.create({...y.attrs,...t}))}):n.addMark(m,g,l.create(t))})});return eh(r,n,l)},nh=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),rh=(e,t={})=>({state:n,dispatch:r,chain:s})=>{const i=he(e,n.schema);let o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),i.isTextblock?s().command(({commands:a})=>ii(i,{...o,...t})(n)?!0:a.clearNodes()).command(({state:a})=>ii(i,{...o,...t})(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},sh=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,s=rt(e,0,r.content.size),i=_s.create(r,s);t.setSelection(i)}return!0},ih=(e,t)=>({tr:n,state:r,dispatch:s})=>{const{selection:i}=r;let o,a;return typeof t=="number"?(o=t,a=t):t&&"from"in t&&"to"in t?(o=t.from,a=t.to):(o=i.from,a=i.to),s&&n.doc.nodesBetween(o,a,(l,c)=>{l.isText||n.setNodeMarkup(c,void 0,{...l.attrs,dir:e})}),!0},oh=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:s,to:i}=typeof e=="number"?{from:e,to:e}:e,o=$e.atStart(r).from,a=$e.atEnd(r).to,l=rt(s,o,a),c=rt(i,o,a),u=$e.create(r,l,c);t.setSelection(u)}return!0},ah=e=>({state:t,dispatch:n})=>{const r=he(e,t.schema);return Hl(r)(t,n)};function so(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(s=>t?.includes(s.type.name));e.tr.ensureMarks(r)}}var lh=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:s})=>{const{selection:i,doc:o}=t,{$from:a,$to:l}=i,c=s.extensionManager.attributes,u=Yn(c,a.node().type.name,a.node().attrs);if(i instanceof _s&&i.node.isBlock)return!a.parentOffset||!Wn(o,a.pos)?!1:(r&&(e&&so(n,s.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const f=l.parentOffset===l.parent.content.size,d=a.depth===0?void 0:qa(a.node(-1).contentMatchAt(a.indexAfter(-1)));let h=f&&d?[{type:d,attrs:u}]:void 0,m=Wn(t.doc,t.mapping.map(a.pos),1,h);if(!h&&!m&&Wn(t.doc,t.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(m=!0,h=d?[{type:d,attrs:u}]:void 0),r){if(m&&(i instanceof $e&&t.deleteSelection(),t.split(t.mapping.map(a.pos),1,h),d&&!f&&!a.parentOffset&&a.parent.type!==d)){const g=t.mapping.map(a.before()),y=t.doc.resolve(g);
4a.node(-1).canReplaceWith(y.index(),y.index()+1,d)&&t.setNodeMarkup(t.mapping.map(a.before()),d)}e&&so(n,s.extensionManager.splittableMarks),t.scrollIntoView()}return m},ch=(e,t={})=>({tr:n,state:r,dispatch:s,editor:i})=>{const o=he(e,r.schema),{$from:a,$to:l}=r.selection,c=r.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==o)return!1;const f=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==o||a.index(-2)!==a.node(-2).childCount-1)return!1;if(s){var d;let b=mt.empty;const M=a.index(-1)?1:a.index(-2)?2:3;for(let H=a.depth-M;H>=a.depth-3;H-=1)b=mt.from(a.node(H).copy(b));const T=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,x={...Yn(f,a.node().type.name,a.node().attrs),...t},R=((d=o.contentMatch.defaultType)===null||d===void 0?void 0:d.createAndFill(x))||void 0;b=b.append(mt.from(o.createAndFill(null,R)||void 0));const K=a.before(a.depth-(M-1));n.replace(K,a.after(-T),new Tl(b,4-M,0));let j=-1;n.doc.nodesBetween(K,n.doc.content.size,(H,N)=>{if(j>-1)return!1;H.isTextblock&&H.content.size===0&&(j=N+1)}),j>-1&&n.setSelection($e.near(n.doc.resolve(j))),n.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,m={...Yn(f,u.type.name,u.attrs),...t},g={...Yn(f,a.node().type.name,a.node().attrs),...t};n.delete(a.pos,l.pos);const y=h?[{type:o,attrs:m},{type:h,attrs:g}]:[{type:o,attrs:m}];if(!Wn(n.doc,a.pos,2))return!1;if(s){const{selection:b,storedMarks:M}=r,{splittableMarks:T}=i.extensionManager,x=M||b.$to.parentOffset&&b.$from.marks();if(n.split(a.pos,2,y).scrollIntoView(),!x||!s)return!0;const R=x.filter(K=>T.includes(K.type.name));n.ensureMarks(R)}return!0};function io(e){return!e||e==="1"?null:e}function sl(e,t){return io(e)===io(t)}var ss=(e,t)=>{const n=Lr(i=>i.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const s=e.doc.nodeAt(r);return!(n.node.type===s?.type&&Ts(e.doc,n.pos))||!sl(n.node.attrs.type,s?.attrs.type)||e.join(n.pos),!0},is=(e,t)=>{const n=Lr(i=>i.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const s=e.doc.nodeAt(r);return!(n.node.type===s?.type&&Ts(e.doc,r))||!sl(n.node.attrs.type,s?.attrs.type)||e.join(r),!0};function uh(e){const t=e.doc,n=t.firstChild;if(!n)return null;const r=t.resolve(1),s=t.resolve(n.nodeSize-1);return $e.between(r,s)}var fh=(e,t,n,r={})=>({editor:s,tr:i,state:o,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:f,splittableMarks:d}=s.extensionManager,h=he(e,o.schema),m=he(t,o.schema),{selection:g,storedMarks:y}=o,{$from:b,$to:M}=g,T=b.blockRange(M),x=y||g.$to.parentOffset&&g.$from.marks();if(!T)return!1;const R=Lr(W=>rs(W.type.name,f))(g),K=g.from===0&&g.to===o.doc.content.size,j=o.doc.content.content,H=j.length===1?j[0]:null,N=K&&H&&rs(H.type.name,f)?{node:H,pos:0,depth:0}:null,z=R??N,Y=!!R&&T.depth>=1&&T.depth-R.depth<=1,D=!!N;if((Y||D)&&z){if(z.node.type===h)return K&&D?l().command(({tr:W,dispatch:se})=>{const Me=uh(W);return Me?(W.setSelection(Me),se&&se(W),!0):!1}).liftListItem(m).run():c.liftListItem(m);if(rs(z.node.type.name,f)&&h.validContent(z.node.content))return l().command(()=>(i.setNodeMarkup(z.pos,h),!0)).command(()=>ss(i,h)).command(()=>is(i,h)).run()}return!n||!x||!a?l().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>ss(i,h)).command(()=>is(i,h)).run():l().command(()=>{const W=u().wrapInList(h,r),se=x.filter(Me=>d.includes(Me.type.name));return i.ensureMarks(se),W?!0:c.clearNodes()}).wrapInList(h,r).command(()=>ss(i,h)).command(()=>is(i,h)).run()},dh=(e,t={},n={})=>({state:r,commands:s})=>{const{extendEmptyMarkRange:i=!1}=n,o=ft(e,r.schema);return xs(r,o,t)?s.unsetMark(o,{extendEmptyMarkRange:i}):s.setMark(o,t)},hh=(e,t,n={})=>({state:r,commands:s})=>{const i=he(e,r.schema),o=he(t,r.schema),a=Cn(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?s.setNode(o,l):s.setNode(i,{...l,...n})},ph=(e,t={})=>({state:n,commands:r})=>{const s=he(e,n.schema);return Cn(n,s,t)?r.lift(s):r.wrapIn(s,t)},mh=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const s=n[r];let i;
4if(s.spec.isInputRules&&(i=s.getState(e))){if(t){const o=e.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)o.step(a.steps[l].invert(a.docs[l]));if(i.text){const l=o.doc.resolve(i.from).marks();o.replaceWith(i.from,i.to,e.schema.text(i.text,l))}else o.delete(i.from,i.to)}return!0}}return!1},gh=(e={})=>({tr:t,dispatch:n,editor:r})=>{const{ignoreClearable:s=!1}=e,{selection:i}=t,{empty:o,ranges:a}=i;if(o)return!0;const{nonClearableMarks:l}=r.extensionManager;if(n){const c=Object.values(r.schema.marks).filter(u=>s||!l.includes(u.name));a.forEach(u=>{for(const f of c)t.removeMark(u.$from.pos,u.$to.pos,f)})}return!0},vh=(e,t={})=>({tr:n,state:r,dispatch:s})=>{const{extendEmptyMarkRange:i=!1}=t,{selection:o}=n,a=ft(e,r.schema),{$from:l,empty:c,ranges:u}=o;if(!s)return!0;if(c&&i){var f;let{from:d,to:h}=o;const m=Gs(l,a,(f=l.marks().find(g=>g.type===a))===null||f===void 0?void 0:f.attrs);m&&(d=m.from,h=m.to),n.removeMark(d,h,a)}else u.forEach(d=>{n.removeMark(d.$from.pos,d.$to.pos,a)});return n.removeStoredMark(a),!0},yh=e=>({tr:t,state:n,dispatch:r})=>{const{selection:s}=n;let i,o;return typeof e=="number"?(i=e,o=e):e&&"from"in e&&"to"in e?(i=e.from,o=e.to):(i=s.from,o=s.to),r&&t.doc.nodesBetween(i,o,(a,l)=>{if(a.isText)return;const c={...a.attrs};delete c.dir,t.setNodeMarkup(l,void 0,c)}),!0},bh=(e,t={})=>({tr:n,state:r,dispatch:s})=>{let i=null,o=null;const a=$r(typeof e=="string"?e:e.name,r.schema);if(!a)return!1;a==="node"&&(i=he(e,r.schema)),a==="mark"&&(o=ft(e,r.schema));let l=!1;return n.selection.ranges.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;let d,h,m,g;n.selection.empty?r.doc.nodesBetween(u,f,(y,b)=>{i&&i===y.type&&(l=!0,m=Math.max(b,u),g=Math.min(b+y.nodeSize,f),d=b,h=y)}):r.doc.nodesBetween(u,f,(y,b)=>{b<u&&i&&i===y.type&&(l=!0,m=Math.max(b,u),g=Math.min(b+y.nodeSize,f),d=b,h=y),b>=u&&b<=f&&(i&&i===y.type&&(l=!0,s&&n.setNodeMarkup(b,void 0,{...y.attrs,...t})),o&&y.marks.length&&y.marks.forEach(M=>{if(o===M.type&&(l=!0,s)){const T=Math.max(b,u),x=Math.min(b+y.nodeSize,f);n.addMark(T,x,o.create({...M.attrs,...t}))}}))}),h&&(d!==void 0&&s&&n.setNodeMarkup(d,void 0,{...h.attrs,...t}),o&&h.marks.length&&h.marks.forEach(y=>{o===y.type&&s&&n.addMark(m,g,o.create({...y.attrs,...t}))}))}),l},Lt=new _e("__tiptap_decorations__"),wh=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(Lt,{type:"force",name:e}),!0),Sh=(e,t={})=>({state:n,dispatch:r})=>{const s=he(e,n.schema);return ql(s,t)(n,r)},xh=(e,t={})=>({state:n,dispatch:r})=>{const s=he(e,n.schema);return Xl(s,t)(n,r)},Eh=Kf({blur:()=>Wf,clearContent:()=>Uf,clearNodes:()=>qf,command:()=>Gf,createParagraphNear:()=>Jf,cut:()=>Yf,deleteCurrentNode:()=>Xf,deleteNode:()=>Qf,deleteRange:()=>Zf,deleteSelection:()=>nd,enter:()=>rd,exitCode:()=>sd,extendMarkRange:()=>id,first:()=>od,focus:()=>ld,forEach:()=>cd,insertContent:()=>ud,insertContentAt:()=>fd,insertDefaultBlock:()=>dd,joinBackward:()=>md,joinDown:()=>pd,joinForward:()=>gd,joinItemBackward:()=>vd,joinItemForward:()=>yd,joinTextblockBackward:()=>bd,joinTextblockForward:()=>wd,joinUp:()=>hd,keyboardShortcut:()=>xd,lift:()=>Ed,liftEmptyBlock:()=>Cd,liftListItem:()=>Md,newlineInCode:()=>_d,resetAttributes:()=>Td,scrollIntoView:()=>kd,selectAll:()=>Ad,selectNodeBackward:()=>Pd,selectNodeForward:()=>Rd,selectParentNode:()=>Dd,selectTextblockEnd:()=>Od,selectTextblockStart:()=>Nd,setContent:()=>Id,setMark:()=>th,setMeta:()=>nh,setNode:()=>rh,setNodeSelection:()=>sh,setTextDirection:()=>ih,setTextSelection:()=>oh,sinkListItem:()=>ah,splitBlock:()=>lh,splitListItem:()=>ch,toggleList:()=>fh,toggleMark:()=>dh,toggleNode:()=>hh,toggleWrap:()=>ph,undoInputRule:()=>mh,unsetAllMarks:()=>gh,unsetMark:()=>vh,unsetTextDirection:()=>yh,updateAttributes:()=>bh,updateDecorations:()=>wh,wrapIn:()=>Sh,wrapInList:()=>xh}),Ft=new WeakMap;function Ch(e,t){var n;Ft.set(e,((n=Ft.get(e))!==null&&n!==void 0?n:0)+1);try{return t()}finally{var r;const s=((r=Ft.get(e))!==null&&r!==void 0?r:1)-1;s>0?Ft.set(e,s):Ft.delete(e)}}function Mh(e){return Ft.has(e)}var _h=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];
4return n&&n.forEach(r=>r.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},il=typeof process<"u"&&!1;function Th(e){return e.kind==="widget"}function ol(e,t){const n=[],r=new Set;for(const s of e)s.kind==="widget"&&Th(s)&&r.add(s.key),n.push(s.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function kh(e,t,n){const{decorations:r,widgetKeys:s}=ol(t,n);return{set:Le.create(e,r),widgetKeys:s}}function al({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n?!0:e===n&&n===r}function Ah({decorations:e,from:t,to:n,docSize:r,extensionName:s,warnedExtensions:i}){return e.filter(o=>al({position:o.anchor,from:t,to:n,docSize:r})?!0:(o.anchor===n||i.has(s)||(i.add(s),console.warn(`[tiptap warn]: Extension "${s}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function ll(e){var t;const n=(t=e.spec)===null||t===void 0?void 0:t.key;return typeof n=="string"?n:void 0}function Ph(e){const t=new Map,n=new Map;for(const o of e.find()){var r,s,i;const a=ll(o);if(!a)continue;const l=(r=o.spec.extensionName)!==null&&r!==void 0?r:"unknown",c=(s=t.get(a))!==null&&s!==void 0?s:new Set;c.add(l),t.set(a,c),n.set(a,((i=n.get(a))!==null&&i!==void 0?i:0)+1)}return Array.from(t,([o,a])=>({key:o,extensions:a})).filter(({key:o})=>{var a;return((a=n.get(o))!==null&&a!==void 0?a:0)>1})}function cl(e){return e.jsonID==="attr"}function Rh(e){let t=!1;
4if(e.getMap().forEach(()=>{t=!0}),t||cl(e))return!0;const n=e;return typeof n.from=="number"&&typeof n.to=="number"}function Dh(e,t){let n=null,r=0,s=0;for(let i=0;i<e.childCount&&!(s>t.to);i+=1){const o=s+e.child(i).nodeSize;o>=t.from&&(n===null&&(n=s),r=o),s=o}return n===null?null:{from:n,to:r}}function Oh(e,t){if(e.steps.some(i=>!Rh(i)))return{type:"full"};const n=Xs(e).map(({newRange:i})=>i);e.steps.forEach((i,o)=>{if(!cl(i))return;const a=e.mapping.slice(o);n.push({from:a.map(i.pos,-1),to:a.map(i.pos+1)})});const r=[];for(const i of n){const o=Dh(t,i);o&&r.push(o)}r.sort((i,o)=>i.from-o.from);const s=[];for(const i of r){const o=s[s.length-1];o&&i.from<=o.to?o.to=Math.max(o.to,i.to):s.push({...i})}return{type:"ranges",ranges:s}}function ul(e,t,n,r){return e.map(t,n,{onRemove:s=>{const i=s?.key;typeof i=="string"&&r.delete(i)}})}function Nh(e,t,n){var r,s;const i=(r=t.decorationSetsByExtension[e])!==null&&r!==void 0?r:Le.empty,o=new Set((s=t.widgetKeysByExtension[e])!==null&&s!==void 0?s:[]);return{set:ul(i,n.mapping,n.doc,o),widgetKeys:o}}function oo(e,t){const n=Object.values(t).flatMap(r=>r.find());return Le.create(e,n)}function ao(e){const t=new Set;for(const n of Object.values(e))for(const r of n)t.add(r);return t}function Ih(e,t){var n;switch((n=t.update)!==null&&n!==void 0?n:"document"){case"document":if(t.createInRange)throw new Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case"changedRanges":if(!t.createInRange)throw new Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case"manual":if(t.createInRange)throw new Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw new Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw new Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function $h(e,t,n){return n?!0:e.update==="manual"?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var Lh=new Set,Fh=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:t})=>{const n=Lt.getState(t);n&&this.warnDuplicateWidgetKeys(n)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:t,spec:n})=>Ih(t,n)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on("beforeTransaction",this.handleBeforeTransaction)}destroy(){this.editor.off("beforeTransaction",this.handleBeforeTransaction)}liveWidgetKeys(){var e,t;return(e=(t=Lt.getState(this.editor.state))===null||t===void 0?void 0:t.widgetKeys)!==null&&e!==void 0?e:Lh}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){const t=[];for(const{name:n,addDecorations:r}of e){const s=r();s&&t.push({name:n,spec:s})}return t}createPlugin(){const{editor:e,entries:t}=this;return new Se({key:Lt,state:{init:(n,r)=>{const s={},i={};for(const{name:a,spec:l}of t){const{set:c,widgetKeys:u}=this.buildFullSet(a,l,r);s[a]=c,i[a]=u}const o={decorationSetsByExtension:s,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(r.doc,s),widgetKeys:ao(i)};return this.warnDuplicateWidgetKeys(o),o},apply:(n,r,s,i)=>{const o=n.getMeta(Lt),a=o?.type==="force"&&!o.name,l=o?.type==="force"?o.name:void 0,c={},u={},f=new Set;return Ch(e,()=>{for(const{name:d,spec:h}of t){const m=a||l===d;if($h(h,{editor:e,tr:n,oldState:s,newState:i},m))if(h.update==="changedRanges"&&n.docChanged&&!m){const g=this.applyChangedRangesRecompute(d,h,r,n,i);c[d]=g.set,u[d]=g.widgetKeys,f.add(d)}else{const{set:g,widgetKeys:y}=this.buildFullSet(d,h,i);c[d]=g,u[d]=y,f.add(d)}else{const g=Nh(d,r,n);c[d]=g.set,u[d]=g.widgetKeys}}}),f.size===0&&!n.docChanged?r:{decorationSetsByExtension:c,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:c,recomputedNames:f}),widgetKeys:ao(u)}}},props:{decorations(n){var r,s;return(r=(s=Lt.getState(n))===null||s===void 0?void 0:s.mergedDecorationSet)!==null&&r!==void 0?r:Le.empty}}})}
4applyChangedRangesRecompute(e,t,n,r,s){const i=Oh(r,s.doc);return i.type==="full"?this.buildFullSet(e,t,s):this.rebuildRanges(e,t,n,r,s,i.ranges)}rebuildRanges(e,t,n,r,s,i){var o,a;const l=(o=n.decorationSetsByExtension[e])!==null&&o!==void 0?o:Le.empty,c=new Set((a=n.widgetKeysByExtension[e])!==null&&a!==void 0?a:[]);let u=ul(l,r.mapping,r.doc,c);const f=s.doc.content.size;for(const{from:d,to:h}of i){const m=u.find(d,h).filter(b=>al({position:b.from,from:d,to:h,docSize:f}));for(const b of m){const M=ll(b);M&&c.delete(M)}u=u.remove(m);const{decorations:g,widgetKeys:y}=ol(Ah({decorations:this.runCreate(e,"createInRange",()=>t.createInRange({editor:this.editor,state:s,view:this.mountedView,from:d,to:h})),from:d,to:h,docSize:f,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);u=u.add(s.doc,g);for(const b of y)c.add(b)}return{set:u,widgetKeys:c}}buildFullSet(e,t,n){const r=this.runCreate(e,"create",()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return kh(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(r){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,r),[]}}warnDuplicateWidgetKeys(e){if(!il)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}const t=Ph(e.mergedDecorationSet),n=new Set(t.map(({key:r})=>r));for(const{key:r,extensions:s}of t){if(this.warnedWidgetKeys.has(r))continue;const i=Array.from(s).map(o=>`"${o}"`).join(", ");console.warn(`[tiptap warn]: Duplicate widget decoration key "${r}" in extension${s.size===1?"":"s"} ${i}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){const n=Object.keys(t);return n.length===1?t[n[0]]:oo(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:s}){return e.length===1?r[e[0].name]:s.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):oo(n.doc,r)}};function jh(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;const s=document.createElement("style");return t&&s.setAttribute("nonce",t),s.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),s.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(s),s}function Mm(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function _m(e,t){const n=e.getAttribute("style");if(!n)return null;const r=n.split(";").map(i=>i.trim()).filter(Boolean),s=t.toLowerCase();for(let i=r.length-1;i>=0;i-=1){const o=r[i],a=o.indexOf(":");if(a!==-1&&o.slice(0,a).trim().toLowerCase()===s)return o.slice(a+1).trim()}return null}function Bh(e){return typeof e=="number"}function Vh(e){return Object.prototype.toString.call(e).slice(8,-1)}function zn(e){return Vh(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Qs(e){return/\s/.test(e)}function zh(e){return/^[a-zA-Z]$/.test(e)}function fl(e){return/^\w$/.test(e)}function Es(e,t){for(;t<e.length&&Qs(e[t]);)t+=1;return t}function Jt(e,t){for(;t<e.length&&!Qs(e[t]);)t+=1;return t}function dl(e,t,n){for(;t<e.length&&(fl(e[t])||n&&e[t]==="-");)t+=1;return t}function Hh(e,t){const n=e[t],r=t+1,s=dl(e,r,!0);return s===r?{nextIndex:Jt(e,s)}:{token:{type:n==="."?"class":"id",name:e.slice(r,s)},nextIndex:Jt(e,s)}}function Kh(e,t){const n=e.indexOf(e[t],t+1);return{nextIndex:Jt(e,n===-1?t:n+1)}}function Wh(e,t,n,r){let s=r?Es(e,n):n;if(e[s]!=="=")return;s=r?Es(e,s+1):s+1;const i=e[s];if(i!=='"'&&i!=="'")return;const o=e.indexOf(i,s+1);if(o!==-1)return{token:{type:"keyValue",name:t,value:e.slice(s+1,o)},nextIndex:Jt(e,o+1)}}function Uh(e,t,n){const r=n==="pandoc",s=dl(e,t+1,r),i=e.slice(t,s),o=Wh(e,i,s,r);if(o)return o;const a=s===e.length||Qs(e[s]);return{token:r&&a?{type:"boolean",name:i}:void 0,nextIndex:n==="shortcode"?Jt(e,s):s}}function qh(e,t,n){const r=e[t];return n==="pandoc"&&(r==="."||r==="#")?Hh(e,t):r==='"'||r==="'"?Kh(e,t):(n==="pandoc"?zh(r):fl(r))?Uh(e,t,n):{nextIndex:Jt(e,t)}}function Gh(e,t){const n=[];let r=0;for(;r<e.length&&(r=Es(e,r),!(r>=e.length));){const s=qh(e,r,t);
4s.token&&n.push(s.token),r=s.nextIndex}return n}function Jh(e){const t={};return Gh(e,"shortcode").forEach(n=>{n.type==="keyValue"&&(t[n.name]=n.value)}),t}function Yh(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}="${n}"`).join(" ")}function Tm(e){const{nodeName:t,name:n,getContent:r,parseAttributes:s=Jh,serializeAttributes:i=Yh,defaultAttributes:o={},selfClosing:a=!1,allowedAttributes:l}=e,c=n||t,u=d=>{if(!l)return d;const h={};return l.forEach(m=>{const g=typeof m=="string"?m:m.name,y=typeof m=="string"?void 0:m.skipIfDefault;if(g in d){const b=d[g];if(y!==void 0&&b===y)return;h[g]=b}}),h},f=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(d,h)=>{const m={...o,...d.attributes};if(a)return h.createNode(t,m);const g=r?r(d):d.content||"";return g?h.createNode(t,m,[h.createTextNode(g)]):h.createNode(t,m,[])},markdownTokenizer:{name:t,level:"inline",start(d){const h=a?new RegExp(`\\[${f}\\s*[^\\]]*\\]`):new RegExp(`\\[${f}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${f}\\]`),m=d.match(h),g=m?.index;return g!==void 0?g:-1},tokenize(d,h,m){const g=a?new RegExp(`^\\[${f}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${f}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${f}\\]`),y=d.match(g);if(!y)return;let b="",M="";if(a){const[,x]=y;M=x}else{const[,x,R]=y;M=x,b=R||""}const T=s(M.trim());return{type:t,raw:y[0],content:b.trim(),attributes:T}}},renderMarkdown:d=>{let h="";r?h=r(d):d.content&&d.content.length>0&&(h=d.content.filter(b=>b.type==="text").map(b=>b.text).join(""));const m=u(d.attrs||{}),g=i(m),y=g?` ${g}`:"";return a?`[${c}${y}]`:`[${c}${y}]${h}[/${c}]`}}}function km(e,t,n){const r=e.split(` 5`),s=[];let i="",o=0;const a=t.baseIndentSize||2;for(;o<r.length;){const u=r[o],f=u.match(t.itemPattern);if(!f){if(s.length>0)break;if(u.trim()===""){o+=1,i=`${i}${u} 6`;continue}else return}const d=t.extractItemData(f),{indentLevel:h,mainContent:m}=d;i=`${i}${u} 7`;const g=[m];for(o+=1;o<r.length;){var l;const T=r[o];if(T.trim()===""){var c;const x=r.slice(o+1).findIndex(R=>R.trim()!=="");if(x===-1)break;if((((c=r[o+1+x].match(/^(\s*)/))===null||c===void 0||(c=c[1])===null||c===void 0?void 0:c.length)||0)>h){g.push(T),i=`${i}${T} 8`,o+=1;continue}else break}if((((l=T.match(/^(\s*)/))===null||l===void 0||(l=l[1])===null||l===void 0?void 0:l.length)||0)>h)g.push(T),i=`${i}${T} 9`,o+=1;else break}let y;const b=g.slice(1);if(b.length>0){const T=b.map(x=>x.slice(h+a)).join(` 10`);T.trim()&&(t.customNestedParser?y=t.customNestedParser(T):y=n.blockTokens(T))}const M=t.createToken(d,y);s.push(M)}if(s.length!==0)return{items:s,raw:i}}var lo=4;function co(e){let t=0;for(const n of e)t=n===" "?t+lo-t%lo:t+1;return t}function Am(e,t,n,r,s){if(!e||!Array.isArray(e.content))return"";const i=typeof n=="function"?n(r):n,[o,...a]=e.content;let l=`${i}${t.renderChildren([o])}`;return a&&a.length>0&&a.forEach((c,u)=>{var f,d;const h=(f=(d=t.renderChild)===null||d===void 0?void 0:d.call(t,c,u+1))!==null&&f!==void 0?f:t.renderChildren([c]);if(h!=null){const m=y=>{if(!s?.alignNestedToPrefix)return t.indent(y);const b=t.indent(""),M=co(i);return(co(b)>=M?b:" ".repeat(M))+y},g=h.split(` 11`).map(y=>m(y||"")).join(` 12`);l+=c.type==="paragraph"?` 13 14${g}`:` 15${g}`}}),l}function hl(e,t){const n={...e};return zn(e)&&zn(t)&&Object.keys(t).forEach(r=>{zn(t[r])&&zn(e[r])?n[r]=hl(e[r],t[r]):n[r]=t[r]}),n}function Xh(e,t,n={}){const{state:r}=t,{doc:s,tr:i}=r,o=e;s.descendants((a,l)=>{const c=i.mapping.map(l),u=i.mapping.map(l)+a.nodeSize;let f=null;if(a.marks.forEach(h=>{if(h!==o)return!1;f=h}),!f)return;let d=!1;if(Object.keys(n).forEach(h=>{n[h]!==f.attrs[h]&&(d=!0)}),d){const h=e.type.create({...e.attrs,...n});i.removeMark(c,u,e.type),i.addMark(c,u,h)}}),i.docChanged&&t.view.dispatch(i)}var Rn=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=(t=e.undoable)!==null&&t!==void 0?t:!0}},Qh=(e,t)=>{if(qs(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Hn(e){var t;const{editor:n,from:r,to:s,text:i,rules:o,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||!((t=c.nodeBefore||c.nodeAfter)===null||t===void 0)&&t.marks.find(d=>d.type.spec.code))return!1;let u=!1;const f=Jd(c)+i;return o.forEach(d=>{if(u)return;const h=Qh(f,d.find);if(!h)return;const m=h[0].length-i.length;if(m>0){const R=c.parentOffset-m;if(R<0||c.parent.textBetween(R,c.parentOffset)!==h[0].slice(0,m))return}const g=l.state.tr,y=Ir({state:l.state,transaction:g}),b={from:r-(h[0].length-i.length),to:s},{commands:M,chain:T,can:x}=new Ht({editor:n,state:y});d.handler({state:y,range:b,match:h,commands:M,chain:T,can:x})===null||!g.steps.length||(d.undoable&&g.setMeta(a,{transform:g,from:r,to:s,text:i}),l.dispatch(g),u=!0)}),u}function Zh(e){const{editor:t,rules:n}
15=e,r=new Se({state:{init(){return null},apply(s,i,o){const a=s.getMeta(r);if(a)return a;const l=s.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:c}=l;typeof c=="string"?c=c:c=Ys(mt.from(c),o.schema);const{from:u}=l,f=u+c.length;Hn({editor:t,from:u,to:f,text:c,rules:n,plugin:r})}),s.selectionSet||s.docChanged?null:i}},props:{handleTextInput(s,i,o,a){return Hn({editor:t,from:i,to:o,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:s=>(setTimeout(()=>{const{$cursor:i}=s.state.selection;i&&Hn({editor:t,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(s,i){if(i.key!=="Enter")return!1;const{$cursor:o}=s.state.selection;return o?Hn({editor:t,from:o.pos,to:o.pos,text:` 16`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var Zs=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...X(I(this,"addOptions",{name:this.name}))}}get storage(){return{...X(I(this,"addStorage",{name:this.name,options:this.options}))}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>hl(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},ep=class pl extends Zs{constructor(...t){super(...t),this.type="mark"}static create(t={}){const n=typeof t=="function"?t():t;return new pl(n)}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,s=t.state.selection.$from;if(s.pos===s.end()){const i=s.marks();if(!i.find(a=>a?.type.name===n.name))return!1;const o=i.find(a=>a?.type.name===n.name);return o&&r.removeStoredMark(o),r.insertText(" ",s.pos),t.view.dispatch(r),!0}return!1}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},tp=class{constructor(e){this.find=e.find,this.handler=e.handler}},np=(e,t,n)=>
16{if(qs(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(s=>{const i=[s.text];return i.index=s.index,i.input=e,i.data=s.data,s.replaceWith&&(s.text.includes(s.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(s.replaceWith)),i}):[]};function rp(e){const{editor:t,state:n,from:r,to:s,rule:i,pasteEvent:o,dropEvent:a}=e,{commands:l,chain:c,can:u}=new Ht({editor:t,state:n}),f=[];return n.doc.nodesBetween(r,s,(d,h)=>{var m,g,y,b;if(!((m=d.type)===null||m===void 0||(m=m.spec)===null||m===void 0)&&m.code||!(d.isText||d.isTextblock||d.isInline))return;const M=(g=(y=(b=d.content)===null||b===void 0?void 0:b.size)!==null&&y!==void 0?y:d.nodeSize)!==null&&g!==void 0?g:0,T=Math.max(r,h),x=Math.min(s,h+M);if(T>=x)return;const R=d.isText?d.text||"":d.textBetween(T-h,x-h,void 0,"");np(R,i.find,o).forEach(K=>{if(K.index===void 0)return;const j=T+K.index+1,H=j+K[0].length,N={from:n.tr.mapping.map(j),to:n.tr.mapping.map(H)},z=i.handler({state:n,range:N,match:K,commands:l,chain:c,can:u,pasteEvent:o,dropEvent:a});f.push(z)})}),f.every(d=>d!==null)}var Kn=null,sp=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function ip(e){const{editor:t,rules:n}=e;let r=null,s=!1,i=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:c,from:u,to:f,rule:d,pasteEvt:h})=>{const m=c.tr,g=Ir({state:c,transaction:m});if(!(!rp({editor:t,state:g,from:Math.max(u-1,0),to:f.b-1,rule:d,pasteEvent:h,dropEvent:a})||!m.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(c=>new Se({view(u){const f=h=>{var m;r=!((m=u.dom.parentElement)===null||m===void 0)&&m.contains(h.target)?u.dom.parentElement:null,r&&(Kn=t)},d=()=>{Kn&&(Kn=null)};return window.addEventListener("dragstart",f),window.addEventListener("dragend",d),{destroy(){window.removeEventListener("dragstart",f),window.removeEventListener("dragend",d)}}},props:{handleDOMEvents:{drop:(u,f)=>{if(i=r===u.dom.parentElement,a=f,!i){const d=Kn;d?.isEditable&&setTimeout(()=>{const h=d.state.selection;h&&d.commands.deleteRange({from:h.from,to:h.to})},10)}return!1},paste:(u,f)=>{var d;const h=(d=f.clipboardData)===null||d===void 0?void 0:d.getData("text/html");return o=f,s=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(u,f,d)=>{const h=u[0],m=h.getMeta("uiEvent")==="paste"&&!s,g=h.getMeta("uiEvent")==="drop"&&!i,y=h.getMeta("applyPasteRules"),b=!!y;if(!m&&!g&&!b)return;if(b){let{text:x}=y;typeof x=="string"?x=x:x=Ys(mt.from(x),d.schema);const{from:R}=y,K=R+x.length,j=sp(x);return l({rule:c,state:d,from:R,to:{b:K},pasteEvt:j})}const M=f.doc.content.findDiffStart(d.doc.content),T=f.doc.content.findDiffEnd(d.doc.content);if(!(!Bh(M)||!T||M===T.b))return l({rule:c,state:d,from:M,to:T,pasteEvt:o})}}))}var Fr=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=Qa(e),this.schema=zd(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const n=I(t,"addCommands",{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:It(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this,t=hn([...this.extensions].reverse()).flatMap(r=>{const s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:It(r.name,this.schema)},i=[],o=I(r,"addKeyboardShortcuts",s);let a={};if(r.type==="mark"&&I(r,"exitable",s)&&(a.ArrowRight=()=>ep.handleExit({editor:e,mark:r})),o){const d=Object.fromEntries(Object.entries(o()).map(([h,m])=>[h,()=>m({editor:e})]));a={...a,...d}}const l=ec(a);i.push(l);const c=I(r,"addInputRules",s);if(ro(r,e.options.enableInputRules)&&c){const d=c();if(d&&d.length){const h=Zh({editor:e,rules:d}),m=Array.isArray(h)?h:[h];i.push(...m)}}const u=I(r,"addPasteRules",s);if(ro(r,e.options.enablePasteRules)&&u){const d=u();if(d&&d.length){const h=ip({editor:e,rules:d});i.push(...h)}}const f=I(r,"addProseMirrorPlugins",s);if(f){const d=f();i.push(...d)}return i}),n=this.createDecorationPlugin();
16return n&&t.push(n),t}createDecorationPlugin(){var e;const{editor:t}=this;(e=this.decorationManager)===null||e===void 0||e.destroy();const n=[];return this.extensions.forEach(r=>{const s=I(r,"addDecorations",{name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:It(r.name,this.schema)});s&&n.push({name:r.name,addDecorations:s})}),this.decorationManager=new Fh({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){return Xa(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Gt(this.extensions);return Object.fromEntries(t.filter(n=>!!I(n,"addNodeView")).map(n=>{const r=this.attributes.filter(a=>a.type===n.name),s=I(n,"addNodeView",{name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:he(n.name,this.schema)});if(!s)return[];const i=s();if(!i)return[];const o=(a,l,c,u,f)=>{const d=fr(a,r);return i({node:a,view:l,getPos:c,decorations:u,innerDecorations:f,editor:e,extension:n,HTMLAttributes:d})};return[n.name,o]}))}dispatchTransaction(e){const{editor:t}=this;return hn([...this.extensions].reverse()).reduceRight((n,r)=>{const s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:It(r.name,this.schema)},i=I(r,"dispatchTransaction",s);return i?o=>{i.call(s,{transaction:o,next:n})}:n},e)}transformPastedHTML(e){const{editor:t}=this;return hn([...this.extensions]).reduce((n,r)=>{const s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:It(r.name,this.schema)},i=I(r,"transformPastedHTML",s);return i?(o,a)=>{const l=n(o,a);return i.call(s,l)}:n},e||(n=>n))}get markViews(){const{editor:e}=this,{markExtensions:t}=Gt(this.extensions);return Object.fromEntries(t.filter(n=>!!I(n,"addMarkView")).map(n=>{const r=this.attributes.filter(o=>o.type===n.name),s=I(n,"addMarkView",{name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:ft(n.name,this.schema)});if(!s)return[];const i=(o,a,l)=>{const c=fr(o,r);return s()({mark:o,view:a,inline:l,editor:e,extension:n,HTMLAttributes:c,updateAttributes:u=>{Xh(o,e,u)}})};return[n.name,i]}))}destroy(){var e;(e=this.decorationManager)===null||e===void 0||e.destroy(),this.extensions.forEach(t=>{let n=t;for(;n.parent;){const r=n.parent;r.child===n&&(r.child=null),n=r}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(t=>[t.name,t.storage])),e.forEach(t=>{const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:It(t.name,this.schema)};if(t.type==="mark"){var r,s;(!((r=X(I(t,"keepOnSplit",n)))!==null&&r!==void 0)||r)&&this.splittableMarks.push(t.name),!((s=X(I(t,"clearable",n)))!==null&&s!==void 0)||s||this.nonClearableMarks.push(t.name)}const i=I(t,"onBeforeCreate",n),o=I(t,"onCreate",n),a=I(t,"onUpdate",n),l=I(t,"onSelectionUpdate",n),c=I(t,"onTransaction",n),u=I(t,"onFocus",n),f=I(t,"onBlur",n),d=I(t,"onDestroy",n);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),l&&this.editor.on("selectionUpdate",l),c&&this.editor.on("transaction",c),u&&this.editor.on("focus",u),f&&this.editor.on("blur",f),d&&this.editor.on("destroy",d)})}};Fr.resolve=Qa;Fr.sort=hn;Fr.flatten=Js;var pe=class ml extends Zs{constructor(...t){super(...t),this.type="extension"}static create(t={}){const n=typeof t=="function"?t():t;return new ml(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},op=pe.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Se({key:new _e("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:s}=t,i=el(n),{blockSeparator:o}=this.options,a={...o!==void 0?{blockSeparator:o}:{},textSerializers:i};return[...s.ranges].sort((l,c)=>l.$from.pos-c.$from.pos).map(({$from:l,$to:c})=>Za(r,{from:l.pos,to:c.pos},a)).join(o??` 17 18`)}}})]}}),ap=pe.create({name:"commands",addCommands(){return{...Eh}}}
18),lp=pe.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,r;const s=()=>{var i,o,a;if((i=(o=this.editor.options.coreExtensionOptions)===null||o===void 0||(o=o.delete)===null||o===void 0||(a=o.filterTransaction)===null||a===void 0?void 0:a.call(o,e))!==null&&i!==void 0?i:e.getMeta("y-sync$"))return;const l=$d(e.before,[e,...t]);Xs(l).forEach(u=>{l.mapping.mapResult(u.oldRange.from).deletedAfter&&l.mapping.mapResult(u.oldRange.to).deletedBefore&&l.before.nodesBetween(u.oldRange.from,u.oldRange.to,(f,d)=>{const h=d+f.nodeSize-2,m=u.oldRange.from<=d&&h<=u.oldRange.to;this.editor.emit("delete",{type:"node",node:f,from:d,to:h,newFrom:l.mapping.map(d),newTo:l.mapping.map(h),deletedRange:u.oldRange,newRange:u.newRange,partial:!m,editor:this.editor,transaction:e,combinedTransform:l})})});const c=l.mapping;l.steps.forEach((u,f)=>{if(u instanceof ac){var d,h;const m=c.slice(f).map(u.from,-1),g=c.slice(f).map(u.to),y=c.invert().map(m,-1),b=c.invert().map(g),M=m>0?(d=l.doc.nodeAt(m-1))===null||d===void 0?void 0:d.marks.some(x=>x.eq(u.mark)):!1,T=(h=l.doc.nodeAt(g))===null||h===void 0?void 0:h.marks.some(x=>x.eq(u.mark));this.editor.emit("delete",{type:"mark",mark:u.mark,from:u.from,to:u.to,deletedRange:{from:y,to:b},newRange:{from:m,to:g},partial:!!(T||M),editor:this.editor,transaction:e,combinedTransform:l})}})};!((n=(r=this.editor.options.coreExtensionOptions)===null||r===void 0||(r=r.delete)===null||r===void 0?void 0:r.async)!==null&&n!==void 0)||n?setTimeout(s,0):s()}}),cp=pe.create({name:"drop",addProseMirrorPlugins(){return[new Se({key:new _e("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),up=pe.create({name:"editable",addProseMirrorPlugins(){return[new Se({key:new _e("editable"),props:{editable:()=>this.editor.options.editable}})]}}),fp=new _e("focusEvents"),dp=pe.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Se({key:fp,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),hp=pe.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:f}=l,{pos:d,parent:h}=f,m=f.parent.isTextblock&&d>0?a.doc.resolve(d-1):f,g=m.parent.type.spec.isolating,y=f.pos-f.parentOffset,b=g&&m.parent.childCount===1?y===f.pos:jt.atStart(c).from===d;return!u||!h.type.isTextblock||h.textContent.length||!b||b&&f.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},s={...r},i={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ur()||Ga()?i:s},addProseMirrorPlugins(){return[new Se({key:new _e("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(h=>h.getMeta("composition")))return;const r=e.some(h=>h.docChanged)&&!t.doc.eq(n.doc),s=e.some(h=>h.getMeta("preventClearDocument"));if(!r||s)return;const{empty:i,from:o,to:a}=t.selection,l=jt.atStart(t.doc).from,c=jt.atEnd(t.doc).to;if(i||!(o===l&&a===c)||!Pn(n.doc))return;const u=n.tr,f=Ir({state:n,transaction:u}),{commands:d}=new Ht({editor:this.editor,state:f});if(d.clearNodes(),!!u.steps.length)return u}})]}}),pp=pe.create({name:"paste",addProseMirrorPlugins(){return[new Se({key:new _e("tiptapPaste"),props:{handlePaste:(e,t,n
18)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),mp=pe.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Se({key:new _e("tabindex"),props:{attributes:()=>{var e;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(e=this.options.value)!==null&&e!==void 0?e:"0"}}}})]}}),gp=pe.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=Gt(this.extensions);return[{types:e.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{const n=t.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return[new Se({key:new _e("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),uo=!1;function vp(e){if(uo)return;uo=!0;let t;try{t=vo.fromJSON(e,{from:0,to:0}).slice.content}catch{return}t instanceof mt||console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.")}var yp=class on{get name(){return this.node.type.name}constructor(t,n,r=!1,s=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=s}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new on(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new on(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new on(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const s=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,o=n.isInline,a=this.pos+r+(i?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!s&&!o&&l.depth<=this.depth)return;const c=new on(l,this.editor,s,s||o?n:null);s&&(c.actualDepth=this.depth+1),t.push(c)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,s=this.parent;for(;s&&!r;){if(s.node.type.name===t)if(Object.keys(n).length>0){const i=s.node.attrs,o=Object.keys(n);for(let a=0;a<o.length;a+=1){const l=o[a];if(i[l]!==n[l])break}}else r=s;s=s.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let s=[];if(!this.children||this.children.length===0)return s;const i=Object.keys(n);return this.children.forEach(o=>{r&&s.length>0||(o.node.type.name===t&&i.every(a=>n[a]===o.node.attrs[a])&&s.push(o),!(r&&s.length>0)&&(s=s.concat(o.querySelectorAll(t,n,r))))}),s}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}},bp=`.ProseMirror { 19 position: relative; 20} 21 22.ProseMirror { 23 word-wrap: break-word; 24 white-space: pre-wrap; 25 white-space: break-spaces; 26 -webkit-font-variant-ligatures: none; 27 font-variant-ligatures: none; 28 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 29} 30 31.ProseMirror [contenteditable="false"] { 32 white-space: normal; 33} 34 35.ProseMirror [contenteditable="false"] [contenteditable="true"] { 36 white-space: pre-wrap; 37} 38 39.ProseMirror pre { 40 white-space: pre-wrap; 41} 42 43img.ProseMirror-separator { 44 display: inline !important; 45 border: none !important; 46 margin: 0 !important; 47 width: 0 !important; 48 height: 0 !important; 49} 50 51.ProseMirror-gapcursor { 52 display: none; 53 pointer-events: none; 54 position: absolute; 55 margin: 0; 56} 57 58.ProseMirror-gapcursor:after {
59 content: ""; 60 display: block; 61 position: absolute; 62 top: -2px; 63 width: 20px; 64 border-top: 1px solid black; 65 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 66} 67 68@keyframes ProseMirror-cursor-blink { 69 to { 70 visibility: hidden; 71 } 72} 73 74.ProseMirror-hideselection *::selection { 75 background: transparent; 76} 77 78.ProseMirror-hideselection *::-moz-selection { 79 background: transparent; 80} 81 82.ProseMirror-hideselection * { 83 caret-color: transparent; 84} 85 86.ProseMirror-focused .ProseMirror-gapcursor { 87 display: block; 88}`,wp=class extends _h{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Qd,createMappablePosition:Zd},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:s})=>this.options.onDrop(n,r,s)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),this.on("delete",this.options.onDelete);const t=this.createDoc();if(!this.editorState){const n=ws(t,this.options.autofocus);this.editorState=oi.create({doc:t,schema:this.schema,selection:n||void 0})}vp(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():Ht.createFakeChain()}can(){return this.commandManager?this.commandManager.can():Ht.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=jh(bp,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}
88),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t==="state")return this.editorState;if(t in e)return Reflect.get(e,t);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return il&&!this.hasWarnedStaleDecorationRead&&Mh(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){const n=Ya(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(s=>{const i=typeof s=="string"?`${s}$`:s.key;n=n.filter(o=>!o.key.startsWith(i))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[up,op.configure({blockSeparator:(e=this.options.coreExtensionOptions)===null||e===void 0||(e=e.clipboardTextSerializer)===null||e===void 0?void 0:e.blockSeparator}),ap,dp,hp,mp.configure({value:(t=this.options.coreExtensionOptions)===null||t===void 0||(t=t.tabindex)===null||t===void 0?void 0:t.value}),cp,pp,lp,gp.configure({direction:this.options.textDirection})].filter(r=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[r.name]!==!1:!0):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r?.type));this.extensionManager=new Fr(n,this)}createCommandManager(){this.commandManager=new Ht({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Ss(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;const n=Ss(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=oi.create({doc:n,schema:this.schema,selection:ws(n,this.options.autofocus)||void 0}),this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(r=>r.name!=="collaboration"),this.createExtensionManager()}}),this.editorState.doc}return e}createView(e){const{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),s=n?this.extensionManager.dispatchTransaction(r):r,i=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(i);this.editorView=new nc(e,{...t,attributes:{role:"textbox",...t?.attributes},dispatchTransaction:s,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();const l=this.view.dom;l.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(c=>{var u;return(u=this.capturedTransaction)===null||u===void 0?void 0:u.step(c)});return}const{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),s=n.includes(e),i=this.state;
88if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!s)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=n.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),a=o?.getMeta("focus"),l=o?.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:o}),l&&this.emit("blur",{editor:this,event:l.event,transaction:o}),!(e.getMeta("preventUpdate")||!n.some(c=>c.docChanged)||i.doc.eq(t.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return Ud(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return Yd(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Ys(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` 89 90`,textSerializers:n={}}=e||{};return Kd(this.state.doc,{blockSeparator:t,textSerializers:{...el(this.schema),...n}})}get isEmpty(){return Pn(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var e,t;return(e=(t=this.editorView)===null||t===void 0?void 0:t.isDestroyed)!==null&&e!==void 0?e:!0}$node(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new yp(t,this,!1,n)}get $doc(){return this.$pos(0)}};function Pm(e){return new Rn({find:e.find,handler:({state:t,range:n,match:r})=>{const s=X(e.getAttributes,void 0,r);if(s===!1||s===null)return null;const{tr:i}=t,o=r[r.length-1],a=r[0];if(o){const l=a.search(/\S/),c=n.from+a.indexOf(o),u=c+o.length;if(tl(n.from,n.to,t.doc).filter(d=>d.mark.type.excluded.find(h=>h===e.type&&h!==d.mark.type)).filter(d=>d.to>c).length)return null;u<n.to&&i.delete(u,n.to),c>n.from&&i.delete(n.from+l,c);const f=n.from+l+o.length;i.addMark(n.from+l,f,e.type.create(s||{})),i.removeStoredMark(e.type)}},undoable:e.undoable})}function Rm(e){return new Rn({find:e.find,handler:({state:t,range:n,match:r})=>{const s=X(e.getAttributes,void 0,r)||{},{tr:i}=t,o=n.from;let a=n.to;const l=e.type.create(s);if(r[1]){let c=o+r[0].lastIndexOf(r[1]);c>a?c=a:a=c+r[1].length;const u=r[0][r[0].length-1];i.insertText(u,o+r[0].length-1),i.replaceWith(c,a,l)}else if(r[0]){const c=e.type.isInline?o:o-1;i.insert(c,e.type.create(s)).delete(i.mapping.map(o),i.mapping.map(a))}i.scrollIntoView()},undoable:e.undoable})}function Dm(e){return new Rn({find:e.find,handler:({state:t,range:n,match:r})=>{const s=t.doc.resolve(n.from),i=X(e.getAttributes,void 0,r)||{};if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)},undoable:e.undoable})}function Om(e){return new Rn({find:e.find,handler:({state:t,range:n,match:r})=>{let s=e.replace,i=n.from;const o=n.to;if(r[1]){const a=r[0].lastIndexOf(r[1]);s+=r[0].slice(a+r[1].length),i+=a;const l=i-o;l>0&&(s=r[0].slice(a-l,a)+s,i=o)}t.tr.insertText(s,i,o)},undoable:e.undoable})}function Nm(e){return new Rn({find:e.find,handler:({state:t,range:n,match:r,chain:s})=>{const i=X(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),a=o.doc.resolve(n.from).blockRange(),l=a&&Dl(a,e.type,i);if(!l)return null;if(o.wrap(a,l),e.keepMarks&&e.editor){const{selection:u,storedMarks:f}=t,{splittableMarks:d}=e.editor.extensionManager,h=f||u.$to.parentOffset&&u.$from.marks();if(h){const m=h.filter(g=>d.includes(g.type.name));o.ensureMarks(m)}}if(e.keepAttributes){const u=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";s().updateAttributes(u,i).run()}const c=o.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Ts(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&o.join(n.from-1)},undoable:e.undoable})}var Sp=e=>"touches"in e,Im=class{constructor(e){var t,n,r,s,i,o;this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=a=>{if(!this.isResizing||!this.activeHandle)return;const l=a.clientX-this.startX,c=a.clientY-this.startY;this.handleResize(l,c)},this.handleTouchMove=a=>{if(!this.isResizing||!this.activeHandle)return;const l=a.touches[0];if(!l)return;const c=l.clientX-this.startX,u=l.clientY-this.startY;this.handleResize(c,u)},this.handleMouseUp=()=>
90{if(!this.isResizing)return;const a=this.element.offsetWidth,l=this.element.offsetHeight;this.onCommit(a,l),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=a=>{a.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=a=>{a.key==="Shift"&&(this.isShiftKeyPressed=!1)},this.node=e.node,this.editor=e.editor,this.element=e.element,this.element.draggable=!1,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,!((t=e.options)===null||t===void 0)&&t.min&&(this.minSize={...this.minSize,...e.options.min}),!((n=e.options)===null||n===void 0)&&n.max&&(this.maxSize=e.options.max),!(e==null||(r=e.options)===null||r===void 0)&&r.directions&&(this.directions=e.options.directions),!((s=e.options)===null||s===void 0)&&s.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),!((i=e.options)===null||i===void 0)&&i.className&&(this.classNames={container:e.options.className.container||"",wrapper:e.options.className.wrapper||"",handle:e.options.className.handle||"",resizing:e.options.className.resizing||""}),!((o=e.options)===null||o===void 0)&&o.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var e;return(e=this.contentElement)!==null&&e!==void 0?e:null}handleEditorUpdate(){const e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,t,n){return e.type!==this.node.type?!1:(this.node=e,this.onUpdate?this.onUpdate(e,t,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const e=document.createElement("div");return e.dataset.resizeContainer="",e.dataset.node=this.node.type.name,e.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){const e=document.createElement("div");return e.style.position="relative",e.style.display="block",e.dataset.resizeWrapper="",this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){const t=document.createElement("div");return t.dataset.resizeHandle=e,t.style.position="absolute",this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){const n=t.includes("top"),r=t.includes("bottom"),s=t.includes("left"),i=t.includes("right");n&&(e.style.top="0"),r&&(e.style.bottom="0"),s&&(e.style.left="0"),i&&(e.style.right="0"),(t==="top"||t==="bottom")&&(e.style.left="0",e.style.right="0"),(t==="left"||t==="right")&&(e.style.top="0",e.style.bottom="0")}attachHandles(){this.directions.forEach(e=>{let t;this.createCustomHandle?t=this.createCustomHandle(e):t=this.createHandle(e),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener("mousedown",n=>this.handleResizeStart(n,e)),t.addEventListener("touchstart",n=>this.handleResizeStart(n,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}
90removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){const e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,Sp(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:s}=this.calculateNewDimensions(this.activeHandle,e,t),i=this.applyConstraints(r,s,n);this.element.style.width=`${i.width}px`,this.element.style.height=`${i.height}px`,this.onResize&&this.onResize(i.width,i.height)}calculateNewDimensions(e,t,n){let r=this.startWidth,s=this.startHeight;const i=e.includes("right"),o=e.includes("left"),a=e.includes("bottom"),l=e.includes("top");return i?r=this.startWidth+t:o&&(r=this.startWidth-t),a?s=this.startHeight+n:l&&(s=this.startHeight-n),(e==="right"||e==="left")&&(r=this.startWidth+(i?t:-t)),(e==="top"||e==="bottom")&&(s=this.startHeight+(a?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,s,e):{width:r,height:s}}applyConstraints(e,t,n){var r,s;if(!n){var i,o;let c=Math.max(this.minSize.width,e),u=Math.max(this.minSize.height,t);return!((i=this.maxSize)===null||i===void 0)&&i.width&&(c=Math.min(this.maxSize.width,c)),!((o=this.maxSize)===null||o===void 0)&&o.height&&(u=Math.min(this.maxSize.height,u)),{width:c,height:u}}let a=e,l=t;return a<this.minSize.width&&(a=this.minSize.width,l=a/this.aspectRatio),l<this.minSize.height&&(l=this.minSize.height,a=l*this.aspectRatio),!((r=this.maxSize)===null||r===void 0)&&r.width&&a>this.maxSize.width&&(a=this.maxSize.width,l=a/this.aspectRatio),!((s=this.maxSize)===null||s===void 0)&&s.height&&l>this.maxSize.height&&(l=this.maxSize.height,a=l*this.aspectRatio),{width:a,height:l}}applyAspectRatio(e,t,n){const r=n==="left"||n==="right",s=n==="top"||n==="bottom";return r?{width:e,height:e/this.aspectRatio}:s?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}},$m=class gl extends Zs{constructor(...t){super(...t),this.type="node"}static create(t={}){const n=typeof t=="function"?t():t;return new gl(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};function Lm(e){return new tp({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:s})=>{const i=X(e.getAttributes,void 0,r,s);if(i===!1||i===null)return null;const{tr:o}=t,a=r[r.length-1],l=r[0];let c=n.to;if(a){const u=l.search(/\S/),f=n.from+l.indexOf(a),d=f+a.length;if(tl(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(m=>m===e.type&&m!==h.mark.type)).filter(h=>h.to>f).length)return null;
90d<n.to&&o.delete(d,n.to),f>n.from&&o.delete(n.from+u,f),c=n.from+u+a.length,o.addMark(n.from+u,c,e.type.create(i||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}function fo(e){return Uo((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var Fm=class extends wp{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=fo(this.view.state),this.reactiveExtensionStorage=fo(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),Ns(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const n=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}},jm=oa({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=un(),n=bt();return ru(()=>{const r=e.editor;r&&r.options.element&&t.value&&Is(()=>{var s;if(!t.value||!(!((s=r.view.dom)===null||s===void 0)&&s.parentNode))return;const i=kr(t.value);t.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),Fs(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return Us("div",{ref:e=>{this.rootEl=e}})}});var Bm=class{constructor(e,{props:t={},editor:n}){this.destroyed=!1,this.editor=n,this.component=Ns(e),this.el=document.createElement("div"),this.props=Mr(t),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var e,t;return!((e=this.renderedComponent.vNode)===null||e===void 0||(e=e.component)===null||e===void 0)&&e.exposed?this.renderedComponent.vNode.component.exposed:(t=this.renderedComponent.vNode)===null||t===void 0||(t=t.component)===null||t===void 0?void 0:t.proxy}
90renderComponent(){if(this.destroyed)return this.renderedComponent;let e=Us(this.component,this.props);return this.editor.appContext&&(e.appContext=this.editor.appContext),typeof document<"u"&&this.el&&qi(e,this.el),{vNode:e,destroy:()=>{this.el&&qi(null,this.el),this.el=null,e=null},el:this.el?this.el.firstElementChild:null}}updateProps(e={}){this.destroyed||(Object.entries(e).forEach(([t,n])=>{this.props[t]=n}),this.renderComponent())}destroy(){this.destroyed||(this.destroyed=!0,this.renderedComponent.destroy())}};var vl=new WeakSet,yl=new WeakSet;function _t(e){const t=e;return vl.add(t),t}function Cs(e){return Array.isArray(e)&&vl.has(e)}function bl(e){return e.flatMap(t=>t==null?[]:Array.isArray(t)&&yl.has(t)&&!Cs(t)?bl(t):[t])}function xp(e,t){if(e==="slot")return 0;if(e instanceof Function){const s=e(t);return Array.isArray(s)&&!Cs(s)&&!yl.has(s)?_t(s):s}const{children:n,...r}=t??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");if(Array.isArray(n)){if(Cs(n))return _t([e,r,n]);if(n.length===0)return _t([e,r]);const s=bl(n);return s.length===0?_t([e,r]):_t([e,r,...s])}return n!=null?_t([e,r,n]):_t([e,r])}var Vm=(e,t)=>xp(e,t),zm=pe.create({name:"characterCount",addOptions(){return{limit:null,autoTrim:!0,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Se({key:new _e("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const s=this.options.limit,i=this.options.autoTrim;if(s==null||s===0||i===!1){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>s){const a=o-s,l=0,c=a;console.warn(`[CharacterCount] Initial content exceeded limit of ${s} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(l,c);return e=!0,u}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const s=this.storage.characters({node:n.doc}),i=this.storage.characters({node:t.doc});if(i<=r||s>r&&i>r&&i<=s)return!0;if(s>r&&i>r&&i>s||!t.getMeta("paste"))return!1;const o=t.selection.$head.pos,a=o-(i-r),l=o;return t.deleteRange(a,l),!(this.storage.characters({node:t.doc})>r)}})]}}),Hm=pe.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Bl(this.options)]}}),Km=pe.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Se({key:new _e("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:s}=t,i=[];if(!n||!r)return Le.create(e,[]);let o=0;this.options.mode==="deepest"&&e.descendants((l,c)=>{if(!l.isText){if(!(s>=c&&s<=c+l.nodeSize-1))return!1;o+=1}});let a=0;return e.descendants((l,c)=>{if(l.isText||!(s>=c&&s<=c+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&o-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";i.push(ks.node(c,c+l.nodeSize,{class:this.options.className}))}),Le.create(e,i)}}})]}}),Wm=pe.create({name:"gapCursor",addProseMirrorPlugins(){return[Ul()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=X(I(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),wl="placeholder",ho=new _e("tiptap__placeholder");function Sl(e){const{editor:t,placeholder:n,dataAttribute:r,pos:s,node:i,isEmptyDoc:o,hasAnchor:a,classes:{emptyNode:l,emptyEditor:c}}=e,u=[l];return o&&u.push(c),ks.node(s,s+i.nodeSize,{class:u.join(" "),[r]:typeof n=="function"?n({editor:t,node:i,pos:s,hasAnchor:a}):n})}function xl(e,t){return typeof e=="function"?e(t):e}function El({editor:e,options:t,dataAttribute:n,doc:r,selection:s,from:i,to:o}){const{anchor:a}=s,l=[],c=e.isEmpty;return r.nodesBetween(i,o,(u,f)=>{const d=a>=f&&a<=f+u.nodeSize,h=!u.isLeaf&&Pn(u);
90return u.type.isTextblock&&(d||!t.showOnlyCurrent)&&h&&l.push(Sl({editor:e,isEmptyDoc:c,dataAttribute:n,hasAnchor:d,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:xl(t.emptyNodeClass,{editor:e,node:u,pos:f,hasAnchor:d})},node:u,pos:f})),t.includeChildren}),l}function Cl({editor:e,options:t,dataAttribute:n,doc:r,selection:s}){if(!(e.isEditable||!t.showOnlyWhenEditable))return null;const{anchor:i}=s,o=[],a=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){const l=r.resolve(i),c=l.depth>0?l.node(1):l.nodeAfter,u=l.depth>0?l.before(1):i;if(c&&c.type.isTextblock&&Pn(c)){const f=i>=u&&i<=u+c.nodeSize;o.push(Sl({editor:e,isEmptyDoc:a,dataAttribute:n,hasAnchor:f,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:xl(t.emptyNodeClass,{editor:e,node:c,pos:u,hasAnchor:f})},node:c,pos:u}))}}else o.push(...El({editor:e,options:t,dataAttribute:n,doc:r,selection:s,from:0,to:r.content.size}));return Le.create(r,o)}function pn(e,t){const n=e.resolve(t);if(n.depth===0){var r;const i=(r=n.nodeAfter)!==null&&r!==void 0?r:n.nodeBefore;if(!i)return{from:t,to:t};const o=n.nodeAfter?t:t-i.nodeSize;return{from:o,to:o+i.nodeSize}}const s=n.before(1);return{from:s,to:s+n.node(1).nodeSize}}function mn(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function Ep(e,t,n){const r=[];return e.forEach((s,i)=>{const o=i,a=o+s.nodeSize,l=o+1,c=a+1;l<n&&c>t&&r.push({from:o,to:a})}),r}function Cp(e){if(e.length===0)return[];const t=[...e].sort((r,s)=>r.from-s.from),n=[{...t[0]}];for(let r=1;r<t.length;r+=1){const s=n[n.length-1],i=t[r];i.from<=s.to?s.to=Math.max(s.to,i.to):n.push({...i})}return n}function Mp(e,t){const n=Ep(e,t.from,t.to);return n.push(mn(e,pn(e,t.from))),t.to>t.from?n.push(mn(e,pn(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(mn(e,pn(e,Math.min(t.from+1,e.content.size)))),n}function _p(e,t,n){const r=[];if(e.docChanged){const s=Xs(e);for(const i of s)r.push(...Mp(n.doc,i.newRange))}return e.selectionSet&&(r.push(mn(n.doc,pn(n.doc,e.mapping.map(t.selection.anchor)))),r.push(mn(n.doc,pn(n.doc,n.selection.anchor)))),Cp(r)}function Tp(e,t,n){const r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function kp({decorations:e,ranges:t,editor:n,options:r,dataAttribute:s,doc:i,selection:o}){let a=e;for(const l of t){const{from:c,to:u}=Tp(l.from,l.to,i),f=a.find(c,u).filter(h=>h.from>=c&&h.to<=u);f.length&&(a=a.remove(f));const d=El({editor:n,options:r,dataAttribute:s,doc:i,selection:o,from:c,to:u});d.length&&(a=a.add(i,d))}return a}function Ap({editor:e,options:t,dataAttribute:n}){return{init(r,s){const i=Cl({editor:e,options:t,dataAttribute:n,doc:s.doc,selection:s.selection});return i??Le.empty},apply(r,s,i,o){return!r.docChanged&&!r.selectionSet?s:kp({decorations:s.map(r.mapping,r.doc),ranges:_p(r,i,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function Pp(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}function Rp({editor:e,options:t}){const n=t.dataAttribute?`data-${Pp(t.dataAttribute)}`:`data-${wl}`,r=t.showOnlyCurrent&&!t.includeChildren;return new Se({key:ho,...r?{}:{state:Ap({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:s,selection:i})=>Cl({editor:e,options:t,dataAttribute:n,doc:s,selection:i}):s=>{var i;return t.showOnlyWhenEditable&&!e.isEditable?Le.empty:(i=ho.getState(s))!==null&&i!==void 0?i:Le.empty}}})}var Um=pe.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:wl,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[Rp({editor:this.editor,options:this.options})]}});function Ms(e,t){return!e.selection.empty&&!Xd(e.selection)&&t.isEditable}function Dp(e,t){return Ms(e,t)&&!t.isFocused&&!t.view.dragging}function Op(){var e;(e=window.getSelection())===null||e===void 0||e.removeAllRanges()}function Np(e){e.focus()}var qm=pe.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new Se({key:new _e("selection"),props:{decorations(n){return Dp(n,e)?Le.create(n.doc,[ks.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(n){return Ms(n.state,e)&&Op(),!1},focus(n){return Ms(n.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&n.hasFocus()&&Np(n)}),!1}}}})]}});function po({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var Gm=pe.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const t=new _e(this.name),n=this.options.node||((e=this.editor.schema.topNodeType.contentMatch.defaultType)===null||e===void 0?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,s])=>s).filter(s=>(this.options.notAfter||[]).concat(n).includes(s.name));return[new Se({key:t,appendTransaction:(s,i,o)=>{const{doc:a,tr:l,schema:c}=o,u=t.getState(o),f=a.content.size,d=c.nodes[n];if(!s.some(h=>h.getMeta("skipTrailingNode"))&&u)return l.insert(f,d.create())},state:{init:(s,i)=>{const o=i.tr.doc.lastChild;return!po({node:o,types:r})},apply:(s,i)=>{if(!s.docChanged||s.getMeta("__uniqueIDTransaction"))return i;const o=s.doc.lastChild;return!po({node:o,types:r})}}})]}}),Jm=pe.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>Zl(e,t),redo:()=>({state:e,dispatch:t})=>Yl(e,t)}},addProseMirrorPlugins(){return[tc(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}});
90export{vm as $,cs as $t,el as A,eu as At,Cm as B,Gr as Bt,tl as C,Qu as Ct,fr as D,la as Dt,Sm as E,Fs as Et,Pm as F,im as Ft,um as G,Fp as Gt,Om as H,Zc as Ht,Lm as I,Gp as It,hm as J,lt as Jt,ym as K,wc as Kt,Bd as L,am as Lt,Em as M,rm as Mt,Cn as N,Zp as Nt,_m as O,js as Ot,za as P,em as Pt,fm as Q,Mr as Qt,Rm as R,sm as Rt,Xs as S,om as St,he as T,gu as Tt,Dm as U,Wp as Ut,Am as V,ru as Vt,Nm as W,Uo as Wt,mm as X,Ns as Xt,pm as Y,ue as Yt,dm as Z,jp as Zt,$d as _,Ju as _t,Gm as a,Kp as an,lf as at,bm as b,qn as bt,Fm as c,Vp as cn,Xu as ct,pe as d,$p as dn,cm as dt,un as en,gm as et,Rn as f,wr as fn,Yu as ft,Im as g,bt as gt,tp as h,oa as ht,Um as i,G as in,vt as it,xm as j,tm as jt,Kd as k,vs as kt,jm as l,kr as ln,lm as lt,$m as m,Qp as mt,Hm as n,Bp as nn,Ae as nt,Jm as o,Hp as on,Ra as ot,ep as p,bc as pn,de as pt,qi as q,Rt as qt,Wm as r,Bc as rn,qp as rt,Vm as s,zp as sn,ys as st,zm as t,jc as tn,be as tt,Bm as u,Sr as un,nm as ut,Tm as v,Us as vt,wm as w,Is as wt,Ud as x,Sn as xt,Mm as y,Up as yt,km as z,Jp as zt}; 91 92//# sourceMappingURL=tiptap.BdaQ6C40.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.