@beterdichtbij/component-library 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("vue"),mf=f.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(n){const e=n,t=f.computed(()=>({col:!e.cols&&!e.xs&&!e.sm&&!e.md&&!e.lg&&!e.xxl,[`col-${e.cols}`]:e.cols,[`col-xs-${e.xs}`]:e.xs,[`col-sm-${e.sm}`]:e.sm,[`col-md-${e.md}`]:e.md,[`col-lg-${e.lg}`]:e.lg,[`col-xxl-${e.xxl}`]:e.xxl,[`${e.orderClass}`]:e.orderClass,[`${e.offsetClass}`]:e.offsetClass,[`${e.class}`]:e.class}));return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(t.value)},[f.renderSlot(r.$slots,"default")],2))}}),gf=f.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(t.value)},[f.renderSlot(r.$slots,"default")],2))}}),vf=f.defineComponent({__name:"BDRow",props:{class:{}},setup(n){return(e,t)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["row",e.class])},[f.renderSlot(e.$slots,"default")],2))}}),at={XS:"xs",SM:"sm",MD:"md",LG:"lg"},Be=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Lm={},Rm={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pm=f.createElementVNode("rect",{width:"40",height:"40",rx:"20",fill:"none"},null,-1),Bm=f.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z",fill:"#394156"},null,-1),$m=[Pm,Bm];function Fm(n,e){return f.openBlock(),f.createElementBlock("svg",Rm,$m)}const yf=Be(Lm,[["render",Fm]]),Vm={},zm=f.createElementVNode("svg",{class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})])],-1);function Hm(n,e){return f.openBlock(),f.createElementBlock(f.Fragment,null,[zm,f.createTextVNode(" >")],64)}const bf=Be(Vm,[["render",Hm]]),Um={},jm={viewBox:"0 0 20 20",class:"icon",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Wm=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Km=[Wm];function Gm(n,e){return f.openBlock(),f.createElementBlock("svg",jm,Km)}const Ef=Be(Um,[["render",Gm]]),Ym={},Jm={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},Zm=f.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1),Xm=[Zm];function Qm(n,e){return f.openBlock(),f.createElementBlock("svg",Jm,Xm)}const cr=Be(Ym,[["render",Qm]]),qm={},e1={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},t1=f.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1),n1=[t1];function r1(n,e){return f.openBlock(),f.createElementBlock("svg",e1,n1)}const Nl=Be(qm,[["render",r1]]),o1={},i1={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},s1=f.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1),a1=[s1];function l1(n,e){return f.openBlock(),f.createElementBlock("svg",i1,a1)}const Il=Be(o1,[["render",l1]]),c1={},u1={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},d1=f.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1),f1=[d1];function h1(n,e){return f.openBlock(),f.createElementBlock("svg",u1,f1)}const Wa=Be(c1,[["render",h1]]),p1={},m1={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},g1=f.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1),v1=[g1];function y1(n,e){return f.openBlock(),f.createElementBlock("svg",m1,v1)}const Cf=Be(p1,[["render",y1]]),b1={},E1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},C1=f.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1),S1=[C1];function w1(n,e){return f.openBlock(),f.createElementBlock("svg",E1,S1)}const Dl=Be(b1,[["render",w1]]),x1={},T1={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},k1=f.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1),A1=[k1];function O1(n,e){return f.openBlock(),f.createElementBlock("svg",T1,A1)}const _l=Be(x1,[["render",O1]]),M1={},N1={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},I1=f.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1),D1=[I1];function _1(n,e){return f.openBlock(),f.createElementBlock("svg",N1,D1)}const Ll=Be(M1,[["render",_1]]),L1={},R1={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},P1=f.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1),B1=[P1];function $1(n,e){return f.openBlock(),f.createElementBlock("svg",R1,B1)}const Bo=Be(L1,[["render",$1]]),F1={},V1={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},z1=f.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1),H1=[z1];function U1(n,e){return f.openBlock(),f.createElementBlock("svg",V1,H1)}const ws=Be(F1,[["render",U1]]),j1={},W1={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"},K1=f.createStaticVNode('<g transform="matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"><path d="M11.250 17.250 A6.000 6.000 0 1 0 23.250 17.250 A6.000 6.000 0 1 0 11.250 17.250 Z" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 14.25L17.25 20.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L15 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L19.5 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.25,20.25h-6a1.5,1.5,0,0,1-1.5-1.5V2.25A1.5,1.5,0,0,1,2.25.75H12.879a1.5,1.5,0,0,1,1.06.439l2.872,2.872a1.5,1.5,0,0,1,.439,1.06V8.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M5.25,5.625A.375.375,0,1,1,4.875,6a.375.375,0,0,1,.375-.375" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12.085,9.586,11.25,8.25a.749.749,0,0,0-1.238-.014l-2,2.851L6.78,10.1a.75.75,0,0,0-1.093.169L3.75,14.25h4.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1),G1=[K1];function Y1(n,e){return f.openBlock(),f.createElementBlock("svg",W1,G1)}const Ei=Be(j1,[["render",Y1]]),J1={},Z1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"},X1=f.createElementVNode("path",{d:"M8.967 3.528L8.94 3.5 10 2.44l.028.027L12.025.47a.75.75 0 0 1 1.06 0l4.445 4.444a.75.75 0 0 1 0 1.06L5.975 17.53a.75.75 0 0 1-.53.22H1A.75.75 0 0 1 .25 17v-4.444a.75.75 0 0 1 .22-.53l8.497-8.498zm1.06 1.06L1.75 12.866v3.384h3.384l8.278-8.278-3.384-3.384zm1.061-1.06l3.384 3.384 1.467-1.468-3.383-3.383-1.468 1.467z"},null,-1),Q1=[X1];function q1(n,e){return f.openBlock(),f.createElementBlock("svg",Z1,Q1)}const Sf=Be(J1,[["render",q1]]),eg={},tg={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},ng=f.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.542-7.01l.102-7.654h-1.42l.094 7.654h1.224zm-1.37 2.329c0 .22.067.401.201.546.135.144.334.216.597.216.264 0 .464-.072.6-.216a.761.761 0 0 0 .206-.546.787.787 0 0 0-.205-.553c-.137-.15-.337-.224-.6-.224-.264 0-.463.075-.598.224a.795.795 0 0 0-.201.553z"},null,-1),rg=[ng];function og(n,e){return f.openBlock(),f.createElementBlock("svg",tg,rg)}const xs=Be(eg,[["render",og]]),ig={},sg={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"},ag=f.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0001 5.25C9.22586 5.25 6.79699 6.91121 5.12801 8.44832C4.28012 9.22922 3.59626 10.0078 3.12442 10.5906C2.88804 10.8825 2.70368 11.1268 2.57736 11.2997C2.51417 11.3862 2.46542 11.4549 2.43187 11.5029C2.41509 11.5269 2.4021 11.5457 2.393 11.559L2.38227 11.5747L2.37911 11.5794L2.10547 12.0132L2.37809 12.4191L2.37911 12.4206L2.38227 12.4253L2.393 12.441C2.4021 12.4543 2.41509 12.4731 2.43187 12.4971C2.46542 12.5451 2.51417 12.6138 2.57736 12.7003C2.70368 12.8732 2.88804 13.1175 3.12442 13.4094C3.59626 13.9922 4.28012 14.7708 5.12801 15.5517C6.79699 17.0888 9.22586 18.75 12.0001 18.75C14.7743 18.75 17.2031 17.0888 18.8721 15.5517C19.72 14.7708 20.4039 13.9922 20.8757 13.4094C21.1121 13.1175 21.2964 12.8732 21.4228 12.7003C21.4859 12.6138 21.5347 12.5451 21.5682 12.4971C21.585 12.4731 21.598 12.4543 21.6071 12.441L21.6178 12.4253L21.621 12.4206L21.6224 12.4186L21.9035 12L21.622 11.5809L21.621 11.5794L21.6178 11.5747L21.6071 11.559C21.598 11.5457 21.585 11.5269 21.5682 11.5029C21.5347 11.4549 21.4859 11.3862 21.4228 11.2997C21.2964 11.1268 21.1121 10.8825 20.8757 10.5906C20.4039 10.0078 19.72 9.22922 18.8721 8.44832C17.2031 6.91121 14.7743 5.25 12.0001 5.25ZM4.29022 12.4656C4.14684 12.2885 4.02478 12.1311 3.92575 12C4.02478 11.8689 4.14684 11.7115 4.29022 11.5344C4.72924 10.9922 5.36339 10.2708 6.14419 9.55168C7.73256 8.08879 9.80369 6.75 12.0001 6.75C14.1964 6.75 16.2676 8.08879 17.8559 9.55168C18.6367 10.2708 19.2709 10.9922 19.7099 11.5344C19.8533 11.7115 19.9753 11.8689 20.0744 12C19.9753 12.1311 19.8533 12.2885 19.7099 12.4656C19.2709 13.0078 18.6367 13.7292 17.8559 14.4483C16.2676 15.9112 14.1964 17.25 12.0001 17.25C9.80369 17.25 7.73256 15.9112 6.14419 14.4483C5.36339 13.7292 4.72924 13.0078 4.29022 12.4656ZM14.25 12C14.25 13.2426 13.2427 14.25 12 14.25C10.7574 14.25 9.75005 13.2426 9.75005 12C9.75005 10.7574 10.7574 9.75 12 9.75C13.2427 9.75 14.25 10.7574 14.25 12ZM15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92898 15.75 8.25005 14.0711 8.25005 12C8.25005 9.92893 9.92898 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12Z",fill:"#080341"},null,-1),lg=[ag];function cg(n,e){return f.openBlock(),f.createElementBlock("svg",sg,lg)}const wf=Be(ig,[["render",cg]]),ug={},dg={fill:"#000000",width:"30px",height:"30px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-slash"},fg=f.createElementVNode("path",{d:"M18.822 22.904c-5.215 1.275-10.524-1.051-15.818-6.904 1.337-1.501 2.79-2.843 4.364-4.034l0.076-0.055c0.186-0.138 0.305-0.357 0.305-0.604 0-0.414-0.336-0.75-0.75-0.75-0.166 0-0.32 0.054-0.444 0.146l0.002-0.001c-1.91 1.447-3.588 3.024-5.086 4.761l-0.036 0.042c-0.115 0.131-0.185 0.305-0.185 0.494s0.070 0.363 0.186 0.495l-0.001-0.001c4.803 5.488 9.693 8.254 14.582 8.254 1.123-0.001 2.212-0.142 3.252-0.406l-0.092 0.020c0.332-0.082 0.573-0.377 0.573-0.729 0-0.414-0.336-0.75-0.75-0.75-0.064 0-0.125 0.008-0.184 0.023l0.005-0.001zM16.75 20c-0-0.414-0.336-0.75-0.75-0.75v0c-1.794-0.002-3.248-1.456-3.25-3.25v-0c0-0.414-0.336-0.75-0.75-0.75s-0.75 0.336-0.75 0.75v0c0.003 2.622 2.128 4.747 4.75 4.75h0c0.414-0 0.75-0.336 0.75-0.75v0zM23.565 22.503c2.701-1.672 5.010-3.665 6.965-5.967l0.034-0.042c0.116-0.131 0.186-0.304 0.186-0.494s-0.070-0.363-0.187-0.495l0.001 0.001c-6.844-7.82-13.822-10.081-20.758-6.76l-7.277-7.276c-0.135-0.131-0.32-0.212-0.523-0.212-0.414 0-0.75 0.336-0.75 0.75 0 0.203 0.081 0.388 0.213 0.523l27.999 28.001c0.136 0.136 0.324 0.22 0.531 0.22 0.415 0 0.751-0.336 0.751-0.751 0-0.207-0.084-0.395-0.22-0.531v0zM28.996 16c-1.852 2.121-4.004 3.919-6.402 5.345l-0.121 0.067-2.636-2.635c0.569-0.767 0.911-1.731 0.912-2.776v-0c-0.003-2.622-2.128-4.747-4.75-4.75h-0c-1.045 0.002-2.009 0.344-2.789 0.921l0.013-0.009-2.29-2.29c6.027-2.647 11.95-0.64 18.062 6.127zM14.301 13.239c0.486-0.307 1.077-0.489 1.711-0.489 1.788 0 3.238 1.45 3.238 3.238 0 0.634-0.182 1.225-0.497 1.724l0.008-0.013z"},null,-1),hg=[fg];function pg(n,e){return f.openBlock(),f.createElementBlock("svg",dg,hg)}const xf=Be(ug,[["render",pg]]),mg={},gg={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{"enable-background":"new 0 0 24 24"},"xml:space":"preserve",class:"icon icon-file"},vg=f.createElementVNode("title",null,"common-file-empty",-1),yg=f.createElementVNode("g",null,[f.createElementVNode("path",{d:`M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("vue"),mf=f.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(n){const e=n,t=f.computed(()=>({col:!e.cols&&!e.xs&&!e.sm&&!e.md&&!e.lg&&!e.xxl,[`col-${e.cols}`]:e.cols,[`col-xs-${e.xs}`]:e.xs,[`col-sm-${e.sm}`]:e.sm,[`col-md-${e.md}`]:e.md,[`col-lg-${e.lg}`]:e.lg,[`col-xxl-${e.xxl}`]:e.xxl,[`${e.orderClass}`]:e.orderClass,[`${e.offsetClass}`]:e.offsetClass,[`${e.class}`]:e.class}));return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(t.value)},[f.renderSlot(r.$slots,"default")],2))}}),gf=f.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(t.value)},[f.renderSlot(r.$slots,"default")],2))}}),vf=f.defineComponent({__name:"BDRow",props:{class:{}},setup(n){return(e,t)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["row",e.class])},[f.renderSlot(e.$slots,"default")],2))}}),at={XS:"xs",SM:"sm",MD:"md",LG:"lg"},Re=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Rm={},Pm={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bm=f.createElementVNode("rect",{width:"40",height:"40",rx:"20",fill:"none"},null,-1),$m=f.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z",fill:"#394156"},null,-1),Fm=[Bm,$m];function Vm(n,e){return f.openBlock(),f.createElementBlock("svg",Pm,Fm)}const yf=Re(Rm,[["render",Vm]]),zm={},Hm=f.createElementVNode("svg",{class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})])],-1);function Um(n,e){return f.openBlock(),f.createElementBlock(f.Fragment,null,[Hm,f.createTextVNode(" >")],64)}const bf=Re(zm,[["render",Um]]),jm={},Wm={viewBox:"0 0 20 20",class:"icon",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Km=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Gm=[Km];function Ym(n,e){return f.openBlock(),f.createElementBlock("svg",Wm,Gm)}const Ef=Re(jm,[["render",Ym]]),Jm={},Zm={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},Xm=f.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1),Qm=[Xm];function qm(n,e){return f.openBlock(),f.createElementBlock("svg",Zm,Qm)}const cr=Re(Jm,[["render",qm]]),e1={},t1={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},n1=f.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1),r1=[n1];function o1(n,e){return f.openBlock(),f.createElementBlock("svg",t1,r1)}const Nl=Re(e1,[["render",o1]]),i1={},s1={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},a1=f.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1),l1=[a1];function c1(n,e){return f.openBlock(),f.createElementBlock("svg",s1,l1)}const Il=Re(i1,[["render",c1]]),u1={},d1={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},f1=f.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1),h1=[f1];function p1(n,e){return f.openBlock(),f.createElementBlock("svg",d1,h1)}const Wa=Re(u1,[["render",p1]]),m1={},g1={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},v1=f.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1),y1=[v1];function b1(n,e){return f.openBlock(),f.createElementBlock("svg",g1,y1)}const Cf=Re(m1,[["render",b1]]),E1={},C1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},S1=f.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1),w1=[S1];function x1(n,e){return f.openBlock(),f.createElementBlock("svg",C1,w1)}const Dl=Re(E1,[["render",x1]]),T1={},k1={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},A1=f.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1),O1=[A1];function M1(n,e){return f.openBlock(),f.createElementBlock("svg",k1,O1)}const _l=Re(T1,[["render",M1]]),N1={},I1={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},D1=f.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1),_1=[D1];function L1(n,e){return f.openBlock(),f.createElementBlock("svg",I1,_1)}const Ll=Re(N1,[["render",L1]]),R1={},P1={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},B1=f.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1),$1=[B1];function F1(n,e){return f.openBlock(),f.createElementBlock("svg",P1,$1)}const Bo=Re(R1,[["render",F1]]),V1={},z1={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},H1=f.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1),U1=[H1];function j1(n,e){return f.openBlock(),f.createElementBlock("svg",z1,U1)}const ws=Re(V1,[["render",j1]]),W1={},K1={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"},G1=f.createStaticVNode('<g transform="matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"><path d="M11.250 17.250 A6.000 6.000 0 1 0 23.250 17.250 A6.000 6.000 0 1 0 11.250 17.250 Z" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 14.25L17.25 20.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L15 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L19.5 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.25,20.25h-6a1.5,1.5,0,0,1-1.5-1.5V2.25A1.5,1.5,0,0,1,2.25.75H12.879a1.5,1.5,0,0,1,1.06.439l2.872,2.872a1.5,1.5,0,0,1,.439,1.06V8.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M5.25,5.625A.375.375,0,1,1,4.875,6a.375.375,0,0,1,.375-.375" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12.085,9.586,11.25,8.25a.749.749,0,0,0-1.238-.014l-2,2.851L6.78,10.1a.75.75,0,0,0-1.093.169L3.75,14.25h4.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1),Y1=[G1];function J1(n,e){return f.openBlock(),f.createElementBlock("svg",K1,Y1)}const Ei=Re(W1,[["render",J1]]),Z1={},X1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"},Q1=f.createElementVNode("path",{d:"M8.967 3.528L8.94 3.5 10 2.44l.028.027L12.025.47a.75.75 0 0 1 1.06 0l4.445 4.444a.75.75 0 0 1 0 1.06L5.975 17.53a.75.75 0 0 1-.53.22H1A.75.75 0 0 1 .25 17v-4.444a.75.75 0 0 1 .22-.53l8.497-8.498zm1.06 1.06L1.75 12.866v3.384h3.384l8.278-8.278-3.384-3.384zm1.061-1.06l3.384 3.384 1.467-1.468-3.383-3.383-1.468 1.467z"},null,-1),q1=[Q1];function eg(n,e){return f.openBlock(),f.createElementBlock("svg",X1,q1)}const Sf=Re(Z1,[["render",eg]]),tg={},ng={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},rg=f.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.542-7.01l.102-7.654h-1.42l.094 7.654h1.224zm-1.37 2.329c0 .22.067.401.201.546.135.144.334.216.597.216.264 0 .464-.072.6-.216a.761.761 0 0 0 .206-.546.787.787 0 0 0-.205-.553c-.137-.15-.337-.224-.6-.224-.264 0-.463.075-.598.224a.795.795 0 0 0-.201.553z"},null,-1),og=[rg];function ig(n,e){return f.openBlock(),f.createElementBlock("svg",ng,og)}const xs=Re(tg,[["render",ig]]),sg={},ag={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"},lg=f.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0001 5.25C9.22586 5.25 6.79699 6.91121 5.12801 8.44832C4.28012 9.22922 3.59626 10.0078 3.12442 10.5906C2.88804 10.8825 2.70368 11.1268 2.57736 11.2997C2.51417 11.3862 2.46542 11.4549 2.43187 11.5029C2.41509 11.5269 2.4021 11.5457 2.393 11.559L2.38227 11.5747L2.37911 11.5794L2.10547 12.0132L2.37809 12.4191L2.37911 12.4206L2.38227 12.4253L2.393 12.441C2.4021 12.4543 2.41509 12.4731 2.43187 12.4971C2.46542 12.5451 2.51417 12.6138 2.57736 12.7003C2.70368 12.8732 2.88804 13.1175 3.12442 13.4094C3.59626 13.9922 4.28012 14.7708 5.12801 15.5517C6.79699 17.0888 9.22586 18.75 12.0001 18.75C14.7743 18.75 17.2031 17.0888 18.8721 15.5517C19.72 14.7708 20.4039 13.9922 20.8757 13.4094C21.1121 13.1175 21.2964 12.8732 21.4228 12.7003C21.4859 12.6138 21.5347 12.5451 21.5682 12.4971C21.585 12.4731 21.598 12.4543 21.6071 12.441L21.6178 12.4253L21.621 12.4206L21.6224 12.4186L21.9035 12L21.622 11.5809L21.621 11.5794L21.6178 11.5747L21.6071 11.559C21.598 11.5457 21.585 11.5269 21.5682 11.5029C21.5347 11.4549 21.4859 11.3862 21.4228 11.2997C21.2964 11.1268 21.1121 10.8825 20.8757 10.5906C20.4039 10.0078 19.72 9.22922 18.8721 8.44832C17.2031 6.91121 14.7743 5.25 12.0001 5.25ZM4.29022 12.4656C4.14684 12.2885 4.02478 12.1311 3.92575 12C4.02478 11.8689 4.14684 11.7115 4.29022 11.5344C4.72924 10.9922 5.36339 10.2708 6.14419 9.55168C7.73256 8.08879 9.80369 6.75 12.0001 6.75C14.1964 6.75 16.2676 8.08879 17.8559 9.55168C18.6367 10.2708 19.2709 10.9922 19.7099 11.5344C19.8533 11.7115 19.9753 11.8689 20.0744 12C19.9753 12.1311 19.8533 12.2885 19.7099 12.4656C19.2709 13.0078 18.6367 13.7292 17.8559 14.4483C16.2676 15.9112 14.1964 17.25 12.0001 17.25C9.80369 17.25 7.73256 15.9112 6.14419 14.4483C5.36339 13.7292 4.72924 13.0078 4.29022 12.4656ZM14.25 12C14.25 13.2426 13.2427 14.25 12 14.25C10.7574 14.25 9.75005 13.2426 9.75005 12C9.75005 10.7574 10.7574 9.75 12 9.75C13.2427 9.75 14.25 10.7574 14.25 12ZM15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92898 15.75 8.25005 14.0711 8.25005 12C8.25005 9.92893 9.92898 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12Z",fill:"#080341"},null,-1),cg=[lg];function ug(n,e){return f.openBlock(),f.createElementBlock("svg",ag,cg)}const wf=Re(sg,[["render",ug]]),dg={},fg={fill:"#000000",width:"30px",height:"30px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-slash"},hg=f.createElementVNode("path",{d:"M18.822 22.904c-5.215 1.275-10.524-1.051-15.818-6.904 1.337-1.501 2.79-2.843 4.364-4.034l0.076-0.055c0.186-0.138 0.305-0.357 0.305-0.604 0-0.414-0.336-0.75-0.75-0.75-0.166 0-0.32 0.054-0.444 0.146l0.002-0.001c-1.91 1.447-3.588 3.024-5.086 4.761l-0.036 0.042c-0.115 0.131-0.185 0.305-0.185 0.494s0.070 0.363 0.186 0.495l-0.001-0.001c4.803 5.488 9.693 8.254 14.582 8.254 1.123-0.001 2.212-0.142 3.252-0.406l-0.092 0.020c0.332-0.082 0.573-0.377 0.573-0.729 0-0.414-0.336-0.75-0.75-0.75-0.064 0-0.125 0.008-0.184 0.023l0.005-0.001zM16.75 20c-0-0.414-0.336-0.75-0.75-0.75v0c-1.794-0.002-3.248-1.456-3.25-3.25v-0c0-0.414-0.336-0.75-0.75-0.75s-0.75 0.336-0.75 0.75v0c0.003 2.622 2.128 4.747 4.75 4.75h0c0.414-0 0.75-0.336 0.75-0.75v0zM23.565 22.503c2.701-1.672 5.010-3.665 6.965-5.967l0.034-0.042c0.116-0.131 0.186-0.304 0.186-0.494s-0.070-0.363-0.187-0.495l0.001 0.001c-6.844-7.82-13.822-10.081-20.758-6.76l-7.277-7.276c-0.135-0.131-0.32-0.212-0.523-0.212-0.414 0-0.75 0.336-0.75 0.75 0 0.203 0.081 0.388 0.213 0.523l27.999 28.001c0.136 0.136 0.324 0.22 0.531 0.22 0.415 0 0.751-0.336 0.751-0.751 0-0.207-0.084-0.395-0.22-0.531v0zM28.996 16c-1.852 2.121-4.004 3.919-6.402 5.345l-0.121 0.067-2.636-2.635c0.569-0.767 0.911-1.731 0.912-2.776v-0c-0.003-2.622-2.128-4.747-4.75-4.75h-0c-1.045 0.002-2.009 0.344-2.789 0.921l0.013-0.009-2.29-2.29c6.027-2.647 11.95-0.64 18.062 6.127zM14.301 13.239c0.486-0.307 1.077-0.489 1.711-0.489 1.788 0 3.238 1.45 3.238 3.238 0 0.634-0.182 1.225-0.497 1.724l0.008-0.013z"},null,-1),pg=[hg];function mg(n,e){return f.openBlock(),f.createElementBlock("svg",fg,pg)}const xf=Re(dg,[["render",mg]]),gg={},vg={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{"enable-background":"new 0 0 24 24"},"xml:space":"preserve",class:"icon icon-file"},yg=f.createElementVNode("title",null,"common-file-empty",-1),bg=f.createElementVNode("g",null,[f.createElementVNode("path",{d:`M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
2
2
  c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5
3
3
  c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883
4
- C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1),bg=[vg,yg];function Eg(n,e){return f.openBlock(),f.createElementBlock("svg",gg,bg)}const Rl=Be(mg,[["render",Eg]]),Cg={},Sg={class:"icon icon-hyperlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 20 20",width:"20",height:"20"},wg=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"}),f.createElementVNode("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1),xg=[wg];function Tg(n,e){return f.openBlock(),f.createElementBlock("svg",Sg,xg)}const Pl=Be(Cg,[["render",Tg]]),kg={},Ag={class:"icon icon-info",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Og=f.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.498-4V6.075H8.143V14h1.355zM8.033 3.973c0 .22.067.403.201.55.134.146.333.22.597.22.264 0 .464-.074.6-.22a.774.774 0 0 0 .206-.55.8.8 0 0 0-.205-.556c-.137-.152-.337-.228-.6-.228-.265 0-.464.076-.598.228a.809.809 0 0 0-.201.556z"},null,-1),Mg=[Og];function Ng(n,e){return f.openBlock(),f.createElementBlock("svg",Ag,Mg)}const Ts=Be(kg,[["render",Ng]]),Ig={},Dg={width:"12",height:"14",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-italic"},_g=f.createElementVNode("path",{d:"M12 0.75C12 1.1875 11.6562 1.5 11.25 1.5H9.125L4.53125 12.5H7.25C7.65625 12.5 8 12.8438 8 13.25C8 13.6875 7.65625 14 7.25 14H0.75C0.3125 14 0 13.6875 0 13.25C0 12.8438 0.3125 12.5 0.75 12.5H2.9375L7.53125 1.5H4.75C4.3125 1.5 4 1.1875 4 0.75C4 0.34375 4.3125 0 4.75 0H11.25C11.6562 0 12 0.34375 12 0.75Z"},null,-1),Lg=[_g];function Rg(n,e){return f.openBlock(),f.createElementBlock("svg",Dg,Lg)}const Bl=Be(Ig,[["render",Rg]]),Pg={},Bg={class:"icon icon-list-view",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$g=f.createElementVNode("path",{d:"M0 2.625V16.375C0 17.4297 0.820312 18.25 1.875 18.25H18.125C19.1406 18.25 20 17.4297 20 16.375V2.625C20 1.60938 19.1406 0.75 18.125 0.75H1.875C0.820312 0.75 0 1.60938 0 2.625ZM18.4375 11.375H7.69531V7.625H18.4375V11.375ZM18.4375 12.9375V16.2188C18.4375 16.4922 18.2031 16.6875 17.9688 16.6875H7.69531V12.9375H18.4375ZM1.5625 7.625H6.13281V11.375H1.5625V7.625ZM7.69531 6.0625V2.3125H17.9688C18.2031 2.3125 18.4375 2.54688 18.4375 2.78125V6.0625H7.69531ZM6.13281 2.3125V6.0625H1.5625V2.78125C1.5625 2.54688 1.75781 2.3125 2.03125 2.3125H6.13281ZM1.5625 12.9375H6.13281V16.6875H2.03125C1.75781 16.6875 1.5625 16.4922 1.5625 16.2188V12.9375Z",fill:"#394156"},null,-1),Fg=[$g];function Vg(n,e){return f.openBlock(),f.createElementBlock("svg",Bg,Fg)}const Tf=Be(Pg,[["render",Vg]]),zg={},Hg={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},Ug=f.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1),jg=[Ug];function Wg(n,e){return f.openBlock(),f.createElementBlock("svg",Hg,jg)}const Ci=Be(zg,[["render",Wg]]),Kg={},Gg={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},Yg=f.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1),Jg=[Yg];function Zg(n,e){return f.openBlock(),f.createElementBlock("svg",Gg,Jg)}const $l=Be(Kg,[["render",Zg]]),Xg={},Qg={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},qg=f.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1),e0=[qg];function t0(n,e){return f.openBlock(),f.createElementBlock("svg",Qg,e0)}const $o=Be(Xg,[["render",t0]]),n0={},r0={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},o0=f.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1),i0=[o0];function s0(n,e){return f.openBlock(),f.createElementBlock("svg",r0,i0)}const Fl=Be(n0,[["render",s0]]),a0={},l0=f.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2),c0=[l0];function u0(n,e){return f.openBlock(),f.createElementBlock("svg",f.mergeProps({class:"bd-logo"},n.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),c0,16)}const Vl=Be(a0,[["render",u0]]),Zc=/^https:/i,zr=f.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(n){const e=n,t=f.computed(()=>typeof e.to=="string"&&Zc.test(e.to)?"a":typeof e.to!="string"&&typeof f.resolveComponent("router-link")!="string"?"router-link":"div"),r=f.computed(()=>{if(typeof e.to=="string"&&Zc.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(t.value),f.mergeProps({class:"bd-link"},r.value),{default:f.withCtx(()=>[f.renderSlot(o.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(e.text),1)])]),_:3},16))}}),ks={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light"},d0={key:0,class:"b-d-alert-title"},kf=f.defineComponent({__name:"BDAlert",props:{variant:{default:ks.PRIMARY},title:{default:""}},setup(n){const e=n,t=f.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(t.value),role:"alert"},[r.title?(f.openBlock(),f.createElementBlock("div",d0,[f.createVNode(f.unref(Ts)),f.createElementVNode("span",null,[f.createElementVNode("strong",null,f.toDisplayString(e.title),1)])])):f.createCommentVNode("",!0),f.renderSlot(r.$slots,"default")],2))}}),f0=["src","alt"],h0=["textContent"],Fo=f.defineComponent({__name:"BDProfileImage",props:{showFooter:{type:Boolean,default:!1},size:{default:at.LG},linkText:{default:""},src:{default:""},alt:{default:""}},emits:["click"],setup(n,{emit:e}){const t=()=>{e("click")};return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-profile-picture rounded-circle",r.size])},[f.createElementVNode("img",{src:r.src,alt:r.alt,class:"position-absolute top-0 start-0"},null,8,f0),r.showFooter?(f.openBlock(),f.createElementBlock("a",{key:0,class:"bd-profile-picture__footer position-absolute bottom-0 start-0",onClick:t,textContent:f.toDisplayString(r.linkText)},null,8,h0)):f.createCommentVNode("",!0)],2))}});function p0(n){return f.getCurrentScope()?(f.onScopeDispose(n),!0):!1}function Si(n){return typeof n=="function"?n():f.unref(n)}const m0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const g0=n=>typeof n<"u",v0=Object.prototype.toString,y0=n=>v0.call(n)==="[object Object]",Ka=()=>{};function b0(n,e){function t(...r){return new Promise((o,i)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return t}function E0(n,e={}){let t,r,o=Ka;const i=l=>{clearTimeout(l),o(),o=Ka};return l=>{const a=Si(n),c=Si(e.maxWait);return t&&i(t),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((u,d)=>{o=e.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{t&&i(t),r=null,u(l())},c)),t=setTimeout(()=>{r&&i(r),r=null,u(l())},a)})}}function C0(n,e=200,t={}){return b0(E0(e,t),n)}function Af(n){var e;const t=Si(n);return(e=t==null?void 0:t.$el)!=null?e:t}const S0=m0?window:void 0;function Xc(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=S0):[e,t,r,o]=n,!e)return Ka;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,h,m)=>(u.addEventListener(d,h,m),()=>u.removeEventListener(d,h,m)),a=f.watch(()=>[Af(e),Si(o)],([u,d])=>{if(s(),!u)return;const h=y0(d)?{...d}:d;i.push(...t.flatMap(m=>r.map(p=>l(u,m,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return p0(c),c}function w0(n){return JSON.parse(JSON.stringify(n))}function x0(n,e={}){const{initialValue:t=!1,focusVisible:r=!1}=e,o=f.ref(!1),i=f.computed(()=>Af(n));Xc(i,"focus",l=>{var a,c;(!r||(c=(a=l.target).matches)!=null&&c.call(a,":focus-visible"))&&(o.value=!0)}),Xc(i,"blur",()=>o.value=!1);const s=f.computed({get:()=>o.value,set(l){var a,c;!l&&o.value?(a=i.value)==null||a.blur():l&&!o.value&&((c=i.value)==null||c.focus())}});return f.watch(i,()=>{s.value=t},{immediate:!0,flush:"post"}),{focused:s}}function gr(n,e,t,r={}){var o,i,s;const{clone:l=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:h}=r,m=f.getCurrentInstance(),p=t||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((s=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let g=c;e||(e="modelValue"),g=g||`update:${e.toString()}`;const v=x=>l?typeof l=="function"?l(x):w0(x):x,C=()=>g0(n[e])?v(n[e]):d,S=x=>{h?h(x)&&p(g,x):p(g,x)};if(a){const x=C(),b=f.ref(x);let D=!1;return f.watch(()=>n[e],T=>{D||(D=!0,b.value=v(T),f.nextTick(()=>D=!1))}),f.watch(b,T=>{!D&&(T!==n[e]||u)&&S(T)},{deep:u}),b}else return f.computed({get(){return C()},set(x){S(x)}})}const T0={class:"bd-zoom-slider d-flex"},k0=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1),A0=[k0],O0=["max"],M0=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1),N0=[M0],Of=f.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=gr(t,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<t.maxValue&&r.value++}return(s,l)=>(f.openBlock(),f.createElementBlock("div",T0,[(f.openBlock(),f.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},A0)),f.withDirectives(f.createElementVNode("input",{type:"range","onUpdate:modelValue":l[0]||(l[0]=a=>f.isRef(r)?r.value=a:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,O0),[[f.vModelText,f.unref(r)]]),(f.openBlock(),f.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},N0))]))}});var Xn=256,Mf=[],Qc=256,Xo;for(;Xn--;)Mf[Xn]=(Xn+256).toString(16).substring(1);function Nf(n){var e=0,t=n||11;if(!Xo||Xn+t>Qc*2)for(Xo="",Xn=0;e<Qc;e++)Xo+=Mf[Math.random()*256|0];return Xo.substring(Xn,Xn+++t)}function Vo(){return{uniqueIdentifier:f.ref(Nf())}}const I0=["id"],D0={key:0},zl=f.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=t.value,o=f.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=f.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=f.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(l,a)=>(f.openBlock(),f.createElementBlock("div",{id:f.unref(r),class:f.normalizeClass(o.value)},[!l.noHeader||l.noBody?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(i.value)},[f.renderSlot(l.$slots,"header",{},()=>[l.title?(f.openBlock(),f.createElementBlock("h2",D0,f.toDisplayString(l.title),1)):f.createCommentVNode("",!0)])],2)):f.createCommentVNode("",!0),l.noBody?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(s.value)},[f.renderSlot(l.$slots,"body")],2))],10,I0))}}),_0={key:0},L0={class:"bd-collapsable-card__actions"},R0=["data-bs-target"],If=f.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=t.value,o=f.computed(()=>`bd-collapsable-card__collapse-${r}`),i=f.computed(()=>({"d-block":[at.SM,at.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==at.SM,"d-lg-none":e.showOn.toLowerCase()==at.MD})),s=f.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==at.SM,"round-corners-md":e.showOn.toLowerCase()==at.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")}),l=f.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[at.SM,at.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==at.SM&&e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")});return(a,c)=>(f.openBlock(),f.createBlock(zl,{class:"bd-collapsable-card",title:a.title,"header-class":s.value,"body-class":l.value},{header:f.withCtx(()=>[a.title?(f.openBlock(),f.createElementBlock("h2",_0,f.toDisplayString(a.title),1)):f.createCommentVNode("",!0),f.createElementVNode("div",L0,[f.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(f.openBlock(),f.createElementBlock("button",{key:0,class:f.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[f.createVNode(f.unref(Dl))],10,R0)):f.createCommentVNode("",!0)])]),body:f.withCtx(()=>[f.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var P0=Object.defineProperty,B0=(n,e,t)=>e in n?P0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,fo=(n,e,t)=>(B0(n,typeof e!="symbol"?e+"":e,t),t);const qc={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class eu{constructor(e={}){fo(this,"opts",{}),fo(this,"memo",new Map);const t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...qc,...t.tokens};for(const r of Object.values(t.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else t.tokens=qc;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((r,o)=>r.length-o.length):t.mask=t.mask[0]??""),t.mask===""&&(t.mask=null),this.opts=t}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const t=this.findMask(e);if(this.opts.mask==null||t==null)return!1;const r=this.process(e,t).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=t.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const t=this.opts.mask;if(t==null)return null;if(typeof t=="string")return t;if(typeof t=="function")return t(e);const r=this.process(e,t.slice(-1).pop()??"",!1);return t.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const t=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):t.push(o)}),{mask:t.join(""),escaped:r}}process(e,t,r=!0){if(t==null)return e;const o=`value=${e},mask=${t},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(t),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",d=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>v>-1&&C>-1:()=>v<i.length&&C<e.length,m=x=>!this.isReversed()&&x<=d||this.isReversed()&&x>=d;let p,g=-1,v=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,S=!1;for(;h();){const x=i.charAt(v),b=a[x],D=(b==null?void 0:b.transform)!=null?b.transform(e.charAt(C)):e.charAt(C);if(!s.includes(v)&&b!=null?(D.match(b.pattern)!=null?(l[u](D),b.repeated?(g===-1?g=v:v===d&&v!==g&&(v=g-c),d===g&&(v-=c)):b.multiple&&(S=!0,v-=c),v+=c):b.multiple?S&&(v+=c,C-=c,S=!1):D===p?p=void 0:b.optional&&(v+=c,C-=c),C+=c):(r&&!this.isEager()&&l[u](x),D===x&&!this.isEager()?C+=c:p=x,this.isEager()||(v+=c)),this.isEager())for(;m(v)&&(a[i.charAt(v)]==null||s.includes(v));)r?l[u](i.charAt(v)):i.charAt(v)===e.charAt(C)&&(C+=c),v+=c}return this.memo.set(o,l.join("")),this.memo.get(o)}}const Df=n=>JSON.parse(n.replaceAll("'",'"')),tu=(n,e={})=>{const t={...e};return n.dataset.maska!=null&&n.dataset.maska!==""&&(t.mask=$0(n.dataset.maska)),n.dataset.maskaEager!=null&&(t.eager=ea(n.dataset.maskaEager)),n.dataset.maskaReversed!=null&&(t.reversed=ea(n.dataset.maskaReversed)),n.dataset.maskaTokensReplace!=null&&(t.tokensReplace=ea(n.dataset.maskaTokensReplace)),n.dataset.maskaTokens!=null&&(t.tokens=F0(n.dataset.maskaTokens)),t},ea=n=>n!==""?!!JSON.parse(n):!0,$0=n=>n.startsWith("[")&&n.endsWith("]")?Df(n):n,F0=n=>{if(n.startsWith("{")&&n.endsWith("}"))return Df(n);const e={};return n.split("|").forEach(t=>{const r=t.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class V0{constructor(e,t={}){fo(this,"items",new Map),fo(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),fo(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,i=this.items.get(o),s=o.value,l=o.selectionStart,a=o.selectionEnd;let c=s;if(i.isEager()){const u=i.masked(s),d=i.unmasked(s);d===""&&"data"in r&&r.data!=null?c=r.data:d!==i.unmasked(u)&&(c=d)}if(this.setMaskedValue(o,c),"inputType"in r&&(r.inputType.startsWith("delete")||l!=null&&l<s.length))try{o.setSelectionRange(l,a)}catch{}}),this.options=t,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(t)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(t))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,t){const r=this.items.get(e),o=new eu(tu(e,this.getMaskOpts(t)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const t=e.dataset.maskaValue;return t==null&&e.value!==""||t!=null&&t!==e.value}getMaskOpts(e){const{onMaska:t,preProcess:r,postProcess:o,...i}=e;return i}init(e,t){for(const r of e){const o=new eu(tu(r,t));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,t){const r=this.items.get(e);this.options.preProcess!=null&&(t=this.options.preProcess(t));const o=r.masked(t),i=r.unmasked(r.isEager()?o:t),s=r.completed(t),l={masked:o,unmasked:i,completed:s};t=o,this.options.postProcess!=null&&(t=this.options.postProcess(t)),e.value=t,e.dataset.maskaValue=t,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(l)):this.options.onMaska(l)),e.dispatchEvent(new CustomEvent("maska",{detail:l})),e.dispatchEvent(new CustomEvent("input",{detail:l}))}}const Ga=new WeakMap,z0=n=>{setTimeout(()=>{var e;((e=Ga.get(n))==null?void 0:e.needUpdateValue(n))===!0&&n.dispatchEvent(new CustomEvent("input"))})},H0=(n,e)=>{const t=n instanceof HTMLInputElement?n:n.querySelector("input"),r={...e.arg};if(t==null||(t==null?void 0:t.type)==="file")return;z0(t);const o=Ga.get(t);if(o!=null){if(!o.needUpdateOptions(t,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=l=>{i.masked=l.masked,i.unmasked=l.unmasked,i.completed=l.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Ga.set(t,new V0(t,r))},U0=["value","type"],_f=f.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:at.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Vo(),o=gr(t,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__BD__FORM__GROUP__${r.value}`,l=`form-input-${t.label?t.label.replace(/ /g,"-").toLowerCase():r.value}`,a=`validationFeedback${t.label?t.label.replace(/ /g,""):r.value}`,c=f.computed(()=>({[`${t.inputClass}`]:t.inputClass,"is-invalid":t.state===!1,"is-valid":t.state===!0,[`form-control-${t.size}`]:t.size})),u=f.computed(()=>({placeholder:t.placeholder?t.placeholder:null,readonly:t.readonly===!0,disabled:t.disabled===!0,autofocus:t.autofocus===!0,tabindex:t.tabindex?t.tabindex:null,"aria-describedby":t.state===!1&&t.invalidFeedbackText?a:null,"data-maska":t.mask})),d=C0(h=>{o.value=h.target.value},t.delayTimeMs);return(h,m)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-form-input",h.formGroupClass]),id:s},[f.renderSlot(h.$slots,"label",{},()=>[h.label?(f.openBlock(),f.createElementBlock("label",{key:0,for:l,id:i,class:f.normalizeClass(["form-label",h.labelClass])},f.toDisplayString(h.label),3)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:f.normalizeClass(h.formFieldClass)},[f.withDirectives(f.createElementVNode("input",f.mergeProps({value:h.modelValue,type:h.type,id:l,class:["form-control",c.value]},u.value,{onInput:m[0]||(m[0]=(...p)=>f.unref(d)&&f.unref(d)(...p)),onClick:m[1]||(m[1]=p=>h.$emit("click")),onBlur:m[2]||(m[2]=p=>h.$emit("blur")),onKeydown:m[3]||(m[3]=f.withKeys(p=>h.$emit("enter"),["enter"]))}),null,16,U0),[[f.unref(H0)]]),f.renderSlot(h.$slots,"default")],2),f.createVNode(f.unref(As),{text:h.invalidFeedbackText,class:f.normalizeClass(h.invalidFeedbackClass),state:h.state,id:a},null,8,["text","class","state"])],2))}}),j0=["for"],Lf=f.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(n){const e=n,t=f.useAttrs();return(r,o)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[e.label?(f.openBlock(),f.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},f.toDisplayString(e.label),9,j0)):f.createCommentVNode("",!0),f.createElementVNode("div",{class:f.normalizeClass(["input-group bd-input-group",f.unref(t).class])},[f.renderSlot(r.$slots,"default")],2)],64))}}),W0={class:"invalid-feedback bd-invalid-feedback"},As=f.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(n){const e=n;return(t,r)=>(f.openBlock(),f.createElementBlock("div",W0,[t.state?(f.openBlock(),f.createBlock(f.unref(Bo),{key:0})):(f.openBlock(),f.createBlock(f.unref(xs),{key:1})),f.createTextVNode(" "+f.toDisplayString(e.text),1)]))}}),Rf=f.defineComponent({__name:"BDBadge",props:{variant:{default:ks.PRIMARY}},setup(n){const e=n,t=f.computed(()=>["badge","bd-badge",`text-bg-${e.variant}`]);return(r,o)=>(f.openBlock(),f.createElementBlock("span",{role:"status",class:f.normalizeClass(t.value)},[f.renderSlot(r.$slots,"default")],2))}}),K0=["onSubmit","onReset"],Pf=f.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(n,{emit:e}){function t(){e("submit")}function r(){e("reset")}return(o,i)=>(f.openBlock(),f.createElementBlock("form",{onSubmit:f.withModifiers(t,["prevent"]),onReset:f.withModifiers(r,["prevent"])},[f.renderSlot(o.$slots,"default")],40,K0))}}),G0={"aria-label":"Page navigation",class:"bd-pagination"},Y0={class:"page-item"},J0=["data-page"],Z0=["data-page"],X0={class:"page-item"},Q0=["data-page"],Bf=f.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(n,{emit:e}){const t=n,r=gr(t,"modelValue",e),o=f.ref(Math.ceil(t.totalRows/t.rowsPerPage)),i=f.ref([]);f.watch([()=>t.totalRows,()=>t.rowsPerPage],()=>{o.value=Math.ceil(t.totalRows/t.rowsPerPage),i.value=a()}),f.onMounted(()=>{i.value=a()});const s=f.computed(()=>({[`${t.class}`]:t.class,colleague:!t.isPatient})),l=c=>{const u=c.currentTarget.getAttribute("data-page");isNaN(Number(u))||(r.value=Number(u)),i.value=a(),e("click",r.value)},a=()=>{const c=[],u=o.value,d=7;if(u<=d)for(let h=1;h<=u;h++)c.push(h);else{const m=Math.floor((d-3)/2);if(r.value<=m+2){for(let p=1;p<=m+3;p++)c.push(p);c.push("..."),c.push(u)}else if(r.value>=u-m-1){c.push(1),c.push("...");for(let p=u-m-3;p<=u;p++)c.push(p)}else{c.push(1),c.push("...");for(let p=r.value-1;p<=r.value+1;p++)c.push(p);c.push("..."),c.push(u)}}return c};return(c,u)=>(f.openBlock(),f.createElementBlock("div",G0,[f.createElementVNode("ul",{class:f.normalizeClass(["pagination",s.value])},[f.withDirectives(f.createElementVNode("li",Y0,[f.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:l,"data-page":f.unref(r)-1},[f.createVNode(f.unref(_l))],8,J0)],512),[[f.vShow,f.unref(r)>1]]),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.value,d=>(f.openBlock(),f.createElementBlock("li",{class:f.normalizeClass(["page-item",{active:f.unref(r)===d,disabled:typeof d=="string"}]),key:d},[f.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:l,"data-page":d},f.toDisplayString(d),9,Z0)],2))),128)),f.withDirectives(f.createElementVNode("li",X0,[f.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:l,"data-page":f.unref(r)+1},[f.createVNode(f.unref(Ll))],8,Q0)],512),[[f.vShow,f.unref(r)<o.value]])],2)]))}}),q0=["disabled"],ev=["value"],$f=f.defineComponent({__name:"BDFormSelect",props:{size:{default:at.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,r=gr(t,"modelValue",e),o=f.ref(null),{focused:i}=x0(o,{initialValue:t.autofocus}),s=f.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":t.state===!1,[`form-select-${t.size}`]:["xs","sm","lg"].includes(t.size)}));f.watch(()=>t.autofocus,c=>{c&&(i.value=!0)});const l=c=>{r.value=c.target.value,e("input",c.target.value)},a=c=>{e("change",c.target.value)};return(c,u)=>f.withDirectives((f.openBlock(),f.createElementBlock("select",{class:f.normalizeClass(s.value),"onUpdate:modelValue":u[0]||(u[0]=d=>f.isRef(r)?r.value=d:null),disabled:t.disabled,ref_key:"input",ref:o,onInput:l,onChange:a},[f.renderSlot(c.$slots,"first",{},()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,d=>(f.openBlock(),f.createElementBlock("option",{value:d.value,key:d.value},f.toDisplayString(d.text),9,ev))),128))])],42,q0)),[[f.vModelSelect,f.unref(r)]])}}),tv=["value","true-value","false-value","data-checked"],Ff=f.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Vo(),o=gr(t,"modelValue",e),i=`form-check-input-${r.value}`,s=f.computed(()=>["form-check","bd-form-checkbox"]),l=f.computed(()=>({"form-check-input":!0,"is-invalid":t.state===!1})),a=u=>{e("input",u.target.value)},c=u=>{e("change",u.target.value)};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(s.value)},[f.withDirectives(f.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=h=>f.isRef(o)?o.value=h:null),class:f.normalizeClass(l.value),type:"checkbox",value:u.value,"true-value":u.value,"false-value":u.uncheckedValue,id:i,onChange:c,onInput:a,"data-checked":f.unref(o)===u.value},null,42,tv),[[f.vModelCheckbox,f.unref(o)]]),f.createElementVNode("label",{class:"form-check-label",for:i},[f.renderSlot(u.$slots,"default")]),f.renderSlot(u.$slots,"last")],2))}}),nv={key:0,class:"bd-article__body"},rv={key:1},Vf=f.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=o=>e("click",{event:o,identifier:t.identifier});return(o,i)=>(f.openBlock(),f.createElementBlock("article",{class:"bd-article",onClick:r},[f.createElementVNode("header",null,[f.renderSlot(o.$slots,"header",{},()=>[f.createElementVNode("h5",null,f.toDisplayString(t.title),1)])]),t.hideBody?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",nv,[f.renderSlot(o.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])])),t.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("footer",rv,[f.renderSlot(o.$slots,"footer")]))]))}}),Lr={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},ov=["id"],iv={class:"toast-header"},sv=f.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),av={class:"toast-body"},Hl=f.defineComponent({__name:"BDToast",props:{id:{},show:{type:Boolean,default:!1},variant:{default:Lr.INFO},title:{default:""},text:{default:""}},setup(n){const e=n,t=f.computed(()=>({show:e.show,[`bd-toast-${e.variant}`]:!0})),r=f.computed(()=>e.variant!==Lr.SUCCESS);return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["toast bd-toast",t.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[f.createElementVNode("div",iv,[r.value?(f.openBlock(),f.createBlock(f.unref(Ts),{key:0})):(f.openBlock(),f.createBlock(f.unref(Bo),{key:1})),f.createElementVNode("h5",null,f.toDisplayString(e.title),1),sv]),f.createElementVNode("div",av,[f.createElementVNode("span",null,f.toDisplayString(e.text),1)])],10,ov))}}),wi=f.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(n,{emit:e}){const t=n,r=()=>{e("click")};return(o,i)=>(f.openBlock(),f.createElementBlock("li",f.mergeProps({class:"bd-dropdown-item"},o.$attrs),[f.createVNode(zr,f.mergeProps({class:"dropdown-item",onClick:r},t),{default:f.withCtx(()=>[f.renderSlot(o.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16)],16))}});function lv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zf={exports:{}};(function(n,e){(function(r,o){n.exports=o()})(self,function(){return function(){var t={3099:function(s){s.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,l,a){var c=a(5112),u=a(30),d=a(3070),h=c("unscopables"),m=Array.prototype;m[h]==null&&d.f(m,h,{configurable:!0,value:u(null)}),s.exports=function(p){m[h][p]=!0}},1530:function(s,l,a){var c=a(8710).charAt;s.exports=function(u,d,h){return d+(h?c(u,d).length:1)}},5787:function(s){s.exports=function(l,a,c){if(!(l instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,l,a){var c=a(4019),u=a(9781),d=a(7854),h=a(111),m=a(6656),p=a(648),g=a(8880),v=a(1320),C=a(3070).f,S=a(9518),x=a(7674),b=a(5112),D=a(9711),T=d.Int8Array,B=T&&T.prototype,F=d.Uint8ClampedArray,V=F&&F.prototype,$=T&&S(T),P=B&&S(B),R=Object.prototype,H=R.isPrototypeOf,Y=b("toStringTag"),Z=D("TYPED_ARRAY_TAG"),X=c&&!!x&&p(d.opera)!=="Opera",oe=!1,j,ce={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},fe={BigInt64Array:8,BigUint64Array:8},be=function(A){if(!h(A))return!1;var M=p(A);return M==="DataView"||m(ce,M)||m(fe,M)},we=function(ve){if(!h(ve))return!1;var A=p(ve);return m(ce,A)||m(fe,A)},Ee=function(ve){if(we(ve))return ve;throw TypeError("Target is not a typed array")},Ae=function(ve){if(x){if(H.call($,ve))return ve}else for(var A in ce)if(m(ce,j)){var M=d[A];if(M&&(ve===M||H.call(M,ve)))return ve}throw TypeError("Target is not a typed array constructor")},Te=function(ve,A,M){if(u){if(M)for(var w in ce){var O=d[w];O&&m(O.prototype,ve)&&delete O.prototype[ve]}(!P[ve]||M)&&v(P,ve,M?A:X&&B[ve]||A)}},Oe=function(ve,A,M){var w,O;if(u){if(x){if(M)for(w in ce)O=d[w],O&&m(O,ve)&&delete O[ve];if(!$[ve]||M)try{return v($,ve,M?A:X&&T[ve]||A)}catch{}else return}for(w in ce)O=d[w],O&&(!O[ve]||M)&&v(O,ve,A)}};for(j in ce)d[j]||(X=!1);if((!X||typeof $!="function"||$===Function.prototype)&&($=function(){throw TypeError("Incorrect invocation")},X))for(j in ce)d[j]&&x(d[j],$);if((!X||!P||P===R)&&(P=$.prototype,X))for(j in ce)d[j]&&x(d[j].prototype,P);if(X&&S(V)!==P&&x(V,P),u&&!m(P,Y)){oe=!0,C(P,Y,{get:function(){return h(this)?this[Z]:void 0}});for(j in ce)d[j]&&g(d[j],Z,j)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:X,TYPED_ARRAY_TAG:oe&&Z,aTypedArray:Ee,aTypedArrayConstructor:Ae,exportTypedArrayMethod:Te,exportTypedArrayStaticMethod:Oe,isView:be,isTypedArray:we,TypedArray:$,TypedArrayPrototype:P}},3331:function(s,l,a){var c=a(7854),u=a(9781),d=a(4019),h=a(8880),m=a(2248),p=a(7293),g=a(5787),v=a(9958),C=a(7466),S=a(7067),x=a(1179),b=a(9518),D=a(7674),T=a(8006).f,B=a(3070).f,F=a(1285),V=a(8003),$=a(9909),P=$.get,R=$.set,H="ArrayBuffer",Y="DataView",Z="prototype",X="Wrong length",oe="Wrong index",j=c[H],ce=j,fe=c[Y],be=fe&&fe[Z],we=Object.prototype,Ee=c.RangeError,Ae=x.pack,Te=x.unpack,Oe=function(K){return[K&255]},ve=function(K){return[K&255,K>>8&255]},A=function(K){return[K&255,K>>8&255,K>>16&255,K>>24&255]},M=function(K){return K[3]<<24|K[2]<<16|K[1]<<8|K[0]},w=function(K){return Ae(K,23,4)},O=function(K){return Ae(K,52,8)},y=function(K,G){B(K[Z],G,{get:function(){return P(this)[G]}})},E=function(K,G,q,ue){var ge=S(q),Ne=P(K);if(ge+G>Ne.byteLength)throw Ee(oe);var Fe=P(Ne.buffer).bytes,$e=ge+Ne.byteOffset,Ie=Fe.slice($e,$e+G);return ue?Ie:Ie.reverse()},N=function(K,G,q,ue,ge,Ne){var Fe=S(q),$e=P(K);if(Fe+G>$e.byteLength)throw Ee(oe);for(var Ie=P($e.buffer).bytes,Ke=Fe+$e.byteOffset,gt=ue(+ge),tt=0;tt<G;tt++)Ie[Ke+tt]=gt[Ne?tt:G-tt-1]};if(!d)ce=function(G){g(this,ce,H);var q=S(G);R(this,{bytes:F.call(new Array(q),0),byteLength:q}),u||(this.byteLength=q)},fe=function(G,q,ue){g(this,fe,Y),g(G,ce,Y);var ge=P(G).byteLength,Ne=v(q);if(Ne<0||Ne>ge)throw Ee("Wrong offset");if(ue=ue===void 0?ge-Ne:C(ue),Ne+ue>ge)throw Ee(X);R(this,{buffer:G,byteLength:ue,byteOffset:Ne}),u||(this.buffer=G,this.byteLength=ue,this.byteOffset=Ne)},u&&(y(ce,"byteLength"),y(fe,"buffer"),y(fe,"byteLength"),y(fe,"byteOffset")),m(fe[Z],{getInt8:function(G){return E(this,1,G)[0]<<24>>24},getUint8:function(G){return E(this,1,G)[0]},getInt16:function(G){var q=E(this,2,G,arguments.length>1?arguments[1]:void 0);return(q[1]<<8|q[0])<<16>>16},getUint16:function(G){var q=E(this,2,G,arguments.length>1?arguments[1]:void 0);return q[1]<<8|q[0]},getInt32:function(G){return M(E(this,4,G,arguments.length>1?arguments[1]:void 0))},getUint32:function(G){return M(E(this,4,G,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(G){return Te(E(this,4,G,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(G){return Te(E(this,8,G,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(G,q){N(this,1,G,Oe,q)},setUint8:function(G,q){N(this,1,G,Oe,q)},setInt16:function(G,q){N(this,2,G,ve,q,arguments.length>2?arguments[2]:void 0)},setUint16:function(G,q){N(this,2,G,ve,q,arguments.length>2?arguments[2]:void 0)},setInt32:function(G,q){N(this,4,G,A,q,arguments.length>2?arguments[2]:void 0)},setUint32:function(G,q){N(this,4,G,A,q,arguments.length>2?arguments[2]:void 0)},setFloat32:function(G,q){N(this,4,G,w,q,arguments.length>2?arguments[2]:void 0)},setFloat64:function(G,q){N(this,8,G,O,q,arguments.length>2?arguments[2]:void 0)}});else{if(!p(function(){j(1)})||!p(function(){new j(-1)})||p(function(){return new j,new j(1.5),new j(NaN),j.name!=H})){ce=function(G){return g(this,ce),new j(S(G))};for(var I=ce[Z]=j[Z],_=T(j),L=0,z;_.length>L;)(z=_[L++])in ce||h(ce,z,j[z]);I.constructor=ce}D&&b(be)!==we&&D(be,we);var W=new fe(new ce(2)),U=be.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),(W.getInt8(0)||!W.getInt8(1))&&m(be,{setInt8:function(G,q){U.call(this,G,q<<24>>24)},setUint8:function(G,q){U.call(this,G,q<<24>>24)}},{unsafe:!0})}V(ce,H),V(fe,Y),s.exports={ArrayBuffer:ce,DataView:fe}},1048:function(s,l,a){var c=a(7908),u=a(1400),d=a(7466),h=Math.min;s.exports=[].copyWithin||function(p,g){var v=c(this),C=d(v.length),S=u(p,C),x=u(g,C),b=arguments.length>2?arguments[2]:void 0,D=h((b===void 0?C:u(b,C))-x,C-S),T=1;for(x<S&&S<x+D&&(T=-1,x+=D-1,S+=D-1);D-- >0;)x in v?v[S]=v[x]:delete v[S],S+=T,x+=T;return v}},1285:function(s,l,a){var c=a(7908),u=a(1400),d=a(7466);s.exports=function(m){for(var p=c(this),g=d(p.length),v=arguments.length,C=u(v>1?arguments[1]:void 0,g),S=v>2?arguments[2]:void 0,x=S===void 0?g:u(S,g);x>C;)p[C++]=m;return p}},8533:function(s,l,a){var c=a(2092).forEach,u=a(9341),d=u("forEach");s.exports=d?[].forEach:function(m){return c(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(s,l,a){var c=a(9974),u=a(7908),d=a(3411),h=a(7659),m=a(7466),p=a(6135),g=a(1246);s.exports=function(C){var S=u(C),x=typeof this=="function"?this:Array,b=arguments.length,D=b>1?arguments[1]:void 0,T=D!==void 0,B=g(S),F=0,V,$,P,R,H,Y;if(T&&(D=c(D,b>2?arguments[2]:void 0,2)),B!=null&&!(x==Array&&h(B)))for(R=B.call(S),H=R.next,$=new x;!(P=H.call(R)).done;F++)Y=T?d(R,D,[P.value,F],!0):P.value,p($,F,Y);else for(V=m(S.length),$=new x(V);V>F;F++)Y=T?D(S[F],F):S[F],p($,F,Y);return $.length=F,$}},1318:function(s,l,a){var c=a(5656),u=a(7466),d=a(1400),h=function(m){return function(p,g,v){var C=c(p),S=u(C.length),x=d(v,S),b;if(m&&g!=g){for(;S>x;)if(b=C[x++],b!=b)return!0}else for(;S>x;x++)if((m||x in C)&&C[x]===g)return m||x||0;return!m&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,l,a){var c=a(9974),u=a(8361),d=a(7908),h=a(7466),m=a(5417),p=[].push,g=function(v){var C=v==1,S=v==2,x=v==3,b=v==4,D=v==6,T=v==7,B=v==5||D;return function(F,V,$,P){for(var R=d(F),H=u(R),Y=c(V,$,3),Z=h(H.length),X=0,oe=P||m,j=C?oe(F,Z):S||T?oe(F,0):void 0,ce,fe;Z>X;X++)if((B||X in H)&&(ce=H[X],fe=Y(ce,X,R),v))if(C)j[X]=fe;else if(fe)switch(v){case 3:return!0;case 5:return ce;case 6:return X;case 2:p.call(j,ce)}else switch(v){case 4:return!1;case 7:p.call(j,ce)}return D?-1:x||b?b:j}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(s,l,a){var c=a(5656),u=a(9958),d=a(7466),h=a(9341),m=Math.min,p=[].lastIndexOf,g=!!p&&1/[1].lastIndexOf(1,-0)<0,v=h("lastIndexOf"),C=g||!v;s.exports=C?function(x){if(g)return p.apply(this,arguments)||0;var b=c(this),D=d(b.length),T=D-1;for(arguments.length>1&&(T=m(T,u(arguments[1]))),T<0&&(T=D+T);T>=0;T--)if(T in b&&b[T]===x)return T||0;return-1}:p},1194:function(s,l,a){var c=a(7293),u=a(5112),d=a(7392),h=u("species");s.exports=function(m){return d>=51||!c(function(){var p=[],g=p.constructor={};return g[h]=function(){return{foo:1}},p[m](Boolean).foo!==1})}},9341:function(s,l,a){var c=a(7293);s.exports=function(u,d){var h=[][u];return!!h&&c(function(){h.call(null,d||function(){throw 1},1)})}},3671:function(s,l,a){var c=a(3099),u=a(7908),d=a(8361),h=a(7466),m=function(p){return function(g,v,C,S){c(v);var x=u(g),b=d(x),D=h(x.length),T=p?D-1:0,B=p?-1:1;if(C<2)for(;;){if(T in b){S=b[T],T+=B;break}if(T+=B,p?T<0:D<=T)throw TypeError("Reduce of empty array with no initial value")}for(;p?T>=0:D>T;T+=B)T in b&&(S=v(S,b[T],T,x));return S}};s.exports={left:m(!1),right:m(!0)}},5417:function(s,l,a){var c=a(111),u=a(3157),d=a(5112),h=d("species");s.exports=function(m,p){var g;return u(m)&&(g=m.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:c(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(p===0?0:p)}},3411:function(s,l,a){var c=a(9670),u=a(9212);s.exports=function(d,h,m,p){try{return p?h(c(m)[0],m[1]):h(m)}catch(g){throw u(d),g}}},7072:function(s,l,a){var c=a(5112),u=c("iterator"),d=!1;try{var h=0,m={next:function(){return{done:!!h++}},return:function(){d=!0}};m[u]=function(){return this},Array.from(m,function(){throw 2})}catch{}s.exports=function(p,g){if(!g&&!d)return!1;var v=!1;try{var C={};C[u]=function(){return{next:function(){return{done:v=!0}}}},p(C)}catch{}return v}},4326:function(s){var l={}.toString;s.exports=function(a){return l.call(a).slice(8,-1)}},648:function(s,l,a){var c=a(1694),u=a(4326),d=a(5112),h=d("toStringTag"),m=u(function(){return arguments}())=="Arguments",p=function(g,v){try{return g[v]}catch{}};s.exports=c?u:function(g){var v,C,S;return g===void 0?"Undefined":g===null?"Null":typeof(C=p(v=Object(g),h))=="string"?C:m?u(v):(S=u(v))=="Object"&&typeof v.callee=="function"?"Arguments":S}},9920:function(s,l,a){var c=a(6656),u=a(3887),d=a(1236),h=a(3070);s.exports=function(m,p){for(var g=u(p),v=h.f,C=d.f,S=0;S<g.length;S++){var x=g[S];c(m,x)||v(m,x,C(p,x))}}},8544:function(s,l,a){var c=a(7293);s.exports=!c(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,l,a){var c=a(3383).IteratorPrototype,u=a(30),d=a(9114),h=a(8003),m=a(7497),p=function(){return this};s.exports=function(g,v,C){var S=v+" Iterator";return g.prototype=u(c,{next:d(1,C)}),h(g,S,!1,!0),m[S]=p,g}},8880:function(s,l,a){var c=a(9781),u=a(3070),d=a(9114);s.exports=c?function(h,m,p){return u.f(h,m,d(1,p))}:function(h,m,p){return h[m]=p,h}},9114:function(s){s.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},6135:function(s,l,a){var c=a(7593),u=a(3070),d=a(9114);s.exports=function(h,m,p){var g=c(m);g in h?u.f(h,g,d(0,p)):h[g]=p}},654:function(s,l,a){var c=a(2109),u=a(4994),d=a(9518),h=a(7674),m=a(8003),p=a(8880),g=a(1320),v=a(5112),C=a(1913),S=a(7497),x=a(3383),b=x.IteratorPrototype,D=x.BUGGY_SAFARI_ITERATORS,T=v("iterator"),B="keys",F="values",V="entries",$=function(){return this};s.exports=function(P,R,H,Y,Z,X,oe){u(H,R,Y);var j=function(A){if(A===Z&&Ee)return Ee;if(!D&&A in be)return be[A];switch(A){case B:return function(){return new H(this,A)};case F:return function(){return new H(this,A)};case V:return function(){return new H(this,A)}}return function(){return new H(this)}},ce=R+" Iterator",fe=!1,be=P.prototype,we=be[T]||be["@@iterator"]||Z&&be[Z],Ee=!D&&we||j(Z),Ae=R=="Array"&&be.entries||we,Te,Oe,ve;if(Ae&&(Te=d(Ae.call(new P)),b!==Object.prototype&&Te.next&&(!C&&d(Te)!==b&&(h?h(Te,b):typeof Te[T]!="function"&&p(Te,T,$)),m(Te,ce,!0,!0),C&&(S[ce]=$))),Z==F&&we&&we.name!==F&&(fe=!0,Ee=function(){return we.call(this)}),(!C||oe)&&be[T]!==Ee&&p(be,T,Ee),S[R]=Ee,Z)if(Oe={values:j(F),keys:X?Ee:j(B),entries:j(V)},oe)for(ve in Oe)(D||fe||!(ve in be))&&g(be,ve,Oe[ve]);else c({target:R,proto:!0,forced:D||fe},Oe);return Oe}},9781:function(s,l,a){var c=a(7293);s.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,l,a){var c=a(7854),u=a(111),d=c.document,h=u(d)&&u(d.createElement);s.exports=function(m){return h?d.createElement(m):{}}},8324:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(s,l,a){var c=a(5005);s.exports=c("navigator","userAgent")||""},7392:function(s,l,a){var c=a(7854),u=a(8113),d=c.process,h=d&&d.versions,m=h&&h.v8,p,g;m?(p=m.split("."),g=p[0]+p[1]):u&&(p=u.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=u.match(/Chrome\/(\d+)/),p&&(g=p[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,l,a){var c=a(7854),u=a(1236).f,d=a(8880),h=a(1320),m=a(3505),p=a(9920),g=a(4705);s.exports=function(v,C){var S=v.target,x=v.global,b=v.stat,D,T,B,F,V,$;if(x?T=c:b?T=c[S]||m(S,{}):T=(c[S]||{}).prototype,T)for(B in C){if(V=C[B],v.noTargetGet?($=u(T,B),F=$&&$.value):F=T[B],D=g(x?B:S+(b?".":"#")+B,v.forced),!D&&F!==void 0){if(typeof V==typeof F)continue;p(V,F)}(v.sham||F&&F.sham)&&d(V,"sham",!0),h(T,B,V,v)}}},7293:function(s){s.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(s,l,a){a(4916);var c=a(1320),u=a(7293),d=a(5112),h=a(2261),m=a(8880),p=d("species"),g=!u(function(){var b=/./;return b.exec=function(){var D=[];return D.groups={a:"7"},D},"".replace(b,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),C=d("replace"),S=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),x=!u(function(){var b=/(?:)/,D=b.exec;b.exec=function(){return D.apply(this,arguments)};var T="ab".split(b);return T.length!==2||T[0]!=="a"||T[1]!=="b"});s.exports=function(b,D,T,B){var F=d(b),V=!u(function(){var Z={};return Z[F]=function(){return 7},""[b](Z)!=7}),$=V&&!u(function(){var Z=!1,X=/a/;return b==="split"&&(X={},X.constructor={},X.constructor[p]=function(){return X},X.flags="",X[F]=/./[F]),X.exec=function(){return Z=!0,null},X[F](""),!Z});if(!V||!$||b==="replace"&&!(g&&v&&!S)||b==="split"&&!x){var P=/./[F],R=T(F,""[b],function(Z,X,oe,j,ce){return X.exec===h?V&&!ce?{done:!0,value:P.call(X,oe,j)}:{done:!0,value:Z.call(oe,X,j)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),H=R[0],Y=R[1];c(String.prototype,b,H),c(RegExp.prototype,F,D==2?function(Z,X){return Y.call(Z,this,X)}:function(Z){return Y.call(Z,this)})}B&&m(RegExp.prototype[F],"sham",!0)}},9974:function(s,l,a){var c=a(3099);s.exports=function(u,d,h){if(c(u),d===void 0)return u;switch(h){case 0:return function(){return u.call(d)};case 1:return function(m){return u.call(d,m)};case 2:return function(m,p){return u.call(d,m,p)};case 3:return function(m,p,g){return u.call(d,m,p,g)}}return function(){return u.apply(d,arguments)}}},5005:function(s,l,a){var c=a(857),u=a(7854),d=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,m){return arguments.length<2?d(c[h])||d(u[h]):c[h]&&c[h][m]||u[h]&&u[h][m]}},1246:function(s,l,a){var c=a(648),u=a(7497),d=a(5112),h=d("iterator");s.exports=function(m){if(m!=null)return m[h]||m["@@iterator"]||u[c(m)]}},8554:function(s,l,a){var c=a(9670),u=a(1246);s.exports=function(d){var h=u(d);if(typeof h!="function")throw TypeError(String(d)+" is not iterable");return c(h.call(d))}},647:function(s,l,a){var c=a(7908),u=Math.floor,d="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;s.exports=function(p,g,v,C,S,x){var b=v+p.length,D=C.length,T=m;return S!==void 0&&(S=c(S),T=h),d.call(x,T,function(B,F){var V;switch(F.charAt(0)){case"$":return"$";case"&":return p;case"`":return g.slice(0,v);case"'":return g.slice(b);case"<":V=S[F.slice(1,-1)];break;default:var $=+F;if($===0)return B;if($>D){var P=u($/10);return P===0?B:P<=D?C[P-1]===void 0?F.charAt(1):C[P-1]+F.charAt(1):B}V=C[$-1]}return V===void 0?"":V})}},7854:function(s,l,a){var c=function(u){return u&&u.Math==Math&&u};s.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(s){var l={}.hasOwnProperty;s.exports=function(a,c){return l.call(a,c)}},3501:function(s){s.exports={}},490:function(s,l,a){var c=a(5005);s.exports=c("document","documentElement")},4664:function(s,l,a){var c=a(9781),u=a(7293),d=a(317);s.exports=!c&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var l=Math.abs,a=Math.pow,c=Math.floor,u=Math.log,d=Math.LN2,h=function(p,g,v){var C=new Array(v),S=v*8-g-1,x=(1<<S)-1,b=x>>1,D=g===23?a(2,-24)-a(2,-77):0,T=p<0||p===0&&1/p<0?1:0,B=0,F,V,$;for(p=l(p),p!=p||p===1/0?(V=p!=p?1:0,F=x):(F=c(u(p)/d),p*($=a(2,-F))<1&&(F--,$*=2),F+b>=1?p+=D/$:p+=D*a(2,1-b),p*$>=2&&(F++,$/=2),F+b>=x?(V=0,F=x):F+b>=1?(V=(p*$-1)*a(2,g),F=F+b):(V=p*a(2,b-1)*a(2,g),F=0));g>=8;C[B++]=V&255,V/=256,g-=8);for(F=F<<g|V,S+=g;S>0;C[B++]=F&255,F/=256,S-=8);return C[--B]|=T*128,C},m=function(p,g){var v=p.length,C=v*8-g-1,S=(1<<C)-1,x=S>>1,b=C-7,D=v-1,T=p[D--],B=T&127,F;for(T>>=7;b>0;B=B*256+p[D],D--,b-=8);for(F=B&(1<<-b)-1,B>>=-b,b+=g;b>0;F=F*256+p[D],D--,b-=8);if(B===0)B=1-x;else{if(B===S)return F?NaN:T?-1/0:1/0;F=F+a(2,g),B=B-x}return(T?-1:1)*F*a(2,B-g)};s.exports={pack:h,unpack:m}},8361:function(s,l,a){var c=a(7293),u=a(4326),d="".split;s.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?d.call(h,""):Object(h)}:Object},9587:function(s,l,a){var c=a(111),u=a(7674);s.exports=function(d,h,m){var p,g;return u&&typeof(p=h.constructor)=="function"&&p!==m&&c(g=p.prototype)&&g!==m.prototype&&u(d,g),d}},2788:function(s,l,a){var c=a(5465),u=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(d){return u.call(d)}),s.exports=c.inspectSource},9909:function(s,l,a){var c=a(8536),u=a(7854),d=a(111),h=a(8880),m=a(6656),p=a(5465),g=a(6200),v=a(3501),C=u.WeakMap,S,x,b,D=function(R){return b(R)?x(R):S(R,{})},T=function(R){return function(H){var Y;if(!d(H)||(Y=x(H)).type!==R)throw TypeError("Incompatible receiver, "+R+" required");return Y}};if(c){var B=p.state||(p.state=new C),F=B.get,V=B.has,$=B.set;S=function(R,H){return H.facade=R,$.call(B,R,H),H},x=function(R){return F.call(B,R)||{}},b=function(R){return V.call(B,R)}}else{var P=g("state");v[P]=!0,S=function(R,H){return H.facade=R,h(R,P,H),H},x=function(R){return m(R,P)?R[P]:{}},b=function(R){return m(R,P)}}s.exports={set:S,get:x,has:b,enforce:D,getterFor:T}},7659:function(s,l,a){var c=a(5112),u=a(7497),d=c("iterator"),h=Array.prototype;s.exports=function(m){return m!==void 0&&(u.Array===m||h[d]===m)}},3157:function(s,l,a){var c=a(4326);s.exports=Array.isArray||function(d){return c(d)=="Array"}},4705:function(s,l,a){var c=a(7293),u=/#|\.prototype\./,d=function(v,C){var S=m[h(v)];return S==g?!0:S==p?!1:typeof C=="function"?c(C):!!C},h=d.normalize=function(v){return String(v).replace(u,".").toLowerCase()},m=d.data={},p=d.NATIVE="N",g=d.POLYFILL="P";s.exports=d},111:function(s){s.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(s){s.exports=!1},7850:function(s,l,a){var c=a(111),u=a(4326),d=a(5112),h=d("match");s.exports=function(m){var p;return c(m)&&((p=m[h])!==void 0?!!p:u(m)=="RegExp")}},9212:function(s,l,a){var c=a(9670);s.exports=function(u){var d=u.return;if(d!==void 0)return c(d.call(u)).value}},3383:function(s,l,a){var c=a(7293),u=a(9518),d=a(8880),h=a(6656),m=a(5112),p=a(1913),g=m("iterator"),v=!1,C=function(){return this},S,x,b;[].keys&&(b=[].keys(),"next"in b?(x=u(u(b)),x!==Object.prototype&&(S=x)):v=!0);var D=S==null||c(function(){var T={};return S[g].call(T)!==T});D&&(S={}),(!p||D)&&!h(S,g)&&d(S,g,C),s.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:v}},7497:function(s){s.exports={}},133:function(s,l,a){var c=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(s,l,a){var c=a(7293),u=a(5112),d=a(1913),h=u("iterator");s.exports=!c(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),p=m.searchParams,g="";return m.pathname="c%20d",p.forEach(function(v,C){p.delete("b"),g+=C+v}),d&&!m.toJSON||!p.sort||m.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(s,l,a){var c=a(7854),u=a(2788),d=c.WeakMap;s.exports=typeof d=="function"&&/native code/.test(u(d))},1574:function(s,l,a){var c=a(9781),u=a(7293),d=a(1956),h=a(5181),m=a(5296),p=a(7908),g=a(8361),v=Object.assign,C=Object.defineProperty;s.exports=!v||u(function(){if(c&&v({b:1},v(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},x={},b=Symbol(),D="abcdefghijklmnopqrst";return S[b]=7,D.split("").forEach(function(T){x[T]=T}),v({},S)[b]!=7||d(v({},x)).join("")!=D})?function(x,b){for(var D=p(x),T=arguments.length,B=1,F=h.f,V=m.f;T>B;)for(var $=g(arguments[B++]),P=F?d($).concat(F($)):d($),R=P.length,H=0,Y;R>H;)Y=P[H++],(!c||V.call($,Y))&&(D[Y]=$[Y]);return D}:v},30:function(s,l,a){var c=a(9670),u=a(6048),d=a(748),h=a(3501),m=a(490),p=a(317),g=a(6200),v=">",C="<",S="prototype",x="script",b=g("IE_PROTO"),D=function(){},T=function(P){return C+x+v+P+C+"/"+x+v},B=function(P){P.write(T("")),P.close();var R=P.parentWindow.Object;return P=null,R},F=function(){var P=p("iframe"),R="java"+x+":",H;return P.style.display="none",m.appendChild(P),P.src=String(R),H=P.contentWindow.document,H.open(),H.write(T("document.F=Object")),H.close(),H.F},V,$=function(){try{V=document.domain&&new ActiveXObject("htmlfile")}catch{}$=V?B(V):F();for(var P=d.length;P--;)delete $[S][d[P]];return $()};h[b]=!0,s.exports=Object.create||function(R,H){var Y;return R!==null?(D[S]=c(R),Y=new D,D[S]=null,Y[b]=R):Y=$(),H===void 0?Y:u(Y,H)}},6048:function(s,l,a){var c=a(9781),u=a(3070),d=a(9670),h=a(1956);s.exports=c?Object.defineProperties:function(p,g){d(p);for(var v=h(g),C=v.length,S=0,x;C>S;)u.f(p,x=v[S++],g[x]);return p}},3070:function(s,l,a){var c=a(9781),u=a(4664),d=a(9670),h=a(7593),m=Object.defineProperty;l.f=c?m:function(g,v,C){if(d(g),v=h(v,!0),d(C),u)try{return m(g,v,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[v]=C.value),g}},1236:function(s,l,a){var c=a(9781),u=a(5296),d=a(9114),h=a(5656),m=a(7593),p=a(6656),g=a(4664),v=Object.getOwnPropertyDescriptor;l.f=c?v:function(S,x){if(S=h(S),x=m(x,!0),g)try{return v(S,x)}catch{}if(p(S,x))return d(!u.f.call(S,x),S[x])}},8006:function(s,l,a){var c=a(6324),u=a(748),d=u.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(m){return c(m,d)}},5181:function(s,l){l.f=Object.getOwnPropertySymbols},9518:function(s,l,a){var c=a(6656),u=a(7908),d=a(6200),h=a(8544),m=d("IE_PROTO"),p=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),c(g,m)?g[m]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?p:null}},6324:function(s,l,a){var c=a(6656),u=a(5656),d=a(1318).indexOf,h=a(3501);s.exports=function(m,p){var g=u(m),v=0,C=[],S;for(S in g)!c(h,S)&&c(g,S)&&C.push(S);for(;p.length>v;)c(g,S=p[v++])&&(~d(C,S)||C.push(S));return C}},1956:function(s,l,a){var c=a(6324),u=a(748);s.exports=Object.keys||function(h){return c(h,u)}},5296:function(s,l){var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!a.call({1:2},1);l.f=u?function(h){var m=c(this,h);return!!m&&m.enumerable}:a},7674:function(s,l,a){var c=a(9670),u=a(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,h={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(h,[]),d=h instanceof Array}catch{}return function(g,v){return c(g),u(v),d?m.call(g,v):g.__proto__=v,g}}():void 0)},288:function(s,l,a){var c=a(1694),u=a(648);s.exports=c?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,l,a){var c=a(5005),u=a(8006),d=a(5181),h=a(9670);s.exports=c("Reflect","ownKeys")||function(p){var g=u.f(h(p)),v=d.f;return v?g.concat(v(p)):g}},857:function(s,l,a){var c=a(7854);s.exports=c},2248:function(s,l,a){var c=a(1320);s.exports=function(u,d,h){for(var m in d)c(u,m,d[m],h);return u}},1320:function(s,l,a){var c=a(7854),u=a(8880),d=a(6656),h=a(3505),m=a(2788),p=a(9909),g=p.get,v=p.enforce,C=String(String).split("String");(s.exports=function(S,x,b,D){var T=D?!!D.unsafe:!1,B=D?!!D.enumerable:!1,F=D?!!D.noTargetGet:!1,V;if(typeof b=="function"&&(typeof x=="string"&&!d(b,"name")&&u(b,"name",x),V=v(b),V.source||(V.source=C.join(typeof x=="string"?x:""))),S===c){B?S[x]=b:h(x,b);return}else T?!F&&S[x]&&(B=!0):delete S[x];B?S[x]=b:u(S,x,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||m(this)})},7651:function(s,l,a){var c=a(4326),u=a(2261);s.exports=function(d,h){var m=d.exec;if(typeof m=="function"){var p=m.call(d,h);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(c(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(d,h)}},2261:function(s,l,a){var c=a(7066),u=a(2999),d=RegExp.prototype.exec,h=String.prototype.replace,m=d,p=function(){var S=/a/,x=/b*/g;return d.call(S,"a"),d.call(x,"a"),S.lastIndex!==0||x.lastIndex!==0}(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,C=p||v||g;C&&(m=function(x){var b=this,D,T,B,F,V=g&&b.sticky,$=c.call(b),P=b.source,R=0,H=x;return V&&($=$.replace("y",""),$.indexOf("g")===-1&&($+="g"),H=String(x).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&x[b.lastIndex-1]!==`
4
+ C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1),Eg=[yg,bg];function Cg(n,e){return f.openBlock(),f.createElementBlock("svg",vg,Eg)}const Rl=Re(gg,[["render",Cg]]),Sg={},wg={class:"icon icon-hyperlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 20 20",width:"20",height:"20"},xg=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"}),f.createElementVNode("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1),Tg=[xg];function kg(n,e){return f.openBlock(),f.createElementBlock("svg",wg,Tg)}const Pl=Re(Sg,[["render",kg]]),Ag={},Og={class:"icon icon-info",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Mg=f.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.498-4V6.075H8.143V14h1.355zM8.033 3.973c0 .22.067.403.201.55.134.146.333.22.597.22.264 0 .464-.074.6-.22a.774.774 0 0 0 .206-.55.8.8 0 0 0-.205-.556c-.137-.152-.337-.228-.6-.228-.265 0-.464.076-.598.228a.809.809 0 0 0-.201.556z"},null,-1),Ng=[Mg];function Ig(n,e){return f.openBlock(),f.createElementBlock("svg",Og,Ng)}const Ts=Re(Ag,[["render",Ig]]),Dg={},_g={width:"12",height:"14",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-italic"},Lg=f.createElementVNode("path",{d:"M12 0.75C12 1.1875 11.6562 1.5 11.25 1.5H9.125L4.53125 12.5H7.25C7.65625 12.5 8 12.8438 8 13.25C8 13.6875 7.65625 14 7.25 14H0.75C0.3125 14 0 13.6875 0 13.25C0 12.8438 0.3125 12.5 0.75 12.5H2.9375L7.53125 1.5H4.75C4.3125 1.5 4 1.1875 4 0.75C4 0.34375 4.3125 0 4.75 0H11.25C11.6562 0 12 0.34375 12 0.75Z"},null,-1),Rg=[Lg];function Pg(n,e){return f.openBlock(),f.createElementBlock("svg",_g,Rg)}const Bl=Re(Dg,[["render",Pg]]),Bg={},$g={class:"icon icon-list-view",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fg=f.createElementVNode("path",{d:"M0 2.625V16.375C0 17.4297 0.820312 18.25 1.875 18.25H18.125C19.1406 18.25 20 17.4297 20 16.375V2.625C20 1.60938 19.1406 0.75 18.125 0.75H1.875C0.820312 0.75 0 1.60938 0 2.625ZM18.4375 11.375H7.69531V7.625H18.4375V11.375ZM18.4375 12.9375V16.2188C18.4375 16.4922 18.2031 16.6875 17.9688 16.6875H7.69531V12.9375H18.4375ZM1.5625 7.625H6.13281V11.375H1.5625V7.625ZM7.69531 6.0625V2.3125H17.9688C18.2031 2.3125 18.4375 2.54688 18.4375 2.78125V6.0625H7.69531ZM6.13281 2.3125V6.0625H1.5625V2.78125C1.5625 2.54688 1.75781 2.3125 2.03125 2.3125H6.13281ZM1.5625 12.9375H6.13281V16.6875H2.03125C1.75781 16.6875 1.5625 16.4922 1.5625 16.2188V12.9375Z",fill:"#394156"},null,-1),Vg=[Fg];function zg(n,e){return f.openBlock(),f.createElementBlock("svg",$g,Vg)}const Tf=Re(Bg,[["render",zg]]),Hg={},Ug={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},jg=f.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1),Wg=[jg];function Kg(n,e){return f.openBlock(),f.createElementBlock("svg",Ug,Wg)}const Ci=Re(Hg,[["render",Kg]]),Gg={},Yg={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},Jg=f.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1),Zg=[Jg];function Xg(n,e){return f.openBlock(),f.createElementBlock("svg",Yg,Zg)}const $l=Re(Gg,[["render",Xg]]),Qg={},qg={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},e0=f.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1),t0=[e0];function n0(n,e){return f.openBlock(),f.createElementBlock("svg",qg,t0)}const $o=Re(Qg,[["render",n0]]),r0={},o0={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},i0=f.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1),s0=[i0];function a0(n,e){return f.openBlock(),f.createElementBlock("svg",o0,s0)}const Fl=Re(r0,[["render",a0]]),l0={},c0={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u0=f.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1),d0=[u0];function f0(n,e){return f.openBlock(),f.createElementBlock("svg",c0,d0)}const kf=Re(l0,[["render",f0]]),h0={},p0=f.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2),m0=[p0];function g0(n,e){return f.openBlock(),f.createElementBlock("svg",f.mergeProps({class:"bd-logo"},n.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),m0,16)}const Vl=Re(h0,[["render",g0]]),Zc=/^https:/i,zr=f.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(n){const e=n,t=f.computed(()=>typeof e.to=="string"&&Zc.test(e.to)?"a":typeof e.to!="string"&&typeof f.resolveComponent("router-link")!="string"?"router-link":"div"),r=f.computed(()=>{if(typeof e.to=="string"&&Zc.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(t.value),f.mergeProps({class:"bd-link"},r.value),{default:f.withCtx(()=>[f.renderSlot(o.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(e.text),1)])]),_:3},16))}}),ks={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light"},v0={key:0,class:"b-d-alert-title"},Af=f.defineComponent({__name:"BDAlert",props:{variant:{default:ks.PRIMARY},title:{default:""}},setup(n){const e=n,t=f.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(t.value),role:"alert"},[r.title?(f.openBlock(),f.createElementBlock("div",v0,[f.createVNode(f.unref(Ts)),f.createElementVNode("span",null,[f.createElementVNode("strong",null,f.toDisplayString(e.title),1)])])):f.createCommentVNode("",!0),f.renderSlot(r.$slots,"default")],2))}}),y0=["src","alt"],b0=["textContent"],Fo=f.defineComponent({__name:"BDProfileImage",props:{showFooter:{type:Boolean,default:!1},size:{default:at.LG},linkText:{default:""},src:{default:""},alt:{default:""}},emits:["click"],setup(n,{emit:e}){const t=()=>{e("click")};return(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-profile-picture rounded-circle",r.size])},[f.createElementVNode("img",{src:r.src,alt:r.alt,class:"position-absolute top-0 start-0"},null,8,y0),r.showFooter?(f.openBlock(),f.createElementBlock("a",{key:0,class:"bd-profile-picture__footer position-absolute bottom-0 start-0",onClick:t,textContent:f.toDisplayString(r.linkText)},null,8,b0)):f.createCommentVNode("",!0)],2))}});function E0(n){return f.getCurrentScope()?(f.onScopeDispose(n),!0):!1}function Si(n){return typeof n=="function"?n():f.unref(n)}const C0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const S0=n=>typeof n<"u",w0=Object.prototype.toString,x0=n=>w0.call(n)==="[object Object]",Ka=()=>{};function T0(n,e){function t(...r){return new Promise((o,i)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return t}function k0(n,e={}){let t,r,o=Ka;const i=l=>{clearTimeout(l),o(),o=Ka};return l=>{const a=Si(n),c=Si(e.maxWait);return t&&i(t),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((u,d)=>{o=e.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{t&&i(t),r=null,u(l())},c)),t=setTimeout(()=>{r&&i(r),r=null,u(l())},a)})}}function A0(n,e=200,t={}){return T0(k0(e,t),n)}function Of(n){var e;const t=Si(n);return(e=t==null?void 0:t.$el)!=null?e:t}const O0=C0?window:void 0;function Xc(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=O0):[e,t,r,o]=n,!e)return Ka;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,h,m)=>(u.addEventListener(d,h,m),()=>u.removeEventListener(d,h,m)),a=f.watch(()=>[Of(e),Si(o)],([u,d])=>{if(s(),!u)return;const h=x0(d)?{...d}:d;i.push(...t.flatMap(m=>r.map(p=>l(u,m,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return E0(c),c}function M0(n){return JSON.parse(JSON.stringify(n))}function N0(n,e={}){const{initialValue:t=!1,focusVisible:r=!1}=e,o=f.ref(!1),i=f.computed(()=>Of(n));Xc(i,"focus",l=>{var a,c;(!r||(c=(a=l.target).matches)!=null&&c.call(a,":focus-visible"))&&(o.value=!0)}),Xc(i,"blur",()=>o.value=!1);const s=f.computed({get:()=>o.value,set(l){var a,c;!l&&o.value?(a=i.value)==null||a.blur():l&&!o.value&&((c=i.value)==null||c.focus())}});return f.watch(i,()=>{s.value=t},{immediate:!0,flush:"post"}),{focused:s}}function gr(n,e,t,r={}){var o,i,s;const{clone:l=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:h}=r,m=f.getCurrentInstance(),p=t||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((s=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let g=c;e||(e="modelValue"),g=g||`update:${e.toString()}`;const v=x=>l?typeof l=="function"?l(x):M0(x):x,C=()=>S0(n[e])?v(n[e]):d,S=x=>{h?h(x)&&p(g,x):p(g,x)};if(a){const x=C(),b=f.ref(x);let D=!1;return f.watch(()=>n[e],T=>{D||(D=!0,b.value=v(T),f.nextTick(()=>D=!1))}),f.watch(b,T=>{!D&&(T!==n[e]||u)&&S(T)},{deep:u}),b}else return f.computed({get(){return C()},set(x){S(x)}})}const I0={class:"bd-zoom-slider d-flex"},D0=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1),_0=[D0],L0=["max"],R0=f.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[f.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1),P0=[R0],Mf=f.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=gr(t,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<t.maxValue&&r.value++}return(s,l)=>(f.openBlock(),f.createElementBlock("div",I0,[(f.openBlock(),f.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},_0)),f.withDirectives(f.createElementVNode("input",{type:"range","onUpdate:modelValue":l[0]||(l[0]=a=>f.isRef(r)?r.value=a:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,L0),[[f.vModelText,f.unref(r)]]),(f.openBlock(),f.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},P0))]))}});var Xn=256,Nf=[],Qc=256,Xo;for(;Xn--;)Nf[Xn]=(Xn+256).toString(16).substring(1);function If(n){var e=0,t=n||11;if(!Xo||Xn+t>Qc*2)for(Xo="",Xn=0;e<Qc;e++)Xo+=Nf[Math.random()*256|0];return Xo.substring(Xn,Xn+++t)}function Vo(){return{uniqueIdentifier:f.ref(If())}}const B0=["id"],$0={key:0},zl=f.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=t.value,o=f.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=f.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=f.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(l,a)=>(f.openBlock(),f.createElementBlock("div",{id:f.unref(r),class:f.normalizeClass(o.value)},[!l.noHeader||l.noBody?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(i.value)},[f.renderSlot(l.$slots,"header",{},()=>[l.title?(f.openBlock(),f.createElementBlock("h2",$0,f.toDisplayString(l.title),1)):f.createCommentVNode("",!0)])],2)):f.createCommentVNode("",!0),l.noBody?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(s.value)},[f.renderSlot(l.$slots,"body")],2))],10,B0))}}),F0={key:0},V0={class:"bd-collapsable-card__actions"},z0=["data-bs-target"],Df=f.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=t.value,o=f.computed(()=>`bd-collapsable-card__collapse-${r}`),i=f.computed(()=>({"d-block":[at.SM,at.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==at.SM,"d-lg-none":e.showOn.toLowerCase()==at.MD})),s=f.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==at.SM,"round-corners-md":e.showOn.toLowerCase()==at.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")}),l=f.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[at.SM,at.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==at.SM&&e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")});return(a,c)=>(f.openBlock(),f.createBlock(zl,{class:"bd-collapsable-card",title:a.title,"header-class":s.value,"body-class":l.value},{header:f.withCtx(()=>[a.title?(f.openBlock(),f.createElementBlock("h2",F0,f.toDisplayString(a.title),1)):f.createCommentVNode("",!0),f.createElementVNode("div",V0,[f.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(f.openBlock(),f.createElementBlock("button",{key:0,class:f.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[f.createVNode(f.unref(Dl))],10,z0)):f.createCommentVNode("",!0)])]),body:f.withCtx(()=>[f.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var H0=Object.defineProperty,U0=(n,e,t)=>e in n?H0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,fo=(n,e,t)=>(U0(n,typeof e!="symbol"?e+"":e,t),t);const qc={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class eu{constructor(e={}){fo(this,"opts",{}),fo(this,"memo",new Map);const t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...qc,...t.tokens};for(const r of Object.values(t.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else t.tokens=qc;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((r,o)=>r.length-o.length):t.mask=t.mask[0]??""),t.mask===""&&(t.mask=null),this.opts=t}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const t=this.findMask(e);if(this.opts.mask==null||t==null)return!1;const r=this.process(e,t).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=t.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const t=this.opts.mask;if(t==null)return null;if(typeof t=="string")return t;if(typeof t=="function")return t(e);const r=this.process(e,t.slice(-1).pop()??"",!1);return t.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const t=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):t.push(o)}),{mask:t.join(""),escaped:r}}process(e,t,r=!0){if(t==null)return e;const o=`value=${e},mask=${t},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(t),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",d=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>v>-1&&C>-1:()=>v<i.length&&C<e.length,m=x=>!this.isReversed()&&x<=d||this.isReversed()&&x>=d;let p,g=-1,v=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,S=!1;for(;h();){const x=i.charAt(v),b=a[x],D=(b==null?void 0:b.transform)!=null?b.transform(e.charAt(C)):e.charAt(C);if(!s.includes(v)&&b!=null?(D.match(b.pattern)!=null?(l[u](D),b.repeated?(g===-1?g=v:v===d&&v!==g&&(v=g-c),d===g&&(v-=c)):b.multiple&&(S=!0,v-=c),v+=c):b.multiple?S&&(v+=c,C-=c,S=!1):D===p?p=void 0:b.optional&&(v+=c,C-=c),C+=c):(r&&!this.isEager()&&l[u](x),D===x&&!this.isEager()?C+=c:p=x,this.isEager()||(v+=c)),this.isEager())for(;m(v)&&(a[i.charAt(v)]==null||s.includes(v));)r?l[u](i.charAt(v)):i.charAt(v)===e.charAt(C)&&(C+=c),v+=c}return this.memo.set(o,l.join("")),this.memo.get(o)}}const _f=n=>JSON.parse(n.replaceAll("'",'"')),tu=(n,e={})=>{const t={...e};return n.dataset.maska!=null&&n.dataset.maska!==""&&(t.mask=j0(n.dataset.maska)),n.dataset.maskaEager!=null&&(t.eager=ea(n.dataset.maskaEager)),n.dataset.maskaReversed!=null&&(t.reversed=ea(n.dataset.maskaReversed)),n.dataset.maskaTokensReplace!=null&&(t.tokensReplace=ea(n.dataset.maskaTokensReplace)),n.dataset.maskaTokens!=null&&(t.tokens=W0(n.dataset.maskaTokens)),t},ea=n=>n!==""?!!JSON.parse(n):!0,j0=n=>n.startsWith("[")&&n.endsWith("]")?_f(n):n,W0=n=>{if(n.startsWith("{")&&n.endsWith("}"))return _f(n);const e={};return n.split("|").forEach(t=>{const r=t.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class K0{constructor(e,t={}){fo(this,"items",new Map),fo(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),fo(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,i=this.items.get(o),s=o.value,l=o.selectionStart,a=o.selectionEnd;let c=s;if(i.isEager()){const u=i.masked(s),d=i.unmasked(s);d===""&&"data"in r&&r.data!=null?c=r.data:d!==i.unmasked(u)&&(c=d)}if(this.setMaskedValue(o,c),"inputType"in r&&(r.inputType.startsWith("delete")||l!=null&&l<s.length))try{o.setSelectionRange(l,a)}catch{}}),this.options=t,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(t)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(t))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,t){const r=this.items.get(e),o=new eu(tu(e,this.getMaskOpts(t)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const t=e.dataset.maskaValue;return t==null&&e.value!==""||t!=null&&t!==e.value}getMaskOpts(e){const{onMaska:t,preProcess:r,postProcess:o,...i}=e;return i}init(e,t){for(const r of e){const o=new eu(tu(r,t));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,t){const r=this.items.get(e);this.options.preProcess!=null&&(t=this.options.preProcess(t));const o=r.masked(t),i=r.unmasked(r.isEager()?o:t),s=r.completed(t),l={masked:o,unmasked:i,completed:s};t=o,this.options.postProcess!=null&&(t=this.options.postProcess(t)),e.value=t,e.dataset.maskaValue=t,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(l)):this.options.onMaska(l)),e.dispatchEvent(new CustomEvent("maska",{detail:l})),e.dispatchEvent(new CustomEvent("input",{detail:l}))}}const Ga=new WeakMap,G0=n=>{setTimeout(()=>{var e;((e=Ga.get(n))==null?void 0:e.needUpdateValue(n))===!0&&n.dispatchEvent(new CustomEvent("input"))})},Y0=(n,e)=>{const t=n instanceof HTMLInputElement?n:n.querySelector("input"),r={...e.arg};if(t==null||(t==null?void 0:t.type)==="file")return;G0(t);const o=Ga.get(t);if(o!=null){if(!o.needUpdateOptions(t,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=l=>{i.masked=l.masked,i.unmasked=l.unmasked,i.completed=l.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Ga.set(t,new K0(t,r))},J0=["value","type"],Lf=f.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:at.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Vo(),o=gr(t,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__BD__FORM__GROUP__${r.value}`,l=`form-input-${t.label?t.label.replace(/ /g,"-").toLowerCase():r.value}`,a=`validationFeedback${t.label?t.label.replace(/ /g,""):r.value}`,c=f.computed(()=>({[`${t.inputClass}`]:t.inputClass,"is-invalid":t.state===!1,"is-valid":t.state===!0,[`form-control-${t.size}`]:t.size})),u=f.computed(()=>({placeholder:t.placeholder?t.placeholder:null,readonly:t.readonly===!0,disabled:t.disabled===!0,autofocus:t.autofocus===!0,tabindex:t.tabindex?t.tabindex:null,"aria-describedby":t.state===!1&&t.invalidFeedbackText?a:null,"data-maska":t.mask})),d=A0(h=>{o.value=h.target.value},t.delayTimeMs);return(h,m)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-form-input",h.formGroupClass]),id:s},[f.renderSlot(h.$slots,"label",{},()=>[h.label?(f.openBlock(),f.createElementBlock("label",{key:0,for:l,id:i,class:f.normalizeClass(["form-label",h.labelClass])},f.toDisplayString(h.label),3)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:f.normalizeClass(h.formFieldClass)},[f.withDirectives(f.createElementVNode("input",f.mergeProps({value:h.modelValue,type:h.type,id:l,class:["form-control",c.value]},u.value,{onInput:m[0]||(m[0]=(...p)=>f.unref(d)&&f.unref(d)(...p)),onClick:m[1]||(m[1]=p=>h.$emit("click")),onBlur:m[2]||(m[2]=p=>h.$emit("blur")),onKeydown:m[3]||(m[3]=f.withKeys(p=>h.$emit("enter"),["enter"]))}),null,16,J0),[[f.unref(Y0)]]),f.renderSlot(h.$slots,"default")],2),f.createVNode(f.unref(As),{text:h.invalidFeedbackText,class:f.normalizeClass(h.invalidFeedbackClass),state:h.state,id:a},null,8,["text","class","state"])],2))}}),Z0=["for"],Rf=f.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(n){const e=n,t=f.useAttrs();return(r,o)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[e.label?(f.openBlock(),f.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},f.toDisplayString(e.label),9,Z0)):f.createCommentVNode("",!0),f.createElementVNode("div",{class:f.normalizeClass(["input-group bd-input-group",f.unref(t).class])},[f.renderSlot(r.$slots,"default")],2)],64))}}),X0={class:"invalid-feedback bd-invalid-feedback"},As=f.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(n){const e=n;return(t,r)=>(f.openBlock(),f.createElementBlock("div",X0,[t.state?(f.openBlock(),f.createBlock(f.unref(Bo),{key:0})):(f.openBlock(),f.createBlock(f.unref(xs),{key:1})),f.createTextVNode(" "+f.toDisplayString(e.text),1)]))}}),Pf=f.defineComponent({__name:"BDBadge",props:{variant:{default:ks.PRIMARY}},setup(n){const e=n,t=f.computed(()=>["badge","bd-badge",`text-bg-${e.variant}`]);return(r,o)=>(f.openBlock(),f.createElementBlock("span",{role:"status",class:f.normalizeClass(t.value)},[f.renderSlot(r.$slots,"default")],2))}}),Q0=["onSubmit","onReset"],Bf=f.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(n,{emit:e}){function t(){e("submit")}function r(){e("reset")}return(o,i)=>(f.openBlock(),f.createElementBlock("form",{onSubmit:f.withModifiers(t,["prevent"]),onReset:f.withModifiers(r,["prevent"])},[f.renderSlot(o.$slots,"default")],40,Q0))}}),q0={"aria-label":"Page navigation",class:"bd-pagination"},ev={class:"page-item"},tv=["data-page"],nv=["data-page"],rv={class:"page-item"},ov=["data-page"],$f=f.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(n,{emit:e}){const t=n,r=gr(t,"modelValue",e),o=f.ref(Math.ceil(t.totalRows/t.rowsPerPage)),i=f.ref([]);f.watch([()=>t.totalRows,()=>t.rowsPerPage],()=>{o.value=Math.ceil(t.totalRows/t.rowsPerPage),i.value=a()}),f.onMounted(()=>{i.value=a()});const s=f.computed(()=>({[`${t.class}`]:t.class,colleague:!t.isPatient})),l=c=>{const u=c.currentTarget.getAttribute("data-page");isNaN(Number(u))||(r.value=Number(u)),i.value=a(),e("click",r.value)},a=()=>{const c=[],u=o.value,d=7;if(u<=d)for(let h=1;h<=u;h++)c.push(h);else{const m=Math.floor((d-3)/2);if(r.value<=m+2){for(let p=1;p<=m+3;p++)c.push(p);c.push("..."),c.push(u)}else if(r.value>=u-m-1){c.push(1),c.push("...");for(let p=u-m-3;p<=u;p++)c.push(p)}else{c.push(1),c.push("...");for(let p=r.value-1;p<=r.value+1;p++)c.push(p);c.push("..."),c.push(u)}}return c};return(c,u)=>(f.openBlock(),f.createElementBlock("div",q0,[f.createElementVNode("ul",{class:f.normalizeClass(["pagination",s.value])},[f.withDirectives(f.createElementVNode("li",ev,[f.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:l,"data-page":f.unref(r)-1},[f.createVNode(f.unref(_l))],8,tv)],512),[[f.vShow,f.unref(r)>1]]),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.value,d=>(f.openBlock(),f.createElementBlock("li",{class:f.normalizeClass(["page-item",{active:f.unref(r)===d,disabled:typeof d=="string"}]),key:d},[f.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:l,"data-page":d},f.toDisplayString(d),9,nv)],2))),128)),f.withDirectives(f.createElementVNode("li",rv,[f.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:l,"data-page":f.unref(r)+1},[f.createVNode(f.unref(Ll))],8,ov)],512),[[f.vShow,f.unref(r)<o.value]])],2)]))}}),iv=["disabled"],sv=["value"],Ff=f.defineComponent({__name:"BDFormSelect",props:{size:{default:at.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,r=gr(t,"modelValue",e),o=f.ref(null),{focused:i}=N0(o,{initialValue:t.autofocus}),s=f.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":t.state===!1,[`form-select-${t.size}`]:["xs","sm","lg"].includes(t.size)}));f.watch(()=>t.autofocus,c=>{c&&(i.value=!0)});const l=c=>{r.value=c.target.value,e("input",c.target.value)},a=c=>{e("change",c.target.value)};return(c,u)=>f.withDirectives((f.openBlock(),f.createElementBlock("select",{class:f.normalizeClass(s.value),"onUpdate:modelValue":u[0]||(u[0]=d=>f.isRef(r)?r.value=d:null),disabled:t.disabled,ref_key:"input",ref:o,onInput:l,onChange:a},[f.renderSlot(c.$slots,"first",{},()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,d=>(f.openBlock(),f.createElementBlock("option",{value:d.value,key:d.value},f.toDisplayString(d.text),9,sv))),128))])],42,iv)),[[f.vModelSelect,f.unref(r)]])}}),av=["value","true-value","false-value","data-checked"],Vf=f.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Vo(),o=gr(t,"modelValue",e),i=`form-check-input-${r.value}`,s=f.computed(()=>["form-check","bd-form-checkbox"]),l=f.computed(()=>({"form-check-input":!0,"is-invalid":t.state===!1})),a=u=>{e("input",u.target.value)},c=u=>{e("change",u.target.value)};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(s.value)},[f.withDirectives(f.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=h=>f.isRef(o)?o.value=h:null),class:f.normalizeClass(l.value),type:"checkbox",value:u.value,"true-value":u.value,"false-value":u.uncheckedValue,id:i,onChange:c,onInput:a,"data-checked":f.unref(o)===u.value},null,42,av),[[f.vModelCheckbox,f.unref(o)]]),f.createElementVNode("label",{class:"form-check-label",for:i},[f.renderSlot(u.$slots,"default")]),f.renderSlot(u.$slots,"last")],2))}}),lv={key:0,class:"bd-article__body"},cv={key:1},zf=f.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=o=>e("click",{event:o,identifier:t.identifier});return(o,i)=>(f.openBlock(),f.createElementBlock("article",{class:"bd-article",onClick:r},[f.createElementVNode("header",null,[f.renderSlot(o.$slots,"header",{},()=>[f.createElementVNode("h5",null,f.toDisplayString(t.title),1)])]),t.hideBody?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",lv,[f.renderSlot(o.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])])),t.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("footer",cv,[f.renderSlot(o.$slots,"footer")]))]))}}),Lr={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},uv=["id"],dv={class:"toast-header"},fv=f.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),hv={class:"toast-body"},Hl=f.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Lr.INFO},title:{default:""},text:{default:""}},setup(n){const e=n,t=f.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=f.computed(()=>e.variant!==Lr.SUCCESS);return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["toast bd-toast",t.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[f.createElementVNode("div",dv,[r.value?(f.openBlock(),f.createBlock(f.unref(Ts),{key:0})):(f.openBlock(),f.createBlock(f.unref(Bo),{key:1})),f.createElementVNode("h5",null,f.toDisplayString(e.title),1),fv]),f.createElementVNode("div",hv,[f.createElementVNode("span",null,f.toDisplayString(e.text),1)])],10,uv))}}),wi=f.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(n,{emit:e}){const t=n,r=()=>{e("click")};return(o,i)=>(f.openBlock(),f.createElementBlock("li",f.mergeProps({class:"bd-dropdown-item"},o.$attrs),[f.createVNode(zr,f.mergeProps({class:"dropdown-item",onClick:r},t),{default:f.withCtx(()=>[f.renderSlot(o.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16)],16))}});function pv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Hf={exports:{}};(function(n,e){(function(r,o){n.exports=o()})(self,function(){return function(){var t={3099:function(s){s.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,l,a){var c=a(5112),u=a(30),d=a(3070),h=c("unscopables"),m=Array.prototype;m[h]==null&&d.f(m,h,{configurable:!0,value:u(null)}),s.exports=function(p){m[h][p]=!0}},1530:function(s,l,a){var c=a(8710).charAt;s.exports=function(u,d,h){return d+(h?c(u,d).length:1)}},5787:function(s){s.exports=function(l,a,c){if(!(l instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,l,a){var c=a(4019),u=a(9781),d=a(7854),h=a(111),m=a(6656),p=a(648),g=a(8880),v=a(1320),C=a(3070).f,S=a(9518),x=a(7674),b=a(5112),D=a(9711),T=d.Int8Array,B=T&&T.prototype,F=d.Uint8ClampedArray,V=F&&F.prototype,$=T&&S(T),P=B&&S(B),R=Object.prototype,H=R.isPrototypeOf,Y=b("toStringTag"),Z=D("TYPED_ARRAY_TAG"),X=c&&!!x&&p(d.opera)!=="Opera",oe=!1,j,ce={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},fe={BigInt64Array:8,BigUint64Array:8},be=function(A){if(!h(A))return!1;var M=p(A);return M==="DataView"||m(ce,M)||m(fe,M)},we=function(ve){if(!h(ve))return!1;var A=p(ve);return m(ce,A)||m(fe,A)},Ee=function(ve){if(we(ve))return ve;throw TypeError("Target is not a typed array")},Ae=function(ve){if(x){if(H.call($,ve))return ve}else for(var A in ce)if(m(ce,j)){var M=d[A];if(M&&(ve===M||H.call(M,ve)))return ve}throw TypeError("Target is not a typed array constructor")},Te=function(ve,A,M){if(u){if(M)for(var w in ce){var O=d[w];O&&m(O.prototype,ve)&&delete O.prototype[ve]}(!P[ve]||M)&&v(P,ve,M?A:X&&B[ve]||A)}},Oe=function(ve,A,M){var w,O;if(u){if(x){if(M)for(w in ce)O=d[w],O&&m(O,ve)&&delete O[ve];if(!$[ve]||M)try{return v($,ve,M?A:X&&T[ve]||A)}catch{}else return}for(w in ce)O=d[w],O&&(!O[ve]||M)&&v(O,ve,A)}};for(j in ce)d[j]||(X=!1);if((!X||typeof $!="function"||$===Function.prototype)&&($=function(){throw TypeError("Incorrect invocation")},X))for(j in ce)d[j]&&x(d[j],$);if((!X||!P||P===R)&&(P=$.prototype,X))for(j in ce)d[j]&&x(d[j].prototype,P);if(X&&S(V)!==P&&x(V,P),u&&!m(P,Y)){oe=!0,C(P,Y,{get:function(){return h(this)?this[Z]:void 0}});for(j in ce)d[j]&&g(d[j],Z,j)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:X,TYPED_ARRAY_TAG:oe&&Z,aTypedArray:Ee,aTypedArrayConstructor:Ae,exportTypedArrayMethod:Te,exportTypedArrayStaticMethod:Oe,isView:be,isTypedArray:we,TypedArray:$,TypedArrayPrototype:P}},3331:function(s,l,a){var c=a(7854),u=a(9781),d=a(4019),h=a(8880),m=a(2248),p=a(7293),g=a(5787),v=a(9958),C=a(7466),S=a(7067),x=a(1179),b=a(9518),D=a(7674),T=a(8006).f,B=a(3070).f,F=a(1285),V=a(8003),$=a(9909),P=$.get,R=$.set,H="ArrayBuffer",Y="DataView",Z="prototype",X="Wrong length",oe="Wrong index",j=c[H],ce=j,fe=c[Y],be=fe&&fe[Z],we=Object.prototype,Ee=c.RangeError,Ae=x.pack,Te=x.unpack,Oe=function(K){return[K&255]},ve=function(K){return[K&255,K>>8&255]},A=function(K){return[K&255,K>>8&255,K>>16&255,K>>24&255]},M=function(K){return K[3]<<24|K[2]<<16|K[1]<<8|K[0]},w=function(K){return Ae(K,23,4)},O=function(K){return Ae(K,52,8)},y=function(K,G){B(K[Z],G,{get:function(){return P(this)[G]}})},E=function(K,G,q,ue){var ge=S(q),Ne=P(K);if(ge+G>Ne.byteLength)throw Ee(oe);var Fe=P(Ne.buffer).bytes,$e=ge+Ne.byteOffset,Ie=Fe.slice($e,$e+G);return ue?Ie:Ie.reverse()},N=function(K,G,q,ue,ge,Ne){var Fe=S(q),$e=P(K);if(Fe+G>$e.byteLength)throw Ee(oe);for(var Ie=P($e.buffer).bytes,Ke=Fe+$e.byteOffset,gt=ue(+ge),tt=0;tt<G;tt++)Ie[Ke+tt]=gt[Ne?tt:G-tt-1]};if(!d)ce=function(G){g(this,ce,H);var q=S(G);R(this,{bytes:F.call(new Array(q),0),byteLength:q}),u||(this.byteLength=q)},fe=function(G,q,ue){g(this,fe,Y),g(G,ce,Y);var ge=P(G).byteLength,Ne=v(q);if(Ne<0||Ne>ge)throw Ee("Wrong offset");if(ue=ue===void 0?ge-Ne:C(ue),Ne+ue>ge)throw Ee(X);R(this,{buffer:G,byteLength:ue,byteOffset:Ne}),u||(this.buffer=G,this.byteLength=ue,this.byteOffset=Ne)},u&&(y(ce,"byteLength"),y(fe,"buffer"),y(fe,"byteLength"),y(fe,"byteOffset")),m(fe[Z],{getInt8:function(G){return E(this,1,G)[0]<<24>>24},getUint8:function(G){return E(this,1,G)[0]},getInt16:function(G){var q=E(this,2,G,arguments.length>1?arguments[1]:void 0);return(q[1]<<8|q[0])<<16>>16},getUint16:function(G){var q=E(this,2,G,arguments.length>1?arguments[1]:void 0);return q[1]<<8|q[0]},getInt32:function(G){return M(E(this,4,G,arguments.length>1?arguments[1]:void 0))},getUint32:function(G){return M(E(this,4,G,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(G){return Te(E(this,4,G,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(G){return Te(E(this,8,G,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(G,q){N(this,1,G,Oe,q)},setUint8:function(G,q){N(this,1,G,Oe,q)},setInt16:function(G,q){N(this,2,G,ve,q,arguments.length>2?arguments[2]:void 0)},setUint16:function(G,q){N(this,2,G,ve,q,arguments.length>2?arguments[2]:void 0)},setInt32:function(G,q){N(this,4,G,A,q,arguments.length>2?arguments[2]:void 0)},setUint32:function(G,q){N(this,4,G,A,q,arguments.length>2?arguments[2]:void 0)},setFloat32:function(G,q){N(this,4,G,w,q,arguments.length>2?arguments[2]:void 0)},setFloat64:function(G,q){N(this,8,G,O,q,arguments.length>2?arguments[2]:void 0)}});else{if(!p(function(){j(1)})||!p(function(){new j(-1)})||p(function(){return new j,new j(1.5),new j(NaN),j.name!=H})){ce=function(G){return g(this,ce),new j(S(G))};for(var I=ce[Z]=j[Z],_=T(j),L=0,z;_.length>L;)(z=_[L++])in ce||h(ce,z,j[z]);I.constructor=ce}D&&b(be)!==we&&D(be,we);var W=new fe(new ce(2)),U=be.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),(W.getInt8(0)||!W.getInt8(1))&&m(be,{setInt8:function(G,q){U.call(this,G,q<<24>>24)},setUint8:function(G,q){U.call(this,G,q<<24>>24)}},{unsafe:!0})}V(ce,H),V(fe,Y),s.exports={ArrayBuffer:ce,DataView:fe}},1048:function(s,l,a){var c=a(7908),u=a(1400),d=a(7466),h=Math.min;s.exports=[].copyWithin||function(p,g){var v=c(this),C=d(v.length),S=u(p,C),x=u(g,C),b=arguments.length>2?arguments[2]:void 0,D=h((b===void 0?C:u(b,C))-x,C-S),T=1;for(x<S&&S<x+D&&(T=-1,x+=D-1,S+=D-1);D-- >0;)x in v?v[S]=v[x]:delete v[S],S+=T,x+=T;return v}},1285:function(s,l,a){var c=a(7908),u=a(1400),d=a(7466);s.exports=function(m){for(var p=c(this),g=d(p.length),v=arguments.length,C=u(v>1?arguments[1]:void 0,g),S=v>2?arguments[2]:void 0,x=S===void 0?g:u(S,g);x>C;)p[C++]=m;return p}},8533:function(s,l,a){var c=a(2092).forEach,u=a(9341),d=u("forEach");s.exports=d?[].forEach:function(m){return c(this,m,arguments.length>1?arguments[1]:void 0)}},8457:function(s,l,a){var c=a(9974),u=a(7908),d=a(3411),h=a(7659),m=a(7466),p=a(6135),g=a(1246);s.exports=function(C){var S=u(C),x=typeof this=="function"?this:Array,b=arguments.length,D=b>1?arguments[1]:void 0,T=D!==void 0,B=g(S),F=0,V,$,P,R,H,Y;if(T&&(D=c(D,b>2?arguments[2]:void 0,2)),B!=null&&!(x==Array&&h(B)))for(R=B.call(S),H=R.next,$=new x;!(P=H.call(R)).done;F++)Y=T?d(R,D,[P.value,F],!0):P.value,p($,F,Y);else for(V=m(S.length),$=new x(V);V>F;F++)Y=T?D(S[F],F):S[F],p($,F,Y);return $.length=F,$}},1318:function(s,l,a){var c=a(5656),u=a(7466),d=a(1400),h=function(m){return function(p,g,v){var C=c(p),S=u(C.length),x=d(v,S),b;if(m&&g!=g){for(;S>x;)if(b=C[x++],b!=b)return!0}else for(;S>x;x++)if((m||x in C)&&C[x]===g)return m||x||0;return!m&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,l,a){var c=a(9974),u=a(8361),d=a(7908),h=a(7466),m=a(5417),p=[].push,g=function(v){var C=v==1,S=v==2,x=v==3,b=v==4,D=v==6,T=v==7,B=v==5||D;return function(F,V,$,P){for(var R=d(F),H=u(R),Y=c(V,$,3),Z=h(H.length),X=0,oe=P||m,j=C?oe(F,Z):S||T?oe(F,0):void 0,ce,fe;Z>X;X++)if((B||X in H)&&(ce=H[X],fe=Y(ce,X,R),v))if(C)j[X]=fe;else if(fe)switch(v){case 3:return!0;case 5:return ce;case 6:return X;case 2:p.call(j,ce)}else switch(v){case 4:return!1;case 7:p.call(j,ce)}return D?-1:x||b?b:j}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(s,l,a){var c=a(5656),u=a(9958),d=a(7466),h=a(9341),m=Math.min,p=[].lastIndexOf,g=!!p&&1/[1].lastIndexOf(1,-0)<0,v=h("lastIndexOf"),C=g||!v;s.exports=C?function(x){if(g)return p.apply(this,arguments)||0;var b=c(this),D=d(b.length),T=D-1;for(arguments.length>1&&(T=m(T,u(arguments[1]))),T<0&&(T=D+T);T>=0;T--)if(T in b&&b[T]===x)return T||0;return-1}:p},1194:function(s,l,a){var c=a(7293),u=a(5112),d=a(7392),h=u("species");s.exports=function(m){return d>=51||!c(function(){var p=[],g=p.constructor={};return g[h]=function(){return{foo:1}},p[m](Boolean).foo!==1})}},9341:function(s,l,a){var c=a(7293);s.exports=function(u,d){var h=[][u];return!!h&&c(function(){h.call(null,d||function(){throw 1},1)})}},3671:function(s,l,a){var c=a(3099),u=a(7908),d=a(8361),h=a(7466),m=function(p){return function(g,v,C,S){c(v);var x=u(g),b=d(x),D=h(x.length),T=p?D-1:0,B=p?-1:1;if(C<2)for(;;){if(T in b){S=b[T],T+=B;break}if(T+=B,p?T<0:D<=T)throw TypeError("Reduce of empty array with no initial value")}for(;p?T>=0:D>T;T+=B)T in b&&(S=v(S,b[T],T,x));return S}};s.exports={left:m(!1),right:m(!0)}},5417:function(s,l,a){var c=a(111),u=a(3157),d=a(5112),h=d("species");s.exports=function(m,p){var g;return u(m)&&(g=m.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:c(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(p===0?0:p)}},3411:function(s,l,a){var c=a(9670),u=a(9212);s.exports=function(d,h,m,p){try{return p?h(c(m)[0],m[1]):h(m)}catch(g){throw u(d),g}}},7072:function(s,l,a){var c=a(5112),u=c("iterator"),d=!1;try{var h=0,m={next:function(){return{done:!!h++}},return:function(){d=!0}};m[u]=function(){return this},Array.from(m,function(){throw 2})}catch{}s.exports=function(p,g){if(!g&&!d)return!1;var v=!1;try{var C={};C[u]=function(){return{next:function(){return{done:v=!0}}}},p(C)}catch{}return v}},4326:function(s){var l={}.toString;s.exports=function(a){return l.call(a).slice(8,-1)}},648:function(s,l,a){var c=a(1694),u=a(4326),d=a(5112),h=d("toStringTag"),m=u(function(){return arguments}())=="Arguments",p=function(g,v){try{return g[v]}catch{}};s.exports=c?u:function(g){var v,C,S;return g===void 0?"Undefined":g===null?"Null":typeof(C=p(v=Object(g),h))=="string"?C:m?u(v):(S=u(v))=="Object"&&typeof v.callee=="function"?"Arguments":S}},9920:function(s,l,a){var c=a(6656),u=a(3887),d=a(1236),h=a(3070);s.exports=function(m,p){for(var g=u(p),v=h.f,C=d.f,S=0;S<g.length;S++){var x=g[S];c(m,x)||v(m,x,C(p,x))}}},8544:function(s,l,a){var c=a(7293);s.exports=!c(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,l,a){var c=a(3383).IteratorPrototype,u=a(30),d=a(9114),h=a(8003),m=a(7497),p=function(){return this};s.exports=function(g,v,C){var S=v+" Iterator";return g.prototype=u(c,{next:d(1,C)}),h(g,S,!1,!0),m[S]=p,g}},8880:function(s,l,a){var c=a(9781),u=a(3070),d=a(9114);s.exports=c?function(h,m,p){return u.f(h,m,d(1,p))}:function(h,m,p){return h[m]=p,h}},9114:function(s){s.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},6135:function(s,l,a){var c=a(7593),u=a(3070),d=a(9114);s.exports=function(h,m,p){var g=c(m);g in h?u.f(h,g,d(0,p)):h[g]=p}},654:function(s,l,a){var c=a(2109),u=a(4994),d=a(9518),h=a(7674),m=a(8003),p=a(8880),g=a(1320),v=a(5112),C=a(1913),S=a(7497),x=a(3383),b=x.IteratorPrototype,D=x.BUGGY_SAFARI_ITERATORS,T=v("iterator"),B="keys",F="values",V="entries",$=function(){return this};s.exports=function(P,R,H,Y,Z,X,oe){u(H,R,Y);var j=function(A){if(A===Z&&Ee)return Ee;if(!D&&A in be)return be[A];switch(A){case B:return function(){return new H(this,A)};case F:return function(){return new H(this,A)};case V:return function(){return new H(this,A)}}return function(){return new H(this)}},ce=R+" Iterator",fe=!1,be=P.prototype,we=be[T]||be["@@iterator"]||Z&&be[Z],Ee=!D&&we||j(Z),Ae=R=="Array"&&be.entries||we,Te,Oe,ve;if(Ae&&(Te=d(Ae.call(new P)),b!==Object.prototype&&Te.next&&(!C&&d(Te)!==b&&(h?h(Te,b):typeof Te[T]!="function"&&p(Te,T,$)),m(Te,ce,!0,!0),C&&(S[ce]=$))),Z==F&&we&&we.name!==F&&(fe=!0,Ee=function(){return we.call(this)}),(!C||oe)&&be[T]!==Ee&&p(be,T,Ee),S[R]=Ee,Z)if(Oe={values:j(F),keys:X?Ee:j(B),entries:j(V)},oe)for(ve in Oe)(D||fe||!(ve in be))&&g(be,ve,Oe[ve]);else c({target:R,proto:!0,forced:D||fe},Oe);return Oe}},9781:function(s,l,a){var c=a(7293);s.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,l,a){var c=a(7854),u=a(111),d=c.document,h=u(d)&&u(d.createElement);s.exports=function(m){return h?d.createElement(m):{}}},8324:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(s,l,a){var c=a(5005);s.exports=c("navigator","userAgent")||""},7392:function(s,l,a){var c=a(7854),u=a(8113),d=c.process,h=d&&d.versions,m=h&&h.v8,p,g;m?(p=m.split("."),g=p[0]+p[1]):u&&(p=u.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=u.match(/Chrome\/(\d+)/),p&&(g=p[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,l,a){var c=a(7854),u=a(1236).f,d=a(8880),h=a(1320),m=a(3505),p=a(9920),g=a(4705);s.exports=function(v,C){var S=v.target,x=v.global,b=v.stat,D,T,B,F,V,$;if(x?T=c:b?T=c[S]||m(S,{}):T=(c[S]||{}).prototype,T)for(B in C){if(V=C[B],v.noTargetGet?($=u(T,B),F=$&&$.value):F=T[B],D=g(x?B:S+(b?".":"#")+B,v.forced),!D&&F!==void 0){if(typeof V==typeof F)continue;p(V,F)}(v.sham||F&&F.sham)&&d(V,"sham",!0),h(T,B,V,v)}}},7293:function(s){s.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(s,l,a){a(4916);var c=a(1320),u=a(7293),d=a(5112),h=a(2261),m=a(8880),p=d("species"),g=!u(function(){var b=/./;return b.exec=function(){var D=[];return D.groups={a:"7"},D},"".replace(b,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),C=d("replace"),S=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),x=!u(function(){var b=/(?:)/,D=b.exec;b.exec=function(){return D.apply(this,arguments)};var T="ab".split(b);return T.length!==2||T[0]!=="a"||T[1]!=="b"});s.exports=function(b,D,T,B){var F=d(b),V=!u(function(){var Z={};return Z[F]=function(){return 7},""[b](Z)!=7}),$=V&&!u(function(){var Z=!1,X=/a/;return b==="split"&&(X={},X.constructor={},X.constructor[p]=function(){return X},X.flags="",X[F]=/./[F]),X.exec=function(){return Z=!0,null},X[F](""),!Z});if(!V||!$||b==="replace"&&!(g&&v&&!S)||b==="split"&&!x){var P=/./[F],R=T(F,""[b],function(Z,X,oe,j,ce){return X.exec===h?V&&!ce?{done:!0,value:P.call(X,oe,j)}:{done:!0,value:Z.call(oe,X,j)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),H=R[0],Y=R[1];c(String.prototype,b,H),c(RegExp.prototype,F,D==2?function(Z,X){return Y.call(Z,this,X)}:function(Z){return Y.call(Z,this)})}B&&m(RegExp.prototype[F],"sham",!0)}},9974:function(s,l,a){var c=a(3099);s.exports=function(u,d,h){if(c(u),d===void 0)return u;switch(h){case 0:return function(){return u.call(d)};case 1:return function(m){return u.call(d,m)};case 2:return function(m,p){return u.call(d,m,p)};case 3:return function(m,p,g){return u.call(d,m,p,g)}}return function(){return u.apply(d,arguments)}}},5005:function(s,l,a){var c=a(857),u=a(7854),d=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,m){return arguments.length<2?d(c[h])||d(u[h]):c[h]&&c[h][m]||u[h]&&u[h][m]}},1246:function(s,l,a){var c=a(648),u=a(7497),d=a(5112),h=d("iterator");s.exports=function(m){if(m!=null)return m[h]||m["@@iterator"]||u[c(m)]}},8554:function(s,l,a){var c=a(9670),u=a(1246);s.exports=function(d){var h=u(d);if(typeof h!="function")throw TypeError(String(d)+" is not iterable");return c(h.call(d))}},647:function(s,l,a){var c=a(7908),u=Math.floor,d="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;s.exports=function(p,g,v,C,S,x){var b=v+p.length,D=C.length,T=m;return S!==void 0&&(S=c(S),T=h),d.call(x,T,function(B,F){var V;switch(F.charAt(0)){case"$":return"$";case"&":return p;case"`":return g.slice(0,v);case"'":return g.slice(b);case"<":V=S[F.slice(1,-1)];break;default:var $=+F;if($===0)return B;if($>D){var P=u($/10);return P===0?B:P<=D?C[P-1]===void 0?F.charAt(1):C[P-1]+F.charAt(1):B}V=C[$-1]}return V===void 0?"":V})}},7854:function(s,l,a){var c=function(u){return u&&u.Math==Math&&u};s.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(s){var l={}.hasOwnProperty;s.exports=function(a,c){return l.call(a,c)}},3501:function(s){s.exports={}},490:function(s,l,a){var c=a(5005);s.exports=c("document","documentElement")},4664:function(s,l,a){var c=a(9781),u=a(7293),d=a(317);s.exports=!c&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var l=Math.abs,a=Math.pow,c=Math.floor,u=Math.log,d=Math.LN2,h=function(p,g,v){var C=new Array(v),S=v*8-g-1,x=(1<<S)-1,b=x>>1,D=g===23?a(2,-24)-a(2,-77):0,T=p<0||p===0&&1/p<0?1:0,B=0,F,V,$;for(p=l(p),p!=p||p===1/0?(V=p!=p?1:0,F=x):(F=c(u(p)/d),p*($=a(2,-F))<1&&(F--,$*=2),F+b>=1?p+=D/$:p+=D*a(2,1-b),p*$>=2&&(F++,$/=2),F+b>=x?(V=0,F=x):F+b>=1?(V=(p*$-1)*a(2,g),F=F+b):(V=p*a(2,b-1)*a(2,g),F=0));g>=8;C[B++]=V&255,V/=256,g-=8);for(F=F<<g|V,S+=g;S>0;C[B++]=F&255,F/=256,S-=8);return C[--B]|=T*128,C},m=function(p,g){var v=p.length,C=v*8-g-1,S=(1<<C)-1,x=S>>1,b=C-7,D=v-1,T=p[D--],B=T&127,F;for(T>>=7;b>0;B=B*256+p[D],D--,b-=8);for(F=B&(1<<-b)-1,B>>=-b,b+=g;b>0;F=F*256+p[D],D--,b-=8);if(B===0)B=1-x;else{if(B===S)return F?NaN:T?-1/0:1/0;F=F+a(2,g),B=B-x}return(T?-1:1)*F*a(2,B-g)};s.exports={pack:h,unpack:m}},8361:function(s,l,a){var c=a(7293),u=a(4326),d="".split;s.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?d.call(h,""):Object(h)}:Object},9587:function(s,l,a){var c=a(111),u=a(7674);s.exports=function(d,h,m){var p,g;return u&&typeof(p=h.constructor)=="function"&&p!==m&&c(g=p.prototype)&&g!==m.prototype&&u(d,g),d}},2788:function(s,l,a){var c=a(5465),u=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(d){return u.call(d)}),s.exports=c.inspectSource},9909:function(s,l,a){var c=a(8536),u=a(7854),d=a(111),h=a(8880),m=a(6656),p=a(5465),g=a(6200),v=a(3501),C=u.WeakMap,S,x,b,D=function(R){return b(R)?x(R):S(R,{})},T=function(R){return function(H){var Y;if(!d(H)||(Y=x(H)).type!==R)throw TypeError("Incompatible receiver, "+R+" required");return Y}};if(c){var B=p.state||(p.state=new C),F=B.get,V=B.has,$=B.set;S=function(R,H){return H.facade=R,$.call(B,R,H),H},x=function(R){return F.call(B,R)||{}},b=function(R){return V.call(B,R)}}else{var P=g("state");v[P]=!0,S=function(R,H){return H.facade=R,h(R,P,H),H},x=function(R){return m(R,P)?R[P]:{}},b=function(R){return m(R,P)}}s.exports={set:S,get:x,has:b,enforce:D,getterFor:T}},7659:function(s,l,a){var c=a(5112),u=a(7497),d=c("iterator"),h=Array.prototype;s.exports=function(m){return m!==void 0&&(u.Array===m||h[d]===m)}},3157:function(s,l,a){var c=a(4326);s.exports=Array.isArray||function(d){return c(d)=="Array"}},4705:function(s,l,a){var c=a(7293),u=/#|\.prototype\./,d=function(v,C){var S=m[h(v)];return S==g?!0:S==p?!1:typeof C=="function"?c(C):!!C},h=d.normalize=function(v){return String(v).replace(u,".").toLowerCase()},m=d.data={},p=d.NATIVE="N",g=d.POLYFILL="P";s.exports=d},111:function(s){s.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(s){s.exports=!1},7850:function(s,l,a){var c=a(111),u=a(4326),d=a(5112),h=d("match");s.exports=function(m){var p;return c(m)&&((p=m[h])!==void 0?!!p:u(m)=="RegExp")}},9212:function(s,l,a){var c=a(9670);s.exports=function(u){var d=u.return;if(d!==void 0)return c(d.call(u)).value}},3383:function(s,l,a){var c=a(7293),u=a(9518),d=a(8880),h=a(6656),m=a(5112),p=a(1913),g=m("iterator"),v=!1,C=function(){return this},S,x,b;[].keys&&(b=[].keys(),"next"in b?(x=u(u(b)),x!==Object.prototype&&(S=x)):v=!0);var D=S==null||c(function(){var T={};return S[g].call(T)!==T});D&&(S={}),(!p||D)&&!h(S,g)&&d(S,g,C),s.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:v}},7497:function(s){s.exports={}},133:function(s,l,a){var c=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(s,l,a){var c=a(7293),u=a(5112),d=a(1913),h=u("iterator");s.exports=!c(function(){var m=new URL("b?a=1&b=2&c=3","http://a"),p=m.searchParams,g="";return m.pathname="c%20d",p.forEach(function(v,C){p.delete("b"),g+=C+v}),d&&!m.toJSON||!p.sort||m.href!=="http://a/c%20d?a=1&c=3"||p.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!p[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(s,l,a){var c=a(7854),u=a(2788),d=c.WeakMap;s.exports=typeof d=="function"&&/native code/.test(u(d))},1574:function(s,l,a){var c=a(9781),u=a(7293),d=a(1956),h=a(5181),m=a(5296),p=a(7908),g=a(8361),v=Object.assign,C=Object.defineProperty;s.exports=!v||u(function(){if(c&&v({b:1},v(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},x={},b=Symbol(),D="abcdefghijklmnopqrst";return S[b]=7,D.split("").forEach(function(T){x[T]=T}),v({},S)[b]!=7||d(v({},x)).join("")!=D})?function(x,b){for(var D=p(x),T=arguments.length,B=1,F=h.f,V=m.f;T>B;)for(var $=g(arguments[B++]),P=F?d($).concat(F($)):d($),R=P.length,H=0,Y;R>H;)Y=P[H++],(!c||V.call($,Y))&&(D[Y]=$[Y]);return D}:v},30:function(s,l,a){var c=a(9670),u=a(6048),d=a(748),h=a(3501),m=a(490),p=a(317),g=a(6200),v=">",C="<",S="prototype",x="script",b=g("IE_PROTO"),D=function(){},T=function(P){return C+x+v+P+C+"/"+x+v},B=function(P){P.write(T("")),P.close();var R=P.parentWindow.Object;return P=null,R},F=function(){var P=p("iframe"),R="java"+x+":",H;return P.style.display="none",m.appendChild(P),P.src=String(R),H=P.contentWindow.document,H.open(),H.write(T("document.F=Object")),H.close(),H.F},V,$=function(){try{V=document.domain&&new ActiveXObject("htmlfile")}catch{}$=V?B(V):F();for(var P=d.length;P--;)delete $[S][d[P]];return $()};h[b]=!0,s.exports=Object.create||function(R,H){var Y;return R!==null?(D[S]=c(R),Y=new D,D[S]=null,Y[b]=R):Y=$(),H===void 0?Y:u(Y,H)}},6048:function(s,l,a){var c=a(9781),u=a(3070),d=a(9670),h=a(1956);s.exports=c?Object.defineProperties:function(p,g){d(p);for(var v=h(g),C=v.length,S=0,x;C>S;)u.f(p,x=v[S++],g[x]);return p}},3070:function(s,l,a){var c=a(9781),u=a(4664),d=a(9670),h=a(7593),m=Object.defineProperty;l.f=c?m:function(g,v,C){if(d(g),v=h(v,!0),d(C),u)try{return m(g,v,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[v]=C.value),g}},1236:function(s,l,a){var c=a(9781),u=a(5296),d=a(9114),h=a(5656),m=a(7593),p=a(6656),g=a(4664),v=Object.getOwnPropertyDescriptor;l.f=c?v:function(S,x){if(S=h(S),x=m(x,!0),g)try{return v(S,x)}catch{}if(p(S,x))return d(!u.f.call(S,x),S[x])}},8006:function(s,l,a){var c=a(6324),u=a(748),d=u.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(m){return c(m,d)}},5181:function(s,l){l.f=Object.getOwnPropertySymbols},9518:function(s,l,a){var c=a(6656),u=a(7908),d=a(6200),h=a(8544),m=d("IE_PROTO"),p=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),c(g,m)?g[m]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?p:null}},6324:function(s,l,a){var c=a(6656),u=a(5656),d=a(1318).indexOf,h=a(3501);s.exports=function(m,p){var g=u(m),v=0,C=[],S;for(S in g)!c(h,S)&&c(g,S)&&C.push(S);for(;p.length>v;)c(g,S=p[v++])&&(~d(C,S)||C.push(S));return C}},1956:function(s,l,a){var c=a(6324),u=a(748);s.exports=Object.keys||function(h){return c(h,u)}},5296:function(s,l){var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!a.call({1:2},1);l.f=u?function(h){var m=c(this,h);return!!m&&m.enumerable}:a},7674:function(s,l,a){var c=a(9670),u=a(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,h={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(h,[]),d=h instanceof Array}catch{}return function(g,v){return c(g),u(v),d?m.call(g,v):g.__proto__=v,g}}():void 0)},288:function(s,l,a){var c=a(1694),u=a(648);s.exports=c?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,l,a){var c=a(5005),u=a(8006),d=a(5181),h=a(9670);s.exports=c("Reflect","ownKeys")||function(p){var g=u.f(h(p)),v=d.f;return v?g.concat(v(p)):g}},857:function(s,l,a){var c=a(7854);s.exports=c},2248:function(s,l,a){var c=a(1320);s.exports=function(u,d,h){for(var m in d)c(u,m,d[m],h);return u}},1320:function(s,l,a){var c=a(7854),u=a(8880),d=a(6656),h=a(3505),m=a(2788),p=a(9909),g=p.get,v=p.enforce,C=String(String).split("String");(s.exports=function(S,x,b,D){var T=D?!!D.unsafe:!1,B=D?!!D.enumerable:!1,F=D?!!D.noTargetGet:!1,V;if(typeof b=="function"&&(typeof x=="string"&&!d(b,"name")&&u(b,"name",x),V=v(b),V.source||(V.source=C.join(typeof x=="string"?x:""))),S===c){B?S[x]=b:h(x,b);return}else T?!F&&S[x]&&(B=!0):delete S[x];B?S[x]=b:u(S,x,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||m(this)})},7651:function(s,l,a){var c=a(4326),u=a(2261);s.exports=function(d,h){var m=d.exec;if(typeof m=="function"){var p=m.call(d,h);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(c(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(d,h)}},2261:function(s,l,a){var c=a(7066),u=a(2999),d=RegExp.prototype.exec,h=String.prototype.replace,m=d,p=function(){var S=/a/,x=/b*/g;return d.call(S,"a"),d.call(x,"a"),S.lastIndex!==0||x.lastIndex!==0}(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,C=p||v||g;C&&(m=function(x){var b=this,D,T,B,F,V=g&&b.sticky,$=c.call(b),P=b.source,R=0,H=x;return V&&($=$.replace("y",""),$.indexOf("g")===-1&&($+="g"),H=String(x).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&x[b.lastIndex-1]!==`
5
5
  `)&&(P="(?: "+P+")",H=" "+H,R++),T=new RegExp("^(?:"+P+")",$)),v&&(T=new RegExp("^"+P+"$(?!\\s)",$)),p&&(D=b.lastIndex),B=d.call(V?T:b,H),V?B?(B.input=B.input.slice(R),B[0]=B[0].slice(R),B.index=b.lastIndex,b.lastIndex+=B[0].length):b.lastIndex=0:p&&B&&(b.lastIndex=b.global?B.index+B[0].length:D),v&&B&&B.length>1&&h.call(B[0],T,function(){for(F=1;F<arguments.length-2;F++)arguments[F]===void 0&&(B[F]=void 0)}),B}),s.exports=m},7066:function(s,l,a){var c=a(9670);s.exports=function(){var u=c(this),d="";return u.global&&(d+="g"),u.ignoreCase&&(d+="i"),u.multiline&&(d+="m"),u.dotAll&&(d+="s"),u.unicode&&(d+="u"),u.sticky&&(d+="y"),d}},2999:function(s,l,a){var c=a(7293);function u(d,h){return RegExp(d,h)}l.UNSUPPORTED_Y=c(function(){var d=u("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),l.BROKEN_CARET=c(function(){var d=u("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},4488:function(s){s.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},3505:function(s,l,a){var c=a(7854),u=a(8880);s.exports=function(d,h){try{u(c,d,h)}catch{c[d]=h}return h}},6340:function(s,l,a){var c=a(5005),u=a(3070),d=a(5112),h=a(9781),m=d("species");s.exports=function(p){var g=c(p),v=u.f;h&&g&&!g[m]&&v(g,m,{configurable:!0,get:function(){return this}})}},8003:function(s,l,a){var c=a(3070).f,u=a(6656),d=a(5112),h=d("toStringTag");s.exports=function(m,p,g){m&&!u(m=g?m:m.prototype,h)&&c(m,h,{configurable:!0,value:p})}},6200:function(s,l,a){var c=a(2309),u=a(9711),d=c("keys");s.exports=function(h){return d[h]||(d[h]=u(h))}},5465:function(s,l,a){var c=a(7854),u=a(3505),d="__core-js_shared__",h=c[d]||u(d,{});s.exports=h},2309:function(s,l,a){var c=a(1913),u=a(5465);(s.exports=function(d,h){return u[d]||(u[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:c?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,l,a){var c=a(9670),u=a(3099),d=a(5112),h=d("species");s.exports=function(m,p){var g=c(m).constructor,v;return g===void 0||(v=c(g)[h])==null?p:u(v)}},8710:function(s,l,a){var c=a(9958),u=a(4488),d=function(h){return function(m,p){var g=String(u(m)),v=c(p),C=g.length,S,x;return v<0||v>=C?h?"":void 0:(S=g.charCodeAt(v),S<55296||S>56319||v+1===C||(x=g.charCodeAt(v+1))<56320||x>57343?h?g.charAt(v):S:h?g.slice(v,v+2):(S-55296<<10)+(x-56320)+65536)}};s.exports={codeAt:d(!1),charAt:d(!0)}},3197:function(s){var l=2147483647,a=36,c=1,u=26,d=38,h=700,m=72,p=128,g="-",v=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,S="Overflow: input needs wider integers to process",x=a-c,b=Math.floor,D=String.fromCharCode,T=function($){for(var P=[],R=0,H=$.length;R<H;){var Y=$.charCodeAt(R++);if(Y>=55296&&Y<=56319&&R<H){var Z=$.charCodeAt(R++);(Z&64512)==56320?P.push(((Y&1023)<<10)+(Z&1023)+65536):(P.push(Y),R--)}else P.push(Y)}return P},B=function($){return $+22+75*($<26)},F=function($,P,R){var H=0;for($=R?b($/h):$>>1,$+=b($/P);$>x*u>>1;H+=a)$=b($/x);return b(H+(x+1)*$/($+d))},V=function($){var P=[];$=T($);var R=$.length,H=p,Y=0,Z=m,X,oe;for(X=0;X<$.length;X++)oe=$[X],oe<128&&P.push(D(oe));var j=P.length,ce=j;for(j&&P.push(g);ce<R;){var fe=l;for(X=0;X<$.length;X++)oe=$[X],oe>=H&&oe<fe&&(fe=oe);var be=ce+1;if(fe-H>b((l-Y)/be))throw RangeError(S);for(Y+=(fe-H)*be,H=fe,X=0;X<$.length;X++){if(oe=$[X],oe<H&&++Y>l)throw RangeError(S);if(oe==H){for(var we=Y,Ee=a;;Ee+=a){var Ae=Ee<=Z?c:Ee>=Z+u?u:Ee-Z;if(we<Ae)break;var Te=we-Ae,Oe=a-Ae;P.push(D(B(Ae+Te%Oe))),we=b(Te/Oe)}P.push(D(B(we))),Z=F(Y,be,ce==j),Y=0,++ce}}++Y,++H}return P.join("")};s.exports=function($){var P=[],R=$.toLowerCase().replace(C,".").split("."),H,Y;for(H=0;H<R.length;H++)Y=R[H],P.push(v.test(Y)?"xn--"+V(Y):Y);return P.join(".")}},6091:function(s,l,a){var c=a(7293),u=a(1361),d="​…᠎";s.exports=function(h){return c(function(){return!!u[h]()||d[h]()!=d||u[h].name!==h})}},3111:function(s,l,a){var c=a(4488),u=a(1361),d="["+u+"]",h=RegExp("^"+d+d+"*"),m=RegExp(d+d+"*$"),p=function(g){return function(v){var C=String(c(v));return g&1&&(C=C.replace(h,"")),g&2&&(C=C.replace(m,"")),C}};s.exports={start:p(1),end:p(2),trim:p(3)}},1400:function(s,l,a){var c=a(9958),u=Math.max,d=Math.min;s.exports=function(h,m){var p=c(h);return p<0?u(p+m,0):d(p,m)}},7067:function(s,l,a){var c=a(9958),u=a(7466);s.exports=function(d){if(d===void 0)return 0;var h=c(d),m=u(h);if(h!==m)throw RangeError("Wrong length or index");return m}},5656:function(s,l,a){var c=a(8361),u=a(4488);s.exports=function(d){return c(u(d))}},9958:function(s){var l=Math.ceil,a=Math.floor;s.exports=function(c){return isNaN(c=+c)?0:(c>0?a:l)(c)}},7466:function(s,l,a){var c=a(9958),u=Math.min;s.exports=function(d){return d>0?u(c(d),9007199254740991):0}},7908:function(s,l,a){var c=a(4488);s.exports=function(u){return Object(c(u))}},4590:function(s,l,a){var c=a(3002);s.exports=function(u,d){var h=c(u);if(h%d)throw RangeError("Wrong offset");return h}},3002:function(s,l,a){var c=a(9958);s.exports=function(u){var d=c(u);if(d<0)throw RangeError("The argument can't be less than 0");return d}},7593:function(s,l,a){var c=a(111);s.exports=function(u,d){if(!c(u))return u;var h,m;if(d&&typeof(h=u.toString)=="function"&&!c(m=h.call(u))||typeof(h=u.valueOf)=="function"&&!c(m=h.call(u))||!d&&typeof(h=u.toString)=="function"&&!c(m=h.call(u)))return m;throw TypeError("Can't convert object to primitive value")}},1694:function(s,l,a){var c=a(5112),u=c("toStringTag"),d={};d[u]="z",s.exports=String(d)==="[object z]"},9843:function(s,l,a){var c=a(2109),u=a(7854),d=a(9781),h=a(3832),m=a(260),p=a(3331),g=a(5787),v=a(9114),C=a(8880),S=a(7466),x=a(7067),b=a(4590),D=a(7593),T=a(6656),B=a(648),F=a(111),V=a(30),$=a(7674),P=a(8006).f,R=a(7321),H=a(2092).forEach,Y=a(6340),Z=a(3070),X=a(1236),oe=a(9909),j=a(9587),ce=oe.get,fe=oe.set,be=Z.f,we=X.f,Ee=Math.round,Ae=u.RangeError,Te=p.ArrayBuffer,Oe=p.DataView,ve=m.NATIVE_ARRAY_BUFFER_VIEWS,A=m.TYPED_ARRAY_TAG,M=m.TypedArray,w=m.TypedArrayPrototype,O=m.aTypedArrayConstructor,y=m.isTypedArray,E="BYTES_PER_ELEMENT",N="Wrong length",I=function(K,G){for(var q=0,ue=G.length,ge=new(O(K))(ue);ue>q;)ge[q]=G[q++];return ge},_=function(K,G){be(K,G,{get:function(){return ce(this)[G]}})},L=function(K){var G;return K instanceof Te||(G=B(K))=="ArrayBuffer"||G=="SharedArrayBuffer"},z=function(K,G){return y(K)&&typeof G!="symbol"&&G in K&&String(+G)==String(G)},W=function(G,q){return z(G,q=D(q,!0))?v(2,G[q]):we(G,q)},U=function(G,q,ue){return z(G,q=D(q,!0))&&F(ue)&&T(ue,"value")&&!T(ue,"get")&&!T(ue,"set")&&!ue.configurable&&(!T(ue,"writable")||ue.writable)&&(!T(ue,"enumerable")||ue.enumerable)?(G[q]=ue.value,G):be(G,q,ue)};d?(ve||(X.f=W,Z.f=U,_(w,"buffer"),_(w,"byteOffset"),_(w,"byteLength"),_(w,"length")),c({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:W,defineProperty:U}),s.exports=function(K,G,q){var ue=K.match(/\d+$/)[0]/8,ge=K+(q?"Clamped":"")+"Array",Ne="get"+K,Fe="set"+K,$e=u[ge],Ie=$e,Ke=Ie&&Ie.prototype,gt={},tt=function(ae,le){var Ce=ce(ae);return Ce.view[Ne](le*ue+Ce.byteOffset,!0)},Cn=function(ae,le,Ce){var xe=ce(ae);q&&(Ce=(Ce=Ee(Ce))<0?0:Ce>255?255:Ce&255),xe.view[Fe](le*ue+xe.byteOffset,Ce,!0)},J=function(ae,le){be(ae,le,{get:function(){return tt(this,le)},set:function(Ce){return Cn(this,le,Ce)},enumerable:!0})};ve?h&&(Ie=G(function(ae,le,Ce,xe){return g(ae,Ie,ge),j(function(){return F(le)?L(le)?xe!==void 0?new $e(le,b(Ce,ue),xe):Ce!==void 0?new $e(le,b(Ce,ue)):new $e(le):y(le)?I(Ie,le):R.call(Ie,le):new $e(x(le))}(),ae,Ie)}),$&&$(Ie,M),H(P($e),function(ae){ae in Ie||C(Ie,ae,$e[ae])}),Ie.prototype=Ke):(Ie=G(function(ae,le,Ce,xe){g(ae,Ie,ge);var Ve=0,Ue=0,it,st,Xe;if(!F(le))Xe=x(le),st=Xe*ue,it=new Te(st);else if(L(le)){it=le,Ue=b(Ce,ue);var Yt=le.byteLength;if(xe===void 0){if(Yt%ue||(st=Yt-Ue,st<0))throw Ae(N)}else if(st=S(xe)*ue,st+Ue>Yt)throw Ae(N);Xe=st/ue}else return y(le)?I(Ie,le):R.call(Ie,le);for(fe(ae,{buffer:it,byteOffset:Ue,byteLength:st,length:Xe,view:new Oe(it)});Ve<Xe;)J(ae,Ve++)}),$&&$(Ie,M),Ke=Ie.prototype=V(w)),Ke.constructor!==Ie&&C(Ke,"constructor",Ie),A&&C(Ke,A,ge),gt[ge]=Ie,c({global:!0,forced:Ie!=$e,sham:!ve},gt),E in Ie||C(Ie,E,ue),E in Ke||C(Ke,E,ue),Y(ge)}):s.exports=function(){}},3832:function(s,l,a){var c=a(7854),u=a(7293),d=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,m=c.ArrayBuffer,p=c.Int8Array;s.exports=!h||!u(function(){p(1)})||!u(function(){new p(-1)})||!d(function(g){new p,new p(null),new p(1.5),new p(g)},!0)||u(function(){return new p(new m(2),1,void 0).length!==1})},3074:function(s,l,a){var c=a(260).aTypedArrayConstructor,u=a(6707);s.exports=function(d,h){for(var m=u(d,d.constructor),p=0,g=h.length,v=new(c(m))(g);g>p;)v[p]=h[p++];return v}},7321:function(s,l,a){var c=a(7908),u=a(7466),d=a(1246),h=a(7659),m=a(9974),p=a(260).aTypedArrayConstructor;s.exports=function(v){var C=c(v),S=arguments.length,x=S>1?arguments[1]:void 0,b=x!==void 0,D=d(C),T,B,F,V,$,P;if(D!=null&&!h(D))for($=D.call(C),P=$.next,C=[];!(V=P.call($)).done;)C.push(V.value);for(b&&S>2&&(x=m(x,arguments[2],2)),B=u(C.length),F=new(p(this))(B),T=0;B>T;T++)F[T]=b?x(C[T],T):C[T];return F}},9711:function(s){var l=0,a=Math.random();s.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++l+a).toString(36)}},3307:function(s,l,a){var c=a(133);s.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(s,l,a){var c=a(7854),u=a(2309),d=a(6656),h=a(9711),m=a(133),p=a(3307),g=u("wks"),v=c.Symbol,C=p?v:v&&v.withoutSetter||h;s.exports=function(S){return d(g,S)||(m&&d(v,S)?g[S]=v[S]:g[S]=C("Symbol."+S)),g[S]}},1361:function(s){s.exports=`
6
- \v\f\r                 \u2028\u2029\uFEFF`},8264:function(s,l,a){var c=a(2109),u=a(7854),d=a(3331),h=a(6340),m="ArrayBuffer",p=d[m],g=u[m];c({global:!0,forced:g!==p},{ArrayBuffer:p}),h(m)},2222:function(s,l,a){var c=a(2109),u=a(7293),d=a(3157),h=a(111),m=a(7908),p=a(7466),g=a(6135),v=a(5417),C=a(1194),S=a(5112),x=a(7392),b=S("isConcatSpreadable"),D=9007199254740991,T="Maximum allowed index exceeded",B=x>=51||!u(function(){var P=[];return P[b]=!1,P.concat()[0]!==P}),F=C("concat"),V=function(P){if(!h(P))return!1;var R=P[b];return R!==void 0?!!R:d(P)},$=!B||!F;c({target:"Array",proto:!0,forced:$},{concat:function(R){var H=m(this),Y=v(H,0),Z=0,X,oe,j,ce,fe;for(X=-1,j=arguments.length;X<j;X++)if(fe=X===-1?H:arguments[X],V(fe)){if(ce=p(fe.length),Z+ce>D)throw TypeError(T);for(oe=0;oe<ce;oe++,Z++)oe in fe&&g(Y,Z,fe[oe])}else{if(Z>=D)throw TypeError(T);g(Y,Z++,fe)}return Y.length=Z,Y}})},7327:function(s,l,a){var c=a(2109),u=a(2092).filter,d=a(1194),h=d("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,l,a){var c=a(2109),u=a(1318).indexOf,d=a(9341),h=[].indexOf,m=!!h&&1/[1].indexOf(1,-0)<0,p=d("indexOf");c({target:"Array",proto:!0,forced:m||!p},{indexOf:function(v){return m?h.apply(this,arguments)||0:u(this,v,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,l,a){var c=a(5656),u=a(1223),d=a(7497),h=a(9909),m=a(654),p="Array Iterator",g=h.set,v=h.getterFor(p);s.exports=m(Array,"Array",function(C,S){g(this,{type:p,target:c(C),index:0,kind:S})},function(){var C=v(this),S=C.target,x=C.kind,b=C.index++;return!S||b>=S.length?(C.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:b,done:!1}:x=="values"?{value:S[b],done:!1}:{value:[b,S[b]],done:!1}},"values"),d.Arguments=d.Array,u("keys"),u("values"),u("entries")},1249:function(s,l,a){var c=a(2109),u=a(2092).map,d=a(1194),h=d("map");c({target:"Array",proto:!0,forced:!h},{map:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,l,a){var c=a(2109),u=a(111),d=a(3157),h=a(1400),m=a(7466),p=a(5656),g=a(6135),v=a(5112),C=a(1194),S=C("slice"),x=v("species"),b=[].slice,D=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(B,F){var V=p(this),$=m(V.length),P=h(B,$),R=h(F===void 0?$:F,$),H,Y,Z;if(d(V)&&(H=V.constructor,typeof H=="function"&&(H===Array||d(H.prototype))?H=void 0:u(H)&&(H=H[x],H===null&&(H=void 0)),H===Array||H===void 0))return b.call(V,P,R);for(Y=new(H===void 0?Array:H)(D(R-P,0)),Z=0;P<R;P++,Z++)P in V&&g(Y,Z,V[P]);return Y.length=Z,Y}})},561:function(s,l,a){var c=a(2109),u=a(1400),d=a(9958),h=a(7466),m=a(7908),p=a(5417),g=a(6135),v=a(1194),C=v("splice"),S=Math.max,x=Math.min,b=9007199254740991,D="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!C},{splice:function(B,F){var V=m(this),$=h(V.length),P=u(B,$),R=arguments.length,H,Y,Z,X,oe,j;if(R===0?H=Y=0:R===1?(H=0,Y=$-P):(H=R-2,Y=x(S(d(F),0),$-P)),$+H-Y>b)throw TypeError(D);for(Z=p(V,Y),X=0;X<Y;X++)oe=P+X,oe in V&&g(Z,X,V[oe]);if(Z.length=Y,H<Y){for(X=P;X<$-Y;X++)oe=X+Y,j=X+H,oe in V?V[j]=V[oe]:delete V[j];for(X=$;X>$-Y+H;X--)delete V[X-1]}else if(H>Y)for(X=$-Y;X>P;X--)oe=X+Y-1,j=X+H-1,oe in V?V[j]=V[oe]:delete V[j];for(X=0;X<H;X++)V[X+P]=arguments[X+2];return V.length=$-Y+H,Z}})},8309:function(s,l,a){var c=a(9781),u=a(3070).f,d=Function.prototype,h=d.toString,m=/^\s*function ([^ (]*)/,p="name";c&&!(p in d)&&u(d,p,{configurable:!0,get:function(){try{return h.call(this).match(m)[1]}catch{return""}}})},489:function(s,l,a){var c=a(2109),u=a(7293),d=a(7908),h=a(9518),m=a(8544),p=u(function(){h(1)});c({target:"Object",stat:!0,forced:p,sham:!m},{getPrototypeOf:function(v){return h(d(v))}})},1539:function(s,l,a){var c=a(1694),u=a(1320),d=a(288);c||u(Object.prototype,"toString",d,{unsafe:!0})},4916:function(s,l,a){var c=a(2109),u=a(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,l,a){var c=a(1320),u=a(9670),d=a(7293),h=a(7066),m="toString",p=RegExp.prototype,g=p[m],v=d(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=m;(v||C)&&c(RegExp.prototype,m,function(){var x=u(this),b=String(x.source),D=x.flags,T=String(D===void 0&&x instanceof RegExp&&!("flags"in p)?h.call(x):D);return"/"+b+"/"+T},{unsafe:!0})},8783:function(s,l,a){var c=a(8710).charAt,u=a(9909),d=a(654),h="String Iterator",m=u.set,p=u.getterFor(h);d(String,"String",function(g){m(this,{type:h,string:String(g),index:0})},function(){var v=p(this),C=v.string,S=v.index,x;return S>=C.length?{value:void 0,done:!0}:(x=c(C,S),v.index+=x.length,{value:x,done:!1})})},4723:function(s,l,a){var c=a(7007),u=a(9670),d=a(7466),h=a(4488),m=a(1530),p=a(7651);c("match",1,function(g,v,C){return[function(x){var b=h(this),D=x==null?void 0:x[g];return D!==void 0?D.call(x,b):new RegExp(x)[g](String(b))},function(S){var x=C(v,S,this);if(x.done)return x.value;var b=u(S),D=String(this);if(!b.global)return p(b,D);var T=b.unicode;b.lastIndex=0;for(var B=[],F=0,V;(V=p(b,D))!==null;){var $=String(V[0]);B[F]=$,$===""&&(b.lastIndex=m(D,d(b.lastIndex),T)),F++}return F===0?null:B}]})},5306:function(s,l,a){var c=a(7007),u=a(9670),d=a(7466),h=a(9958),m=a(4488),p=a(1530),g=a(647),v=a(7651),C=Math.max,S=Math.min,x=function(b){return b===void 0?b:String(b)};c("replace",2,function(b,D,T,B){var F=B.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,V=B.REPLACE_KEEPS_$0,$=F?"$":"$0";return[function(R,H){var Y=m(this),Z=R==null?void 0:R[b];return Z!==void 0?Z.call(R,Y,H):D.call(String(Y),R,H)},function(P,R){if(!F&&V||typeof R=="string"&&R.indexOf($)===-1){var H=T(D,P,this,R);if(H.done)return H.value}var Y=u(P),Z=String(this),X=typeof R=="function";X||(R=String(R));var oe=Y.global;if(oe){var j=Y.unicode;Y.lastIndex=0}for(var ce=[];;){var fe=v(Y,Z);if(fe===null||(ce.push(fe),!oe))break;var be=String(fe[0]);be===""&&(Y.lastIndex=p(Z,d(Y.lastIndex),j))}for(var we="",Ee=0,Ae=0;Ae<ce.length;Ae++){fe=ce[Ae];for(var Te=String(fe[0]),Oe=C(S(h(fe.index),Z.length),0),ve=[],A=1;A<fe.length;A++)ve.push(x(fe[A]));var M=fe.groups;if(X){var w=[Te].concat(ve,Oe,Z);M!==void 0&&w.push(M);var O=String(R.apply(void 0,w))}else O=g(Te,Z,Oe,ve,M,R);Oe>=Ee&&(we+=Z.slice(Ee,Oe)+O,Ee=Oe+Te.length)}return we+Z.slice(Ee)}]})},3123:function(s,l,a){var c=a(7007),u=a(7850),d=a(9670),h=a(4488),m=a(6707),p=a(1530),g=a(7466),v=a(7651),C=a(2261),S=a(7293),x=[].push,b=Math.min,D=4294967295,T=!S(function(){return!RegExp(D,"y")});c("split",2,function(B,F,V){var $;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?$=function(P,R){var H=String(h(this)),Y=R===void 0?D:R>>>0;if(Y===0)return[];if(P===void 0)return[H];if(!u(P))return F.call(H,P,Y);for(var Z=[],X=(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")+(P.sticky?"y":""),oe=0,j=new RegExp(P.source,X+"g"),ce,fe,be;(ce=C.call(j,H))&&(fe=j.lastIndex,!(fe>oe&&(Z.push(H.slice(oe,ce.index)),ce.length>1&&ce.index<H.length&&x.apply(Z,ce.slice(1)),be=ce[0].length,oe=fe,Z.length>=Y)));)j.lastIndex===ce.index&&j.lastIndex++;return oe===H.length?(be||!j.test(""))&&Z.push(""):Z.push(H.slice(oe)),Z.length>Y?Z.slice(0,Y):Z}:"0".split(void 0,0).length?$=function(P,R){return P===void 0&&R===0?[]:F.call(this,P,R)}:$=F,[function(R,H){var Y=h(this),Z=R==null?void 0:R[B];return Z!==void 0?Z.call(R,Y,H):$.call(String(Y),R,H)},function(P,R){var H=V($,P,this,R,$!==F);if(H.done)return H.value;var Y=d(P),Z=String(this),X=m(Y,RegExp),oe=Y.unicode,j=(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")+(T?"y":"g"),ce=new X(T?Y:"^(?:"+Y.source+")",j),fe=R===void 0?D:R>>>0;if(fe===0)return[];if(Z.length===0)return v(ce,Z)===null?[Z]:[];for(var be=0,we=0,Ee=[];we<Z.length;){ce.lastIndex=T?we:0;var Ae=v(ce,T?Z:Z.slice(we)),Te;if(Ae===null||(Te=b(g(ce.lastIndex+(T?0:we)),Z.length))===be)we=p(Z,we,oe);else{if(Ee.push(Z.slice(be,we)),Ee.length===fe)return Ee;for(var Oe=1;Oe<=Ae.length-1;Oe++)if(Ee.push(Ae[Oe]),Ee.length===fe)return Ee;we=be=Te}}return Ee.push(Z.slice(be)),Ee}]},!T)},3210:function(s,l,a){var c=a(2109),u=a(3111).trim,d=a(6091);c({target:"String",proto:!0,forced:d("trim")},{trim:function(){return u(this)}})},2990:function(s,l,a){var c=a(260),u=a(1048),d=c.aTypedArray,h=c.exportTypedArrayMethod;h("copyWithin",function(p,g){return u.call(d(this),p,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,l,a){var c=a(260),u=a(2092).every,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("every",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(s,l,a){var c=a(260),u=a(1285),d=c.aTypedArray,h=c.exportTypedArrayMethod;h("fill",function(p){return u.apply(d(this),arguments)})},5035:function(s,l,a){var c=a(260),u=a(2092).filter,d=a(3074),h=c.aTypedArray,m=c.exportTypedArrayMethod;m("filter",function(g){var v=u(h(this),g,arguments.length>1?arguments[1]:void 0);return d(this,v)})},7174:function(s,l,a){var c=a(260),u=a(2092).findIndex,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("findIndex",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(s,l,a){var c=a(260),u=a(2092).find,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("find",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(s,l,a){var c=a(260),u=a(2092).forEach,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("forEach",function(p){u(d(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(s,l,a){var c=a(260),u=a(1318).includes,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("includes",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(s,l,a){var c=a(260),u=a(1318).indexOf,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("indexOf",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(s,l,a){var c=a(7854),u=a(260),d=a(6992),h=a(5112),m=h("iterator"),p=c.Uint8Array,g=d.values,v=d.keys,C=d.entries,S=u.aTypedArray,x=u.exportTypedArrayMethod,b=p&&p.prototype[m],D=!!b&&(b.name=="values"||b.name==null),T=function(){return g.call(S(this))};x("entries",function(){return C.call(S(this))}),x("keys",function(){return v.call(S(this))}),x("values",T,!D),x(m,T,!D)},8867:function(s,l,a){var c=a(260),u=c.aTypedArray,d=c.exportTypedArrayMethod,h=[].join;d("join",function(p){return h.apply(u(this),arguments)})},7789:function(s,l,a){var c=a(260),u=a(6583),d=c.aTypedArray,h=c.exportTypedArrayMethod;h("lastIndexOf",function(p){return u.apply(d(this),arguments)})},3739:function(s,l,a){var c=a(260),u=a(2092).map,d=a(6707),h=c.aTypedArray,m=c.aTypedArrayConstructor,p=c.exportTypedArrayMethod;p("map",function(v){return u(h(this),v,arguments.length>1?arguments[1]:void 0,function(C,S){return new(m(d(C,C.constructor)))(S)})})},4483:function(s,l,a){var c=a(260),u=a(3671).right,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduceRight",function(p){return u(d(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,l,a){var c=a(260),u=a(3671).left,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduce",function(p){return u(d(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,l,a){var c=a(260),u=c.aTypedArray,d=c.exportTypedArrayMethod,h=Math.floor;d("reverse",function(){for(var p=this,g=u(p).length,v=h(g/2),C=0,S;C<v;)S=p[C],p[C++]=p[--g],p[g]=S;return p})},3462:function(s,l,a){var c=a(260),u=a(7466),d=a(4590),h=a(7908),m=a(7293),p=c.aTypedArray,g=c.exportTypedArrayMethod,v=m(function(){new Int8Array(1).set({})});g("set",function(S){p(this);var x=d(arguments.length>1?arguments[1]:void 0,1),b=this.length,D=h(S),T=u(D.length),B=0;if(T+x>b)throw RangeError("Wrong length");for(;B<T;)this[x+B]=D[B++]},v)},678:function(s,l,a){var c=a(260),u=a(6707),d=a(7293),h=c.aTypedArray,m=c.aTypedArrayConstructor,p=c.exportTypedArrayMethod,g=[].slice,v=d(function(){new Int8Array(1).slice()});p("slice",function(S,x){for(var b=g.call(h(this),S,x),D=u(this,this.constructor),T=0,B=b.length,F=new(m(D))(B);B>T;)F[T]=b[T++];return F},v)},7462:function(s,l,a){var c=a(260),u=a(2092).some,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("some",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(s,l,a){var c=a(260),u=c.aTypedArray,d=c.exportTypedArrayMethod,h=[].sort;d("sort",function(p){return h.call(u(this),p)})},5021:function(s,l,a){var c=a(260),u=a(7466),d=a(1400),h=a(6707),m=c.aTypedArray,p=c.exportTypedArrayMethod;p("subarray",function(v,C){var S=m(this),x=S.length,b=d(v,x);return new(h(S,S.constructor))(S.buffer,S.byteOffset+b*S.BYTES_PER_ELEMENT,u((C===void 0?x:d(C,x))-b))})},2974:function(s,l,a){var c=a(7854),u=a(260),d=a(7293),h=c.Int8Array,m=u.aTypedArray,p=u.exportTypedArrayMethod,g=[].toLocaleString,v=[].slice,C=!!h&&d(function(){g.call(new h(1))}),S=d(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!d(function(){h.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return g.apply(C?v.call(m(this)):m(this),arguments)},S)},5016:function(s,l,a){var c=a(260).exportTypedArrayMethod,u=a(7293),d=a(7854),h=d.Uint8Array,m=h&&h.prototype||{},p=[].toString,g=[].join;u(function(){p.call({})})&&(p=function(){return g.call(this)});var v=m.toString!=p;c("toString",p,v)},2472:function(s,l,a){var c=a(9843);c("Uint8",function(u){return function(h,m,p){return u(this,h,m,p)}})},4747:function(s,l,a){var c=a(7854),u=a(8324),d=a(8533),h=a(8880);for(var m in u){var p=c[m],g=p&&p.prototype;if(g&&g.forEach!==d)try{h(g,"forEach",d)}catch{g.forEach=d}}},3948:function(s,l,a){var c=a(7854),u=a(8324),d=a(6992),h=a(8880),m=a(5112),p=m("iterator"),g=m("toStringTag"),v=d.values;for(var C in u){var S=c[C],x=S&&S.prototype;if(x){if(x[p]!==v)try{h(x,p,v)}catch{x[p]=v}if(x[g]||h(x,g,C),u[C]){for(var b in d)if(x[b]!==d[b])try{h(x,b,d[b])}catch{x[b]=d[b]}}}}},1637:function(s,l,a){a(6992);var c=a(2109),u=a(5005),d=a(590),h=a(1320),m=a(2248),p=a(8003),g=a(4994),v=a(9909),C=a(5787),S=a(6656),x=a(9974),b=a(648),D=a(9670),T=a(111),B=a(30),F=a(9114),V=a(8554),$=a(1246),P=a(5112),R=u("fetch"),H=u("Headers"),Y=P("iterator"),Z="URLSearchParams",X=Z+"Iterator",oe=v.set,j=v.getterFor(Z),ce=v.getterFor(X),fe=/\+/g,be=Array(4),we=function(I){return be[I-1]||(be[I-1]=RegExp("((?:%[\\da-f]{2}){"+I+"})","gi"))},Ee=function(I){try{return decodeURIComponent(I)}catch{return I}},Ae=function(I){var _=I.replace(fe," "),L=4;try{return decodeURIComponent(_)}catch{for(;L;)_=_.replace(we(L--),Ee);return _}},Te=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(I){return Oe[I]},A=function(I){return encodeURIComponent(I).replace(Te,ve)},M=function(I,_){if(_)for(var L=_.split("&"),z=0,W,U;z<L.length;)W=L[z++],W.length&&(U=W.split("="),I.push({key:Ae(U.shift()),value:Ae(U.join("="))}))},w=function(I){this.entries.length=0,M(this.entries,I)},O=function(I,_){if(I<_)throw TypeError("Not enough arguments")},y=g(function(_,L){oe(this,{type:X,iterator:V(j(_).entries),kind:L})},"Iterator",function(){var _=ce(this),L=_.kind,z=_.iterator.next(),W=z.value;return z.done||(z.value=L==="keys"?W.key:L==="values"?W.value:[W.key,W.value]),z}),E=function(){C(this,E,Z);var _=arguments.length>0?arguments[0]:void 0,L=this,z=[],W,U,K,G,q,ue,ge,Ne,Fe;if(oe(L,{type:Z,entries:z,updateURL:function(){},updateSearchParams:w}),_!==void 0)if(T(_))if(W=$(_),typeof W=="function")for(U=W.call(_),K=U.next;!(G=K.call(U)).done;){if(q=V(D(G.value)),ue=q.next,(ge=ue.call(q)).done||(Ne=ue.call(q)).done||!ue.call(q).done)throw TypeError("Expected sequence with length 2");z.push({key:ge.value+"",value:Ne.value+""})}else for(Fe in _)S(_,Fe)&&z.push({key:Fe,value:_[Fe]+""});else M(z,typeof _=="string"?_.charAt(0)==="?"?_.slice(1):_:_+"")},N=E.prototype;m(N,{append:function(_,L){O(arguments.length,2);var z=j(this);z.entries.push({key:_+"",value:L+""}),z.updateURL()},delete:function(I){O(arguments.length,1);for(var _=j(this),L=_.entries,z=I+"",W=0;W<L.length;)L[W].key===z?L.splice(W,1):W++;_.updateURL()},get:function(_){O(arguments.length,1);for(var L=j(this).entries,z=_+"",W=0;W<L.length;W++)if(L[W].key===z)return L[W].value;return null},getAll:function(_){O(arguments.length,1);for(var L=j(this).entries,z=_+"",W=[],U=0;U<L.length;U++)L[U].key===z&&W.push(L[U].value);return W},has:function(_){O(arguments.length,1);for(var L=j(this).entries,z=_+"",W=0;W<L.length;)if(L[W++].key===z)return!0;return!1},set:function(_,L){O(arguments.length,1);for(var z=j(this),W=z.entries,U=!1,K=_+"",G=L+"",q=0,ue;q<W.length;q++)ue=W[q],ue.key===K&&(U?W.splice(q--,1):(U=!0,ue.value=G));U||W.push({key:K,value:G}),z.updateURL()},sort:function(){var _=j(this),L=_.entries,z=L.slice(),W,U,K;for(L.length=0,K=0;K<z.length;K++){for(W=z[K],U=0;U<K;U++)if(L[U].key>W.key){L.splice(U,0,W);break}U===K&&L.push(W)}_.updateURL()},forEach:function(_){for(var L=j(this).entries,z=x(_,arguments.length>1?arguments[1]:void 0,3),W=0,U;W<L.length;)U=L[W++],z(U.value,U.key,this)},keys:function(){return new y(this,"keys")},values:function(){return new y(this,"values")},entries:function(){return new y(this,"entries")}},{enumerable:!0}),h(N,Y,N.entries),h(N,"toString",function(){for(var _=j(this).entries,L=[],z=0,W;z<_.length;)W=_[z++],L.push(A(W.key)+"="+A(W.value));return L.join("&")},{enumerable:!0}),p(E,Z),c({global:!0,forced:!d},{URLSearchParams:E}),!d&&typeof R=="function"&&typeof H=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(_){var L=[_],z,W,U;return arguments.length>1&&(z=arguments[1],T(z)&&(W=z.body,b(W)===Z&&(U=z.headers?new H(z.headers):new H,U.has("content-type")||U.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),z=B(z,{body:F(0,String(W)),headers:F(0,U)}))),L.push(z)),R.apply(this,L)}}),s.exports={URLSearchParams:E,getState:j}},285:function(s,l,a){a(8783);var c=a(2109),u=a(9781),d=a(590),h=a(7854),m=a(6048),p=a(1320),g=a(5787),v=a(6656),C=a(1574),S=a(8457),x=a(8710).codeAt,b=a(3197),D=a(8003),T=a(1637),B=a(9909),F=h.URL,V=T.URLSearchParams,$=T.getState,P=B.set,R=B.getterFor("URL"),H=Math.floor,Y=Math.pow,Z="Invalid authority",X="Invalid scheme",oe="Invalid host",j="Invalid port",ce=/[A-Za-z]/,fe=/[\d+-.A-Za-z]/,be=/\d/,we=/^(0x|0X)/,Ee=/^[0-7]+$/,Ae=/^\d+$/,Te=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,A=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,w,O=function(k,ee){var Q,te,ie;if(ee.charAt(0)=="["){if(ee.charAt(ee.length-1)!="]"||(Q=E(ee.slice(1,-1)),!Q))return oe;k.host=Q}else if(G(k)){if(ee=b(ee),Oe.test(ee)||(Q=y(ee),Q===null))return oe;k.host=Q}else{if(ve.test(ee))return oe;for(Q="",te=S(ee),ie=0;ie<te.length;ie++)Q+=U(te[ie],_);k.host=Q}},y=function(k){var ee=k.split("."),Q,te,ie,ke,pe,Re,He;if(ee.length&&ee[ee.length-1]==""&&ee.pop(),Q=ee.length,Q>4)return k;for(te=[],ie=0;ie<Q;ie++){if(ke=ee[ie],ke=="")return k;if(pe=10,ke.length>1&&ke.charAt(0)=="0"&&(pe=we.test(ke)?16:8,ke=ke.slice(pe==8?1:2)),ke==="")Re=0;else{if(!(pe==10?Ae:pe==8?Ee:Te).test(ke))return k;Re=parseInt(ke,pe)}te.push(Re)}for(ie=0;ie<Q;ie++)if(Re=te[ie],ie==Q-1){if(Re>=Y(256,5-Q))return null}else if(Re>255)return null;for(He=te.pop(),ie=0;ie<te.length;ie++)He+=te[ie]*Y(256,3-ie);return He},E=function(k){var ee=[0,0,0,0,0,0,0,0],Q=0,te=null,ie=0,ke,pe,Re,He,je,It,re,Ye=function(){return k.charAt(ie)};if(Ye()==":"){if(k.charAt(1)!=":")return;ie+=2,Q++,te=Q}for(;Ye();){if(Q==8)return;if(Ye()==":"){if(te!==null)return;ie++,Q++,te=Q;continue}for(ke=pe=0;pe<4&&Te.test(Ye());)ke=ke*16+parseInt(Ye(),16),ie++,pe++;if(Ye()=="."){if(pe==0||(ie-=pe,Q>6))return;for(Re=0;Ye();){if(He=null,Re>0)if(Ye()=="."&&Re<4)ie++;else return;if(!be.test(Ye()))return;for(;be.test(Ye());){if(je=parseInt(Ye(),10),He===null)He=je;else{if(He==0)return;He=He*10+je}if(He>255)return;ie++}ee[Q]=ee[Q]*256+He,Re++,(Re==2||Re==4)&&Q++}if(Re!=4)return;break}else if(Ye()==":"){if(ie++,!Ye())return}else if(Ye())return;ee[Q++]=ke}if(te!==null)for(It=Q-te,Q=7;Q!=0&&It>0;)re=ee[Q],ee[Q--]=ee[te+It-1],ee[te+--It]=re;else if(Q!=8)return;return ee},N=function(k){for(var ee=null,Q=1,te=null,ie=0,ke=0;ke<8;ke++)k[ke]!==0?(ie>Q&&(ee=te,Q=ie),te=null,ie=0):(te===null&&(te=ke),++ie);return ie>Q&&(ee=te,Q=ie),ee},I=function(k){var ee,Q,te,ie;if(typeof k=="number"){for(ee=[],Q=0;Q<4;Q++)ee.unshift(k%256),k=H(k/256);return ee.join(".")}else if(typeof k=="object"){for(ee="",te=N(k),Q=0;Q<8;Q++)ie&&k[Q]===0||(ie&&(ie=!1),te===Q?(ee+=Q?":":"::",ie=!0):(ee+=k[Q].toString(16),Q<7&&(ee+=":")));return"["+ee+"]"}return k},_={},L=C({},_,{" ":1,'"':1,"<":1,">":1,"`":1}),z=C({},L,{"#":1,"?":1,"{":1,"}":1}),W=C({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),U=function(k,ee){var Q=x(k,0);return Q>32&&Q<127&&!v(ee,k)?k:encodeURIComponent(k)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(k){return v(K,k.scheme)},q=function(k){return k.username!=""||k.password!=""},ue=function(k){return!k.host||k.cannotBeABaseURL||k.scheme=="file"},ge=function(k,ee){var Q;return k.length==2&&ce.test(k.charAt(0))&&((Q=k.charAt(1))==":"||!ee&&Q=="|")},Ne=function(k){var ee;return k.length>1&&ge(k.slice(0,2))&&(k.length==2||(ee=k.charAt(2))==="/"||ee==="\\"||ee==="?"||ee==="#")},Fe=function(k){var ee=k.path,Q=ee.length;Q&&(k.scheme!="file"||Q!=1||!ge(ee[0],!0))&&ee.pop()},$e=function(k){return k==="."||k.toLowerCase()==="%2e"},Ie=function(k){return k=k.toLowerCase(),k===".."||k==="%2e."||k===".%2e"||k==="%2e%2e"},Ke={},gt={},tt={},Cn={},J={},ae={},le={},Ce={},xe={},Ve={},Ue={},it={},st={},Xe={},Yt={},Sn={},Ct={},Ot={},Er={},Mt={},cn={},Jt=function(k,ee,Q,te){var ie=Q||Ke,ke=0,pe="",Re=!1,He=!1,je=!1,It,re,Ye,un;for(Q||(k.scheme="",k.username="",k.password="",k.host=null,k.port=null,k.path=[],k.query=null,k.fragment=null,k.cannotBeABaseURL=!1,ee=ee.replace(A,"")),ee=ee.replace(M,""),It=S(ee);ke<=It.length;){switch(re=It[ke],ie){case Ke:if(re&&ce.test(re))pe+=re.toLowerCase(),ie=gt;else{if(Q)return X;ie=tt;continue}break;case gt:if(re&&(fe.test(re)||re=="+"||re=="-"||re=="."))pe+=re.toLowerCase();else if(re==":"){if(Q&&(G(k)!=v(K,pe)||pe=="file"&&(q(k)||k.port!==null)||k.scheme=="file"&&!k.host))return;if(k.scheme=pe,Q){G(k)&&K[k.scheme]==k.port&&(k.port=null);return}pe="",k.scheme=="file"?ie=Xe:G(k)&&te&&te.scheme==k.scheme?ie=Cn:G(k)?ie=Ce:It[ke+1]=="/"?(ie=J,ke++):(k.cannotBeABaseURL=!0,k.path.push(""),ie=Er)}else{if(Q)return X;pe="",ie=tt,ke=0;continue}break;case tt:if(!te||te.cannotBeABaseURL&&re!="#")return X;if(te.cannotBeABaseURL&&re=="#"){k.scheme=te.scheme,k.path=te.path.slice(),k.query=te.query,k.fragment="",k.cannotBeABaseURL=!0,ie=cn;break}ie=te.scheme=="file"?Xe:ae;continue;case Cn:if(re=="/"&&It[ke+1]=="/")ie=xe,ke++;else{ie=ae;continue}break;case J:if(re=="/"){ie=Ve;break}else{ie=Ot;continue}case ae:if(k.scheme=te.scheme,re==w)k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.query=te.query;else if(re=="/"||re=="\\"&&G(k))ie=le;else if(re=="?")k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.query="",ie=Mt;else if(re=="#")k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.query=te.query,k.fragment="",ie=cn;else{k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.path.pop(),ie=Ot;continue}break;case le:if(G(k)&&(re=="/"||re=="\\"))ie=xe;else if(re=="/")ie=Ve;else{k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,ie=Ot;continue}break;case Ce:if(ie=xe,re!="/"||pe.charAt(ke+1)!="/")continue;ke++;break;case xe:if(re!="/"&&re!="\\"){ie=Ve;continue}break;case Ve:if(re=="@"){Re&&(pe="%40"+pe),Re=!0,Ye=S(pe);for(var Qs=0;Qs<Ye.length;Qs++){var Yc=Ye[Qs];if(Yc==":"&&!je){je=!0;continue}var Jc=U(Yc,W);je?k.password+=Jc:k.username+=Jc}pe=""}else if(re==w||re=="/"||re=="?"||re=="#"||re=="\\"&&G(k)){if(Re&&pe=="")return Z;ke-=S(pe).length+1,pe="",ie=Ue}else pe+=re;break;case Ue:case it:if(Q&&k.scheme=="file"){ie=Sn;continue}else if(re==":"&&!He){if(pe=="")return oe;if(un=O(k,pe),un)return un;if(pe="",ie=st,Q==it)return}else if(re==w||re=="/"||re=="?"||re=="#"||re=="\\"&&G(k)){if(G(k)&&pe=="")return oe;if(Q&&pe==""&&(q(k)||k.port!==null))return;if(un=O(k,pe),un)return un;if(pe="",ie=Ct,Q)return;continue}else re=="["?He=!0:re=="]"&&(He=!1),pe+=re;break;case st:if(be.test(re))pe+=re;else if(re==w||re=="/"||re=="?"||re=="#"||re=="\\"&&G(k)||Q){if(pe!=""){var qs=parseInt(pe,10);if(qs>65535)return j;k.port=G(k)&&qs===K[k.scheme]?null:qs,pe=""}if(Q)return;ie=Ct;continue}else return j;break;case Xe:if(k.scheme="file",re=="/"||re=="\\")ie=Yt;else if(te&&te.scheme=="file")if(re==w)k.host=te.host,k.path=te.path.slice(),k.query=te.query;else if(re=="?")k.host=te.host,k.path=te.path.slice(),k.query="",ie=Mt;else if(re=="#")k.host=te.host,k.path=te.path.slice(),k.query=te.query,k.fragment="",ie=cn;else{Ne(It.slice(ke).join(""))||(k.host=te.host,k.path=te.path.slice(),Fe(k)),ie=Ot;continue}else{ie=Ot;continue}break;case Yt:if(re=="/"||re=="\\"){ie=Sn;break}te&&te.scheme=="file"&&!Ne(It.slice(ke).join(""))&&(ge(te.path[0],!0)?k.path.push(te.path[0]):k.host=te.host),ie=Ot;continue;case Sn:if(re==w||re=="/"||re=="\\"||re=="?"||re=="#"){if(!Q&&ge(pe))ie=Ot;else if(pe==""){if(k.host="",Q)return;ie=Ct}else{if(un=O(k,pe),un)return un;if(k.host=="localhost"&&(k.host=""),Q)return;pe="",ie=Ct}continue}else pe+=re;break;case Ct:if(G(k)){if(ie=Ot,re!="/"&&re!="\\")continue}else if(!Q&&re=="?")k.query="",ie=Mt;else if(!Q&&re=="#")k.fragment="",ie=cn;else if(re!=w&&(ie=Ot,re!="/"))continue;break;case Ot:if(re==w||re=="/"||re=="\\"&&G(k)||!Q&&(re=="?"||re=="#")){if(Ie(pe)?(Fe(k),re!="/"&&!(re=="\\"&&G(k))&&k.path.push("")):$e(pe)?re!="/"&&!(re=="\\"&&G(k))&&k.path.push(""):(k.scheme=="file"&&!k.path.length&&ge(pe)&&(k.host&&(k.host=""),pe=pe.charAt(0)+":"),k.path.push(pe)),pe="",k.scheme=="file"&&(re==w||re=="?"||re=="#"))for(;k.path.length>1&&k.path[0]==="";)k.path.shift();re=="?"?(k.query="",ie=Mt):re=="#"&&(k.fragment="",ie=cn)}else pe+=U(re,z);break;case Er:re=="?"?(k.query="",ie=Mt):re=="#"?(k.fragment="",ie=cn):re!=w&&(k.path[0]+=U(re,_));break;case Mt:!Q&&re=="#"?(k.fragment="",ie=cn):re!=w&&(re=="'"&&G(k)?k.query+="%27":re=="#"?k.query+="%23":k.query+=U(re,_));break;case cn:re!=w&&(k.fragment+=U(re,L));break}ke++}},Gn=function(ee){var Q=g(this,Gn,"URL"),te=arguments.length>1?arguments[1]:void 0,ie=String(ee),ke=P(Q,{type:"URL"}),pe,Re;if(te!==void 0){if(te instanceof Gn)pe=R(te);else if(Re=Jt(pe={},String(te)),Re)throw TypeError(Re)}if(Re=Jt(ke,ie,null,pe),Re)throw TypeError(Re);var He=ke.searchParams=new V,je=$(He);je.updateSearchParams(ke.query),je.updateURL=function(){ke.query=String(He)||null},u||(Q.href=Zo.call(Q),Q.origin=Rc.call(Q),Q.protocol=Pc.call(Q),Q.username=Bc.call(Q),Q.password=$c.call(Q),Q.host=Fc.call(Q),Q.hostname=Vc.call(Q),Q.port=zc.call(Q),Q.pathname=Hc.call(Q),Q.search=Uc.call(Q),Q.searchParams=jc.call(Q),Q.hash=Wc.call(Q))},Xs=Gn.prototype,Zo=function(){var k=R(this),ee=k.scheme,Q=k.username,te=k.password,ie=k.host,ke=k.port,pe=k.path,Re=k.query,He=k.fragment,je=ee+":";return ie!==null?(je+="//",q(k)&&(je+=Q+(te?":"+te:"")+"@"),je+=I(ie),ke!==null&&(je+=":"+ke)):ee=="file"&&(je+="//"),je+=k.cannotBeABaseURL?pe[0]:pe.length?"/"+pe.join("/"):"",Re!==null&&(je+="?"+Re),He!==null&&(je+="#"+He),je},Rc=function(){var k=R(this),ee=k.scheme,Q=k.port;if(ee=="blob")try{return new URL(ee.path[0]).origin}catch{return"null"}return ee=="file"||!G(k)?"null":ee+"://"+I(k.host)+(Q!==null?":"+Q:"")},Pc=function(){return R(this).scheme+":"},Bc=function(){return R(this).username},$c=function(){return R(this).password},Fc=function(){var k=R(this),ee=k.host,Q=k.port;return ee===null?"":Q===null?I(ee):I(ee)+":"+Q},Vc=function(){var k=R(this).host;return k===null?"":I(k)},zc=function(){var k=R(this).port;return k===null?"":String(k)},Hc=function(){var k=R(this),ee=k.path;return k.cannotBeABaseURL?ee[0]:ee.length?"/"+ee.join("/"):""},Uc=function(){var k=R(this).query;return k?"?"+k:""},jc=function(){return R(this).searchParams},Wc=function(){var k=R(this).fragment;return k?"#"+k:""},Nt=function(k,ee){return{get:k,set:ee,configurable:!0,enumerable:!0}};if(u&&m(Xs,{href:Nt(Zo,function(k){var ee=R(this),Q=String(k),te=Jt(ee,Q);if(te)throw TypeError(te);$(ee.searchParams).updateSearchParams(ee.query)}),origin:Nt(Rc),protocol:Nt(Pc,function(k){var ee=R(this);Jt(ee,String(k)+":",Ke)}),username:Nt(Bc,function(k){var ee=R(this),Q=S(String(k));if(!ue(ee)){ee.username="";for(var te=0;te<Q.length;te++)ee.username+=U(Q[te],W)}}),password:Nt($c,function(k){var ee=R(this),Q=S(String(k));if(!ue(ee)){ee.password="";for(var te=0;te<Q.length;te++)ee.password+=U(Q[te],W)}}),host:Nt(Fc,function(k){var ee=R(this);ee.cannotBeABaseURL||Jt(ee,String(k),Ue)}),hostname:Nt(Vc,function(k){var ee=R(this);ee.cannotBeABaseURL||Jt(ee,String(k),it)}),port:Nt(zc,function(k){var ee=R(this);ue(ee)||(k=String(k),k==""?ee.port=null:Jt(ee,k,st))}),pathname:Nt(Hc,function(k){var ee=R(this);ee.cannotBeABaseURL||(ee.path=[],Jt(ee,k+"",Ct))}),search:Nt(Uc,function(k){var ee=R(this);k=String(k),k==""?ee.query=null:(k.charAt(0)=="?"&&(k=k.slice(1)),ee.query="",Jt(ee,k,Mt)),$(ee.searchParams).updateSearchParams(ee.query)}),searchParams:Nt(jc),hash:Nt(Wc,function(k){var ee=R(this);if(k=String(k),k==""){ee.fragment=null;return}k.charAt(0)=="#"&&(k=k.slice(1)),ee.fragment="",Jt(ee,k,cn)})}),p(Xs,"toJSON",function(){return Zo.call(this)},{enumerable:!0}),p(Xs,"toString",function(){return Zo.call(this)},{enumerable:!0}),F){var Kc=F.createObjectURL,Gc=F.revokeObjectURL;Kc&&p(Gn,"createObjectURL",function(ee){return Kc.apply(F,arguments)}),Gc&&p(Gn,"revokeObjectURL",function(ee){return Gc.apply(F,arguments)})}D(Gn,"URL"),c({global:!0,forced:!d,sham:!u},{URL:Gn})}},r={};function o(s){if(r[s])return r[s].exports;var l=r[s]={exports:{}};return t[s](l,l.exports,o),l.exports}(function(){o.d=function(s,l){for(var a in l)o.o(l,a)&&!o.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:l[a]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{Dropzone:function(){return j},default:function(){return ve}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(A,M){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=l(A))||M&&A&&typeof A.length=="number"){w&&(A=w);var O=0,y=function(){};return{s:y,n:function(){return O>=A.length?{done:!0}:{done:!1,value:A[O++]}},e:function(L){throw L},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ \v\f\r                 \u2028\u2029\uFEFF`},8264:function(s,l,a){var c=a(2109),u=a(7854),d=a(3331),h=a(6340),m="ArrayBuffer",p=d[m],g=u[m];c({global:!0,forced:g!==p},{ArrayBuffer:p}),h(m)},2222:function(s,l,a){var c=a(2109),u=a(7293),d=a(3157),h=a(111),m=a(7908),p=a(7466),g=a(6135),v=a(5417),C=a(1194),S=a(5112),x=a(7392),b=S("isConcatSpreadable"),D=9007199254740991,T="Maximum allowed index exceeded",B=x>=51||!u(function(){var P=[];return P[b]=!1,P.concat()[0]!==P}),F=C("concat"),V=function(P){if(!h(P))return!1;var R=P[b];return R!==void 0?!!R:d(P)},$=!B||!F;c({target:"Array",proto:!0,forced:$},{concat:function(R){var H=m(this),Y=v(H,0),Z=0,X,oe,j,ce,fe;for(X=-1,j=arguments.length;X<j;X++)if(fe=X===-1?H:arguments[X],V(fe)){if(ce=p(fe.length),Z+ce>D)throw TypeError(T);for(oe=0;oe<ce;oe++,Z++)oe in fe&&g(Y,Z,fe[oe])}else{if(Z>=D)throw TypeError(T);g(Y,Z++,fe)}return Y.length=Z,Y}})},7327:function(s,l,a){var c=a(2109),u=a(2092).filter,d=a(1194),h=d("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,l,a){var c=a(2109),u=a(1318).indexOf,d=a(9341),h=[].indexOf,m=!!h&&1/[1].indexOf(1,-0)<0,p=d("indexOf");c({target:"Array",proto:!0,forced:m||!p},{indexOf:function(v){return m?h.apply(this,arguments)||0:u(this,v,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,l,a){var c=a(5656),u=a(1223),d=a(7497),h=a(9909),m=a(654),p="Array Iterator",g=h.set,v=h.getterFor(p);s.exports=m(Array,"Array",function(C,S){g(this,{type:p,target:c(C),index:0,kind:S})},function(){var C=v(this),S=C.target,x=C.kind,b=C.index++;return!S||b>=S.length?(C.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:b,done:!1}:x=="values"?{value:S[b],done:!1}:{value:[b,S[b]],done:!1}},"values"),d.Arguments=d.Array,u("keys"),u("values"),u("entries")},1249:function(s,l,a){var c=a(2109),u=a(2092).map,d=a(1194),h=d("map");c({target:"Array",proto:!0,forced:!h},{map:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,l,a){var c=a(2109),u=a(111),d=a(3157),h=a(1400),m=a(7466),p=a(5656),g=a(6135),v=a(5112),C=a(1194),S=C("slice"),x=v("species"),b=[].slice,D=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(B,F){var V=p(this),$=m(V.length),P=h(B,$),R=h(F===void 0?$:F,$),H,Y,Z;if(d(V)&&(H=V.constructor,typeof H=="function"&&(H===Array||d(H.prototype))?H=void 0:u(H)&&(H=H[x],H===null&&(H=void 0)),H===Array||H===void 0))return b.call(V,P,R);for(Y=new(H===void 0?Array:H)(D(R-P,0)),Z=0;P<R;P++,Z++)P in V&&g(Y,Z,V[P]);return Y.length=Z,Y}})},561:function(s,l,a){var c=a(2109),u=a(1400),d=a(9958),h=a(7466),m=a(7908),p=a(5417),g=a(6135),v=a(1194),C=v("splice"),S=Math.max,x=Math.min,b=9007199254740991,D="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!C},{splice:function(B,F){var V=m(this),$=h(V.length),P=u(B,$),R=arguments.length,H,Y,Z,X,oe,j;if(R===0?H=Y=0:R===1?(H=0,Y=$-P):(H=R-2,Y=x(S(d(F),0),$-P)),$+H-Y>b)throw TypeError(D);for(Z=p(V,Y),X=0;X<Y;X++)oe=P+X,oe in V&&g(Z,X,V[oe]);if(Z.length=Y,H<Y){for(X=P;X<$-Y;X++)oe=X+Y,j=X+H,oe in V?V[j]=V[oe]:delete V[j];for(X=$;X>$-Y+H;X--)delete V[X-1]}else if(H>Y)for(X=$-Y;X>P;X--)oe=X+Y-1,j=X+H-1,oe in V?V[j]=V[oe]:delete V[j];for(X=0;X<H;X++)V[X+P]=arguments[X+2];return V.length=$-Y+H,Z}})},8309:function(s,l,a){var c=a(9781),u=a(3070).f,d=Function.prototype,h=d.toString,m=/^\s*function ([^ (]*)/,p="name";c&&!(p in d)&&u(d,p,{configurable:!0,get:function(){try{return h.call(this).match(m)[1]}catch{return""}}})},489:function(s,l,a){var c=a(2109),u=a(7293),d=a(7908),h=a(9518),m=a(8544),p=u(function(){h(1)});c({target:"Object",stat:!0,forced:p,sham:!m},{getPrototypeOf:function(v){return h(d(v))}})},1539:function(s,l,a){var c=a(1694),u=a(1320),d=a(288);c||u(Object.prototype,"toString",d,{unsafe:!0})},4916:function(s,l,a){var c=a(2109),u=a(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,l,a){var c=a(1320),u=a(9670),d=a(7293),h=a(7066),m="toString",p=RegExp.prototype,g=p[m],v=d(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=m;(v||C)&&c(RegExp.prototype,m,function(){var x=u(this),b=String(x.source),D=x.flags,T=String(D===void 0&&x instanceof RegExp&&!("flags"in p)?h.call(x):D);return"/"+b+"/"+T},{unsafe:!0})},8783:function(s,l,a){var c=a(8710).charAt,u=a(9909),d=a(654),h="String Iterator",m=u.set,p=u.getterFor(h);d(String,"String",function(g){m(this,{type:h,string:String(g),index:0})},function(){var v=p(this),C=v.string,S=v.index,x;return S>=C.length?{value:void 0,done:!0}:(x=c(C,S),v.index+=x.length,{value:x,done:!1})})},4723:function(s,l,a){var c=a(7007),u=a(9670),d=a(7466),h=a(4488),m=a(1530),p=a(7651);c("match",1,function(g,v,C){return[function(x){var b=h(this),D=x==null?void 0:x[g];return D!==void 0?D.call(x,b):new RegExp(x)[g](String(b))},function(S){var x=C(v,S,this);if(x.done)return x.value;var b=u(S),D=String(this);if(!b.global)return p(b,D);var T=b.unicode;b.lastIndex=0;for(var B=[],F=0,V;(V=p(b,D))!==null;){var $=String(V[0]);B[F]=$,$===""&&(b.lastIndex=m(D,d(b.lastIndex),T)),F++}return F===0?null:B}]})},5306:function(s,l,a){var c=a(7007),u=a(9670),d=a(7466),h=a(9958),m=a(4488),p=a(1530),g=a(647),v=a(7651),C=Math.max,S=Math.min,x=function(b){return b===void 0?b:String(b)};c("replace",2,function(b,D,T,B){var F=B.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,V=B.REPLACE_KEEPS_$0,$=F?"$":"$0";return[function(R,H){var Y=m(this),Z=R==null?void 0:R[b];return Z!==void 0?Z.call(R,Y,H):D.call(String(Y),R,H)},function(P,R){if(!F&&V||typeof R=="string"&&R.indexOf($)===-1){var H=T(D,P,this,R);if(H.done)return H.value}var Y=u(P),Z=String(this),X=typeof R=="function";X||(R=String(R));var oe=Y.global;if(oe){var j=Y.unicode;Y.lastIndex=0}for(var ce=[];;){var fe=v(Y,Z);if(fe===null||(ce.push(fe),!oe))break;var be=String(fe[0]);be===""&&(Y.lastIndex=p(Z,d(Y.lastIndex),j))}for(var we="",Ee=0,Ae=0;Ae<ce.length;Ae++){fe=ce[Ae];for(var Te=String(fe[0]),Oe=C(S(h(fe.index),Z.length),0),ve=[],A=1;A<fe.length;A++)ve.push(x(fe[A]));var M=fe.groups;if(X){var w=[Te].concat(ve,Oe,Z);M!==void 0&&w.push(M);var O=String(R.apply(void 0,w))}else O=g(Te,Z,Oe,ve,M,R);Oe>=Ee&&(we+=Z.slice(Ee,Oe)+O,Ee=Oe+Te.length)}return we+Z.slice(Ee)}]})},3123:function(s,l,a){var c=a(7007),u=a(7850),d=a(9670),h=a(4488),m=a(6707),p=a(1530),g=a(7466),v=a(7651),C=a(2261),S=a(7293),x=[].push,b=Math.min,D=4294967295,T=!S(function(){return!RegExp(D,"y")});c("split",2,function(B,F,V){var $;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?$=function(P,R){var H=String(h(this)),Y=R===void 0?D:R>>>0;if(Y===0)return[];if(P===void 0)return[H];if(!u(P))return F.call(H,P,Y);for(var Z=[],X=(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")+(P.sticky?"y":""),oe=0,j=new RegExp(P.source,X+"g"),ce,fe,be;(ce=C.call(j,H))&&(fe=j.lastIndex,!(fe>oe&&(Z.push(H.slice(oe,ce.index)),ce.length>1&&ce.index<H.length&&x.apply(Z,ce.slice(1)),be=ce[0].length,oe=fe,Z.length>=Y)));)j.lastIndex===ce.index&&j.lastIndex++;return oe===H.length?(be||!j.test(""))&&Z.push(""):Z.push(H.slice(oe)),Z.length>Y?Z.slice(0,Y):Z}:"0".split(void 0,0).length?$=function(P,R){return P===void 0&&R===0?[]:F.call(this,P,R)}:$=F,[function(R,H){var Y=h(this),Z=R==null?void 0:R[B];return Z!==void 0?Z.call(R,Y,H):$.call(String(Y),R,H)},function(P,R){var H=V($,P,this,R,$!==F);if(H.done)return H.value;var Y=d(P),Z=String(this),X=m(Y,RegExp),oe=Y.unicode,j=(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")+(T?"y":"g"),ce=new X(T?Y:"^(?:"+Y.source+")",j),fe=R===void 0?D:R>>>0;if(fe===0)return[];if(Z.length===0)return v(ce,Z)===null?[Z]:[];for(var be=0,we=0,Ee=[];we<Z.length;){ce.lastIndex=T?we:0;var Ae=v(ce,T?Z:Z.slice(we)),Te;if(Ae===null||(Te=b(g(ce.lastIndex+(T?0:we)),Z.length))===be)we=p(Z,we,oe);else{if(Ee.push(Z.slice(be,we)),Ee.length===fe)return Ee;for(var Oe=1;Oe<=Ae.length-1;Oe++)if(Ee.push(Ae[Oe]),Ee.length===fe)return Ee;we=be=Te}}return Ee.push(Z.slice(be)),Ee}]},!T)},3210:function(s,l,a){var c=a(2109),u=a(3111).trim,d=a(6091);c({target:"String",proto:!0,forced:d("trim")},{trim:function(){return u(this)}})},2990:function(s,l,a){var c=a(260),u=a(1048),d=c.aTypedArray,h=c.exportTypedArrayMethod;h("copyWithin",function(p,g){return u.call(d(this),p,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,l,a){var c=a(260),u=a(2092).every,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("every",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},3105:function(s,l,a){var c=a(260),u=a(1285),d=c.aTypedArray,h=c.exportTypedArrayMethod;h("fill",function(p){return u.apply(d(this),arguments)})},5035:function(s,l,a){var c=a(260),u=a(2092).filter,d=a(3074),h=c.aTypedArray,m=c.exportTypedArrayMethod;m("filter",function(g){var v=u(h(this),g,arguments.length>1?arguments[1]:void 0);return d(this,v)})},7174:function(s,l,a){var c=a(260),u=a(2092).findIndex,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("findIndex",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},4345:function(s,l,a){var c=a(260),u=a(2092).find,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("find",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},2846:function(s,l,a){var c=a(260),u=a(2092).forEach,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("forEach",function(p){u(d(this),p,arguments.length>1?arguments[1]:void 0)})},4731:function(s,l,a){var c=a(260),u=a(1318).includes,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("includes",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},7209:function(s,l,a){var c=a(260),u=a(1318).indexOf,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("indexOf",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},6319:function(s,l,a){var c=a(7854),u=a(260),d=a(6992),h=a(5112),m=h("iterator"),p=c.Uint8Array,g=d.values,v=d.keys,C=d.entries,S=u.aTypedArray,x=u.exportTypedArrayMethod,b=p&&p.prototype[m],D=!!b&&(b.name=="values"||b.name==null),T=function(){return g.call(S(this))};x("entries",function(){return C.call(S(this))}),x("keys",function(){return v.call(S(this))}),x("values",T,!D),x(m,T,!D)},8867:function(s,l,a){var c=a(260),u=c.aTypedArray,d=c.exportTypedArrayMethod,h=[].join;d("join",function(p){return h.apply(u(this),arguments)})},7789:function(s,l,a){var c=a(260),u=a(6583),d=c.aTypedArray,h=c.exportTypedArrayMethod;h("lastIndexOf",function(p){return u.apply(d(this),arguments)})},3739:function(s,l,a){var c=a(260),u=a(2092).map,d=a(6707),h=c.aTypedArray,m=c.aTypedArrayConstructor,p=c.exportTypedArrayMethod;p("map",function(v){return u(h(this),v,arguments.length>1?arguments[1]:void 0,function(C,S){return new(m(d(C,C.constructor)))(S)})})},4483:function(s,l,a){var c=a(260),u=a(3671).right,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduceRight",function(p){return u(d(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,l,a){var c=a(260),u=a(3671).left,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduce",function(p){return u(d(this),p,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,l,a){var c=a(260),u=c.aTypedArray,d=c.exportTypedArrayMethod,h=Math.floor;d("reverse",function(){for(var p=this,g=u(p).length,v=h(g/2),C=0,S;C<v;)S=p[C],p[C++]=p[--g],p[g]=S;return p})},3462:function(s,l,a){var c=a(260),u=a(7466),d=a(4590),h=a(7908),m=a(7293),p=c.aTypedArray,g=c.exportTypedArrayMethod,v=m(function(){new Int8Array(1).set({})});g("set",function(S){p(this);var x=d(arguments.length>1?arguments[1]:void 0,1),b=this.length,D=h(S),T=u(D.length),B=0;if(T+x>b)throw RangeError("Wrong length");for(;B<T;)this[x+B]=D[B++]},v)},678:function(s,l,a){var c=a(260),u=a(6707),d=a(7293),h=c.aTypedArray,m=c.aTypedArrayConstructor,p=c.exportTypedArrayMethod,g=[].slice,v=d(function(){new Int8Array(1).slice()});p("slice",function(S,x){for(var b=g.call(h(this),S,x),D=u(this,this.constructor),T=0,B=b.length,F=new(m(D))(B);B>T;)F[T]=b[T++];return F},v)},7462:function(s,l,a){var c=a(260),u=a(2092).some,d=c.aTypedArray,h=c.exportTypedArrayMethod;h("some",function(p){return u(d(this),p,arguments.length>1?arguments[1]:void 0)})},3824:function(s,l,a){var c=a(260),u=c.aTypedArray,d=c.exportTypedArrayMethod,h=[].sort;d("sort",function(p){return h.call(u(this),p)})},5021:function(s,l,a){var c=a(260),u=a(7466),d=a(1400),h=a(6707),m=c.aTypedArray,p=c.exportTypedArrayMethod;p("subarray",function(v,C){var S=m(this),x=S.length,b=d(v,x);return new(h(S,S.constructor))(S.buffer,S.byteOffset+b*S.BYTES_PER_ELEMENT,u((C===void 0?x:d(C,x))-b))})},2974:function(s,l,a){var c=a(7854),u=a(260),d=a(7293),h=c.Int8Array,m=u.aTypedArray,p=u.exportTypedArrayMethod,g=[].toLocaleString,v=[].slice,C=!!h&&d(function(){g.call(new h(1))}),S=d(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!d(function(){h.prototype.toLocaleString.call([1,2])});p("toLocaleString",function(){return g.apply(C?v.call(m(this)):m(this),arguments)},S)},5016:function(s,l,a){var c=a(260).exportTypedArrayMethod,u=a(7293),d=a(7854),h=d.Uint8Array,m=h&&h.prototype||{},p=[].toString,g=[].join;u(function(){p.call({})})&&(p=function(){return g.call(this)});var v=m.toString!=p;c("toString",p,v)},2472:function(s,l,a){var c=a(9843);c("Uint8",function(u){return function(h,m,p){return u(this,h,m,p)}})},4747:function(s,l,a){var c=a(7854),u=a(8324),d=a(8533),h=a(8880);for(var m in u){var p=c[m],g=p&&p.prototype;if(g&&g.forEach!==d)try{h(g,"forEach",d)}catch{g.forEach=d}}},3948:function(s,l,a){var c=a(7854),u=a(8324),d=a(6992),h=a(8880),m=a(5112),p=m("iterator"),g=m("toStringTag"),v=d.values;for(var C in u){var S=c[C],x=S&&S.prototype;if(x){if(x[p]!==v)try{h(x,p,v)}catch{x[p]=v}if(x[g]||h(x,g,C),u[C]){for(var b in d)if(x[b]!==d[b])try{h(x,b,d[b])}catch{x[b]=d[b]}}}}},1637:function(s,l,a){a(6992);var c=a(2109),u=a(5005),d=a(590),h=a(1320),m=a(2248),p=a(8003),g=a(4994),v=a(9909),C=a(5787),S=a(6656),x=a(9974),b=a(648),D=a(9670),T=a(111),B=a(30),F=a(9114),V=a(8554),$=a(1246),P=a(5112),R=u("fetch"),H=u("Headers"),Y=P("iterator"),Z="URLSearchParams",X=Z+"Iterator",oe=v.set,j=v.getterFor(Z),ce=v.getterFor(X),fe=/\+/g,be=Array(4),we=function(I){return be[I-1]||(be[I-1]=RegExp("((?:%[\\da-f]{2}){"+I+"})","gi"))},Ee=function(I){try{return decodeURIComponent(I)}catch{return I}},Ae=function(I){var _=I.replace(fe," "),L=4;try{return decodeURIComponent(_)}catch{for(;L;)_=_.replace(we(L--),Ee);return _}},Te=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(I){return Oe[I]},A=function(I){return encodeURIComponent(I).replace(Te,ve)},M=function(I,_){if(_)for(var L=_.split("&"),z=0,W,U;z<L.length;)W=L[z++],W.length&&(U=W.split("="),I.push({key:Ae(U.shift()),value:Ae(U.join("="))}))},w=function(I){this.entries.length=0,M(this.entries,I)},O=function(I,_){if(I<_)throw TypeError("Not enough arguments")},y=g(function(_,L){oe(this,{type:X,iterator:V(j(_).entries),kind:L})},"Iterator",function(){var _=ce(this),L=_.kind,z=_.iterator.next(),W=z.value;return z.done||(z.value=L==="keys"?W.key:L==="values"?W.value:[W.key,W.value]),z}),E=function(){C(this,E,Z);var _=arguments.length>0?arguments[0]:void 0,L=this,z=[],W,U,K,G,q,ue,ge,Ne,Fe;if(oe(L,{type:Z,entries:z,updateURL:function(){},updateSearchParams:w}),_!==void 0)if(T(_))if(W=$(_),typeof W=="function")for(U=W.call(_),K=U.next;!(G=K.call(U)).done;){if(q=V(D(G.value)),ue=q.next,(ge=ue.call(q)).done||(Ne=ue.call(q)).done||!ue.call(q).done)throw TypeError("Expected sequence with length 2");z.push({key:ge.value+"",value:Ne.value+""})}else for(Fe in _)S(_,Fe)&&z.push({key:Fe,value:_[Fe]+""});else M(z,typeof _=="string"?_.charAt(0)==="?"?_.slice(1):_:_+"")},N=E.prototype;m(N,{append:function(_,L){O(arguments.length,2);var z=j(this);z.entries.push({key:_+"",value:L+""}),z.updateURL()},delete:function(I){O(arguments.length,1);for(var _=j(this),L=_.entries,z=I+"",W=0;W<L.length;)L[W].key===z?L.splice(W,1):W++;_.updateURL()},get:function(_){O(arguments.length,1);for(var L=j(this).entries,z=_+"",W=0;W<L.length;W++)if(L[W].key===z)return L[W].value;return null},getAll:function(_){O(arguments.length,1);for(var L=j(this).entries,z=_+"",W=[],U=0;U<L.length;U++)L[U].key===z&&W.push(L[U].value);return W},has:function(_){O(arguments.length,1);for(var L=j(this).entries,z=_+"",W=0;W<L.length;)if(L[W++].key===z)return!0;return!1},set:function(_,L){O(arguments.length,1);for(var z=j(this),W=z.entries,U=!1,K=_+"",G=L+"",q=0,ue;q<W.length;q++)ue=W[q],ue.key===K&&(U?W.splice(q--,1):(U=!0,ue.value=G));U||W.push({key:K,value:G}),z.updateURL()},sort:function(){var _=j(this),L=_.entries,z=L.slice(),W,U,K;for(L.length=0,K=0;K<z.length;K++){for(W=z[K],U=0;U<K;U++)if(L[U].key>W.key){L.splice(U,0,W);break}U===K&&L.push(W)}_.updateURL()},forEach:function(_){for(var L=j(this).entries,z=x(_,arguments.length>1?arguments[1]:void 0,3),W=0,U;W<L.length;)U=L[W++],z(U.value,U.key,this)},keys:function(){return new y(this,"keys")},values:function(){return new y(this,"values")},entries:function(){return new y(this,"entries")}},{enumerable:!0}),h(N,Y,N.entries),h(N,"toString",function(){for(var _=j(this).entries,L=[],z=0,W;z<_.length;)W=_[z++],L.push(A(W.key)+"="+A(W.value));return L.join("&")},{enumerable:!0}),p(E,Z),c({global:!0,forced:!d},{URLSearchParams:E}),!d&&typeof R=="function"&&typeof H=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(_){var L=[_],z,W,U;return arguments.length>1&&(z=arguments[1],T(z)&&(W=z.body,b(W)===Z&&(U=z.headers?new H(z.headers):new H,U.has("content-type")||U.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),z=B(z,{body:F(0,String(W)),headers:F(0,U)}))),L.push(z)),R.apply(this,L)}}),s.exports={URLSearchParams:E,getState:j}},285:function(s,l,a){a(8783);var c=a(2109),u=a(9781),d=a(590),h=a(7854),m=a(6048),p=a(1320),g=a(5787),v=a(6656),C=a(1574),S=a(8457),x=a(8710).codeAt,b=a(3197),D=a(8003),T=a(1637),B=a(9909),F=h.URL,V=T.URLSearchParams,$=T.getState,P=B.set,R=B.getterFor("URL"),H=Math.floor,Y=Math.pow,Z="Invalid authority",X="Invalid scheme",oe="Invalid host",j="Invalid port",ce=/[A-Za-z]/,fe=/[\d+-.A-Za-z]/,be=/\d/,we=/^(0x|0X)/,Ee=/^[0-7]+$/,Ae=/^\d+$/,Te=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,A=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,w,O=function(k,ee){var Q,te,ie;if(ee.charAt(0)=="["){if(ee.charAt(ee.length-1)!="]"||(Q=E(ee.slice(1,-1)),!Q))return oe;k.host=Q}else if(G(k)){if(ee=b(ee),Oe.test(ee)||(Q=y(ee),Q===null))return oe;k.host=Q}else{if(ve.test(ee))return oe;for(Q="",te=S(ee),ie=0;ie<te.length;ie++)Q+=U(te[ie],_);k.host=Q}},y=function(k){var ee=k.split("."),Q,te,ie,ke,pe,Pe,He;if(ee.length&&ee[ee.length-1]==""&&ee.pop(),Q=ee.length,Q>4)return k;for(te=[],ie=0;ie<Q;ie++){if(ke=ee[ie],ke=="")return k;if(pe=10,ke.length>1&&ke.charAt(0)=="0"&&(pe=we.test(ke)?16:8,ke=ke.slice(pe==8?1:2)),ke==="")Pe=0;else{if(!(pe==10?Ae:pe==8?Ee:Te).test(ke))return k;Pe=parseInt(ke,pe)}te.push(Pe)}for(ie=0;ie<Q;ie++)if(Pe=te[ie],ie==Q-1){if(Pe>=Y(256,5-Q))return null}else if(Pe>255)return null;for(He=te.pop(),ie=0;ie<te.length;ie++)He+=te[ie]*Y(256,3-ie);return He},E=function(k){var ee=[0,0,0,0,0,0,0,0],Q=0,te=null,ie=0,ke,pe,Pe,He,je,It,re,Ye=function(){return k.charAt(ie)};if(Ye()==":"){if(k.charAt(1)!=":")return;ie+=2,Q++,te=Q}for(;Ye();){if(Q==8)return;if(Ye()==":"){if(te!==null)return;ie++,Q++,te=Q;continue}for(ke=pe=0;pe<4&&Te.test(Ye());)ke=ke*16+parseInt(Ye(),16),ie++,pe++;if(Ye()=="."){if(pe==0||(ie-=pe,Q>6))return;for(Pe=0;Ye();){if(He=null,Pe>0)if(Ye()=="."&&Pe<4)ie++;else return;if(!be.test(Ye()))return;for(;be.test(Ye());){if(je=parseInt(Ye(),10),He===null)He=je;else{if(He==0)return;He=He*10+je}if(He>255)return;ie++}ee[Q]=ee[Q]*256+He,Pe++,(Pe==2||Pe==4)&&Q++}if(Pe!=4)return;break}else if(Ye()==":"){if(ie++,!Ye())return}else if(Ye())return;ee[Q++]=ke}if(te!==null)for(It=Q-te,Q=7;Q!=0&&It>0;)re=ee[Q],ee[Q--]=ee[te+It-1],ee[te+--It]=re;else if(Q!=8)return;return ee},N=function(k){for(var ee=null,Q=1,te=null,ie=0,ke=0;ke<8;ke++)k[ke]!==0?(ie>Q&&(ee=te,Q=ie),te=null,ie=0):(te===null&&(te=ke),++ie);return ie>Q&&(ee=te,Q=ie),ee},I=function(k){var ee,Q,te,ie;if(typeof k=="number"){for(ee=[],Q=0;Q<4;Q++)ee.unshift(k%256),k=H(k/256);return ee.join(".")}else if(typeof k=="object"){for(ee="",te=N(k),Q=0;Q<8;Q++)ie&&k[Q]===0||(ie&&(ie=!1),te===Q?(ee+=Q?":":"::",ie=!0):(ee+=k[Q].toString(16),Q<7&&(ee+=":")));return"["+ee+"]"}return k},_={},L=C({},_,{" ":1,'"':1,"<":1,">":1,"`":1}),z=C({},L,{"#":1,"?":1,"{":1,"}":1}),W=C({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),U=function(k,ee){var Q=x(k,0);return Q>32&&Q<127&&!v(ee,k)?k:encodeURIComponent(k)},K={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(k){return v(K,k.scheme)},q=function(k){return k.username!=""||k.password!=""},ue=function(k){return!k.host||k.cannotBeABaseURL||k.scheme=="file"},ge=function(k,ee){var Q;return k.length==2&&ce.test(k.charAt(0))&&((Q=k.charAt(1))==":"||!ee&&Q=="|")},Ne=function(k){var ee;return k.length>1&&ge(k.slice(0,2))&&(k.length==2||(ee=k.charAt(2))==="/"||ee==="\\"||ee==="?"||ee==="#")},Fe=function(k){var ee=k.path,Q=ee.length;Q&&(k.scheme!="file"||Q!=1||!ge(ee[0],!0))&&ee.pop()},$e=function(k){return k==="."||k.toLowerCase()==="%2e"},Ie=function(k){return k=k.toLowerCase(),k===".."||k==="%2e."||k===".%2e"||k==="%2e%2e"},Ke={},gt={},tt={},Cn={},J={},ae={},le={},Ce={},xe={},Ve={},Ue={},it={},st={},Xe={},Yt={},Sn={},Ct={},Ot={},Er={},Mt={},cn={},Jt=function(k,ee,Q,te){var ie=Q||Ke,ke=0,pe="",Pe=!1,He=!1,je=!1,It,re,Ye,un;for(Q||(k.scheme="",k.username="",k.password="",k.host=null,k.port=null,k.path=[],k.query=null,k.fragment=null,k.cannotBeABaseURL=!1,ee=ee.replace(A,"")),ee=ee.replace(M,""),It=S(ee);ke<=It.length;){switch(re=It[ke],ie){case Ke:if(re&&ce.test(re))pe+=re.toLowerCase(),ie=gt;else{if(Q)return X;ie=tt;continue}break;case gt:if(re&&(fe.test(re)||re=="+"||re=="-"||re=="."))pe+=re.toLowerCase();else if(re==":"){if(Q&&(G(k)!=v(K,pe)||pe=="file"&&(q(k)||k.port!==null)||k.scheme=="file"&&!k.host))return;if(k.scheme=pe,Q){G(k)&&K[k.scheme]==k.port&&(k.port=null);return}pe="",k.scheme=="file"?ie=Xe:G(k)&&te&&te.scheme==k.scheme?ie=Cn:G(k)?ie=Ce:It[ke+1]=="/"?(ie=J,ke++):(k.cannotBeABaseURL=!0,k.path.push(""),ie=Er)}else{if(Q)return X;pe="",ie=tt,ke=0;continue}break;case tt:if(!te||te.cannotBeABaseURL&&re!="#")return X;if(te.cannotBeABaseURL&&re=="#"){k.scheme=te.scheme,k.path=te.path.slice(),k.query=te.query,k.fragment="",k.cannotBeABaseURL=!0,ie=cn;break}ie=te.scheme=="file"?Xe:ae;continue;case Cn:if(re=="/"&&It[ke+1]=="/")ie=xe,ke++;else{ie=ae;continue}break;case J:if(re=="/"){ie=Ve;break}else{ie=Ot;continue}case ae:if(k.scheme=te.scheme,re==w)k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.query=te.query;else if(re=="/"||re=="\\"&&G(k))ie=le;else if(re=="?")k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.query="",ie=Mt;else if(re=="#")k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.query=te.query,k.fragment="",ie=cn;else{k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,k.path=te.path.slice(),k.path.pop(),ie=Ot;continue}break;case le:if(G(k)&&(re=="/"||re=="\\"))ie=xe;else if(re=="/")ie=Ve;else{k.username=te.username,k.password=te.password,k.host=te.host,k.port=te.port,ie=Ot;continue}break;case Ce:if(ie=xe,re!="/"||pe.charAt(ke+1)!="/")continue;ke++;break;case xe:if(re!="/"&&re!="\\"){ie=Ve;continue}break;case Ve:if(re=="@"){Pe&&(pe="%40"+pe),Pe=!0,Ye=S(pe);for(var Qs=0;Qs<Ye.length;Qs++){var Yc=Ye[Qs];if(Yc==":"&&!je){je=!0;continue}var Jc=U(Yc,W);je?k.password+=Jc:k.username+=Jc}pe=""}else if(re==w||re=="/"||re=="?"||re=="#"||re=="\\"&&G(k)){if(Pe&&pe=="")return Z;ke-=S(pe).length+1,pe="",ie=Ue}else pe+=re;break;case Ue:case it:if(Q&&k.scheme=="file"){ie=Sn;continue}else if(re==":"&&!He){if(pe=="")return oe;if(un=O(k,pe),un)return un;if(pe="",ie=st,Q==it)return}else if(re==w||re=="/"||re=="?"||re=="#"||re=="\\"&&G(k)){if(G(k)&&pe=="")return oe;if(Q&&pe==""&&(q(k)||k.port!==null))return;if(un=O(k,pe),un)return un;if(pe="",ie=Ct,Q)return;continue}else re=="["?He=!0:re=="]"&&(He=!1),pe+=re;break;case st:if(be.test(re))pe+=re;else if(re==w||re=="/"||re=="?"||re=="#"||re=="\\"&&G(k)||Q){if(pe!=""){var qs=parseInt(pe,10);if(qs>65535)return j;k.port=G(k)&&qs===K[k.scheme]?null:qs,pe=""}if(Q)return;ie=Ct;continue}else return j;break;case Xe:if(k.scheme="file",re=="/"||re=="\\")ie=Yt;else if(te&&te.scheme=="file")if(re==w)k.host=te.host,k.path=te.path.slice(),k.query=te.query;else if(re=="?")k.host=te.host,k.path=te.path.slice(),k.query="",ie=Mt;else if(re=="#")k.host=te.host,k.path=te.path.slice(),k.query=te.query,k.fragment="",ie=cn;else{Ne(It.slice(ke).join(""))||(k.host=te.host,k.path=te.path.slice(),Fe(k)),ie=Ot;continue}else{ie=Ot;continue}break;case Yt:if(re=="/"||re=="\\"){ie=Sn;break}te&&te.scheme=="file"&&!Ne(It.slice(ke).join(""))&&(ge(te.path[0],!0)?k.path.push(te.path[0]):k.host=te.host),ie=Ot;continue;case Sn:if(re==w||re=="/"||re=="\\"||re=="?"||re=="#"){if(!Q&&ge(pe))ie=Ot;else if(pe==""){if(k.host="",Q)return;ie=Ct}else{if(un=O(k,pe),un)return un;if(k.host=="localhost"&&(k.host=""),Q)return;pe="",ie=Ct}continue}else pe+=re;break;case Ct:if(G(k)){if(ie=Ot,re!="/"&&re!="\\")continue}else if(!Q&&re=="?")k.query="",ie=Mt;else if(!Q&&re=="#")k.fragment="",ie=cn;else if(re!=w&&(ie=Ot,re!="/"))continue;break;case Ot:if(re==w||re=="/"||re=="\\"&&G(k)||!Q&&(re=="?"||re=="#")){if(Ie(pe)?(Fe(k),re!="/"&&!(re=="\\"&&G(k))&&k.path.push("")):$e(pe)?re!="/"&&!(re=="\\"&&G(k))&&k.path.push(""):(k.scheme=="file"&&!k.path.length&&ge(pe)&&(k.host&&(k.host=""),pe=pe.charAt(0)+":"),k.path.push(pe)),pe="",k.scheme=="file"&&(re==w||re=="?"||re=="#"))for(;k.path.length>1&&k.path[0]==="";)k.path.shift();re=="?"?(k.query="",ie=Mt):re=="#"&&(k.fragment="",ie=cn)}else pe+=U(re,z);break;case Er:re=="?"?(k.query="",ie=Mt):re=="#"?(k.fragment="",ie=cn):re!=w&&(k.path[0]+=U(re,_));break;case Mt:!Q&&re=="#"?(k.fragment="",ie=cn):re!=w&&(re=="'"&&G(k)?k.query+="%27":re=="#"?k.query+="%23":k.query+=U(re,_));break;case cn:re!=w&&(k.fragment+=U(re,L));break}ke++}},Gn=function(ee){var Q=g(this,Gn,"URL"),te=arguments.length>1?arguments[1]:void 0,ie=String(ee),ke=P(Q,{type:"URL"}),pe,Pe;if(te!==void 0){if(te instanceof Gn)pe=R(te);else if(Pe=Jt(pe={},String(te)),Pe)throw TypeError(Pe)}if(Pe=Jt(ke,ie,null,pe),Pe)throw TypeError(Pe);var He=ke.searchParams=new V,je=$(He);je.updateSearchParams(ke.query),je.updateURL=function(){ke.query=String(He)||null},u||(Q.href=Zo.call(Q),Q.origin=Rc.call(Q),Q.protocol=Pc.call(Q),Q.username=Bc.call(Q),Q.password=$c.call(Q),Q.host=Fc.call(Q),Q.hostname=Vc.call(Q),Q.port=zc.call(Q),Q.pathname=Hc.call(Q),Q.search=Uc.call(Q),Q.searchParams=jc.call(Q),Q.hash=Wc.call(Q))},Xs=Gn.prototype,Zo=function(){var k=R(this),ee=k.scheme,Q=k.username,te=k.password,ie=k.host,ke=k.port,pe=k.path,Pe=k.query,He=k.fragment,je=ee+":";return ie!==null?(je+="//",q(k)&&(je+=Q+(te?":"+te:"")+"@"),je+=I(ie),ke!==null&&(je+=":"+ke)):ee=="file"&&(je+="//"),je+=k.cannotBeABaseURL?pe[0]:pe.length?"/"+pe.join("/"):"",Pe!==null&&(je+="?"+Pe),He!==null&&(je+="#"+He),je},Rc=function(){var k=R(this),ee=k.scheme,Q=k.port;if(ee=="blob")try{return new URL(ee.path[0]).origin}catch{return"null"}return ee=="file"||!G(k)?"null":ee+"://"+I(k.host)+(Q!==null?":"+Q:"")},Pc=function(){return R(this).scheme+":"},Bc=function(){return R(this).username},$c=function(){return R(this).password},Fc=function(){var k=R(this),ee=k.host,Q=k.port;return ee===null?"":Q===null?I(ee):I(ee)+":"+Q},Vc=function(){var k=R(this).host;return k===null?"":I(k)},zc=function(){var k=R(this).port;return k===null?"":String(k)},Hc=function(){var k=R(this),ee=k.path;return k.cannotBeABaseURL?ee[0]:ee.length?"/"+ee.join("/"):""},Uc=function(){var k=R(this).query;return k?"?"+k:""},jc=function(){return R(this).searchParams},Wc=function(){var k=R(this).fragment;return k?"#"+k:""},Nt=function(k,ee){return{get:k,set:ee,configurable:!0,enumerable:!0}};if(u&&m(Xs,{href:Nt(Zo,function(k){var ee=R(this),Q=String(k),te=Jt(ee,Q);if(te)throw TypeError(te);$(ee.searchParams).updateSearchParams(ee.query)}),origin:Nt(Rc),protocol:Nt(Pc,function(k){var ee=R(this);Jt(ee,String(k)+":",Ke)}),username:Nt(Bc,function(k){var ee=R(this),Q=S(String(k));if(!ue(ee)){ee.username="";for(var te=0;te<Q.length;te++)ee.username+=U(Q[te],W)}}),password:Nt($c,function(k){var ee=R(this),Q=S(String(k));if(!ue(ee)){ee.password="";for(var te=0;te<Q.length;te++)ee.password+=U(Q[te],W)}}),host:Nt(Fc,function(k){var ee=R(this);ee.cannotBeABaseURL||Jt(ee,String(k),Ue)}),hostname:Nt(Vc,function(k){var ee=R(this);ee.cannotBeABaseURL||Jt(ee,String(k),it)}),port:Nt(zc,function(k){var ee=R(this);ue(ee)||(k=String(k),k==""?ee.port=null:Jt(ee,k,st))}),pathname:Nt(Hc,function(k){var ee=R(this);ee.cannotBeABaseURL||(ee.path=[],Jt(ee,k+"",Ct))}),search:Nt(Uc,function(k){var ee=R(this);k=String(k),k==""?ee.query=null:(k.charAt(0)=="?"&&(k=k.slice(1)),ee.query="",Jt(ee,k,Mt)),$(ee.searchParams).updateSearchParams(ee.query)}),searchParams:Nt(jc),hash:Nt(Wc,function(k){var ee=R(this);if(k=String(k),k==""){ee.fragment=null;return}k.charAt(0)=="#"&&(k=k.slice(1)),ee.fragment="",Jt(ee,k,cn)})}),p(Xs,"toJSON",function(){return Zo.call(this)},{enumerable:!0}),p(Xs,"toString",function(){return Zo.call(this)},{enumerable:!0}),F){var Kc=F.createObjectURL,Gc=F.revokeObjectURL;Kc&&p(Gn,"createObjectURL",function(ee){return Kc.apply(F,arguments)}),Gc&&p(Gn,"revokeObjectURL",function(ee){return Gc.apply(F,arguments)})}D(Gn,"URL"),c({global:!0,forced:!d,sham:!u},{URL:Gn})}},r={};function o(s){if(r[s])return r[s].exports;var l=r[s]={exports:{}};return t[s](l,l.exports,o),l.exports}(function(){o.d=function(s,l){for(var a in l)o.o(l,a)&&!o.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:l[a]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{Dropzone:function(){return j},default:function(){return ve}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(A,M){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=l(A))||M&&A&&typeof A.length=="number"){w&&(A=w);var O=0,y=function(){};return{s:y,n:function(){return O>=A.length?{done:!0}:{done:!1,value:A[O++]}},e:function(L){throw L},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,N=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var L=w.next();return E=L.done,L},e:function(L){N=!0,I=L},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(N)throw I}}}}function l(A,M){if(A){if(typeof A=="string")return a(A,M);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return a(A,M)}}function a(A,M){(M==null||M>A.length)&&(M=A.length);for(var w=0,O=new Array(M);w<M;w++)O[w]=A[w];return O}function c(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function u(A,M){for(var w=0;w<M.length;w++){var O=M[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}function d(A,M,w){return M&&u(A.prototype,M),w&&u(A,w),A}var h=function(){function A(){c(this,A)}return d(A,[{key:"on",value:function(w,O){return this._callbacks=this._callbacks||{},this._callbacks[w]||(this._callbacks[w]=[]),this._callbacks[w].push(O),this}},{key:"emit",value:function(w){this._callbacks=this._callbacks||{};for(var O=this._callbacks[w],y=arguments.length,E=new Array(y>1?y-1:0),N=1;N<y;N++)E[N-1]=arguments[N];if(O){var I=s(O,!0),_;try{for(I.s();!(_=I.n()).done;){var L=_.value;L.apply(this,E)}}catch(z){I.e(z)}finally{I.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+w,{args:E})),this}},{key:"makeEvent",value:function(w,O){var y={bubbles:!0,cancelable:!0,detail:O};if(typeof window.CustomEvent=="function")return new CustomEvent(w,y);var E=document.createEvent("CustomEvent");return E.initCustomEvent(w,y.bubbles,y.cancelable,y.detail),E}},{key:"off",value:function(w,O){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var y=this._callbacks[w];if(!y)return this;if(arguments.length===1)return delete this._callbacks[w],this;for(var E=0;E<y.length;E++){var N=y[E];if(N===O){y.splice(E,1);break}}return this}}]),A}(),m='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',p=m;function g(A,M){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=v(A))||M&&A&&typeof A.length=="number"){w&&(A=w);var O=0,y=function(){};return{s:y,n:function(){return O>=A.length?{done:!0}:{done:!1,value:A[O++]}},e:function(L){throw L},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
8
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,N=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var L=w.next();return E=L.done,L},e:function(L){N=!0,I=L},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(N)throw I}}}}function v(A,M){if(A){if(typeof A=="string")return C(A,M);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return C(A,M)}}function C(A,M){(M==null||M>A.length)&&(M=A.length);for(var w=0,O=new Array(M);w<M;w++)O[w]=A[w];return O}var S={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(M,w,O){if(O)return{dzuuid:O.file.upload.uuid,dzchunkindex:O.index,dztotalfilesize:O.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:O.file.upload.totalChunkCount,dzchunkbyteoffset:O.index*this.options.chunkSize}},accept:function(M,w){return w()},chunksUploaded:function(M,w){w()},fallback:function(){var M;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=g(this.element.getElementsByTagName("div"),!0),O;try{for(w.s();!(O=w.n()).done;){var y=O.value;if(/(^| )dz-message($| )/.test(y.className)){M=y,y.className="dz-message";break}}}catch(N){w.e(N)}finally{w.f()}M||(M=j.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(M));var E=M.getElementsByTagName("span")[0];return E&&(E.textContent!=null?E.textContent=this.options.dictFallbackMessage:E.innerText!=null&&(E.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(M,w,O,y){var E={srcX:0,srcY:0,srcWidth:M.width,srcHeight:M.height},N=M.width/M.height;w==null&&O==null?(w=E.srcWidth,O=E.srcHeight):w==null?w=O*N:O==null&&(O=w/N),w=Math.min(w,E.srcWidth),O=Math.min(O,E.srcHeight);var I=w/O;if(E.srcWidth>w||E.srcHeight>O)if(y==="crop")N>I?(E.srcHeight=M.height,E.srcWidth=E.srcHeight*I):(E.srcWidth=M.width,E.srcHeight=E.srcWidth/I);else if(y==="contain")N>I?O=w/N:w=O*N;else throw new Error("Unknown resizeMethod '".concat(y,"'"));return E.srcX=(M.width-E.srcWidth)/2,E.srcY=(M.height-E.srcHeight)/2,E.trgWidth=w,E.trgHeight=O,E},transformFile:function(M,w){return(this.options.resizeWidth||this.options.resizeHeight)&&M.type.match(/image.*/)?this.resizeImage(M,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(M)},previewTemplate:p,drop:function(M){return this.element.classList.remove("dz-drag-hover")},dragstart:function(M){},dragend:function(M){return this.element.classList.remove("dz-drag-hover")},dragenter:function(M){return this.element.classList.add("dz-drag-hover")},dragover:function(M){return this.element.classList.add("dz-drag-hover")},dragleave:function(M){return this.element.classList.remove("dz-drag-hover")},paste:function(M){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(M){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){M.previewElement=j.createElement(this.options.previewTemplate.trim()),M.previewTemplate=M.previewElement,this.previewsContainer.appendChild(M.previewElement);var O=g(M.previewElement.querySelectorAll("[data-dz-name]"),!0),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;E.textContent=M.name}}catch(U){O.e(U)}finally{O.f()}var N=g(M.previewElement.querySelectorAll("[data-dz-size]"),!0),I;try{for(N.s();!(I=N.n()).done;)E=I.value,E.innerHTML=this.filesize(M.size)}catch(U){N.e(U)}finally{N.f()}this.options.addRemoveLinks&&(M._removeLink=j.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),M.previewElement.appendChild(M._removeLink));var _=function(K){return K.preventDefault(),K.stopPropagation(),M.status===j.UPLOADING?j.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(M)}):w.options.dictRemoveFileConfirmation?j.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(M)}):w.removeFile(M)},L=g(M.previewElement.querySelectorAll("[data-dz-remove]"),!0),z;try{for(L.s();!(z=L.n()).done;){var W=z.value;W.addEventListener("click",_)}}catch(U){L.e(U)}finally{L.f()}}},removedfile:function(M){return M.previewElement!=null&&M.previewElement.parentNode!=null&&M.previewElement.parentNode.removeChild(M.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(M,w){if(M.previewElement){M.previewElement.classList.remove("dz-file-preview");var O=g(M.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;E.alt=M.name,E.src=w}}catch(N){O.e(N)}finally{O.f()}return setTimeout(function(){return M.previewElement.classList.add("dz-image-preview")},1)}},error:function(M,w){if(M.previewElement){M.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var O=g(M.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;E.textContent=w}}catch(N){O.e(N)}finally{O.f()}}},errormultiple:function(){},processing:function(M){if(M.previewElement&&(M.previewElement.classList.add("dz-processing"),M._removeLink))return M._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(M,w,O){if(M.previewElement){var y=g(M.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),E;try{for(y.s();!(E=y.n()).done;){var N=E.value;N.nodeName==="PROGRESS"?N.value=w:N.style.width="".concat(w,"%")}}catch(I){y.e(I)}finally{y.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(M){if(M.previewElement)return M.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(M){return this.emit("error",M,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(M){if(M._removeLink&&(M._removeLink.innerHTML=this.options.dictRemoveFile),M.previewElement)return M.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},x=S;function b(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(w){return typeof w}:b=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(A)}function D(A,M){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=T(A))||M&&A&&typeof A.length=="number"){w&&(A=w);var O=0,y=function(){};return{s:y,n:function(){return O>=A.length?{done:!0}:{done:!1,value:A[O++]}},e:function(L){throw L},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
9
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,N=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var L=w.next();return E=L.done,L},e:function(L){N=!0,I=L},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(N)throw I}}}}function T(A,M){if(A){if(typeof A=="string")return B(A,M);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return B(A,M)}}function B(A,M){(M==null||M>A.length)&&(M=A.length);for(var w=0,O=new Array(M);w<M;w++)O[w]=A[w];return O}function F(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function V(A,M){for(var w=0;w<M.length;w++){var O=M[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}function $(A,M,w){return M&&V(A.prototype,M),w&&V(A,w),A}function P(A,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),M&&R(A,M)}function R(A,M){return R=Object.setPrototypeOf||function(O,y){return O.__proto__=y,O},R(A,M)}function H(A){var M=X();return function(){var O=oe(A),y;if(M){var E=oe(this).constructor;y=Reflect.construct(O,arguments,E)}else y=O.apply(this,arguments);return Y(this,y)}}function Y(A,M){return M&&(b(M)==="object"||typeof M=="function")?M:Z(A)}function Z(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function oe(A){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},oe(A)}var j=function(A){P(w,A);var M=H(w);function w(O,y){var E;F(this,w),E=M.call(this);var N,I;if(E.element=O,E.version=w.version,E.clickableElements=[],E.listeners=[],E.files=[],typeof E.element=="string"&&(E.element=document.querySelector(E.element)),!E.element||E.element.nodeType==null)throw new Error("Invalid dropzone element.");if(E.element.dropzone)throw new Error("Dropzone already attached.");w.instances.push(Z(E)),E.element.dropzone=Z(E);var _=(I=w.optionsForElement(E.element))!=null?I:{};if(E.options=w.extend({},x,_,y??{}),E.options.previewTemplate=E.options.previewTemplate.replace(/\n*/g,""),E.options.forceFallback||!w.isBrowserSupported())return Y(E,E.options.fallback.call(Z(E)));if(E.options.url==null&&(E.options.url=E.element.getAttribute("action")),!E.options.url)throw new Error("No URL provided.");if(E.options.acceptedFiles&&E.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(E.options.uploadMultiple&&E.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return E.options.acceptedMimeTypes&&(E.options.acceptedFiles=E.options.acceptedMimeTypes,delete E.options.acceptedMimeTypes),E.options.renameFilename!=null&&(E.options.renameFile=function(L){return E.options.renameFilename.call(Z(E),L.name,L)}),typeof E.options.method=="string"&&(E.options.method=E.options.method.toUpperCase()),(N=E.getExistingFallback())&&N.parentNode&&N.parentNode.removeChild(N),E.options.previewsContainer!==!1&&(E.options.previewsContainer?E.previewsContainer=w.getElement(E.options.previewsContainer,"previewsContainer"):E.previewsContainer=E.element),E.options.clickable&&(E.options.clickable===!0?E.clickableElements=[E.element]:E.clickableElements=w.getElements(E.options.clickable,"clickable")),E.init(),E}return $(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(y){return y.accepted}).map(function(y){return y})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(y){return!y.accepted}).map(function(y){return y})}},{key:"getFilesWithStatus",value:function(y){return this.files.filter(function(E){return E.status===y}).map(function(E){return E})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(y){return y.status===w.UPLOADING||y.status===w.QUEUED}).map(function(y){return y})}},{key:"init",value:function(){var y=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var E=function W(){y.hiddenFileInput&&y.hiddenFileInput.parentNode.removeChild(y.hiddenFileInput),y.hiddenFileInput=document.createElement("input"),y.hiddenFileInput.setAttribute("type","file"),(y.options.maxFiles===null||y.options.maxFiles>1)&&y.hiddenFileInput.setAttribute("multiple","multiple"),y.hiddenFileInput.className="dz-hidden-input",y.options.acceptedFiles!==null&&y.hiddenFileInput.setAttribute("accept",y.options.acceptedFiles),y.options.capture!==null&&y.hiddenFileInput.setAttribute("capture",y.options.capture),y.hiddenFileInput.setAttribute("tabindex","-1"),y.hiddenFileInput.style.visibility="hidden",y.hiddenFileInput.style.position="absolute",y.hiddenFileInput.style.top="0",y.hiddenFileInput.style.left="0",y.hiddenFileInput.style.height="0",y.hiddenFileInput.style.width="0",w.getElement(y.options.hiddenInputContainer,"hiddenInputContainer").appendChild(y.hiddenFileInput),y.hiddenFileInput.addEventListener("change",function(){var U=y.hiddenFileInput.files;if(U.length){var K=D(U,!0),G;try{for(K.s();!(G=K.n()).done;){var q=G.value;y.addFile(q)}}catch(ue){K.e(ue)}finally{K.f()}}y.emit("addedfiles",U),W()})};E()}this.URL=window.URL!==null?window.URL:window.webkitURL;var N=D(this.events,!0),I;try{for(N.s();!(I=N.n()).done;){var _=I.value;this.on(_,this.options[_])}}catch(W){N.e(W)}finally{N.f()}this.on("uploadprogress",function(){return y.updateTotalUploadProgress()}),this.on("removedfile",function(){return y.updateTotalUploadProgress()}),this.on("canceled",function(W){return y.emit("complete",W)}),this.on("complete",function(W){if(y.getAddedFiles().length===0&&y.getUploadingFiles().length===0&&y.getQueuedFiles().length===0)return setTimeout(function(){return y.emit("queuecomplete")},0)});var L=function(U){if(U.dataTransfer.types){for(var K=0;K<U.dataTransfer.types.length;K++)if(U.dataTransfer.types[K]==="Files")return!0}return!1},z=function(U){if(L(U))return U.stopPropagation(),U.preventDefault?U.preventDefault():U.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(U){return y.emit("dragstart",U)},dragenter:function(U){return z(U),y.emit("dragenter",U)},dragover:function(U){var K;try{K=U.dataTransfer.effectAllowed}catch{}return U.dataTransfer.dropEffect=K==="move"||K==="linkMove"?"move":"copy",z(U),y.emit("dragover",U)},dragleave:function(U){return y.emit("dragleave",U)},drop:function(U){return z(U),y.drop(U)},dragend:function(U){return y.emit("dragend",U)}}}],this.clickableElements.forEach(function(W){return y.listeners.push({element:W,events:{click:function(K){return(W!==y.element||K.target===y.element||w.elementInside(K.target,y.element.querySelector(".dz-message")))&&y.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var y,E=0,N=0,I=this.getActiveFiles();if(I.length){var _=D(this.getActiveFiles(),!0),L;try{for(_.s();!(L=_.n()).done;){var z=L.value;E+=z.upload.bytesSent,N+=z.upload.total}}catch(W){_.e(W)}finally{_.f()}y=100*E/N}else y=100;return this.emit("totaluploadprogress",y,N,E)}},{key:"_getParamName",value:function(y){return typeof this.options.paramName=="function"?this.options.paramName(y):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(y,"]"):"")}},{key:"_renameFile",value:function(y){return typeof this.options.renameFile!="function"?y.name:this.options.renameFile(y)}},{key:"getFallbackForm",value:function(){var y,E;if(y=this.getExistingFallback())return y;var N='<div class="dz-fallback">';this.options.dictFallbackText&&(N+="<p>".concat(this.options.dictFallbackText,"</p>")),N+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var I=w.createElement(N);return this.element.tagName!=="FORM"?(E=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),E.appendChild(I)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),E??I}},{key:"getExistingFallback",value:function(){for(var y=function(z){var W=D(z,!0),U;try{for(W.s();!(U=W.n()).done;){var K=U.value;if(/(^| )fallback($| )/.test(K.className))return K}}catch(G){W.e(G)}finally{W.f()}},E=0,N=["div","form"];E<N.length;E++){var I=N[E],_;if(_=y(this.element.getElementsByTagName(I)))return _}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(y){return function(){var E=[];for(var N in y.events){var I=y.events[N];E.push(y.element.addEventListener(N,I,!1))}return E}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(y){return function(){var E=[];for(var N in y.events){var I=y.events[N];E.push(y.element.removeEventListener(N,I,!1))}return E}()})}},{key:"disable",value:function(){var y=this;return this.clickableElements.forEach(function(E){return E.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(E){return y.cancelUpload(E)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(y){return y.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(y){var E=0,N="b";if(y>0){for(var I=["tb","gb","mb","kb","b"],_=0;_<I.length;_++){var L=I[_],z=Math.pow(this.options.filesizeBase,4-_)/10;if(y>=z){E=y/Math.pow(this.options.filesizeBase,4-_),N=L;break}}E=Math.round(10*E)/10}return"<strong>".concat(E,"</strong> ").concat(this.options.dictFileSizeUnits[N])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(y){if(y.dataTransfer){this.emit("drop",y);for(var E=[],N=0;N<y.dataTransfer.files.length;N++)E[N]=y.dataTransfer.files[N];if(E.length){var I=y.dataTransfer.items;I&&I.length&&I[0].webkitGetAsEntry!=null?this._addFilesFromItems(I):this.handleFiles(E)}this.emit("addedfiles",E)}}},{key:"paste",value:function(y){if(Te(y!=null?y.clipboardData:void 0,function(N){return N.items})!=null){this.emit("paste",y);var E=y.clipboardData.items;if(E.length)return this._addFilesFromItems(E)}}},{key:"handleFiles",value:function(y){var E=D(y,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;this.addFile(I)}}catch(_){E.e(_)}finally{E.f()}}},{key:"_addFilesFromItems",value:function(y){var E=this;return function(){var N=[],I=D(y,!0),_;try{for(I.s();!(_=I.n()).done;){var L=_.value,z;L.webkitGetAsEntry!=null&&(z=L.webkitGetAsEntry())?z.isFile?N.push(E.addFile(L.getAsFile())):z.isDirectory?N.push(E._addFilesFromDirectory(z,z.name)):N.push(void 0):L.getAsFile!=null&&(L.kind==null||L.kind==="file")?N.push(E.addFile(L.getAsFile())):N.push(void 0)}}catch(W){I.e(W)}finally{I.f()}return N}()}},{key:"_addFilesFromDirectory",value:function(y,E){var N=this,I=y.createReader(),_=function(W){return Oe(console,"log",function(U){return U.log(W)})},L=function z(){return I.readEntries(function(W){if(W.length>0){var U=D(W,!0),K;try{for(U.s();!(K=U.n()).done;){var G=K.value;G.isFile?G.file(function(q){if(!(N.options.ignoreHiddenFiles&&q.name.substring(0,1)==="."))return q.fullPath="".concat(E,"/").concat(q.name),N.addFile(q)}):G.isDirectory&&N._addFilesFromDirectory(G,"".concat(E,"/").concat(G.name))}}catch(q){U.e(q)}finally{U.f()}z()}return null},_)};return L()}},{key:"accept",value:function(y,E){this.options.maxFilesize&&y.size>this.options.maxFilesize*1024*1024?E(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(y.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(y,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(E(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",y)):this.options.accept.call(this,y,E):E(this.options.dictInvalidFileType)}},{key:"addFile",value:function(y){var E=this;y.upload={uuid:w.uuidv4(),progress:0,total:y.size,bytesSent:0,filename:this._renameFile(y)},this.files.push(y),y.status=w.ADDED,this.emit("addedfile",y),this._enqueueThumbnail(y),this.accept(y,function(N){N?(y.accepted=!1,E._errorProcessing([y],N)):(y.accepted=!0,E.options.autoQueue&&E.enqueueFile(y)),E._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(y){var E=D(y,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;this.enqueueFile(I)}}catch(_){E.e(_)}finally{E.f()}return null}},{key:"enqueueFile",value:function(y){var E=this;if(y.status===w.ADDED&&y.accepted===!0){if(y.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return E.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(y){var E=this;if(this.options.createImageThumbnails&&y.type.match(/image.*/)&&y.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(y),setTimeout(function(){return E._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var y=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var E=this._thumbnailQueue.shift();return this.createThumbnail(E,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(N){return y.emit("thumbnail",E,N),y._processingThumbnail=!1,y._processThumbnailQueue()})}}},{key:"removeFile",value:function(y){if(y.status===w.UPLOADING&&this.cancelUpload(y),this.files=ce(this.files,y),this.emit("removedfile",y),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(y){y==null&&(y=!1);var E=D(this.files.slice(),!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;(I.status!==w.UPLOADING||y)&&this.removeFile(I)}}catch(_){E.e(_)}finally{E.f()}return null}},{key:"resizeImage",value:function(y,E,N,I,_){var L=this;return this.createThumbnail(y,E,N,I,!0,function(z,W){if(W==null)return _(y);var U=L.options.resizeMimeType;U==null&&(U=y.type);var K=W.toDataURL(U,L.options.resizeQuality);return(U==="image/jpeg"||U==="image/jpg")&&(K=Ee.restore(y.dataURL,K)),_(w.dataURItoBlob(K))})}},{key:"createThumbnail",value:function(y,E,N,I,_,L){var z=this,W=new FileReader;W.onload=function(){if(y.dataURL=W.result,y.type==="image/svg+xml"){L!=null&&L(W.result);return}z.createThumbnailFromUrl(y,E,N,I,_,L)},W.readAsDataURL(y)}},{key:"displayExistingFile",value:function(y,E,N,I){var _=this,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",y),this.emit("complete",y),!L)this.emit("thumbnail",y,E),N&&N();else{var z=function(U){_.emit("thumbnail",y,U),N&&N()};y.dataURL=E,this.createThumbnailFromUrl(y,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,z,I)}}},{key:"createThumbnailFromUrl",value:function(y,E,N,I,_,L,z){var W=this,U=document.createElement("img");return z&&(U.crossOrigin=z),_=getComputedStyle(document.body).imageOrientation=="from-image"?!1:_,U.onload=function(){var K=function(q){return q(1)};return typeof EXIF<"u"&&EXIF!==null&&_&&(K=function(q){return EXIF.getData(U,function(){return q(EXIF.getTag(this,"Orientation"))})}),K(function(G){y.width=U.width,y.height=U.height;var q=W.options.resize.call(W,y,E,N,I),ue=document.createElement("canvas"),ge=ue.getContext("2d");switch(ue.width=q.trgWidth,ue.height=q.trgHeight,G>4&&(ue.width=q.trgHeight,ue.height=q.trgWidth),G){case 2:ge.translate(ue.width,0),ge.scale(-1,1);break;case 3:ge.translate(ue.width,ue.height),ge.rotate(Math.PI);break;case 4:ge.translate(0,ue.height),ge.scale(1,-1);break;case 5:ge.rotate(.5*Math.PI),ge.scale(1,-1);break;case 6:ge.rotate(.5*Math.PI),ge.translate(0,-ue.width);break;case 7:ge.rotate(.5*Math.PI),ge.translate(ue.height,-ue.width),ge.scale(-1,1);break;case 8:ge.rotate(-.5*Math.PI),ge.translate(-ue.height,0);break}we(ge,U,q.srcX!=null?q.srcX:0,q.srcY!=null?q.srcY:0,q.srcWidth,q.srcHeight,q.trgX!=null?q.trgX:0,q.trgY!=null?q.trgY:0,q.trgWidth,q.trgHeight);var Ne=ue.toDataURL("image/png");if(L!=null)return L(Ne,ue)})},L!=null&&(U.onerror=L),U.src=y.dataURL}},{key:"processQueue",value:function(){var y=this.options.parallelUploads,E=this.getUploadingFiles().length,N=E;if(!(E>=y)){var I=this.getQueuedFiles();if(I.length>0){if(this.options.uploadMultiple)return this.processFiles(I.slice(0,y-E));for(;N<y;){if(!I.length)return;this.processFile(I.shift()),N++}}}}},{key:"processFile",value:function(y){return this.processFiles([y])}},{key:"processFiles",value:function(y){var E=D(y,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;I.processing=!0,I.status=w.UPLOADING,this.emit("processing",I)}}catch(_){E.e(_)}finally{E.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",y),this.uploadFiles(y)}},{key:"_getFilesWithXhr",value:function(y){return this.files.filter(function(E){return E.xhr===y}).map(function(E){return E})}},{key:"cancelUpload",value:function(y){if(y.status===w.UPLOADING){var E=this._getFilesWithXhr(y.xhr),N=D(E,!0),I;try{for(N.s();!(I=N.n()).done;){var _=I.value;_.status=w.CANCELED}}catch(U){N.e(U)}finally{N.f()}typeof y.xhr<"u"&&y.xhr.abort();var L=D(E,!0),z;try{for(L.s();!(z=L.n()).done;){var W=z.value;this.emit("canceled",W)}}catch(U){L.e(U)}finally{L.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",E)}else(y.status===w.ADDED||y.status===w.QUEUED)&&(y.status=w.CANCELED,this.emit("canceled",y),this.options.uploadMultiple&&this.emit("canceledmultiple",[y]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(y){if(typeof y=="function"){for(var E=arguments.length,N=new Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];return y.apply(this,N)}return y}},{key:"uploadFile",value:function(y){return this.uploadFiles([y])}},{key:"uploadFiles",value:function(y){var E=this;this._transformFiles(y,function(N){if(E.options.chunking){var I=N[0];y[0].upload.chunked=E.options.chunking&&(E.options.forceChunking||I.size>E.options.chunkSize),y[0].upload.totalChunkCount=Math.ceil(I.size/E.options.chunkSize)}if(y[0].upload.chunked){var _=y[0],L=N[0];_.upload.chunks=[];var z=function(){for(var q=0;_.upload.chunks[q]!==void 0;)q++;if(!(q>=_.upload.totalChunkCount)){var ue=q*E.options.chunkSize,ge=Math.min(ue+E.options.chunkSize,L.size),Ne={name:E._getParamName(0),data:L.webkitSlice?L.webkitSlice(ue,ge):L.slice(ue,ge),filename:_.upload.filename,chunkIndex:q};_.upload.chunks[q]={file:_,index:q,dataBlock:Ne,status:w.UPLOADING,progress:0,retries:0},E._uploadData(y,[Ne])}};if(_.upload.finishedChunkUpload=function(G,q){var ue=!0;G.status=w.SUCCESS,G.dataBlock=null,G.xhr=null;for(var ge=0;ge<_.upload.totalChunkCount;ge++){if(_.upload.chunks[ge]===void 0)return z();_.upload.chunks[ge].status!==w.SUCCESS&&(ue=!1)}ue&&E.options.chunksUploaded(_,function(){E._finished(y,q,null)})},E.options.parallelChunkUploads)for(var W=0;W<_.upload.totalChunkCount;W++)z();else z()}else{for(var U=[],K=0;K<y.length;K++)U[K]={name:E._getParamName(K),data:N[K],filename:y[K].upload.filename};E._uploadData(y,U)}})}},{key:"_getChunk",value:function(y,E){for(var N=0;N<y.upload.totalChunkCount;N++)if(y.upload.chunks[N]!==void 0&&y.upload.chunks[N].xhr===E)return y.upload.chunks[N]}},{key:"_uploadData",value:function(y,E){var N=this,I=new XMLHttpRequest,_=D(y,!0),L;try{for(_.s();!(L=_.n()).done;){var z=L.value;z.xhr=I}}catch(le){_.e(le)}finally{_.f()}y[0].upload.chunked&&(y[0].upload.chunks[E[0].chunkIndex].xhr=I);var W=this.resolveOption(this.options.method,y),U=this.resolveOption(this.options.url,y);I.open(W,U,!0);var K=this.resolveOption(this.options.timeout,y);K&&(I.timeout=this.resolveOption(this.options.timeout,y)),I.withCredentials=!!this.options.withCredentials,I.onload=function(le){N._finishedUploading(y,I,le)},I.ontimeout=function(){N._handleUploadError(y,I,"Request timedout after ".concat(N.options.timeout/1e3," seconds"))},I.onerror=function(){N._handleUploadError(y,I)};var G=I.upload!=null?I.upload:I;G.onprogress=function(le){return N._updateFilesUploadProgress(y,I,le)};var q={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(q,this.options.headers);for(var ue in q){var ge=q[ue];ge&&I.setRequestHeader(ue,ge)}var Ne=new FormData;if(this.options.params){var Fe=this.options.params;typeof Fe=="function"&&(Fe=Fe.call(this,y,I,y[0].upload.chunked?this._getChunk(y[0],I):null));for(var $e in Fe){var Ie=Fe[$e];if(Array.isArray(Ie))for(var Ke=0;Ke<Ie.length;Ke++)Ne.append($e,Ie[Ke]);else Ne.append($e,Ie)}}var gt=D(y,!0),tt;try{for(gt.s();!(tt=gt.n()).done;){var Cn=tt.value;this.emit("sending",Cn,I,Ne)}}catch(le){gt.e(le)}finally{gt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",y,I,Ne),this._addFormElementData(Ne);for(var J=0;J<E.length;J++){var ae=E[J];Ne.append(ae.name,ae.data,ae.filename)}this.submitRequest(I,Ne,y)}},{key:"_transformFiles",value:function(y,E){for(var N=this,I=[],_=0,L=function(U){N.options.transformFile.call(N,y[U],function(K){I[U]=K,++_===y.length&&E(I)})},z=0;z<y.length;z++)L(z)}},{key:"_addFormElementData",value:function(y){if(this.element.tagName==="FORM"){var E=D(this.element.querySelectorAll("input, textarea, select, button"),!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value,_=I.getAttribute("name"),L=I.getAttribute("type");if(L&&(L=L.toLowerCase()),!(typeof _>"u"||_===null))if(I.tagName==="SELECT"&&I.hasAttribute("multiple")){var z=D(I.options,!0),W;try{for(z.s();!(W=z.n()).done;){var U=W.value;U.selected&&y.append(_,U.value)}}catch(K){z.e(K)}finally{z.f()}}else(!L||L!=="checkbox"&&L!=="radio"||I.checked)&&y.append(_,I.value)}}catch(K){E.e(K)}finally{E.f()}}}},{key:"_updateFilesUploadProgress",value:function(y,E,N){if(y[0].upload.chunked){var z=y[0],W=this._getChunk(z,E);N?(W.progress=100*N.loaded/N.total,W.total=N.total,W.bytesSent=N.loaded):(W.progress=100,W.bytesSent=W.total),z.upload.progress=0,z.upload.total=0,z.upload.bytesSent=0;for(var U=0;U<z.upload.totalChunkCount;U++)z.upload.chunks[U]&&typeof z.upload.chunks[U].progress<"u"&&(z.upload.progress+=z.upload.chunks[U].progress,z.upload.total+=z.upload.chunks[U].total,z.upload.bytesSent+=z.upload.chunks[U].bytesSent);z.upload.progress=z.upload.progress/z.upload.totalChunkCount,this.emit("uploadprogress",z,z.upload.progress,z.upload.bytesSent)}else{var I=D(y,!0),_;try{for(I.s();!(_=I.n()).done;){var L=_.value;L.upload.total&&L.upload.bytesSent&&L.upload.bytesSent==L.upload.total||(N?(L.upload.progress=100*N.loaded/N.total,L.upload.total=N.total,L.upload.bytesSent=N.loaded):(L.upload.progress=100,L.upload.bytesSent=L.upload.total),this.emit("uploadprogress",L,L.upload.progress,L.upload.bytesSent))}}catch(K){I.e(K)}finally{I.f()}}}},{key:"_finishedUploading",value:function(y,E,N){var I;if(y[0].status!==w.CANCELED&&E.readyState===4){if(E.responseType!=="arraybuffer"&&E.responseType!=="blob"&&(I=E.responseText,E.getResponseHeader("content-type")&&~E.getResponseHeader("content-type").indexOf("application/json")))try{I=JSON.parse(I)}catch(_){N=_,I="Invalid JSON response from server."}this._updateFilesUploadProgress(y,E),200<=E.status&&E.status<300?y[0].upload.chunked?y[0].upload.finishedChunkUpload(this._getChunk(y[0],E),I):this._finished(y,I,N):this._handleUploadError(y,E,I)}}},{key:"_handleUploadError",value:function(y,E,N){if(y[0].status!==w.CANCELED){if(y[0].upload.chunked&&this.options.retryChunks){var I=this._getChunk(y[0],E);if(I.retries++<this.options.retryChunksLimit){this._uploadData(y,[I.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(y,N||this.options.dictResponseError.replace("{{statusCode}}",E.status),E)}}},{key:"submitRequest",value:function(y,E,N){if(y.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}y.send(E)}},{key:"_finished",value:function(y,E,N){var I=D(y,!0),_;try{for(I.s();!(_=I.n()).done;){var L=_.value;L.status=w.SUCCESS,this.emit("success",L,E,N),this.emit("complete",L)}}catch(z){I.e(z)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",y,E,N),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(y,E,N){var I=D(y,!0),_;try{for(I.s();!(_=I.n()).done;){var L=_.value;L.status=w.ERROR,this.emit("error",L,E,N),this.emit("complete",L)}}catch(z){I.e(z)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",y,E,N),this.emit("completemultiple",y)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(y){for(var E=arguments.length,N=new Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];for(var _=0,L=N;_<L.length;_++){var z=L[_];for(var W in z){var U=z[W];y[W]=U}}return y}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var E=Math.random()*16|0,N=y==="x"?E:E&3|8;return N.toString(16)})}}]),w}(h);j.initClass(),j.version="5.9.3",j.options={},j.optionsForElement=function(A){if(A.getAttribute("id"))return j.options[fe(A.getAttribute("id"))]},j.instances=[],j.forElement=function(A){if(typeof A=="string"&&(A=document.querySelector(A)),(A!=null?A.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return A.dropzone},j.autoDiscover=!0,j.discover=function(){var A;if(document.querySelectorAll)A=document.querySelectorAll(".dropzone");else{A=[];var M=function(O){return function(){var y=[],E=D(O,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;/(^| )dropzone($| )/.test(I.className)?y.push(A.push(I)):y.push(void 0)}}catch(_){E.e(_)}finally{E.f()}return y}()};M(document.getElementsByTagName("div")),M(document.getElementsByTagName("form"))}return function(){var w=[],O=D(A,!0),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;j.optionsForElement(E)!==!1?w.push(new j(E)):w.push(void 0)}}catch(N){O.e(N)}finally{O.f()}return w}()},j.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],j.isBrowserSupported=function(){var A=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))A=!1;else{j.blacklistedBrowsers!==void 0&&(j.blockedBrowsers=j.blacklistedBrowsers);var M=D(j.blockedBrowsers,!0),w;try{for(M.s();!(w=M.n()).done;){var O=w.value;if(O.test(navigator.userAgent)){A=!1;continue}}}catch(y){M.e(y)}finally{M.f()}}else A=!1;return A},j.dataURItoBlob=function(A){for(var M=atob(A.split(",")[1]),w=A.split(",")[0].split(":")[1].split(";")[0],O=new ArrayBuffer(M.length),y=new Uint8Array(O),E=0,N=M.length,I=0<=N;I?E<=N:E>=N;I?E++:E--)y[E]=M.charCodeAt(E);return new Blob([O],{type:w})};var ce=function(M,w){return M.filter(function(O){return O!==w}).map(function(O){return O})},fe=function(M){return M.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};j.createElement=function(A){var M=document.createElement("div");return M.innerHTML=A,M.childNodes[0]},j.elementInside=function(A,M){if(A===M)return!0;for(;A=A.parentNode;)if(A===M)return!0;return!1},j.getElement=function(A,M){var w;if(typeof A=="string"?w=document.querySelector(A):A.nodeType!=null&&(w=A),w==null)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},j.getElements=function(A,M){var w,O;if(A instanceof Array){O=[];try{var y=D(A,!0),E;try{for(y.s();!(E=y.n()).done;)w=E.value,O.push(this.getElement(w,M))}catch(_){y.e(_)}finally{y.f()}}catch{O=null}}else if(typeof A=="string"){O=[];var N=D(document.querySelectorAll(A),!0),I;try{for(N.s();!(I=N.n()).done;)w=I.value,O.push(w)}catch(_){N.e(_)}finally{N.f()}}else A.nodeType!=null&&(O=[A]);if(O==null||!O.length)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return O},j.confirm=function(A,M,w){if(window.confirm(A))return M();if(w!=null)return w()},j.isValidFile=function(A,M){if(!M)return!0;M=M.split(",");var w=A.type,O=w.replace(/\/.*$/,""),y=D(M,!0),E;try{for(y.s();!(E=y.n()).done;){var N=E.value;if(N=N.trim(),N.charAt(0)==="."){if(A.name.toLowerCase().indexOf(N.toLowerCase(),A.name.length-N.length)!==-1)return!0}else if(/\/\*$/.test(N)){if(O===N.replace(/\/.*$/,""))return!0}else if(w===N)return!0}}catch(I){y.e(I)}finally{y.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(A){return this.each(function(){return new j(this,A)})}),j.ADDED="added",j.QUEUED="queued",j.ACCEPTED=j.QUEUED,j.UPLOADING="uploading",j.PROCESSING=j.UPLOADING,j.CANCELED="canceled",j.ERROR="error",j.SUCCESS="success";var be=function(M){M.naturalWidth;var w=M.naturalHeight,O=document.createElement("canvas");O.width=1,O.height=w;var y=O.getContext("2d");y.drawImage(M,0,0);for(var E=y.getImageData(1,0,1,w),N=E.data,I=0,_=w,L=w;L>I;){var z=N[(L-1)*4+3];z===0?_=L:I=L,L=_+I>>1}var W=L/w;return W===0?1:W},we=function(M,w,O,y,E,N,I,_,L,z){var W=be(w);return M.drawImage(w,O,y,E,N,I,_,L,z/W)},Ee=function(){function A(){F(this,A)}return $(A,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var O="",y=void 0,E=void 0,N="",I=void 0,_=void 0,L=void 0,z="",W=0;y=w[W++],E=w[W++],N=w[W++],I=y>>2,_=(y&3)<<4|E>>4,L=(E&15)<<2|N>>6,z=N&63,isNaN(E)?L=z=64:isNaN(N)&&(z=64),O=O+this.KEY_STR.charAt(I)+this.KEY_STR.charAt(_)+this.KEY_STR.charAt(L)+this.KEY_STR.charAt(z),y=E=N="",I=_=L=z="",W<w.length;);return O}},{key:"restore",value:function(w,O){if(!w.match("data:image/jpeg;base64,"))return O;var y=this.decode64(w.replace("data:image/jpeg;base64,","")),E=this.slice2Segments(y),N=this.exifManipulation(O,E);return"data:image/jpeg;base64,".concat(this.encode64(N))}},{key:"exifManipulation",value:function(w,O){var y=this.getExifArray(O),E=this.insertExif(w,y),N=new Uint8Array(E);return N}},{key:"getExifArray",value:function(w){for(var O=void 0,y=0;y<w.length;){if(O=w[y],O[0]===255&O[1]===225)return O;y++}return[]}},{key:"insertExif",value:function(w,O){var y=w.replace("data:image/jpeg;base64,",""),E=this.decode64(y),N=E.indexOf(255,3),I=E.slice(0,N),_=E.slice(N),L=I;return L=L.concat(O),L=L.concat(_),L}},{key:"slice2Segments",value:function(w){for(var O=0,y=[];;){var E;if(w[O]===255&w[O+1]===218)break;if(w[O]===255&w[O+1]===216)O+=2;else{E=w[O+2]*256+w[O+3];var N=O+E+2,I=w.slice(O,N);y.push(I),O=N}if(O>w.length)break}return y}},{key:"decode64",value:function(w){var O=void 0,y=void 0,E="",N=void 0,I=void 0,_=void 0,L="",z=0,W=[],U=/[^A-Za-z0-9\+\/\=]/g;for(U.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
10
10
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
11
- Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");N=this.KEY_STR.indexOf(w.charAt(z++)),I=this.KEY_STR.indexOf(w.charAt(z++)),_=this.KEY_STR.indexOf(w.charAt(z++)),L=this.KEY_STR.indexOf(w.charAt(z++)),O=N<<2|I>>4,y=(I&15)<<4|_>>2,E=(_&3)<<6|L,W.push(O),_!==64&&W.push(y),L!==64&&W.push(E),O=y=E="",N=I=_=L="",z<w.length;);return W}}]),A}();Ee.initClass();var Ae=function(M,w){var O=!1,y=!0,E=M.document,N=E.documentElement,I=E.addEventListener?"addEventListener":"attachEvent",_=E.addEventListener?"removeEventListener":"detachEvent",L=E.addEventListener?"":"on",z=function U(K){if(!(K.type==="readystatechange"&&E.readyState!=="complete")&&((K.type==="load"?M:E)[_](L+K.type,U,!1),!O&&(O=!0)))return w.call(M,K.type||K)},W=function U(){try{N.doScroll("left")}catch{setTimeout(U,50);return}return z("poll")};if(E.readyState!=="complete"){if(E.createEventObject&&N.doScroll){try{y=!M.frameElement}catch{}y&&W()}return E[I](L+"DOMContentLoaded",z,!1),E[I](L+"readystatechange",z,!1),M[I](L+"load",z,!1)}};j._autoDiscoverFunction=function(){if(j.autoDiscover)return j.discover()},Ae(window,j._autoDiscoverFunction);function Te(A,M){return typeof A<"u"&&A!==null?M(A):void 0}function Oe(A,M,w){if(typeof A<"u"&&A!==null&&typeof A[M]=="function")return w(A,M)}window.Dropzone=j;var ve=j}(),i}()})})(zf);var cv=zf.exports;const nu=lv(cv),uv={class:"fallback"},dv=f.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),fv={for:"file"},hv={class:"dz-message","data-dz-message":""},pv={id:"bd-dropzone-theme",style:{display:"none"}},mv={class:"dz-preview dz-file-preview"},gv={class:"dz-details"},vv=f.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),yv=f.createElementVNode("div",{class:"dz-filename"},[f.createElementVNode("small",{"data-dz-name":""})],-1),bv=f.createElementVNode("div",{class:"dz-progress"},[f.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[f.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),Ev={class:"dz-success-mark"},Cv={class:"dz-error-message text-danger"},Sv=f.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Hf=f.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:".jpg"},url:{default:""},tag:{default:"form"},token:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({variant:ks.PRIMARY,size:at.SM})),o=gr(t,"modelValue",e);let i=null;nu.autoDiscover=!1,f.watch(()=>t.modelValue,()=>{s()}),f.onMounted(()=>{document.getElementById("dropzone")&&l()});const s=()=>{i&&(i.destroy(),l())},l=()=>{var m;i=new nu("#dropzone",{url:t.url,method:"post",acceptedFiles:t.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:t.multiple?3:1,headers:{RequestVerificationToken:t.token},dictResponseError:t.errorMessage,dictFileTooBig:t.fileSizeExceededMessage,previewTemplate:(m=document.querySelector("#bd-dropzone-theme"))==null?void 0:m.innerHTML}),i.on("error",c),i.on("success",a),i.on("removedfile",d)},a=function(m,p){var g;o.value.push({UUID:(g=m.upload)==null?void 0:g.uuid,CorrelationId:p.CorrelationId,Naam:p.Naam}),u(m)},c=function(m){u(m)},u=function(m){const p=m.name;if(!(p.endsWith(".png")||p.endsWith(".jpg")||p.endsWith(".jpeg")||p.endsWith(".gif"))){const g=m.previewElement.getElementsByClassName("icon-file"),v=m.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),v[0].classList.add("d-none")}},d=function(m){const p=o.value.findIndex(g=>{var v,C;return((v=g.upload)==null?void 0:v.uuid)===((C=m.upload)==null?void 0:C.uuid)});p!==-1&&o.value.splice(p,1)},h=f.computed(()=>t.tag??"form");return(m,p)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:f.withCtx(()=>[f.createElementVNode("div",uv,[dv,f.createTextVNode(" test "),f.createElementVNode("label",fv,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(t.buttonText),1)])]),f.createElementVNode("div",hv,[f.createVNode(f.unref(lt),f.normalizeProps(f.guardReactiveProps(r.value)),{default:f.withCtx(()=>[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(t.buttonText),1)]),_:1},16)])]),_:1})),f.createElementVNode("div",pv,[f.createElementVNode("div",mv,[f.createElementVNode("div",gv,[vv,f.createVNode(f.unref(Rl),{"data-dz-thumbnail":"",class:"d-none"}),yv,f.createVNode(f.unref(lt),{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:1})]),bv,f.createElementVNode("div",Ev,[f.createVNode(f.unref(Bo))]),f.createElementVNode("div",Cv,[f.createVNode(f.unref(xs)),Sv])])])],64))}});function Qe(n){this.content=n}Qe.prototype={constructor:Qe,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,o=r.find(n),i=r.content.slice();return o==-1?i.push(t||n,e):(i[o+1]=e,t&&(i[o]=t)),new Qe(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Qe(t)},addToStart:function(n,e){return new Qe([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new Qe(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),i=r.find(n);return o.splice(i==-1?o.length:i,0,e,t),new Qe(o)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=Qe.from(n),n.size?new Qe(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=Qe.from(n),n.size?new Qe(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=Qe.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};Qe.from=function(n){if(n instanceof Qe)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Qe(e)};function Uf(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),i=e.child(r);if(o==i){t+=o.nodeSize;continue}if(!o.sameMarkup(i))return t;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)t++;return t}if(o.content.size||i.content.size){let s=Uf(o.content,i.content,t+1);if(s!=null)return s}t+=o.nodeSize}}function jf(n,e,t,r){for(let o=n.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:t,b:r};let s=n.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){t-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:t,b:r};if(s.isText&&s.text!=l.text){let c=0,u=Math.min(s.text.length,l.text.length);for(;c<u&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(s.content.size||l.content.size){let c=jf(s.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class se{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,o=0,i){for(let s=0,l=0;l<t;s++){let a=this.content[s],c=l+a.nodeSize;if(c>e&&r(a,o+l,i||null,s)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,o+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",s=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(i+=l.text.slice(Math.max(e,a)-a,t-a),s=!r):l.isLeaf?(o?i+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(i+=l.type.spec.leafText(l)),s=!r):!s&&l.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new se(o,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],o=0;if(t>e)for(let i=0,s=0;s<t;i++){let l=this.content[i],a=s+l.nodeSize;a>e&&((s<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,t-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,t-s-1))),r.push(l),o+=l.nodeSize),s=a}return new se(r,o)}cutByIndex(e,t){return e==t?se.empty:e==0&&t==this.content.length?this:new se(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new se(o,i)}addToStart(e){return new se([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new se(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return Uf(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return jf(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Qo(0,e);if(e==this.size)return Qo(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||t>0?Qo(r+1,s):Qo(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return se.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new se(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return se.empty;let t,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(t||(t=e.slice(0,o)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new se(t||e,r)}static from(e){if(!e)return se.empty;if(e instanceof se)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new se([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}se.empty=new se([],0);const ta={index:0,offset:0};function Qo(n,e){return ta.index=n,ta.offset=e,ta}function xi(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!xi(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!xi(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Pe=class Ya{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&xi(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ya.none;if(e instanceof Ya)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};Pe.none=[];class Ti extends Error{}class he{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Kf(this.content,e+this.openStart,t);return r&&new he(r,this.openStart,this.openEnd)}removeBetween(e,t){return new he(Wf(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return he.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new he(se.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)o++;return new he(e,r,o)}}he.empty=new he(se.empty,0,0);function Wf(n,e,t){let{index:r,offset:o}=n.findIndex(e),i=n.maybeChild(r),{index:s,offset:l}=n.findIndex(t);if(o==e||i.isText){if(l!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Wf(i.content,e-o-1,t-o-1)))}function Kf(n,e,t,r){let{index:o,offset:i}=n.findIndex(e),s=n.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Kf(s.content,e-i-1,t);return l&&n.replaceChild(o,s.copy(l))}function wv(n,e,t){if(t.openStart>n.depth)throw new Ti("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Ti("Inconsistent open depths");return Gf(n,e,t,0)}function Gf(n,e,t,r){let o=n.index(r),i=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let s=Gf(n,e,t,r+1);return i.copy(i.content.replaceChild(o,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,l=s.content;return or(s,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=xv(t,n);return or(i,Jf(n,s,l,e,r))}else return or(i,ki(n,e,r))}function Yf(n,e){if(!e.type.compatibleContent(n.type))throw new Ti("Cannot join "+e.type.name+" onto "+n.type.name)}function Ja(n,e,t){let r=n.node(t);return Yf(r,e.node(t)),r}function rr(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function ho(n,e,t,r){let o=(e||n).node(t),i=0,s=e?e.index(t):o.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(rr(n.nodeAfter,r),i++));for(let l=i;l<s;l++)rr(o.child(l),r);e&&e.depth==t&&e.textOffset&&rr(e.nodeBefore,r)}function or(n,e){return n.type.checkContent(e),n.copy(e)}function Jf(n,e,t,r,o){let i=n.depth>o&&Ja(n,e,o+1),s=r.depth>o&&Ja(t,r,o+1),l=[];return ho(null,n,o,l),i&&s&&e.index(o)==t.index(o)?(Yf(i,s),rr(or(i,Jf(n,e,t,r,o+1)),l)):(i&&rr(or(i,ki(n,e,o+1)),l),ho(e,t,o,l),s&&rr(or(s,ki(t,r,o+1)),l)),ho(r,null,o,l),new se(l)}function ki(n,e,t){let r=[];if(ho(null,n,t,r),n.depth>t){let o=Ja(n,e,t+1);rr(or(o,ki(n,e,t+1)),r)}return ho(e,null,t,r),new se(r)}function xv(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)o=e.node(i).copy(se.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class xo{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Pe.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let l=r;r=o,o=l}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Ai(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,i=t;for(let s=e;;){let{index:l,offset:a}=s.content.findIndex(i),c=i-a;if(r.push(s,l,o+a),!c||(s=s.child(l),s.isText))break;i=c-1,o+=a+1}return new xo(t,r,i)}static resolveCached(e,t){for(let o=0;o<na.length;o++){let i=na[o];if(i.pos==t&&i.doc==e)return i}let r=na[ra]=xo.resolve(e,t);return ra=(ra+1)%Tv,r}}let na=[],ra=0,Tv=12;class Ai{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const kv=Object.create(null);let ir=class Za{constructor(e,t,r,o=Pe.none){this.type=e,this.attrs=t,this.marks=o,this.content=r||se.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,o=0){this.content.nodesBetween(e,t,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,o){return this.content.textBetween(e,t,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&xi(this.attrs,t||e.defaultAttrs||kv)&&Pe.sameSet(this.marks,r||Pe.none)}copy(e=null){return e==this.content?this:new Za(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Za(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return he.empty;let o=this.resolve(e),i=this.resolve(t),s=r?0:o.sharedDepth(t),l=o.start(s),c=o.node(s).content.cut(o.pos-l,i.pos-l);return new he(c,o.depth-s,i.depth-s)}replace(e,t,r){return wv(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return xo.resolveCached(this,e)}resolveNoCache(e){return xo.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Zf(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=se.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=Pe.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!Pe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=se.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,r)}};ir.prototype.text=void 0;class Oi extends ir{constructor(e,t,r,o){if(super(e,t,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Zf(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Oi(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Oi(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Zf(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ur{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Av(e,t);if(r.next==null)return ur.empty;let o=Xf(r);r.next&&r.err("Unexpected trailing text");let i=Lv(_v(o));return Rv(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let o=this;for(let i=t;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let o=[this];function i(s,l){let a=s.matchFragment(e,r);if(a&&(!t||a.validEnd))return se.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(d)==-1){o.push(d);let h=i(d,l.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let l=o;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!o.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&t(r.next[o].next)}return t(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
12
- `)}}ur.empty=new ur(!0);class Av{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Xf(n){let e=[];do e.push(Ov(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Ov(n){let e=[];do e.push(Mv(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Mv(n){let e=Dv(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Nv(n,e);else break;return e}function ru(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Nv(n,e){let t=ru(n),r=t;return n.eat(",")&&(n.next!="}"?r=ru(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Iv(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let i in t){let s=t[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function Dv(n){if(n.eat("(")){let e=Xf(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Iv(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function _v(n){let e=[[]];return o(i(n,0),t()),e;function t(){return e.push([])-1}function r(s,l,a){let c={term:a,to:l};return e[s].push(c),c}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;o(c,l=t())}else if(s.type=="star"){let a=t();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=t();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let u=t();o(i(s.expr,a),u),a=u}if(s.max==-1)o(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let u=t();r(a,u),o(i(s.expr,a),u),a=u}return[r(a)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Qf(n,e){return e-n}function ou(n,e){let t=[];return r(e),t.sort(Qf);function r(o){let i=n[o];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(o);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&t.indexOf(a)==-1&&r(a)}}}function Lv(n){let e=Object.create(null);return t(ou(n,0));function t(r){let o=[];r.forEach(s=>{n[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<o.length;u++)o[u][0]==l&&(c=o[u][1]);ou(n,a).forEach(u=>{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new ur(r.indexOf(n.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(Qf);i.next.push({type:o[s][0],next:e[l.join(",")]||t(l)})}return i}}function Rv(n,e){for(let t=0,r=[n];t<r.length;t++){let o=r[t],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function qf(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function eh(n,e){let t=Object.create(null);for(let r in n){let o=e&&e[r];if(o===void 0){let i=n[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=o}return t}function th(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new Pv(n[t]);return e}let iu=class nh{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=th(r.attrs),this.defaultAttrs=qf(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ur.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:eh(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ir(this,this.computeAttrs(e),se.from(t),Pe.setFrom(r))}createChecked(e=null,t,r){return t=se.from(t),this.checkContent(t),new ir(this,this.computeAttrs(e),t,Pe.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=se.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let o=this.contentMatch.matchFragment(t),i=o&&o.fillBefore(se.empty,!0);return i?new ir(this,e,t.append(i),Pe.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:Pe.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,s)=>r[i]=new nh(i,t,s));let o=t.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Pv{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Os{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=th(o.attrs),this.excluded=null;let i=qf(this.attrs);this.instance=i?new Pe(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Pe(this,eh(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Os(i,o++,t,s)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Bv{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=Qe.from(e.nodes),t.marks=Qe.from(e.marks||{}),this.nodes=iu.compile(this.spec.nodes,this),this.marks=Os.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=ur.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?su(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:su(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof iu){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,o)}text(e,t){let r=this.nodes.text;return new Oi(r,r.defaultAttrs,e,Pe.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return ir.fromJSON(this,e)}markFromJSON(e){return Pe.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function su(n,e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],i=n.marks[o],s=i;if(i)t.push(i);else for(let l in n.marks){let a=n.marks[l];(o=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(o)>-1)&&t.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Hr{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,t={}){let r=new lu(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new lu(this,t,!0);return r.addAll(e,t.from,t.to),he.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(Vv(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,t,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(s.getAttrs){let a=s.getAttrs(t);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let t=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<t.length;s++){let l=t[s];if((l.priority==null?50:l.priority)<i)break}t.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=cu(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=cu(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Hr(e,Hr.schemaRules(e)))}}const rh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},$v={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},oh={ol:!0,ul:!0},Mi=1,Ni=2,po=4;function au(n,e,t){return e!=null?(e?Mi:0)|(e==="full"?Ni:0):n&&n.whitespace=="pre"?Mi|Ni:t&~po}class qo{constructor(e,t,r,o,i,s,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=Pe.none,this.stashMarks=[],this.match=s||(l&po?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(se.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Mi)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let t=se.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(se.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let o=r[t];(this.type?this.type.allowsMarkType(o.type):Hv(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!rh.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class lu{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let o=t.topNode,i,s=au(null,t.preserveWhitespace,0)|(r?po:0);o?i=new qo(o.type,o.attrs,Pe.none,Pe.none,!0,t.topMatch||o.type.contentMatch,s):r?i=new qo(null,null,Pe.none,Pe.none,!0,null,s):i=new qo(e.schema.topNodeType,null,Pe.none,Pe.none,!0,null,s),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let o=this.readStyles(zv(r));if(!o)return;let[i,s]=o,l=this.top;for(let a=0;a<s.length;a++)this.removePendingMark(s[a],l);for(let a=0;a<i.length;a++)this.addPendingMark(i[a]);t();for(let a=0;a<i.length;a++)this.removePendingMark(i[a],l);for(let a=0;a<s.length;a++)this.addPendingMark(s[a])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Ni||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&Mi)r.options&Ni?t=t.replace(/\r\n?/g,`
13
- `):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),o;oh.hasOwnProperty(r)&&this.parser.normalizeLists&&Fv(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,t));if(i?i.ignore:$v.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,l=this.top,a=this.needsBlock;if(rh.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
14
- `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=Pe.none,r=Pe.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{s.clearMark(l)&&(r=l.addToSet(r))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),s.consuming===!1)i=s;else break}return[t,r]}addElementByRule(e,t,r){let o,i,s;t.node?(i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):o=this.enter(i,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(l)&&this.open--,s&&this.removePendingMark(s,l)}addAll(e,t,r){let o=t||0;for(let i=t?e.childNodes[t]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let t,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,r=i,!s.length)||i.solid)break}if(!t)return!1;this.sync(r);for(let o=0;o<t.length;o++)this.enterInner(t[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let o=0;o<e.marks.length;o++)(!t.type||t.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let o=this.findPlace(e.create(t));return o&&this.enterInner(e,t,!0,r),o}enterInner(e,t=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=au(e,o,i.options);i.options&po&&i.content.length==0&&(s|=po),this.nodes.push(new qo(e,t,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&t.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=Uv(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==t)break}}}function Fv(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&oh.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Vv(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function zv(n){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,t,r=[];for(;t=e.exec(n);)r.push(t[1],t[2].trim());return r}function cu(n){let e={};for(let t in n)e[t]=n[t];return e}function Hv(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function Uv(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class tn{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=oa(t).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let c=s.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let c=s.marks[a++],u=this.serializeMark(c,s.isInline,t);u&&(i.push([c,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=tn.renderSpec(oa(t),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,o)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&tn.renderSpec(oa(r),o(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let o=t[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,l=r?e.createElementNS(r,o):e.createElement(o),a=t[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let u in a)if(a[u]!=null){let d=u.indexOf(" ");d>0?l.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):l.setAttribute(u,a[u])}}for(let u=c;u<t.length;u++){let d=t[u];if(d===0){if(u<t.length-1||u>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:m}=tn.renderSpec(e,d,r);if(l.appendChild(h),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new tn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=uu(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return uu(e.marks)}}function uu(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function oa(n){return n.document||window.document}const ih=65535,sh=Math.pow(2,16);function jv(n,e){return n+e*sh}function du(n){return n&ih}function Wv(n){return(n-(n&ih))/sh}const ah=1,lh=2,hi=4,ch=8;class Xa{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&ch)>0}get deletedBefore(){return(this.delInfo&(ah|hi))>0}get deletedAfter(){return(this.delInfo&(lh|hi))>0}get deletedAcross(){return(this.delInfo&hi)>0}}class St{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&St.empty)return St.empty}recover(e){let t=0,r=du(e);if(!this.inverted)for(let o=0;o<r;o++)t+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+t+Wv(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?o:0);if(a>e)break;let c=this.ranges[l+i],u=this.ranges[l+s],d=a+c;if(e<=d){let h=c?e==a?-1:e==d?1:t:t,m=a+o+(h<0?0:u);if(r)return m;let p=e==(t<0?a:d)?null:jv(l/3,e-a),g=e==a?lh:e==d?ah:hi;return(t<0?e!=a:e!=d)&&(g|=ch),new Xa(m,g,p)}o+=u-c}return r?e+o:new Xa(e+o,0,null)}touches(e,t){let r=0,o=du(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+i],u=a+c;if(e<=u&&l==o*3)return!0;r+=this.ranges[l+s]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),c=this.ranges[o+t],u=this.ranges[o+r];e(l,l+c,a,a+u),i+=u-c}}invert(){return new St(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?St.empty:new St(e<0?[0,-e,0]:[0,0,e])}}St.empty=new St([]);class mo{constructor(e=[],t,r=0,o=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=o}slice(e=0,t=this.maps.length){return new mo(this.maps,this.mirror,e,t)}copy(){return new mo(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),t!=null&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let o=e.getMirror(t);this.appendMap(e.maps[t],o!=null&&o<t?r+o:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),o!=null&&o>t?r-o-1:void 0)}}invert(){let e=new mo;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this.maps[a].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Xa(e,o,null)}}const ia=Object.create(null);class ot{getMap(){return St.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=ia[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in ia)throw new RangeError("Duplicate use of step JSON ID "+e);return ia[e]=t,t.prototype.jsonID=e,t}}class We{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new We(e,null)}static fail(e){return new We(null,e)}static fromReplace(e,t,r,o){try{return We.ok(e.replace(t,r,o))}catch(i){if(i instanceof Ti)return We.fail(i.message);throw i}}}function Ul(n,e,t){let r=[];for(let o=0;o<n.childCount;o++){let i=n.child(o);i.content.size&&(i=i.copy(Ul(i.content,e,i))),i.isInline&&(i=e(i,t,o)),r.push(i)}return se.fromArray(r)}class In extends ot{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new he(Ul(t.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),t.openStart,t.openEnd);return We.fromReplace(e,this.from,this.to,i)}invert(){return new nn(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new In(t.pos,r.pos,this.mark)}merge(e){return e instanceof In&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new In(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new In(t.from,t.to,e.markFromJSON(t.mark))}}ot.jsonID("addMark",In);class nn extends ot{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new he(Ul(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return We.fromReplace(e,this.from,this.to,r)}invert(){return new In(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new nn(t.pos,r.pos,this.mark)}merge(e){return e instanceof nn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new nn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new nn(t.from,t.to,e.markFromJSON(t.mark))}}ot.jsonID("removeMark",nn);class Dn extends ot{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return We.fromReplace(e,this.pos,this.pos+1,new he(se.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let o=0;o<t.marks.length;o++)if(!t.marks[o].isInSet(r))return new Dn(this.pos,t.marks[o]);return new Dn(this.pos,this.mark)}}return new Ur(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Dn(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Dn(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("addNodeMark",Dn);class Ur extends ot{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return We.fromReplace(e,this.pos,this.pos+1,new he(se.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Dn(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ur(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ur(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("removeNodeMark",Ur);class qe extends ot{constructor(e,t,r,o=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=o}apply(e){return this.structure&&Qa(e,this.from,this.to)?We.fail("Structure replace would overwrite content"):We.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new St([this.from,this.to-this.from,this.slice.size])}invert(e){return new qe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new qe(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof qe)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?he.empty:new he(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new qe(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?he.empty:new he(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new qe(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new qe(t.from,t.to,he.fromJSON(e,t.slice),!!t.structure)}}ot.jsonID("replace",qe);class Je extends ot{constructor(e,t,r,o,i,s,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Qa(e,this.from,this.gapFrom)||Qa(e,this.gapTo,this.to)))return We.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return We.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?We.fromReplace(e,this.from,this.to,r):We.fail("Content does not fit in gap")}getMap(){return new St([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Je(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||i>r.pos?null:new Je(t.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Je(t.from,t.to,t.gapFrom,t.gapTo,he.fromJSON(e,t.slice),t.insert,!!t.structure)}}ot.jsonID("replaceAround",Je);function Qa(n,e,t){let r=n.resolve(e),o=t-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function Kv(n,e,t,r){let o=[],i=[],s,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let h=Math.max(c,e),m=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(s&&s.to==h&&s.mark.eq(d[g])?s.to=m:o.push(s=new nn(h,m,d[g])));l&&l.to==h?l.to=m:i.push(l=new In(h,m,r))}}),o.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function Gv(n,e,t,r){let o=[],i=0;n.doc.nodesBetween(e,t,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Os){let c=s.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let c=Math.min(l+s.nodeSize,t);for(let u=0;u<a.length;u++){let d=a[u],h;for(let m=0;m<o.length;m++){let p=o[m];p.step==i-1&&d.eq(o[m].style)&&(h=p)}h?(h.to=c,h.step=i):o.push({style:d,from:Math.max(l,e),to:c,step:i})}}}),o.forEach(s=>n.step(new nn(s.from,s.to,s.style)))}function Yv(n,e,t,r=t.contentMatch){let o=n.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l<o.childCount;l++){let a=o.child(l),c=s+a.nodeSize,u=r.matchType(a.type);if(!u)i.push(new qe(s,c,he.empty));else{r=u;for(let d=0;d<a.marks.length;d++)t.allowsMarkType(a.marks[d].type)||n.step(new nn(s,c,a.marks[d]));if(a.isText&&!t.spec.code){let d,h=/\r?\n|\r/g,m;for(;d=h.exec(a.text);)m||(m=new he(se.from(t.schema.text(" ",t.allowedMarks(a.marks))),0,0)),i.push(new qe(s+d.index,s+d.index+d[0].length,m))}}s=c}if(!r.validEnd){let l=r.fillBefore(se.empty,!0);n.replace(s,s,new he(l,0,0))}for(let l=i.length-1;l>=0;l--)n.step(i[l])}function Jv(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function eo(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let o=n.$from.node(r),i=n.$from.index(r),s=n.$to.indexAfter(r);if(r<n.depth&&o.canReplace(i,s,t))return r;if(r==0||o.type.spec.isolating||!Jv(o,i,s))break}return null}function Zv(n,e,t){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),l=o.after(i+1),a=s,c=l,u=se.empty,d=0;for(let p=i,g=!1;p>t;p--)g||r.index(p)>0?(g=!0,u=se.from(r.node(p).copy(u)),d++):a--;let h=se.empty,m=0;for(let p=i,g=!1;p>t;p--)g||o.after(p+1)<o.end(p)?(g=!0,h=se.from(o.node(p).copy(h)),m++):c++;n.step(new Je(a,c,s,l,new he(u.append(h),d,m),u.size-d,!0))}function jl(n,e,t=null,r=n){let o=Xv(n,e),i=o&&Qv(r,e);return i?o.map(fu).concat({type:e,attrs:t}).concat(i.map(fu)):null}function fu(n){return{type:n,attrs:null}}function Xv(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return t.canReplaceWith(r,o,s)?i:null}function Qv(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;a&&c<o;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:s}function qv(n,e,t){let r=se.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let l=t[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=se.from(t[s].type.create(t[s].attrs,r))}let o=e.start,i=e.end;n.step(new Je(o,i,o,i,new he(r,0,0),t.length,!0))}function ey(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&ty(n.doc,n.mapping.slice(i).map(l),r)){n.clearIncompatible(n.mapping.slice(i).map(l,1),r);let a=n.mapping.slice(i),c=a.map(l,1),u=a.map(l+s.nodeSize,1);return n.step(new Je(c,u,c+1,u-1,new he(se.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function ty(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function ny(n,e,t,r,o){let i=n.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let s=t.create(r,null,o||i.marks);if(i.isLeaf)return n.replaceWith(e,e+i.nodeSize,s);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Je(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new he(se.from(s),0,0),1,!0))}function $r(n,e,t=1,r){let o=n.resolve(e),i=o.depth-t,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=t-2;c>i;c--,u--){let d=o.node(c),h=o.index(c);if(d.type.spec.isolating)return!1;let m=d.content.cutByIndex(h,d.childCount),p=r&&r[u+1];p&&(m=m.replaceChild(0,p.type.create(p.attrs)));let g=r&&r[u]||d;if(!d.canReplace(h+1,d.childCount)||!g.type.validContent(m))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function ry(n,e,t=1,r){let o=n.doc.resolve(e),i=se.empty,s=se.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){i=se.from(o.node(l).copy(i));let u=r&&r[c];s=se.from(u?u.type.create(u.attrs,s):o.node(l).copy(s))}n.step(new qe(e,e,new he(i.append(s),t,t),!0))}function zn(n,e){let t=n.resolve(e),r=t.index();return uh(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function uh(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Ms(n,e,t=-1){let r=n.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):t>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&uh(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function oy(n,e,t){let r=new qe(e-t,e+t,he.empty,!0);n.step(r)}function iy(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,t))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,t))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function sy(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let i=0;i<t.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),c=r.node(s),u=!1;if(i==1)u=c.canReplace(a,a,o);else{let d=c.contentMatchAt(a).findWrapping(o.firstChild.type);u=d&&c.canReplaceWith(a,a,d[0])}if(u)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function Wl(n,e,t=e,r=he.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),i=n.resolve(t);return dh(o,i,r)?new qe(e,t,r):new ay(o,i,r).fit()}function dh(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class ay{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=se.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=se.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new he(i,s,l);return e>-1?new Je(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new qe(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=sa(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,d=null;if(t==1&&(s?c.matchType(s.type)||(d=c.fillBefore(se.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:d};if(t==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=sa(e,t);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new he(e,t+1,Math.max(r,o.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=sa(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new he(lo(e,t-1,1),t-1,i?t-1:r)}else this.unplaced=new he(lo(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-e,c=0,u=[],{match:d,type:h}=this.frontier[t];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));d=d.matchFragment(o)}let m=l.size+e-(s.content.size-s.openEnd);for(;c<l.childCount;){let g=l.child(c),v=d.matchType(g.type);if(!v)break;c++,(c>1||a==0||g.content.size)&&(d=v,u.push(fh(g.mark(h.allowedMarks(g.marks)),c==1?a:0,c==l.childCount?m:-1)))}let p=c==l.childCount;p||(m=-1),this.placed=co(this.placed,t,se.from(u)),this.frontier[t].match=d,p&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=l;g<m;g++){let C=v.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),v=C.content}this.unplaced=p?e==0?he.empty:new he(lo(s.content,e-1,1),e-1,m<0?s.openEnd:e-1):new he(lo(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!aa(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:o}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=aa(e,t,o,r,i);if(s){for(let l=t-1;l>=0;l--){let{match:a,type:c}=this.frontier[l],u=aa(e,l,c,a,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=co(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,t=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=co(this.placed,this.depth,se.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(se.empty,!0);t.childCount&&(this.placed=co(this.placed,this.frontier.length,t))}}function lo(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(lo(n.firstChild.content,e-1,t)))}function co(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(co(n.lastChild.content,e-1,t)))}function sa(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function fh(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,fh(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(se.empty,!0)))),n.copy(r)}function aa(n,e,t,r,o){let i=n.node(e),s=o?n.indexAfter(e):n.index(e);if(s==i.childCount&&!t.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!ly(t,i.content,s)?l:null}function ly(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function cy(n){return n.spec.defining||n.spec.definingForContent}function uy(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),i=n.doc.resolve(t);if(dh(o,i,r))return n.step(new qe(e,t,r));let s=ph(o,n.doc.resolve(t));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.unshift(l);for(let h=o.depth,m=o.pos-1;h>0;h--,m--){let p=o.node(h).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(h)>-1?l=h:o.before(h)==m&&s.splice(1,0,-h)}let a=s.indexOf(l),c=[],u=r.openStart;for(let h=r.content,m=0;;m++){let p=h.firstChild;if(c.push(p),m==r.openStart)break;h=p.content}for(let h=u-1;h>=0;h--){let m=c[h],p=cy(m.type);if(p&&!m.sameMarkup(o.node(Math.abs(l)-1)))u=h;else if(p||!m.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let m=(h+u+1)%(r.openStart+1),p=c[m];if(p)for(let g=0;g<s.length;g++){let v=s[(g+a)%s.length],C=!0;v<0&&(C=!1,v=-v);let S=o.node(v-1),x=o.index(v-1);if(S.canReplaceWith(x,x,p.type,p.marks))return n.replace(o.before(v),C?i.after(v):t,new he(hh(r.content,0,r.openStart,m),m,r.openEnd))}}let d=n.steps.length;for(let h=s.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>d));h--){let m=s[h];m<0||(e=o.before(m),t=i.after(m))}}function hh(n,e,t,r,o){if(e<t){let i=n.firstChild;n=n.replaceChild(0,i.copy(hh(i.content,e+1,t,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(n).append(n);n=s.append(i.matchFragment(s).fillBefore(se.empty,!0))}return n}function dy(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=iy(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new he(se.from(r),0,0))}function fy(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),i=ph(r,o);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.length-1;if(a&&l==0||r.node(l).type.contentMatch.validEnd)return n.delete(r.start(l),o.end(l));if(l>0&&(a||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return n.delete(r.before(l),o.after(l))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&t>r.end(s)&&o.end(s)-t!=o.depth-s)return n.delete(r.before(s),t);n.delete(e,t)}function ph(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let o=r;o>=0;o--){let i=n.start(o);if(i<n.pos-(n.depth-o)||e.end(o)>e.pos+(e.depth-o)||n.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&t.push(o)}return t}class Fr extends ot{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at attribute step's position");let r=Object.create(null);for(let i in t.attrs)r[i]=t.attrs[i];r[this.attr]=this.value;let o=t.type.create(r,null,t.marks);return We.fromReplace(e,this.pos,this.pos+1,new he(se.from(o),0,t.isLeaf?0:1))}getMap(){return St.empty}invert(e){return new Fr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Fr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Fr(t.pos,t.attr,t.value)}}ot.jsonID("attr",Fr);class To extends ot{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let o in e.attrs)t[o]=e.attrs[o];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return We.ok(r)}getMap(){return St.empty}invert(e){return new To(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new To(t.attr,t.value)}}ot.jsonID("docAttr",To);let jr=class extends Error{};jr=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};jr.prototype=Object.create(Error.prototype);jr.prototype.constructor=jr;jr.prototype.name="TransformError";class mh{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new mo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new jr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=he.empty){let o=Wl(this.doc,e,t,r);return o&&this.step(o),this}replaceWith(e,t,r){return this.replace(e,t,new he(se.from(r),0,0))}delete(e,t){return this.replace(e,t,he.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return uy(this,e,t,r),this}replaceRangeWith(e,t,r){return dy(this,e,t,r),this}deleteRange(e,t){return fy(this,e,t),this}lift(e,t){return Zv(this,e,t),this}join(e,t=1){return oy(this,e,t),this}wrap(e,t){return qv(this,e,t),this}setBlockType(e,t=e,r,o=null){return ey(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return ny(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Fr(e,t,r)),this}setDocAttribute(e,t){return this.step(new To(e,t)),this}addNodeMark(e,t){return this.step(new Dn(e,t)),this}removeNodeMark(e,t){if(!(t instanceof Pe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new Ur(e,t)),this}split(e,t=1,r){return ry(this,e,t,r),this}addMark(e,t,r){return Kv(this,e,t,r),this}removeMark(e,t,r){return Gv(this,e,t,r),this}clearIncompatible(e,t,r){return Yv(this,e,t,r),this}}const la=Object.create(null);class _e{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new hy(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=he.empty){let r=t.content.lastChild,o=null;for(let l=0;l<t.openEnd;l++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(c.pos),l?he.empty:t),l==0&&mu(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:l}=o[i],a=e.mapping.slice(r),c=a.map(s.pos),u=a.map(l.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),mu(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let o=e.parent.inlineContent?new Le(e):Ar(e.node(0),e.parent,e.pos,e.index(),t,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=t<0?Ar(e.node(0),e.node(i),e.before(i+1),e.index(i),t,r):Ar(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,r);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ht(e.node(0))}static atStart(e){return Ar(e,e,0,0,1)||new Ht(e)}static atEnd(e){return Ar(e,e,e.content.size,e.childCount,-1)||new Ht(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=la[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in la)throw new RangeError("Duplicate use of selection JSON ID "+e);return la[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Le.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class hy{constructor(e,t){this.$from=e,this.$to=t}}let hu=!1;function pu(n){!hu&&!n.parent.inlineContent&&(hu=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Le extends _e{constructor(e,t=e){pu(e),pu(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return _e.near(r);let o=e.resolve(t.map(this.anchor));return new Le(o.parent.inlineContent?o:r,r)}replace(e,t=he.empty){if(super.replace(e,t),t==he.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Le&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ns(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Le(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let o=e.resolve(t);return new this(o,r==t?o:e.resolve(r))}static between(e,t,r){let o=e.pos-t.pos;if((!r||o)&&(r=o>=0?1:-1),!t.parent.inlineContent){let i=_e.findFrom(t,r,!0)||_e.findFrom(t,-r,!0);if(i)t=i.$head;else return _e.near(t,r)}return e.parent.inlineContent||(o==0?e=t:(e=(_e.findFrom(e,-r,!0)||_e.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=o<0&&(e=t))),new Le(e,t)}}_e.jsonID("text",Le);class Ns{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Ns(e.map(this.anchor),e.map(this.head))}resolve(e){return Le.between(e.resolve(this.anchor),e.resolve(this.head))}}class Se extends _e{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:o}=t.mapResult(this.anchor),i=e.resolve(o);return r?_e.near(i):new Se(i)}content(){return new he(se.from(this.node),0,0)}eq(e){return e instanceof Se&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Kl(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Se(e.resolve(t.anchor))}static create(e,t){return new Se(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Se.prototype.visible=!1;_e.jsonID("node",Se);class Kl{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Ns(r,r):new Kl(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&Se.isSelectable(r)?new Se(t):_e.near(t)}}class Ht extends _e{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=he.empty){if(t==he.empty){e.delete(0,e.doc.content.size);let r=_e.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ht(e)}map(e){return new Ht(e)}eq(e){return e instanceof Ht}getBookmark(){return py}}_e.jsonID("all",Ht);const py={map(){return this},resolve(n){return new Ht(n)}};function Ar(n,e,t,r,o,i=!1){if(e.inlineContent)return Le.create(n,t);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&Se.isSelectable(l))return Se.create(n,t-(o<0?l.nodeSize:0))}else{let a=Ar(n,l,t+o,o<0?l.childCount:0,o,i);if(a)return a}t+=l.nodeSize*o}return null}function mu(n,e,t){let r=n.steps.length-1;if(r<e)return;let o=n.steps[r];if(!(o instanceof qe||o instanceof Je))return;let i=n.mapping.maps[r],s;i.forEach((l,a,c,u)=>{s==null&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),t))}const gu=1,ei=2,vu=4;class my extends mh{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|gu)&~ei,this.storedMarks=null,this}get selectionSet(){return(this.updated&gu)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ei,this}ensureMarks(e){return Pe.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&ei)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~ei,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Pe.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let o=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(t);i=r==t?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,i)),this.selection.empty||this.setSelection(_e.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=vu,this}get scrolledIntoView(){return(this.updated&vu)>0}}function yu(n,e){return!e||!n?n:n.bind(e)}class uo{constructor(e,t,r){this.name=e,this.init=yu(t.init,r),this.apply=yu(t.apply,r)}}const gy=[new uo("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new uo("selection",{init(n,e){return n.selection||_e.atStart(e.doc)},apply(n){return n.selection}}),new uo("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new uo("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class ca{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=gy.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new uo(r.key,r.spec.state,r))})}}class Rr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),o=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let a=o?o[s].n:0,c=o?o[s].state:this,u=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let d=0;d<this.config.plugins.length;d++)o.push(d<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Rr(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new my(this)}static create(e){let t=new ca(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Rr(t);for(let o=0;o<t.fields.length;o++)r[t.fields[o].name]=t.fields[o].init(e,r);return r}reconfigure(e){let t=new ca(this.schema,e.plugins),r=t.fields,o=new Rr(t);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,o)}return o}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new ca(e.schema,e.plugins),i=new Rr(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=ir.fromJSON(e.schema,t.doc);else if(s.name=="selection")i.selection=_e.fromJSON(i.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],c=a.spec.state;if(a.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[s.name]=c.fromJSON.call(a,e,t[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function gh(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=gh(o,e,{})),t[r]=o}return t}class Et{constructor(e){this.spec=e,this.props={},e.props&&gh(e.props,this,this.props),this.key=e.key?e.key.key:vh("plugin")}getState(e){return e[this.key]}}const ua=Object.create(null);function vh(n){return n in ua?n+"$"+ ++ua[n]:(ua[n]=0,n+"$")}class Kt{constructor(e="key"){this.key=vh(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ct=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},ko=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let bu=null;const hn=function(n,e,t){let r=bu||(bu=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},dr=function(n,e,t,r){return t&&(Eu(n,e,t,r,-1)||Eu(n,e,t,r,1))},vy=/^(img|br|input|textarea|hr)$/i;function Eu(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:en(n))){let i=n.parentNode;if(!i||i.nodeType!=1||Gl(n)||vy.test(n.nodeName)||n.contentEditable=="false")return!1;e=ct(n)+(o<0?0:1),n=i}else if(n.nodeType==1){if(n=n.childNodes[e+(o<0?-1:0)],n.contentEditable=="false")return!1;e=o<0?en(n):0}else return!1}}function en(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function yy(n,e,t){for(let r=e==0,o=e==en(n);r||o;){if(n==t)return!0;let i=ct(n);if(n=n.parentNode,!n)return!1;r=r&&i==0,o=o&&i==en(n)}}function Gl(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const Is=function(n){return n.focusNode&&dr(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Zn(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function by(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Ey(n,e,t){if(n.caretPositionFromPoint)try{let r=n.caretPositionFromPoint(e,t);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(n.caretRangeFromPoint){let r=n.caretRangeFromPoint(e,t);if(r)return{node:r.startContainer,offset:r.startOffset}}}const on=typeof navigator<"u"?navigator:null,Cu=typeof document<"u"?document:null,Hn=on&&on.userAgent||"",qa=/Edge\/(\d+)/.exec(Hn),yh=/MSIE \d/.exec(Hn),el=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hn),bt=!!(yh||el||qa),Ln=yh?document.documentMode:el?+el[1]:qa?+qa[1]:0,jt=!bt&&/gecko\/(\d+)/i.test(Hn);jt&&+(/Firefox\/(\d+)/.exec(Hn)||[0,0])[1];const tl=!bt&&/Chrome\/(\d+)/.exec(Hn),rt=!!tl,Cy=tl?+tl[1]:0,ft=!bt&&!!on&&/Apple Computer/.test(on.vendor),Wr=ft&&(/Mobile\/\w+/.test(Hn)||!!on&&on.maxTouchPoints>2),Lt=Wr||(on?/Mac/.test(on.platform):!1),Sy=on?/Win/.test(on.platform):!1,zt=/Android \d/.test(Hn),zo=!!Cu&&"webkitFontSmoothing"in Cu.documentElement.style,wy=zo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function xy(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function dn(n,e){return typeof n=="number"?n:n[e]}function Ty(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function Su(n,e,t){let r=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,i=n.dom.ownerDocument;for(let s=t||n.dom;s;s=ko(s)){if(s.nodeType!=1)continue;let l=s,a=l==i.body,c=a?xy(i):Ty(l),u=0,d=0;if(e.top<c.top+dn(r,"top")?d=-(c.top-e.top+dn(o,"top")):e.bottom>c.bottom-dn(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+dn(o,"top")-c.top:e.bottom-c.bottom+dn(o,"bottom")),e.left<c.left+dn(r,"left")?u=-(c.left-e.left+dn(o,"left")):e.right>c.right-dn(r,"right")&&(u=e.right-c.right+dn(o,"right")),u||d)if(a)i.defaultView.scrollBy(u,d);else{let h=l.scrollLeft,m=l.scrollTop;d&&(l.scrollTop+=d),u&&(l.scrollLeft+=u);let p=l.scrollLeft-h,g=l.scrollTop-m;e={left:e.left-p,top:e.top-g,right:e.right-p,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function ky(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=n.root.elementFromPoint(i,s);if(!l||l==n.dom||!n.dom.contains(l))continue;let a=l.getBoundingClientRect();if(a.top>=t-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:bh(n.dom)}}function bh(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=ko(r));return e}function Ay({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;Eh(t,r==0?0:r-e)}function Eh(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:o,left:i}=n[t];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Cr=null;function Oy(n){if(n.setActive)return n.setActive();if(Cr)return n.focus(Cr);let e=bh(n);n.focus(Cr==null?{get preventScroll(){return Cr={preventScroll:!0},!0}}:void 0),Cr||(Cr=!1,Eh(e,0))}function Ch(n,e){let t,r=2e8,o,i=0,s=e.top,l=e.top,a,c;for(let u=n.firstChild,d=0;u;u=u.nextSibling,d++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=hn(u).getClientRects();else continue;for(let m=0;m<h.length;m++){let p=h[m];if(p.top<=s&&p.bottom>=l){s=Math.max(p.bottom,s),l=Math.min(p.top,l);let g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<r){t=u,r=g,o=g&&t.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(i=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!a&&p.left<=e.left&&p.right>=e.left&&(a=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!t&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=d+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?My(t,o):!t||r&&t.nodeType==1?{node:n,offset:i}:Ch(t,o)}function My(n,e){let t=n.nodeValue.length,r=document.createRange();for(let o=0;o<t;o++){r.setEnd(n,o+1),r.setStart(n,o);let i=kn(r,1);if(i.top!=i.bottom&&Yl(e,i))return{node:n,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:n,offset:0}}function Yl(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function Ny(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function Iy(n,e,t){let{node:r,offset:o}=Ch(e,t),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(r,o,i)}function Dy(n,e,t,r){let o=-1;for(let i=e,s=!1;i!=n.dom;){let l=n.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!0,a.left>r.left||a.top>r.top?o=l.posBefore:(a.right<r.left||a.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(a.top+a.bottom)/2:r.left<(a.left+a.right)/2)?l.posBefore:l.posAfter}i=l.dom.parentNode}return o>-1?o:n.docView.posFromDOM(e,t,-1)}function Sh(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),i=o;;){let s=n.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let a=0;a<l.length;a++){let c=l[a];if(Yl(e,c))return Sh(s,e,c)}}if((i=(i+1)%r)==o)break}return n}function _y(n,e){let t=n.dom.ownerDocument,r,o=0,i=Ey(t,e.left,e.top);i&&({node:r,offset:o}=i);let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),l;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=n.dom.getBoundingClientRect();if(!Yl(e,c)||(s=Sh(n.dom,e,c),!s))return null}if(ft)for(let c=s;r&&c;c=ko(c))c.draggable&&(r=void 0);if(s=Ny(s,e),r){if(jt&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&o++}let c;zo&&o&&r.nodeType==1&&(c=r.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&o--,r==n.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=n.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=Dy(n,r,o,e))}l==null&&(l=Iy(n,s,e));let a=n.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function wu(n){return n.top<n.bottom||n.left<n.right}function kn(n,e){let t=n.getClientRects();if(t.length){let r=t[e<0?0:t.length-1];if(wu(r))return r}return Array.prototype.find.call(t,wu)||n.getBoundingClientRect()}const Ly=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function wh(n,e,t){let{node:r,offset:o,atom:i}=n.docView.domFromPos(e,t<0?-1:1),s=zo||jt;if(r.nodeType==3)if(s&&(Ly.test(r.nodeValue)||(t<0?!o:o==r.nodeValue.length))){let a=kn(hn(r,o,o),t);if(jt&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let c=kn(hn(r,o-1,o-1),-1);if(c.top==a.top){let u=kn(hn(r,o,o+1),-1);if(u.top!=a.top)return io(u,u.left<c.left)}}return a}else{let a=o,c=o,u=t<0?1:-1;return t<0&&!o?(c++,u=-1):t>=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,io(kn(hn(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(t<0||o==en(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return da(a.getBoundingClientRect(),!1)}if(i==null&&o<en(r)){let a=r.childNodes[o];if(a.nodeType==1)return da(a.getBoundingClientRect(),!0)}return da(r.getBoundingClientRect(),t>=0)}if(i==null&&o&&(t<0||o==en(r))){let a=r.childNodes[o-1],c=a.nodeType==3?hn(a,en(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return io(kn(c,1),!1)}if(i==null&&o<en(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let c=a?a.nodeType==3?hn(a,0,s?0:1):a.nodeType==1?a:null:null;if(c)return io(kn(c,-1),!0)}return io(kn(r.nodeType==3?hn(r):r,-t),t>=0)}function io(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function da(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function xh(n,e,t){let r=n.state,o=n.root.activeElement;r!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),o!=n.dom&&o&&o.focus()}}function Ry(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return xh(n,e,()=>{let{node:i}=n.docView.domFromPos(o.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=wh(n,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=hn(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<a.length;c++){let u=a[c];if(u.bottom>u.top+1&&(t=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const Py=/[\u0590-\u08ac]/;function By(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=n.domSelection();return!Py.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:s:xh(n,e,()=>{let{focusNode:a,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",t,"character");let m=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:p,focusOffset:g}=n.domSelectionRange(),v=p&&!m.contains(p.nodeType==1?p:p.parentNode)||a==p&&c==g;try{l.collapse(u,d),a&&(a!=u||c!=d)&&l.extend&&l.extend(a,c)}catch{}return h!=null&&(l.caretBidiLevel=h),v})}let xu=null,Tu=null,ku=!1;function $y(n,e,t){return xu==e&&Tu==t?ku:(xu=e,Tu=t,ku=t=="up"||t=="down"?Ry(n,e,t):By(n,e,t))}const Pt=0,Au=1,Qn=2,sn=3;class Ho{constructor(e,t,r,o){this.parent=e,this.children=t,this.dom=r,this.contentDOM=o,this.dirty=Pt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let o=this.children[t];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=t>ct(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!t||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let o=this.children[t],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.size;if(l>e||s instanceof kh){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof Th&&i.side>=0;r--);if(t<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&t&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?ct(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?ct(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let s=r,l=0;;l++){let a=this.children[l],c=s+a.size;if(o==-1&&e<=c){let u=s+a.border;if(e>=u&&t<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=s;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=ct(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(c>t||l==this.children.length-1)){t=c;for(let u=l+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=ct(d.dom);break}t+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:t,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,o=!1){let i=Math.min(e,t),s=Math.max(e,t);for(let h=0,m=0;h<this.children.length;h++){let p=this.children[h],g=m+p.size;if(i>m&&s<g)return p.setSelection(e-m-p.border,t-m-p.border,r,o);m=g}let l=this.domFromPos(e,e?-1:1),a=t==e?l:this.domFromPos(t,t?-1:1),c=r.getSelection(),u=!1;if((jt||ft)&&e==t){let{node:h,offset:m}=l;if(h.nodeType==3){if(u=!!(m&&h.nodeValue[m-1]==`
15
- `),u&&m==h.nodeValue.length)for(let p=h,g;p;p=p.parentNode){if(g=p.nextSibling){g.nodeName=="BR"&&(l=a={node:g.parentNode,offset:ct(g)+1});break}let v=p.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let p=h.childNodes[m-1];u=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(jt&&c.focusNode&&c.focusNode!=a.node&&c.focusNode.nodeType==1){let h=c.focusNode.childNodes[c.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&ft)&&dr(l.node,l.offset,c.anchorNode,c.anchorOffset)&&dr(a.node,a.offset,c.focusNode,c.focusOffset))return;let d=!1;if((c.extend||e==t)&&!u){c.collapse(l.node,l.offset);try{e!=t&&c.extend(a.node,a.offset),d=!0}catch{}}if(!d){if(e>t){let m=l;l=a,a=m}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&t>=r:e<s&&t>r){let l=r+i.border,a=s-i.border;if(e>=l&&t<=a){this.dirty=e==r||t==s?Qn:Au,e==l&&t==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=sn:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Qn:sn}r=s}this.dirty=Qn}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?Qn:Au;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Th extends Ho{constructor(e,t,r,o){let i,s=t.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Pt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Fy extends Ho{constructor(e,t,r,o){super(e,[],t,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class fr extends Ho{constructor(e,t,r,o){super(e,[],r,o),this.mark=t}static create(e,t,r,o){let i=o.nodeViews[t.type.name],s=i&&i(t,o,r);return(!s||!s.dom)&&(s=tn.renderSpec(document,t.type.spec.toDOM(t,r))),new fr(e,t,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&sn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=sn&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Pt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Pt}}slice(e,t,r){let o=fr.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;t<s&&(i=ol(i,t,s,r)),e>0&&(i=ol(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}}class Rn extends Ho{constructor(e,t,r,o,i,s,l,a,c){super(e,[],i,s),this.node=t,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,t,r,o,i,s){let l=i.nodeViews[t.type.name],a,c=l&&l(t,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=tn.renderSpec(document,t.type.spec.toDOM(t)));!d&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Mh(u,r,t),c?a=new Vy(e,t,r,o,u,d||null,h,c,i,s+1):t.isText?new Ds(e,t,r,o,u,h,i):new Rn(e,t,r,o,u,d||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>se.empty)}return e}matchesNode(e,t,r){return this.dirty==Pt&&e.eq(this.node)&&rl(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,o=t,i=e.composing?this.localCompositionInfo(e,t):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new Hy(this,s&&s.node,e);Wy(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!d&&a.syncToMarks(u==this.node.childCount?Pe.none:this.node.child(u).marks,r,e),a.placeWidget(c,e,o)},(c,u,d,h)=>{a.syncToMarks(c.marks,r,e);let m;a.findNodeMatch(c,u,d,h)||l&&e.state.selection.from>o&&e.state.selection.to<o+c.nodeSize&&(m=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(c,u,d,m,e)||a.updateNextNode(c,u,d,e,h,o)||a.addNode(c,u,d,e,o),o+=c.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Qn)&&(s&&this.protectLocalComposition(e,s),Ah(this.contentDOM,this.children,e),Wr&&Ky(this.dom))}localCompositionInfo(e,t){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Le)||r<t||o>t+this.node.content.size)return null;let i=e.domSelectionRange(),s=Gy(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,a=Yy(this.node.content,l,r-t,o-t);return a<0?null:{node:s,pos:a,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new Fy(this,i,t,o);e.input.compositionNodes.push(s),this.children=ol(this.children,r,r+o.length,e,s)}update(e,t,r,o){return this.dirty==sn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,r,o),!0)}updateInner(e,t,r,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=Pt}updateOuterDeco(e){if(rl(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Oh(this.dom,this.nodeDOM,nl(this.outerDeco,this.node,t),nl(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Ou(n,e,t,r,o){Mh(r,e,n);let i=new Rn(void 0,n,e,t,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Ds extends Rn{constructor(e,t,r,o,i,s,l){super(e,t,r,o,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,o){return this.dirty==sn||this.dirty!=Pt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Pt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=Pt,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,r){let o=this.node.cut(e,t),i=document.createTextNode(o.text);return new Ds(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=sn)}get domAtom(){return!1}}class kh extends Ho{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Pt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Vy extends Rn{constructor(e,t,r,o,i,s,l,a,c,u){super(e,t,r,o,i,s,l,c,u),this.spec=a}update(e,t,r,o){if(this.dirty==sn)return!1;if(this.spec.update){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,o){this.spec.setSelection?this.spec.setSelection(e,t,r):super.setSelection(e,t,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Ah(n,e,t){let r=n.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==n){for(;l!=r;)r=Mu(r),o=!0;r=r.nextSibling}else o=!0,n.insertBefore(l,r);if(s instanceof fr){let a=r?r.previousSibling:n.lastChild;Ah(s.contentDOM,s.children,t),r=a?a.nextSibling:n.firstChild}}for(;r;)r=Mu(r),o=!0;o&&t.trackWrites==n&&(t.trackWrites=null)}const go=function(n){n&&(this.nodeName=n)};go.prototype=Object.create(null);const qn=[new go];function nl(n,e,t){if(n.length==0)return qn;let r=t?qn[0]:new go,o=[r];for(let i=0;i<n.length;i++){let s=n[i].type.attrs;if(s){s.nodeName&&o.push(r=new go(s.nodeName));for(let l in s){let a=s[l];a!=null&&(t&&o.length==1&&o.push(r=new go(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+a:l=="style"?r.style=(r.style?r.style+";":"")+a:l!="nodeName"&&(r[l]=a))}}}return o}function Oh(n,e,t,r){if(t==qn&&r==qn)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],l=t[i];if(i){let a;l&&l.nodeName==s.nodeName&&o!=n&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),l=qn[0]),o=a}zy(o,l||qn[0],s)}return o}function zy(n,e,t){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in t)&&n.removeAttribute(r);for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&t[r]!=e[r]&&n.setAttribute(r,t[r]);if(e.class!=t.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&n.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&n.classList.add(o[i]);n.classList.length==0&&n.removeAttribute("class")}if(e.style!=t.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)n.style.removeProperty(o[1])}t.style&&(n.style.cssText+=t.style)}}function Mh(n,e,t){return Oh(n,n,qn,nl(e,t,n.nodeType!=1))}function rl(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].type.eq(e[t].type))return!1;return!0}function Mu(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Hy{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Uy(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=Pt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let a=this.index;a<Math.min(this.index+3,this.top.children.length);a++){let c=this.top.children[a];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){l=a;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=fr.create(this.top,e[i],t,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,r))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l<a;l++){let c=this.top.children[l];if(c.matchesNode(e,t,r)&&!this.preMatch.matched.has(c)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,r,o,i){let s=this.top.children[o];return s.dirty==sn&&s.dom==s.contentDOM&&(s.dirty=Qn),s.update(e,t,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=t}}updateNextNode(e,t,r,o,i,s){for(let l=this.index;l<this.top.children.length;l++){let a=this.top.children[l];if(a instanceof Rn){let c=this.preMatch.matched.get(a);if(c!=null&&c!=i)return!1;let u=a.dom,d,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=sn&&rl(t,a.outerDeco));if(!h&&a.update(e,t,r,o))return this.destroyBetween(this.index,l),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(d=this.recreateWrapper(a,e,t,r,o,s)))return this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Qn,d.updateChildren(o,s+1),d.dirty=Pt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,o,i,s){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content))return null;let l=Rn.create(this.top,t,r,o,i,s);if(l.contentDOM){l.children=e.children,e.children=[];for(let a of l.children)a.parent=l}return e.destroy(),l}addNode(e,t,r,o,i){let s=Rn.create(this.top,e,t,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,t,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new Th(this.top,e,t,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof fr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Ds)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ft||rt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new kh(this.top,[],r,null);t!=this.top?t.children.push(o):t.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Uy(n,e){let t=e,r=t.children.length,o=n.childCount,i=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let c=t.children[r-1];if(c instanceof fr)t=c,r=c.children.length;else{l=c,r--;break}}else{if(t==e)break e;r=t.parent.children.indexOf(t),t=t.parent}let a=l.node;if(a){if(a!=n.child(o-1))break;--o,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function jy(n,e){return n.type.side-e.type.side}function Wy(n,e,t,r){let o=e.locals(n),i=0;if(o.length==0){for(let c=0;c<n.childCount;c++){let u=n.child(c);r(u,o,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,l=[],a=null;for(let c=0;;){let u,d;for(;s<o.length&&o[s].to==i;){let v=o[s++];v.widget&&(u?(d||(d=[u])).push(v):u=v)}if(u)if(d){d.sort(jy);for(let v=0;v<d.length;v++)t(d[v],c,!!a)}else t(u,c,!!a);let h,m;if(a)m=-1,h=a,a=null;else if(c<n.childCount)m=c,h=n.child(c++);else break;for(let v=0;v<l.length;v++)l[v].to<=i&&l.splice(v--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)l.push(o[s++]);let p=i+h.nodeSize;if(h.isText){let v=p;s<o.length&&o[s].from<v&&(v=o[s].from);for(let C=0;C<l.length;C++)l[C].to<v&&(v=l[C].to);v<p&&(a=h.cut(v-i),h=h.cut(0,v-i),p=v,m=-1)}let g=h.isInline&&!h.isLeaf?l.filter(v=>!v.inline):l.slice();r(h,g,e.forChild(i,h),m),i=p}}function Ky(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function Gy(n,e){for(;;){if(n.nodeType==3)return n;if(n.nodeType==1&&e>0){if(n.childNodes.length>e&&n.childNodes[e].nodeType==3)return n.childNodes[e];n=n.childNodes[e-1],e=en(n)}else if(n.nodeType==1&&e<n.childNodes.length)n=n.childNodes[e],e=0;else return null}}function Yy(n,e,t,r){for(let o=0,i=0;o<n.childCount&&i<=r;){let s=n.child(o++),l=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<n.childCount;){let c=n.child(o++);if(i+=c.nodeSize,!c.isText)break;a+=c.text}if(i>=t){if(i>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let c=l<r?a.lastIndexOf(e,r-l-1):-1;if(c>=0&&c+e.length+l>=t)return l+c;if(t==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function ol(n,e,t,r,o){let i=[];for(let s=0,l=0;s<n.length;s++){let a=n[s],c=l,u=l+=a.size;c>=t||u<=e?i.push(a):(c<e&&i.push(a.slice(0,e-c,r)),o&&(i.push(o),o=void 0),u>t&&i.push(a.slice(t-c,a.size,r)))}return i}function Jl(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),i=o&&o.size==0,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,c;if(Is(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&Se.isSelectable(u)&&o.parent&&!(u.isInline&&yy(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new Se(s==d?l:r.resolve(d))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!c){let u=e=="pointer"||n.state.selection.head<l.pos&&!i?1:-1;c=Zl(n,a,l,u)}return c}function Nh(n){return n.editable?n.hasFocus():Dh(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function gn(n,e=!1){let t=n.state.selection;if(Ih(n,t),!!Nh(n)){if(!e&&n.input.mouseDown&&n.input.mouseDown.allowDefault&&rt){let r=n.domSelectionRange(),o=n.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&dr(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){n.input.mouseDown.delayedSelectionSync=!0,n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)Zy(n);else{let{anchor:r,head:o}=t,i,s;Nu&&!(t instanceof Le)&&(t.$from.parent.inlineContent||(i=Iu(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(s=Iu(n,t.to))),n.docView.setSelection(r,o,n.root,e),Nu&&(i&&Du(i),s&&Du(s)),t.visible?n.dom.classList.remove("ProseMirror-hideselection"):(n.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Jy(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const Nu=ft||rt&&Cy<63;function Iu(n,e){let{node:t,offset:r}=n.docView.domFromPos(e,0),o=r<t.childNodes.length?t.childNodes[r]:null,i=r?t.childNodes[r-1]:null;if(ft&&o&&o.contentEditable=="false")return fa(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return fa(o);if(i)return fa(i)}}function fa(n){return n.contentEditable="true",ft&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Du(n){n.contentEditable="false",n.wasDraggable&&(n.draggable=!0,n.wasDraggable=null)}function Jy(n){let e=n.dom.ownerDocument;e.removeEventListener("selectionchange",n.input.hideSelectionGuard);let t=n.domSelectionRange(),r=t.anchorNode,o=t.anchorOffset;e.addEventListener("selectionchange",n.input.hideSelectionGuard=()=>{(t.anchorNode!=r||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!Nh(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function Zy(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,ct(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&bt&&Ln<=11&&(r.disabled=!0,r.disabled=!1)}function Ih(n,e){if(e instanceof Se){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(_u(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else _u(n)}function _u(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function Zl(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Le.between(e,t,r)}function Lu(n){return n.editable&&!n.hasFocus()?!1:Dh(n)}function Dh(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Xy(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return dr(e.node,e.offset,t.anchorNode,t.anchorOffset)}function il(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),i=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return i&&_e.findFrom(i,e)}function An(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function Ru(n,e,t){let r=n.state.selection;if(r instanceof Le)if(t.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=n.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return An(n,new Le(r.$anchor,s))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=il(n.state,e);return o&&o instanceof Se?An(n,o):!1}else if(!(Lt&&t.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=n.docView.descAt(l))&&!s.contentDOM?Se.isSelectable(i)?An(n,new Se(e<0?n.state.doc.resolve(o.pos-i.nodeSize):o)):zo?An(n,new Le(n.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Se&&r.node.isInline)return An(n,new Le(e>0?r.$to:r.$from));{let o=il(n.state,e);return o?An(n,o):!1}}}function Ii(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function vo(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Sr(n,e){return e<0?Qy(n):qy(n)}function Qy(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,i,s=!1;for(jt&&t.nodeType==1&&r<Ii(t)&&vo(t.childNodes[r],-1)&&(s=!0);;)if(r>0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(vo(l,-1))o=t,i=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(_h(t))break;{let l=t.previousSibling;for(;l&&vo(l,-1);)o=t.parentNode,i=ct(l),l=l.previousSibling;if(l)t=l,r=Ii(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}s?sl(n,t,r):o&&sl(n,o,i)}function qy(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Ii(t),i,s;for(;;)if(r<o){if(t.nodeType!=1)break;let l=t.childNodes[r];if(vo(l,1))i=t,s=++r;else break}else{if(_h(t))break;{let l=t.nextSibling;for(;l&&vo(l,1);)i=l.parentNode,s=ct(l)+1,l=l.nextSibling;if(l)t=l,r=0,o=Ii(t);else{if(t=t.parentNode,t==n.dom)break;r=o=0}}}i&&sl(n,i,s)}function _h(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function e2(n,e){for(;n&&e==n.childNodes.length&&!Gl(n);)e=ct(n)+1,n=n.parentNode;for(;n&&e<n.childNodes.length;){let t=n.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=0}}function t2(n,e){for(;n&&!e&&!Gl(n);)e=ct(n),n=n.parentNode;for(;n&&e;){let t=n.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=n.childNodes.length}}function sl(n,e,t){if(e.nodeType!=3){let i,s;(s=e2(e,t))?(e=s,t=0):(i=t2(e,t))&&(e=i,t=i.nodeValue.length)}let r=n.domSelection();if(Is(r)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,t);n.domObserver.setCurSelection();let{state:o}=n;setTimeout(()=>{n.state==o&&gn(n)},50)}function Pu(n,e){let t=n.state.doc.resolve(e);if(!(rt||Sy)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let i=n.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<t.end()){let i=n.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function Bu(n,e,t){let r=n.state.selection;if(r instanceof Le&&!r.empty||t.indexOf("s")>-1||Lt&&t.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=il(n.state,e);if(s&&s instanceof Se)return An(n,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Ht?_e.near(s,e):_e.findFrom(s,e);return l?An(n,l):!1}return!1}function $u(n,e){if(!(n.state.selection instanceof Le))return!0;let{$head:t,$anchor:r,empty:o}=n.state.selection;if(!t.sameParent(r))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let s=n.state.tr;return e<0?s.delete(t.pos-i.nodeSize,t.pos):s.delete(t.pos,t.pos+i.nodeSize),n.dispatch(s),!0}return!1}function Fu(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function n2(n){if(!ft||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Fu(n,r,"true"),setTimeout(()=>Fu(n,r,"false"),20)}return!1}function r2(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function o2(n,e){let t=e.keyCode,r=r2(e);if(t==8||Lt&&t==72&&r=="c")return $u(n,-1)||Sr(n,-1);if(t==46&&!e.shiftKey||Lt&&t==68&&r=="c")return $u(n,1)||Sr(n,1);if(t==13||t==27)return!0;if(t==37||Lt&&t==66&&r=="c"){let o=t==37?Pu(n,n.state.selection.from)=="ltr"?-1:1:-1;return Ru(n,o,r)||Sr(n,o)}else if(t==39||Lt&&t==70&&r=="c"){let o=t==39?Pu(n,n.state.selection.from)=="ltr"?1:-1:1;return Ru(n,o,r)||Sr(n,o)}else{if(t==38||Lt&&t==80&&r=="c")return Bu(n,-1,r)||Sr(n,-1);if(t==40||Lt&&t==78&&r=="c")return n2(n)||Bu(n,1,r)||Sr(n,1);if(r==(Lt?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function Lh(n,e){n.someProp("transformCopied",m=>{e=m(e,n)});let t=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let m=r.firstChild;t.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),r=m.content}let s=n.someProp("clipboardSerializer")||tn.fromSchema(n.state.schema),l=Vh(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=Fh[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let p=l.createElement(u[m]);for(;a.firstChild;)p.appendChild(a.firstChild);a.appendChild(p),d++}c=a.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(t)}`);let h=n.someProp("clipboardTextSerializer",m=>m(e,n))||e.content.textBetween(0,e.content.size,`
16
-
17
- `);return{dom:a,text:h}}function Rh(n,e,t,r,o){let i=o.parent.type.spec.code,s,l;if(!t&&!e)return null;let a=e&&(r||i||!t);if(a){if(n.someProp("transformPastedText",h=>{e=h(e,i||r,n)}),i)return e?new he(se.from(n.state.schema.text(e.replace(/\r\n?/g,`
18
- `))),0,0):he.empty;let d=n.someProp("clipboardTextParser",h=>h(e,o,r,n));if(d)l=d;else{let h=o.marks(),{schema:m}=n.state,p=tn.fromSchema(m);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=s.appendChild(document.createElement("p"));g&&v.appendChild(p.serializeNode(m.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{t=d(t,n)}),s=a2(t),zo&&l2(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Hr.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!i2.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)l=c2(Vu(l,+u[1],+u[2]),u[4]);else if(l=he.maxOpen(s2(l.content,o),!0),l.openStart||l.openEnd){let d=0,h=0;for(let m=l.content.firstChild;d<l.openStart&&!m.type.spec.isolating;d++,m=m.firstChild);for(let m=l.content.lastChild;h<l.openEnd&&!m.type.spec.isolating;h++,m=m.lastChild);l=Vu(l,d,h)}return n.someProp("transformPasted",d=>{l=d(l,n)}),l}const i2=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function s2(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.index(t)),i,s=[];if(n.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&Bh(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=$h(s[s.length-1],i.length));let u=Ph(l,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return se.from(s)}return n}function Ph(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,se.from(n));return n}function Bh(n,e,t,r,o){if(o<n.length&&o<e.length&&n[o]==e[o]){let i=Bh(n,e,t,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==n.length-1?t.type:n[o+1]))return r.copy(r.content.append(se.from(Ph(t,n,o+1))))}}function $h(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,$h(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(se.empty,!0);return n.copy(t.append(r))}function al(n,e,t,r,o,i){let s=e<0?n.firstChild:n.lastChild,l=s.content;return n.childCount>1&&(i=0),o<r-1&&(l=al(l,e,t,r,o+1,i)),o>=t&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(se.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(l))}function Vu(n,e,t){return e<n.openStart&&(n=new he(al(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new he(al(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const Fh={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let zu=null;function Vh(){return zu||(zu=document.implementation.createHTMLDocument("title"))}function a2(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=Vh().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&Fh[r[1].toLowerCase()])&&(n=o.map(i=>"<"+i+">").join("")+n+o.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=n,o)for(let i=0;i<o.length;i++)t=t.querySelector(o[i])||t;return t}function l2(n){let e=n.querySelectorAll(rt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let r=e[t];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "),r)}}function c2(n,e){if(!n.size)return n;let t=n.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return n}let{content:o,openStart:i,openEnd:s}=n;for(let l=r.length-2;l>=0;l-=2){let a=t.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=se.from(a.create(r[l+1],o)),i++,s++}return new he(o,i,s)}const ht={},pt={},u2={touchstart:!0,touchmove:!0};class d2{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function f2(n){for(let e in ht){let t=ht[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{p2(n,r)&&!Xl(n,r)&&(n.editable||!(r.type in pt))&&t(n,r)},u2[e]?{passive:!0}:void 0)}ft&&n.dom.addEventListener("input",()=>null),ll(n)}function _n(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function h2(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function ll(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>Xl(n,r))})}function Xl(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function p2(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function m2(n,e){!Xl(n,e)&&ht[e.type]&&(n.editable||!(e.type in pt))&&ht[e.type](n,e)}pt.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!Hh(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(zt&&rt&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Wr&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let r=Date.now();n.input.lastIOSEnter=r,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==r&&(n.someProp("handleKeyDown",o=>o(n,Zn(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||o2(n,t)?t.preventDefault():_n(n,"key")};pt.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)};pt.keypress=(n,e)=>{let t=e;if(Hh(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Lt&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Le)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",i=>i(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function _s(n){return{left:n.clientX,top:n.clientY}}function g2(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function Ql(n,e,t,r,o){if(r==-1)return!1;let i=n.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(n.someProp(e,l=>s>i.depth?l(n,t,i.nodeAfter,i.before(s),o,!0):l(n,t,i.node(s),i.before(s),o,!1)))return!0;return!1}function Vr(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);t=="pointer"&&r.setMeta("pointer",!0),n.dispatch(r)}function v2(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&Se.isSelectable(r)?(Vr(n,new Se(t),"pointer"),!0):!1}function y2(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof Se&&(r=t.node);let i=n.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(Se.isSelectable(l)){r&&t.$from.depth>0&&s>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?o=i.before(t.$from.depth):o=i.before(s);break}}return o!=null?(Vr(n,Se.create(n.state.doc,o),"pointer"),!0):!1}function b2(n,e,t,r,o){return Ql(n,"handleClickOn",e,t,r)||n.someProp("handleClick",i=>i(n,e,r))||(o?y2(n,t):v2(n,t))}function E2(n,e,t,r){return Ql(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function C2(n,e,t,r){return Ql(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||S2(n,t,r)}function S2(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Vr(n,Le.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)Vr(n,Le.create(r,l+1,l+1+s.content.size),"pointer");else if(Se.isSelectable(s))Vr(n,Se.create(r,l),"pointer");else continue;return!0}}function ql(n){return Di(n)}const zh=Lt?"metaKey":"ctrlKey";ht.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=ql(n),o=Date.now(),i="singleClick";o-n.input.lastClick.time<500&&g2(t,n.input.lastClick)&&!t[zh]&&(n.input.lastClick.type=="singleClick"?i="doubleClick":n.input.lastClick.type=="doubleClick"&&(i="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:i};let s=n.posAtCoords(_s(t));s&&(i=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new w2(n,s,t,!!r)):(i=="doubleClick"?E2:C2)(n,s.pos,s.inside,t)?t.preventDefault():_n(n,"pointer"))};class w2{constructor(e,t,r,o){this.view=e,this.pos=t,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[zh],this.allowDefault=r.shiftKey;let i,s;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);i=u.parent,s=u.depth?u.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a?a.dom:null;let{selection:c}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Se&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&jt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),_n(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>gn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(_s(e))),this.updateAllowDefault(e),this.allowDefault||!t?_n(this.view,"pointer"):b2(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ft&&this.mightDrag&&!this.mightDrag.node.isAtom||rt&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Vr(this.view,_e.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):_n(this.view,"pointer")}move(e){this.updateAllowDefault(e),_n(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}ht.touchstart=n=>{n.input.lastTouch=Date.now(),ql(n),_n(n,"pointer")};ht.touchmove=n=>{n.input.lastTouch=Date.now(),_n(n,"pointer")};ht.contextmenu=n=>ql(n);function Hh(n,e){return n.composing?!0:ft&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const x2=zt?5e3:-1;pt.compositionstart=pt.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||t.marks(),Di(n,!0),n.markCursor=null;else if(Di(n),jt&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){n.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}n.input.composing=!0}Uh(n,x2)};pt.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,Uh(n,20))};function Uh(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Di(n),e))}function jh(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=T2());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function T2(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Di(n,e=!1){if(!(zt&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),jh(n),e||n.docView&&n.docView.dirty){let t=Jl(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function k2(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const Ao=bt&&Ln<15||Wr&&wy<604;ht.copy=pt.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let i=Ao?null:t.clipboardData,s=r.content(),{dom:l,text:a}=Lh(n,s);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):k2(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function A2(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function O2(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?Oo(n,r.value,null,o,e):Oo(n,r.textContent,r.innerHTML,o,e)},50)}function Oo(n,e,t,r,o){let i=Rh(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,i||he.empty)))return!0;if(!i)return!1;let s=A2(i),l=s?n.state.tr.replaceSelectionWith(s,r):n.state.tr.replaceSelection(i);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Wh(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}pt.paste=(n,e)=>{let t=e;if(n.composing&&!zt)return;let r=Ao?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Oo(n,Wh(r),r.getData("text/html"),o,t)?t.preventDefault():O2(n,t)};class Kh{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const Gh=Lt?"altKey":"ctrlKey";ht.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=n.state.selection,i=o.empty?null:n.posAtCoords(_s(t)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Se?o.to-1:o.to))){if(r&&r.mightDrag)s=Se.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let u=n.docView.nearestDesc(t.target,!0);u&&u.node.type.spec.draggable&&u!=n.docView&&(s=Se.create(n.state.doc,u.posBefore))}}let l=(s||n.state.selection).content(),{dom:a,text:c}=Lh(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(Ao?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",Ao||t.dataTransfer.setData("text/plain",c),n.dragging=new Kh(l,!t[Gh],s)};ht.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)};pt.dragover=pt.dragenter=(n,e)=>e.preventDefault();pt.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(_s(t));if(!o)return;let i=n.state.doc.resolve(o.pos),s=r&&r.slice;s?n.someProp("transformPasted",p=>{s=p(s,n)}):s=Rh(n,Wh(t.dataTransfer),Ao?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!t[Gh]);if(n.someProp("handleDrop",p=>p(n,t,s||he.empty,l))){t.preventDefault();return}if(!s)return;t.preventDefault();let a=s?sy(n.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let c=n.state.tr;if(l){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(a),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let m=c.doc.resolve(u);if(d&&Se.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new Se(m));else{let p=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((g,v,C,S)=>p=S),c.setSelection(Zl(n,m,c.doc.resolve(p)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))};ht.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&gn(n)},20))};ht.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)};ht.beforeinput=(n,e)=>{if(rt&&zt&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:r}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=r||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",i=>i(n,Zn(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in pt)ht[n]=pt[n];function Mo(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class _i{constructor(e,t){this.toDOM=e,this.spec=t||sr,this.side=this.spec.side||0}map(e,t,r,o){let{pos:i,deleted:s}=e.mapResult(t.from+o,this.side<0?-1:1);return s?null:new Rt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof _i&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Mo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Pn{constructor(e,t){this.attrs=e,this.spec=t||sr}map(e,t,r,o){let i=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new Rt(i,s,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Pn&&Mo(this.attrs,e.attrs)&&Mo(this.spec,e.spec)}static is(e){return e.type instanceof Pn}destroy(){}}class ec{constructor(e,t){this.attrs=e,this.spec=t||sr}map(e,t,r,o){let i=e.mapResult(t.from+o,1);if(i.deleted)return null;let s=e.mapResult(t.to+o,-1);return s.deleted||s.pos<=i.pos?null:new Rt(i.pos-r,s.pos-r,this)}valid(e,t){let{index:r,offset:o}=e.content.findIndex(t.from),i;return o==t.from&&!(i=e.child(r)).isText&&o+i.nodeSize==t.to}eq(e){return this==e||e instanceof ec&&Mo(this.attrs,e.attrs)&&Mo(this.spec,e.spec)}destroy(){}}class Rt{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new Rt(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new Rt(e,e,new _i(t,r))}static inline(e,t,r,o){return new Rt(e,t,new Pn(r,o))}static node(e,t,r,o){return new Rt(e,t,new ec(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Pn}get widget(){return this.type instanceof _i}}const Or=[],sr={};class Ge{constructor(e,t){this.local=e.length?e:Or,this.children=t.length?t:Or}static create(e,t){return t.length?Li(t,e,0,sr):nt}find(e,t,r){let o=[];return this.findInner(e??0,t??1e9,o,0,r),o}findInner(e,t,r,o,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,r,o+l,i)}}map(e,t,r){return this==nt||e.maps.length==0?this:this.mapInner(e,t,0,0,r||sr)}mapInner(e,t,r,o,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(e,r,o);a&&a.type.valid(t,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?M2(this.children,s||[],e,t,r,o,i):s?new Ge(s.sort(ar),Or):nt}add(e,t){return t.length?this==nt?Ge.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let o,i=0;e.forEach((l,a)=>{let c=a+r,u;if(u=Jh(t,l,c)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(l,u,c+1):o.splice(i,0,a,a+l.nodeSize,Li(u,l,c+1,sr)),i+=3}});let s=Yh(i?Zh(t):t,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new Ge(s.length?this.local.concat(s).sort(ar):this.local,o||this.children)}remove(e){return e.length==0||this==nt?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+t,a=r[i+1]+t;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>l&&d.to<a&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[i+2].removeInner(s,l+1);c!=nt?r[i+2]=c:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<o.length;l++)o[l].eq(s,t)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Ge(o,r):nt}forChild(e,t){if(this==nt)return this;if(t.isLeaf)return Ge.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let i=e+1,s=i+t.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof Pn){let c=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;c<u&&(o||(o=[])).push(a.copy(c,u))}}if(o){let l=new Ge(o.sort(ar),Or);return r?new Mn([l,r]):l}return r||nt}eq(e){if(this==e)return!0;if(!(e instanceof Ge)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return tc(this.localsInner(e))}localsInner(e){if(this==nt)return Or;if(e.inlineContent||!this.local.some(Pn.is))return this.local;let t=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Pn||t.push(this.local[r]);return t}}Ge.empty=new Ge([],[]);Ge.removeOverlap=tc;const nt=Ge.empty;class Mn{constructor(e){this.members=e}map(e,t){const r=this.members.map(o=>o.map(e,t,sr));return Mn.from(r)}forChild(e,t){if(t.isLeaf)return Ge.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,t);i!=nt&&(i instanceof Mn?r=r.concat(i.members):r.push(i))}return Mn.from(r)}eq(e){if(!(e instanceof Mn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!t)t=i;else{r&&(t=t.slice(),r=!1);for(let s=0;s<i.length;s++)t.push(i[s])}}return t?tc(r?t:t.sort(ar)):Or}static from(e){switch(e.length){case 0:return nt;case 1:return e[0];default:return new Mn(e.every(t=>t instanceof Ge)?e:e.reduce((t,r)=>t.concat(r instanceof Ge?r:r.members),[]))}}}function M2(n,e,t,r,o,i,s){let l=n.slice();for(let c=0,u=i;c<t.maps.length;c++){let d=0;t.maps[c].forEach((h,m,p,g)=>{let v=g-p-(m-h);for(let C=0;C<l.length;C+=3){let S=l[C+1];if(S<0||h>S+u-d)continue;let x=l[C]+u-d;m>=x?l[C+1]=h<=x?-2:-1:p>=o&&v&&(l[C]+=v,l[C+1]+=v)}d+=v}),u=t.maps[c].map(u,-1)}let a=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){a=!0,l[c+1]=-1;continue}let u=t.map(n[c]+i),d=u-o;if(d<0||d>=r.content.size){a=!0;continue}let h=t.map(n[c+1]+i,-1),m=h-o,{index:p,offset:g}=r.content.findIndex(d),v=r.maybeChild(p);if(v&&g==d&&g+v.nodeSize==m){let C=l[c+2].mapInner(t,v,u+1,n[c]+i+1,s);C!=nt?(l[c]=d,l[c+1]=m,l[c+2]=C):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=N2(l,n,e,t,o,i,s),u=Li(c,r,0,s);e=u.local;for(let d=0;d<l.length;d+=3)l[d+1]<0&&(l.splice(d,3),d-=3);for(let d=0,h=0;d<u.children.length;d+=3){let m=u.children[d];for(;h<l.length&&l[h]<m;)h+=3;l.splice(h,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Ge(e.sort(ar),l)}function Yh(n,e){if(!e||!n.length)return n;let t=[];for(let r=0;r<n.length;r++){let o=n[r];t.push(new Rt(o.from+e,o.to+e,o.type))}return t}function N2(n,e,t,r,o,i,s){function l(a,c){for(let u=0;u<a.local.length;u++){let d=a.local[u].map(r,o,c);d?t.push(d):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)l(a.children[u+2],a.children[u]+c+1)}for(let a=0;a<n.length;a+=3)n[a+1]==-1&&l(n[a+2],e[a]+i+1);return t}function Jh(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,o=null;for(let i=0,s;i<n.length;i++)(s=n[i])&&s.from>t&&s.to<r&&((o||(o=[])).push(s),n[i]=null);return o}function Zh(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function Li(n,e,t,r){let o=[],i=!1;e.forEach((l,a)=>{let c=Jh(n,l,a+t);if(c){i=!0;let u=Li(c,l,t+a+1,r);u!=nt&&o.push(a,a+l.nodeSize,u)}});let s=Yh(i?Zh(n):n,-t).sort(ar);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||o.length?new Ge(s,o):nt}function ar(n,e){return n.from-e.from||n.to-e.to}function tc(n){let e=n;for(let t=0;t<e.length-1;t++){let r=e[t];if(r.from!=r.to)for(let o=t+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==n&&(e=n.slice()),e[o]=i.copy(i.from,r.to),Hu(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,i.from),Hu(e,o,r.copy(i.from,r.to)));break}}}return e}function Hu(n,e,t){for(;e<n.length&&ar(t,n[e])>0;)e++;n.splice(e,0,t)}function ha(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=nt&&e.push(r)}),n.cursorWrapper&&e.push(Ge.create(n.state.doc,[n.cursorWrapper.deco])),Mn.from(e)}const I2={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},D2=bt&&Ln<=11;class _2{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class L2{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new _2,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);bt&&Ln<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),D2&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,I2)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Lu(this.view)){if(this.suppressingSelectionUpdates)return gn(this.view);if(bt&&Ln<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&dr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let i=e.focusNode;i;i=ko(i))t.add(i);for(let i=e.anchorNode;i;i=ko(i))if(t.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Lu(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,a=[];if(e.editable)for(let u=0;u<t.length;u++){let d=this.registerMutation(t[u],a);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(l=!0))}if(jt&&a.length>1){let u=a.filter(d=>d.nodeName=="BR");if(u.length==2){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Is(r)&&(c=Jl(e))&&c.eq(_e.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,gn(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),R2(e)),this.handleDOMChange(i,s,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||gn(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++)t.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(bt&&Ln<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:h}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(o=d),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?ct(i):e.target.childNodes.length,c=r.localPosFromDOM(e.target,a,1);return{from:l,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Uu=new WeakMap,ju=!1;function R2(n){if(!Uu.has(n)&&(Uu.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=jt,ju)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ju=!0}}function P2(n){let e;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",t,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,l=n.domAtPos(n.state.selection.anchor);return dr(l.node,l.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function B2(n,e,t){let{node:r,fromOffset:o,toOffset:i,from:s,to:l}=n.docView.parseRange(e,t),a=n.domSelectionRange(),c,u=a.anchorNode;if(u&&n.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:a.anchorOffset}],Is(a)||c.push({node:a.focusNode,offset:a.focusOffset})),rt&&n.input.lastKeyCode===8)for(let v=i;v>o;v--){let C=r.childNodes[v-1],S=C.pmViewDesc;if(C.nodeName=="BR"&&!S){i=v;break}if(!S||S.size)break}let d=n.state.doc,h=n.someProp("domParser")||Hr.fromSchema(n.state.schema),m=d.resolve(s),p=null,g=h.parse(r,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:o,to:i,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:$2,context:m});if(c&&c[0].pos!=null){let v=c[0].pos,C=c[1]&&c[1].pos;C==null&&(C=v),p={anchor:v+s,head:C+s}}return{doc:g,sel:p,from:s,to:l}}function $2(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(ft&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||ft&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const F2=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function V2(n,e,t,r,o){let i=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let V=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,$=Jl(n,V);if($&&!n.state.selection.eq($)){if(rt&&zt&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",R=>R(n,Zn(13,"Enter"))))return;let P=n.state.tr.setSelection($);V=="pointer"?P.setMeta("pointer",!0):V=="key"&&P.scrollIntoView(),i&&P.setMeta("composition",i),n.dispatch(P)}return}let s=n.state.doc.resolve(e),l=s.sharedDepth(t);e=s.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=B2(n,e,t),u=n.state.doc,d=u.slice(c.from,c.to),h,m;n.input.lastKeyCode===8&&Date.now()-100<n.input.lastKeyCodeTime?(h=n.state.selection.to,m="end"):(h=n.state.selection.from,m="start"),n.input.lastKeyCode=null;let p=U2(d.content,c.doc.content,c.from,h,m);if((Wr&&n.input.lastIOSEnter>Date.now()-225||zt)&&o.some(V=>V.nodeType==1&&!F2.test(V.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",V=>V(n,Zn(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!p)if(r&&a instanceof Le&&!a.empty&&a.$head.sameParent(a.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let V=Wu(n,n.state.doc,c.sel);if(V&&!V.eq(n.state.selection)){let $=n.state.tr.setSelection(V);i&&$.setMeta("composition",i),n.dispatch($)}}return}if(rt&&n.cursorWrapper&&c.sel&&c.sel.anchor==n.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let V=p.endB-p.start;c.sel={anchor:c.sel.anchor+V,head:c.sel.anchor+V}}n.input.domChangeCount++,n.state.selection.from<n.state.selection.to&&p.start==p.endB&&n.state.selection instanceof Le&&(p.start>n.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?p.start=n.state.selection.from:p.endA<n.state.selection.to&&p.endA>=n.state.selection.to-2&&n.state.selection.to<=c.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),bt&&Ln<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),v=c.doc.resolveNoCache(p.endB-c.from),C=u.resolve(p.start),S=g.sameParent(v)&&g.parent.inlineContent&&C.end()>=p.endA,x;if((Wr&&n.input.lastIOSEnter>Date.now()-225&&(!S||o.some(V=>V.nodeName=="DIV"||V.nodeName=="P"))||!S&&g.pos<c.doc.content.size&&!g.sameParent(v)&&(x=_e.findFrom(c.doc.resolve(g.pos+1),1,!0))&&x.head==v.pos)&&n.someProp("handleKeyDown",V=>V(n,Zn(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>p.start&&H2(u,p.start,p.endA,g,v)&&n.someProp("handleKeyDown",V=>V(n,Zn(8,"Backspace")))){zt&&rt&&n.domObserver.suppressSelectionUpdates();return}rt&&zt&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),zt&&!S&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,v=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(V){return V(n,Zn(13,"Enter"))})},20));let b=p.start,D=p.endA,T,B,F;if(S){if(g.pos==v.pos)bt&&Ln<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>gn(n),20)),T=n.state.tr.delete(b,D),B=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(F=z2(g.parent.content.cut(g.parentOffset,v.parentOffset),C.parent.content.cut(C.parentOffset,p.endA-C.start()))))T=n.state.tr,F.type=="add"?T.addMark(b,D,F.mark):T.removeMark(b,D,F.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let V=g.parent.textBetween(g.parentOffset,v.parentOffset);if(n.someProp("handleTextInput",$=>$(n,b,D,V)))return;T=n.state.tr.insertText(V,b,D)}}if(T||(T=n.state.tr.replace(b,D,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let V=Wu(n,T.doc,c.sel);V&&!(rt&&zt&&n.composing&&V.empty&&(p.start!=p.endB||n.input.lastAndroidDelete<Date.now()-100)&&(V.head==b||V.head==T.mapping.map(D)-1)||bt&&V.empty&&V.head==b)&&T.setSelection(V)}B&&T.ensureMarks(B),i&&T.setMeta("composition",i),n.dispatch(T.scrollIntoView())}function Wu(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:Zl(n,e.resolve(t.anchor),e.resolve(t.head))}function z2(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,i=r,s,l,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<t.length;u++)i=t[u].removeFromSet(i);if(o.length==1&&i.length==0)l=o[0],s="add",a=u=>u.mark(l.addToSet(u.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(a(e.child(u)));if(se.from(c).eq(n))return{mark:l,type:s}}function H2(n,e,t,r,o){if(!r.parent.isTextblock||t-e<=o.pos-r.pos||pa(r,!0,!1)<o.pos)return!1;let i=n.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=n.resolve(pa(i,!0,!0));return!s.parent.isTextblock||s.pos>t||pa(s,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function pa(n,e,t){let r=n.depth,o=e?n.end():n.pos;for(;r>0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,o++,e=!1;if(t){let i=n.node(r).maybeChild(n.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function U2(n,e,t,r,o){let i=n.findDiffStart(e,t);if(i==null)return null;let{a:s,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,l));r-=s+a-i}if(s<i&&n.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&Ku(e.textBetween(i-1,i+1))&&(i+=a?1:-1),l=i+(l-s),s=i}else if(l<i){let a=r<=i&&r>=l?i-r:0;i-=a,i&&i<n.size&&Ku(n.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function Ku(n){if(n.length!=2)return!1;let e=n.charCodeAt(0),t=n.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class j2{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new d2,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Xu),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Ju(this),Yu(this),this.nodeViews=Zu(this),this.docView=Ou(this.state.doc,Gu(this),ha(this),this.dom,this),this.domObserver=new L2(this,(r,o,i,s)=>V2(this,r,o,i,s)),this.domObserver.start(),f2(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ll(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Xu),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(jh(this),s=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let m=Zu(this);K2(m,this.nodeViews)&&(this.nodeViews=m,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&ll(this),this.editable=Ju(this),Yu(this);let a=ha(this),c=Gu(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,c,a);(d||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&ky(this);if(s){this.domObserver.stop();let m=d&&(bt||rt)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&W2(o.selection,e.selection);if(d){let p=rt?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Ou(e.doc,c,a,this.dom,this)),p&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Xy(this))?gn(this,m):(Ih(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&Ay(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof Se){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Su(this,t.getBoundingClientRect(),e)}else Su(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let r=this.directPlugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let r=this.state.plugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}}updateDraggedNode(e,t){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new Kh(e.slice,e.move,o<0?void 0:Se.create(this.state.doc,o))}someProp(e,t){let r=this._props&&this._props[e],o;if(r!=null&&(o=t?t(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(o=t?t(l):l))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[e];if(l!=null&&(o=t?t(l):l))return o}}hasFocus(){if(bt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Oy(this.dom),gn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return _y(this,e)}coordsAtPos(e,t=1){return wh(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let o=this.docView.posFromDOM(e,t,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return $y(this,t||this.state,e)}pasteHTML(e,t){return Oo(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Oo(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(h2(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ha(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return m2(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ft&&this.root.nodeType===11&&by(this.dom.ownerDocument)==this.dom?P2(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Gu(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let r in t)r=="class"?e.class+=" "+t[r]:r=="style"?e.style=(e.style?e.style+";":"")+t[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(t[r]))}),e.translate||(e.translate="no"),[Rt.node(0,n.state.doc.content.size,e)]}function Yu(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:Rt.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function Ju(n){return!n.someProp("editable",e=>e(n.state)===!1)}function W2(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function Zu(n){let e=Object.create(null);function t(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function K2(n,e){let t=0,r=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)r++;return t!=r}function Xu(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Bn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ri={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},G2=typeof navigator<"u"&&/Mac/.test(navigator.platform),Y2=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var et=0;et<10;et++)Bn[48+et]=Bn[96+et]=String(et);for(var et=1;et<=24;et++)Bn[et+111]="F"+et;for(var et=65;et<=90;et++)Bn[et]=String.fromCharCode(et+32),Ri[et]=String.fromCharCode(et);for(var ma in Bn)Ri.hasOwnProperty(ma)||(Ri[ma]=Bn[ma]);function J2(n){var e=G2&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||Y2&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Ri:Bn)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const Z2=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function X2(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l++){let a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))Z2?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(t="Alt-"+t),o&&(t="Ctrl-"+t),s&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function Q2(n){let e=Object.create(null);for(let t in n)e[X2(t)]=n[t];return e}function ga(n,e,t=!0){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t&&e.shiftKey&&(n="Shift-"+n),n}function q2(n){return new Et({props:{handleKeyDown:e5(n)}})}function e5(n){let e=Q2(n);return function(t,r){let o=J2(r),i,s=e[ga(o,r)];if(s&&s(t.state,t.dispatch,t))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[ga(o,r,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Bn[r.keyCode])&&i!=o){let l=e[ga(i,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const t5=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function n5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const r5=(n,e,t)=>{let r=n5(n,t);if(!r)return!1;let o=Xh(r);if(!o){let s=r.blockRange(),l=s&&eo(s);return l==null?!1:(e&&e(n.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&ep(n,o,e))return!0;if(r.parent.content.size==0&&(Kr(i,"end")||Se.isSelectable(i))){let s=Wl(n.doc,r.before(),r.after(),he.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Kr(i,"end")?_e.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Se.create(l.doc,o.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function Kr(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const o5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;i=Xh(r)}let s=i&&i.nodeBefore;return!s||!Se.isSelectable(s)?!1:(e&&e(n.tr.setSelection(Se.create(n.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Xh(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function i5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const s5=(n,e,t)=>{let r=i5(n,t);if(!r)return!1;let o=Qh(r);if(!o)return!1;let i=o.nodeAfter;if(ep(n,o,e))return!0;if(r.parent.content.size==0&&(Kr(i,"start")||Se.isSelectable(i))){let s=Wl(n.doc,r.before(),r.after(),he.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Kr(i,"start")?_e.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Se.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},a5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;i=Qh(r)}let s=i&&i.nodeAfter;return!s||!Se.isSelectable(s)?!1:(e&&e(n.tr.setSelection(Se.create(n.doc,i.pos)).scrollIntoView()),!0)};function Qh(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){let t=n.node(e);if(n.index(e)+1<t.childCount)return n.doc.resolve(n.after(e+1));if(t.type.spec.isolating)break}return null}const l5=(n,e)=>{let t=n.selection,r=t instanceof Se,o;if(r){if(t.node.isTextblock||!zn(n.doc,t.from))return!1;o=t.from}else if(o=Ms(n.doc,t.from,-1),o==null)return!1;if(e){let i=n.tr.join(o);r&&i.setSelection(Se.create(i.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},c5=(n,e)=>{let t=n.selection,r;if(t instanceof Se){if(t.node.isTextblock||!zn(n.doc,t.to))return!1;r=t.to}else if(r=Ms(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},u5=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),i=o&&eo(o);return i==null?!1:(e&&e(n.tr.lift(o,i).scrollIntoView()),!0)},d5=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(`
19
- `).scrollIntoView()),!0)};function qh(n){for(let e=0;e<n.edgeCount;e++){let{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const f5=(n,e)=>{let{$head:t,$anchor:r}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(r))return!1;let o=t.node(-1),i=t.indexAfter(-1),s=qh(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,s.createAndFill());a.setSelection(_e.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},h5=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Ht||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=qh(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=n.tr.insert(s,i.createAndFill());l.setSelection(Le.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},p5=(n,e)=>{let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if($r(n.doc,i))return e&&e(n.tr.split(i).scrollIntoView()),!0}let r=t.blockRange(),o=r&&eo(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},m5=(n,e)=>{let{$from:t,to:r}=n.selection,o,i=t.sharedDepth(r);return i==0?!1:(o=t.before(i),e&&e(n.tr.setSelection(Se.create(n.doc,o))),!0)};function g5(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||zn(n.doc,e.pos))?!1:(t&&t(n.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function ep(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(g5(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(t){let d=e.pos+o.nodeSize,h=se.empty;for(let g=i.length-1;g>=0;g--)h=se.from(i[g].create(null,h));h=se.from(r.copy(h));let m=n.tr.step(new Je(e.pos-1,d,e.pos,d,new he(h,1,0),i.length,!0)),p=d+2*i.length;zn(m.doc,p)&&m.join(p),t(m.scrollIntoView())}return!0}let a=_e.findFrom(e,1),c=a&&a.$from.blockRange(a.$to),u=c&&eo(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&Kr(o,"start",!0)&&Kr(r,"end")){let d=r,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let m=o,p=1;for(;!m.isTextblock;m=m.firstChild)p++;if(d.canReplace(d.childCount,d.childCount,m.content)){if(t){let g=se.empty;for(let C=h.length-1;C>=0;C--)g=se.from(h[C].copy(g));let v=n.tr.step(new Je(e.pos-h.length,e.pos+o.nodeSize,e.pos+p,e.pos+o.nodeSize-p,new he(g,h.length,0),0,!0));t(v.scrollIntoView())}return!0}}return!1}function tp(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(t&&t(e.tr.setSelection(Le.create(e.doc,n<0?o.start(i):o.end(i)))),!0):!1}}const v5=tp(-1),y5=tp(1);function b5(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=s&&jl(s,n,e);return l?(r&&r(t.tr.wrap(s,l).scrollIntoView()),!0):!1}}function Qu(n,e=null){return function(t,r){let o=!1;for(let i=0;i<t.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(s,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(n,e)))if(a.type==n)o=!0;else{let u=t.doc.resolve(c),d=u.index();o=u.parent.canReplaceWith(d,d+1,n)}})}if(!o)return!1;if(r){let i=t.tr;for(let s=0;s<t.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=t.selection.ranges[s];i.setBlockType(l,a,n,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function E5(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(n)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=t.doc.resolve(s.start-2);a=new Ai(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Ai(o,t.doc.resolve(i.end(s.depth)),s.depth)),l=!0}let c=jl(a,n,e,s);return c?(r&&r(C5(t.tr,s,c,l,n).scrollIntoView()),!0):!1}}function C5(n,e,t,r,o){let i=se.empty;for(let u=t.length-1;u>=0;u--)i=se.from(t[u].type.create(t[u].attrs,i));n.step(new Je(e.start-(r?2:0),e.end,e.start,e.end,new he(i,0,0),t.length,!0));let s=0;for(let u=0;u<t.length;u++)t[u].type==o&&(s=u+1);let l=t.length-s,a=e.start+t.length-(r?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,h=!0;u<d;u++,h=!1)!h&&$r(n.doc,a,l)&&(n.split(a,l),a+=2*l),a+=c.child(u).nodeSize;return n}function S5(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==n);return i?t?r.node(i.depth-1).type==n?w5(e,t,n,i):x5(e,t,i):!0:!1}}function w5(n,e,t,r){let o=n.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Je(i-1,s,i,s,new he(se.from(t.create(null,r.parent.copy())),1,0),1,!0)),r=new Ai(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=eo(r);if(l==null)return!1;o.lift(r,l);let a=o.mapping.map(i,-1)-1;return zn(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function x5(n,e,t){let r=n.tr,o=t.parent;for(let m=t.end,p=t.endIndex-1,g=t.startIndex;p>g;p--)m-=o.child(p).nodeSize,r.delete(m-1,m+1);let i=r.doc.resolve(t.start),s=i.nodeAfter;if(r.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(l?0:1),u+1,s.content.append(a?se.empty:se.from(o))))return!1;let d=i.pos,h=d+s.nodeSize;return r.step(new Je(d-(l?1:0),h+(a?1:0),d+1,h-1,new he((l?se.empty:se.from(o.copy(se.empty))).append(a?se.empty:se.from(o.copy(se.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}function T5(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,a=l.child(s-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,u=se.from(c?n.create():null),d=new he(se.from(n.create(null,se.from(l.type.create(null,u)))),c?3:1,0),h=i.start,m=i.end;t(e.tr.step(new Je(h-(c?3:1),m,h,m,d,1,!0)).scrollIntoView())}return!0}}function Ls(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:o}=t,{storedMarks:i}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=t.selection,o=t.doc,i=t.storedMarks,t}}}class Rs{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:o}=t,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>{const d=a(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l=[],a=!!e,c=e||i.tr,u=()=>(!a&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),l.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,m])=>[h,(...g)=>{const v=this.buildProps(c,t),C=m(...g)(v);return l.push(C),d}])),run:u};return d}createCan(e){const{rawCommands:t,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:Ls({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,c])=>[a,(...u)=>c(...u)(l)]))}};return l}}class k5{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function me(n,e,t){return n.config[e]===void 0&&n.parent?me(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?me(n.parent,e,t):null}):n.config[e]}function Ps(n){const e=n.filter(o=>o.type==="extension"),t=n.filter(o=>o.type==="node"),r=n.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:r}}function np(n){const e=[],{nodeExtensions:t,markExtensions:r}=Ps(n),o=[...t,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=me(s,"addGlobalAttributes",l);if(!a)return;a().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,m])=>{e.push({type:d,name:h,attribute:{...i,...m}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=me(s,"addAttributes",l);if(!a)return;const c=a();Object.entries(c).forEach(([u,d])=>{const h={...i,...d};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Ze(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function mt(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const l=i?i.split(" "):[],a=r[o]?r[o].split(" "):[],c=l.filter(u=>!a.includes(u));r[o]=[...a,...c].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function cl(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,r)=>mt(t,r),{})}function rp(n){return typeof n=="function"}function De(n,e=void 0,...t){return rp(n)?e?n.bind(e)(...t):n(...t):n}function A5(n={}){return Object.keys(n).length===0&&n.constructor===Object}function O5(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function qu(n,e){return n.style?n:{...n,getAttrs:t=>{const r=n.getAttrs?n.getAttrs(t):n.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(t):O5(t.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...r,...o}}}}function ed(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&A5(t)?!1:t!=null))}function M5(n,e){var t;const r=np(n),{nodeExtensions:o,markExtensions:i}=Ps(n),s=(t=o.find(c=>me(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.map(c=>{const u=r.filter(C=>C.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},h=n.reduce((C,S)=>{const x=me(S,"extendNodeSchema",d);return{...C,...x?x(c):{}}},{}),m=ed({...h,content:De(me(c,"content",d)),marks:De(me(c,"marks",d)),group:De(me(c,"group",d)),inline:De(me(c,"inline",d)),atom:De(me(c,"atom",d)),selectable:De(me(c,"selectable",d)),draggable:De(me(c,"draggable",d)),code:De(me(c,"code",d)),defining:De(me(c,"defining",d)),isolating:De(me(c,"isolating",d)),attrs:Object.fromEntries(u.map(C=>{var S;return[C.name,{default:(S=C==null?void 0:C.attribute)===null||S===void 0?void 0:S.default}]}))}),p=De(me(c,"parseHTML",d));p&&(m.parseDOM=p.map(C=>qu(C,u)));const g=me(c,"renderHTML",d);g&&(m.toDOM=C=>g({node:C,HTMLAttributes:cl(C,u)}));const v=me(c,"renderText",d);return v&&(m.toText=v),[c.name,m]})),a=Object.fromEntries(i.map(c=>{const u=r.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},h=n.reduce((v,C)=>{const S=me(C,"extendMarkSchema",d);return{...v,...S?S(c):{}}},{}),m=ed({...h,inclusive:De(me(c,"inclusive",d)),excludes:De(me(c,"excludes",d)),group:De(me(c,"group",d)),spanning:De(me(c,"spanning",d)),code:De(me(c,"code",d)),attrs:Object.fromEntries(u.map(v=>{var C;return[v.name,{default:(C=v==null?void 0:v.attribute)===null||C===void 0?void 0:C.default}]}))}),p=De(me(c,"parseHTML",d));p&&(m.parseDOM=p.map(v=>qu(v,u)));const g=me(c,"renderHTML",d);return g&&(m.toDOM=v=>g({mark:v,HTMLAttributes:cl(v,u)})),[c.name,m]}));return new Bv({topNode:s,nodes:l,marks:a})}function va(n,e){return e.nodes[n]||e.marks[n]||null}function td(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const N5=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var a,c;const u=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";t+=u.slice(0,Math.max(0,r-i))}),t};function nc(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class op{constructor(e){this.find=e.find,this.handler=e.handler}}const I5=(n,e)=>{if(nc(e))return e.exec(n);const t=e(n);if(!t)return null;const r=[t.text];return r.index=t.index,r.input=n,r.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(t.replaceWith)),r};function ya(n){var e;const{editor:t,from:r,to:o,text:i,rules:s,plugin:l}=n,{view:a}=t;if(a.composing)return!1;const c=a.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=N5(c)+i;return s.forEach(h=>{if(u)return;const m=I5(d,h.find);if(!m)return;const p=a.state.tr,g=Ls({state:a.state,transaction:p}),v={from:r-(m[0].length-i.length),to:o},{commands:C,chain:S,can:x}=new Rs({editor:t,state:g});h.handler({state:g,range:v,match:m,commands:C,chain:S,can:x})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:r,to:o,text:i}),a.dispatch(p),u=!0)}),u}function D5(n){const{editor:e,rules:t}=n,r=new Et({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,l){return ya({editor:e,from:i,to:s,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&ya({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?ya({editor:e,from:s.pos,to:s.pos,text:`
20
- `,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function _5(n){return typeof n=="number"}class L5{constructor(e){this.find=e.find,this.handler=e.handler}}const R5=(n,e)=>{if(nc(e))return[...n.matchAll(e)];const t=e(n);return t?t.map(r=>{const o=[r.text];return o.index=r.index,o.input=n,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function P5(n){const{editor:e,state:t,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=n,{commands:a,chain:c,can:u}=new Rs({editor:e,state:t}),d=[];return t.doc.nodesBetween(r,o,(m,p)=>{if(!m.isTextblock||m.type.spec.code)return;const g=Math.max(r,p),v=Math.min(o,p+m.content.size),C=m.textBetween(g-p,v-p,void 0,"");R5(C,i.find).forEach(x=>{if(x.index===void 0)return;const b=g+x.index+1,D=b+x[0].length,T={from:t.tr.mapping.map(b),to:t.tr.mapping.map(D)},B=i.handler({state:t,range:T,match:x,commands:a,chain:c,can:u,pasteEvent:s,dropEvent:l});d.push(B)})}),d.every(m=>m!==null)}function B5(n){const{editor:e,rules:t}=n;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),l=new DragEvent("drop");return t.map(c=>new Et({view(u){const d=h=>{var m;r=!((m=u.dom.parentElement)===null||m===void 0)&&m.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(u,d)=>(i=r===u.dom.parentElement,l=d,!1),paste:(u,d)=>{var h;const m=(h=d.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=d,o=!!(m!=null&&m.includes("data-pm-slice")),!1}}},appendTransaction:(u,d,h)=>{const m=u[0],p=m.getMeta("uiEvent")==="paste"&&!o,g=m.getMeta("uiEvent")==="drop"&&!i;if(!p&&!g)return;const v=d.doc.content.findDiffStart(h.doc.content),C=d.doc.content.findDiffEnd(h.doc.content);if(!_5(v)||!C||v===C.b)return;const S=h.tr,x=Ls({state:h,transaction:S});if(!(!P5({editor:e,state:x,from:Math.max(v-1,0),to:C.b-1,rule:c,pasteEvent:s,dropEvent:l})||!S.steps.length))return l=new DragEvent("drop"),s=new ClipboardEvent("paste"),S}}))}function $5(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class Pr{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Pr.resolve(e),this.schema=M5(this.extensions,t),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:va(r.name,this.schema)};r.type==="mark"&&(!((o=De(me(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=me(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const l=me(r,"onCreate",i);l&&this.editor.on("create",l);const a=me(r,"onUpdate",i);a&&this.editor.on("update",a);const c=me(r,"onSelectionUpdate",i);c&&this.editor.on("selectionUpdate",c);const u=me(r,"onTransaction",i);u&&this.editor.on("transaction",u);const d=me(r,"onFocus",i);d&&this.editor.on("focus",d);const h=me(r,"onBlur",i);h&&this.editor.on("blur",h);const m=me(r,"onDestroy",i);m&&this.editor.on("destroy",m)})}static resolve(e){const t=Pr.sort(Pr.flatten(e)),r=$5(t.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},o=me(t,"addExtensions",r);return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=me(r,"priority")||100,s=me(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:va(t.name,this.schema)},o=me(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=Pr.sort([...this.extensions].reverse()),r=[],o=[],i=t.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:va(s.name,this.schema)},a=[],c=me(s,"addKeyboardShortcuts",l);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>an.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([v,C])=>[v,()=>C({editor:e})]));u={...u,...g}}const d=q2(u);a.push(d);const h=me(s,"addInputRules",l);td(s,e.options.enableInputRules)&&h&&r.push(...h());const m=me(s,"addPasteRules",l);td(s,e.options.enablePasteRules)&&m&&o.push(...m());const p=me(s,"addProseMirrorPlugins",l);if(p){const g=p();a.push(...g)}return a}).flat();return[D5({editor:e,rules:r}),...B5({editor:e,rules:o}),...i]}get attributes(){return np(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Ps(this.extensions);return Object.fromEntries(t.filter(r=>!!me(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:Ze(r.name,this.schema)},s=me(r,"addNodeView",i);if(!s)return[];const l=(a,c,u,d)=>{const h=cl(a,o);return s()({editor:e,node:a,getPos:u,decorations:d,HTMLAttributes:h,extension:r})};return[r.name,l]}))}}function F5(n){return Object.prototype.toString.call(n).slice(8,-1)}function ba(n){return F5(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Bs(n,e){const t={...n};return ba(n)&&ba(e)&&Object.keys(e).forEach(r=>{ba(e[r])?r in n?t[r]=Bs(n[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}class Bt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=De(me(this,"addOptions",{name:this.name}))),this.storage=De(me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bt(e)}configure(e={}){const t=this.extend();return t.options=Bs(this.options,e),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Bt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=De(me(t,"addOptions",{name:t.name})),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}}function ip(n,e,t){const{from:r,to:o}=e,{blockSeparator:i=`
21
-
22
- `,textSerializers:s={}}=t||{};let l="",a=!0;return n.nodesBetween(r,o,(c,u,d,h)=>{var m;const p=s==null?void 0:s[c.type.name];p?(c.isBlock&&!a&&(l+=i,a=!0),d&&(l+=p({node:c,pos:u,parent:d,index:h,range:e}))):c.isText?(l+=(m=c==null?void 0:c.text)===null||m===void 0?void 0:m.slice(Math.max(r,u)-u,o-u),a=!1):c.isBlock&&!a&&(l+=i,a=!0)}),l}function sp(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const V5=Bt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Et({key:new Kt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),l=Math.max(...i.map(u=>u.$to.pos)),a=sp(t);return ip(r,{from:s,to:l},{textSerializers:a})}}})]}}),z5=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),H5=(n=!1)=>({commands:e})=>e.setContent("",n),U5=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:o}=r;return t&&o.forEach(({$from:i,$to:s})=>{n.doc.nodesBetween(i.pos,s.pos,(l,a)=>{if(l.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(a)),h=c.resolve(u.map(a+l.nodeSize)),m=d.blockRange(h);if(!m)return;const p=eo(m);if(l.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(m.start,g)}(p||p===0)&&e.lift(m,p)})}),!0},j5=n=>e=>n(e),W5=()=>({state:n,dispatch:e})=>h5(n,e),K5=(n,e)=>({editor:t,tr:r})=>{const{state:o}=t,i=o.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Le(r.doc.resolve(s-1))),!0},G5=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const o=n.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const l=o.before(i),a=o.after(i);n.delete(l,a).scrollIntoView()}return!0}return!1},Y5=n=>({tr:e,state:t,dispatch:r})=>{const o=Ze(n,t.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),c=i.after(s);e.delete(a,c).scrollIntoView()}return!0}return!1},J5=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},Z5=()=>({state:n,dispatch:e})=>t5(n,e),X5=()=>({commands:n})=>n.keyboardShortcut("Enter"),Q5=()=>({state:n,dispatch:e})=>f5(n,e);function Pi(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:nc(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function ul(n,e,t={}){return n.find(r=>r.type===e&&Pi(r.attrs,t))}function q5(n,e,t={}){return!!ul(n,e,t)}function rc(n,e,t={}){if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if(n.parentOffset===r.offset&&r.offset!==0&&(r=n.parent.childBefore(n.parentOffset)),!r.node)return;const o=ul([...r.node.marks],e,t);if(!o)return;let i=r.index,s=n.start()+r.offset,l=i+1,a=s+r.node.nodeSize;for(ul([...r.node.marks],e,t);i>0&&o.isInSet(n.parent.child(i-1).marks);)i-=1,s-=n.parent.child(i).nodeSize;for(;l<n.parent.childCount&&q5([...n.parent.child(l).marks],e,t);)a+=n.parent.child(l).nodeSize,l+=1;return{from:s,to:a}}function Un(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const eb=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const i=Un(n,r.schema),{doc:s,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const d=rc(a,i,e);if(d&&d.from<=c&&d.to>=u){const h=Le.create(s,d.from,d.to);t.setSelection(h)}}return!0},tb=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r<t.length;r+=1)if(t[r](e))return!0;return!1};function oc(n){return n instanceof Le}function mn(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function ap(n,e=null){if(!e)return null;const t=_e.atStart(n),r=_e.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return r;const o=t.from,i=r.to;return e==="all"?Le.create(n,mn(0,o,i),mn(n.content.size,o,i)):Le.create(n,mn(e,o,i),mn(e,o,i))}function ic(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const nb=(n=null,e={})=>({editor:t,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{ic()&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(i&&n===null&&!oc(t.state.selection))return s(),!0;const l=ap(o.doc,n)||t.state.selection,a=t.state.selection.eq(l);return i&&(a||o.setSelection(l),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},rb=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),ob=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e);function nd(n){const e=`<body>${n}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function Bi(n,e,t){if(t={slice:!0,parseOptions:{},...t},typeof n=="object"&&n!==null)try{return Array.isArray(n)&&n.length>0?se.fromArray(n.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(n)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",r),Bi("",e,t)}if(typeof n=="string"){const r=Hr.fromSchema(e);return t.slice?r.parseSlice(nd(n),t.parseOptions).content:r.parse(nd(n),t.parseOptions)}return Bi("",e,t)}function ib(n,e,t){const r=n.steps.length-1;if(r<e)return;const o=n.steps[r];if(!(o instanceof qe||o instanceof Je))return;const i=n.mapping.maps[r];let s=0;i.forEach((l,a,c,u)=>{s===0&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),t))}const sb=n=>n.toString().startsWith("<"),ab=(n,e,t)=>({tr:r,dispatch:o,editor:i})=>{if(o){t={parseOptions:{},updateSelection:!0,...t};const s=Bi(e,i.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:a}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},c=!0,u=!0;if((sb(s)?s:[s]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),l===a&&u){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,a+=1)}c?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),l,a):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,a):r.insertText(e,l,a):r.replaceWith(l,a,s),t.updateSelection&&ib(r,r.steps.length-1,-1)}return!0},lb=()=>({state:n,dispatch:e})=>l5(n,e),cb=()=>({state:n,dispatch:e})=>c5(n,e),ub=()=>({state:n,dispatch:e})=>r5(n,e),db=()=>({state:n,dispatch:e})=>s5(n,e),fb=()=>({tr:n,state:e,dispatch:t})=>{try{const r=Ms(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},hb=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Ms(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}};function lp(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function pb(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l+=1){const a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))ic()||lp()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(t=`Alt-${t}`),o&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const mb=n=>({editor:e,view:t,tr:r,dispatch:o})=>{const i=pb(n).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return a==null||a.steps.forEach(c=>{const u=c.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function No(n,e,t={}){const{from:r,to:o,empty:i}=n.selection,s=e?Ze(e,n.schema):null,l=[];n.doc.nodesBetween(r,o,(d,h)=>{if(d.isText)return;const m=Math.max(r,h),p=Math.min(o,h+d.nodeSize);l.push({node:d,from:m,to:p})});const a=o-r,c=l.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Pi(d.node.attrs,t,{strict:!1}));return i?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=a}const gb=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return No(t,o,e)?u5(t,r):!1},vb=()=>({state:n,dispatch:e})=>p5(n,e),yb=n=>({state:e,dispatch:t})=>{const r=Ze(n,e.schema);return S5(r)(e,t)},bb=()=>({state:n,dispatch:e})=>d5(n,e);function $s(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function rd(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,o)=>(t.includes(o)||(r[o]=n[o]),r),{})}const Eb=(n,e)=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=$s(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Ze(n,r.schema)),l==="mark"&&(s=Un(n,r.schema)),o&&t.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(c,u)=>{i&&i===c.type&&t.setNodeMarkup(u,void 0,rd(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&t.addMark(u,u+c.nodeSize,s.create(rd(d.attrs,e)))})})}),!0):!1},Cb=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),Sb=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),wb=()=>({state:n,dispatch:e})=>o5(n,e),xb=()=>({state:n,dispatch:e})=>a5(n,e),Tb=()=>({state:n,dispatch:e})=>m5(n,e),kb=()=>({state:n,dispatch:e})=>y5(n,e),Ab=()=>({state:n,dispatch:e})=>v5(n,e);function cp(n,e,t={}){return Bi(n,e,{slice:!1,parseOptions:t})}const Ob=(n,e=!1,t={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,l=cp(n,o.schema,t);return i&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function Fs(n,e){const t=Un(e,n.schema),{from:r,to:o,empty:i}=n.selection,s=[];i?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const l=s.find(a=>a.type.name===t.name);return l?{...l.attrs}:{}}function Mb(n,e){const t=new mh(n);return e.forEach(r=>{r.steps.forEach(o=>{t.step(o)})}),t}function Nb(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function Ib(n,e,t){const r=[];return n.nodesBetween(e.from,e.to,(o,i)=>{t(o)&&r.push({node:o,pos:i})}),r}function Db(n,e){for(let t=n.depth;t>0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function sc(n){return e=>Db(e.$from,n)}function _b(n,e){const t=tn.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function Lb(n,e){const t={from:0,to:n.content.size};return ip(n,t,e)}function Rb(n,e){const t=Ze(e,n.schema),{from:r,to:o}=n.selection,i=[];n.doc.nodesBetween(r,o,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===t.name);return s?{...s.attrs}:{}}function up(n,e){const t=$s(typeof e=="string"?e:e.name,n.schema);return t==="node"?Rb(n,e):t==="mark"?Fs(n,e):{}}function Pb(n,e=JSON.stringify){const t={};return n.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(t,o)?!1:t[o]=!0})}function Bb(n){const e=Pb(n);return e.length===1?e:e.filter((t,r)=>!e.filter((i,s)=>s!==r).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function $b(n){const{mapping:e,steps:t}=n,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((l,a)=>{s.push({from:l,to:a})});else{const{from:l,to:a}=t[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a})}s.forEach(({from:l,to:a})=>{const c=e.slice(i).map(l,-1),u=e.slice(i).map(a),d=e.invert().map(c,-1),h=e.invert().map(u);r.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),Bb(r)}function ac(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const i=t.resolve(n-1),s=rc(i,o.type);s&&r.push({mark:o,...s})}):t.nodesBetween(n,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function pi(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const o=n.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function dl(n,e,t={}){const{empty:r,ranges:o}=n.selection,i=e?Un(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Pi(d.attrs,t,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:d,$to:h})=>{const m=d.pos,p=h.pos;n.doc.nodesBetween(m,p,(g,v)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(m,v),S=Math.min(p,v+g.nodeSize),x=S-C;s+=x,l.push(...g.marks.map(b=>({mark:b,from:C,to:S})))})}),s===0)return!1;const a=l.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Pi(d.mark.attrs,t,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=l.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,h)=>d+h.to-h.from,0);return(a>0?a+c:a)>=s}function Fb(n,e,t={}){if(!e)return No(n,null,t)||dl(n,null,t);const r=$s(e,n.schema);return r==="node"?No(n,e,t):r==="mark"?dl(n,e,t):!1}function od(n,e){const{nodeExtensions:t}=Ps(e),r=t.find(s=>s.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=De(me(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function Vb(n){var e;const t=(e=n.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=n.toJSON();return JSON.stringify(t)===JSON.stringify(r)}function zb(n){return n instanceof Se}function dp(n,e,t){const o=n.state.doc.content.size,i=mn(e,0,o),s=mn(t,0,o),l=n.coordsAtPos(i),a=n.coordsAtPos(s,-1),c=Math.min(l.top,a.top),u=Math.max(l.bottom,a.bottom),d=Math.min(l.left,a.left),h=Math.max(l.right,a.right),m=h-d,p=u-c,C={top:c,bottom:u,left:d,right:h,width:m,height:p,x:d,y:c};return{...C,toJSON:()=>C}}function Hb(n,e,t){var r;const{selection:o}=e;let i=null;if(oc(o)&&(i=o.$cursor),i){const l=(r=n.storedMarks)!==null&&r!==void 0?r:i.marks();return!!t.isInSet(l)||!l.some(a=>a.type.excludes(t))}const{ranges:s}=o;return s.some(({$from:l,$to:a})=>{let c=l.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(l.pos,a.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const m=!h||h.type.allowsMarkType(t),p=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=m&&p}return!c}),c})}const Ub=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:i}=t,{empty:s,ranges:l}=i,a=Un(n,r.schema);if(o)if(s){const c=Fs(r,a);t.addStoredMark(a.create({...c,...e}))}else l.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(h,m)=>{const p=Math.max(m,u),g=Math.min(m+h.nodeSize,d);h.marks.find(C=>C.type===a)?h.marks.forEach(C=>{a===C.type&&t.addMark(p,g,a.create({...C.attrs,...e}))}):t.addMark(p,g,a.create(e))})});return Hb(r,t,a)},jb=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),Wb=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const i=Ze(n,t.schema);return i.isTextblock?o().command(({commands:s})=>Qu(i,e)(t)?!0:s.clearNodes()).command(({state:s})=>Qu(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Kb=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=mn(n,0,r.content.size),i=Se.create(r,o);e.setSelection(i)}return!0},Gb=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:i}=typeof n=="number"?{from:n,to:n}:n,s=Le.atStart(r).from,l=Le.atEnd(r).to,a=mn(o,s,l),c=mn(i,s,l),u=Le.create(r,a,c);e.setSelection(u)}return!0},Yb=n=>({state:e,dispatch:t})=>{const r=Ze(n,e.schema);return T5(r)(e,t)};function id(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(o=>e==null?void 0:e.includes(o.type.name));n.tr.ensureMarks(r)}}const Jb=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:l,$to:a}=i,c=o.extensionManager.attributes,u=pi(c,l.node().type.name,l.node().attrs);if(i instanceof Se&&i.node.isBlock)return!l.parentOffset||!$r(s,l.pos)?!1:(r&&(n&&id(t,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const d=a.parentOffset===a.parent.content.size;i instanceof Le&&e.deleteSelection();const h=l.depth===0?void 0:Nb(l.node(-1).contentMatchAt(l.indexAfter(-1)));let m=d&&h?[{type:h,attrs:u}]:void 0,p=$r(e.doc,e.mapping.map(l.pos),1,m);if(!m&&!p&&$r(e.doc,e.mapping.map(l.pos),1,h?[{type:h}]:void 0)&&(p=!0,m=h?[{type:h,attrs:u}]:void 0),p&&(e.split(e.mapping.map(l.pos),1,m),h&&!d&&!l.parentOffset&&l.parent.type!==h)){const g=e.mapping.map(l.before()),v=e.doc.resolve(g);l.node(-1).canReplaceWith(v.index(),v.index()+1,h)&&e.setNodeMarkup(e.mapping.map(l.before()),h)}n&&id(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},Zb=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var i;const s=Ze(n,t.schema),{$from:l,$to:a}=t.selection,c=t.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(a))return!1;const u=l.node(-1);if(u.type!==s)return!1;const d=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let v=se.empty;const C=l.index(-1)?1:l.index(-2)?2:3;for(let B=l.depth-C;B>=l.depth-3;B-=1)v=se.from(l.node(B).copy(v));const S=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,x=pi(d,l.node().type.name,l.node().attrs),b=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(x))||void 0;v=v.append(se.from(s.createAndFill(null,b)||void 0));const D=l.before(l.depth-(C-1));e.replace(D,l.after(-S),new he(v,4-C,0));let T=-1;e.doc.nodesBetween(D,e.doc.content.size,(B,F)=>{if(T>-1)return!1;B.isTextblock&&B.content.size===0&&(T=F+1)}),T>-1&&e.setSelection(Le.near(e.doc.resolve(T))),e.scrollIntoView()}return!0}const h=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,m=pi(d,u.type.name,u.attrs),p=pi(d,l.node().type.name,l.node().attrs);e.delete(l.pos,a.pos);const g=h?[{type:s,attrs:m},{type:h,attrs:p}]:[{type:s,attrs:m}];if(!$r(e.doc,l.pos,2))return!1;if(r){const{selection:v,storedMarks:C}=t,{splittableMarks:S}=o.extensionManager,x=C||v.$to.parentOffset&&v.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!x||!r)return!0;const b=x.filter(D=>S.includes(D.type.name));e.ensureMarks(b)}return!0},Ea=(n,e)=>{const t=sc(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&zn(n.doc,t.pos)&&n.join(t.pos),!0},Ca=(n,e)=>{const t=sc(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&zn(n.doc,r)&&n.join(r),!0},Xb=(n,e,t,r={})=>({editor:o,tr:i,state:s,dispatch:l,chain:a,commands:c,can:u})=>{const{extensions:d,splittableMarks:h}=o.extensionManager,m=Ze(n,s.schema),p=Ze(e,s.schema),{selection:g,storedMarks:v}=s,{$from:C,$to:S}=g,x=C.blockRange(S),b=v||g.$to.parentOffset&&g.$from.marks();if(!x)return!1;const D=sc(T=>od(T.type.name,d))(g);if(x.depth>=1&&D&&x.depth-D.depth<=1){if(D.node.type===m)return c.liftListItem(p);if(od(D.node.type.name,d)&&m.validContent(D.node.content)&&l)return a().command(()=>(i.setNodeMarkup(D.pos,m),!0)).command(()=>Ea(i,m)).command(()=>Ca(i,m)).run()}return!t||!b||!l?a().command(()=>u().wrapInList(m,r)?!0:c.clearNodes()).wrapInList(m,r).command(()=>Ea(i,m)).command(()=>Ca(i,m)).run():a().command(()=>{const T=u().wrapInList(m,r),B=b.filter(F=>h.includes(F.type.name));return i.ensureMarks(B),T?!0:c.clearNodes()}).wrapInList(m,r).command(()=>Ea(i,m)).command(()=>Ca(i,m)).run()},Qb=(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=t,s=Un(n,r.schema);return dl(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},qb=(n,e,t={})=>({state:r,commands:o})=>{const i=Ze(n,r.schema),s=Ze(e,r.schema);return No(r,i,t)?o.setNode(s):o.setNode(i,t)},eE=(n,e={})=>({state:t,commands:r})=>{const o=Ze(n,t.schema);return No(t,o,e)?r.lift(o):r.wrapIn(o,e)},tE=()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r<t.length;r+=1){const o=t[r];let i;if(o.spec.isInputRules&&(i=o.getState(n))){if(e){const s=n.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a-=1)s.step(l.steps[a].invert(l.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,n.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},nE=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:o}=t;return r||e&&o.forEach(i=>{n.removeMark(i.$from.pos,i.$to.pos)}),!0},rE=(n,e={})=>({tr:t,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=t,a=Un(n,r.schema),{$from:c,empty:u,ranges:d}=l;if(!o)return!0;if(u&&s){let{from:h,to:m}=l;const p=(i=c.marks().find(v=>v.type===a))===null||i===void 0?void 0:i.attrs,g=rc(c,a,p);g&&(h=g.from,m=g.to),t.removeMark(h,m,a)}else d.forEach(h=>{t.removeMark(h.$from.pos,h.$to.pos,a)});return t.removeStoredMark(a),!0},oE=(n,e={})=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=$s(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Ze(n,r.schema)),l==="mark"&&(s=Un(n,r.schema)),o&&t.selection.ranges.forEach(a=>{const c=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(c,u,(d,h)=>{i&&i===d.type&&t.setNodeMarkup(h,void 0,{...d.attrs,...e}),s&&d.marks.length&&d.marks.forEach(m=>{if(s===m.type){const p=Math.max(h,c),g=Math.min(h+d.nodeSize,u);t.addMark(p,g,s.create({...m.attrs,...e}))}})})}),!0):!1},iE=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return b5(o,e)(t,r)},sE=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return E5(o,e)(t,r)};var aE=Object.freeze({__proto__:null,blur:z5,clearContent:H5,clearNodes:U5,command:j5,createParagraphNear:W5,cut:K5,deleteCurrentNode:G5,deleteNode:Y5,deleteRange:J5,deleteSelection:Z5,enter:X5,exitCode:Q5,extendMarkRange:eb,first:tb,focus:nb,forEach:rb,insertContent:ob,insertContentAt:ab,joinUp:lb,joinDown:cb,joinBackward:ub,joinForward:db,joinItemBackward:fb,joinItemForward:hb,keyboardShortcut:mb,lift:gb,liftEmptyBlock:vb,liftListItem:yb,newlineInCode:bb,resetAttributes:Eb,scrollIntoView:Cb,selectAll:Sb,selectNodeBackward:wb,selectNodeForward:xb,selectParentNode:Tb,selectTextblockEnd:kb,selectTextblockStart:Ab,setContent:Ob,setMark:Ub,setMeta:jb,setNode:Wb,setNodeSelection:Kb,setTextSelection:Gb,sinkListItem:Yb,splitBlock:Jb,splitListItem:Zb,toggleList:Xb,toggleMark:Qb,toggleNode:qb,toggleWrap:eE,undoInputRule:tE,unsetAllMarks:nE,unsetMark:rE,updateAttributes:oE,wrapIn:iE,wrapInList:sE});const lE=Bt.create({name:"commands",addCommands(){return{...aE}}}),cE=Bt.create({name:"editable",addProseMirrorPlugins(){return[new Et({key:new Kt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),uE=Bt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new Et({key:new Kt("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),dE=Bt.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:a,doc:c}=l,{empty:u,$anchor:d}=a,{pos:h,parent:m}=d,p=d.parent.isTextblock?l.doc.resolve(h-1):d,g=p.parent.type.spec.isolating,v=d.pos-d.parentOffset,C=g&&p.parent.childCount===1?v===d.pos:_e.atStart(c).from===h;return!u||!C||!m.type.isTextblock||m.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ic()||lp()?i:o},addProseMirrorPlugins(){return[new Et({key:new Kt("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(p=>p.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:o,from:i,to:s}=e.selection,l=_e.atStart(e.doc).from,a=_e.atEnd(e.doc).to;if(o||!(i===l&&s===a)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const d=t.tr,h=Ls({state:t,transaction:d}),{commands:m}=new Rs({editor:this.editor,state:h});if(m.clearNodes(),!!d.steps.length)return d}})]}}),fE=Bt.create({name:"tabindex",addProseMirrorPlugins(){return[new Et({key:new Kt("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var hE=Object.freeze({__proto__:null,ClipboardTextSerializer:V5,Commands:lE,Editable:cE,FocusEvents:uE,Keymap:dE,Tabindex:fE});const pE=`.ProseMirror {
11
+ Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");N=this.KEY_STR.indexOf(w.charAt(z++)),I=this.KEY_STR.indexOf(w.charAt(z++)),_=this.KEY_STR.indexOf(w.charAt(z++)),L=this.KEY_STR.indexOf(w.charAt(z++)),O=N<<2|I>>4,y=(I&15)<<4|_>>2,E=(_&3)<<6|L,W.push(O),_!==64&&W.push(y),L!==64&&W.push(E),O=y=E="",N=I=_=L="",z<w.length;);return W}}]),A}();Ee.initClass();var Ae=function(M,w){var O=!1,y=!0,E=M.document,N=E.documentElement,I=E.addEventListener?"addEventListener":"attachEvent",_=E.addEventListener?"removeEventListener":"detachEvent",L=E.addEventListener?"":"on",z=function U(K){if(!(K.type==="readystatechange"&&E.readyState!=="complete")&&((K.type==="load"?M:E)[_](L+K.type,U,!1),!O&&(O=!0)))return w.call(M,K.type||K)},W=function U(){try{N.doScroll("left")}catch{setTimeout(U,50);return}return z("poll")};if(E.readyState!=="complete"){if(E.createEventObject&&N.doScroll){try{y=!M.frameElement}catch{}y&&W()}return E[I](L+"DOMContentLoaded",z,!1),E[I](L+"readystatechange",z,!1),M[I](L+"load",z,!1)}};j._autoDiscoverFunction=function(){if(j.autoDiscover)return j.discover()},Ae(window,j._autoDiscoverFunction);function Te(A,M){return typeof A<"u"&&A!==null?M(A):void 0}function Oe(A,M,w){if(typeof A<"u"&&A!==null&&typeof A[M]=="function")return w(A,M)}window.Dropzone=j;var ve=j}(),i}()})})(Hf);var mv=Hf.exports;const nu=pv(mv),gv={class:"fallback"},vv=f.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),yv={for:"file"},bv={class:"dz-message","data-dz-message":""},Ev={id:"bd-dropzone-theme",style:{display:"none"}},Cv={class:"dz-preview dz-file-preview"},Sv={class:"dz-details"},wv=f.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),xv=f.createElementVNode("div",{class:"dz-filename"},[f.createElementVNode("small",{"data-dz-name":""})],-1),Tv=f.createElementVNode("div",{class:"dz-progress"},[f.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[f.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),kv={class:"dz-success-mark"},Av={class:"dz-error-message text-danger"},Ov=f.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Uf=f.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:".jpg"},url:{default:""},tag:{default:"form"},token:{default:""}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({variant:ks.PRIMARY,size:at.SM})),o=gr(t,"modelValue",e);let i=null;nu.autoDiscover=!1,f.watch(()=>t.modelValue,()=>{s()}),f.onMounted(()=>{document.getElementById("dropzone")&&l()});const s=()=>{i&&(i.destroy(),l())},l=()=>{var m;i=new nu("#dropzone",{url:t.url,method:"post",acceptedFiles:t.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:t.multiple?3:1,headers:{RequestVerificationToken:t.token},dictResponseError:t.errorMessage,dictFileTooBig:t.fileSizeExceededMessage,previewTemplate:(m=document.querySelector("#bd-dropzone-theme"))==null?void 0:m.innerHTML}),i.on("error",c),i.on("success",a),i.on("removedfile",d)},a=function(m,p){var g;o.value.push({UUID:(g=m.upload)==null?void 0:g.uuid,CorrelationId:p.CorrelationId,Naam:p.Naam}),u(m)},c=function(m){u(m)},u=function(m){const p=m.name;if(!(p.endsWith(".png")||p.endsWith(".jpg")||p.endsWith(".jpeg")||p.endsWith(".gif"))){const g=m.previewElement.getElementsByClassName("icon-file"),v=m.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),v[0].classList.add("d-none")}},d=function(m){const p=o.value.findIndex(g=>{var v,C;return((v=g.upload)==null?void 0:v.uuid)===((C=m.upload)==null?void 0:C.uuid)});p!==-1&&o.value.splice(p,1)},h=f.computed(()=>t.tag??"form");return(m,p)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:f.withCtx(()=>[f.createElementVNode("div",gv,[vv,f.createTextVNode(" test "),f.createElementVNode("label",yv,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(t.buttonText),1)])]),f.createElementVNode("div",bv,[f.createVNode(f.unref(lt),f.normalizeProps(f.guardReactiveProps(r.value)),{default:f.withCtx(()=>[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(t.buttonText),1)]),_:1},16)])]),_:1})),f.createElementVNode("div",Ev,[f.createElementVNode("div",Cv,[f.createElementVNode("div",Sv,[wv,f.createVNode(f.unref(Rl),{"data-dz-thumbnail":"",class:"d-none"}),xv,f.createVNode(f.unref(lt),{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:1})]),Tv,f.createElementVNode("div",kv,[f.createVNode(f.unref(Bo))]),f.createElementVNode("div",Av,[f.createVNode(f.unref(xs)),Ov])])])],64))}});function Qe(n){this.content=n}Qe.prototype={constructor:Qe,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,o=r.find(n),i=r.content.slice();return o==-1?i.push(t||n,e):(i[o+1]=e,t&&(i[o]=t)),new Qe(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Qe(t)},addToStart:function(n,e){return new Qe([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new Qe(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),i=r.find(n);return o.splice(i==-1?o.length:i,0,e,t),new Qe(o)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=Qe.from(n),n.size?new Qe(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=Qe.from(n),n.size?new Qe(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=Qe.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};Qe.from=function(n){if(n instanceof Qe)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Qe(e)};function jf(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),i=e.child(r);if(o==i){t+=o.nodeSize;continue}if(!o.sameMarkup(i))return t;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)t++;return t}if(o.content.size||i.content.size){let s=jf(o.content,i.content,t+1);if(s!=null)return s}t+=o.nodeSize}}function Wf(n,e,t,r){for(let o=n.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:t,b:r};let s=n.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){t-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:t,b:r};if(s.isText&&s.text!=l.text){let c=0,u=Math.min(s.text.length,l.text.length);for(;c<u&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(s.content.size||l.content.size){let c=Wf(s.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class se{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,o=0,i){for(let s=0,l=0;l<t;s++){let a=this.content[s],c=l+a.nodeSize;if(c>e&&r(a,o+l,i||null,s)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,o+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",s=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(i+=l.text.slice(Math.max(e,a)-a,t-a),s=!r):l.isLeaf?(o?i+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(i+=l.type.spec.leafText(l)),s=!r):!s&&l.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new se(o,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],o=0;if(t>e)for(let i=0,s=0;s<t;i++){let l=this.content[i],a=s+l.nodeSize;a>e&&((s<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,t-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,t-s-1))),r.push(l),o+=l.nodeSize),s=a}return new se(r,o)}cutByIndex(e,t){return e==t?se.empty:e==0&&t==this.content.length?this:new se(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new se(o,i)}addToStart(e){return new se([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new se(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return jf(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Wf(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Qo(0,e);if(e==this.size)return Qo(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||t>0?Qo(r+1,s):Qo(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return se.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new se(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return se.empty;let t,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(t||(t=e.slice(0,o)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new se(t||e,r)}static from(e){if(!e)return se.empty;if(e instanceof se)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new se([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}se.empty=new se([],0);const ta={index:0,offset:0};function Qo(n,e){return ta.index=n,ta.offset=e,ta}function xi(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!xi(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!xi(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Be=class Ya{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&xi(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ya.none;if(e instanceof Ya)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};Be.none=[];class Ti extends Error{}class he{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Gf(this.content,e+this.openStart,t);return r&&new he(r,this.openStart,this.openEnd)}removeBetween(e,t){return new he(Kf(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return he.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new he(se.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)o++;return new he(e,r,o)}}he.empty=new he(se.empty,0,0);function Kf(n,e,t){let{index:r,offset:o}=n.findIndex(e),i=n.maybeChild(r),{index:s,offset:l}=n.findIndex(t);if(o==e||i.isText){if(l!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Kf(i.content,e-o-1,t-o-1)))}function Gf(n,e,t,r){let{index:o,offset:i}=n.findIndex(e),s=n.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Gf(s.content,e-i-1,t);return l&&n.replaceChild(o,s.copy(l))}function Mv(n,e,t){if(t.openStart>n.depth)throw new Ti("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Ti("Inconsistent open depths");return Yf(n,e,t,0)}function Yf(n,e,t,r){let o=n.index(r),i=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let s=Yf(n,e,t,r+1);return i.copy(i.content.replaceChild(o,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,l=s.content;return or(s,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=Nv(t,n);return or(i,Zf(n,s,l,e,r))}else return or(i,ki(n,e,r))}function Jf(n,e){if(!e.type.compatibleContent(n.type))throw new Ti("Cannot join "+e.type.name+" onto "+n.type.name)}function Ja(n,e,t){let r=n.node(t);return Jf(r,e.node(t)),r}function rr(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function ho(n,e,t,r){let o=(e||n).node(t),i=0,s=e?e.index(t):o.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(rr(n.nodeAfter,r),i++));for(let l=i;l<s;l++)rr(o.child(l),r);e&&e.depth==t&&e.textOffset&&rr(e.nodeBefore,r)}function or(n,e){return n.type.checkContent(e),n.copy(e)}function Zf(n,e,t,r,o){let i=n.depth>o&&Ja(n,e,o+1),s=r.depth>o&&Ja(t,r,o+1),l=[];return ho(null,n,o,l),i&&s&&e.index(o)==t.index(o)?(Jf(i,s),rr(or(i,Zf(n,e,t,r,o+1)),l)):(i&&rr(or(i,ki(n,e,o+1)),l),ho(e,t,o,l),s&&rr(or(s,ki(t,r,o+1)),l)),ho(r,null,o,l),new se(l)}function ki(n,e,t){let r=[];if(ho(null,n,t,r),n.depth>t){let o=Ja(n,e,t+1);rr(or(o,ki(n,e,t+1)),r)}return ho(e,null,t,r),new se(r)}function Nv(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)o=e.node(i).copy(se.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class xo{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Be.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let l=r;r=o,o=l}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Ai(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,i=t;for(let s=e;;){let{index:l,offset:a}=s.content.findIndex(i),c=i-a;if(r.push(s,l,o+a),!c||(s=s.child(l),s.isText))break;i=c-1,o+=a+1}return new xo(t,r,i)}static resolveCached(e,t){for(let o=0;o<na.length;o++){let i=na[o];if(i.pos==t&&i.doc==e)return i}let r=na[ra]=xo.resolve(e,t);return ra=(ra+1)%Iv,r}}let na=[],ra=0,Iv=12;class Ai{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Dv=Object.create(null);let ir=class Za{constructor(e,t,r,o=Be.none){this.type=e,this.attrs=t,this.marks=o,this.content=r||se.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,o=0){this.content.nodesBetween(e,t,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,o){return this.content.textBetween(e,t,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&xi(this.attrs,t||e.defaultAttrs||Dv)&&Be.sameSet(this.marks,r||Be.none)}copy(e=null){return e==this.content?this:new Za(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Za(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return he.empty;let o=this.resolve(e),i=this.resolve(t),s=r?0:o.sharedDepth(t),l=o.start(s),c=o.node(s).content.cut(o.pos-l,i.pos-l);return new he(c,o.depth-s,i.depth-s)}replace(e,t,r){return Mv(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return xo.resolveCached(this,e)}resolveNoCache(e){return xo.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Xf(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=se.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=Be.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!Be.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=se.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,r)}};ir.prototype.text=void 0;class Oi extends ir{constructor(e,t,r,o){if(super(e,t,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Xf(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Oi(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Oi(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Xf(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ur{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new _v(e,t);if(r.next==null)return ur.empty;let o=Qf(r);r.next&&r.err("Unexpected trailing text");let i=Vv(Fv(o));return zv(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let o=this;for(let i=t;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let o=[this];function i(s,l){let a=s.matchFragment(e,r);if(a&&(!t||a.validEnd))return se.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(d)==-1){o.push(d);let h=i(d,l.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let l=o;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!o.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&t(r.next[o].next)}return t(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
12
+ `)}}ur.empty=new ur(!0);class _v{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Qf(n){let e=[];do e.push(Lv(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Lv(n){let e=[];do e.push(Rv(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Rv(n){let e=$v(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Pv(n,e);else break;return e}function ru(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Pv(n,e){let t=ru(n),r=t;return n.eat(",")&&(n.next!="}"?r=ru(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Bv(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let i in t){let s=t[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function $v(n){if(n.eat("(")){let e=Qf(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Bv(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Fv(n){let e=[[]];return o(i(n,0),t()),e;function t(){return e.push([])-1}function r(s,l,a){let c={term:a,to:l};return e[s].push(c),c}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;o(c,l=t())}else if(s.type=="star"){let a=t();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=t();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let u=t();o(i(s.expr,a),u),a=u}if(s.max==-1)o(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let u=t();r(a,u),o(i(s.expr,a),u),a=u}return[r(a)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function qf(n,e){return e-n}function ou(n,e){let t=[];return r(e),t.sort(qf);function r(o){let i=n[o];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(o);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&t.indexOf(a)==-1&&r(a)}}}function Vv(n){let e=Object.create(null);return t(ou(n,0));function t(r){let o=[];r.forEach(s=>{n[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<o.length;u++)o[u][0]==l&&(c=o[u][1]);ou(n,a).forEach(u=>{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new ur(r.indexOf(n.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(qf);i.next.push({type:o[s][0],next:e[l.join(",")]||t(l)})}return i}}function zv(n,e){for(let t=0,r=[n];t<r.length;t++){let o=r[t],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function eh(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function th(n,e){let t=Object.create(null);for(let r in n){let o=e&&e[r];if(o===void 0){let i=n[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=o}return t}function nh(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new Hv(n[t]);return e}let iu=class rh{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=nh(r.attrs),this.defaultAttrs=eh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ur.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:th(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ir(this,this.computeAttrs(e),se.from(t),Be.setFrom(r))}createChecked(e=null,t,r){return t=se.from(t),this.checkContent(t),new ir(this,this.computeAttrs(e),t,Be.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=se.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let o=this.contentMatch.matchFragment(t),i=o&&o.fillBefore(se.empty,!0);return i?new ir(this,e,t.append(i),Be.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:Be.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,s)=>r[i]=new rh(i,t,s));let o=t.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Hv{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Os{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=nh(o.attrs),this.excluded=null;let i=eh(this.attrs);this.instance=i?new Be(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Be(this,th(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Os(i,o++,t,s)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Uv{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=Qe.from(e.nodes),t.marks=Qe.from(e.marks||{}),this.nodes=iu.compile(this.spec.nodes,this),this.marks=Os.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=ur.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?su(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:su(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof iu){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,o)}text(e,t){let r=this.nodes.text;return new Oi(r,r.defaultAttrs,e,Be.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return ir.fromJSON(this,e)}markFromJSON(e){return Be.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function su(n,e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],i=n.marks[o],s=i;if(i)t.push(i);else for(let l in n.marks){let a=n.marks[l];(o=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(o)>-1)&&t.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Hr{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,t={}){let r=new lu(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new lu(this,t,!0);return r.addAll(e,t.from,t.to),he.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(Kv(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,t,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(s.getAttrs){let a=s.getAttrs(t);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let t=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<t.length;s++){let l=t[s];if((l.priority==null?50:l.priority)<i)break}t.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=cu(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=cu(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Hr(e,Hr.schemaRules(e)))}}const oh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},jv={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ih={ol:!0,ul:!0},Mi=1,Ni=2,po=4;function au(n,e,t){return e!=null?(e?Mi:0)|(e==="full"?Ni:0):n&&n.whitespace=="pre"?Mi|Ni:t&~po}class qo{constructor(e,t,r,o,i,s,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=Be.none,this.stashMarks=[],this.match=s||(l&po?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(se.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Mi)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let t=se.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(se.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let o=r[t];(this.type?this.type.allowsMarkType(o.type):Yv(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!oh.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class lu{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let o=t.topNode,i,s=au(null,t.preserveWhitespace,0)|(r?po:0);o?i=new qo(o.type,o.attrs,Be.none,Be.none,!0,t.topMatch||o.type.contentMatch,s):r?i=new qo(null,null,Be.none,Be.none,!0,null,s):i=new qo(e.schema.topNodeType,null,Be.none,Be.none,!0,null,s),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let o=this.readStyles(Gv(r));if(!o)return;let[i,s]=o,l=this.top;for(let a=0;a<s.length;a++)this.removePendingMark(s[a],l);for(let a=0;a<i.length;a++)this.addPendingMark(i[a]);t();for(let a=0;a<i.length;a++)this.removePendingMark(i[a],l);for(let a=0;a<s.length;a++)this.addPendingMark(s[a])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Ni||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&Mi)r.options&Ni?t=t.replace(/\r\n?/g,`
13
+ `):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),o;ih.hasOwnProperty(r)&&this.parser.normalizeLists&&Wv(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,t));if(i?i.ignore:jv.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,l=this.top,a=this.needsBlock;if(oh.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
14
+ `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=Be.none,r=Be.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{s.clearMark(l)&&(r=l.addToSet(r))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),s.consuming===!1)i=s;else break}return[t,r]}addElementByRule(e,t,r){let o,i,s;t.node?(i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):o=this.enter(i,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(l)&&this.open--,s&&this.removePendingMark(s,l)}addAll(e,t,r){let o=t||0;for(let i=t?e.childNodes[t]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let t,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,r=i,!s.length)||i.solid)break}if(!t)return!1;this.sync(r);for(let o=0;o<t.length;o++)this.enterInner(t[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let o=0;o<e.marks.length;o++)(!t.type||t.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let o=this.findPlace(e.create(t));return o&&this.enterInner(e,t,!0,r),o}enterInner(e,t=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=au(e,o,i.options);i.options&po&&i.content.length==0&&(s|=po),this.nodes.push(new qo(e,t,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&t.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=Jv(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==t)break}}}function Wv(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&ih.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Kv(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Gv(n){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,t,r=[];for(;t=e.exec(n);)r.push(t[1],t[2].trim());return r}function cu(n){let e={};for(let t in n)e[t]=n[t];return e}function Yv(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function Jv(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class tn{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=oa(t).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let c=s.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let c=s.marks[a++],u=this.serializeMark(c,s.isInline,t);u&&(i.push([c,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=tn.renderSpec(oa(t),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,o)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&tn.renderSpec(oa(r),o(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let o=t[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,l=r?e.createElementNS(r,o):e.createElement(o),a=t[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let u in a)if(a[u]!=null){let d=u.indexOf(" ");d>0?l.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):l.setAttribute(u,a[u])}}for(let u=c;u<t.length;u++){let d=t[u];if(d===0){if(u<t.length-1||u>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:m}=tn.renderSpec(e,d,r);if(l.appendChild(h),m){if(s)throw new RangeError("Multiple content holes");s=m}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new tn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=uu(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return uu(e.marks)}}function uu(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function oa(n){return n.document||window.document}const sh=65535,ah=Math.pow(2,16);function Zv(n,e){return n+e*ah}function du(n){return n&sh}function Xv(n){return(n-(n&sh))/ah}const lh=1,ch=2,hi=4,uh=8;class Xa{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&uh)>0}get deletedBefore(){return(this.delInfo&(lh|hi))>0}get deletedAfter(){return(this.delInfo&(ch|hi))>0}get deletedAcross(){return(this.delInfo&hi)>0}}class St{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&St.empty)return St.empty}recover(e){let t=0,r=du(e);if(!this.inverted)for(let o=0;o<r;o++)t+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+t+Xv(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?o:0);if(a>e)break;let c=this.ranges[l+i],u=this.ranges[l+s],d=a+c;if(e<=d){let h=c?e==a?-1:e==d?1:t:t,m=a+o+(h<0?0:u);if(r)return m;let p=e==(t<0?a:d)?null:Zv(l/3,e-a),g=e==a?ch:e==d?lh:hi;return(t<0?e!=a:e!=d)&&(g|=uh),new Xa(m,g,p)}o+=u-c}return r?e+o:new Xa(e+o,0,null)}touches(e,t){let r=0,o=du(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+i],u=a+c;if(e<=u&&l==o*3)return!0;r+=this.ranges[l+s]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),c=this.ranges[o+t],u=this.ranges[o+r];e(l,l+c,a,a+u),i+=u-c}}invert(){return new St(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?St.empty:new St(e<0?[0,-e,0]:[0,0,e])}}St.empty=new St([]);class mo{constructor(e=[],t,r=0,o=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=o}slice(e=0,t=this.maps.length){return new mo(this.maps,this.mirror,e,t)}copy(){return new mo(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),t!=null&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let o=e.getMirror(t);this.appendMap(e.maps[t],o!=null&&o<t?r+o:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),o!=null&&o>t?r-o-1:void 0)}}invert(){let e=new mo;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this.maps[a].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Xa(e,o,null)}}const ia=Object.create(null);class ot{getMap(){return St.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=ia[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in ia)throw new RangeError("Duplicate use of step JSON ID "+e);return ia[e]=t,t.prototype.jsonID=e,t}}class We{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new We(e,null)}static fail(e){return new We(null,e)}static fromReplace(e,t,r,o){try{return We.ok(e.replace(t,r,o))}catch(i){if(i instanceof Ti)return We.fail(i.message);throw i}}}function Ul(n,e,t){let r=[];for(let o=0;o<n.childCount;o++){let i=n.child(o);i.content.size&&(i=i.copy(Ul(i.content,e,i))),i.isInline&&(i=e(i,t,o)),r.push(i)}return se.fromArray(r)}class In extends ot{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new he(Ul(t.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),t.openStart,t.openEnd);return We.fromReplace(e,this.from,this.to,i)}invert(){return new nn(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new In(t.pos,r.pos,this.mark)}merge(e){return e instanceof In&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new In(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new In(t.from,t.to,e.markFromJSON(t.mark))}}ot.jsonID("addMark",In);class nn extends ot{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new he(Ul(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return We.fromReplace(e,this.from,this.to,r)}invert(){return new In(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new nn(t.pos,r.pos,this.mark)}merge(e){return e instanceof nn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new nn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new nn(t.from,t.to,e.markFromJSON(t.mark))}}ot.jsonID("removeMark",nn);class Dn extends ot{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return We.fromReplace(e,this.pos,this.pos+1,new he(se.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let o=0;o<t.marks.length;o++)if(!t.marks[o].isInSet(r))return new Dn(this.pos,t.marks[o]);return new Dn(this.pos,this.mark)}}return new Ur(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Dn(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Dn(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("addNodeMark",Dn);class Ur extends ot{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return We.fromReplace(e,this.pos,this.pos+1,new he(se.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Dn(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ur(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ur(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("removeNodeMark",Ur);class qe extends ot{constructor(e,t,r,o=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=o}apply(e){return this.structure&&Qa(e,this.from,this.to)?We.fail("Structure replace would overwrite content"):We.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new St([this.from,this.to-this.from,this.slice.size])}invert(e){return new qe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new qe(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof qe)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?he.empty:new he(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new qe(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?he.empty:new he(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new qe(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new qe(t.from,t.to,he.fromJSON(e,t.slice),!!t.structure)}}ot.jsonID("replace",qe);class Je extends ot{constructor(e,t,r,o,i,s,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Qa(e,this.from,this.gapFrom)||Qa(e,this.gapTo,this.to)))return We.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return We.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?We.fromReplace(e,this.from,this.to,r):We.fail("Content does not fit in gap")}getMap(){return new St([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Je(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||i>r.pos?null:new Je(t.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Je(t.from,t.to,t.gapFrom,t.gapTo,he.fromJSON(e,t.slice),t.insert,!!t.structure)}}ot.jsonID("replaceAround",Je);function Qa(n,e,t){let r=n.resolve(e),o=t-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function Qv(n,e,t,r){let o=[],i=[],s,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let h=Math.max(c,e),m=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(s&&s.to==h&&s.mark.eq(d[g])?s.to=m:o.push(s=new nn(h,m,d[g])));l&&l.to==h?l.to=m:i.push(l=new In(h,m,r))}}),o.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function qv(n,e,t,r){let o=[],i=0;n.doc.nodesBetween(e,t,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Os){let c=s.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let c=Math.min(l+s.nodeSize,t);for(let u=0;u<a.length;u++){let d=a[u],h;for(let m=0;m<o.length;m++){let p=o[m];p.step==i-1&&d.eq(o[m].style)&&(h=p)}h?(h.to=c,h.step=i):o.push({style:d,from:Math.max(l,e),to:c,step:i})}}}),o.forEach(s=>n.step(new nn(s.from,s.to,s.style)))}function ey(n,e,t,r=t.contentMatch){let o=n.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l<o.childCount;l++){let a=o.child(l),c=s+a.nodeSize,u=r.matchType(a.type);if(!u)i.push(new qe(s,c,he.empty));else{r=u;for(let d=0;d<a.marks.length;d++)t.allowsMarkType(a.marks[d].type)||n.step(new nn(s,c,a.marks[d]));if(a.isText&&!t.spec.code){let d,h=/\r?\n|\r/g,m;for(;d=h.exec(a.text);)m||(m=new he(se.from(t.schema.text(" ",t.allowedMarks(a.marks))),0,0)),i.push(new qe(s+d.index,s+d.index+d[0].length,m))}}s=c}if(!r.validEnd){let l=r.fillBefore(se.empty,!0);n.replace(s,s,new he(l,0,0))}for(let l=i.length-1;l>=0;l--)n.step(i[l])}function ty(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function eo(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let o=n.$from.node(r),i=n.$from.index(r),s=n.$to.indexAfter(r);if(r<n.depth&&o.canReplace(i,s,t))return r;if(r==0||o.type.spec.isolating||!ty(o,i,s))break}return null}function ny(n,e,t){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),l=o.after(i+1),a=s,c=l,u=se.empty,d=0;for(let p=i,g=!1;p>t;p--)g||r.index(p)>0?(g=!0,u=se.from(r.node(p).copy(u)),d++):a--;let h=se.empty,m=0;for(let p=i,g=!1;p>t;p--)g||o.after(p+1)<o.end(p)?(g=!0,h=se.from(o.node(p).copy(h)),m++):c++;n.step(new Je(a,c,s,l,new he(u.append(h),d,m),u.size-d,!0))}function jl(n,e,t=null,r=n){let o=ry(n,e),i=o&&oy(r,e);return i?o.map(fu).concat({type:e,attrs:t}).concat(i.map(fu)):null}function fu(n){return{type:n,attrs:null}}function ry(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return t.canReplaceWith(r,o,s)?i:null}function oy(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;a&&c<o;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:s}function iy(n,e,t){let r=se.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let l=t[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=se.from(t[s].type.create(t[s].attrs,r))}let o=e.start,i=e.end;n.step(new Je(o,i,o,i,new he(r,0,0),t.length,!0))}function sy(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&ay(n.doc,n.mapping.slice(i).map(l),r)){n.clearIncompatible(n.mapping.slice(i).map(l,1),r);let a=n.mapping.slice(i),c=a.map(l,1),u=a.map(l+s.nodeSize,1);return n.step(new Je(c,u,c+1,u-1,new he(se.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function ay(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function ly(n,e,t,r,o){let i=n.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let s=t.create(r,null,o||i.marks);if(i.isLeaf)return n.replaceWith(e,e+i.nodeSize,s);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Je(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new he(se.from(s),0,0),1,!0))}function $r(n,e,t=1,r){let o=n.resolve(e),i=o.depth-t,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=t-2;c>i;c--,u--){let d=o.node(c),h=o.index(c);if(d.type.spec.isolating)return!1;let m=d.content.cutByIndex(h,d.childCount),p=r&&r[u+1];p&&(m=m.replaceChild(0,p.type.create(p.attrs)));let g=r&&r[u]||d;if(!d.canReplace(h+1,d.childCount)||!g.type.validContent(m))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function cy(n,e,t=1,r){let o=n.doc.resolve(e),i=se.empty,s=se.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){i=se.from(o.node(l).copy(i));let u=r&&r[c];s=se.from(u?u.type.create(u.attrs,s):o.node(l).copy(s))}n.step(new qe(e,e,new he(i.append(s),t,t),!0))}function zn(n,e){let t=n.resolve(e),r=t.index();return dh(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function dh(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Ms(n,e,t=-1){let r=n.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):t>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&dh(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function uy(n,e,t){let r=new qe(e-t,e+t,he.empty,!0);n.step(r)}function dy(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,t))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,t))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function fy(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let i=0;i<t.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),c=r.node(s),u=!1;if(i==1)u=c.canReplace(a,a,o);else{let d=c.contentMatchAt(a).findWrapping(o.firstChild.type);u=d&&c.canReplaceWith(a,a,d[0])}if(u)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function Wl(n,e,t=e,r=he.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),i=n.resolve(t);return fh(o,i,r)?new qe(e,t,r):new hy(o,i,r).fit()}function fh(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class hy{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=se.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=se.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new he(i,s,l);return e>-1?new Je(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new qe(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=sa(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,d=null;if(t==1&&(s?c.matchType(s.type)||(d=c.fillBefore(se.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:d};if(t==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=sa(e,t);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new he(e,t+1,Math.max(r,o.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=sa(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new he(lo(e,t-1,1),t-1,i?t-1:r)}else this.unplaced=new he(lo(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-e,c=0,u=[],{match:d,type:h}=this.frontier[t];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));d=d.matchFragment(o)}let m=l.size+e-(s.content.size-s.openEnd);for(;c<l.childCount;){let g=l.child(c),v=d.matchType(g.type);if(!v)break;c++,(c>1||a==0||g.content.size)&&(d=v,u.push(hh(g.mark(h.allowedMarks(g.marks)),c==1?a:0,c==l.childCount?m:-1)))}let p=c==l.childCount;p||(m=-1),this.placed=co(this.placed,t,se.from(u)),this.frontier[t].match=d,p&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=l;g<m;g++){let C=v.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),v=C.content}this.unplaced=p?e==0?he.empty:new he(lo(s.content,e-1,1),e-1,m<0?s.openEnd:e-1):new he(lo(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!aa(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:o}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=aa(e,t,o,r,i);if(s){for(let l=t-1;l>=0;l--){let{match:a,type:c}=this.frontier[l],u=aa(e,l,c,a,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=co(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,t=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=co(this.placed,this.depth,se.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(se.empty,!0);t.childCount&&(this.placed=co(this.placed,this.frontier.length,t))}}function lo(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(lo(n.firstChild.content,e-1,t)))}function co(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(co(n.lastChild.content,e-1,t)))}function sa(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function hh(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,hh(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(se.empty,!0)))),n.copy(r)}function aa(n,e,t,r,o){let i=n.node(e),s=o?n.indexAfter(e):n.index(e);if(s==i.childCount&&!t.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!py(t,i.content,s)?l:null}function py(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function my(n){return n.spec.defining||n.spec.definingForContent}function gy(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),i=n.doc.resolve(t);if(fh(o,i,r))return n.step(new qe(e,t,r));let s=mh(o,n.doc.resolve(t));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.unshift(l);for(let h=o.depth,m=o.pos-1;h>0;h--,m--){let p=o.node(h).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(h)>-1?l=h:o.before(h)==m&&s.splice(1,0,-h)}let a=s.indexOf(l),c=[],u=r.openStart;for(let h=r.content,m=0;;m++){let p=h.firstChild;if(c.push(p),m==r.openStart)break;h=p.content}for(let h=u-1;h>=0;h--){let m=c[h],p=my(m.type);if(p&&!m.sameMarkup(o.node(Math.abs(l)-1)))u=h;else if(p||!m.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let m=(h+u+1)%(r.openStart+1),p=c[m];if(p)for(let g=0;g<s.length;g++){let v=s[(g+a)%s.length],C=!0;v<0&&(C=!1,v=-v);let S=o.node(v-1),x=o.index(v-1);if(S.canReplaceWith(x,x,p.type,p.marks))return n.replace(o.before(v),C?i.after(v):t,new he(ph(r.content,0,r.openStart,m),m,r.openEnd))}}let d=n.steps.length;for(let h=s.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>d));h--){let m=s[h];m<0||(e=o.before(m),t=i.after(m))}}function ph(n,e,t,r,o){if(e<t){let i=n.firstChild;n=n.replaceChild(0,i.copy(ph(i.content,e+1,t,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(n).append(n);n=s.append(i.matchFragment(s).fillBefore(se.empty,!0))}return n}function vy(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=dy(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new he(se.from(r),0,0))}function yy(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),i=mh(r,o);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.length-1;if(a&&l==0||r.node(l).type.contentMatch.validEnd)return n.delete(r.start(l),o.end(l));if(l>0&&(a||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return n.delete(r.before(l),o.after(l))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&t>r.end(s)&&o.end(s)-t!=o.depth-s)return n.delete(r.before(s),t);n.delete(e,t)}function mh(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let o=r;o>=0;o--){let i=n.start(o);if(i<n.pos-(n.depth-o)||e.end(o)>e.pos+(e.depth-o)||n.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&t.push(o)}return t}class Fr extends ot{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at attribute step's position");let r=Object.create(null);for(let i in t.attrs)r[i]=t.attrs[i];r[this.attr]=this.value;let o=t.type.create(r,null,t.marks);return We.fromReplace(e,this.pos,this.pos+1,new he(se.from(o),0,t.isLeaf?0:1))}getMap(){return St.empty}invert(e){return new Fr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Fr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Fr(t.pos,t.attr,t.value)}}ot.jsonID("attr",Fr);class To extends ot{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let o in e.attrs)t[o]=e.attrs[o];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return We.ok(r)}getMap(){return St.empty}invert(e){return new To(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new To(t.attr,t.value)}}ot.jsonID("docAttr",To);let jr=class extends Error{};jr=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};jr.prototype=Object.create(Error.prototype);jr.prototype.constructor=jr;jr.prototype.name="TransformError";class gh{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new mo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new jr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=he.empty){let o=Wl(this.doc,e,t,r);return o&&this.step(o),this}replaceWith(e,t,r){return this.replace(e,t,new he(se.from(r),0,0))}delete(e,t){return this.replace(e,t,he.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return gy(this,e,t,r),this}replaceRangeWith(e,t,r){return vy(this,e,t,r),this}deleteRange(e,t){return yy(this,e,t),this}lift(e,t){return ny(this,e,t),this}join(e,t=1){return uy(this,e,t),this}wrap(e,t){return iy(this,e,t),this}setBlockType(e,t=e,r,o=null){return sy(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return ly(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Fr(e,t,r)),this}setDocAttribute(e,t){return this.step(new To(e,t)),this}addNodeMark(e,t){return this.step(new Dn(e,t)),this}removeNodeMark(e,t){if(!(t instanceof Be)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new Ur(e,t)),this}split(e,t=1,r){return cy(this,e,t,r),this}addMark(e,t,r){return Qv(this,e,t,r),this}removeMark(e,t,r){return qv(this,e,t,r),this}clearIncompatible(e,t,r){return ey(this,e,t,r),this}}const la=Object.create(null);class _e{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new by(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=he.empty){let r=t.content.lastChild,o=null;for(let l=0;l<t.openEnd;l++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(c.pos),l?he.empty:t),l==0&&mu(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:l}=o[i],a=e.mapping.slice(r),c=a.map(s.pos),u=a.map(l.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),mu(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let o=e.parent.inlineContent?new Le(e):Ar(e.node(0),e.parent,e.pos,e.index(),t,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=t<0?Ar(e.node(0),e.node(i),e.before(i+1),e.index(i),t,r):Ar(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,r);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ht(e.node(0))}static atStart(e){return Ar(e,e,0,0,1)||new Ht(e)}static atEnd(e){return Ar(e,e,e.content.size,e.childCount,-1)||new Ht(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=la[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in la)throw new RangeError("Duplicate use of selection JSON ID "+e);return la[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Le.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class by{constructor(e,t){this.$from=e,this.$to=t}}let hu=!1;function pu(n){!hu&&!n.parent.inlineContent&&(hu=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Le extends _e{constructor(e,t=e){pu(e),pu(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return _e.near(r);let o=e.resolve(t.map(this.anchor));return new Le(o.parent.inlineContent?o:r,r)}replace(e,t=he.empty){if(super.replace(e,t),t==he.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Le&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ns(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Le(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let o=e.resolve(t);return new this(o,r==t?o:e.resolve(r))}static between(e,t,r){let o=e.pos-t.pos;if((!r||o)&&(r=o>=0?1:-1),!t.parent.inlineContent){let i=_e.findFrom(t,r,!0)||_e.findFrom(t,-r,!0);if(i)t=i.$head;else return _e.near(t,r)}return e.parent.inlineContent||(o==0?e=t:(e=(_e.findFrom(e,-r,!0)||_e.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=o<0&&(e=t))),new Le(e,t)}}_e.jsonID("text",Le);class Ns{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Ns(e.map(this.anchor),e.map(this.head))}resolve(e){return Le.between(e.resolve(this.anchor),e.resolve(this.head))}}class Se extends _e{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:o}=t.mapResult(this.anchor),i=e.resolve(o);return r?_e.near(i):new Se(i)}content(){return new he(se.from(this.node),0,0)}eq(e){return e instanceof Se&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Kl(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Se(e.resolve(t.anchor))}static create(e,t){return new Se(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Se.prototype.visible=!1;_e.jsonID("node",Se);class Kl{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Ns(r,r):new Kl(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&Se.isSelectable(r)?new Se(t):_e.near(t)}}class Ht extends _e{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=he.empty){if(t==he.empty){e.delete(0,e.doc.content.size);let r=_e.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ht(e)}map(e){return new Ht(e)}eq(e){return e instanceof Ht}getBookmark(){return Ey}}_e.jsonID("all",Ht);const Ey={map(){return this},resolve(n){return new Ht(n)}};function Ar(n,e,t,r,o,i=!1){if(e.inlineContent)return Le.create(n,t);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&Se.isSelectable(l))return Se.create(n,t-(o<0?l.nodeSize:0))}else{let a=Ar(n,l,t+o,o<0?l.childCount:0,o,i);if(a)return a}t+=l.nodeSize*o}return null}function mu(n,e,t){let r=n.steps.length-1;if(r<e)return;let o=n.steps[r];if(!(o instanceof qe||o instanceof Je))return;let i=n.mapping.maps[r],s;i.forEach((l,a,c,u)=>{s==null&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),t))}const gu=1,ei=2,vu=4;class Cy extends gh{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|gu)&~ei,this.storedMarks=null,this}get selectionSet(){return(this.updated&gu)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ei,this}ensureMarks(e){return Be.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&ei)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~ei,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Be.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let o=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(t);i=r==t?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,i)),this.selection.empty||this.setSelection(_e.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=vu,this}get scrolledIntoView(){return(this.updated&vu)>0}}function yu(n,e){return!e||!n?n:n.bind(e)}class uo{constructor(e,t,r){this.name=e,this.init=yu(t.init,r),this.apply=yu(t.apply,r)}}const Sy=[new uo("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new uo("selection",{init(n,e){return n.selection||_e.atStart(e.doc)},apply(n){return n.selection}}),new uo("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new uo("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class ca{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Sy.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new uo(r.key,r.spec.state,r))})}}class Rr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),o=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let a=o?o[s].n:0,c=o?o[s].state:this,u=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let d=0;d<this.config.plugins.length;d++)o.push(d<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Rr(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Cy(this)}static create(e){let t=new ca(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Rr(t);for(let o=0;o<t.fields.length;o++)r[t.fields[o].name]=t.fields[o].init(e,r);return r}reconfigure(e){let t=new ca(this.schema,e.plugins),r=t.fields,o=new Rr(t);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,o)}return o}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new ca(e.schema,e.plugins),i=new Rr(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=ir.fromJSON(e.schema,t.doc);else if(s.name=="selection")i.selection=_e.fromJSON(i.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],c=a.spec.state;if(a.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[s.name]=c.fromJSON.call(a,e,t[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function vh(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=vh(o,e,{})),t[r]=o}return t}class Et{constructor(e){this.spec=e,this.props={},e.props&&vh(e.props,this,this.props),this.key=e.key?e.key.key:yh("plugin")}getState(e){return e[this.key]}}const ua=Object.create(null);function yh(n){return n in ua?n+"$"+ ++ua[n]:(ua[n]=0,n+"$")}class Kt{constructor(e="key"){this.key=yh(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ct=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},ko=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let bu=null;const hn=function(n,e,t){let r=bu||(bu=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},dr=function(n,e,t,r){return t&&(Eu(n,e,t,r,-1)||Eu(n,e,t,r,1))},wy=/^(img|br|input|textarea|hr)$/i;function Eu(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:en(n))){let i=n.parentNode;if(!i||i.nodeType!=1||Gl(n)||wy.test(n.nodeName)||n.contentEditable=="false")return!1;e=ct(n)+(o<0?0:1),n=i}else if(n.nodeType==1){if(n=n.childNodes[e+(o<0?-1:0)],n.contentEditable=="false")return!1;e=o<0?en(n):0}else return!1}}function en(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function xy(n,e,t){for(let r=e==0,o=e==en(n);r||o;){if(n==t)return!0;let i=ct(n);if(n=n.parentNode,!n)return!1;r=r&&i==0,o=o&&i==en(n)}}function Gl(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const Is=function(n){return n.focusNode&&dr(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Zn(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function Ty(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ky(n,e,t){if(n.caretPositionFromPoint)try{let r=n.caretPositionFromPoint(e,t);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(n.caretRangeFromPoint){let r=n.caretRangeFromPoint(e,t);if(r)return{node:r.startContainer,offset:r.startOffset}}}const on=typeof navigator<"u"?navigator:null,Cu=typeof document<"u"?document:null,Hn=on&&on.userAgent||"",qa=/Edge\/(\d+)/.exec(Hn),bh=/MSIE \d/.exec(Hn),el=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hn),bt=!!(bh||el||qa),Ln=bh?document.documentMode:el?+el[1]:qa?+qa[1]:0,jt=!bt&&/gecko\/(\d+)/i.test(Hn);jt&&+(/Firefox\/(\d+)/.exec(Hn)||[0,0])[1];const tl=!bt&&/Chrome\/(\d+)/.exec(Hn),rt=!!tl,Ay=tl?+tl[1]:0,ft=!bt&&!!on&&/Apple Computer/.test(on.vendor),Wr=ft&&(/Mobile\/\w+/.test(Hn)||!!on&&on.maxTouchPoints>2),Lt=Wr||(on?/Mac/.test(on.platform):!1),Oy=on?/Win/.test(on.platform):!1,zt=/Android \d/.test(Hn),zo=!!Cu&&"webkitFontSmoothing"in Cu.documentElement.style,My=zo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Ny(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function dn(n,e){return typeof n=="number"?n:n[e]}function Iy(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function Su(n,e,t){let r=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,i=n.dom.ownerDocument;for(let s=t||n.dom;s;s=ko(s)){if(s.nodeType!=1)continue;let l=s,a=l==i.body,c=a?Ny(i):Iy(l),u=0,d=0;if(e.top<c.top+dn(r,"top")?d=-(c.top-e.top+dn(o,"top")):e.bottom>c.bottom-dn(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+dn(o,"top")-c.top:e.bottom-c.bottom+dn(o,"bottom")),e.left<c.left+dn(r,"left")?u=-(c.left-e.left+dn(o,"left")):e.right>c.right-dn(r,"right")&&(u=e.right-c.right+dn(o,"right")),u||d)if(a)i.defaultView.scrollBy(u,d);else{let h=l.scrollLeft,m=l.scrollTop;d&&(l.scrollTop+=d),u&&(l.scrollLeft+=u);let p=l.scrollLeft-h,g=l.scrollTop-m;e={left:e.left-p,top:e.top-g,right:e.right-p,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function Dy(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=n.root.elementFromPoint(i,s);if(!l||l==n.dom||!n.dom.contains(l))continue;let a=l.getBoundingClientRect();if(a.top>=t-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:Eh(n.dom)}}function Eh(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=ko(r));return e}function _y({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;Ch(t,r==0?0:r-e)}function Ch(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:o,left:i}=n[t];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Cr=null;function Ly(n){if(n.setActive)return n.setActive();if(Cr)return n.focus(Cr);let e=Eh(n);n.focus(Cr==null?{get preventScroll(){return Cr={preventScroll:!0},!0}}:void 0),Cr||(Cr=!1,Ch(e,0))}function Sh(n,e){let t,r=2e8,o,i=0,s=e.top,l=e.top,a,c;for(let u=n.firstChild,d=0;u;u=u.nextSibling,d++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=hn(u).getClientRects();else continue;for(let m=0;m<h.length;m++){let p=h[m];if(p.top<=s&&p.bottom>=l){s=Math.max(p.bottom,s),l=Math.min(p.top,l);let g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<r){t=u,r=g,o=g&&t.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(i=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!a&&p.left<=e.left&&p.right>=e.left&&(a=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!t&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=d+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?Ry(t,o):!t||r&&t.nodeType==1?{node:n,offset:i}:Sh(t,o)}function Ry(n,e){let t=n.nodeValue.length,r=document.createRange();for(let o=0;o<t;o++){r.setEnd(n,o+1),r.setStart(n,o);let i=kn(r,1);if(i.top!=i.bottom&&Yl(e,i))return{node:n,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:n,offset:0}}function Yl(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function Py(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function By(n,e,t){let{node:r,offset:o}=Sh(e,t),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(r,o,i)}function $y(n,e,t,r){let o=-1;for(let i=e,s=!1;i!=n.dom;){let l=n.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!0,a.left>r.left||a.top>r.top?o=l.posBefore:(a.right<r.left||a.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(a.top+a.bottom)/2:r.left<(a.left+a.right)/2)?l.posBefore:l.posAfter}i=l.dom.parentNode}return o>-1?o:n.docView.posFromDOM(e,t,-1)}function wh(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),i=o;;){let s=n.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let a=0;a<l.length;a++){let c=l[a];if(Yl(e,c))return wh(s,e,c)}}if((i=(i+1)%r)==o)break}return n}function Fy(n,e){let t=n.dom.ownerDocument,r,o=0,i=ky(t,e.left,e.top);i&&({node:r,offset:o}=i);let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),l;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=n.dom.getBoundingClientRect();if(!Yl(e,c)||(s=wh(n.dom,e,c),!s))return null}if(ft)for(let c=s;r&&c;c=ko(c))c.draggable&&(r=void 0);if(s=Py(s,e),r){if(jt&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&o++}let c;zo&&o&&r.nodeType==1&&(c=r.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&o--,r==n.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=n.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=$y(n,r,o,e))}l==null&&(l=By(n,s,e));let a=n.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function wu(n){return n.top<n.bottom||n.left<n.right}function kn(n,e){let t=n.getClientRects();if(t.length){let r=t[e<0?0:t.length-1];if(wu(r))return r}return Array.prototype.find.call(t,wu)||n.getBoundingClientRect()}const Vy=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function xh(n,e,t){let{node:r,offset:o,atom:i}=n.docView.domFromPos(e,t<0?-1:1),s=zo||jt;if(r.nodeType==3)if(s&&(Vy.test(r.nodeValue)||(t<0?!o:o==r.nodeValue.length))){let a=kn(hn(r,o,o),t);if(jt&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let c=kn(hn(r,o-1,o-1),-1);if(c.top==a.top){let u=kn(hn(r,o,o+1),-1);if(u.top!=a.top)return io(u,u.left<c.left)}}return a}else{let a=o,c=o,u=t<0?1:-1;return t<0&&!o?(c++,u=-1):t>=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,io(kn(hn(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(t<0||o==en(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return da(a.getBoundingClientRect(),!1)}if(i==null&&o<en(r)){let a=r.childNodes[o];if(a.nodeType==1)return da(a.getBoundingClientRect(),!0)}return da(r.getBoundingClientRect(),t>=0)}if(i==null&&o&&(t<0||o==en(r))){let a=r.childNodes[o-1],c=a.nodeType==3?hn(a,en(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return io(kn(c,1),!1)}if(i==null&&o<en(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let c=a?a.nodeType==3?hn(a,0,s?0:1):a.nodeType==1?a:null:null;if(c)return io(kn(c,-1),!0)}return io(kn(r.nodeType==3?hn(r):r,-t),t>=0)}function io(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function da(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function Th(n,e,t){let r=n.state,o=n.root.activeElement;r!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),o!=n.dom&&o&&o.focus()}}function zy(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return Th(n,e,()=>{let{node:i}=n.docView.domFromPos(o.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=xh(n,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=hn(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<a.length;c++){let u=a[c];if(u.bottom>u.top+1&&(t=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const Hy=/[\u0590-\u08ac]/;function Uy(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=n.domSelection();return!Hy.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:s:Th(n,e,()=>{let{focusNode:a,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",t,"character");let m=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:p,focusOffset:g}=n.domSelectionRange(),v=p&&!m.contains(p.nodeType==1?p:p.parentNode)||a==p&&c==g;try{l.collapse(u,d),a&&(a!=u||c!=d)&&l.extend&&l.extend(a,c)}catch{}return h!=null&&(l.caretBidiLevel=h),v})}let xu=null,Tu=null,ku=!1;function jy(n,e,t){return xu==e&&Tu==t?ku:(xu=e,Tu=t,ku=t=="up"||t=="down"?zy(n,e,t):Uy(n,e,t))}const Pt=0,Au=1,Qn=2,sn=3;class Ho{constructor(e,t,r,o){this.parent=e,this.children=t,this.dom=r,this.contentDOM=o,this.dirty=Pt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let o=this.children[t];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=t>ct(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!t||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let o=this.children[t],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.size;if(l>e||s instanceof Ah){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof kh&&i.side>=0;r--);if(t<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&t&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?ct(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?ct(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let s=r,l=0;;l++){let a=this.children[l],c=s+a.size;if(o==-1&&e<=c){let u=s+a.border;if(e>=u&&t<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=s;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=ct(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(c>t||l==this.children.length-1)){t=c;for(let u=l+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=ct(d.dom);break}t+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:t,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,o=!1){let i=Math.min(e,t),s=Math.max(e,t);for(let h=0,m=0;h<this.children.length;h++){let p=this.children[h],g=m+p.size;if(i>m&&s<g)return p.setSelection(e-m-p.border,t-m-p.border,r,o);m=g}let l=this.domFromPos(e,e?-1:1),a=t==e?l:this.domFromPos(t,t?-1:1),c=r.getSelection(),u=!1;if((jt||ft)&&e==t){let{node:h,offset:m}=l;if(h.nodeType==3){if(u=!!(m&&h.nodeValue[m-1]==`
15
+ `),u&&m==h.nodeValue.length)for(let p=h,g;p;p=p.parentNode){if(g=p.nextSibling){g.nodeName=="BR"&&(l=a={node:g.parentNode,offset:ct(g)+1});break}let v=p.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let p=h.childNodes[m-1];u=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(jt&&c.focusNode&&c.focusNode!=a.node&&c.focusNode.nodeType==1){let h=c.focusNode.childNodes[c.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&ft)&&dr(l.node,l.offset,c.anchorNode,c.anchorOffset)&&dr(a.node,a.offset,c.focusNode,c.focusOffset))return;let d=!1;if((c.extend||e==t)&&!u){c.collapse(l.node,l.offset);try{e!=t&&c.extend(a.node,a.offset),d=!0}catch{}}if(!d){if(e>t){let m=l;l=a,a=m}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&t>=r:e<s&&t>r){let l=r+i.border,a=s-i.border;if(e>=l&&t<=a){this.dirty=e==r||t==s?Qn:Au,e==l&&t==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=sn:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Qn:sn}r=s}this.dirty=Qn}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?Qn:Au;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class kh extends Ho{constructor(e,t,r,o){let i,s=t.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Pt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Wy extends Ho{constructor(e,t,r,o){super(e,[],t,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class fr extends Ho{constructor(e,t,r,o){super(e,[],r,o),this.mark=t}static create(e,t,r,o){let i=o.nodeViews[t.type.name],s=i&&i(t,o,r);return(!s||!s.dom)&&(s=tn.renderSpec(document,t.type.spec.toDOM(t,r))),new fr(e,t,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&sn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=sn&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Pt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Pt}}slice(e,t,r){let o=fr.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;t<s&&(i=ol(i,t,s,r)),e>0&&(i=ol(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}}class Rn extends Ho{constructor(e,t,r,o,i,s,l,a,c){super(e,[],i,s),this.node=t,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,t,r,o,i,s){let l=i.nodeViews[t.type.name],a,c=l&&l(t,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=tn.renderSpec(document,t.type.spec.toDOM(t)));!d&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Nh(u,r,t),c?a=new Ky(e,t,r,o,u,d||null,h,c,i,s+1):t.isText?new Ds(e,t,r,o,u,h,i):new Rn(e,t,r,o,u,d||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>se.empty)}return e}matchesNode(e,t,r){return this.dirty==Pt&&e.eq(this.node)&&rl(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,o=t,i=e.composing?this.localCompositionInfo(e,t):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new Yy(this,s&&s.node,e);Xy(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!d&&a.syncToMarks(u==this.node.childCount?Be.none:this.node.child(u).marks,r,e),a.placeWidget(c,e,o)},(c,u,d,h)=>{a.syncToMarks(c.marks,r,e);let m;a.findNodeMatch(c,u,d,h)||l&&e.state.selection.from>o&&e.state.selection.to<o+c.nodeSize&&(m=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(c,u,d,m,e)||a.updateNextNode(c,u,d,e,h,o)||a.addNode(c,u,d,e,o),o+=c.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Qn)&&(s&&this.protectLocalComposition(e,s),Oh(this.contentDOM,this.children,e),Wr&&Qy(this.dom))}localCompositionInfo(e,t){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Le)||r<t||o>t+this.node.content.size)return null;let i=e.domSelectionRange(),s=qy(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,a=e2(this.node.content,l,r-t,o-t);return a<0?null:{node:s,pos:a,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new Wy(this,i,t,o);e.input.compositionNodes.push(s),this.children=ol(this.children,r,r+o.length,e,s)}update(e,t,r,o){return this.dirty==sn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,r,o),!0)}updateInner(e,t,r,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=Pt}updateOuterDeco(e){if(rl(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Mh(this.dom,this.nodeDOM,nl(this.outerDeco,this.node,t),nl(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Ou(n,e,t,r,o){Nh(r,e,n);let i=new Rn(void 0,n,e,t,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Ds extends Rn{constructor(e,t,r,o,i,s,l){super(e,t,r,o,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,o){return this.dirty==sn||this.dirty!=Pt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Pt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=Pt,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,r){let o=this.node.cut(e,t),i=document.createTextNode(o.text);return new Ds(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=sn)}get domAtom(){return!1}}class Ah extends Ho{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Pt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Ky extends Rn{constructor(e,t,r,o,i,s,l,a,c,u){super(e,t,r,o,i,s,l,c,u),this.spec=a}update(e,t,r,o){if(this.dirty==sn)return!1;if(this.spec.update){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,o){this.spec.setSelection?this.spec.setSelection(e,t,r):super.setSelection(e,t,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Oh(n,e,t){let r=n.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==n){for(;l!=r;)r=Mu(r),o=!0;r=r.nextSibling}else o=!0,n.insertBefore(l,r);if(s instanceof fr){let a=r?r.previousSibling:n.lastChild;Oh(s.contentDOM,s.children,t),r=a?a.nextSibling:n.firstChild}}for(;r;)r=Mu(r),o=!0;o&&t.trackWrites==n&&(t.trackWrites=null)}const go=function(n){n&&(this.nodeName=n)};go.prototype=Object.create(null);const qn=[new go];function nl(n,e,t){if(n.length==0)return qn;let r=t?qn[0]:new go,o=[r];for(let i=0;i<n.length;i++){let s=n[i].type.attrs;if(s){s.nodeName&&o.push(r=new go(s.nodeName));for(let l in s){let a=s[l];a!=null&&(t&&o.length==1&&o.push(r=new go(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+a:l=="style"?r.style=(r.style?r.style+";":"")+a:l!="nodeName"&&(r[l]=a))}}}return o}function Mh(n,e,t,r){if(t==qn&&r==qn)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],l=t[i];if(i){let a;l&&l.nodeName==s.nodeName&&o!=n&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),l=qn[0]),o=a}Gy(o,l||qn[0],s)}return o}function Gy(n,e,t){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in t)&&n.removeAttribute(r);for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&t[r]!=e[r]&&n.setAttribute(r,t[r]);if(e.class!=t.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&n.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&n.classList.add(o[i]);n.classList.length==0&&n.removeAttribute("class")}if(e.style!=t.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)n.style.removeProperty(o[1])}t.style&&(n.style.cssText+=t.style)}}function Nh(n,e,t){return Mh(n,n,qn,nl(e,t,n.nodeType!=1))}function rl(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].type.eq(e[t].type))return!1;return!0}function Mu(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Yy{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Jy(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=Pt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let a=this.index;a<Math.min(this.index+3,this.top.children.length);a++){let c=this.top.children[a];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){l=a;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=fr.create(this.top,e[i],t,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,r))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l<a;l++){let c=this.top.children[l];if(c.matchesNode(e,t,r)&&!this.preMatch.matched.has(c)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,r,o,i){let s=this.top.children[o];return s.dirty==sn&&s.dom==s.contentDOM&&(s.dirty=Qn),s.update(e,t,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=t}}updateNextNode(e,t,r,o,i,s){for(let l=this.index;l<this.top.children.length;l++){let a=this.top.children[l];if(a instanceof Rn){let c=this.preMatch.matched.get(a);if(c!=null&&c!=i)return!1;let u=a.dom,d,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=sn&&rl(t,a.outerDeco));if(!h&&a.update(e,t,r,o))return this.destroyBetween(this.index,l),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(d=this.recreateWrapper(a,e,t,r,o,s)))return this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Qn,d.updateChildren(o,s+1),d.dirty=Pt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,o,i,s){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content))return null;let l=Rn.create(this.top,t,r,o,i,s);if(l.contentDOM){l.children=e.children,e.children=[];for(let a of l.children)a.parent=l}return e.destroy(),l}addNode(e,t,r,o,i){let s=Rn.create(this.top,e,t,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,t,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new kh(this.top,e,t,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof fr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Ds)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ft||rt)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new Ah(this.top,[],r,null);t!=this.top?t.children.push(o):t.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Jy(n,e){let t=e,r=t.children.length,o=n.childCount,i=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let c=t.children[r-1];if(c instanceof fr)t=c,r=c.children.length;else{l=c,r--;break}}else{if(t==e)break e;r=t.parent.children.indexOf(t),t=t.parent}let a=l.node;if(a){if(a!=n.child(o-1))break;--o,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function Zy(n,e){return n.type.side-e.type.side}function Xy(n,e,t,r){let o=e.locals(n),i=0;if(o.length==0){for(let c=0;c<n.childCount;c++){let u=n.child(c);r(u,o,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,l=[],a=null;for(let c=0;;){let u,d;for(;s<o.length&&o[s].to==i;){let v=o[s++];v.widget&&(u?(d||(d=[u])).push(v):u=v)}if(u)if(d){d.sort(Zy);for(let v=0;v<d.length;v++)t(d[v],c,!!a)}else t(u,c,!!a);let h,m;if(a)m=-1,h=a,a=null;else if(c<n.childCount)m=c,h=n.child(c++);else break;for(let v=0;v<l.length;v++)l[v].to<=i&&l.splice(v--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)l.push(o[s++]);let p=i+h.nodeSize;if(h.isText){let v=p;s<o.length&&o[s].from<v&&(v=o[s].from);for(let C=0;C<l.length;C++)l[C].to<v&&(v=l[C].to);v<p&&(a=h.cut(v-i),h=h.cut(0,v-i),p=v,m=-1)}let g=h.isInline&&!h.isLeaf?l.filter(v=>!v.inline):l.slice();r(h,g,e.forChild(i,h),m),i=p}}function Qy(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function qy(n,e){for(;;){if(n.nodeType==3)return n;if(n.nodeType==1&&e>0){if(n.childNodes.length>e&&n.childNodes[e].nodeType==3)return n.childNodes[e];n=n.childNodes[e-1],e=en(n)}else if(n.nodeType==1&&e<n.childNodes.length)n=n.childNodes[e],e=0;else return null}}function e2(n,e,t,r){for(let o=0,i=0;o<n.childCount&&i<=r;){let s=n.child(o++),l=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<n.childCount;){let c=n.child(o++);if(i+=c.nodeSize,!c.isText)break;a+=c.text}if(i>=t){if(i>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let c=l<r?a.lastIndexOf(e,r-l-1):-1;if(c>=0&&c+e.length+l>=t)return l+c;if(t==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function ol(n,e,t,r,o){let i=[];for(let s=0,l=0;s<n.length;s++){let a=n[s],c=l,u=l+=a.size;c>=t||u<=e?i.push(a):(c<e&&i.push(a.slice(0,e-c,r)),o&&(i.push(o),o=void 0),u>t&&i.push(a.slice(t-c,a.size,r)))}return i}function Jl(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),i=o&&o.size==0,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,c;if(Is(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&Se.isSelectable(u)&&o.parent&&!(u.isInline&&xy(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new Se(s==d?l:r.resolve(d))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!c){let u=e=="pointer"||n.state.selection.head<l.pos&&!i?1:-1;c=Zl(n,a,l,u)}return c}function Ih(n){return n.editable?n.hasFocus():_h(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function gn(n,e=!1){let t=n.state.selection;if(Dh(n,t),!!Ih(n)){if(!e&&n.input.mouseDown&&n.input.mouseDown.allowDefault&&rt){let r=n.domSelectionRange(),o=n.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&dr(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){n.input.mouseDown.delayedSelectionSync=!0,n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)n2(n);else{let{anchor:r,head:o}=t,i,s;Nu&&!(t instanceof Le)&&(t.$from.parent.inlineContent||(i=Iu(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(s=Iu(n,t.to))),n.docView.setSelection(r,o,n.root,e),Nu&&(i&&Du(i),s&&Du(s)),t.visible?n.dom.classList.remove("ProseMirror-hideselection"):(n.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&t2(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const Nu=ft||rt&&Ay<63;function Iu(n,e){let{node:t,offset:r}=n.docView.domFromPos(e,0),o=r<t.childNodes.length?t.childNodes[r]:null,i=r?t.childNodes[r-1]:null;if(ft&&o&&o.contentEditable=="false")return fa(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return fa(o);if(i)return fa(i)}}function fa(n){return n.contentEditable="true",ft&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Du(n){n.contentEditable="false",n.wasDraggable&&(n.draggable=!0,n.wasDraggable=null)}function t2(n){let e=n.dom.ownerDocument;e.removeEventListener("selectionchange",n.input.hideSelectionGuard);let t=n.domSelectionRange(),r=t.anchorNode,o=t.anchorOffset;e.addEventListener("selectionchange",n.input.hideSelectionGuard=()=>{(t.anchorNode!=r||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!Ih(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function n2(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,ct(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&bt&&Ln<=11&&(r.disabled=!0,r.disabled=!1)}function Dh(n,e){if(e instanceof Se){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(_u(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else _u(n)}function _u(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function Zl(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Le.between(e,t,r)}function Lu(n){return n.editable&&!n.hasFocus()?!1:_h(n)}function _h(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function r2(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return dr(e.node,e.offset,t.anchorNode,t.anchorOffset)}function il(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),i=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return i&&_e.findFrom(i,e)}function An(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function Ru(n,e,t){let r=n.state.selection;if(r instanceof Le)if(t.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=n.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return An(n,new Le(r.$anchor,s))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=il(n.state,e);return o&&o instanceof Se?An(n,o):!1}else if(!(Lt&&t.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=n.docView.descAt(l))&&!s.contentDOM?Se.isSelectable(i)?An(n,new Se(e<0?n.state.doc.resolve(o.pos-i.nodeSize):o)):zo?An(n,new Le(n.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Se&&r.node.isInline)return An(n,new Le(e>0?r.$to:r.$from));{let o=il(n.state,e);return o?An(n,o):!1}}}function Ii(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function vo(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Sr(n,e){return e<0?o2(n):i2(n)}function o2(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,i,s=!1;for(jt&&t.nodeType==1&&r<Ii(t)&&vo(t.childNodes[r],-1)&&(s=!0);;)if(r>0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(vo(l,-1))o=t,i=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(Lh(t))break;{let l=t.previousSibling;for(;l&&vo(l,-1);)o=t.parentNode,i=ct(l),l=l.previousSibling;if(l)t=l,r=Ii(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}s?sl(n,t,r):o&&sl(n,o,i)}function i2(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Ii(t),i,s;for(;;)if(r<o){if(t.nodeType!=1)break;let l=t.childNodes[r];if(vo(l,1))i=t,s=++r;else break}else{if(Lh(t))break;{let l=t.nextSibling;for(;l&&vo(l,1);)i=l.parentNode,s=ct(l)+1,l=l.nextSibling;if(l)t=l,r=0,o=Ii(t);else{if(t=t.parentNode,t==n.dom)break;r=o=0}}}i&&sl(n,i,s)}function Lh(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function s2(n,e){for(;n&&e==n.childNodes.length&&!Gl(n);)e=ct(n)+1,n=n.parentNode;for(;n&&e<n.childNodes.length;){let t=n.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=0}}function a2(n,e){for(;n&&!e&&!Gl(n);)e=ct(n),n=n.parentNode;for(;n&&e;){let t=n.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=n.childNodes.length}}function sl(n,e,t){if(e.nodeType!=3){let i,s;(s=s2(e,t))?(e=s,t=0):(i=a2(e,t))&&(e=i,t=i.nodeValue.length)}let r=n.domSelection();if(Is(r)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,t);n.domObserver.setCurSelection();let{state:o}=n;setTimeout(()=>{n.state==o&&gn(n)},50)}function Pu(n,e){let t=n.state.doc.resolve(e);if(!(rt||Oy)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let i=n.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<t.end()){let i=n.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function Bu(n,e,t){let r=n.state.selection;if(r instanceof Le&&!r.empty||t.indexOf("s")>-1||Lt&&t.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=il(n.state,e);if(s&&s instanceof Se)return An(n,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Ht?_e.near(s,e):_e.findFrom(s,e);return l?An(n,l):!1}return!1}function $u(n,e){if(!(n.state.selection instanceof Le))return!0;let{$head:t,$anchor:r,empty:o}=n.state.selection;if(!t.sameParent(r))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let s=n.state.tr;return e<0?s.delete(t.pos-i.nodeSize,t.pos):s.delete(t.pos,t.pos+i.nodeSize),n.dispatch(s),!0}return!1}function Fu(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function l2(n){if(!ft||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Fu(n,r,"true"),setTimeout(()=>Fu(n,r,"false"),20)}return!1}function c2(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function u2(n,e){let t=e.keyCode,r=c2(e);if(t==8||Lt&&t==72&&r=="c")return $u(n,-1)||Sr(n,-1);if(t==46&&!e.shiftKey||Lt&&t==68&&r=="c")return $u(n,1)||Sr(n,1);if(t==13||t==27)return!0;if(t==37||Lt&&t==66&&r=="c"){let o=t==37?Pu(n,n.state.selection.from)=="ltr"?-1:1:-1;return Ru(n,o,r)||Sr(n,o)}else if(t==39||Lt&&t==70&&r=="c"){let o=t==39?Pu(n,n.state.selection.from)=="ltr"?1:-1:1;return Ru(n,o,r)||Sr(n,o)}else{if(t==38||Lt&&t==80&&r=="c")return Bu(n,-1,r)||Sr(n,-1);if(t==40||Lt&&t==78&&r=="c")return l2(n)||Bu(n,1,r)||Sr(n,1);if(r==(Lt?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function Rh(n,e){n.someProp("transformCopied",m=>{e=m(e,n)});let t=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let m=r.firstChild;t.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),r=m.content}let s=n.someProp("clipboardSerializer")||tn.fromSchema(n.state.schema),l=zh(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=Vh[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let p=l.createElement(u[m]);for(;a.firstChild;)p.appendChild(a.firstChild);a.appendChild(p),d++}c=a.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(t)}`);let h=n.someProp("clipboardTextSerializer",m=>m(e,n))||e.content.textBetween(0,e.content.size,`
16
+
17
+ `);return{dom:a,text:h}}function Ph(n,e,t,r,o){let i=o.parent.type.spec.code,s,l;if(!t&&!e)return null;let a=e&&(r||i||!t);if(a){if(n.someProp("transformPastedText",h=>{e=h(e,i||r,n)}),i)return e?new he(se.from(n.state.schema.text(e.replace(/\r\n?/g,`
18
+ `))),0,0):he.empty;let d=n.someProp("clipboardTextParser",h=>h(e,o,r,n));if(d)l=d;else{let h=o.marks(),{schema:m}=n.state,p=tn.fromSchema(m);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=s.appendChild(document.createElement("p"));g&&v.appendChild(p.serializeNode(m.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{t=d(t,n)}),s=h2(t),zo&&p2(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Hr.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!d2.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)l=m2(Vu(l,+u[1],+u[2]),u[4]);else if(l=he.maxOpen(f2(l.content,o),!0),l.openStart||l.openEnd){let d=0,h=0;for(let m=l.content.firstChild;d<l.openStart&&!m.type.spec.isolating;d++,m=m.firstChild);for(let m=l.content.lastChild;h<l.openEnd&&!m.type.spec.isolating;h++,m=m.lastChild);l=Vu(l,d,h)}return n.someProp("transformPasted",d=>{l=d(l,n)}),l}const d2=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function f2(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.index(t)),i,s=[];if(n.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&$h(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=Fh(s[s.length-1],i.length));let u=Bh(l,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return se.from(s)}return n}function Bh(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,se.from(n));return n}function $h(n,e,t,r,o){if(o<n.length&&o<e.length&&n[o]==e[o]){let i=$h(n,e,t,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==n.length-1?t.type:n[o+1]))return r.copy(r.content.append(se.from(Bh(t,n,o+1))))}}function Fh(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,Fh(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(se.empty,!0);return n.copy(t.append(r))}function al(n,e,t,r,o,i){let s=e<0?n.firstChild:n.lastChild,l=s.content;return n.childCount>1&&(i=0),o<r-1&&(l=al(l,e,t,r,o+1,i)),o>=t&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(se.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(l))}function Vu(n,e,t){return e<n.openStart&&(n=new he(al(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new he(al(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const Vh={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let zu=null;function zh(){return zu||(zu=document.implementation.createHTMLDocument("title"))}function h2(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=zh().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&Vh[r[1].toLowerCase()])&&(n=o.map(i=>"<"+i+">").join("")+n+o.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=n,o)for(let i=0;i<o.length;i++)t=t.querySelector(o[i])||t;return t}function p2(n){let e=n.querySelectorAll(rt?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let r=e[t];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "),r)}}function m2(n,e){if(!n.size)return n;let t=n.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return n}let{content:o,openStart:i,openEnd:s}=n;for(let l=r.length-2;l>=0;l-=2){let a=t.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=se.from(a.create(r[l+1],o)),i++,s++}return new he(o,i,s)}const ht={},pt={},g2={touchstart:!0,touchmove:!0};class v2{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function y2(n){for(let e in ht){let t=ht[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{E2(n,r)&&!Xl(n,r)&&(n.editable||!(r.type in pt))&&t(n,r)},g2[e]?{passive:!0}:void 0)}ft&&n.dom.addEventListener("input",()=>null),ll(n)}function _n(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function b2(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function ll(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>Xl(n,r))})}function Xl(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function E2(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function C2(n,e){!Xl(n,e)&&ht[e.type]&&(n.editable||!(e.type in pt))&&ht[e.type](n,e)}pt.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!Uh(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(zt&&rt&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Wr&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let r=Date.now();n.input.lastIOSEnter=r,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==r&&(n.someProp("handleKeyDown",o=>o(n,Zn(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||u2(n,t)?t.preventDefault():_n(n,"key")};pt.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)};pt.keypress=(n,e)=>{let t=e;if(Uh(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Lt&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Le)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",i=>i(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function _s(n){return{left:n.clientX,top:n.clientY}}function S2(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function Ql(n,e,t,r,o){if(r==-1)return!1;let i=n.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(n.someProp(e,l=>s>i.depth?l(n,t,i.nodeAfter,i.before(s),o,!0):l(n,t,i.node(s),i.before(s),o,!1)))return!0;return!1}function Vr(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);t=="pointer"&&r.setMeta("pointer",!0),n.dispatch(r)}function w2(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&Se.isSelectable(r)?(Vr(n,new Se(t),"pointer"),!0):!1}function x2(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof Se&&(r=t.node);let i=n.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(Se.isSelectable(l)){r&&t.$from.depth>0&&s>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?o=i.before(t.$from.depth):o=i.before(s);break}}return o!=null?(Vr(n,Se.create(n.state.doc,o),"pointer"),!0):!1}function T2(n,e,t,r,o){return Ql(n,"handleClickOn",e,t,r)||n.someProp("handleClick",i=>i(n,e,r))||(o?x2(n,t):w2(n,t))}function k2(n,e,t,r){return Ql(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function A2(n,e,t,r){return Ql(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||O2(n,t,r)}function O2(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Vr(n,Le.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)Vr(n,Le.create(r,l+1,l+1+s.content.size),"pointer");else if(Se.isSelectable(s))Vr(n,Se.create(r,l),"pointer");else continue;return!0}}function ql(n){return Di(n)}const Hh=Lt?"metaKey":"ctrlKey";ht.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=ql(n),o=Date.now(),i="singleClick";o-n.input.lastClick.time<500&&S2(t,n.input.lastClick)&&!t[Hh]&&(n.input.lastClick.type=="singleClick"?i="doubleClick":n.input.lastClick.type=="doubleClick"&&(i="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:i};let s=n.posAtCoords(_s(t));s&&(i=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new M2(n,s,t,!!r)):(i=="doubleClick"?k2:A2)(n,s.pos,s.inside,t)?t.preventDefault():_n(n,"pointer"))};class M2{constructor(e,t,r,o){this.view=e,this.pos=t,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Hh],this.allowDefault=r.shiftKey;let i,s;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);i=u.parent,s=u.depth?u.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a?a.dom:null;let{selection:c}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Se&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&jt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),_n(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>gn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(_s(e))),this.updateAllowDefault(e),this.allowDefault||!t?_n(this.view,"pointer"):T2(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ft&&this.mightDrag&&!this.mightDrag.node.isAtom||rt&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Vr(this.view,_e.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):_n(this.view,"pointer")}move(e){this.updateAllowDefault(e),_n(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}ht.touchstart=n=>{n.input.lastTouch=Date.now(),ql(n),_n(n,"pointer")};ht.touchmove=n=>{n.input.lastTouch=Date.now(),_n(n,"pointer")};ht.contextmenu=n=>ql(n);function Uh(n,e){return n.composing?!0:ft&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const N2=zt?5e3:-1;pt.compositionstart=pt.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||t.marks(),Di(n,!0),n.markCursor=null;else if(Di(n),jt&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){n.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}n.input.composing=!0}jh(n,N2)};pt.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,jh(n,20))};function jh(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Di(n),e))}function Wh(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=I2());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function I2(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Di(n,e=!1){if(!(zt&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),Wh(n),e||n.docView&&n.docView.dirty){let t=Jl(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function D2(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const Ao=bt&&Ln<15||Wr&&My<604;ht.copy=pt.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let i=Ao?null:t.clipboardData,s=r.content(),{dom:l,text:a}=Rh(n,s);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):D2(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function _2(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function L2(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?Oo(n,r.value,null,o,e):Oo(n,r.textContent,r.innerHTML,o,e)},50)}function Oo(n,e,t,r,o){let i=Ph(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,i||he.empty)))return!0;if(!i)return!1;let s=_2(i),l=s?n.state.tr.replaceSelectionWith(s,r):n.state.tr.replaceSelection(i);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Kh(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}pt.paste=(n,e)=>{let t=e;if(n.composing&&!zt)return;let r=Ao?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Oo(n,Kh(r),r.getData("text/html"),o,t)?t.preventDefault():L2(n,t)};class Gh{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const Yh=Lt?"altKey":"ctrlKey";ht.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=n.state.selection,i=o.empty?null:n.posAtCoords(_s(t)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Se?o.to-1:o.to))){if(r&&r.mightDrag)s=Se.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let u=n.docView.nearestDesc(t.target,!0);u&&u.node.type.spec.draggable&&u!=n.docView&&(s=Se.create(n.state.doc,u.posBefore))}}let l=(s||n.state.selection).content(),{dom:a,text:c}=Rh(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(Ao?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",Ao||t.dataTransfer.setData("text/plain",c),n.dragging=new Gh(l,!t[Yh],s)};ht.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)};pt.dragover=pt.dragenter=(n,e)=>e.preventDefault();pt.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(_s(t));if(!o)return;let i=n.state.doc.resolve(o.pos),s=r&&r.slice;s?n.someProp("transformPasted",p=>{s=p(s,n)}):s=Ph(n,Kh(t.dataTransfer),Ao?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!t[Yh]);if(n.someProp("handleDrop",p=>p(n,t,s||he.empty,l))){t.preventDefault();return}if(!s)return;t.preventDefault();let a=s?fy(n.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let c=n.state.tr;if(l){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(a),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let m=c.doc.resolve(u);if(d&&Se.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new Se(m));else{let p=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((g,v,C,S)=>p=S),c.setSelection(Zl(n,m,c.doc.resolve(p)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))};ht.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&gn(n)},20))};ht.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)};ht.beforeinput=(n,e)=>{if(rt&&zt&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:r}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=r||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",i=>i(n,Zn(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in pt)ht[n]=pt[n];function Mo(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class _i{constructor(e,t){this.toDOM=e,this.spec=t||sr,this.side=this.spec.side||0}map(e,t,r,o){let{pos:i,deleted:s}=e.mapResult(t.from+o,this.side<0?-1:1);return s?null:new Rt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof _i&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Mo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Pn{constructor(e,t){this.attrs=e,this.spec=t||sr}map(e,t,r,o){let i=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new Rt(i,s,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Pn&&Mo(this.attrs,e.attrs)&&Mo(this.spec,e.spec)}static is(e){return e.type instanceof Pn}destroy(){}}class ec{constructor(e,t){this.attrs=e,this.spec=t||sr}map(e,t,r,o){let i=e.mapResult(t.from+o,1);if(i.deleted)return null;let s=e.mapResult(t.to+o,-1);return s.deleted||s.pos<=i.pos?null:new Rt(i.pos-r,s.pos-r,this)}valid(e,t){let{index:r,offset:o}=e.content.findIndex(t.from),i;return o==t.from&&!(i=e.child(r)).isText&&o+i.nodeSize==t.to}eq(e){return this==e||e instanceof ec&&Mo(this.attrs,e.attrs)&&Mo(this.spec,e.spec)}destroy(){}}class Rt{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new Rt(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new Rt(e,e,new _i(t,r))}static inline(e,t,r,o){return new Rt(e,t,new Pn(r,o))}static node(e,t,r,o){return new Rt(e,t,new ec(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Pn}get widget(){return this.type instanceof _i}}const Or=[],sr={};class Ge{constructor(e,t){this.local=e.length?e:Or,this.children=t.length?t:Or}static create(e,t){return t.length?Li(t,e,0,sr):nt}find(e,t,r){let o=[];return this.findInner(e??0,t??1e9,o,0,r),o}findInner(e,t,r,o,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,r,o+l,i)}}map(e,t,r){return this==nt||e.maps.length==0?this:this.mapInner(e,t,0,0,r||sr)}mapInner(e,t,r,o,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(e,r,o);a&&a.type.valid(t,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?R2(this.children,s||[],e,t,r,o,i):s?new Ge(s.sort(ar),Or):nt}add(e,t){return t.length?this==nt?Ge.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let o,i=0;e.forEach((l,a)=>{let c=a+r,u;if(u=Zh(t,l,c)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(l,u,c+1):o.splice(i,0,a,a+l.nodeSize,Li(u,l,c+1,sr)),i+=3}});let s=Jh(i?Xh(t):t,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new Ge(s.length?this.local.concat(s).sort(ar):this.local,o||this.children)}remove(e){return e.length==0||this==nt?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+t,a=r[i+1]+t;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>l&&d.to<a&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[i+2].removeInner(s,l+1);c!=nt?r[i+2]=c:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<o.length;l++)o[l].eq(s,t)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Ge(o,r):nt}forChild(e,t){if(this==nt)return this;if(t.isLeaf)return Ge.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let i=e+1,s=i+t.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof Pn){let c=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;c<u&&(o||(o=[])).push(a.copy(c,u))}}if(o){let l=new Ge(o.sort(ar),Or);return r?new Mn([l,r]):l}return r||nt}eq(e){if(this==e)return!0;if(!(e instanceof Ge)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return tc(this.localsInner(e))}localsInner(e){if(this==nt)return Or;if(e.inlineContent||!this.local.some(Pn.is))return this.local;let t=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Pn||t.push(this.local[r]);return t}}Ge.empty=new Ge([],[]);Ge.removeOverlap=tc;const nt=Ge.empty;class Mn{constructor(e){this.members=e}map(e,t){const r=this.members.map(o=>o.map(e,t,sr));return Mn.from(r)}forChild(e,t){if(t.isLeaf)return Ge.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,t);i!=nt&&(i instanceof Mn?r=r.concat(i.members):r.push(i))}return Mn.from(r)}eq(e){if(!(e instanceof Mn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!t)t=i;else{r&&(t=t.slice(),r=!1);for(let s=0;s<i.length;s++)t.push(i[s])}}return t?tc(r?t:t.sort(ar)):Or}static from(e){switch(e.length){case 0:return nt;case 1:return e[0];default:return new Mn(e.every(t=>t instanceof Ge)?e:e.reduce((t,r)=>t.concat(r instanceof Ge?r:r.members),[]))}}}function R2(n,e,t,r,o,i,s){let l=n.slice();for(let c=0,u=i;c<t.maps.length;c++){let d=0;t.maps[c].forEach((h,m,p,g)=>{let v=g-p-(m-h);for(let C=0;C<l.length;C+=3){let S=l[C+1];if(S<0||h>S+u-d)continue;let x=l[C]+u-d;m>=x?l[C+1]=h<=x?-2:-1:p>=o&&v&&(l[C]+=v,l[C+1]+=v)}d+=v}),u=t.maps[c].map(u,-1)}let a=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){a=!0,l[c+1]=-1;continue}let u=t.map(n[c]+i),d=u-o;if(d<0||d>=r.content.size){a=!0;continue}let h=t.map(n[c+1]+i,-1),m=h-o,{index:p,offset:g}=r.content.findIndex(d),v=r.maybeChild(p);if(v&&g==d&&g+v.nodeSize==m){let C=l[c+2].mapInner(t,v,u+1,n[c]+i+1,s);C!=nt?(l[c]=d,l[c+1]=m,l[c+2]=C):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=P2(l,n,e,t,o,i,s),u=Li(c,r,0,s);e=u.local;for(let d=0;d<l.length;d+=3)l[d+1]<0&&(l.splice(d,3),d-=3);for(let d=0,h=0;d<u.children.length;d+=3){let m=u.children[d];for(;h<l.length&&l[h]<m;)h+=3;l.splice(h,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Ge(e.sort(ar),l)}function Jh(n,e){if(!e||!n.length)return n;let t=[];for(let r=0;r<n.length;r++){let o=n[r];t.push(new Rt(o.from+e,o.to+e,o.type))}return t}function P2(n,e,t,r,o,i,s){function l(a,c){for(let u=0;u<a.local.length;u++){let d=a.local[u].map(r,o,c);d?t.push(d):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)l(a.children[u+2],a.children[u]+c+1)}for(let a=0;a<n.length;a+=3)n[a+1]==-1&&l(n[a+2],e[a]+i+1);return t}function Zh(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,o=null;for(let i=0,s;i<n.length;i++)(s=n[i])&&s.from>t&&s.to<r&&((o||(o=[])).push(s),n[i]=null);return o}function Xh(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function Li(n,e,t,r){let o=[],i=!1;e.forEach((l,a)=>{let c=Zh(n,l,a+t);if(c){i=!0;let u=Li(c,l,t+a+1,r);u!=nt&&o.push(a,a+l.nodeSize,u)}});let s=Jh(i?Xh(n):n,-t).sort(ar);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||o.length?new Ge(s,o):nt}function ar(n,e){return n.from-e.from||n.to-e.to}function tc(n){let e=n;for(let t=0;t<e.length-1;t++){let r=e[t];if(r.from!=r.to)for(let o=t+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==n&&(e=n.slice()),e[o]=i.copy(i.from,r.to),Hu(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,i.from),Hu(e,o,r.copy(i.from,r.to)));break}}}return e}function Hu(n,e,t){for(;e<n.length&&ar(t,n[e])>0;)e++;n.splice(e,0,t)}function ha(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=nt&&e.push(r)}),n.cursorWrapper&&e.push(Ge.create(n.state.doc,[n.cursorWrapper.deco])),Mn.from(e)}const B2={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$2=bt&&Ln<=11;class F2{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class V2{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new F2,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);bt&&Ln<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),$2&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,B2)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Lu(this.view)){if(this.suppressingSelectionUpdates)return gn(this.view);if(bt&&Ln<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&dr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let i=e.focusNode;i;i=ko(i))t.add(i);for(let i=e.anchorNode;i;i=ko(i))if(t.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Lu(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,a=[];if(e.editable)for(let u=0;u<t.length;u++){let d=this.registerMutation(t[u],a);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(l=!0))}if(jt&&a.length>1){let u=a.filter(d=>d.nodeName=="BR");if(u.length==2){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Is(r)&&(c=Jl(e))&&c.eq(_e.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,gn(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),z2(e)),this.handleDOMChange(i,s,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||gn(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++)t.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(bt&&Ln<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:h}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(o=d),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?ct(i):e.target.childNodes.length,c=r.localPosFromDOM(e.target,a,1);return{from:l,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Uu=new WeakMap,ju=!1;function z2(n){if(!Uu.has(n)&&(Uu.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=jt,ju)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ju=!0}}function H2(n){let e;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",t,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,l=n.domAtPos(n.state.selection.anchor);return dr(l.node,l.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function U2(n,e,t){let{node:r,fromOffset:o,toOffset:i,from:s,to:l}=n.docView.parseRange(e,t),a=n.domSelectionRange(),c,u=a.anchorNode;if(u&&n.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:a.anchorOffset}],Is(a)||c.push({node:a.focusNode,offset:a.focusOffset})),rt&&n.input.lastKeyCode===8)for(let v=i;v>o;v--){let C=r.childNodes[v-1],S=C.pmViewDesc;if(C.nodeName=="BR"&&!S){i=v;break}if(!S||S.size)break}let d=n.state.doc,h=n.someProp("domParser")||Hr.fromSchema(n.state.schema),m=d.resolve(s),p=null,g=h.parse(r,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:o,to:i,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:j2,context:m});if(c&&c[0].pos!=null){let v=c[0].pos,C=c[1]&&c[1].pos;C==null&&(C=v),p={anchor:v+s,head:C+s}}return{doc:g,sel:p,from:s,to:l}}function j2(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(ft&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||ft&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const W2=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function K2(n,e,t,r,o){let i=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let V=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,$=Jl(n,V);if($&&!n.state.selection.eq($)){if(rt&&zt&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",R=>R(n,Zn(13,"Enter"))))return;let P=n.state.tr.setSelection($);V=="pointer"?P.setMeta("pointer",!0):V=="key"&&P.scrollIntoView(),i&&P.setMeta("composition",i),n.dispatch(P)}return}let s=n.state.doc.resolve(e),l=s.sharedDepth(t);e=s.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=U2(n,e,t),u=n.state.doc,d=u.slice(c.from,c.to),h,m;n.input.lastKeyCode===8&&Date.now()-100<n.input.lastKeyCodeTime?(h=n.state.selection.to,m="end"):(h=n.state.selection.from,m="start"),n.input.lastKeyCode=null;let p=J2(d.content,c.doc.content,c.from,h,m);if((Wr&&n.input.lastIOSEnter>Date.now()-225||zt)&&o.some(V=>V.nodeType==1&&!W2.test(V.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",V=>V(n,Zn(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!p)if(r&&a instanceof Le&&!a.empty&&a.$head.sameParent(a.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let V=Wu(n,n.state.doc,c.sel);if(V&&!V.eq(n.state.selection)){let $=n.state.tr.setSelection(V);i&&$.setMeta("composition",i),n.dispatch($)}}return}if(rt&&n.cursorWrapper&&c.sel&&c.sel.anchor==n.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let V=p.endB-p.start;c.sel={anchor:c.sel.anchor+V,head:c.sel.anchor+V}}n.input.domChangeCount++,n.state.selection.from<n.state.selection.to&&p.start==p.endB&&n.state.selection instanceof Le&&(p.start>n.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?p.start=n.state.selection.from:p.endA<n.state.selection.to&&p.endA>=n.state.selection.to-2&&n.state.selection.to<=c.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),bt&&Ln<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),v=c.doc.resolveNoCache(p.endB-c.from),C=u.resolve(p.start),S=g.sameParent(v)&&g.parent.inlineContent&&C.end()>=p.endA,x;if((Wr&&n.input.lastIOSEnter>Date.now()-225&&(!S||o.some(V=>V.nodeName=="DIV"||V.nodeName=="P"))||!S&&g.pos<c.doc.content.size&&!g.sameParent(v)&&(x=_e.findFrom(c.doc.resolve(g.pos+1),1,!0))&&x.head==v.pos)&&n.someProp("handleKeyDown",V=>V(n,Zn(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>p.start&&Y2(u,p.start,p.endA,g,v)&&n.someProp("handleKeyDown",V=>V(n,Zn(8,"Backspace")))){zt&&rt&&n.domObserver.suppressSelectionUpdates();return}rt&&zt&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),zt&&!S&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,v=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(V){return V(n,Zn(13,"Enter"))})},20));let b=p.start,D=p.endA,T,B,F;if(S){if(g.pos==v.pos)bt&&Ln<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>gn(n),20)),T=n.state.tr.delete(b,D),B=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(F=G2(g.parent.content.cut(g.parentOffset,v.parentOffset),C.parent.content.cut(C.parentOffset,p.endA-C.start()))))T=n.state.tr,F.type=="add"?T.addMark(b,D,F.mark):T.removeMark(b,D,F.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let V=g.parent.textBetween(g.parentOffset,v.parentOffset);if(n.someProp("handleTextInput",$=>$(n,b,D,V)))return;T=n.state.tr.insertText(V,b,D)}}if(T||(T=n.state.tr.replace(b,D,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let V=Wu(n,T.doc,c.sel);V&&!(rt&&zt&&n.composing&&V.empty&&(p.start!=p.endB||n.input.lastAndroidDelete<Date.now()-100)&&(V.head==b||V.head==T.mapping.map(D)-1)||bt&&V.empty&&V.head==b)&&T.setSelection(V)}B&&T.ensureMarks(B),i&&T.setMeta("composition",i),n.dispatch(T.scrollIntoView())}function Wu(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:Zl(n,e.resolve(t.anchor),e.resolve(t.head))}function G2(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,i=r,s,l,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<t.length;u++)i=t[u].removeFromSet(i);if(o.length==1&&i.length==0)l=o[0],s="add",a=u=>u.mark(l.addToSet(u.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(a(e.child(u)));if(se.from(c).eq(n))return{mark:l,type:s}}function Y2(n,e,t,r,o){if(!r.parent.isTextblock||t-e<=o.pos-r.pos||pa(r,!0,!1)<o.pos)return!1;let i=n.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=n.resolve(pa(i,!0,!0));return!s.parent.isTextblock||s.pos>t||pa(s,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function pa(n,e,t){let r=n.depth,o=e?n.end():n.pos;for(;r>0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,o++,e=!1;if(t){let i=n.node(r).maybeChild(n.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function J2(n,e,t,r,o){let i=n.findDiffStart(e,t);if(i==null)return null;let{a:s,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,l));r-=s+a-i}if(s<i&&n.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&Ku(e.textBetween(i-1,i+1))&&(i+=a?1:-1),l=i+(l-s),s=i}else if(l<i){let a=r<=i&&r>=l?i-r:0;i-=a,i&&i<n.size&&Ku(n.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function Ku(n){if(n.length!=2)return!1;let e=n.charCodeAt(0),t=n.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class Z2{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new v2,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Xu),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Ju(this),Yu(this),this.nodeViews=Zu(this),this.docView=Ou(this.state.doc,Gu(this),ha(this),this.dom,this),this.domObserver=new V2(this,(r,o,i,s)=>K2(this,r,o,i,s)),this.domObserver.start(),y2(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ll(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Xu),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Wh(this),s=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let m=Zu(this);Q2(m,this.nodeViews)&&(this.nodeViews=m,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&ll(this),this.editable=Ju(this),Yu(this);let a=ha(this),c=Gu(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,c,a);(d||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&Dy(this);if(s){this.domObserver.stop();let m=d&&(bt||rt)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&X2(o.selection,e.selection);if(d){let p=rt?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Ou(e.doc,c,a,this.dom,this)),p&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&r2(this))?gn(this,m):(Dh(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&_y(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof Se){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Su(this,t.getBoundingClientRect(),e)}else Su(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let r=this.directPlugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let r=this.state.plugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}}updateDraggedNode(e,t){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new Gh(e.slice,e.move,o<0?void 0:Se.create(this.state.doc,o))}someProp(e,t){let r=this._props&&this._props[e],o;if(r!=null&&(o=t?t(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(o=t?t(l):l))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[e];if(l!=null&&(o=t?t(l):l))return o}}hasFocus(){if(bt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Ly(this.dom),gn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Fy(this,e)}coordsAtPos(e,t=1){return xh(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let o=this.docView.posFromDOM(e,t,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return jy(this,t||this.state,e)}pasteHTML(e,t){return Oo(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Oo(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(b2(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ha(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return C2(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ft&&this.root.nodeType===11&&Ty(this.dom.ownerDocument)==this.dom?H2(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Gu(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let r in t)r=="class"?e.class+=" "+t[r]:r=="style"?e.style=(e.style?e.style+";":"")+t[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(t[r]))}),e.translate||(e.translate="no"),[Rt.node(0,n.state.doc.content.size,e)]}function Yu(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:Rt.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function Ju(n){return!n.someProp("editable",e=>e(n.state)===!1)}function X2(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function Zu(n){let e=Object.create(null);function t(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function Q2(n,e){let t=0,r=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)r++;return t!=r}function Xu(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Bn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ri={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},q2=typeof navigator<"u"&&/Mac/.test(navigator.platform),e5=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var et=0;et<10;et++)Bn[48+et]=Bn[96+et]=String(et);for(var et=1;et<=24;et++)Bn[et+111]="F"+et;for(var et=65;et<=90;et++)Bn[et]=String.fromCharCode(et+32),Ri[et]=String.fromCharCode(et);for(var ma in Bn)Ri.hasOwnProperty(ma)||(Ri[ma]=Bn[ma]);function t5(n){var e=q2&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||e5&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Ri:Bn)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const n5=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function r5(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l++){let a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))n5?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(t="Alt-"+t),o&&(t="Ctrl-"+t),s&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function o5(n){let e=Object.create(null);for(let t in n)e[r5(t)]=n[t];return e}function ga(n,e,t=!0){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t&&e.shiftKey&&(n="Shift-"+n),n}function i5(n){return new Et({props:{handleKeyDown:s5(n)}})}function s5(n){let e=o5(n);return function(t,r){let o=t5(r),i,s=e[ga(o,r)];if(s&&s(t.state,t.dispatch,t))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[ga(o,r,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Bn[r.keyCode])&&i!=o){let l=e[ga(i,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const a5=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function l5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const c5=(n,e,t)=>{let r=l5(n,t);if(!r)return!1;let o=Qh(r);if(!o){let s=r.blockRange(),l=s&&eo(s);return l==null?!1:(e&&e(n.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&tp(n,o,e))return!0;if(r.parent.content.size==0&&(Kr(i,"end")||Se.isSelectable(i))){let s=Wl(n.doc,r.before(),r.after(),he.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Kr(i,"end")?_e.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Se.create(l.doc,o.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function Kr(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const u5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;i=Qh(r)}let s=i&&i.nodeBefore;return!s||!Se.isSelectable(s)?!1:(e&&e(n.tr.setSelection(Se.create(n.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Qh(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function d5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const f5=(n,e,t)=>{let r=d5(n,t);if(!r)return!1;let o=qh(r);if(!o)return!1;let i=o.nodeAfter;if(tp(n,o,e))return!0;if(r.parent.content.size==0&&(Kr(i,"start")||Se.isSelectable(i))){let s=Wl(n.doc,r.before(),r.after(),he.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Kr(i,"start")?_e.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Se.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},h5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;i=qh(r)}let s=i&&i.nodeAfter;return!s||!Se.isSelectable(s)?!1:(e&&e(n.tr.setSelection(Se.create(n.doc,i.pos)).scrollIntoView()),!0)};function qh(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){let t=n.node(e);if(n.index(e)+1<t.childCount)return n.doc.resolve(n.after(e+1));if(t.type.spec.isolating)break}return null}const p5=(n,e)=>{let t=n.selection,r=t instanceof Se,o;if(r){if(t.node.isTextblock||!zn(n.doc,t.from))return!1;o=t.from}else if(o=Ms(n.doc,t.from,-1),o==null)return!1;if(e){let i=n.tr.join(o);r&&i.setSelection(Se.create(i.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},m5=(n,e)=>{let t=n.selection,r;if(t instanceof Se){if(t.node.isTextblock||!zn(n.doc,t.to))return!1;r=t.to}else if(r=Ms(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},g5=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),i=o&&eo(o);return i==null?!1:(e&&e(n.tr.lift(o,i).scrollIntoView()),!0)},v5=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(`
19
+ `).scrollIntoView()),!0)};function ep(n){for(let e=0;e<n.edgeCount;e++){let{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const y5=(n,e)=>{let{$head:t,$anchor:r}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(r))return!1;let o=t.node(-1),i=t.indexAfter(-1),s=ep(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,s.createAndFill());a.setSelection(_e.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},b5=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Ht||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=ep(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=n.tr.insert(s,i.createAndFill());l.setSelection(Le.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},E5=(n,e)=>{let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if($r(n.doc,i))return e&&e(n.tr.split(i).scrollIntoView()),!0}let r=t.blockRange(),o=r&&eo(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},C5=(n,e)=>{let{$from:t,to:r}=n.selection,o,i=t.sharedDepth(r);return i==0?!1:(o=t.before(i),e&&e(n.tr.setSelection(Se.create(n.doc,o))),!0)};function S5(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||zn(n.doc,e.pos))?!1:(t&&t(n.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function tp(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(S5(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(t){let d=e.pos+o.nodeSize,h=se.empty;for(let g=i.length-1;g>=0;g--)h=se.from(i[g].create(null,h));h=se.from(r.copy(h));let m=n.tr.step(new Je(e.pos-1,d,e.pos,d,new he(h,1,0),i.length,!0)),p=d+2*i.length;zn(m.doc,p)&&m.join(p),t(m.scrollIntoView())}return!0}let a=_e.findFrom(e,1),c=a&&a.$from.blockRange(a.$to),u=c&&eo(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&Kr(o,"start",!0)&&Kr(r,"end")){let d=r,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let m=o,p=1;for(;!m.isTextblock;m=m.firstChild)p++;if(d.canReplace(d.childCount,d.childCount,m.content)){if(t){let g=se.empty;for(let C=h.length-1;C>=0;C--)g=se.from(h[C].copy(g));let v=n.tr.step(new Je(e.pos-h.length,e.pos+o.nodeSize,e.pos+p,e.pos+o.nodeSize-p,new he(g,h.length,0),0,!0));t(v.scrollIntoView())}return!0}}return!1}function np(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(t&&t(e.tr.setSelection(Le.create(e.doc,n<0?o.start(i):o.end(i)))),!0):!1}}const w5=np(-1),x5=np(1);function T5(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=s&&jl(s,n,e);return l?(r&&r(t.tr.wrap(s,l).scrollIntoView()),!0):!1}}function Qu(n,e=null){return function(t,r){let o=!1;for(let i=0;i<t.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(s,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(n,e)))if(a.type==n)o=!0;else{let u=t.doc.resolve(c),d=u.index();o=u.parent.canReplaceWith(d,d+1,n)}})}if(!o)return!1;if(r){let i=t.tr;for(let s=0;s<t.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=t.selection.ranges[s];i.setBlockType(l,a,n,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function k5(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(n)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=t.doc.resolve(s.start-2);a=new Ai(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Ai(o,t.doc.resolve(i.end(s.depth)),s.depth)),l=!0}let c=jl(a,n,e,s);return c?(r&&r(A5(t.tr,s,c,l,n).scrollIntoView()),!0):!1}}function A5(n,e,t,r,o){let i=se.empty;for(let u=t.length-1;u>=0;u--)i=se.from(t[u].type.create(t[u].attrs,i));n.step(new Je(e.start-(r?2:0),e.end,e.start,e.end,new he(i,0,0),t.length,!0));let s=0;for(let u=0;u<t.length;u++)t[u].type==o&&(s=u+1);let l=t.length-s,a=e.start+t.length-(r?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,h=!0;u<d;u++,h=!1)!h&&$r(n.doc,a,l)&&(n.split(a,l),a+=2*l),a+=c.child(u).nodeSize;return n}function O5(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==n);return i?t?r.node(i.depth-1).type==n?M5(e,t,n,i):N5(e,t,i):!0:!1}}function M5(n,e,t,r){let o=n.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Je(i-1,s,i,s,new he(se.from(t.create(null,r.parent.copy())),1,0),1,!0)),r=new Ai(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=eo(r);if(l==null)return!1;o.lift(r,l);let a=o.mapping.map(i,-1)-1;return zn(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function N5(n,e,t){let r=n.tr,o=t.parent;for(let m=t.end,p=t.endIndex-1,g=t.startIndex;p>g;p--)m-=o.child(p).nodeSize,r.delete(m-1,m+1);let i=r.doc.resolve(t.start),s=i.nodeAfter;if(r.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(l?0:1),u+1,s.content.append(a?se.empty:se.from(o))))return!1;let d=i.pos,h=d+s.nodeSize;return r.step(new Je(d-(l?1:0),h+(a?1:0),d+1,h-1,new he((l?se.empty:se.from(o.copy(se.empty))).append(a?se.empty:se.from(o.copy(se.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}function I5(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,a=l.child(s-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,u=se.from(c?n.create():null),d=new he(se.from(n.create(null,se.from(l.type.create(null,u)))),c?3:1,0),h=i.start,m=i.end;t(e.tr.step(new Je(h-(c?3:1),m,h,m,d,1,!0)).scrollIntoView())}return!0}}function Ls(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:o}=t,{storedMarks:i}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=t.selection,o=t.doc,i=t.storedMarks,t}}}class Rs{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:o}=t,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>{const d=a(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l=[],a=!!e,c=e||i.tr,u=()=>(!a&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),l.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,m])=>[h,(...g)=>{const v=this.buildProps(c,t),C=m(...g)(v);return l.push(C),d}])),run:u};return d}createCan(e){const{rawCommands:t,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:Ls({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,c])=>[a,(...u)=>c(...u)(l)]))}};return l}}class D5{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function me(n,e,t){return n.config[e]===void 0&&n.parent?me(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?me(n.parent,e,t):null}):n.config[e]}function Ps(n){const e=n.filter(o=>o.type==="extension"),t=n.filter(o=>o.type==="node"),r=n.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:r}}function rp(n){const e=[],{nodeExtensions:t,markExtensions:r}=Ps(n),o=[...t,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=me(s,"addGlobalAttributes",l);if(!a)return;a().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,m])=>{e.push({type:d,name:h,attribute:{...i,...m}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=me(s,"addAttributes",l);if(!a)return;const c=a();Object.entries(c).forEach(([u,d])=>{const h={...i,...d};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Ze(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function mt(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const l=i?i.split(" "):[],a=r[o]?r[o].split(" "):[],c=l.filter(u=>!a.includes(u));r[o]=[...a,...c].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function cl(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,r)=>mt(t,r),{})}function op(n){return typeof n=="function"}function De(n,e=void 0,...t){return op(n)?e?n.bind(e)(...t):n(...t):n}function _5(n={}){return Object.keys(n).length===0&&n.constructor===Object}function L5(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function qu(n,e){return n.style?n:{...n,getAttrs:t=>{const r=n.getAttrs?n.getAttrs(t):n.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(t):L5(t.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...r,...o}}}}function ed(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&_5(t)?!1:t!=null))}function R5(n,e){var t;const r=rp(n),{nodeExtensions:o,markExtensions:i}=Ps(n),s=(t=o.find(c=>me(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.map(c=>{const u=r.filter(C=>C.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},h=n.reduce((C,S)=>{const x=me(S,"extendNodeSchema",d);return{...C,...x?x(c):{}}},{}),m=ed({...h,content:De(me(c,"content",d)),marks:De(me(c,"marks",d)),group:De(me(c,"group",d)),inline:De(me(c,"inline",d)),atom:De(me(c,"atom",d)),selectable:De(me(c,"selectable",d)),draggable:De(me(c,"draggable",d)),code:De(me(c,"code",d)),defining:De(me(c,"defining",d)),isolating:De(me(c,"isolating",d)),attrs:Object.fromEntries(u.map(C=>{var S;return[C.name,{default:(S=C==null?void 0:C.attribute)===null||S===void 0?void 0:S.default}]}))}),p=De(me(c,"parseHTML",d));p&&(m.parseDOM=p.map(C=>qu(C,u)));const g=me(c,"renderHTML",d);g&&(m.toDOM=C=>g({node:C,HTMLAttributes:cl(C,u)}));const v=me(c,"renderText",d);return v&&(m.toText=v),[c.name,m]})),a=Object.fromEntries(i.map(c=>{const u=r.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},h=n.reduce((v,C)=>{const S=me(C,"extendMarkSchema",d);return{...v,...S?S(c):{}}},{}),m=ed({...h,inclusive:De(me(c,"inclusive",d)),excludes:De(me(c,"excludes",d)),group:De(me(c,"group",d)),spanning:De(me(c,"spanning",d)),code:De(me(c,"code",d)),attrs:Object.fromEntries(u.map(v=>{var C;return[v.name,{default:(C=v==null?void 0:v.attribute)===null||C===void 0?void 0:C.default}]}))}),p=De(me(c,"parseHTML",d));p&&(m.parseDOM=p.map(v=>qu(v,u)));const g=me(c,"renderHTML",d);return g&&(m.toDOM=v=>g({mark:v,HTMLAttributes:cl(v,u)})),[c.name,m]}));return new Uv({topNode:s,nodes:l,marks:a})}function va(n,e){return e.nodes[n]||e.marks[n]||null}function td(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const P5=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var a,c;const u=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";t+=u.slice(0,Math.max(0,r-i))}),t};function nc(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class ip{constructor(e){this.find=e.find,this.handler=e.handler}}const B5=(n,e)=>{if(nc(e))return e.exec(n);const t=e(n);if(!t)return null;const r=[t.text];return r.index=t.index,r.input=n,r.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(t.replaceWith)),r};function ya(n){var e;const{editor:t,from:r,to:o,text:i,rules:s,plugin:l}=n,{view:a}=t;if(a.composing)return!1;const c=a.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=P5(c)+i;return s.forEach(h=>{if(u)return;const m=B5(d,h.find);if(!m)return;const p=a.state.tr,g=Ls({state:a.state,transaction:p}),v={from:r-(m[0].length-i.length),to:o},{commands:C,chain:S,can:x}=new Rs({editor:t,state:g});h.handler({state:g,range:v,match:m,commands:C,chain:S,can:x})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:r,to:o,text:i}),a.dispatch(p),u=!0)}),u}function $5(n){const{editor:e,rules:t}=n,r=new Et({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,l){return ya({editor:e,from:i,to:s,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&ya({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?ya({editor:e,from:s.pos,to:s.pos,text:`
20
+ `,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function F5(n){return typeof n=="number"}class V5{constructor(e){this.find=e.find,this.handler=e.handler}}const z5=(n,e)=>{if(nc(e))return[...n.matchAll(e)];const t=e(n);return t?t.map(r=>{const o=[r.text];return o.index=r.index,o.input=n,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function H5(n){const{editor:e,state:t,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=n,{commands:a,chain:c,can:u}=new Rs({editor:e,state:t}),d=[];return t.doc.nodesBetween(r,o,(m,p)=>{if(!m.isTextblock||m.type.spec.code)return;const g=Math.max(r,p),v=Math.min(o,p+m.content.size),C=m.textBetween(g-p,v-p,void 0,"");z5(C,i.find).forEach(x=>{if(x.index===void 0)return;const b=g+x.index+1,D=b+x[0].length,T={from:t.tr.mapping.map(b),to:t.tr.mapping.map(D)},B=i.handler({state:t,range:T,match:x,commands:a,chain:c,can:u,pasteEvent:s,dropEvent:l});d.push(B)})}),d.every(m=>m!==null)}function U5(n){const{editor:e,rules:t}=n;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),l=new DragEvent("drop");return t.map(c=>new Et({view(u){const d=h=>{var m;r=!((m=u.dom.parentElement)===null||m===void 0)&&m.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(u,d)=>(i=r===u.dom.parentElement,l=d,!1),paste:(u,d)=>{var h;const m=(h=d.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=d,o=!!(m!=null&&m.includes("data-pm-slice")),!1}}},appendTransaction:(u,d,h)=>{const m=u[0],p=m.getMeta("uiEvent")==="paste"&&!o,g=m.getMeta("uiEvent")==="drop"&&!i;if(!p&&!g)return;const v=d.doc.content.findDiffStart(h.doc.content),C=d.doc.content.findDiffEnd(h.doc.content);if(!F5(v)||!C||v===C.b)return;const S=h.tr,x=Ls({state:h,transaction:S});if(!(!H5({editor:e,state:x,from:Math.max(v-1,0),to:C.b-1,rule:c,pasteEvent:s,dropEvent:l})||!S.steps.length))return l=new DragEvent("drop"),s=new ClipboardEvent("paste"),S}}))}function j5(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class Pr{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Pr.resolve(e),this.schema=R5(this.extensions,t),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:va(r.name,this.schema)};r.type==="mark"&&(!((o=De(me(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=me(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const l=me(r,"onCreate",i);l&&this.editor.on("create",l);const a=me(r,"onUpdate",i);a&&this.editor.on("update",a);const c=me(r,"onSelectionUpdate",i);c&&this.editor.on("selectionUpdate",c);const u=me(r,"onTransaction",i);u&&this.editor.on("transaction",u);const d=me(r,"onFocus",i);d&&this.editor.on("focus",d);const h=me(r,"onBlur",i);h&&this.editor.on("blur",h);const m=me(r,"onDestroy",i);m&&this.editor.on("destroy",m)})}static resolve(e){const t=Pr.sort(Pr.flatten(e)),r=j5(t.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},o=me(t,"addExtensions",r);return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=me(r,"priority")||100,s=me(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:va(t.name,this.schema)},o=me(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=Pr.sort([...this.extensions].reverse()),r=[],o=[],i=t.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:va(s.name,this.schema)},a=[],c=me(s,"addKeyboardShortcuts",l);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>an.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([v,C])=>[v,()=>C({editor:e})]));u={...u,...g}}const d=i5(u);a.push(d);const h=me(s,"addInputRules",l);td(s,e.options.enableInputRules)&&h&&r.push(...h());const m=me(s,"addPasteRules",l);td(s,e.options.enablePasteRules)&&m&&o.push(...m());const p=me(s,"addProseMirrorPlugins",l);if(p){const g=p();a.push(...g)}return a}).flat();return[$5({editor:e,rules:r}),...U5({editor:e,rules:o}),...i]}get attributes(){return rp(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Ps(this.extensions);return Object.fromEntries(t.filter(r=>!!me(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:Ze(r.name,this.schema)},s=me(r,"addNodeView",i);if(!s)return[];const l=(a,c,u,d)=>{const h=cl(a,o);return s()({editor:e,node:a,getPos:u,decorations:d,HTMLAttributes:h,extension:r})};return[r.name,l]}))}}function W5(n){return Object.prototype.toString.call(n).slice(8,-1)}function ba(n){return W5(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Bs(n,e){const t={...n};return ba(n)&&ba(e)&&Object.keys(e).forEach(r=>{ba(e[r])?r in n?t[r]=Bs(n[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}class Bt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=De(me(this,"addOptions",{name:this.name}))),this.storage=De(me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bt(e)}configure(e={}){const t=this.extend();return t.options=Bs(this.options,e),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Bt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=De(me(t,"addOptions",{name:t.name})),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}}function sp(n,e,t){const{from:r,to:o}=e,{blockSeparator:i=`
21
+
22
+ `,textSerializers:s={}}=t||{};let l="",a=!0;return n.nodesBetween(r,o,(c,u,d,h)=>{var m;const p=s==null?void 0:s[c.type.name];p?(c.isBlock&&!a&&(l+=i,a=!0),d&&(l+=p({node:c,pos:u,parent:d,index:h,range:e}))):c.isText?(l+=(m=c==null?void 0:c.text)===null||m===void 0?void 0:m.slice(Math.max(r,u)-u,o-u),a=!1):c.isBlock&&!a&&(l+=i,a=!0)}),l}function ap(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const K5=Bt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Et({key:new Kt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),l=Math.max(...i.map(u=>u.$to.pos)),a=ap(t);return sp(r,{from:s,to:l},{textSerializers:a})}}})]}}),G5=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Y5=(n=!1)=>({commands:e})=>e.setContent("",n),J5=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:o}=r;return t&&o.forEach(({$from:i,$to:s})=>{n.doc.nodesBetween(i.pos,s.pos,(l,a)=>{if(l.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(a)),h=c.resolve(u.map(a+l.nodeSize)),m=d.blockRange(h);if(!m)return;const p=eo(m);if(l.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(m.start,g)}(p||p===0)&&e.lift(m,p)})}),!0},Z5=n=>e=>n(e),X5=()=>({state:n,dispatch:e})=>b5(n,e),Q5=(n,e)=>({editor:t,tr:r})=>{const{state:o}=t,i=o.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Le(r.doc.resolve(s-1))),!0},q5=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const o=n.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const l=o.before(i),a=o.after(i);n.delete(l,a).scrollIntoView()}return!0}return!1},eb=n=>({tr:e,state:t,dispatch:r})=>{const o=Ze(n,t.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),c=i.after(s);e.delete(a,c).scrollIntoView()}return!0}return!1},tb=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},nb=()=>({state:n,dispatch:e})=>a5(n,e),rb=()=>({commands:n})=>n.keyboardShortcut("Enter"),ob=()=>({state:n,dispatch:e})=>y5(n,e);function Pi(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:nc(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function ul(n,e,t={}){return n.find(r=>r.type===e&&Pi(r.attrs,t))}function ib(n,e,t={}){return!!ul(n,e,t)}function rc(n,e,t={}){if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if(n.parentOffset===r.offset&&r.offset!==0&&(r=n.parent.childBefore(n.parentOffset)),!r.node)return;const o=ul([...r.node.marks],e,t);if(!o)return;let i=r.index,s=n.start()+r.offset,l=i+1,a=s+r.node.nodeSize;for(ul([...r.node.marks],e,t);i>0&&o.isInSet(n.parent.child(i-1).marks);)i-=1,s-=n.parent.child(i).nodeSize;for(;l<n.parent.childCount&&ib([...n.parent.child(l).marks],e,t);)a+=n.parent.child(l).nodeSize,l+=1;return{from:s,to:a}}function Un(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const sb=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const i=Un(n,r.schema),{doc:s,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const d=rc(a,i,e);if(d&&d.from<=c&&d.to>=u){const h=Le.create(s,d.from,d.to);t.setSelection(h)}}return!0},ab=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r<t.length;r+=1)if(t[r](e))return!0;return!1};function oc(n){return n instanceof Le}function mn(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function lp(n,e=null){if(!e)return null;const t=_e.atStart(n),r=_e.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return r;const o=t.from,i=r.to;return e==="all"?Le.create(n,mn(0,o,i),mn(n.content.size,o,i)):Le.create(n,mn(e,o,i),mn(e,o,i))}function ic(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const lb=(n=null,e={})=>({editor:t,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{ic()&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(i&&n===null&&!oc(t.state.selection))return s(),!0;const l=lp(o.doc,n)||t.state.selection,a=t.state.selection.eq(l);return i&&(a||o.setSelection(l),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},cb=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),ub=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e);function nd(n){const e=`<body>${n}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function Bi(n,e,t){if(t={slice:!0,parseOptions:{},...t},typeof n=="object"&&n!==null)try{return Array.isArray(n)&&n.length>0?se.fromArray(n.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(n)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",r),Bi("",e,t)}if(typeof n=="string"){const r=Hr.fromSchema(e);return t.slice?r.parseSlice(nd(n),t.parseOptions).content:r.parse(nd(n),t.parseOptions)}return Bi("",e,t)}function db(n,e,t){const r=n.steps.length-1;if(r<e)return;const o=n.steps[r];if(!(o instanceof qe||o instanceof Je))return;const i=n.mapping.maps[r];let s=0;i.forEach((l,a,c,u)=>{s===0&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),t))}const fb=n=>n.toString().startsWith("<"),hb=(n,e,t)=>({tr:r,dispatch:o,editor:i})=>{if(o){t={parseOptions:{},updateSelection:!0,...t};const s=Bi(e,i.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:a}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},c=!0,u=!0;if((fb(s)?s:[s]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),l===a&&u){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,a+=1)}c?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),l,a):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,a):r.insertText(e,l,a):r.replaceWith(l,a,s),t.updateSelection&&db(r,r.steps.length-1,-1)}return!0},pb=()=>({state:n,dispatch:e})=>p5(n,e),mb=()=>({state:n,dispatch:e})=>m5(n,e),gb=()=>({state:n,dispatch:e})=>c5(n,e),vb=()=>({state:n,dispatch:e})=>f5(n,e),yb=()=>({tr:n,state:e,dispatch:t})=>{try{const r=Ms(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},bb=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Ms(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}};function cp(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Eb(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l+=1){const a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))ic()||cp()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(t=`Alt-${t}`),o&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const Cb=n=>({editor:e,view:t,tr:r,dispatch:o})=>{const i=Eb(n).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return a==null||a.steps.forEach(c=>{const u=c.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function No(n,e,t={}){const{from:r,to:o,empty:i}=n.selection,s=e?Ze(e,n.schema):null,l=[];n.doc.nodesBetween(r,o,(d,h)=>{if(d.isText)return;const m=Math.max(r,h),p=Math.min(o,h+d.nodeSize);l.push({node:d,from:m,to:p})});const a=o-r,c=l.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Pi(d.node.attrs,t,{strict:!1}));return i?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=a}const Sb=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return No(t,o,e)?g5(t,r):!1},wb=()=>({state:n,dispatch:e})=>E5(n,e),xb=n=>({state:e,dispatch:t})=>{const r=Ze(n,e.schema);return O5(r)(e,t)},Tb=()=>({state:n,dispatch:e})=>v5(n,e);function $s(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function rd(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,o)=>(t.includes(o)||(r[o]=n[o]),r),{})}const kb=(n,e)=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=$s(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Ze(n,r.schema)),l==="mark"&&(s=Un(n,r.schema)),o&&t.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(c,u)=>{i&&i===c.type&&t.setNodeMarkup(u,void 0,rd(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&t.addMark(u,u+c.nodeSize,s.create(rd(d.attrs,e)))})})}),!0):!1},Ab=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),Ob=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),Mb=()=>({state:n,dispatch:e})=>u5(n,e),Nb=()=>({state:n,dispatch:e})=>h5(n,e),Ib=()=>({state:n,dispatch:e})=>C5(n,e),Db=()=>({state:n,dispatch:e})=>x5(n,e),_b=()=>({state:n,dispatch:e})=>w5(n,e);function up(n,e,t={}){return Bi(n,e,{slice:!1,parseOptions:t})}const Lb=(n,e=!1,t={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,l=up(n,o.schema,t);return i&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function Fs(n,e){const t=Un(e,n.schema),{from:r,to:o,empty:i}=n.selection,s=[];i?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const l=s.find(a=>a.type.name===t.name);return l?{...l.attrs}:{}}function Rb(n,e){const t=new gh(n);return e.forEach(r=>{r.steps.forEach(o=>{t.step(o)})}),t}function Pb(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function Bb(n,e,t){const r=[];return n.nodesBetween(e.from,e.to,(o,i)=>{t(o)&&r.push({node:o,pos:i})}),r}function $b(n,e){for(let t=n.depth;t>0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function sc(n){return e=>$b(e.$from,n)}function Fb(n,e){const t=tn.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function Vb(n,e){const t={from:0,to:n.content.size};return sp(n,t,e)}function zb(n,e){const t=Ze(e,n.schema),{from:r,to:o}=n.selection,i=[];n.doc.nodesBetween(r,o,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===t.name);return s?{...s.attrs}:{}}function dp(n,e){const t=$s(typeof e=="string"?e:e.name,n.schema);return t==="node"?zb(n,e):t==="mark"?Fs(n,e):{}}function Hb(n,e=JSON.stringify){const t={};return n.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(t,o)?!1:t[o]=!0})}function Ub(n){const e=Hb(n);return e.length===1?e:e.filter((t,r)=>!e.filter((i,s)=>s!==r).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function jb(n){const{mapping:e,steps:t}=n,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((l,a)=>{s.push({from:l,to:a})});else{const{from:l,to:a}=t[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a})}s.forEach(({from:l,to:a})=>{const c=e.slice(i).map(l,-1),u=e.slice(i).map(a),d=e.invert().map(c,-1),h=e.invert().map(u);r.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),Ub(r)}function ac(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const i=t.resolve(n-1),s=rc(i,o.type);s&&r.push({mark:o,...s})}):t.nodesBetween(n,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function pi(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const o=n.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function dl(n,e,t={}){const{empty:r,ranges:o}=n.selection,i=e?Un(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Pi(d.attrs,t,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:d,$to:h})=>{const m=d.pos,p=h.pos;n.doc.nodesBetween(m,p,(g,v)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(m,v),S=Math.min(p,v+g.nodeSize),x=S-C;s+=x,l.push(...g.marks.map(b=>({mark:b,from:C,to:S})))})}),s===0)return!1;const a=l.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Pi(d.mark.attrs,t,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=l.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,h)=>d+h.to-h.from,0);return(a>0?a+c:a)>=s}function Wb(n,e,t={}){if(!e)return No(n,null,t)||dl(n,null,t);const r=$s(e,n.schema);return r==="node"?No(n,e,t):r==="mark"?dl(n,e,t):!1}function od(n,e){const{nodeExtensions:t}=Ps(e),r=t.find(s=>s.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=De(me(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function Kb(n){var e;const t=(e=n.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=n.toJSON();return JSON.stringify(t)===JSON.stringify(r)}function Gb(n){return n instanceof Se}function fp(n,e,t){const o=n.state.doc.content.size,i=mn(e,0,o),s=mn(t,0,o),l=n.coordsAtPos(i),a=n.coordsAtPos(s,-1),c=Math.min(l.top,a.top),u=Math.max(l.bottom,a.bottom),d=Math.min(l.left,a.left),h=Math.max(l.right,a.right),m=h-d,p=u-c,C={top:c,bottom:u,left:d,right:h,width:m,height:p,x:d,y:c};return{...C,toJSON:()=>C}}function Yb(n,e,t){var r;const{selection:o}=e;let i=null;if(oc(o)&&(i=o.$cursor),i){const l=(r=n.storedMarks)!==null&&r!==void 0?r:i.marks();return!!t.isInSet(l)||!l.some(a=>a.type.excludes(t))}const{ranges:s}=o;return s.some(({$from:l,$to:a})=>{let c=l.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(l.pos,a.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const m=!h||h.type.allowsMarkType(t),p=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=m&&p}return!c}),c})}const Jb=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:i}=t,{empty:s,ranges:l}=i,a=Un(n,r.schema);if(o)if(s){const c=Fs(r,a);t.addStoredMark(a.create({...c,...e}))}else l.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(h,m)=>{const p=Math.max(m,u),g=Math.min(m+h.nodeSize,d);h.marks.find(C=>C.type===a)?h.marks.forEach(C=>{a===C.type&&t.addMark(p,g,a.create({...C.attrs,...e}))}):t.addMark(p,g,a.create(e))})});return Yb(r,t,a)},Zb=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),Xb=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const i=Ze(n,t.schema);return i.isTextblock?o().command(({commands:s})=>Qu(i,e)(t)?!0:s.clearNodes()).command(({state:s})=>Qu(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Qb=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=mn(n,0,r.content.size),i=Se.create(r,o);e.setSelection(i)}return!0},qb=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:i}=typeof n=="number"?{from:n,to:n}:n,s=Le.atStart(r).from,l=Le.atEnd(r).to,a=mn(o,s,l),c=mn(i,s,l),u=Le.create(r,a,c);e.setSelection(u)}return!0},eE=n=>({state:e,dispatch:t})=>{const r=Ze(n,e.schema);return I5(r)(e,t)};function id(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(o=>e==null?void 0:e.includes(o.type.name));n.tr.ensureMarks(r)}}const tE=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:l,$to:a}=i,c=o.extensionManager.attributes,u=pi(c,l.node().type.name,l.node().attrs);if(i instanceof Se&&i.node.isBlock)return!l.parentOffset||!$r(s,l.pos)?!1:(r&&(n&&id(t,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const d=a.parentOffset===a.parent.content.size;i instanceof Le&&e.deleteSelection();const h=l.depth===0?void 0:Pb(l.node(-1).contentMatchAt(l.indexAfter(-1)));let m=d&&h?[{type:h,attrs:u}]:void 0,p=$r(e.doc,e.mapping.map(l.pos),1,m);if(!m&&!p&&$r(e.doc,e.mapping.map(l.pos),1,h?[{type:h}]:void 0)&&(p=!0,m=h?[{type:h,attrs:u}]:void 0),p&&(e.split(e.mapping.map(l.pos),1,m),h&&!d&&!l.parentOffset&&l.parent.type!==h)){const g=e.mapping.map(l.before()),v=e.doc.resolve(g);l.node(-1).canReplaceWith(v.index(),v.index()+1,h)&&e.setNodeMarkup(e.mapping.map(l.before()),h)}n&&id(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},nE=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var i;const s=Ze(n,t.schema),{$from:l,$to:a}=t.selection,c=t.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(a))return!1;const u=l.node(-1);if(u.type!==s)return!1;const d=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let v=se.empty;const C=l.index(-1)?1:l.index(-2)?2:3;for(let B=l.depth-C;B>=l.depth-3;B-=1)v=se.from(l.node(B).copy(v));const S=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,x=pi(d,l.node().type.name,l.node().attrs),b=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(x))||void 0;v=v.append(se.from(s.createAndFill(null,b)||void 0));const D=l.before(l.depth-(C-1));e.replace(D,l.after(-S),new he(v,4-C,0));let T=-1;e.doc.nodesBetween(D,e.doc.content.size,(B,F)=>{if(T>-1)return!1;B.isTextblock&&B.content.size===0&&(T=F+1)}),T>-1&&e.setSelection(Le.near(e.doc.resolve(T))),e.scrollIntoView()}return!0}const h=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,m=pi(d,u.type.name,u.attrs),p=pi(d,l.node().type.name,l.node().attrs);e.delete(l.pos,a.pos);const g=h?[{type:s,attrs:m},{type:h,attrs:p}]:[{type:s,attrs:m}];if(!$r(e.doc,l.pos,2))return!1;if(r){const{selection:v,storedMarks:C}=t,{splittableMarks:S}=o.extensionManager,x=C||v.$to.parentOffset&&v.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!x||!r)return!0;const b=x.filter(D=>S.includes(D.type.name));e.ensureMarks(b)}return!0},Ea=(n,e)=>{const t=sc(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&zn(n.doc,t.pos)&&n.join(t.pos),!0},Ca=(n,e)=>{const t=sc(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&zn(n.doc,r)&&n.join(r),!0},rE=(n,e,t,r={})=>({editor:o,tr:i,state:s,dispatch:l,chain:a,commands:c,can:u})=>{const{extensions:d,splittableMarks:h}=o.extensionManager,m=Ze(n,s.schema),p=Ze(e,s.schema),{selection:g,storedMarks:v}=s,{$from:C,$to:S}=g,x=C.blockRange(S),b=v||g.$to.parentOffset&&g.$from.marks();if(!x)return!1;const D=sc(T=>od(T.type.name,d))(g);if(x.depth>=1&&D&&x.depth-D.depth<=1){if(D.node.type===m)return c.liftListItem(p);if(od(D.node.type.name,d)&&m.validContent(D.node.content)&&l)return a().command(()=>(i.setNodeMarkup(D.pos,m),!0)).command(()=>Ea(i,m)).command(()=>Ca(i,m)).run()}return!t||!b||!l?a().command(()=>u().wrapInList(m,r)?!0:c.clearNodes()).wrapInList(m,r).command(()=>Ea(i,m)).command(()=>Ca(i,m)).run():a().command(()=>{const T=u().wrapInList(m,r),B=b.filter(F=>h.includes(F.type.name));return i.ensureMarks(B),T?!0:c.clearNodes()}).wrapInList(m,r).command(()=>Ea(i,m)).command(()=>Ca(i,m)).run()},oE=(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=t,s=Un(n,r.schema);return dl(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},iE=(n,e,t={})=>({state:r,commands:o})=>{const i=Ze(n,r.schema),s=Ze(e,r.schema);return No(r,i,t)?o.setNode(s):o.setNode(i,t)},sE=(n,e={})=>({state:t,commands:r})=>{const o=Ze(n,t.schema);return No(t,o,e)?r.lift(o):r.wrapIn(o,e)},aE=()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r<t.length;r+=1){const o=t[r];let i;if(o.spec.isInputRules&&(i=o.getState(n))){if(e){const s=n.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a-=1)s.step(l.steps[a].invert(l.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,n.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},lE=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:o}=t;return r||e&&o.forEach(i=>{n.removeMark(i.$from.pos,i.$to.pos)}),!0},cE=(n,e={})=>({tr:t,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=t,a=Un(n,r.schema),{$from:c,empty:u,ranges:d}=l;if(!o)return!0;if(u&&s){let{from:h,to:m}=l;const p=(i=c.marks().find(v=>v.type===a))===null||i===void 0?void 0:i.attrs,g=rc(c,a,p);g&&(h=g.from,m=g.to),t.removeMark(h,m,a)}else d.forEach(h=>{t.removeMark(h.$from.pos,h.$to.pos,a)});return t.removeStoredMark(a),!0},uE=(n,e={})=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=$s(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Ze(n,r.schema)),l==="mark"&&(s=Un(n,r.schema)),o&&t.selection.ranges.forEach(a=>{const c=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(c,u,(d,h)=>{i&&i===d.type&&t.setNodeMarkup(h,void 0,{...d.attrs,...e}),s&&d.marks.length&&d.marks.forEach(m=>{if(s===m.type){const p=Math.max(h,c),g=Math.min(h+d.nodeSize,u);t.addMark(p,g,s.create({...m.attrs,...e}))}})})}),!0):!1},dE=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return T5(o,e)(t,r)},fE=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return k5(o,e)(t,r)};var hE=Object.freeze({__proto__:null,blur:G5,clearContent:Y5,clearNodes:J5,command:Z5,createParagraphNear:X5,cut:Q5,deleteCurrentNode:q5,deleteNode:eb,deleteRange:tb,deleteSelection:nb,enter:rb,exitCode:ob,extendMarkRange:sb,first:ab,focus:lb,forEach:cb,insertContent:ub,insertContentAt:hb,joinUp:pb,joinDown:mb,joinBackward:gb,joinForward:vb,joinItemBackward:yb,joinItemForward:bb,keyboardShortcut:Cb,lift:Sb,liftEmptyBlock:wb,liftListItem:xb,newlineInCode:Tb,resetAttributes:kb,scrollIntoView:Ab,selectAll:Ob,selectNodeBackward:Mb,selectNodeForward:Nb,selectParentNode:Ib,selectTextblockEnd:Db,selectTextblockStart:_b,setContent:Lb,setMark:Jb,setMeta:Zb,setNode:Xb,setNodeSelection:Qb,setTextSelection:qb,sinkListItem:eE,splitBlock:tE,splitListItem:nE,toggleList:rE,toggleMark:oE,toggleNode:iE,toggleWrap:sE,undoInputRule:aE,unsetAllMarks:lE,unsetMark:cE,updateAttributes:uE,wrapIn:dE,wrapInList:fE});const pE=Bt.create({name:"commands",addCommands(){return{...hE}}}),mE=Bt.create({name:"editable",addProseMirrorPlugins(){return[new Et({key:new Kt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),gE=Bt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new Et({key:new Kt("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),vE=Bt.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:a,doc:c}=l,{empty:u,$anchor:d}=a,{pos:h,parent:m}=d,p=d.parent.isTextblock?l.doc.resolve(h-1):d,g=p.parent.type.spec.isolating,v=d.pos-d.parentOffset,C=g&&p.parent.childCount===1?v===d.pos:_e.atStart(c).from===h;return!u||!C||!m.type.isTextblock||m.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ic()||cp()?i:o},addProseMirrorPlugins(){return[new Et({key:new Kt("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(p=>p.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:o,from:i,to:s}=e.selection,l=_e.atStart(e.doc).from,a=_e.atEnd(e.doc).to;if(o||!(i===l&&s===a)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const d=t.tr,h=Ls({state:t,transaction:d}),{commands:m}=new Rs({editor:this.editor,state:h});if(m.clearNodes(),!!d.steps.length)return d}})]}}),yE=Bt.create({name:"tabindex",addProseMirrorPlugins(){return[new Et({key:new Kt("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var bE=Object.freeze({__proto__:null,ClipboardTextSerializer:K5,Commands:pE,Editable:mE,FocusEvents:gE,Keymap:vE,Tabindex:yE});const EE=`.ProseMirror {
23
23
  position: relative;
24
24
  }
25
25
 
@@ -93,39 +93,39 @@ img.ProseMirror-separator {
93
93
 
94
94
  .tippy-box[data-animation=fade][data-state=hidden] {
95
95
  opacity: 0
96
- }`;function mE(n,e,t){const r=document.querySelector(`style[data-tiptap-style${t?`-${t}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${t?`-${t}`:""}`,""),o.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(o),o}let gE=class extends k5{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),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),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=mE(pE,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!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}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=rp(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(hE):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new Pr(t,this)}createCommandManager(){this.commandManager=new Rs({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=cp(this.options.content,this.schema,this.options.parseOptions),t=ap(e,this.options.autofocus);this.view=new j2(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Rr.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${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(s=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(s)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return up(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,o=typeof e=="string"?t:e;return Fb(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return _b(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
96
+ }`;function CE(n,e,t){const r=document.querySelector(`style[data-tiptap-style${t?`-${t}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${t?`-${t}`:""}`,""),o.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(o),o}let SE=class extends D5{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),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),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=CE(EE,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!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}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=op(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(bE):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new Pr(t,this)}createCommandManager(){this.commandManager=new Rs({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=up(this.options.content,this.schema,this.options.parseOptions),t=lp(e,this.options.autofocus);this.view=new Z2(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Rr.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${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(s=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(s)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return dp(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,o=typeof e=="string"?t:e;return Wb(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Fb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
97
97
 
98
- `,textSerializers:r={}}=e||{};return Lb(this.state.doc,{blockSeparator:t,textSerializers:{...sp(this.schema),...r}})}get isEmpty(){return Vb(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}};function $i(n){return new op({find:n.find,handler:({state:e,range:t,match:r})=>{const o=De(n.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],l=r[0];if(s){const a=l.search(/\S/),c=t.from+l.indexOf(s),u=c+s.length;if(ac(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===n.type&&g!==m.mark.type)).filter(m=>m.to>c).length)return null;u<t.to&&i.delete(u,t.to),c>t.from&&i.delete(t.from+a,c);const h=t.from+a+s.length;i.addMark(t.from+a,h,n.type.create(o||{})),i.removeStoredMark(n.type)}}})}function Fi(n){return new op({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const i=De(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),a=s.doc.resolve(t.from).blockRange(),c=a&&jl(a,n.type,i);if(!c)return null;if(s.wrap(a,c),n.keepMarks&&n.editor){const{selection:d,storedMarks:h}=e,{splittableMarks:m}=n.editor.extensionManager,p=h||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(v=>m.includes(v.type.name));s.ensureMarks(g)}}if(n.keepAttributes){const d=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(d,i).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&zn(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&s.join(t.from-1)}})}class an{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=De(me(this,"addOptions",{name:this.name}))),this.storage=De(me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new an(e)}configure(e={}){const t=this.extend();return t.options=Bs(this.options,e),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new an(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=De(me(t,"addOptions",{name:t.name})),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const a=s.find(c=>(c==null?void 0:c.type.name)===t.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let bn=class fl{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=De(me(this,"addOptions",{name:this.name}))),this.storage=De(me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new fl(e)}configure(e={}){const t=this.extend();return t.options=Bs(this.options,e),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new fl(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=De(me(t,"addOptions",{name:t.name})),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}};function Io(n){return new L5({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const i=De(n.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,l=r[r.length-1],a=r[0];let c=t.to;if(l){const u=a.search(/\S/),d=t.from+a.indexOf(l),h=d+l.length;if(ac(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(v=>v===n.type&&v!==p.mark.type)).filter(p=>p.to>d).length)return null;h<t.to&&s.delete(h,t.to),d>t.from&&s.delete(t.from+u,d),c=t.from+u+l.length,s.addMark(t.from+u,c,n.type.create(i||{})),s.removeStoredMark(n.type)}}})}var ut="top",Tt="bottom",kt="right",dt="left",Uo="auto",to=[ut,Tt,kt,dt],hr="start",Gr="end",fp="clippingParents",lc="viewport",Mr="popper",hp="reference",hl=to.reduce(function(n,e){return n.concat([e+"-"+hr,e+"-"+Gr])},[]),cc=[].concat(to,[Uo]).reduce(function(n,e){return n.concat([e,e+"-"+hr,e+"-"+Gr])},[]),pp="beforeRead",mp="read",gp="afterRead",vp="beforeMain",yp="main",bp="afterMain",Ep="beforeWrite",Cp="write",Sp="afterWrite",Vi=[pp,mp,gp,vp,yp,bp,Ep,Cp,Sp];function ln(n){return n?(n.nodeName||"").toLowerCase():null}function At(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function pr(n){var e=At(n).Element;return n instanceof e||n instanceof Element}function xt(n){var e=At(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function uc(n){if(typeof ShadowRoot>"u")return!1;var e=At(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function vE(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!xt(i)||!ln(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function yE(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=s.reduce(function(a,c){return a[c]="",a},{});!xt(o)||!ln(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const Vs={name:"applyStyles",enabled:!0,phase:"write",fn:vE,effect:yE,requires:["computeStyles"]};function Ut(n){return n.split("-")[0]}var lr=Math.max,zi=Math.min,Yr=Math.round;function pl(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wp(){return!/^((?!chrome|android).)*safari/i.test(pl())}function Jr(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,i=1;e&&xt(n)&&(o=n.offsetWidth>0&&Yr(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Yr(r.height)/n.offsetHeight||1);var s=pr(n)?At(n):window,l=s.visualViewport,a=!wp()&&t,c=(r.left+(a&&l?l.offsetLeft:0))/o,u=(r.top+(a&&l?l.offsetTop:0))/i,d=r.width/o,h=r.height/i;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function dc(n){var e=Jr(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function xp(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&uc(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wt(n){return At(n).getComputedStyle(n)}function bE(n){return["table","td","th"].indexOf(ln(n))>=0}function jn(n){return((pr(n)?n.ownerDocument:n.document)||window.document).documentElement}function zs(n){return ln(n)==="html"?n:n.assignedSlot||n.parentNode||(uc(n)?n.host:null)||jn(n)}function sd(n){return!xt(n)||Wt(n).position==="fixed"?null:n.offsetParent}function EE(n){var e=/firefox/i.test(pl()),t=/Trident/i.test(pl());if(t&&xt(n)){var r=Wt(n);if(r.position==="fixed")return null}var o=zs(n);for(uc(o)&&(o=o.host);xt(o)&&["html","body"].indexOf(ln(o))<0;){var i=Wt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function jo(n){for(var e=At(n),t=sd(n);t&&bE(t)&&Wt(t).position==="static";)t=sd(t);return t&&(ln(t)==="html"||ln(t)==="body"&&Wt(t).position==="static")?e:t||EE(n)||e}function fc(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function yo(n,e,t){return lr(n,zi(e,t))}function CE(n,e,t){var r=yo(n,e,t);return r>t?t:r}function Tp(){return{top:0,right:0,bottom:0,left:0}}function kp(n){return Object.assign({},Tp(),n)}function Ap(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var SE=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,kp(typeof e!="number"?e:Ap(e,to))};function wE(n){var e,t=n.state,r=n.name,o=n.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,l=Ut(t.placement),a=fc(l),c=[dt,kt].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var d=SE(o.padding,t),h=dc(i),m=a==="y"?ut:dt,p=a==="y"?Tt:kt,g=t.rects.reference[u]+t.rects.reference[a]-s[a]-t.rects.popper[u],v=s[a]-t.rects.reference[a],C=jo(i),S=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,x=g/2-v/2,b=d[m],D=S-h[u]-d[p],T=S/2-h[u]/2+x,B=yo(b,T,D),F=a;t.modifiersData[r]=(e={},e[F]=B,e.centerOffset=B-T,e)}}function xE(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(xt(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!xp(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const Op={name:"arrow",enabled:!0,phase:"main",fn:wE,effect:xE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(n){return n.split("-")[1]}var TE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kE(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:Yr(t*o)/o||0,y:Yr(r*o)/o||0}}function ad(n){var e,t=n.popper,r=n.popperRect,o=n.placement,i=n.variation,s=n.offsets,l=n.position,a=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,m=h===void 0?0:h,p=s.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var C=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),x=dt,b=ut,D=window;if(c){var T=jo(t),B="clientHeight",F="clientWidth";if(T===At(t)&&(T=jn(t),Wt(T).position!=="static"&&l==="absolute"&&(B="scrollHeight",F="scrollWidth")),T=T,o===ut||(o===dt||o===kt)&&i===Gr){b=Tt;var V=d&&T===D&&D.visualViewport?D.visualViewport.height:T[B];g-=V-r.height,g*=a?1:-1}if(o===dt||(o===ut||o===Tt)&&i===Gr){x=kt;var $=d&&T===D&&D.visualViewport?D.visualViewport.width:T[F];m-=$-r.width,m*=a?1:-1}}var P=Object.assign({position:l},c&&TE),R=u===!0?kE({x:m,y:g},At(t)):{x:m,y:g};if(m=R.x,g=R.y,a){var H;return Object.assign({},P,(H={},H[b]=S?"0":"",H[x]=C?"0":"",H.transform=(D.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",H))}return Object.assign({},P,(e={},e[b]=S?g+"px":"",e[x]=C?m+"px":"",e.transform="",e))}function AE(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,l=t.roundOffsets,a=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var c=Wt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(d){return c.indexOf(d)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
98
+ `,textSerializers:r={}}=e||{};return Vb(this.state.doc,{blockSeparator:t,textSerializers:{...ap(this.schema),...r}})}get isEmpty(){return Kb(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}};function $i(n){return new ip({find:n.find,handler:({state:e,range:t,match:r})=>{const o=De(n.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],l=r[0];if(s){const a=l.search(/\S/),c=t.from+l.indexOf(s),u=c+s.length;if(ac(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===n.type&&g!==m.mark.type)).filter(m=>m.to>c).length)return null;u<t.to&&i.delete(u,t.to),c>t.from&&i.delete(t.from+a,c);const h=t.from+a+s.length;i.addMark(t.from+a,h,n.type.create(o||{})),i.removeStoredMark(n.type)}}})}function Fi(n){return new ip({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const i=De(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),a=s.doc.resolve(t.from).blockRange(),c=a&&jl(a,n.type,i);if(!c)return null;if(s.wrap(a,c),n.keepMarks&&n.editor){const{selection:d,storedMarks:h}=e,{splittableMarks:m}=n.editor.extensionManager,p=h||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(v=>m.includes(v.type.name));s.ensureMarks(g)}}if(n.keepAttributes){const d=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(d,i).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&zn(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&s.join(t.from-1)}})}class an{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=De(me(this,"addOptions",{name:this.name}))),this.storage=De(me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new an(e)}configure(e={}){const t=this.extend();return t.options=Bs(this.options,e),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new an(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=De(me(t,"addOptions",{name:t.name})),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const a=s.find(c=>(c==null?void 0:c.type.name)===t.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let bn=class fl{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=De(me(this,"addOptions",{name:this.name}))),this.storage=De(me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new fl(e)}configure(e={}){const t=this.extend();return t.options=Bs(this.options,e),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new fl(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=De(me(t,"addOptions",{name:t.name})),t.storage=De(me(t,"addStorage",{name:t.name,options:t.options})),t}};function Io(n){return new V5({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const i=De(n.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,l=r[r.length-1],a=r[0];let c=t.to;if(l){const u=a.search(/\S/),d=t.from+a.indexOf(l),h=d+l.length;if(ac(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(v=>v===n.type&&v!==p.mark.type)).filter(p=>p.to>d).length)return null;h<t.to&&s.delete(h,t.to),d>t.from&&s.delete(t.from+u,d),c=t.from+u+l.length,s.addMark(t.from+u,c,n.type.create(i||{})),s.removeStoredMark(n.type)}}})}var ut="top",Tt="bottom",kt="right",dt="left",Uo="auto",to=[ut,Tt,kt,dt],hr="start",Gr="end",hp="clippingParents",lc="viewport",Mr="popper",pp="reference",hl=to.reduce(function(n,e){return n.concat([e+"-"+hr,e+"-"+Gr])},[]),cc=[].concat(to,[Uo]).reduce(function(n,e){return n.concat([e,e+"-"+hr,e+"-"+Gr])},[]),mp="beforeRead",gp="read",vp="afterRead",yp="beforeMain",bp="main",Ep="afterMain",Cp="beforeWrite",Sp="write",wp="afterWrite",Vi=[mp,gp,vp,yp,bp,Ep,Cp,Sp,wp];function ln(n){return n?(n.nodeName||"").toLowerCase():null}function At(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function pr(n){var e=At(n).Element;return n instanceof e||n instanceof Element}function xt(n){var e=At(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function uc(n){if(typeof ShadowRoot>"u")return!1;var e=At(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function wE(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!xt(i)||!ln(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function xE(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=s.reduce(function(a,c){return a[c]="",a},{});!xt(o)||!ln(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const Vs={name:"applyStyles",enabled:!0,phase:"write",fn:wE,effect:xE,requires:["computeStyles"]};function Ut(n){return n.split("-")[0]}var lr=Math.max,zi=Math.min,Yr=Math.round;function pl(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xp(){return!/^((?!chrome|android).)*safari/i.test(pl())}function Jr(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,i=1;e&&xt(n)&&(o=n.offsetWidth>0&&Yr(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Yr(r.height)/n.offsetHeight||1);var s=pr(n)?At(n):window,l=s.visualViewport,a=!xp()&&t,c=(r.left+(a&&l?l.offsetLeft:0))/o,u=(r.top+(a&&l?l.offsetTop:0))/i,d=r.width/o,h=r.height/i;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function dc(n){var e=Jr(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function Tp(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&uc(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wt(n){return At(n).getComputedStyle(n)}function TE(n){return["table","td","th"].indexOf(ln(n))>=0}function jn(n){return((pr(n)?n.ownerDocument:n.document)||window.document).documentElement}function zs(n){return ln(n)==="html"?n:n.assignedSlot||n.parentNode||(uc(n)?n.host:null)||jn(n)}function sd(n){return!xt(n)||Wt(n).position==="fixed"?null:n.offsetParent}function kE(n){var e=/firefox/i.test(pl()),t=/Trident/i.test(pl());if(t&&xt(n)){var r=Wt(n);if(r.position==="fixed")return null}var o=zs(n);for(uc(o)&&(o=o.host);xt(o)&&["html","body"].indexOf(ln(o))<0;){var i=Wt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function jo(n){for(var e=At(n),t=sd(n);t&&TE(t)&&Wt(t).position==="static";)t=sd(t);return t&&(ln(t)==="html"||ln(t)==="body"&&Wt(t).position==="static")?e:t||kE(n)||e}function fc(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function yo(n,e,t){return lr(n,zi(e,t))}function AE(n,e,t){var r=yo(n,e,t);return r>t?t:r}function kp(){return{top:0,right:0,bottom:0,left:0}}function Ap(n){return Object.assign({},kp(),n)}function Op(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var OE=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ap(typeof e!="number"?e:Op(e,to))};function ME(n){var e,t=n.state,r=n.name,o=n.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,l=Ut(t.placement),a=fc(l),c=[dt,kt].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var d=OE(o.padding,t),h=dc(i),m=a==="y"?ut:dt,p=a==="y"?Tt:kt,g=t.rects.reference[u]+t.rects.reference[a]-s[a]-t.rects.popper[u],v=s[a]-t.rects.reference[a],C=jo(i),S=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,x=g/2-v/2,b=d[m],D=S-h[u]-d[p],T=S/2-h[u]/2+x,B=yo(b,T,D),F=a;t.modifiersData[r]=(e={},e[F]=B,e.centerOffset=B-T,e)}}function NE(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(xt(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Tp(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const Mp={name:"arrow",enabled:!0,phase:"main",fn:ME,effect:NE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(n){return n.split("-")[1]}var IE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DE(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:Yr(t*o)/o||0,y:Yr(r*o)/o||0}}function ad(n){var e,t=n.popper,r=n.popperRect,o=n.placement,i=n.variation,s=n.offsets,l=n.position,a=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,m=h===void 0?0:h,p=s.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var C=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),x=dt,b=ut,D=window;if(c){var T=jo(t),B="clientHeight",F="clientWidth";if(T===At(t)&&(T=jn(t),Wt(T).position!=="static"&&l==="absolute"&&(B="scrollHeight",F="scrollWidth")),T=T,o===ut||(o===dt||o===kt)&&i===Gr){b=Tt;var V=d&&T===D&&D.visualViewport?D.visualViewport.height:T[B];g-=V-r.height,g*=a?1:-1}if(o===dt||(o===ut||o===Tt)&&i===Gr){x=kt;var $=d&&T===D&&D.visualViewport?D.visualViewport.width:T[F];m-=$-r.width,m*=a?1:-1}}var P=Object.assign({position:l},c&&IE),R=u===!0?DE({x:m,y:g},At(t)):{x:m,y:g};if(m=R.x,g=R.y,a){var H;return Object.assign({},P,(H={},H[b]=S?"0":"",H[x]=C?"0":"",H.transform=(D.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",H))}return Object.assign({},P,(e={},e[b]=S?g+"px":"",e[x]=C?m+"px":"",e.transform="",e))}function _E(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,l=t.roundOffsets,a=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var c=Wt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(d){return c.indexOf(d)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
99
99
 
100
100
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
101
101
 
102
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Ut(e.placement),variation:Zr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ad(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ad(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const hc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AE,data:{}};var ti={passive:!0};function OE(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=At(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",t.update,ti)}),l&&a.addEventListener("resize",t.update,ti),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",t.update,ti)}),l&&a.removeEventListener("resize",t.update,ti)}}const pc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OE,data:{}};var ME={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(n){return n.replace(/left|right|bottom|top/g,function(e){return ME[e]})}var NE={start:"end",end:"start"};function ld(n){return n.replace(/start|end/g,function(e){return NE[e]})}function mc(n){var e=At(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function gc(n){return Jr(jn(n)).left+mc(n).scrollLeft}function IE(n,e){var t=At(n),r=jn(n),o=t.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var c=wp();(c||!c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+gc(n),y:a}}function DE(n){var e,t=jn(n),r=mc(n),o=(e=n.ownerDocument)==null?void 0:e.body,i=lr(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=lr(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+gc(n),a=-r.scrollTop;return Wt(o||t).direction==="rtl"&&(l+=lr(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function vc(n){var e=Wt(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function Mp(n){return["html","body","#document"].indexOf(ln(n))>=0?n.ownerDocument.body:xt(n)&&vc(n)?n:Mp(zs(n))}function bo(n,e){var t;e===void 0&&(e=[]);var r=Mp(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),i=At(r),s=o?[i].concat(i.visualViewport||[],vc(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(bo(zs(s)))}function ml(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function _E(n,e){var t=Jr(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function cd(n,e,t){return e===lc?ml(IE(n,t)):pr(e)?_E(e,t):ml(DE(jn(n)))}function LE(n){var e=bo(zs(n)),t=["absolute","fixed"].indexOf(Wt(n).position)>=0,r=t&&xt(n)?jo(n):n;return pr(r)?e.filter(function(o){return pr(o)&&xp(o,r)&&ln(o)!=="body"}):[]}function RE(n,e,t,r){var o=e==="clippingParents"?LE(n):[].concat(e),i=[].concat(o,[t]),s=i[0],l=i.reduce(function(a,c){var u=cd(n,c,r);return a.top=lr(u.top,a.top),a.right=zi(u.right,a.right),a.bottom=zi(u.bottom,a.bottom),a.left=lr(u.left,a.left),a},cd(n,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Np(n){var e=n.reference,t=n.element,r=n.placement,o=r?Ut(r):null,i=r?Zr(r):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case ut:a={x:s,y:e.y-t.height};break;case Tt:a={x:s,y:e.y+e.height};break;case kt:a={x:e.x+e.width,y:l};break;case dt:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?fc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case hr:a[c]=a[c]-(e[u]/2-t[u]/2);break;case Gr:a[c]=a[c]+(e[u]/2-t[u]/2);break}}return a}function Xr(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,l=t.boundary,a=l===void 0?fp:l,c=t.rootBoundary,u=c===void 0?lc:c,d=t.elementContext,h=d===void 0?Mr:d,m=t.altBoundary,p=m===void 0?!1:m,g=t.padding,v=g===void 0?0:g,C=kp(typeof v!="number"?v:Ap(v,to)),S=h===Mr?hp:Mr,x=n.rects.popper,b=n.elements[p?S:h],D=RE(pr(b)?b:b.contextElement||jn(n.elements.popper),a,u,s),T=Jr(n.elements.reference),B=Np({reference:T,element:x,strategy:"absolute",placement:o}),F=ml(Object.assign({},x,B)),V=h===Mr?F:T,$={top:D.top-V.top+C.top,bottom:V.bottom-D.bottom+C.bottom,left:D.left-V.left+C.left,right:V.right-D.right+C.right},P=n.modifiersData.offset;if(h===Mr&&P){var R=P[o];Object.keys($).forEach(function(H){var Y=[kt,Tt].indexOf(H)>=0?1:-1,Z=[ut,Tt].indexOf(H)>=0?"y":"x";$[H]+=R[Z]*Y})}return $}function PE(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,i=t.rootBoundary,s=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?cc:a,u=Zr(r),d=u?l?hl:hl.filter(function(p){return Zr(p)===u}):to,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var m=h.reduce(function(p,g){return p[g]=Xr(n,{placement:g,boundary:o,rootBoundary:i,padding:s})[Ut(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function BE(n){if(Ut(n)===Uo)return[];var e=mi(n);return[ld(n),e,ld(e)]}function $E(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!0:s,a=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,h=t.altBoundary,m=t.flipVariations,p=m===void 0?!0:m,g=t.allowedAutoPlacements,v=e.options.placement,C=Ut(v),S=C===v,x=a||(S||!p?[mi(v)]:BE(v)),b=[v].concat(x).reduce(function(Ae,Te){return Ae.concat(Ut(Te)===Uo?PE(e,{placement:Te,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):Te)},[]),D=e.rects.reference,T=e.rects.popper,B=new Map,F=!0,V=b[0],$=0;$<b.length;$++){var P=b[$],R=Ut(P),H=Zr(P)===hr,Y=[ut,Tt].indexOf(R)>=0,Z=Y?"width":"height",X=Xr(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),oe=Y?H?kt:dt:H?Tt:ut;D[Z]>T[Z]&&(oe=mi(oe));var j=mi(oe),ce=[];if(i&&ce.push(X[R]<=0),l&&ce.push(X[oe]<=0,X[j]<=0),ce.every(function(Ae){return Ae})){V=P,F=!1;break}B.set(P,ce)}if(F)for(var fe=p?3:1,be=function(Te){var Oe=b.find(function(ve){var A=B.get(ve);if(A)return A.slice(0,Te).every(function(M){return M})});if(Oe)return V=Oe,"break"},we=fe;we>0;we--){var Ee=be(we);if(Ee==="break")break}e.placement!==V&&(e.modifiersData[r]._skip=!0,e.placement=V,e.reset=!0)}}const Ip={name:"flip",enabled:!0,phase:"main",fn:$E,requiresIfExists:["offset"],data:{_skip:!1}};function ud(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function dd(n){return[ut,kt,Tt,dt].some(function(e){return n[e]>=0})}function FE(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Xr(e,{elementContext:"reference"}),l=Xr(e,{altBoundary:!0}),a=ud(s,r),c=ud(l,o,i),u=dd(a),d=dd(c);e.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Dp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FE};function VE(n,e,t){var r=Ut(n),o=[dt,ut].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[dt,kt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function zE(n){var e=n.state,t=n.options,r=n.name,o=t.offset,i=o===void 0?[0,0]:o,s=cc.reduce(function(u,d){return u[d]=VE(d,e.rects,i),u},{}),l=s[e.placement],a=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const _p={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zE};function HE(n){var e=n.state,t=n.name;e.modifiersData[t]=Np({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const yc={name:"popperOffsets",enabled:!0,phase:"read",fn:HE,data:{}};function UE(n){return n==="x"?"y":"x"}function jE(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!1:s,a=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,h=t.tether,m=h===void 0?!0:h,p=t.tetherOffset,g=p===void 0?0:p,v=Xr(e,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),C=Ut(e.placement),S=Zr(e.placement),x=!S,b=fc(C),D=UE(b),T=e.modifiersData.popperOffsets,B=e.rects.reference,F=e.rects.popper,V=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,$=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(T){if(i){var H,Y=b==="y"?ut:dt,Z=b==="y"?Tt:kt,X=b==="y"?"height":"width",oe=T[b],j=oe+v[Y],ce=oe-v[Z],fe=m?-F[X]/2:0,be=S===hr?B[X]:F[X],we=S===hr?-F[X]:-B[X],Ee=e.elements.arrow,Ae=m&&Ee?dc(Ee):{width:0,height:0},Te=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Tp(),Oe=Te[Y],ve=Te[Z],A=yo(0,B[X],Ae[X]),M=x?B[X]/2-fe-A-Oe-$.mainAxis:be-A-Oe-$.mainAxis,w=x?-B[X]/2+fe+A+ve+$.mainAxis:we+A+ve+$.mainAxis,O=e.elements.arrow&&jo(e.elements.arrow),y=O?b==="y"?O.clientTop||0:O.clientLeft||0:0,E=(H=P==null?void 0:P[b])!=null?H:0,N=oe+M-E-y,I=oe+w-E,_=yo(m?zi(j,N):j,oe,m?lr(ce,I):ce);T[b]=_,R[b]=_-oe}if(l){var L,z=b==="x"?ut:dt,W=b==="x"?Tt:kt,U=T[D],K=D==="y"?"height":"width",G=U+v[z],q=U-v[W],ue=[ut,dt].indexOf(C)!==-1,ge=(L=P==null?void 0:P[D])!=null?L:0,Ne=ue?G:U-B[K]-F[K]-ge+$.altAxis,Fe=ue?U+B[K]+F[K]-ge-$.altAxis:q,$e=m&&ue?CE(Ne,U,Fe):yo(m?Ne:G,U,m?Fe:q);T[D]=$e,R[D]=$e-U}e.modifiersData[r]=R}}const Lp={name:"preventOverflow",enabled:!0,phase:"main",fn:jE,requiresIfExists:["offset"]};function WE(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function KE(n){return n===At(n)||!xt(n)?mc(n):WE(n)}function GE(n){var e=n.getBoundingClientRect(),t=Yr(e.width)/n.offsetWidth||1,r=Yr(e.height)/n.offsetHeight||1;return t!==1||r!==1}function YE(n,e,t){t===void 0&&(t=!1);var r=xt(e),o=xt(e)&&GE(e),i=jn(e),s=Jr(n,o,t),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((ln(e)!=="body"||vc(i))&&(l=KE(e)),xt(e)?(a=Jr(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=gc(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function JE(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function o(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||o(i)}),r}function ZE(n){var e=JE(n);return Vi.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function XE(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function wn(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return[].concat(t).reduce(function(o,i){return o.replace(/%s/,i)},n)}var Yn='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',QE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',fd=["name","enabled","phase","fn","effect","requires","options"];function qE(n){n.forEach(function(e){[].concat(Object.keys(e),fd).filter(function(t,r,o){return o.indexOf(t)===r}).forEach(function(t){switch(t){case"name":typeof e.name!="string"&&console.error(wn(Yn,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(wn(Yn,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Vi.indexOf(e.phase)<0&&console.error(wn(Yn,e.name,'"phase"',"either "+Vi.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(wn(Yn,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(wn(Yn,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(wn(Yn,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(wn(Yn,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+fd.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+t+'" was provided.')}e.requires&&e.requires.forEach(function(r){n.find(function(o){return o.name===r})==null&&console.error(wn(QE,String(e.name),r,r))})})})}function e3(n,e){var t=new Set;return n.filter(function(r){var o=e(r);if(!t.has(o))return t.add(o),!0})}function t3(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var hd="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",n3="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",pd={placement:"bottom",modifiers:[],strategy:"absolute"};function md(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Hs(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,i=o===void 0?pd:o;return function(l,a,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pd,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},d=[],h=!1,m={state:u,setOptions:function(C){var S=typeof C=="function"?C(u.options):C;g(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:pr(l)?bo(l):l.contextElement?bo(l.contextElement):[],popper:bo(a)};var x=ZE(t3([].concat(r,u.options.modifiers)));if(u.orderedModifiers=x.filter(function(P){return P.enabled}),process.env.NODE_ENV!=="production"){var b=e3([].concat(x,u.options.modifiers),function(P){var R=P.name;return R});if(qE(b),Ut(u.options.placement)===Uo){var D=u.orderedModifiers.find(function(P){var R=P.name;return R==="flip"});D||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var T=Wt(a),B=T.marginTop,F=T.marginRight,V=T.marginBottom,$=T.marginLeft;[B,F,V,$].some(function(P){return parseFloat(P)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return p(),m.update()},forceUpdate:function(){if(!h){var C=u.elements,S=C.reference,x=C.popper;if(!md(S,x)){process.env.NODE_ENV!=="production"&&console.error(hd);return}u.rects={reference:YE(S,jo(x),u.options.strategy==="fixed"),popper:dc(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var b=0,D=0;D<u.orderedModifiers.length;D++){if(process.env.NODE_ENV!=="production"&&(b+=1,b>100)){console.error(n3);break}if(u.reset===!0){u.reset=!1,D=-1;continue}var T=u.orderedModifiers[D],B=T.fn,F=T.options,V=F===void 0?{}:F,$=T.name;typeof B=="function"&&(u=B({state:u,options:V,name:$,instance:m})||u)}}},update:XE(function(){return new Promise(function(v){m.forceUpdate(),v(u)})}),destroy:function(){g(),h=!0}};if(!md(l,a))return process.env.NODE_ENV!=="production"&&console.error(hd),m;m.setOptions(c).then(function(v){!h&&c.onFirstUpdate&&c.onFirstUpdate(v)});function p(){u.orderedModifiers.forEach(function(v){var C=v.name,S=v.options,x=S===void 0?{}:S,b=v.effect;if(typeof b=="function"){var D=b({state:u,name:C,instance:m,options:x}),T=function(){};d.push(D||T)}})}function g(){d.forEach(function(v){return v()}),d=[]}return m}}var r3=Hs(),o3=[pc,yc,hc,Vs],i3=Hs({defaultModifiers:o3}),s3=[pc,yc,hc,Vs,_p,Ip,Lp,Op,Dp],Us=Hs({defaultModifiers:s3});const Rp=Object.freeze(Object.defineProperty({__proto__:null,afterMain:bp,afterRead:gp,afterWrite:Sp,applyStyles:Vs,arrow:Op,auto:Uo,basePlacements:to,beforeMain:vp,beforeRead:pp,beforeWrite:Ep,bottom:Tt,clippingParents:fp,computeStyles:hc,createPopper:Us,createPopperBase:r3,createPopperLite:i3,detectOverflow:Xr,end:Gr,eventListeners:pc,flip:Ip,hide:Dp,left:dt,main:yp,modifierPhases:Vi,offset:_p,placements:cc,popper:Mr,popperGenerator:Hs,popperOffsets:yc,preventOverflow:Lp,read:mp,reference:hp,right:kt,start:hr,top:ut,variationPlacements:hl,viewport:lc,write:Cp},Symbol.toStringTag,{value:"Module"}));var a3="tippy-box",Pp="tippy-content",l3="tippy-backdrop",Bp="tippy-arrow",$p="tippy-svg-arrow",Jn={passive:!0,capture:!0},Fp=function(){return document.body};function c3(n,e){return{}.hasOwnProperty.call(n,e)}function Sa(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function bc(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function Vp(n,e){return typeof n=="function"?n.apply(void 0,e):n}function gd(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function u3(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function d3(n){return n.split(/\s+/).filter(Boolean)}function Nr(n){return[].concat(n)}function vd(n,e){n.indexOf(e)===-1&&n.push(e)}function f3(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function h3(n){return n.split("-")[0]}function Hi(n){return[].slice.call(n)}function yd(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Eo(){return document.createElement("div")}function Do(n){return["Element","Fragment"].some(function(e){return bc(n,e)})}function p3(n){return bc(n,"NodeList")}function m3(n){return bc(n,"MouseEvent")}function g3(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function v3(n){return Do(n)?[n]:p3(n)?Hi(n):Array.isArray(n)?n:Hi(document.querySelectorAll(n))}function wa(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function bd(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function y3(n){var e,t=Nr(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function b3(n,e){var t=e.clientX,r=e.clientY;return n.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,a=l.interactiveBorder,c=h3(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,m=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,g=i.top-r+d>a,v=r-i.bottom-h>a,C=i.left-t+m>a,S=t-i.right-p>a;return g||v||C||S})}function xa(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function Ed(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var qt={isTouch:!1},Cd=0;function E3(){qt.isTouch||(qt.isTouch=!0,window.performance&&document.addEventListener("mousemove",zp))}function zp(){var n=performance.now();n-Cd<20&&(qt.isTouch=!1,document.removeEventListener("mousemove",zp)),Cd=n}function C3(){var n=document.activeElement;if(g3(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function S3(){document.addEventListener("touchstart",E3,Jn),window.addEventListener("blur",C3)}var w3=typeof window<"u"&&typeof document<"u",x3=w3?!!window.msCrypto:!1;function wr(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Sd(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function T3(n){return Sd(`
102
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Ut(e.placement),variation:Zr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ad(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ad(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const hc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_E,data:{}};var ti={passive:!0};function LE(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=At(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",t.update,ti)}),l&&a.addEventListener("resize",t.update,ti),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",t.update,ti)}),l&&a.removeEventListener("resize",t.update,ti)}}const pc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LE,data:{}};var RE={left:"right",right:"left",bottom:"top",top:"bottom"};function mi(n){return n.replace(/left|right|bottom|top/g,function(e){return RE[e]})}var PE={start:"end",end:"start"};function ld(n){return n.replace(/start|end/g,function(e){return PE[e]})}function mc(n){var e=At(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function gc(n){return Jr(jn(n)).left+mc(n).scrollLeft}function BE(n,e){var t=At(n),r=jn(n),o=t.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var c=xp();(c||!c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+gc(n),y:a}}function $E(n){var e,t=jn(n),r=mc(n),o=(e=n.ownerDocument)==null?void 0:e.body,i=lr(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=lr(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+gc(n),a=-r.scrollTop;return Wt(o||t).direction==="rtl"&&(l+=lr(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function vc(n){var e=Wt(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function Np(n){return["html","body","#document"].indexOf(ln(n))>=0?n.ownerDocument.body:xt(n)&&vc(n)?n:Np(zs(n))}function bo(n,e){var t;e===void 0&&(e=[]);var r=Np(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),i=At(r),s=o?[i].concat(i.visualViewport||[],vc(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(bo(zs(s)))}function ml(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function FE(n,e){var t=Jr(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function cd(n,e,t){return e===lc?ml(BE(n,t)):pr(e)?FE(e,t):ml($E(jn(n)))}function VE(n){var e=bo(zs(n)),t=["absolute","fixed"].indexOf(Wt(n).position)>=0,r=t&&xt(n)?jo(n):n;return pr(r)?e.filter(function(o){return pr(o)&&Tp(o,r)&&ln(o)!=="body"}):[]}function zE(n,e,t,r){var o=e==="clippingParents"?VE(n):[].concat(e),i=[].concat(o,[t]),s=i[0],l=i.reduce(function(a,c){var u=cd(n,c,r);return a.top=lr(u.top,a.top),a.right=zi(u.right,a.right),a.bottom=zi(u.bottom,a.bottom),a.left=lr(u.left,a.left),a},cd(n,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ip(n){var e=n.reference,t=n.element,r=n.placement,o=r?Ut(r):null,i=r?Zr(r):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case ut:a={x:s,y:e.y-t.height};break;case Tt:a={x:s,y:e.y+e.height};break;case kt:a={x:e.x+e.width,y:l};break;case dt:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?fc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case hr:a[c]=a[c]-(e[u]/2-t[u]/2);break;case Gr:a[c]=a[c]+(e[u]/2-t[u]/2);break}}return a}function Xr(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,l=t.boundary,a=l===void 0?hp:l,c=t.rootBoundary,u=c===void 0?lc:c,d=t.elementContext,h=d===void 0?Mr:d,m=t.altBoundary,p=m===void 0?!1:m,g=t.padding,v=g===void 0?0:g,C=Ap(typeof v!="number"?v:Op(v,to)),S=h===Mr?pp:Mr,x=n.rects.popper,b=n.elements[p?S:h],D=zE(pr(b)?b:b.contextElement||jn(n.elements.popper),a,u,s),T=Jr(n.elements.reference),B=Ip({reference:T,element:x,strategy:"absolute",placement:o}),F=ml(Object.assign({},x,B)),V=h===Mr?F:T,$={top:D.top-V.top+C.top,bottom:V.bottom-D.bottom+C.bottom,left:D.left-V.left+C.left,right:V.right-D.right+C.right},P=n.modifiersData.offset;if(h===Mr&&P){var R=P[o];Object.keys($).forEach(function(H){var Y=[kt,Tt].indexOf(H)>=0?1:-1,Z=[ut,Tt].indexOf(H)>=0?"y":"x";$[H]+=R[Z]*Y})}return $}function HE(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,i=t.rootBoundary,s=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?cc:a,u=Zr(r),d=u?l?hl:hl.filter(function(p){return Zr(p)===u}):to,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var m=h.reduce(function(p,g){return p[g]=Xr(n,{placement:g,boundary:o,rootBoundary:i,padding:s})[Ut(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function UE(n){if(Ut(n)===Uo)return[];var e=mi(n);return[ld(n),e,ld(e)]}function jE(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!0:s,a=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,h=t.altBoundary,m=t.flipVariations,p=m===void 0?!0:m,g=t.allowedAutoPlacements,v=e.options.placement,C=Ut(v),S=C===v,x=a||(S||!p?[mi(v)]:UE(v)),b=[v].concat(x).reduce(function(Ae,Te){return Ae.concat(Ut(Te)===Uo?HE(e,{placement:Te,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):Te)},[]),D=e.rects.reference,T=e.rects.popper,B=new Map,F=!0,V=b[0],$=0;$<b.length;$++){var P=b[$],R=Ut(P),H=Zr(P)===hr,Y=[ut,Tt].indexOf(R)>=0,Z=Y?"width":"height",X=Xr(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),oe=Y?H?kt:dt:H?Tt:ut;D[Z]>T[Z]&&(oe=mi(oe));var j=mi(oe),ce=[];if(i&&ce.push(X[R]<=0),l&&ce.push(X[oe]<=0,X[j]<=0),ce.every(function(Ae){return Ae})){V=P,F=!1;break}B.set(P,ce)}if(F)for(var fe=p?3:1,be=function(Te){var Oe=b.find(function(ve){var A=B.get(ve);if(A)return A.slice(0,Te).every(function(M){return M})});if(Oe)return V=Oe,"break"},we=fe;we>0;we--){var Ee=be(we);if(Ee==="break")break}e.placement!==V&&(e.modifiersData[r]._skip=!0,e.placement=V,e.reset=!0)}}const Dp={name:"flip",enabled:!0,phase:"main",fn:jE,requiresIfExists:["offset"],data:{_skip:!1}};function ud(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function dd(n){return[ut,kt,Tt,dt].some(function(e){return n[e]>=0})}function WE(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Xr(e,{elementContext:"reference"}),l=Xr(e,{altBoundary:!0}),a=ud(s,r),c=ud(l,o,i),u=dd(a),d=dd(c);e.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const _p={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WE};function KE(n,e,t){var r=Ut(n),o=[dt,ut].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[dt,kt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function GE(n){var e=n.state,t=n.options,r=n.name,o=t.offset,i=o===void 0?[0,0]:o,s=cc.reduce(function(u,d){return u[d]=KE(d,e.rects,i),u},{}),l=s[e.placement],a=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const Lp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GE};function YE(n){var e=n.state,t=n.name;e.modifiersData[t]=Ip({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const yc={name:"popperOffsets",enabled:!0,phase:"read",fn:YE,data:{}};function JE(n){return n==="x"?"y":"x"}function ZE(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!1:s,a=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,h=t.tether,m=h===void 0?!0:h,p=t.tetherOffset,g=p===void 0?0:p,v=Xr(e,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),C=Ut(e.placement),S=Zr(e.placement),x=!S,b=fc(C),D=JE(b),T=e.modifiersData.popperOffsets,B=e.rects.reference,F=e.rects.popper,V=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,$=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(T){if(i){var H,Y=b==="y"?ut:dt,Z=b==="y"?Tt:kt,X=b==="y"?"height":"width",oe=T[b],j=oe+v[Y],ce=oe-v[Z],fe=m?-F[X]/2:0,be=S===hr?B[X]:F[X],we=S===hr?-F[X]:-B[X],Ee=e.elements.arrow,Ae=m&&Ee?dc(Ee):{width:0,height:0},Te=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kp(),Oe=Te[Y],ve=Te[Z],A=yo(0,B[X],Ae[X]),M=x?B[X]/2-fe-A-Oe-$.mainAxis:be-A-Oe-$.mainAxis,w=x?-B[X]/2+fe+A+ve+$.mainAxis:we+A+ve+$.mainAxis,O=e.elements.arrow&&jo(e.elements.arrow),y=O?b==="y"?O.clientTop||0:O.clientLeft||0:0,E=(H=P==null?void 0:P[b])!=null?H:0,N=oe+M-E-y,I=oe+w-E,_=yo(m?zi(j,N):j,oe,m?lr(ce,I):ce);T[b]=_,R[b]=_-oe}if(l){var L,z=b==="x"?ut:dt,W=b==="x"?Tt:kt,U=T[D],K=D==="y"?"height":"width",G=U+v[z],q=U-v[W],ue=[ut,dt].indexOf(C)!==-1,ge=(L=P==null?void 0:P[D])!=null?L:0,Ne=ue?G:U-B[K]-F[K]-ge+$.altAxis,Fe=ue?U+B[K]+F[K]-ge-$.altAxis:q,$e=m&&ue?AE(Ne,U,Fe):yo(m?Ne:G,U,m?Fe:q);T[D]=$e,R[D]=$e-U}e.modifiersData[r]=R}}const Rp={name:"preventOverflow",enabled:!0,phase:"main",fn:ZE,requiresIfExists:["offset"]};function XE(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function QE(n){return n===At(n)||!xt(n)?mc(n):XE(n)}function qE(n){var e=n.getBoundingClientRect(),t=Yr(e.width)/n.offsetWidth||1,r=Yr(e.height)/n.offsetHeight||1;return t!==1||r!==1}function e3(n,e,t){t===void 0&&(t=!1);var r=xt(e),o=xt(e)&&qE(e),i=jn(e),s=Jr(n,o,t),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((ln(e)!=="body"||vc(i))&&(l=QE(e)),xt(e)?(a=Jr(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=gc(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function t3(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function o(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||o(i)}),r}function n3(n){var e=t3(n);return Vi.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function r3(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function wn(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return[].concat(t).reduce(function(o,i){return o.replace(/%s/,i)},n)}var Yn='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',o3='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',fd=["name","enabled","phase","fn","effect","requires","options"];function i3(n){n.forEach(function(e){[].concat(Object.keys(e),fd).filter(function(t,r,o){return o.indexOf(t)===r}).forEach(function(t){switch(t){case"name":typeof e.name!="string"&&console.error(wn(Yn,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(wn(Yn,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Vi.indexOf(e.phase)<0&&console.error(wn(Yn,e.name,'"phase"',"either "+Vi.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(wn(Yn,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(wn(Yn,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(wn(Yn,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(wn(Yn,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+fd.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+t+'" was provided.')}e.requires&&e.requires.forEach(function(r){n.find(function(o){return o.name===r})==null&&console.error(wn(o3,String(e.name),r,r))})})})}function s3(n,e){var t=new Set;return n.filter(function(r){var o=e(r);if(!t.has(o))return t.add(o),!0})}function a3(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var hd="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",l3="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",pd={placement:"bottom",modifiers:[],strategy:"absolute"};function md(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Hs(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,i=o===void 0?pd:o;return function(l,a,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pd,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},d=[],h=!1,m={state:u,setOptions:function(C){var S=typeof C=="function"?C(u.options):C;g(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:pr(l)?bo(l):l.contextElement?bo(l.contextElement):[],popper:bo(a)};var x=n3(a3([].concat(r,u.options.modifiers)));if(u.orderedModifiers=x.filter(function(P){return P.enabled}),process.env.NODE_ENV!=="production"){var b=s3([].concat(x,u.options.modifiers),function(P){var R=P.name;return R});if(i3(b),Ut(u.options.placement)===Uo){var D=u.orderedModifiers.find(function(P){var R=P.name;return R==="flip"});D||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var T=Wt(a),B=T.marginTop,F=T.marginRight,V=T.marginBottom,$=T.marginLeft;[B,F,V,$].some(function(P){return parseFloat(P)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return p(),m.update()},forceUpdate:function(){if(!h){var C=u.elements,S=C.reference,x=C.popper;if(!md(S,x)){process.env.NODE_ENV!=="production"&&console.error(hd);return}u.rects={reference:e3(S,jo(x),u.options.strategy==="fixed"),popper:dc(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var b=0,D=0;D<u.orderedModifiers.length;D++){if(process.env.NODE_ENV!=="production"&&(b+=1,b>100)){console.error(l3);break}if(u.reset===!0){u.reset=!1,D=-1;continue}var T=u.orderedModifiers[D],B=T.fn,F=T.options,V=F===void 0?{}:F,$=T.name;typeof B=="function"&&(u=B({state:u,options:V,name:$,instance:m})||u)}}},update:r3(function(){return new Promise(function(v){m.forceUpdate(),v(u)})}),destroy:function(){g(),h=!0}};if(!md(l,a))return process.env.NODE_ENV!=="production"&&console.error(hd),m;m.setOptions(c).then(function(v){!h&&c.onFirstUpdate&&c.onFirstUpdate(v)});function p(){u.orderedModifiers.forEach(function(v){var C=v.name,S=v.options,x=S===void 0?{}:S,b=v.effect;if(typeof b=="function"){var D=b({state:u,name:C,instance:m,options:x}),T=function(){};d.push(D||T)}})}function g(){d.forEach(function(v){return v()}),d=[]}return m}}var c3=Hs(),u3=[pc,yc,hc,Vs],d3=Hs({defaultModifiers:u3}),f3=[pc,yc,hc,Vs,Lp,Dp,Rp,Mp,_p],Us=Hs({defaultModifiers:f3});const Pp=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Ep,afterRead:vp,afterWrite:wp,applyStyles:Vs,arrow:Mp,auto:Uo,basePlacements:to,beforeMain:yp,beforeRead:mp,beforeWrite:Cp,bottom:Tt,clippingParents:hp,computeStyles:hc,createPopper:Us,createPopperBase:c3,createPopperLite:d3,detectOverflow:Xr,end:Gr,eventListeners:pc,flip:Dp,hide:_p,left:dt,main:bp,modifierPhases:Vi,offset:Lp,placements:cc,popper:Mr,popperGenerator:Hs,popperOffsets:yc,preventOverflow:Rp,read:gp,reference:pp,right:kt,start:hr,top:ut,variationPlacements:hl,viewport:lc,write:Sp},Symbol.toStringTag,{value:"Module"}));var h3="tippy-box",Bp="tippy-content",p3="tippy-backdrop",$p="tippy-arrow",Fp="tippy-svg-arrow",Jn={passive:!0,capture:!0},Vp=function(){return document.body};function m3(n,e){return{}.hasOwnProperty.call(n,e)}function Sa(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function bc(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function zp(n,e){return typeof n=="function"?n.apply(void 0,e):n}function gd(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function g3(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function v3(n){return n.split(/\s+/).filter(Boolean)}function Nr(n){return[].concat(n)}function vd(n,e){n.indexOf(e)===-1&&n.push(e)}function y3(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function b3(n){return n.split("-")[0]}function Hi(n){return[].slice.call(n)}function yd(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Eo(){return document.createElement("div")}function Do(n){return["Element","Fragment"].some(function(e){return bc(n,e)})}function E3(n){return bc(n,"NodeList")}function C3(n){return bc(n,"MouseEvent")}function S3(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function w3(n){return Do(n)?[n]:E3(n)?Hi(n):Array.isArray(n)?n:Hi(document.querySelectorAll(n))}function wa(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function bd(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function x3(n){var e,t=Nr(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function T3(n,e){var t=e.clientX,r=e.clientY;return n.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,a=l.interactiveBorder,c=b3(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,m=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,g=i.top-r+d>a,v=r-i.bottom-h>a,C=i.left-t+m>a,S=t-i.right-p>a;return g||v||C||S})}function xa(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function Ed(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var qt={isTouch:!1},Cd=0;function k3(){qt.isTouch||(qt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Hp))}function Hp(){var n=performance.now();n-Cd<20&&(qt.isTouch=!1,document.removeEventListener("mousemove",Hp)),Cd=n}function A3(){var n=document.activeElement;if(S3(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function O3(){document.addEventListener("touchstart",k3,Jn),window.addEventListener("blur",A3)}var M3=typeof window<"u"&&typeof document<"u",N3=M3?!!window.msCrypto:!1;function wr(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Sd(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function I3(n){return Sd(`
103
103
  %ctippy.js
104
104
 
105
105
  %c`+Sd(n)+`
106
106
 
107
107
  %c👷‍ This is a development-only message. It will be removed in production.
108
- `)}function Hp(n){return[T3(n),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var _o;process.env.NODE_ENV!=="production"&&k3();function k3(){_o=new Set}function pn(n,e){if(n&&!_o.has(e)){var t;_o.add(e),(t=console).warn.apply(t,Hp(e))}}function gl(n,e){if(n&&!_o.has(e)){var t;_o.add(e),(t=console).error.apply(t,Hp(e))}}function A3(n){var e=!n,t=Object.prototype.toString.call(n)==="[object Object]"&&!n.addEventListener;gl(e,["tippy() was passed","`"+String(n)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),gl(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Up={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},O3={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},wt=Object.assign({appendTo:Fp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Up,O3),M3=Object.keys(wt),N3=function(e){process.env.NODE_ENV!=="production"&&Wp(e,[]);var t=Object.keys(e);t.forEach(function(r){wt[r]=e[r]})};function jp(n){var e=n.plugins||[],t=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=n[i]!==void 0?n[i]:(l=wt[i])!=null?l:s}return r},{});return Object.assign({},n,t)}function I3(n,e){var t=e?Object.keys(jp(Object.assign({},wt,{plugins:e}))):M3,r=t.reduce(function(o,i){var s=(n.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function wd(n,e){var t=Object.assign({},e,{content:Vp(e.content,[n])},e.ignoreAttributes?{}:I3(n,e.plugins));return t.aria=Object.assign({},wt.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function Wp(n,e){n===void 0&&(n={}),e===void 0&&(e=[]);var t=Object.keys(n);t.forEach(function(r){var o=u3(wt,Object.keys(Up)),i=!c3(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),pn(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
108
+ `)}function Up(n){return[I3(n),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var _o;process.env.NODE_ENV!=="production"&&D3();function D3(){_o=new Set}function pn(n,e){if(n&&!_o.has(e)){var t;_o.add(e),(t=console).warn.apply(t,Up(e))}}function gl(n,e){if(n&&!_o.has(e)){var t;_o.add(e),(t=console).error.apply(t,Up(e))}}function _3(n){var e=!n,t=Object.prototype.toString.call(n)==="[object Object]"&&!n.addEventListener;gl(e,["tippy() was passed","`"+String(n)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),gl(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var jp={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},L3={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},wt=Object.assign({appendTo:Vp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},jp,L3),R3=Object.keys(wt),P3=function(e){process.env.NODE_ENV!=="production"&&Kp(e,[]);var t=Object.keys(e);t.forEach(function(r){wt[r]=e[r]})};function Wp(n){var e=n.plugins||[],t=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=n[i]!==void 0?n[i]:(l=wt[i])!=null?l:s}return r},{});return Object.assign({},n,t)}function B3(n,e){var t=e?Object.keys(Wp(Object.assign({},wt,{plugins:e}))):R3,r=t.reduce(function(o,i){var s=(n.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function wd(n,e){var t=Object.assign({},e,{content:zp(e.content,[n])},e.ignoreAttributes?{}:B3(n,e.plugins));return t.aria=Object.assign({},wt.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function Kp(n,e){n===void 0&&(n={}),e===void 0&&(e=[]);var t=Object.keys(n);t.forEach(function(r){var o=g3(wt,Object.keys(jp)),i=!m3(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),pn(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
109
109
 
110
110
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
111
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var D3=function(){return"innerHTML"};function vl(n,e){n[D3()]=e}function xd(n){var e=Eo();return n===!0?e.className=Bp:(e.className=$p,Do(n)?e.appendChild(n):vl(e,n)),e}function Td(n,e){Do(e.content)?(vl(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?vl(n,e.content):n.textContent=e.content)}function yl(n){var e=n.firstElementChild,t=Hi(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(Pp)}),arrow:t.find(function(r){return r.classList.contains(Bp)||r.classList.contains($p)}),backdrop:t.find(function(r){return r.classList.contains(l3)})}}function Kp(n){var e=Eo(),t=Eo();t.className=a3,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Eo();r.className=Pp,r.setAttribute("data-state","hidden"),Td(r,n.props),e.appendChild(t),t.appendChild(r),o(n.props,n.props);function o(i,s){var l=yl(e),a=l.box,c=l.content,u=l.arrow;s.theme?a.setAttribute("data-theme",s.theme):a.removeAttribute("data-theme"),typeof s.animation=="string"?a.setAttribute("data-animation",s.animation):a.removeAttribute("data-animation"),s.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?a.setAttribute("role",s.role):a.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Td(c,n.props),s.arrow?u?i.arrow!==s.arrow&&(a.removeChild(u),a.appendChild(xd(s.arrow))):a.appendChild(xd(s.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}Kp.$$tippy=!0;var _3=1,ni=[],Ta=[];function L3(n,e){var t=wd(n,Object.assign({},wt,jp(yd(e)))),r,o,i,s=!1,l=!1,a=!1,c=!1,u,d,h,m=[],p=gd(N,t.interactiveDebounce),g,v=_3++,C=null,S=f3(t.plugins),x={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:v,reference:n,popper:Eo(),popperInstance:C,props:t,state:x,plugins:S,clearDelayTimeouts:Ne,setProps:Fe,setContent:$e,show:Ie,hide:Ke,hideWithInteractivity:gt,enable:ue,disable:ge,unmount:tt,destroy:Cn};if(!t.render)return process.env.NODE_ENV!=="production"&&gl(!0,"render() function has not been supplied."),b;var D=t.render(b),T=D.popper,B=D.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+b.id,b.popper=T,n._tippy=b,T._tippy=b;var F=S.map(function(J){return J.fn(b)}),V=n.hasAttribute("aria-expanded");return O(),fe(),oe(),j("onCreate",[b]),t.showOnCreate&&G(),T.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",p)}),b;function $(){var J=b.props.touch;return Array.isArray(J)?J:[J,0]}function P(){return $()[0]==="hold"}function R(){var J;return!!((J=b.props.render)!=null&&J.$$tippy)}function H(){return g||n}function Y(){var J=H().parentNode;return J?y3(J):document}function Z(){return yl(T)}function X(J){return b.state.isMounted&&!b.state.isVisible||qt.isTouch||u&&u.type==="focus"?0:Sa(b.props.delay,J?0:1,wt.delay)}function oe(J){J===void 0&&(J=!1),T.style.pointerEvents=b.props.interactive&&!J?"":"none",T.style.zIndex=""+b.props.zIndex}function j(J,ae,le){if(le===void 0&&(le=!0),F.forEach(function(xe){xe[J]&&xe[J].apply(xe,ae)}),le){var Ce;(Ce=b.props)[J].apply(Ce,ae)}}function ce(){var J=b.props.aria;if(J.content){var ae="aria-"+J.content,le=T.id,Ce=Nr(b.props.triggerTarget||n);Ce.forEach(function(xe){var Ve=xe.getAttribute(ae);if(b.state.isVisible)xe.setAttribute(ae,Ve?Ve+" "+le:le);else{var Ue=Ve&&Ve.replace(le,"").trim();Ue?xe.setAttribute(ae,Ue):xe.removeAttribute(ae)}})}}function fe(){if(!(V||!b.props.aria.expanded)){var J=Nr(b.props.triggerTarget||n);J.forEach(function(ae){b.props.interactive?ae.setAttribute("aria-expanded",b.state.isVisible&&ae===H()?"true":"false"):ae.removeAttribute("aria-expanded")})}}function be(){Y().removeEventListener("mousemove",p),ni=ni.filter(function(J){return J!==p})}function we(J){if(!(qt.isTouch&&(a||J.type==="mousedown"))){var ae=J.composedPath&&J.composedPath()[0]||J.target;if(!(b.props.interactive&&Ed(T,ae))){if(Nr(b.props.triggerTarget||n).some(function(le){return Ed(le,ae)})){if(qt.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,J]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||Oe())}}}function Ee(){a=!0}function Ae(){a=!1}function Te(){var J=Y();J.addEventListener("mousedown",we,!0),J.addEventListener("touchend",we,Jn),J.addEventListener("touchstart",Ae,Jn),J.addEventListener("touchmove",Ee,Jn)}function Oe(){var J=Y();J.removeEventListener("mousedown",we,!0),J.removeEventListener("touchend",we,Jn),J.removeEventListener("touchstart",Ae,Jn),J.removeEventListener("touchmove",Ee,Jn)}function ve(J,ae){M(J,function(){!b.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&ae()})}function A(J,ae){M(J,ae)}function M(J,ae){var le=Z().box;function Ce(xe){xe.target===le&&(xa(le,"remove",Ce),ae())}if(J===0)return ae();xa(le,"remove",d),xa(le,"add",Ce),d=Ce}function w(J,ae,le){le===void 0&&(le=!1);var Ce=Nr(b.props.triggerTarget||n);Ce.forEach(function(xe){xe.addEventListener(J,ae,le),m.push({node:xe,eventType:J,handler:ae,options:le})})}function O(){P()&&(w("touchstart",E,{passive:!0}),w("touchend",I,{passive:!0})),d3(b.props.trigger).forEach(function(J){if(J!=="manual")switch(w(J,E),J){case"mouseenter":w("mouseleave",I);break;case"focus":w(x3?"focusout":"blur",_);break;case"focusin":w("focusout",_);break}})}function y(){m.forEach(function(J){var ae=J.node,le=J.eventType,Ce=J.handler,xe=J.options;ae.removeEventListener(le,Ce,xe)}),m=[]}function E(J){var ae,le=!1;if(!(!b.state.isEnabled||L(J)||l)){var Ce=((ae=u)==null?void 0:ae.type)==="focus";u=J,g=J.currentTarget,fe(),!b.state.isVisible&&m3(J)&&ni.forEach(function(xe){return xe(J)}),J.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?le=!0:G(J),J.type==="click"&&(s=!le),le&&!Ce&&q(J)}}function N(J){var ae=J.target,le=H().contains(ae)||T.contains(ae);if(!(J.type==="mousemove"&&le)){var Ce=K().concat(T).map(function(xe){var Ve,Ue=xe._tippy,it=(Ve=Ue.popperInstance)==null?void 0:Ve.state;return it?{popperRect:xe.getBoundingClientRect(),popperState:it,props:t}:null}).filter(Boolean);b3(Ce,J)&&(be(),q(J))}}function I(J){var ae=L(J)||b.props.trigger.indexOf("click")>=0&&s;if(!ae){if(b.props.interactive){b.hideWithInteractivity(J);return}q(J)}}function _(J){b.props.trigger.indexOf("focusin")<0&&J.target!==H()||b.props.interactive&&J.relatedTarget&&T.contains(J.relatedTarget)||q(J)}function L(J){return qt.isTouch?P()!==J.type.indexOf("touch")>=0:!1}function z(){W();var J=b.props,ae=J.popperOptions,le=J.placement,Ce=J.offset,xe=J.getReferenceClientRect,Ve=J.moveTransition,Ue=R()?yl(T).arrow:null,it=xe?{getBoundingClientRect:xe,contextElement:xe.contextElement||H()}:n,st={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Sn){var Ct=Sn.state;if(R()){var Ot=Z(),Er=Ot.box;["placement","reference-hidden","escaped"].forEach(function(Mt){Mt==="placement"?Er.setAttribute("data-placement",Ct.placement):Ct.attributes.popper["data-popper-"+Mt]?Er.setAttribute("data-"+Mt,""):Er.removeAttribute("data-"+Mt)}),Ct.attributes.popper={}}}},Xe=[{name:"offset",options:{offset:Ce}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ve}},st];R()&&Ue&&Xe.push({name:"arrow",options:{element:Ue,padding:3}}),Xe.push.apply(Xe,(ae==null?void 0:ae.modifiers)||[]),b.popperInstance=Us(it,T,Object.assign({},ae,{placement:le,onFirstUpdate:h,modifiers:Xe}))}function W(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function U(){var J=b.props.appendTo,ae,le=H();b.props.interactive&&J===Fp||J==="parent"?ae=le.parentNode:ae=Vp(J,[le]),ae.contains(T)||ae.appendChild(T),b.state.isMounted=!0,z(),process.env.NODE_ENV!=="production"&&pn(b.props.interactive&&J===wt.appendTo&&le.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
111
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var $3=function(){return"innerHTML"};function vl(n,e){n[$3()]=e}function xd(n){var e=Eo();return n===!0?e.className=$p:(e.className=Fp,Do(n)?e.appendChild(n):vl(e,n)),e}function Td(n,e){Do(e.content)?(vl(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?vl(n,e.content):n.textContent=e.content)}function yl(n){var e=n.firstElementChild,t=Hi(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(Bp)}),arrow:t.find(function(r){return r.classList.contains($p)||r.classList.contains(Fp)}),backdrop:t.find(function(r){return r.classList.contains(p3)})}}function Gp(n){var e=Eo(),t=Eo();t.className=h3,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Eo();r.className=Bp,r.setAttribute("data-state","hidden"),Td(r,n.props),e.appendChild(t),t.appendChild(r),o(n.props,n.props);function o(i,s){var l=yl(e),a=l.box,c=l.content,u=l.arrow;s.theme?a.setAttribute("data-theme",s.theme):a.removeAttribute("data-theme"),typeof s.animation=="string"?a.setAttribute("data-animation",s.animation):a.removeAttribute("data-animation"),s.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?a.setAttribute("role",s.role):a.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Td(c,n.props),s.arrow?u?i.arrow!==s.arrow&&(a.removeChild(u),a.appendChild(xd(s.arrow))):a.appendChild(xd(s.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}Gp.$$tippy=!0;var F3=1,ni=[],Ta=[];function V3(n,e){var t=wd(n,Object.assign({},wt,Wp(yd(e)))),r,o,i,s=!1,l=!1,a=!1,c=!1,u,d,h,m=[],p=gd(N,t.interactiveDebounce),g,v=F3++,C=null,S=y3(t.plugins),x={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:v,reference:n,popper:Eo(),popperInstance:C,props:t,state:x,plugins:S,clearDelayTimeouts:Ne,setProps:Fe,setContent:$e,show:Ie,hide:Ke,hideWithInteractivity:gt,enable:ue,disable:ge,unmount:tt,destroy:Cn};if(!t.render)return process.env.NODE_ENV!=="production"&&gl(!0,"render() function has not been supplied."),b;var D=t.render(b),T=D.popper,B=D.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+b.id,b.popper=T,n._tippy=b,T._tippy=b;var F=S.map(function(J){return J.fn(b)}),V=n.hasAttribute("aria-expanded");return O(),fe(),oe(),j("onCreate",[b]),t.showOnCreate&&G(),T.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",p)}),b;function $(){var J=b.props.touch;return Array.isArray(J)?J:[J,0]}function P(){return $()[0]==="hold"}function R(){var J;return!!((J=b.props.render)!=null&&J.$$tippy)}function H(){return g||n}function Y(){var J=H().parentNode;return J?x3(J):document}function Z(){return yl(T)}function X(J){return b.state.isMounted&&!b.state.isVisible||qt.isTouch||u&&u.type==="focus"?0:Sa(b.props.delay,J?0:1,wt.delay)}function oe(J){J===void 0&&(J=!1),T.style.pointerEvents=b.props.interactive&&!J?"":"none",T.style.zIndex=""+b.props.zIndex}function j(J,ae,le){if(le===void 0&&(le=!0),F.forEach(function(xe){xe[J]&&xe[J].apply(xe,ae)}),le){var Ce;(Ce=b.props)[J].apply(Ce,ae)}}function ce(){var J=b.props.aria;if(J.content){var ae="aria-"+J.content,le=T.id,Ce=Nr(b.props.triggerTarget||n);Ce.forEach(function(xe){var Ve=xe.getAttribute(ae);if(b.state.isVisible)xe.setAttribute(ae,Ve?Ve+" "+le:le);else{var Ue=Ve&&Ve.replace(le,"").trim();Ue?xe.setAttribute(ae,Ue):xe.removeAttribute(ae)}})}}function fe(){if(!(V||!b.props.aria.expanded)){var J=Nr(b.props.triggerTarget||n);J.forEach(function(ae){b.props.interactive?ae.setAttribute("aria-expanded",b.state.isVisible&&ae===H()?"true":"false"):ae.removeAttribute("aria-expanded")})}}function be(){Y().removeEventListener("mousemove",p),ni=ni.filter(function(J){return J!==p})}function we(J){if(!(qt.isTouch&&(a||J.type==="mousedown"))){var ae=J.composedPath&&J.composedPath()[0]||J.target;if(!(b.props.interactive&&Ed(T,ae))){if(Nr(b.props.triggerTarget||n).some(function(le){return Ed(le,ae)})){if(qt.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,J]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||Oe())}}}function Ee(){a=!0}function Ae(){a=!1}function Te(){var J=Y();J.addEventListener("mousedown",we,!0),J.addEventListener("touchend",we,Jn),J.addEventListener("touchstart",Ae,Jn),J.addEventListener("touchmove",Ee,Jn)}function Oe(){var J=Y();J.removeEventListener("mousedown",we,!0),J.removeEventListener("touchend",we,Jn),J.removeEventListener("touchstart",Ae,Jn),J.removeEventListener("touchmove",Ee,Jn)}function ve(J,ae){M(J,function(){!b.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&ae()})}function A(J,ae){M(J,ae)}function M(J,ae){var le=Z().box;function Ce(xe){xe.target===le&&(xa(le,"remove",Ce),ae())}if(J===0)return ae();xa(le,"remove",d),xa(le,"add",Ce),d=Ce}function w(J,ae,le){le===void 0&&(le=!1);var Ce=Nr(b.props.triggerTarget||n);Ce.forEach(function(xe){xe.addEventListener(J,ae,le),m.push({node:xe,eventType:J,handler:ae,options:le})})}function O(){P()&&(w("touchstart",E,{passive:!0}),w("touchend",I,{passive:!0})),v3(b.props.trigger).forEach(function(J){if(J!=="manual")switch(w(J,E),J){case"mouseenter":w("mouseleave",I);break;case"focus":w(N3?"focusout":"blur",_);break;case"focusin":w("focusout",_);break}})}function y(){m.forEach(function(J){var ae=J.node,le=J.eventType,Ce=J.handler,xe=J.options;ae.removeEventListener(le,Ce,xe)}),m=[]}function E(J){var ae,le=!1;if(!(!b.state.isEnabled||L(J)||l)){var Ce=((ae=u)==null?void 0:ae.type)==="focus";u=J,g=J.currentTarget,fe(),!b.state.isVisible&&C3(J)&&ni.forEach(function(xe){return xe(J)}),J.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?le=!0:G(J),J.type==="click"&&(s=!le),le&&!Ce&&q(J)}}function N(J){var ae=J.target,le=H().contains(ae)||T.contains(ae);if(!(J.type==="mousemove"&&le)){var Ce=K().concat(T).map(function(xe){var Ve,Ue=xe._tippy,it=(Ve=Ue.popperInstance)==null?void 0:Ve.state;return it?{popperRect:xe.getBoundingClientRect(),popperState:it,props:t}:null}).filter(Boolean);T3(Ce,J)&&(be(),q(J))}}function I(J){var ae=L(J)||b.props.trigger.indexOf("click")>=0&&s;if(!ae){if(b.props.interactive){b.hideWithInteractivity(J);return}q(J)}}function _(J){b.props.trigger.indexOf("focusin")<0&&J.target!==H()||b.props.interactive&&J.relatedTarget&&T.contains(J.relatedTarget)||q(J)}function L(J){return qt.isTouch?P()!==J.type.indexOf("touch")>=0:!1}function z(){W();var J=b.props,ae=J.popperOptions,le=J.placement,Ce=J.offset,xe=J.getReferenceClientRect,Ve=J.moveTransition,Ue=R()?yl(T).arrow:null,it=xe?{getBoundingClientRect:xe,contextElement:xe.contextElement||H()}:n,st={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Sn){var Ct=Sn.state;if(R()){var Ot=Z(),Er=Ot.box;["placement","reference-hidden","escaped"].forEach(function(Mt){Mt==="placement"?Er.setAttribute("data-placement",Ct.placement):Ct.attributes.popper["data-popper-"+Mt]?Er.setAttribute("data-"+Mt,""):Er.removeAttribute("data-"+Mt)}),Ct.attributes.popper={}}}},Xe=[{name:"offset",options:{offset:Ce}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ve}},st];R()&&Ue&&Xe.push({name:"arrow",options:{element:Ue,padding:3}}),Xe.push.apply(Xe,(ae==null?void 0:ae.modifiers)||[]),b.popperInstance=Us(it,T,Object.assign({},ae,{placement:le,onFirstUpdate:h,modifiers:Xe}))}function W(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function U(){var J=b.props.appendTo,ae,le=H();b.props.interactive&&J===Vp||J==="parent"?ae=le.parentNode:ae=zp(J,[le]),ae.contains(T)||ae.appendChild(T),b.state.isMounted=!0,z(),process.env.NODE_ENV!=="production"&&pn(b.props.interactive&&J===wt.appendTo&&le.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
112
112
 
113
113
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
114
114
 
115
115
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
116
116
 
117
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function K(){return Hi(T.querySelectorAll("[data-tippy-root]"))}function G(J){b.clearDelayTimeouts(),J&&j("onTrigger",[b,J]),Te();var ae=X(!0),le=$(),Ce=le[0],xe=le[1];qt.isTouch&&Ce==="hold"&&xe&&(ae=xe),ae?r=setTimeout(function(){b.show()},ae):b.show()}function q(J){if(b.clearDelayTimeouts(),j("onUntrigger",[b,J]),!b.state.isVisible){Oe();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(J.type)>=0&&s)){var ae=X(!1);ae?o=setTimeout(function(){b.state.isVisible&&b.hide()},ae):i=requestAnimationFrame(function(){b.hide()})}}function ue(){b.state.isEnabled=!0}function ge(){b.hide(),b.state.isEnabled=!1}function Ne(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Fe(J){if(process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("setProps")),!b.state.isDestroyed){j("onBeforeUpdate",[b,J]),y();var ae=b.props,le=wd(n,Object.assign({},ae,yd(J),{ignoreAttributes:!0}));b.props=le,O(),ae.interactiveDebounce!==le.interactiveDebounce&&(be(),p=gd(N,le.interactiveDebounce)),ae.triggerTarget&&!le.triggerTarget?Nr(ae.triggerTarget).forEach(function(Ce){Ce.removeAttribute("aria-expanded")}):le.triggerTarget&&n.removeAttribute("aria-expanded"),fe(),oe(),B&&B(ae,le),b.popperInstance&&(z(),K().forEach(function(Ce){requestAnimationFrame(Ce._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[b,J])}}function $e(J){b.setProps({content:J})}function Ie(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("show"));var J=b.state.isVisible,ae=b.state.isDestroyed,le=!b.state.isEnabled,Ce=qt.isTouch&&!b.props.touch,xe=Sa(b.props.duration,0,wt.duration);if(!(J||ae||le||Ce)&&!H().hasAttribute("disabled")&&(j("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,R()&&(T.style.visibility="visible"),oe(),Te(),b.state.isMounted||(T.style.transition="none"),R()){var Ve=Z(),Ue=Ve.box,it=Ve.content;wa([Ue,it],0)}h=function(){var Xe;if(!(!b.state.isVisible||c)){if(c=!0,T.offsetHeight,T.style.transition=b.props.moveTransition,R()&&b.props.animation){var Yt=Z(),Sn=Yt.box,Ct=Yt.content;wa([Sn,Ct],xe),bd([Sn,Ct],"visible")}ce(),fe(),vd(Ta,b),(Xe=b.popperInstance)==null||Xe.forceUpdate(),j("onMount",[b]),b.props.animation&&R()&&A(xe,function(){b.state.isShown=!0,j("onShown",[b])})}},U()}}function Ke(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("hide"));var J=!b.state.isVisible,ae=b.state.isDestroyed,le=!b.state.isEnabled,Ce=Sa(b.props.duration,1,wt.duration);if(!(J||ae||le)&&(j("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,R()&&(T.style.visibility="hidden"),be(),Oe(),oe(!0),R()){var xe=Z(),Ve=xe.box,Ue=xe.content;b.props.animation&&(wa([Ve,Ue],Ce),bd([Ve,Ue],"hidden"))}ce(),fe(),b.props.animation?R()&&ve(Ce,b.unmount):b.unmount()}}function gt(J){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("hideWithInteractivity")),Y().addEventListener("mousemove",p),vd(ni,p),p(J)}function tt(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("unmount")),b.state.isVisible&&b.hide(),b.state.isMounted&&(W(),K().forEach(function(J){J._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),Ta=Ta.filter(function(J){return J!==b}),b.state.isMounted=!1,j("onHidden",[b]))}function Cn(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("destroy")),!b.state.isDestroyed&&(b.clearDelayTimeouts(),b.unmount(),y(),delete n._tippy,b.state.isDestroyed=!0,j("onDestroy",[b]))}}function no(n,e){e===void 0&&(e={});var t=wt.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(A3(n),Wp(e,t)),S3();var r=Object.assign({},e,{plugins:t}),o=v3(n);if(process.env.NODE_ENV!=="production"){var i=Do(r.content),s=o.length>1;pn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
117
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function K(){return Hi(T.querySelectorAll("[data-tippy-root]"))}function G(J){b.clearDelayTimeouts(),J&&j("onTrigger",[b,J]),Te();var ae=X(!0),le=$(),Ce=le[0],xe=le[1];qt.isTouch&&Ce==="hold"&&xe&&(ae=xe),ae?r=setTimeout(function(){b.show()},ae):b.show()}function q(J){if(b.clearDelayTimeouts(),j("onUntrigger",[b,J]),!b.state.isVisible){Oe();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(J.type)>=0&&s)){var ae=X(!1);ae?o=setTimeout(function(){b.state.isVisible&&b.hide()},ae):i=requestAnimationFrame(function(){b.hide()})}}function ue(){b.state.isEnabled=!0}function ge(){b.hide(),b.state.isEnabled=!1}function Ne(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Fe(J){if(process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("setProps")),!b.state.isDestroyed){j("onBeforeUpdate",[b,J]),y();var ae=b.props,le=wd(n,Object.assign({},ae,yd(J),{ignoreAttributes:!0}));b.props=le,O(),ae.interactiveDebounce!==le.interactiveDebounce&&(be(),p=gd(N,le.interactiveDebounce)),ae.triggerTarget&&!le.triggerTarget?Nr(ae.triggerTarget).forEach(function(Ce){Ce.removeAttribute("aria-expanded")}):le.triggerTarget&&n.removeAttribute("aria-expanded"),fe(),oe(),B&&B(ae,le),b.popperInstance&&(z(),K().forEach(function(Ce){requestAnimationFrame(Ce._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[b,J])}}function $e(J){b.setProps({content:J})}function Ie(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("show"));var J=b.state.isVisible,ae=b.state.isDestroyed,le=!b.state.isEnabled,Ce=qt.isTouch&&!b.props.touch,xe=Sa(b.props.duration,0,wt.duration);if(!(J||ae||le||Ce)&&!H().hasAttribute("disabled")&&(j("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,R()&&(T.style.visibility="visible"),oe(),Te(),b.state.isMounted||(T.style.transition="none"),R()){var Ve=Z(),Ue=Ve.box,it=Ve.content;wa([Ue,it],0)}h=function(){var Xe;if(!(!b.state.isVisible||c)){if(c=!0,T.offsetHeight,T.style.transition=b.props.moveTransition,R()&&b.props.animation){var Yt=Z(),Sn=Yt.box,Ct=Yt.content;wa([Sn,Ct],xe),bd([Sn,Ct],"visible")}ce(),fe(),vd(Ta,b),(Xe=b.popperInstance)==null||Xe.forceUpdate(),j("onMount",[b]),b.props.animation&&R()&&A(xe,function(){b.state.isShown=!0,j("onShown",[b])})}},U()}}function Ke(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("hide"));var J=!b.state.isVisible,ae=b.state.isDestroyed,le=!b.state.isEnabled,Ce=Sa(b.props.duration,1,wt.duration);if(!(J||ae||le)&&(j("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,R()&&(T.style.visibility="hidden"),be(),Oe(),oe(!0),R()){var xe=Z(),Ve=xe.box,Ue=xe.content;b.props.animation&&(wa([Ve,Ue],Ce),bd([Ve,Ue],"hidden"))}ce(),fe(),b.props.animation?R()&&ve(Ce,b.unmount):b.unmount()}}function gt(J){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("hideWithInteractivity")),Y().addEventListener("mousemove",p),vd(ni,p),p(J)}function tt(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("unmount")),b.state.isVisible&&b.hide(),b.state.isMounted&&(W(),K().forEach(function(J){J._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),Ta=Ta.filter(function(J){return J!==b}),b.state.isMounted=!1,j("onHidden",[b]))}function Cn(){process.env.NODE_ENV!=="production"&&pn(b.state.isDestroyed,wr("destroy")),!b.state.isDestroyed&&(b.clearDelayTimeouts(),b.unmount(),y(),delete n._tippy,b.state.isDestroyed=!0,j("onDestroy",[b]))}}function no(n,e){e===void 0&&(e={});var t=wt.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(_3(n),Kp(e,t)),O3();var r=Object.assign({},e,{plugins:t}),o=w3(n);if(process.env.NODE_ENV!=="production"){var i=Do(r.content),s=o.length>1;pn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
118
118
 
119
119
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
120
120
 
121
121
  `,`1) content: element.innerHTML
122
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,c){var u=c&&L3(c,r);return u&&a.push(u),a},[]);return Do(n)?l[0]:l}no.defaultProps=wt;no.setDefaultProps=N3;no.currentInput=qt;Object.assign({},Vs,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});no.setDefaultProps({render:Kp});class R3{constructor({editor:e,element:t,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:c,to:u})=>{const{doc:d,selection:h}=a,{empty:m}=h,p=!d.textBetween(c,u).length&&oc(a.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||m||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var a;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,a)=>{const c=!(a!=null&&a.selection.eq(l.state.selection)),u=!(a!=null&&a.doc.eq(l.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,u,a)},this.updateDelay))},this.updateHandler=(l,a,c,u)=>{var d,h,m;const{state:p,composing:g}=l,{selection:v}=p;if(g||!a&&!c)return;this.createTooltip();const{ranges:S}=v,x=Math.min(...S.map(T=>T.$from.pos)),b=Math.max(...S.map(T=>T.$to.pos));if(!((d=this.shouldShow)===null||d===void 0?void 0:d.call(this,{editor:this.editor,view:l,state:p,oldState:u,from:x,to:b}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(zb(p.selection)){let T=l.nodeDOM(x);const B=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(B&&(T=B.firstChild),T)return T.getBoundingClientRect()}return dp(l,x,b)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=no(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Gp=n=>new Et({key:typeof n.pluginKey=="string"?new Kt(n.pluginKey):n.pluginKey,view:e=>new R3({view:e,...n})});Bt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Gp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class P3{constructor({editor:e,element:t,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:a}=l,{$anchor:c,empty:u}=a,d=c.depth===1,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!(!s.hasFocus()||!u||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=no(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,o,i;const{state:s}=e,{doc:l,selection:a}=s,{from:c,to:u}=a;if(t&&t.doc.eq(l)&&t.selection.eq(a))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>dp(e,c,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Yp=n=>new Et({key:typeof n.pluginKey=="string"?new Kt(n.pluginKey):n.pluginKey,view:e=>new P3({view:e,...n})});Bt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Yp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});f.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=f.ref(null);return f.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:l}=n;o.registerPlugin(Gp({updateDelay:r,editor:o,element:t.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function kd(n){return f.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class B3 extends gE{constructor(e={}){return super(e),this.vueRenderers=f.reactive(new Map),this.contentComponent=null,this.reactiveState=kd(this.view.state),this.reactiveExtensionStorage=kd(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),f.markRaw(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){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const $3=f.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=f.ref(),t=f.getCurrentInstance();return f.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&f.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=f.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),f.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=f.h(f.Teleport,{to:e.teleportElement,key:e.id},f.h(e.component,{ref:e.id,...e.props}));n.push(t)}),f.h("div",{ref:e=>{this.rootEl=e}},...n)}});f.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=f.ref(null);return f.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=n;o.registerPlugin(Yp({pluginKey:r,editor:o,element:t.value,tippyOptions:i,shouldShow:s}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});f.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return f.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});f.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return f.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});const F3=(n={})=>{const e=f.shallowRef();return f.onMounted(()=>{e.value=new B3(n)}),f.onBeforeUnmount(()=>{var t;(t=e.value)===null||t===void 0||t.destroy()}),e},V3=bn.create({name:"doc",topNode:!0,content:"block+"}),z3=bn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),H3=bn.create({name:"text",group:"inline"}),U3="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",j3="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Qr=(n,e)=>{for(const t in e)n[t]=e[t];return n},bl="numeric",El="ascii",Cl="alpha",gi="asciinumeric",ri="alphanumeric",Sl="domain",Jp="emoji",W3="scheme",K3="slashscheme",Ad="whitespace";function G3(n,e){return n in e||(e[n]=[]),e[n]}function er(n,e,t){e[bl]&&(e[gi]=!0,e[ri]=!0),e[El]&&(e[gi]=!0,e[Cl]=!0),e[gi]&&(e[ri]=!0),e[Cl]&&(e[ri]=!0),e[ri]&&(e[Sl]=!0),e[Jp]&&(e[Sl]=!0);for(const r in e){const o=G3(r,t);o.indexOf(n)<0&&o.push(n)}}function Y3(n,e){const t={};for(const r in e)e[r].indexOf(n)>=0&&(t[r]=!0);return t}function vt(n){n===void 0&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}vt.groups={};vt.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(n))return i}return e.jd},has(n,e){return e===void 0&&(e=!1),e?n in this.j:!!this.go(n)},ta(n,e,t,r){for(let o=0;o<n.length;o++)this.tt(n[o],e,t,r)},tr(n,e,t,r){r=r||vt.groups;let o;return e&&e.j?o=e:(o=new vt(e),t&&r&&er(e,t,r)),this.jr.push([n,o]),o},ts(n,e,t,r){let o=this;const i=n.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(n[s]);return o.tt(n[i-1],e,t,r)},tt(n,e,t,r){r=r||vt.groups;const o=this;if(e&&e.j)return o.j[n]=e,e;const i=e;let s,l=o.go(n);if(l?(s=new vt,Qr(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new vt,i){if(r)if(s.t&&typeof s.t=="string"){const a=Qr(Y3(s.t,r),t);er(i,a,r)}else t&&er(i,t,r);s.t=i}return o.j[n]=s,s}};const Me=(n,e,t,r,o)=>n.ta(e,t,r,o),Dt=(n,e,t,r,o)=>n.tr(e,t,r,o),Od=(n,e,t,r,o)=>n.ts(e,t,r,o),de=(n,e,t,r,o)=>n.tt(e,t,r,o),fn="WORD",wl="UWORD",Lo="LOCALHOST",xl="TLD",Tl="UTLD",vi="SCHEME",Ir="SLASH_SCHEME",Ec="NUM",Zp="WS",Cc="NL",Co="OPENBRACE",So="CLOSEBRACE",Ui="OPENBRACKET",ji="CLOSEBRACKET",Wi="OPENPAREN",Ki="CLOSEPAREN",Gi="OPENANGLEBRACKET",Yi="CLOSEANGLEBRACKET",Ji="FULLWIDTHLEFTPAREN",Zi="FULLWIDTHRIGHTPAREN",Xi="LEFTCORNERBRACKET",Qi="RIGHTCORNERBRACKET",qi="LEFTWHITECORNERBRACKET",es="RIGHTWHITECORNERBRACKET",ts="FULLWIDTHLESSTHAN",ns="FULLWIDTHGREATERTHAN",rs="AMPERSAND",is="APOSTROPHE",ss="ASTERISK",On="AT",as="BACKSLASH",ls="BACKTICK",cs="CARET",Nn="COLON",Sc="COMMA",us="DOLLAR",Zt="DOT",ds="EQUALS",wc="EXCLAMATION",Xt="HYPHEN",fs="PERCENT",hs="PIPE",ps="PLUS",ms="POUND",gs="QUERY",xc="QUOTE",Tc="SEMI",Qt="SLASH",wo="TILDE",vs="UNDERSCORE",Xp="EMOJI",ys="SYM";var Qp=Object.freeze({__proto__:null,WORD:fn,UWORD:wl,LOCALHOST:Lo,TLD:xl,UTLD:Tl,SCHEME:vi,SLASH_SCHEME:Ir,NUM:Ec,WS:Zp,NL:Cc,OPENBRACE:Co,CLOSEBRACE:So,OPENBRACKET:Ui,CLOSEBRACKET:ji,OPENPAREN:Wi,CLOSEPAREN:Ki,OPENANGLEBRACKET:Gi,CLOSEANGLEBRACKET:Yi,FULLWIDTHLEFTPAREN:Ji,FULLWIDTHRIGHTPAREN:Zi,LEFTCORNERBRACKET:Xi,RIGHTCORNERBRACKET:Qi,LEFTWHITECORNERBRACKET:qi,RIGHTWHITECORNERBRACKET:es,FULLWIDTHLESSTHAN:ts,FULLWIDTHGREATERTHAN:ns,AMPERSAND:rs,APOSTROPHE:is,ASTERISK:ss,AT:On,BACKSLASH:as,BACKTICK:ls,CARET:cs,COLON:Nn,COMMA:Sc,DOLLAR:us,DOT:Zt,EQUALS:ds,EXCLAMATION:wc,HYPHEN:Xt,PERCENT:fs,PIPE:hs,PLUS:ps,POUND:ms,QUERY:gs,QUOTE:xc,SEMI:Tc,SLASH:Qt,TILDE:wo,UNDERSCORE:vs,EMOJI:Xp,SYM:ys});const xr=/[a-z]/,ka=/\p{L}/u,Aa=/\p{Emoji}/u,Oa=/\d/,Md=/\s/,Nd=`
123
- `,J3="️",Z3="‍";let oi=null,ii=null;function X3(n){n===void 0&&(n=[]);const e={};vt.groups=e;const t=new vt;oi==null&&(oi=Id(U3)),ii==null&&(ii=Id(j3)),de(t,"'",is),de(t,"{",Co),de(t,"}",So),de(t,"[",Ui),de(t,"]",ji),de(t,"(",Wi),de(t,")",Ki),de(t,"<",Gi),de(t,">",Yi),de(t,"(",Ji),de(t,")",Zi),de(t,"「",Xi),de(t,"」",Qi),de(t,"『",qi),de(t,"』",es),de(t,"<",ts),de(t,">",ns),de(t,"&",rs),de(t,"*",ss),de(t,"@",On),de(t,"`",ls),de(t,"^",cs),de(t,":",Nn),de(t,",",Sc),de(t,"$",us),de(t,".",Zt),de(t,"=",ds),de(t,"!",wc),de(t,"-",Xt),de(t,"%",fs),de(t,"|",hs),de(t,"+",ps),de(t,"#",ms),de(t,"?",gs),de(t,'"',xc),de(t,"/",Qt),de(t,";",Tc),de(t,"~",wo),de(t,"_",vs),de(t,"\\",as);const r=Dt(t,Oa,Ec,{[bl]:!0});Dt(r,Oa,r);const o=Dt(t,xr,fn,{[El]:!0});Dt(o,xr,o);const i=Dt(t,ka,wl,{[Cl]:!0});Dt(i,xr),Dt(i,ka,i);const s=Dt(t,Md,Zp,{[Ad]:!0});de(t,Nd,Cc,{[Ad]:!0}),de(s,Nd),Dt(s,Md,s);const l=Dt(t,Aa,Xp,{[Jp]:!0});Dt(l,Aa,l),de(l,J3,l);const a=de(l,Z3);Dt(a,Aa,l);const c=[[xr,o]],u=[[xr,null],[ka,i]];for(let d=0;d<oi.length;d++)xn(t,oi[d],xl,fn,c);for(let d=0;d<ii.length;d++)xn(t,ii[d],Tl,wl,u);er(xl,{tld:!0,ascii:!0},e),er(Tl,{utld:!0,alpha:!0},e),xn(t,"file",vi,fn,c),xn(t,"mailto",vi,fn,c),xn(t,"http",Ir,fn,c),xn(t,"https",Ir,fn,c),xn(t,"ftp",Ir,fn,c),xn(t,"ftps",Ir,fn,c),er(vi,{scheme:!0,ascii:!0},e),er(Ir,{slashscheme:!0,ascii:!0},e),n=n.sort((d,h)=>d[0]>h[0]?1:-1);for(let d=0;d<n.length;d++){const h=n[d][0],p=n[d][1]?{[W3]:!0}:{[K3]:!0};h.indexOf("-")>=0?p[Sl]=!0:xr.test(h)?Oa.test(h)?p[gi]=!0:p[El]=!0:p[bl]=!0,Od(t,h,h,p)}return Od(t,"localhost",Lo,{ascii:!0}),t.jd=new vt(ys),{start:t,tokens:Qr({groups:e},Qp)}}function Q3(n,e){const t=q3(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=t.length,o=[];let i=0,s=0;for(;s<r;){let l=n,a=null,c=0,u=null,d=-1,h=-1;for(;s<r&&(a=l.go(t[s]));)l=a,l.accepts()?(d=0,h=0,u=l):d>=0&&(d+=t[s].length,h++),c+=t[s].length,i+=t[s].length,s++;i-=d,s-=h,c-=d,o.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return o}function q3(n){const e=[],t=n.length;let r=0;for(;r<t;){let o=n.charCodeAt(r),i,s=o<55296||o>56319||r+1===t||(i=n.charCodeAt(r+1))<56320||i>57343?n[r]:n.slice(r,r+2);e.push(s),r+=s.length}return e}function xn(n,e,t,r,o){let i;const s=e.length;for(let l=0;l<s-1;l++){const a=e[l];n.j[a]?i=n.j[a]:(i=new vt(r),i.jr=o.slice(),n.j[a]=i),n=i}return i=new vt(t),i.jr=o.slice(),n.j[e[s-1]]=i,i}function Id(n){const e=[],t=[];let r=0,o="0123456789";for(;r<n.length;){let i=0;for(;o.indexOf(n[r+i])>=0;)i++;if(i>0){e.push(t.join(""));for(let s=parseInt(n.substring(r,r+i),10);s>0;s--)t.pop();r+=i}else t.push(n[r]),r++}return e}const Ro={defaultProtocol:"http",events:null,format:Dd,formatHref:Dd,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function kc(n,e){e===void 0&&(e=null);let t=Qr({},Ro);n&&(t=Qr(t,n instanceof kc?n.o:n));const r=t.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=o}kc.prototype={o:Ro,ignoreTags:[],defaultRender(n){return n},check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const r=e!=null;let o=this.o[n];return o&&(typeof o=="object"?(o=t.t in o?o[t.t]:Ro[n],typeof o=="function"&&r&&(o=o(e,t))):typeof o=="function"&&r&&(o=o(e,t.t,t)),o)},getObj(n,e,t){let r=this.o[n];return typeof r=="function"&&e!=null&&(r=r(e,t.t,t)),r},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}};function Dd(n){return n}function qp(n,e){this.t="token",this.v=n,this.tk=e}qp.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),r=n.get("format",e,this);return t&&r.length>t?r.substring(0,t)+"…":r},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return n===void 0&&(n=Ro.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),r=n.get("formatHref",t,this),o=n.get("tagName",t,e),i=this.toFormattedString(n),s={},l=n.get("className",t,e),a=n.get("target",t,e),c=n.get("rel",t,e),u=n.getObj("attributes",t,e),d=n.getObj("events",t,e);return s.href=r,l&&(s.class=l),a&&(s.target=a),c&&(s.rel=c),u&&Qr(s,u),{tagName:o,attributes:s,content:i,eventListeners:d}}};function js(n,e){class t extends qp{constructor(o,i){super(o,i),this.t=n}}for(const r in e)t.prototype[r]=e[r];return t.t=n,t}const _d=js("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ld=js("text"),eC=js("nl"),si=js("url",{isLink:!0,toHref(n){return n===void 0&&(n=Ro.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Lo&&n[1].t===Nn}}),_t=n=>new vt(n);function tC(n){let{groups:e}=n;const t=e.domain.concat([rs,ss,On,as,ls,cs,us,ds,Xt,Ec,fs,hs,ps,ms,Qt,ys,wo,vs]),r=[is,Nn,Sc,Zt,wc,gs,xc,Tc,Gi,Yi,Co,So,ji,Ui,Wi,Ki,Ji,Zi,Xi,Qi,qi,es,ts,ns],o=[rs,is,ss,as,ls,cs,us,ds,Xt,Co,So,fs,hs,ps,ms,gs,Qt,ys,wo,vs],i=_t(),s=de(i,wo);Me(s,o,s),Me(s,e.domain,s);const l=_t(),a=_t(),c=_t();Me(i,e.domain,l),Me(i,e.scheme,a),Me(i,e.slashscheme,c),Me(l,o,s),Me(l,e.domain,l);const u=de(l,On);de(s,On,u),de(a,On,u),de(c,On,u);const d=de(s,Zt);Me(d,o,s),Me(d,e.domain,s);const h=_t();Me(u,e.domain,h),Me(h,e.domain,h);const m=de(h,Zt);Me(m,e.domain,h);const p=_t(_d);Me(m,e.tld,p),Me(m,e.utld,p),de(u,Lo,p);const g=de(h,Xt);Me(g,e.domain,h),Me(p,e.domain,h),de(p,Zt,m),de(p,Xt,g);const v=de(p,Nn);Me(v,e.numeric,_d);const C=de(l,Xt),S=de(l,Zt);Me(C,e.domain,l),Me(S,o,s),Me(S,e.domain,l);const x=_t(si);Me(S,e.tld,x),Me(S,e.utld,x),Me(x,e.domain,l),Me(x,o,s),de(x,Zt,S),de(x,Xt,C),de(x,On,u);const b=de(x,Nn),D=_t(si);Me(b,e.numeric,D);const T=_t(si),B=_t();Me(T,t,T),Me(T,r,B),Me(B,t,T),Me(B,r,B),de(x,Qt,T),de(D,Qt,T);const F=de(a,Nn),V=de(c,Nn),$=de(V,Qt),P=de($,Qt);Me(a,e.domain,l),de(a,Zt,S),de(a,Xt,C),Me(c,e.domain,l),de(c,Zt,S),de(c,Xt,C),Me(F,e.domain,T),de(F,Qt,T),Me(P,e.domain,T),Me(P,t,T),de(P,Qt,T);const R=[[Co,So],[Ui,ji],[Wi,Ki],[Gi,Yi],[Ji,Zi],[Xi,Qi],[qi,es],[ts,ns]];for(let H=0;H<R.length;H++){const[Y,Z]=R[H],X=de(T,Y);de(B,Y,X),de(X,Z,T);const oe=_t(si);Me(X,t,oe);const j=_t();Me(X,r),Me(oe,t,oe),Me(oe,r,j),Me(j,t,oe),Me(j,r,j),de(oe,Z,T),de(j,Z,T)}return de(i,Lo,x),de(i,Cc,eC),{start:i,tokens:Qp}}function nC(n,e,t){let r=t.length,o=0,i=[],s=[];for(;o<r;){let l=n,a=null,c=null,u=0,d=null,h=-1;for(;o<r&&!(a=l.go(t[o].t));)s.push(t[o++]);for(;o<r&&(c=a||l.go(t[o].t));)a=null,l=c,l.accepts()?(h=0,d=l):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(s.push(t[o]),o++);else{s.length>0&&(i.push(Ma(Ld,e,s)),s=[]),o-=h,u-=h;const m=d.t,p=t.slice(o-u,o);i.push(Ma(m,e,p))}}return s.length>0&&i.push(Ma(Ld,e,s)),i}function Ma(n,e,t){const r=t[0].s,o=t[t.length-1].e,i=e.slice(r,o);return new n(i,t)}const rC=typeof console<"u"&&console&&console.warn||(()=>{}),oC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ze={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function iC(){vt.groups={},ze.scanner=null,ze.parser=null,ze.tokenQueue=[],ze.pluginQueue=[],ze.customSchemes=[],ze.initialized=!1}function Rd(n,e){if(e===void 0&&(e=!1),ze.initialized&&rC(`linkifyjs: already initialized - will not register custom scheme "${n}" ${oC}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error(`linkifyjs: incorrect scheme format.
122
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,c){var u=c&&V3(c,r);return u&&a.push(u),a},[]);return Do(n)?l[0]:l}no.defaultProps=wt;no.setDefaultProps=P3;no.currentInput=qt;Object.assign({},Vs,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});no.setDefaultProps({render:Gp});class z3{constructor({editor:e,element:t,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:c,to:u})=>{const{doc:d,selection:h}=a,{empty:m}=h,p=!d.textBetween(c,u).length&&oc(a.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||m||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var a;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,a)=>{const c=!(a!=null&&a.selection.eq(l.state.selection)),u=!(a!=null&&a.doc.eq(l.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,u,a)},this.updateDelay))},this.updateHandler=(l,a,c,u)=>{var d,h,m;const{state:p,composing:g}=l,{selection:v}=p;if(g||!a&&!c)return;this.createTooltip();const{ranges:S}=v,x=Math.min(...S.map(T=>T.$from.pos)),b=Math.max(...S.map(T=>T.$to.pos));if(!((d=this.shouldShow)===null||d===void 0?void 0:d.call(this,{editor:this.editor,view:l,state:p,oldState:u,from:x,to:b}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(Gb(p.selection)){let T=l.nodeDOM(x);const B=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(B&&(T=B.firstChild),T)return T.getBoundingClientRect()}return fp(l,x,b)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=no(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Yp=n=>new Et({key:typeof n.pluginKey=="string"?new Kt(n.pluginKey):n.pluginKey,view:e=>new z3({view:e,...n})});Bt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Yp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class H3{constructor({editor:e,element:t,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:a}=l,{$anchor:c,empty:u}=a,d=c.depth===1,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!(!s.hasFocus()||!u||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=no(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,o,i;const{state:s}=e,{doc:l,selection:a}=s,{from:c,to:u}=a;if(t&&t.doc.eq(l)&&t.selection.eq(a))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>fp(e,c,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Jp=n=>new Et({key:typeof n.pluginKey=="string"?new Kt(n.pluginKey):n.pluginKey,view:e=>new H3({view:e,...n})});Bt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Jp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});f.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=f.ref(null);return f.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:l}=n;o.registerPlugin(Yp({updateDelay:r,editor:o,element:t.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function kd(n){return f.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class U3 extends SE{constructor(e={}){return super(e),this.vueRenderers=f.reactive(new Map),this.contentComponent=null,this.reactiveState=kd(this.view.state),this.reactiveExtensionStorage=kd(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),f.markRaw(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){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const j3=f.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=f.ref(),t=f.getCurrentInstance();return f.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&f.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=f.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),f.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=f.h(f.Teleport,{to:e.teleportElement,key:e.id},f.h(e.component,{ref:e.id,...e.props}));n.push(t)}),f.h("div",{ref:e=>{this.rootEl=e}},...n)}});f.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=f.ref(null);return f.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=n;o.registerPlugin(Jp({pluginKey:r,editor:o,element:t.value,tippyOptions:i,shouldShow:s}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});f.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return f.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});f.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return f.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});const W3=(n={})=>{const e=f.shallowRef();return f.onMounted(()=>{e.value=new U3(n)}),f.onBeforeUnmount(()=>{var t;(t=e.value)===null||t===void 0||t.destroy()}),e},K3=bn.create({name:"doc",topNode:!0,content:"block+"}),G3=bn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Y3=bn.create({name:"text",group:"inline"}),J3="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Z3="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Qr=(n,e)=>{for(const t in e)n[t]=e[t];return n},bl="numeric",El="ascii",Cl="alpha",gi="asciinumeric",ri="alphanumeric",Sl="domain",Zp="emoji",X3="scheme",Q3="slashscheme",Ad="whitespace";function q3(n,e){return n in e||(e[n]=[]),e[n]}function er(n,e,t){e[bl]&&(e[gi]=!0,e[ri]=!0),e[El]&&(e[gi]=!0,e[Cl]=!0),e[gi]&&(e[ri]=!0),e[Cl]&&(e[ri]=!0),e[ri]&&(e[Sl]=!0),e[Zp]&&(e[Sl]=!0);for(const r in e){const o=q3(r,t);o.indexOf(n)<0&&o.push(n)}}function eC(n,e){const t={};for(const r in e)e[r].indexOf(n)>=0&&(t[r]=!0);return t}function vt(n){n===void 0&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}vt.groups={};vt.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(n))return i}return e.jd},has(n,e){return e===void 0&&(e=!1),e?n in this.j:!!this.go(n)},ta(n,e,t,r){for(let o=0;o<n.length;o++)this.tt(n[o],e,t,r)},tr(n,e,t,r){r=r||vt.groups;let o;return e&&e.j?o=e:(o=new vt(e),t&&r&&er(e,t,r)),this.jr.push([n,o]),o},ts(n,e,t,r){let o=this;const i=n.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(n[s]);return o.tt(n[i-1],e,t,r)},tt(n,e,t,r){r=r||vt.groups;const o=this;if(e&&e.j)return o.j[n]=e,e;const i=e;let s,l=o.go(n);if(l?(s=new vt,Qr(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new vt,i){if(r)if(s.t&&typeof s.t=="string"){const a=Qr(eC(s.t,r),t);er(i,a,r)}else t&&er(i,t,r);s.t=i}return o.j[n]=s,s}};const Me=(n,e,t,r,o)=>n.ta(e,t,r,o),Dt=(n,e,t,r,o)=>n.tr(e,t,r,o),Od=(n,e,t,r,o)=>n.ts(e,t,r,o),de=(n,e,t,r,o)=>n.tt(e,t,r,o),fn="WORD",wl="UWORD",Lo="LOCALHOST",xl="TLD",Tl="UTLD",vi="SCHEME",Ir="SLASH_SCHEME",Ec="NUM",Xp="WS",Cc="NL",Co="OPENBRACE",So="CLOSEBRACE",Ui="OPENBRACKET",ji="CLOSEBRACKET",Wi="OPENPAREN",Ki="CLOSEPAREN",Gi="OPENANGLEBRACKET",Yi="CLOSEANGLEBRACKET",Ji="FULLWIDTHLEFTPAREN",Zi="FULLWIDTHRIGHTPAREN",Xi="LEFTCORNERBRACKET",Qi="RIGHTCORNERBRACKET",qi="LEFTWHITECORNERBRACKET",es="RIGHTWHITECORNERBRACKET",ts="FULLWIDTHLESSTHAN",ns="FULLWIDTHGREATERTHAN",rs="AMPERSAND",is="APOSTROPHE",ss="ASTERISK",On="AT",as="BACKSLASH",ls="BACKTICK",cs="CARET",Nn="COLON",Sc="COMMA",us="DOLLAR",Zt="DOT",ds="EQUALS",wc="EXCLAMATION",Xt="HYPHEN",fs="PERCENT",hs="PIPE",ps="PLUS",ms="POUND",gs="QUERY",xc="QUOTE",Tc="SEMI",Qt="SLASH",wo="TILDE",vs="UNDERSCORE",Qp="EMOJI",ys="SYM";var qp=Object.freeze({__proto__:null,WORD:fn,UWORD:wl,LOCALHOST:Lo,TLD:xl,UTLD:Tl,SCHEME:vi,SLASH_SCHEME:Ir,NUM:Ec,WS:Xp,NL:Cc,OPENBRACE:Co,CLOSEBRACE:So,OPENBRACKET:Ui,CLOSEBRACKET:ji,OPENPAREN:Wi,CLOSEPAREN:Ki,OPENANGLEBRACKET:Gi,CLOSEANGLEBRACKET:Yi,FULLWIDTHLEFTPAREN:Ji,FULLWIDTHRIGHTPAREN:Zi,LEFTCORNERBRACKET:Xi,RIGHTCORNERBRACKET:Qi,LEFTWHITECORNERBRACKET:qi,RIGHTWHITECORNERBRACKET:es,FULLWIDTHLESSTHAN:ts,FULLWIDTHGREATERTHAN:ns,AMPERSAND:rs,APOSTROPHE:is,ASTERISK:ss,AT:On,BACKSLASH:as,BACKTICK:ls,CARET:cs,COLON:Nn,COMMA:Sc,DOLLAR:us,DOT:Zt,EQUALS:ds,EXCLAMATION:wc,HYPHEN:Xt,PERCENT:fs,PIPE:hs,PLUS:ps,POUND:ms,QUERY:gs,QUOTE:xc,SEMI:Tc,SLASH:Qt,TILDE:wo,UNDERSCORE:vs,EMOJI:Qp,SYM:ys});const xr=/[a-z]/,ka=/\p{L}/u,Aa=/\p{Emoji}/u,Oa=/\d/,Md=/\s/,Nd=`
123
+ `,tC="️",nC="‍";let oi=null,ii=null;function rC(n){n===void 0&&(n=[]);const e={};vt.groups=e;const t=new vt;oi==null&&(oi=Id(J3)),ii==null&&(ii=Id(Z3)),de(t,"'",is),de(t,"{",Co),de(t,"}",So),de(t,"[",Ui),de(t,"]",ji),de(t,"(",Wi),de(t,")",Ki),de(t,"<",Gi),de(t,">",Yi),de(t,"(",Ji),de(t,")",Zi),de(t,"「",Xi),de(t,"」",Qi),de(t,"『",qi),de(t,"』",es),de(t,"<",ts),de(t,">",ns),de(t,"&",rs),de(t,"*",ss),de(t,"@",On),de(t,"`",ls),de(t,"^",cs),de(t,":",Nn),de(t,",",Sc),de(t,"$",us),de(t,".",Zt),de(t,"=",ds),de(t,"!",wc),de(t,"-",Xt),de(t,"%",fs),de(t,"|",hs),de(t,"+",ps),de(t,"#",ms),de(t,"?",gs),de(t,'"',xc),de(t,"/",Qt),de(t,";",Tc),de(t,"~",wo),de(t,"_",vs),de(t,"\\",as);const r=Dt(t,Oa,Ec,{[bl]:!0});Dt(r,Oa,r);const o=Dt(t,xr,fn,{[El]:!0});Dt(o,xr,o);const i=Dt(t,ka,wl,{[Cl]:!0});Dt(i,xr),Dt(i,ka,i);const s=Dt(t,Md,Xp,{[Ad]:!0});de(t,Nd,Cc,{[Ad]:!0}),de(s,Nd),Dt(s,Md,s);const l=Dt(t,Aa,Qp,{[Zp]:!0});Dt(l,Aa,l),de(l,tC,l);const a=de(l,nC);Dt(a,Aa,l);const c=[[xr,o]],u=[[xr,null],[ka,i]];for(let d=0;d<oi.length;d++)xn(t,oi[d],xl,fn,c);for(let d=0;d<ii.length;d++)xn(t,ii[d],Tl,wl,u);er(xl,{tld:!0,ascii:!0},e),er(Tl,{utld:!0,alpha:!0},e),xn(t,"file",vi,fn,c),xn(t,"mailto",vi,fn,c),xn(t,"http",Ir,fn,c),xn(t,"https",Ir,fn,c),xn(t,"ftp",Ir,fn,c),xn(t,"ftps",Ir,fn,c),er(vi,{scheme:!0,ascii:!0},e),er(Ir,{slashscheme:!0,ascii:!0},e),n=n.sort((d,h)=>d[0]>h[0]?1:-1);for(let d=0;d<n.length;d++){const h=n[d][0],p=n[d][1]?{[X3]:!0}:{[Q3]:!0};h.indexOf("-")>=0?p[Sl]=!0:xr.test(h)?Oa.test(h)?p[gi]=!0:p[El]=!0:p[bl]=!0,Od(t,h,h,p)}return Od(t,"localhost",Lo,{ascii:!0}),t.jd=new vt(ys),{start:t,tokens:Qr({groups:e},qp)}}function oC(n,e){const t=iC(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=t.length,o=[];let i=0,s=0;for(;s<r;){let l=n,a=null,c=0,u=null,d=-1,h=-1;for(;s<r&&(a=l.go(t[s]));)l=a,l.accepts()?(d=0,h=0,u=l):d>=0&&(d+=t[s].length,h++),c+=t[s].length,i+=t[s].length,s++;i-=d,s-=h,c-=d,o.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return o}function iC(n){const e=[],t=n.length;let r=0;for(;r<t;){let o=n.charCodeAt(r),i,s=o<55296||o>56319||r+1===t||(i=n.charCodeAt(r+1))<56320||i>57343?n[r]:n.slice(r,r+2);e.push(s),r+=s.length}return e}function xn(n,e,t,r,o){let i;const s=e.length;for(let l=0;l<s-1;l++){const a=e[l];n.j[a]?i=n.j[a]:(i=new vt(r),i.jr=o.slice(),n.j[a]=i),n=i}return i=new vt(t),i.jr=o.slice(),n.j[e[s-1]]=i,i}function Id(n){const e=[],t=[];let r=0,o="0123456789";for(;r<n.length;){let i=0;for(;o.indexOf(n[r+i])>=0;)i++;if(i>0){e.push(t.join(""));for(let s=parseInt(n.substring(r,r+i),10);s>0;s--)t.pop();r+=i}else t.push(n[r]),r++}return e}const Ro={defaultProtocol:"http",events:null,format:Dd,formatHref:Dd,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function kc(n,e){e===void 0&&(e=null);let t=Qr({},Ro);n&&(t=Qr(t,n instanceof kc?n.o:n));const r=t.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=o}kc.prototype={o:Ro,ignoreTags:[],defaultRender(n){return n},check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const r=e!=null;let o=this.o[n];return o&&(typeof o=="object"?(o=t.t in o?o[t.t]:Ro[n],typeof o=="function"&&r&&(o=o(e,t))):typeof o=="function"&&r&&(o=o(e,t.t,t)),o)},getObj(n,e,t){let r=this.o[n];return typeof r=="function"&&e!=null&&(r=r(e,t.t,t)),r},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}};function Dd(n){return n}function em(n,e){this.t="token",this.v=n,this.tk=e}em.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),r=n.get("format",e,this);return t&&r.length>t?r.substring(0,t)+"…":r},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return n===void 0&&(n=Ro.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),r=n.get("formatHref",t,this),o=n.get("tagName",t,e),i=this.toFormattedString(n),s={},l=n.get("className",t,e),a=n.get("target",t,e),c=n.get("rel",t,e),u=n.getObj("attributes",t,e),d=n.getObj("events",t,e);return s.href=r,l&&(s.class=l),a&&(s.target=a),c&&(s.rel=c),u&&Qr(s,u),{tagName:o,attributes:s,content:i,eventListeners:d}}};function js(n,e){class t extends em{constructor(o,i){super(o,i),this.t=n}}for(const r in e)t.prototype[r]=e[r];return t.t=n,t}const _d=js("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ld=js("text"),sC=js("nl"),si=js("url",{isLink:!0,toHref(n){return n===void 0&&(n=Ro.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Lo&&n[1].t===Nn}}),_t=n=>new vt(n);function aC(n){let{groups:e}=n;const t=e.domain.concat([rs,ss,On,as,ls,cs,us,ds,Xt,Ec,fs,hs,ps,ms,Qt,ys,wo,vs]),r=[is,Nn,Sc,Zt,wc,gs,xc,Tc,Gi,Yi,Co,So,ji,Ui,Wi,Ki,Ji,Zi,Xi,Qi,qi,es,ts,ns],o=[rs,is,ss,as,ls,cs,us,ds,Xt,Co,So,fs,hs,ps,ms,gs,Qt,ys,wo,vs],i=_t(),s=de(i,wo);Me(s,o,s),Me(s,e.domain,s);const l=_t(),a=_t(),c=_t();Me(i,e.domain,l),Me(i,e.scheme,a),Me(i,e.slashscheme,c),Me(l,o,s),Me(l,e.domain,l);const u=de(l,On);de(s,On,u),de(a,On,u),de(c,On,u);const d=de(s,Zt);Me(d,o,s),Me(d,e.domain,s);const h=_t();Me(u,e.domain,h),Me(h,e.domain,h);const m=de(h,Zt);Me(m,e.domain,h);const p=_t(_d);Me(m,e.tld,p),Me(m,e.utld,p),de(u,Lo,p);const g=de(h,Xt);Me(g,e.domain,h),Me(p,e.domain,h),de(p,Zt,m),de(p,Xt,g);const v=de(p,Nn);Me(v,e.numeric,_d);const C=de(l,Xt),S=de(l,Zt);Me(C,e.domain,l),Me(S,o,s),Me(S,e.domain,l);const x=_t(si);Me(S,e.tld,x),Me(S,e.utld,x),Me(x,e.domain,l),Me(x,o,s),de(x,Zt,S),de(x,Xt,C),de(x,On,u);const b=de(x,Nn),D=_t(si);Me(b,e.numeric,D);const T=_t(si),B=_t();Me(T,t,T),Me(T,r,B),Me(B,t,T),Me(B,r,B),de(x,Qt,T),de(D,Qt,T);const F=de(a,Nn),V=de(c,Nn),$=de(V,Qt),P=de($,Qt);Me(a,e.domain,l),de(a,Zt,S),de(a,Xt,C),Me(c,e.domain,l),de(c,Zt,S),de(c,Xt,C),Me(F,e.domain,T),de(F,Qt,T),Me(P,e.domain,T),Me(P,t,T),de(P,Qt,T);const R=[[Co,So],[Ui,ji],[Wi,Ki],[Gi,Yi],[Ji,Zi],[Xi,Qi],[qi,es],[ts,ns]];for(let H=0;H<R.length;H++){const[Y,Z]=R[H],X=de(T,Y);de(B,Y,X),de(X,Z,T);const oe=_t(si);Me(X,t,oe);const j=_t();Me(X,r),Me(oe,t,oe),Me(oe,r,j),Me(j,t,oe),Me(j,r,j),de(oe,Z,T),de(j,Z,T)}return de(i,Lo,x),de(i,Cc,sC),{start:i,tokens:qp}}function lC(n,e,t){let r=t.length,o=0,i=[],s=[];for(;o<r;){let l=n,a=null,c=null,u=0,d=null,h=-1;for(;o<r&&!(a=l.go(t[o].t));)s.push(t[o++]);for(;o<r&&(c=a||l.go(t[o].t));)a=null,l=c,l.accepts()?(h=0,d=l):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(s.push(t[o]),o++);else{s.length>0&&(i.push(Ma(Ld,e,s)),s=[]),o-=h,u-=h;const m=d.t,p=t.slice(o-u,o);i.push(Ma(m,e,p))}}return s.length>0&&i.push(Ma(Ld,e,s)),i}function Ma(n,e,t){const r=t[0].s,o=t[t.length-1].e,i=e.slice(r,o);return new n(i,t)}const cC=typeof console<"u"&&console&&console.warn||(()=>{}),uC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ze={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function dC(){vt.groups={},ze.scanner=null,ze.parser=null,ze.tokenQueue=[],ze.pluginQueue=[],ze.customSchemes=[],ze.initialized=!1}function Rd(n,e){if(e===void 0&&(e=!1),ze.initialized&&cC(`linkifyjs: already initialized - will not register custom scheme "${n}" ${uC}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error(`linkifyjs: incorrect scheme format.
124
124
  1. Must only contain digits, lowercase ASCII letters or "-"
125
125
  2. Cannot start or end with "-"
126
- 3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function sC(){ze.scanner=X3(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=tC(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function aC(n){return ze.initialized||sC(),nC(ze.parser.start,n,Q3(ze.scanner.start,n))}function Ac(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new kc(t),o=aC(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function lC(n){return new Et({key:new Kt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=Mb(t.doc,[...e]);if($b(l).forEach(({newRange:c})=>{const u=Ib(r.doc,c,m=>m.isTextblock);let d,h;if(u.length>1?(d=u[0],h=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],h=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&h){const m=h.split(" ").filter(v=>v!=="");if(m.length<=0)return!1;const p=m[m.length-1],g=d.pos+h.lastIndexOf(p);if(!p)return!1;Ac(p).filter(v=>v.isLink).map(v=>({...v,from:g+v.start+1,to:g+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>n.validate?n.validate(v.value):!0).forEach(v=>{ac(v.from,v.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!s.steps.length)return s}})}function cC(n){return new Et({key:new Kt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=up(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function uC(n){return new Et({key:new Kt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(p=>{a+=p.textContent});const c=Ac(a).find(p=>p.isLink&&p.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),d=/href="([^"]*)"/,h=u==null?void 0:u.match(d),m=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:m}),!0}}})}const dC=an.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Rd(n);return}Rd(n.scheme,n.optionalSlashes)})},onDestroy(){iC()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Io({find:n=>Ac(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(lC({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(cC({type:this.type})),this.options.linkOnPaste&&n.push(uC({editor:this.editor,type:this.type})),n}}),fC=dC.extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),hC=Bt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Et({key:new Kt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=Rt.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),pC=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,mC=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,gC=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,vC=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,yC=an.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$i({find:pC,type:this.type}),$i({find:gC,type:this.type})]},addPasteRules(){return[Io({find:mC,type:this.type}),Io({find:vC,type:this.type})]}}),bC=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,EC=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,CC=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,SC=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,wC=an.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$i({find:bC,type:this.type}),$i({find:CC,type:this.type})]},addPasteRules(){return[Io({find:EC,type:this.type}),Io({find:SC,type:this.type})]}}),xC=an.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),TC=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),kC=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Pd=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Bd=/^\s*([-+*])\s$/,AC=bn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(kC.name,this.editor.getAttributes(Pd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Fi({find:Bd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:Bd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Pd.name),editor:this.editor})),[n]}}),OC=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),$d=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Fd=/^(\d+)\.\s$/,MC=bn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",mt(this.options.HTMLAttributes,t),0]:["ol",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(OC.name,this.editor.getAttributes($d.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Fi({find:Fd,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:Fd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes($d.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),NC=bn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",mt(this.options.HTMLAttributes,n)]},renderText(){return`
127
- `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Na={BASIC:"basic",FULL:"full"},IC={class:"attachment-list"},DC={class:"attachment-link"},_C={key:1,class:"attachment-no-download"},LC=["href"],Ws=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",IC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",DC,[r.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",_C,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,LC))])]))),128))]))}}),RC={class:"attachment-list"},PC={class:"attachment"},BC=["onClick"],$C=["src","alt"],FC=["onClick"],VC=["href"],zC={class:"btn btn-light download-button-image"},HC=["src","alt"],Ks=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",RC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",PC,[i.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,$C)],8,BC)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",zC,[f.createVNode(f.unref(Ei))])],8,VC)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,HC)],8,FC))])]))),128))]))}}),Vd=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),UC=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,jC=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,WC=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,KC=(n,e)=>e?Vd(n):!Vd(n),bs=(n,e)=>n===void 0?void 0:n.filter(o=>KC(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:UC(o),previewUrl:jC(o),fullImageUrl:WC(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),GC={class:"bd-markdown-editor__menu-bottom"},YC={key:0,class:"vr"},JC={key:4,class:"vr"},ZC={key:7,class:"vr"},em=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Na.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=gr(t,"modelValue",e),i=[V3,z3,H3,hC.configure({placeholder:t.placeholder}),NC];t.variant===Na.FULL&&i.push(yC,wC,xC,TC,AC,MC,fC.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=F3({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:x}=C,{from:b,to:D}=S.state.selection;if(x.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===Na.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,m=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!1):null),p=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},v=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref($3),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),m.value?(f.openBlock(),f.createBlock(Ws,{key:0,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),p.value?(f.openBlock(),f.createBlock(Ks,{key:1,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",GC,[f.createVNode(lt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(cr))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",YC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=x=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Nl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=x=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Bl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=x=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Fl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",JC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=x=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Il))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=x=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref($l))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",ZC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=x=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Pl))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(As),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),XC={class:"header"},QC=f.createElementVNode("div",null,"Menu",-1),qC={class:"icon-close-wrapper"},eS={class:"navbar"},tS={class:"nav navbar-nav w-100"},nS={class:"nav-item"},rS={class:"nav-item"},Oc=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",XC,[QC,f.createElementVNode("div",qC,[f.createVNode(ws,{onClick:o})])]),f.createElementVNode("nav",eS,[f.createElementVNode("ul",tS,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",nS,[f.createVNode(zr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.createElementVNode("li",rS,[f.createVNode(zr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),oS={class:"bd-user"},iS={class:"bd-user__information"},sS={class:"text-break"},aS={class:"overflow-x-hidden"},tm=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",oS,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(Fo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",iS,[f.createElementVNode("header",null,[f.createElementVNode("h5",sS,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",aS,f.toDisplayString(t.value),1)])]))}}),lS="",cS={class:"bd-chat-cloud-card"},uS={class:"bd-chat-cloud-card__header"},dS={class:"bd-chat-cloud-card__body"},fS=["innerHTML"],hS={class:"bd-chat-cloud-card__footer"},nm=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":lS),o=f.computed(()=>bs(t.files,!1)),i=f.computed(()=>bs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(Fo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",cS,[f.createElementVNode("div",uS,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(lt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",dS,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,fS)])]),f.createElementVNode("div",hS,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ws,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ks,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),pS={class:"bd-dropdown dropdown"},Mc=f.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:ks.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r}));return(l,a)=>(f.openBlock(),f.createElementBlock("div",pS,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({class:["dropdown-menu",i.value]},s.value),[f.renderSlot(l.$slots,"default")],16)]))}}),mS={class:"navbar navbar-expand-lg header-navbar"},gS=f.createElementVNode("div",null,"Menu",-1),vS={class:"bd-btn-settings d-flex gap-2 align-items-center"},yS="sm",rm=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},src:{},profileImageAlt:{},profileImageSize:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.ref(void 0),o=()=>e("click"),i=()=>{e("signout")},s=()=>r.value=!0,l=()=>r.value=!1,a=f.computed(()=>{if(!t.dropdownOptions)return[];let c=t.dropdownOptions.slice(0);return c.unshift({to:{name:"Overview"},text:"Gesprekken"}),c});return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",mS,[f.createVNode(Vl,{viewBox:"0 0 351 61",class:"d-inline-block b-d-logo",onClick:o}),f.createElementVNode("div",{class:"bd-hamburger",onClick:s},[gS,f.createVNode(Ci)]),f.createElementVNode("div",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(lt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))]),f.createElementVNode("div",vS,[t.src?(f.openBlock(),f.createBlock(Fo,{key:0,src:t.src,alt:t.profileImageAlt,size:yS},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(Mc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(wi,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(wi,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),f.createVNode(Oc,{active:r.value,options:a.value,onHide:l,onSignout:i},null,8,["active","options"])],64))}}),bS={class:"modal bd-modal modal-lg",tabindex:"-1"},ES={class:"modal-dialog"},CS={class:"modal-content"},SS={class:"modal-header"},wS={class:"modal-title"},xS={class:"modal-body"},TS={key:0,class:"modal-footer"},kS=["disabled"],om=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",bS,[f.createElementVNode("div",ES,[f.createElementVNode("div",CS,[f.createElementVNode("div",SS,[f.createElementVNode("h2",wS,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[f.createTextVNode("Sluiten "),f.createVNode(f.unref(ws),{class:"bg-primary"})])]),f.createElementVNode("div",xS,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",TS,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,kS)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
126
+ 3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function fC(){ze.scanner=rC(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=aC(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function hC(n){return ze.initialized||fC(),lC(ze.parser.start,n,oC(ze.scanner.start,n))}function Ac(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new kc(t),o=hC(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function pC(n){return new Et({key:new Kt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=Rb(t.doc,[...e]);if(jb(l).forEach(({newRange:c})=>{const u=Bb(r.doc,c,m=>m.isTextblock);let d,h;if(u.length>1?(d=u[0],h=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],h=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&h){const m=h.split(" ").filter(v=>v!=="");if(m.length<=0)return!1;const p=m[m.length-1],g=d.pos+h.lastIndexOf(p);if(!p)return!1;Ac(p).filter(v=>v.isLink).map(v=>({...v,from:g+v.start+1,to:g+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>n.validate?n.validate(v.value):!0).forEach(v=>{ac(v.from,v.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!s.steps.length)return s}})}function mC(n){return new Et({key:new Kt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=dp(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function gC(n){return new Et({key:new Kt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(p=>{a+=p.textContent});const c=Ac(a).find(p=>p.isLink&&p.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),d=/href="([^"]*)"/,h=u==null?void 0:u.match(d),m=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:m}),!0}}})}const vC=an.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Rd(n);return}Rd(n.scheme,n.optionalSlashes)})},onDestroy(){dC()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Io({find:n=>Ac(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(pC({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(mC({type:this.type})),this.options.linkOnPaste&&n.push(gC({editor:this.editor,type:this.type})),n}}),yC=vC.extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),bC=Bt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Et({key:new Kt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=Rt.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),EC=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,CC=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,SC=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,wC=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,xC=an.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$i({find:EC,type:this.type}),$i({find:SC,type:this.type})]},addPasteRules(){return[Io({find:CC,type:this.type}),Io({find:wC,type:this.type})]}}),TC=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,kC=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,AC=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,OC=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,MC=an.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$i({find:TC,type:this.type}),$i({find:AC,type:this.type})]},addPasteRules(){return[Io({find:kC,type:this.type}),Io({find:OC,type:this.type})]}}),NC=an.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),IC=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),DC=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Pd=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Bd=/^\s*([-+*])\s$/,_C=bn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(DC.name,this.editor.getAttributes(Pd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Fi({find:Bd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:Bd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Pd.name),editor:this.editor})),[n]}}),LC=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),$d=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Fd=/^(\d+)\.\s$/,RC=bn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",mt(this.options.HTMLAttributes,t),0]:["ol",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(LC.name,this.editor.getAttributes($d.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Fi({find:Fd,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:Fd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes($d.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),PC=bn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",mt(this.options.HTMLAttributes,n)]},renderText(){return`
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Na={BASIC:"basic",FULL:"full"},BC={class:"attachment-list"},$C={class:"attachment-link"},FC={key:1,class:"attachment-no-download"},VC=["href"],Ws=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",BC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",$C,[r.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",FC,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,VC))])]))),128))]))}}),zC={class:"attachment-list"},HC={class:"attachment"},UC=["onClick"],jC=["src","alt"],WC=["onClick"],KC=["href"],GC={class:"btn btn-light download-button-image"},YC=["src","alt"],Ks=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",zC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",HC,[i.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,jC)],8,UC)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",GC,[f.createVNode(f.unref(Ei))])],8,KC)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,YC)],8,WC))])]))),128))]))}}),Vd=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),JC=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,ZC=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,XC=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,QC=(n,e)=>e?Vd(n):!Vd(n),bs=(n,e)=>n===void 0?void 0:n.filter(o=>QC(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:JC(o),previewUrl:ZC(o),fullImageUrl:XC(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),qC={class:"bd-markdown-editor__menu-bottom"},eS={key:0,class:"vr"},tS={key:4,class:"vr"},nS={key:7,class:"vr"},tm=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Na.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=gr(t,"modelValue",e),i=[K3,G3,Y3,bC.configure({placeholder:t.placeholder}),PC];t.variant===Na.FULL&&i.push(xC,MC,NC,IC,_C,RC,yC.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=W3({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:x}=C,{from:b,to:D}=S.state.selection;if(x.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===Na.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,m=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!1):null),p=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},v=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(j3),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),m.value?(f.openBlock(),f.createBlock(Ws,{key:0,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),p.value?(f.openBlock(),f.createBlock(Ks,{key:1,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",qC,[f.createVNode(lt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(cr))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",eS)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=x=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Nl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=x=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Bl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=x=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Fl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",tS)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=x=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Il))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=x=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref($l))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",nS)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=x=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Pl))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(As),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),rS={class:"header"},oS=f.createElementVNode("div",null,"Menu",-1),iS={class:"icon-close-wrapper"},sS={class:"navbar"},aS={class:"nav navbar-nav w-100"},lS={class:"nav-item"},cS={class:"nav-item"},Oc=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",rS,[oS,f.createElementVNode("div",iS,[f.createVNode(ws,{onClick:o})])]),f.createElementVNode("nav",sS,[f.createElementVNode("ul",aS,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",lS,[f.createVNode(zr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.createElementVNode("li",cS,[f.createVNode(zr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),uS={class:"bd-user"},dS={class:"bd-user__information"},fS={class:"text-break"},hS={class:"overflow-x-hidden"},nm=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",uS,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(Fo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",dS,[f.createElementVNode("header",null,[f.createElementVNode("h5",fS,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",hS,f.toDisplayString(t.value),1)])]))}}),pS="",mS={class:"bd-chat-cloud-card"},gS={class:"bd-chat-cloud-card__header"},vS={class:"bd-chat-cloud-card__body"},yS=["innerHTML"],bS={class:"bd-chat-cloud-card__footer"},rm=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":pS),o=f.computed(()=>bs(t.files,!1)),i=f.computed(()=>bs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(Fo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",mS,[f.createElementVNode("div",gS,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(lt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",vS,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,yS)])]),f.createElementVNode("div",bS,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ws,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ks,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),ES={class:"bd-dropdown dropdown"},Mc=f.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:ks.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r}));return(l,a)=>(f.openBlock(),f.createElementBlock("div",ES,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({class:["dropdown-menu",i.value]},s.value),[f.renderSlot(l.$slots,"default")],16)]))}}),CS={class:"navbar navbar-expand-lg header-navbar"},SS=f.createElementVNode("div",null,"Menu",-1),wS={key:0,class:"header-options"},xS={class:"bd-btn-settings d-flex gap-2 align-items-center"},TS="sm",om=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},src:{},profileImageAlt:{},profileImageSize:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.ref(void 0),o=()=>e("click"),i=()=>{e("signout")},s=()=>r.value=!0,l=()=>r.value=!1,a=f.computed(()=>{if(!t.dropdownOptions)return[];let c=t.dropdownOptions.slice(0);return c.unshift({to:{name:"Overview"},text:"Gesprekken"}),c});return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",CS,[f.createVNode(Vl,{viewBox:"0 0 351 61",class:"d-inline-block b-d-logo",onClick:o}),f.createElementVNode("div",{class:"bd-hamburger",onClick:s},[SS,f.createVNode(Ci)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",wS,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(lt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",xS,[t.src?(f.openBlock(),f.createBlock(Fo,{key:0,src:t.src,alt:t.profileImageAlt,size:TS},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(Mc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(wi,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(wi,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),f.createVNode(Oc,{active:r.value,options:a.value,onHide:l,onSignout:i},null,8,["active","options"])],64))}}),kS={class:"modal bd-modal modal-lg",tabindex:"-1"},AS={class:"modal-dialog"},OS={class:"modal-content"},MS={class:"modal-header"},NS={class:"modal-title"},IS={class:"modal-body"},DS={key:0,class:"modal-footer"},_S=["disabled"],im=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",kS,[f.createElementVNode("div",AS,[f.createElementVNode("div",OS,[f.createElementVNode("div",MS,[f.createElementVNode("h2",NS,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[f.createTextVNode("Sluiten "),f.createVNode(f.unref(ws),{class:"bg-primary"})])]),f.createElementVNode("div",IS,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",DS,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,_S)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
128
128
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
129
129
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
130
130
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
131
- */const Tn=new Map,Ia={set(n,e,t){Tn.has(n)||Tn.set(n,new Map);const r=Tn.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return Tn.has(n)&&Tn.get(n).get(e)||null},remove(n,e){if(!Tn.has(n))return;const t=Tn.get(n);t.delete(e),t.size===0&&Tn.delete(n)}},AS=1e6,OS=1e3,kl="transitionend",im=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),MS=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),NS=n=>{do n+=Math.floor(Math.random()*AS);while(document.getElementById(n));return n},IS=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*OS)},sm=n=>{n.dispatchEvent(new Event(kl))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),$n=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(im(n)):null,ro=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Fn=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",am=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?am(n.parentNode):null},Es=()=>{},Wo=n=>{n.offsetHeight},lm=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Da=[],DS=n=>{document.readyState==="loading"?(Da.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Da)e()}),Da.push(n)):n()},$t=()=>document.documentElement.dir==="rtl",Vt=n=>{DS(()=>{const e=lm();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},yt=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,cm=(n,e,t=!0)=>{if(!t){yt(n);return}const r=5,o=IS(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(kl,s),yt(n))};e.addEventListener(kl,s),setTimeout(()=>{i||sm(e)},o)},Nc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},_S=/[^.]*(?=\..*)\.|.*/,LS=/\..*/,RS=/::\d+$/,_a={};let zd=1;const um={mouseenter:"mouseover",mouseleave:"mouseout"},PS=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function dm(n,e){return e&&`${e}::${zd++}`||n.uidEvent||zd++}function fm(n){const e=dm(n);return n.uidEvent=e,_a[e]=_a[e]||{},_a[e]}function BS(n,e){return function t(r){return Ic(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function $S(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return Ic(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function hm(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function pm(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=mm(n);return PS.has(i)||(i=n),[r,o,i]}function Hd(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=pm(e,t,r);e in um&&(s=(p=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return p.call(this,g)})(s));const a=fm(n),c=a[l]||(a[l]={}),u=hm(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=dm(s,e.replace(_S,"")),h=i?$S(n,t,s):BS(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function Al(n,e,t,r,o){const i=hm(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function FS(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Al(n,e,t,s.callable,s.delegationSelector)}function mm(n){return n=n.replace(LS,""),um[n]||n}const ne={on(n,e,t,r){Hd(n,e,t,r,!1)},one(n,e,t,r){Hd(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=pm(e,t,r),l=s!==e,a=fm(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Al(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))FS(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const m=d.replace(RS,"");(!l||e.includes(m))&&Al(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=lm(),o=mm(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=Ic(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Ic(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Ud(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function La(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const yn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${La(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${La(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Ud(n.dataset[r])}return e},getDataAttribute(n,e){return Ud(n.getAttribute(`data-bs-${La(e)}`))}};class Ko{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?yn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?yn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=vn(i)?"element":MS(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const VS="5.3.0";class Gt extends Ko{constructor(e,t){super(),e=$n(e),e&&(this._element=e,this._config=this._getConfig(t),Ia.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ia.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){cm(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ia.get($n(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return VS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Ra=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return im(e)},ye={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Fn(t)&&ro(t))},getSelectorFromElement(n){const e=Ra(n);return e&&ye.findOne(e)?e:null},getElementFromSelector(n){const e=Ra(n);return e?ye.findOne(e):null},getMultipleElementsFromSelector(n){const e=Ra(n);return e?ye.find(e):[]}},Gs=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Fn(this))return;const i=ye.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},zS="alert",HS="bs.alert",gm=`.${HS}`,US=`close${gm}`,jS=`closed${gm}`,WS="fade",KS="show";class Ys extends Gt{static get NAME(){return zS}close(){if(ne.trigger(this._element,US).defaultPrevented)return;this._element.classList.remove(KS);const t=this._element.classList.contains(WS);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,jS),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Ys,"close");Vt(Ys);const GS="button",YS="bs.button",JS=`.${YS}`,ZS=".data-api",XS="active",jd='[data-bs-toggle="button"]',QS=`click${JS}${ZS}`;class Js extends Gt{static get NAME(){return GS}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(XS))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,QS,jd,n=>{n.preventDefault();const e=n.target.closest(jd);Js.getOrCreateInstance(e).toggle()});Vt(Js);const qS="swipe",oo=".bs.swipe",e4=`touchstart${oo}`,t4=`touchmove${oo}`,n4=`touchend${oo}`,r4=`pointerdown${oo}`,o4=`pointerup${oo}`,i4="touch",s4="pen",a4="pointer-event",l4=40,c4={endCallback:null,leftCallback:null,rightCallback:null},u4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Cs extends Ko{constructor(e,t){super(),this._element=e,!(!e||!Cs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return c4}static get DefaultType(){return u4}static get NAME(){return qS}dispose(){ne.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),yt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=l4)return;const t=e/this._deltaX;this._deltaX=0,t&&yt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,r4,e=>this._start(e)),ne.on(this._element,o4,e=>this._end(e)),this._element.classList.add(a4)):(ne.on(this._element,e4,e=>this._start(e)),ne.on(this._element,t4,e=>this._move(e)),ne.on(this._element,n4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===s4||e.pointerType===i4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const d4="carousel",f4="bs.carousel",Wn=`.${f4}`,vm=".data-api",h4="ArrowLeft",p4="ArrowRight",m4=500,so="next",Tr="prev",Dr="left",yi="right",g4=`slide${Wn}`,Pa=`slid${Wn}`,v4=`keydown${Wn}`,y4=`mouseenter${Wn}`,b4=`mouseleave${Wn}`,E4=`dragstart${Wn}`,C4=`load${Wn}${vm}`,S4=`click${Wn}${vm}`,ym="carousel",ai="active",w4="slide",x4="carousel-item-end",T4="carousel-item-start",k4="carousel-item-next",A4="carousel-item-prev",bm=".active",Em=".carousel-item",O4=bm+Em,M4=".carousel-item img",N4=".carousel-indicators",I4="[data-bs-slide], [data-bs-slide-to]",D4='[data-bs-ride="carousel"]',_4={[h4]:yi,[p4]:Dr},L4={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},R4={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Go extends Gt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(N4,this._element),this._addEventListeners(),this._config.ride===ym&&this.cycle()}static get Default(){return L4}static get DefaultType(){return R4}static get NAME(){return d4}next(){this._slide(so)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(Tr)}pause(){this._isSliding&&sm(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ne.one(this._element,Pa,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ne.one(this._element,Pa,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?so:Tr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ne.on(this._element,v4,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,y4,()=>this.pause()),ne.on(this._element,b4,()=>this._maybeEnableCycle())),this._config.touch&&Cs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ye.find(M4,this._element))ne.on(r,E4,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Dr)),rightCallback:()=>this._slide(this._directionToOrder(yi)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),m4+this._config.interval))}};this._swipeHelper=new Cs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=_4[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ye.findOne(bm,this._indicatorsElement);t.classList.remove(ai),t.removeAttribute("aria-current");const r=ye.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ai),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===so,i=t||Nc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=m=>ne.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(g4).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?T4:x4,d=o?k4:A4;i.classList.add(d),Wo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(ai),r.classList.remove(ai,d,u),this._isSliding=!1,l(Pa)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(w4)}_getActive(){return ye.findOne(O4,this._element)}_getItems(){return ye.find(Em,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return $t()?e===Dr?Tr:so:e===Dr?so:Tr}_orderToDirection(e){return $t()?e===Tr?Dr:yi:e===Tr?yi:Dr}static jQueryInterface(e){return this.each(function(){const t=Go.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,S4,I4,function(n){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(ym))return;n.preventDefault();const t=Go.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(yn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});ne.on(window,C4,()=>{const n=ye.find(D4);for(const e of n)Go.getOrCreateInstance(e)});Vt(Go);const P4="collapse",B4="bs.collapse",Yo=`.${B4}`,$4=".data-api",F4=`show${Yo}`,V4=`shown${Yo}`,z4=`hide${Yo}`,H4=`hidden${Yo}`,U4=`click${Yo}${$4}`,Ba="show",Br="collapse",li="collapsing",j4="collapsed",W4=`:scope .${Br} .${Br}`,K4="collapse-horizontal",G4="width",Y4="height",J4=".collapse.show, .collapse.collapsing",Ol='[data-bs-toggle="collapse"]',Z4={parent:null,toggle:!0},X4={parent:"(null|element)",toggle:"boolean"};class Po extends Gt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ye.find(Ol);for(const o of r){const i=ye.getSelectorFromElement(o),s=ye.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Z4}static get DefaultType(){return X4}static get NAME(){return P4}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(J4).filter(l=>l!==this._element).map(l=>Po.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,F4).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(Br),this._element.classList.add(li),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Br,Ba),this._element.style[r]="",ne.trigger(this._element,V4)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ne.trigger(this._element,z4).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Wo(this._element),this._element.classList.add(li),this._element.classList.remove(Br,Ba);for(const o of this._triggerArray){const i=ye.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Br),ne.trigger(this._element,H4)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ba)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=$n(e.parent),e}_getDimension(){return this._element.classList.contains(K4)?G4:Y4}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ol);for(const t of e){const r=ye.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ye.find(W4,this._config.parent);return ye.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(j4,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=Po.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,U4,Ol,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ye.getMultipleElementsFromSelector(this))Po.getOrCreateInstance(e,{toggle:!1}).toggle()});Vt(Po);const Wd="dropdown",Q4="bs.dropdown",vr=`.${Q4}`,Dc=".data-api",q4="Escape",Kd="Tab",e7="ArrowUp",Gd="ArrowDown",t7=2,n7=`hide${vr}`,r7=`hidden${vr}`,o7=`show${vr}`,i7=`shown${vr}`,Cm=`click${vr}${Dc}`,Sm=`keydown${vr}${Dc}`,s7=`keyup${vr}${Dc}`,_r="show",a7="dropup",l7="dropend",c7="dropstart",u7="dropup-center",d7="dropdown-center",tr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',f7=`${tr}.${_r}`,bi=".dropdown-menu",h7=".navbar",p7=".navbar-nav",m7=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",g7=$t()?"top-end":"top-start",v7=$t()?"top-start":"top-end",y7=$t()?"bottom-end":"bottom-start",b7=$t()?"bottom-start":"bottom-end",E7=$t()?"left-start":"right-start",C7=$t()?"right-start":"left-start",S7="top",w7="bottom",x7={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},T7={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class rn extends Gt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,bi)[0]||ye.prev(this._element,bi)[0]||ye.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return x7}static get DefaultType(){return T7}static get NAME(){return Wd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Fn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,o7,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(p7))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Es);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_r),this._element.classList.add(_r),ne.trigger(this._element,i7,e)}}hide(){if(Fn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ne.trigger(this._element,n7,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Es);this._popper&&this._popper.destroy(),this._menu.classList.remove(_r),this._element.classList.remove(_r),this._element.setAttribute("aria-expanded","false"),yn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,r7,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Wd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Rp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=$n(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Us(e,this._menu,t)}_isShown(){return this._menu.classList.contains(_r)}_getPlacement(){const e=this._parent;if(e.classList.contains(l7))return E7;if(e.classList.contains(c7))return C7;if(e.classList.contains(u7))return S7;if(e.classList.contains(d7))return w7;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(a7)?t?v7:g7:t?b7:y7}_detectNavbar(){return this._element.closest(h7)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(yn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...yt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ye.find(m7,this._menu).filter(o=>ro(o));r.length&&Nc(r,t,e===Gd,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=rn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===t7||e.type==="keyup"&&e.key!==Kd)return;const t=ye.find(f7);for(const r of t){const o=rn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Kd||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===q4,o=[e7,Gd].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(tr)?this:ye.prev(this,tr)[0]||ye.next(this,tr)[0]||ye.findOne(tr,e.delegateTarget.parentNode),s=rn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,Sm,tr,rn.dataApiKeydownHandler);ne.on(document,Sm,bi,rn.dataApiKeydownHandler);ne.on(document,Cm,rn.clearMenus);ne.on(document,s7,rn.clearMenus);ne.on(document,Cm,tr,function(n){n.preventDefault(),rn.getOrCreateInstance(this).toggle()});Vt(rn);const wm="backdrop",k7="fade",Yd="show",Jd=`mousedown.bs.${wm}`,A7={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},O7={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class xm extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return A7}static get DefaultType(){return O7}static get NAME(){return wm}show(e){if(!this._config.isVisible){yt(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Wo(t),t.classList.add(Yd),this._emulateAnimation(()=>{yt(e)})}hide(e){if(!this._config.isVisible){yt(e);return}this._getElement().classList.remove(Yd),this._emulateAnimation(()=>{this.dispose(),yt(e)})}dispose(){this._isAppended&&(ne.off(this._element,Jd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(k7),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=$n(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,Jd,()=>{yt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){cm(e,this._getElement(),this._config.isAnimated)}}const M7="focustrap",N7="bs.focustrap",Ss=`.${N7}`,I7=`focusin${Ss}`,D7=`keydown.tab${Ss}`,_7="Tab",L7="forward",Zd="backward",R7={autofocus:!0,trapElement:null},P7={autofocus:"boolean",trapElement:"element"};class Tm extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return R7}static get DefaultType(){return P7}static get NAME(){return M7}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ss),ne.on(document,I7,e=>this._handleFocusin(e)),ne.on(document,D7,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ss))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ye.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===Zd?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===_7&&(this._lastTabNavDirection=e.shiftKey?Zd:L7)}}const Xd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Qd=".sticky-top",ci="padding-right",qd="margin-right";class Ml{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ci,t=>t+e),this._setElementAttributes(Xd,ci,t=>t+e),this._setElementAttributes(Qd,qd,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ci),this._resetElementAttributes(Xd,ci),this._resetElementAttributes(Qd,qd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&yn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=yn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}yn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ye.find(e,this._element))t(r)}}const B7="modal",$7="bs.modal",Ft=`.${$7}`,F7=".data-api",V7="Escape",z7=`hide${Ft}`,H7=`hidePrevented${Ft}`,km=`hidden${Ft}`,Am=`show${Ft}`,U7=`shown${Ft}`,j7=`resize${Ft}`,W7=`click.dismiss${Ft}`,K7=`mousedown.dismiss${Ft}`,G7=`keydown.dismiss${Ft}`,Y7=`click${Ft}${F7}`,ef="modal-open",J7="fade",tf="show",$a="modal-static",Z7=".modal.show",X7=".modal-dialog",Q7=".modal-body",q7='[data-bs-toggle="modal"]',ew={backdrop:!0,focus:!0,keyboard:!0},tw={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class mr extends Gt{constructor(e,t){super(e,t),this._dialog=ye.findOne(X7,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ml,this._addEventListeners()}static get Default(){return ew}static get DefaultType(){return tw}static get NAME(){return B7}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,Am,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ef),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,z7).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(tf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Ft),ne.off(this._dialog,Ft),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new xm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Tm({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ye.findOne(Q7,this._dialog);t&&(t.scrollTop=0),Wo(this._element),this._element.classList.add(tf);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,U7,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,G7,e=>{if(e.key===V7){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,j7,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,K7,e=>{ne.one(this._element,W7,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ef),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,km)})}_isAnimated(){return this._element.classList.contains(J7)}_triggerBackdropTransition(){if(ne.trigger(this._element,H7).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($a)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($a),this._queueCallback(()=>{this._element.classList.remove($a),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=$t()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=$t()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=mr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,Y7,q7,function(n){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,Am,o=>{o.defaultPrevented||ne.one(e,km,()=>{ro(this)&&this.focus()})});const t=ye.findOne(Z7);t&&mr.getInstance(t).hide(),mr.getOrCreateInstance(e).toggle(this)});Gs(mr);Vt(mr);const nw="offcanvas",rw="bs.offcanvas",En=`.${rw}`,Om=".data-api",ow=`load${En}${Om}`,iw="Escape",nf="show",rf="showing",of="hiding",sw="offcanvas-backdrop",Mm=".offcanvas.show",aw=`show${En}`,lw=`shown${En}`,cw=`hide${En}`,sf=`hidePrevented${En}`,Nm=`hidden${En}`,uw=`resize${En}`,dw=`click${En}${Om}`,fw=`keydown.dismiss${En}`,hw='[data-bs-toggle="offcanvas"]',pw={backdrop:!0,keyboard:!0,scroll:!1},mw={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vn extends Gt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pw}static get DefaultType(){return mw}static get NAME(){return nw}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,aw,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ml().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(rf);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(nf),this._element.classList.remove(rf),ne.trigger(this._element,lw,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,cw).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(of),this._backdrop.hide();const t=()=>{this._element.classList.remove(nf,of),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ml().reset(),ne.trigger(this._element,Nm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ne.trigger(this._element,sf);return}this.hide()},t=!!this._config.backdrop;return new xm({className:sw,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Tm({trapElement:this._element})}_addEventListeners(){ne.on(this._element,fw,e=>{if(e.key===iw){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,sf)}})}static jQueryInterface(e){return this.each(function(){const t=Vn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,dw,hw,function(n){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Fn(this))return;ne.one(e,Nm,()=>{ro(this)&&this.focus()});const t=ye.findOne(Mm);t&&t!==e&&Vn.getInstance(t).hide(),Vn.getOrCreateInstance(e).toggle(this)});ne.on(window,ow,()=>{for(const n of ye.find(Mm))Vn.getOrCreateInstance(n).show()});ne.on(window,uw,()=>{for(const n of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Vn.getOrCreateInstance(n).hide()});Gs(Vn);Vt(Vn);const gw=/^aria-[\w-]*$/i,Im={"*":["class","dir","id","lang","role",gw],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},vw=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),yw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,bw=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?vw.has(t)?!!yw.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function Ew(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)bw(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const Cw="TemplateFactory",Sw={allowList:Im,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ww={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},xw={entry:"(string|element|function|null)",selector:"(string|element)"};class Tw extends Ko{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Sw}static get DefaultType(){return ww}static get NAME(){return Cw}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},xw)}_setContent(e,t,r){const o=ye.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate($n(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?Ew(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return yt(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const kw="tooltip",Aw=new Set(["sanitize","allowList","sanitizeFn"]),Fa="fade",Ow="modal",ui="show",Mw=".tooltip-inner",af=`.${Ow}`,lf="hide.bs.modal",ao="hover",Va="focus",Nw="click",Iw="manual",Dw="hide",_w="hidden",Lw="show",Rw="shown",Pw="inserted",Bw="click",$w="focusin",Fw="focusout",Vw="mouseenter",zw="mouseleave",Hw={AUTO:"auto",TOP:"top",RIGHT:$t()?"left":"right",BOTTOM:"bottom",LEFT:$t()?"right":"left"},Uw={allowList:Im,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},jw={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yr extends Gt{constructor(e,t){if(typeof Rp>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Uw}static get DefaultType(){return jw}static get NAME(){return kw}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ne.off(this._element.closest(af),lf,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ne.trigger(this._element,this.constructor.eventName(Lw)),r=(am(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ne.trigger(this._element,this.constructor.eventName(Pw))),this._popper=this._createPopper(o),o.classList.add(ui),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Es);const s=()=>{ne.trigger(this._element,this.constructor.eventName(Rw)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ne.trigger(this._element,this.constructor.eventName(Dw)).defaultPrevented)return;if(this._getTipElement().classList.remove(ui),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Es);this._activeTrigger[Nw]=!1,this._activeTrigger[Va]=!1,this._activeTrigger[ao]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(_w)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Fa,ui),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=NS(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Fa),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Tw({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Mw]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Fa)}_isShown(){return this.tip&&this.tip.classList.contains(ui)}_createPopper(e){const t=yt(this._config.placement,[this,e,this._element]),r=Hw[t.toUpperCase()];return Us(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return yt(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...yt(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(Bw),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==Iw){const r=t===ao?this.constructor.eventName(Vw):this.constructor.eventName($w),o=t===ao?this.constructor.eventName(zw):this.constructor.eventName(Fw);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Va:ao]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Va:ao]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(af),lf,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=yn.getDataAttributes(this._element);for(const r of Object.keys(t))Aw.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:$n(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(yr);const Ww="popover",Kw=".popover-header",Gw=".popover-body",Yw={...yr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Jw={...yr.DefaultType,content:"(null|string|element|function)"};class _c extends yr{static get Default(){return Yw}static get DefaultType(){return Jw}static get NAME(){return Ww}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Kw]:this._getTitle(),[Gw]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=_c.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(_c);const Zw="scrollspy",Xw="bs.scrollspy",Lc=`.${Xw}`,Qw=".data-api",qw=`activate${Lc}`,cf=`click${Lc}`,ex=`load${Lc}${Qw}`,tx="dropdown-item",kr="active",nx='[data-bs-spy="scroll"]',za="[href]",rx=".nav, .list-group",uf=".nav-link",ox=".nav-item",ix=".list-group-item",sx=`${uf}, ${ox} > ${uf}, ${ix}`,ax=".dropdown",lx=".dropdown-toggle",cx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ux={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Zs extends Gt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return cx}static get DefaultType(){return ux}static get NAME(){return Zw}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=$n(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,cf),ne.on(this._config.target,cf,za,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ye.find(za,this._config.target);for(const t of e){if(!t.hash||Fn(t))continue;const r=ye.findOne(decodeURI(t.hash),this._element);ro(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(kr),this._activateParents(e),ne.trigger(this._element,qw,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(tx)){ye.findOne(lx,e.closest(ax)).classList.add(kr);return}for(const t of ye.parents(e,rx))for(const r of ye.prev(t,sx))r.classList.add(kr)}_clearActiveClass(e){e.classList.remove(kr);const t=ye.find(`${za}.${kr}`,e);for(const r of t)r.classList.remove(kr)}static jQueryInterface(e){return this.each(function(){const t=Zs.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,ex,()=>{for(const n of ye.find(nx))Zs.getOrCreateInstance(n)});Vt(Zs);const dx="tab",fx="bs.tab",br=`.${fx}`,hx=`hide${br}`,px=`hidden${br}`,mx=`show${br}`,gx=`shown${br}`,vx=`click${br}`,yx=`keydown${br}`,bx=`load${br}`,Ex="ArrowLeft",df="ArrowRight",Cx="ArrowUp",ff="ArrowDown",nr="active",hf="fade",Ha="show",Sx="dropdown",wx=".dropdown-toggle",xx=".dropdown-menu",Ua=":not(.dropdown-toggle)",Tx='.list-group, .nav, [role="tablist"]',kx=".nav-item, .list-group-item",Ax=`.nav-link${Ua}, .list-group-item${Ua}, [role="tab"]${Ua}`,Dm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ja=`${Ax}, ${Dm}`,Ox=`.${nr}[data-bs-toggle="tab"], .${nr}[data-bs-toggle="pill"], .${nr}[data-bs-toggle="list"]`;class qr extends Gt{constructor(e){super(e),this._parent=this._element.closest(Tx),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,yx,t=>this._keydown(t)))}static get NAME(){return dx}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,hx,{relatedTarget:e}):null;ne.trigger(e,mx,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(nr),this._activate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Ha);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,gx,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(hf))}_deactivate(e,t){if(!e)return;e.classList.remove(nr),e.blur(),this._deactivate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Ha);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,px,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(hf))}_keydown(e){if(![Ex,df,Cx,ff].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[df,ff].includes(e.key),r=Nc(this._getChildren().filter(o=>!Fn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),qr.getOrCreateInstance(r).show())}_getChildren(){return ye.find(ja,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ye.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(Sx))return;const o=(i,s)=>{const l=ye.findOne(i,r);l&&l.classList.toggle(s,t)};o(wx,nr),o(xx,Ha),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(nr)}_getInnerElement(e){return e.matches(ja)?e:ye.findOne(ja,e)}_getOuterElement(e){return e.closest(kx)||e}static jQueryInterface(e){return this.each(function(){const t=qr.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,vx,Dm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Fn(this)&&qr.getOrCreateInstance(this).show()});ne.on(window,bx,()=>{for(const n of ye.find(Ox))qr.getOrCreateInstance(n)});Vt(qr);const Mx="toast",Nx="bs.toast",Kn=`.${Nx}`,Ix=`mouseover${Kn}`,Dx=`mouseout${Kn}`,_x=`focusin${Kn}`,Lx=`focusout${Kn}`,Rx=`hide${Kn}`,Px=`hidden${Kn}`,Bx=`show${Kn}`,$x=`shown${Kn}`,Fx="fade",pf="hide",di="show",fi="showing",Vx={animation:"boolean",autohide:"boolean",delay:"number"},zx={animation:!0,autohide:!0,delay:5e3};class Jo extends Gt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return zx}static get DefaultType(){return Vx}static get NAME(){return Mx}show(){if(ne.trigger(this._element,Bx).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Fx);const t=()=>{this._element.classList.remove(fi),ne.trigger(this._element,$x),this._maybeScheduleHide()};this._element.classList.remove(pf),Wo(this._element),this._element.classList.add(di,fi),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,Rx).defaultPrevented)return;const t=()=>{this._element.classList.add(pf),this._element.classList.remove(fi,di),ne.trigger(this._element,Px)};this._element.classList.add(fi),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(di),super.dispose()}isShown(){return this._element.classList.contains(di)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,Ix,e=>this._onInteraction(e,!0)),ne.on(this._element,Dx,e=>this._onInteraction(e,!1)),ne.on(this._element,_x,e=>this._onInteraction(e,!0)),ne.on(this._element,Lx,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Jo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Jo);Vt(Jo);const Hx=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new mr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function Ux(n=void 0){const e=l=>i("Succesvol",l,Lr.SUCCESS),t=l=>i("Waarschuwing",l,Lr.WARNING),r=l=>i("Informatie",l,Lr.INFO),o=l=>i("Mislukt",l,Lr.DANGER);function i(l,a,c){const u=`toast-${Nf()}`,d={id:u,show:!0,variant:c,title:l,text:a},h=document.querySelector(".toast-container"),m=f.h(Hl,d),g=f.createApp({render:()=>m}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`),C=Jo.getOrCreateInstance(v,n);C&&(C.show(),s(v))}function s(l){function a(d,h){d.forEach(m=>{if(m.attributeName!="class")return;const p=m.target;if(p.classList.contains("hide")){p.remove(),h.disconnect();return}})}const c=new MutationObserver(a),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const _m={mounted:n=>{new yr(n)}},jx={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},lt=f.defineComponent({__name:"BDButton",props:{size:{default:at.MD},variant:{default:jx.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?zr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Wx={install:n=>{n.component("BDCol",mf),n.component("BDContainer",gf),n.component("BDRow",vf),n.component("BDButton",lt),n.component("BDLogo",Vl),n.component("BDLink",zr),n.component("BDDropdownItem",wi),n.component("BDDropdown",Mc),n.component("BDAlert",kf),n.component("BDProfileImage",Fo),n.component("BDZoomslider",Of),n.component("BDCard",zl),n.component("BDCollapsableCard",If),n.component("BDFormInput",_f),n.component("BDInputGroup",Lf),n.component("BDFormInvalidFeedback",As),n.component("BDBadge",Rf),n.component("BDForm",Pf),n.component("BDPagination",Bf),n.component("BDDropzone",Hf),n.component("BDMarkdownEditor",em),n.component("BDModal",om),n.component("BDFormSelect",$f),n.component("BDUser",tm),n.component("BDArticle",Vf),n.component("BDFormCheckbox",Ff),n.component("BDToast",Hl),n.component("BDAttachmentPreviewList",Ws),n.component("BDImageAttachmentPreviewList",Ks),n.component("BDHeader",rm),n.component("BDMobileMenu",Oc),n.component("BDChatCloud",nm),n.component("IconAcademy",yf),n.component("IconArrowDown",bf),n.component("IconArrowUp",Ef),n.component("IconAttachment",cr),n.component("IconBold",Nl),n.component("IconBulletList",Il),n.component("IconCalendar",Wa),n.component("IconCalendar",Wa),n.component("IconCardView",Cf),n.component("IconCaretDown",Dl),n.component("IconCaretLeft",_l),n.component("IconCaretRight",Ll),n.component("IconCheck",Bo),n.component("IconClose",ws),n.component("IconDownloadImage",Ei),n.component("IconDownloadImage",Ei),n.component("IconEdit",Sf),n.component("IconError",xs),n.component("IconEyeShow",wf),n.component("IconEyeSlash",xf),n.component("IconFile",Rl),n.component("IconHyperlink",Pl),n.component("IconInfo",Ts),n.component("IconItalic",Bl),n.component("IconListView",Tf),n.component("IconMenu",Ci),n.component("IconMenu",Ci),n.component("IconOrderedList",$l),n.component("IconRemove",$o),n.component("IconUnderline",Fl),n.directive("vBDTooltip",_m)}};exports.BDAlert=kf;exports.BDArticle=Vf;exports.BDAttachmentPreviewList=Ws;exports.BDBadge=Rf;exports.BDButton=lt;exports.BDCard=zl;exports.BDChatCloud=nm;exports.BDCol=mf;exports.BDCollapsableCard=If;exports.BDContainer=gf;exports.BDDropdown=Mc;exports.BDDropdownItem=wi;exports.BDDropzone=Hf;exports.BDForm=Pf;exports.BDFormCheckbox=Ff;exports.BDFormInput=_f;exports.BDFormInvalidFeedback=As;exports.BDFormSelect=$f;exports.BDHeader=rm;exports.BDImageAttachmentPreviewList=Ks;exports.BDInputGroup=Lf;exports.BDLink=zr;exports.BDLogo=Vl;exports.BDMarkdownEditor=em;exports.BDMobileMenu=Oc;exports.BDModal=om;exports.BDPagination=Bf;exports.BDProfileImage=Fo;exports.BDRow=vf;exports.BDToast=Hl;exports.BDUser=tm;exports.BDZoomslider=Of;exports.IconAcademy=yf;exports.IconArrowDown=bf;exports.IconArrowUp=Ef;exports.IconAttachment=cr;exports.IconBold=Nl;exports.IconBulletList=Il;exports.IconCalendar=Wa;exports.IconCardView=Cf;exports.IconCaretDown=Dl;exports.IconCaretLeft=_l;exports.IconCaretRight=Ll;exports.IconCheck=Bo;exports.IconClose=ws;exports.IconDownloadImage=Ei;exports.IconEdit=Sf;exports.IconError=xs;exports.IconEyeShow=wf;exports.IconEyeSlash=xf;exports.IconFile=Rl;exports.IconHyperlink=Pl;exports.IconInfo=Ts;exports.IconItalic=Bl;exports.IconListView=Tf;exports.IconMenu=Ci;exports.IconOrderedList=$l;exports.IconRemove=$o;exports.IconUnderline=Fl;exports.default=Wx;exports.useModal=Hx;exports.useToaster=Ux;exports.vBdTooltip=_m;
131
+ */const Tn=new Map,Ia={set(n,e,t){Tn.has(n)||Tn.set(n,new Map);const r=Tn.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return Tn.has(n)&&Tn.get(n).get(e)||null},remove(n,e){if(!Tn.has(n))return;const t=Tn.get(n);t.delete(e),t.size===0&&Tn.delete(n)}},LS=1e6,RS=1e3,kl="transitionend",sm=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),PS=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),BS=n=>{do n+=Math.floor(Math.random()*LS);while(document.getElementById(n));return n},$S=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*RS)},am=n=>{n.dispatchEvent(new Event(kl))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),$n=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(sm(n)):null,ro=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Fn=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",lm=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?lm(n.parentNode):null},Es=()=>{},Wo=n=>{n.offsetHeight},cm=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Da=[],FS=n=>{document.readyState==="loading"?(Da.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Da)e()}),Da.push(n)):n()},$t=()=>document.documentElement.dir==="rtl",Vt=n=>{FS(()=>{const e=cm();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},yt=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,um=(n,e,t=!0)=>{if(!t){yt(n);return}const r=5,o=$S(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(kl,s),yt(n))};e.addEventListener(kl,s),setTimeout(()=>{i||am(e)},o)},Nc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},VS=/[^.]*(?=\..*)\.|.*/,zS=/\..*/,HS=/::\d+$/,_a={};let zd=1;const dm={mouseenter:"mouseover",mouseleave:"mouseout"},US=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function fm(n,e){return e&&`${e}::${zd++}`||n.uidEvent||zd++}function hm(n){const e=fm(n);return n.uidEvent=e,_a[e]=_a[e]||{},_a[e]}function jS(n,e){return function t(r){return Ic(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function WS(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return Ic(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function pm(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function mm(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=gm(n);return US.has(i)||(i=n),[r,o,i]}function Hd(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=mm(e,t,r);e in dm&&(s=(p=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return p.call(this,g)})(s));const a=hm(n),c=a[l]||(a[l]={}),u=pm(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=fm(s,e.replace(VS,"")),h=i?WS(n,t,s):jS(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function Al(n,e,t,r,o){const i=pm(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function KS(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Al(n,e,t,s.callable,s.delegationSelector)}function gm(n){return n=n.replace(zS,""),dm[n]||n}const ne={on(n,e,t,r){Hd(n,e,t,r,!1)},one(n,e,t,r){Hd(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=mm(e,t,r),l=s!==e,a=hm(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Al(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))KS(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const m=d.replace(HS,"");(!l||e.includes(m))&&Al(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=cm(),o=gm(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=Ic(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Ic(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Ud(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function La(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const yn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${La(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${La(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Ud(n.dataset[r])}return e},getDataAttribute(n,e){return Ud(n.getAttribute(`data-bs-${La(e)}`))}};class Ko{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?yn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?yn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=vn(i)?"element":PS(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const GS="5.3.0";class Gt extends Ko{constructor(e,t){super(),e=$n(e),e&&(this._element=e,this._config=this._getConfig(t),Ia.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ia.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){um(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ia.get($n(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return GS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Ra=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return sm(e)},ye={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Fn(t)&&ro(t))},getSelectorFromElement(n){const e=Ra(n);return e&&ye.findOne(e)?e:null},getElementFromSelector(n){const e=Ra(n);return e?ye.findOne(e):null},getMultipleElementsFromSelector(n){const e=Ra(n);return e?ye.find(e):[]}},Gs=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Fn(this))return;const i=ye.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},YS="alert",JS="bs.alert",vm=`.${JS}`,ZS=`close${vm}`,XS=`closed${vm}`,QS="fade",qS="show";class Ys extends Gt{static get NAME(){return YS}close(){if(ne.trigger(this._element,ZS).defaultPrevented)return;this._element.classList.remove(qS);const t=this._element.classList.contains(QS);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,XS),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Ys,"close");Vt(Ys);const e7="button",t7="bs.button",n7=`.${t7}`,r7=".data-api",o7="active",jd='[data-bs-toggle="button"]',i7=`click${n7}${r7}`;class Js extends Gt{static get NAME(){return e7}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(o7))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,i7,jd,n=>{n.preventDefault();const e=n.target.closest(jd);Js.getOrCreateInstance(e).toggle()});Vt(Js);const s7="swipe",oo=".bs.swipe",a7=`touchstart${oo}`,l7=`touchmove${oo}`,c7=`touchend${oo}`,u7=`pointerdown${oo}`,d7=`pointerup${oo}`,f7="touch",h7="pen",p7="pointer-event",m7=40,g7={endCallback:null,leftCallback:null,rightCallback:null},v7={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Cs extends Ko{constructor(e,t){super(),this._element=e,!(!e||!Cs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return g7}static get DefaultType(){return v7}static get NAME(){return s7}dispose(){ne.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),yt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=m7)return;const t=e/this._deltaX;this._deltaX=0,t&&yt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,u7,e=>this._start(e)),ne.on(this._element,d7,e=>this._end(e)),this._element.classList.add(p7)):(ne.on(this._element,a7,e=>this._start(e)),ne.on(this._element,l7,e=>this._move(e)),ne.on(this._element,c7,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===h7||e.pointerType===f7)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const y7="carousel",b7="bs.carousel",Wn=`.${b7}`,ym=".data-api",E7="ArrowLeft",C7="ArrowRight",S7=500,so="next",Tr="prev",Dr="left",yi="right",w7=`slide${Wn}`,Pa=`slid${Wn}`,x7=`keydown${Wn}`,T7=`mouseenter${Wn}`,k7=`mouseleave${Wn}`,A7=`dragstart${Wn}`,O7=`load${Wn}${ym}`,M7=`click${Wn}${ym}`,bm="carousel",ai="active",N7="slide",I7="carousel-item-end",D7="carousel-item-start",_7="carousel-item-next",L7="carousel-item-prev",Em=".active",Cm=".carousel-item",R7=Em+Cm,P7=".carousel-item img",B7=".carousel-indicators",$7="[data-bs-slide], [data-bs-slide-to]",F7='[data-bs-ride="carousel"]',V7={[E7]:yi,[C7]:Dr},z7={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},H7={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Go extends Gt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(B7,this._element),this._addEventListeners(),this._config.ride===bm&&this.cycle()}static get Default(){return z7}static get DefaultType(){return H7}static get NAME(){return y7}next(){this._slide(so)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(Tr)}pause(){this._isSliding&&am(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ne.one(this._element,Pa,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ne.one(this._element,Pa,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?so:Tr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ne.on(this._element,x7,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,T7,()=>this.pause()),ne.on(this._element,k7,()=>this._maybeEnableCycle())),this._config.touch&&Cs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ye.find(P7,this._element))ne.on(r,A7,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Dr)),rightCallback:()=>this._slide(this._directionToOrder(yi)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),S7+this._config.interval))}};this._swipeHelper=new Cs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=V7[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ye.findOne(Em,this._indicatorsElement);t.classList.remove(ai),t.removeAttribute("aria-current");const r=ye.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ai),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===so,i=t||Nc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=m=>ne.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(w7).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?D7:I7,d=o?_7:L7;i.classList.add(d),Wo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(ai),r.classList.remove(ai,d,u),this._isSliding=!1,l(Pa)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(N7)}_getActive(){return ye.findOne(R7,this._element)}_getItems(){return ye.find(Cm,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return $t()?e===Dr?Tr:so:e===Dr?so:Tr}_orderToDirection(e){return $t()?e===Tr?Dr:yi:e===Tr?yi:Dr}static jQueryInterface(e){return this.each(function(){const t=Go.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,M7,$7,function(n){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(bm))return;n.preventDefault();const t=Go.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(yn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});ne.on(window,O7,()=>{const n=ye.find(F7);for(const e of n)Go.getOrCreateInstance(e)});Vt(Go);const U7="collapse",j7="bs.collapse",Yo=`.${j7}`,W7=".data-api",K7=`show${Yo}`,G7=`shown${Yo}`,Y7=`hide${Yo}`,J7=`hidden${Yo}`,Z7=`click${Yo}${W7}`,Ba="show",Br="collapse",li="collapsing",X7="collapsed",Q7=`:scope .${Br} .${Br}`,q7="collapse-horizontal",e4="width",t4="height",n4=".collapse.show, .collapse.collapsing",Ol='[data-bs-toggle="collapse"]',r4={parent:null,toggle:!0},o4={parent:"(null|element)",toggle:"boolean"};class Po extends Gt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ye.find(Ol);for(const o of r){const i=ye.getSelectorFromElement(o),s=ye.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return r4}static get DefaultType(){return o4}static get NAME(){return U7}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(n4).filter(l=>l!==this._element).map(l=>Po.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,K7).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(Br),this._element.classList.add(li),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Br,Ba),this._element.style[r]="",ne.trigger(this._element,G7)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ne.trigger(this._element,Y7).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Wo(this._element),this._element.classList.add(li),this._element.classList.remove(Br,Ba);for(const o of this._triggerArray){const i=ye.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Br),ne.trigger(this._element,J7)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ba)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=$n(e.parent),e}_getDimension(){return this._element.classList.contains(q7)?e4:t4}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ol);for(const t of e){const r=ye.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ye.find(Q7,this._config.parent);return ye.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(X7,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=Po.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,Z7,Ol,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ye.getMultipleElementsFromSelector(this))Po.getOrCreateInstance(e,{toggle:!1}).toggle()});Vt(Po);const Wd="dropdown",i4="bs.dropdown",vr=`.${i4}`,Dc=".data-api",s4="Escape",Kd="Tab",a4="ArrowUp",Gd="ArrowDown",l4=2,c4=`hide${vr}`,u4=`hidden${vr}`,d4=`show${vr}`,f4=`shown${vr}`,Sm=`click${vr}${Dc}`,wm=`keydown${vr}${Dc}`,h4=`keyup${vr}${Dc}`,_r="show",p4="dropup",m4="dropend",g4="dropstart",v4="dropup-center",y4="dropdown-center",tr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',b4=`${tr}.${_r}`,bi=".dropdown-menu",E4=".navbar",C4=".navbar-nav",S4=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",w4=$t()?"top-end":"top-start",x4=$t()?"top-start":"top-end",T4=$t()?"bottom-end":"bottom-start",k4=$t()?"bottom-start":"bottom-end",A4=$t()?"left-start":"right-start",O4=$t()?"right-start":"left-start",M4="top",N4="bottom",I4={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},D4={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class rn extends Gt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,bi)[0]||ye.prev(this._element,bi)[0]||ye.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return I4}static get DefaultType(){return D4}static get NAME(){return Wd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Fn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,d4,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(C4))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Es);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_r),this._element.classList.add(_r),ne.trigger(this._element,f4,e)}}hide(){if(Fn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ne.trigger(this._element,c4,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Es);this._popper&&this._popper.destroy(),this._menu.classList.remove(_r),this._element.classList.remove(_r),this._element.setAttribute("aria-expanded","false"),yn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,u4,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Wd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Pp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=$n(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Us(e,this._menu,t)}_isShown(){return this._menu.classList.contains(_r)}_getPlacement(){const e=this._parent;if(e.classList.contains(m4))return A4;if(e.classList.contains(g4))return O4;if(e.classList.contains(v4))return M4;if(e.classList.contains(y4))return N4;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(p4)?t?x4:w4:t?k4:T4}_detectNavbar(){return this._element.closest(E4)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(yn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...yt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ye.find(S4,this._menu).filter(o=>ro(o));r.length&&Nc(r,t,e===Gd,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=rn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===l4||e.type==="keyup"&&e.key!==Kd)return;const t=ye.find(b4);for(const r of t){const o=rn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Kd||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===s4,o=[a4,Gd].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(tr)?this:ye.prev(this,tr)[0]||ye.next(this,tr)[0]||ye.findOne(tr,e.delegateTarget.parentNode),s=rn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,wm,tr,rn.dataApiKeydownHandler);ne.on(document,wm,bi,rn.dataApiKeydownHandler);ne.on(document,Sm,rn.clearMenus);ne.on(document,h4,rn.clearMenus);ne.on(document,Sm,tr,function(n){n.preventDefault(),rn.getOrCreateInstance(this).toggle()});Vt(rn);const xm="backdrop",_4="fade",Yd="show",Jd=`mousedown.bs.${xm}`,L4={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},R4={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Tm extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return L4}static get DefaultType(){return R4}static get NAME(){return xm}show(e){if(!this._config.isVisible){yt(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Wo(t),t.classList.add(Yd),this._emulateAnimation(()=>{yt(e)})}hide(e){if(!this._config.isVisible){yt(e);return}this._getElement().classList.remove(Yd),this._emulateAnimation(()=>{this.dispose(),yt(e)})}dispose(){this._isAppended&&(ne.off(this._element,Jd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(_4),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=$n(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,Jd,()=>{yt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){um(e,this._getElement(),this._config.isAnimated)}}const P4="focustrap",B4="bs.focustrap",Ss=`.${B4}`,$4=`focusin${Ss}`,F4=`keydown.tab${Ss}`,V4="Tab",z4="forward",Zd="backward",H4={autofocus:!0,trapElement:null},U4={autofocus:"boolean",trapElement:"element"};class km extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return H4}static get DefaultType(){return U4}static get NAME(){return P4}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ss),ne.on(document,$4,e=>this._handleFocusin(e)),ne.on(document,F4,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ss))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ye.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===Zd?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===V4&&(this._lastTabNavDirection=e.shiftKey?Zd:z4)}}const Xd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Qd=".sticky-top",ci="padding-right",qd="margin-right";class Ml{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ci,t=>t+e),this._setElementAttributes(Xd,ci,t=>t+e),this._setElementAttributes(Qd,qd,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ci),this._resetElementAttributes(Xd,ci),this._resetElementAttributes(Qd,qd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&yn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=yn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}yn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ye.find(e,this._element))t(r)}}const j4="modal",W4="bs.modal",Ft=`.${W4}`,K4=".data-api",G4="Escape",Y4=`hide${Ft}`,J4=`hidePrevented${Ft}`,Am=`hidden${Ft}`,Om=`show${Ft}`,Z4=`shown${Ft}`,X4=`resize${Ft}`,Q4=`click.dismiss${Ft}`,q4=`mousedown.dismiss${Ft}`,ew=`keydown.dismiss${Ft}`,tw=`click${Ft}${K4}`,ef="modal-open",nw="fade",tf="show",$a="modal-static",rw=".modal.show",ow=".modal-dialog",iw=".modal-body",sw='[data-bs-toggle="modal"]',aw={backdrop:!0,focus:!0,keyboard:!0},lw={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class mr extends Gt{constructor(e,t){super(e,t),this._dialog=ye.findOne(ow,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ml,this._addEventListeners()}static get Default(){return aw}static get DefaultType(){return lw}static get NAME(){return j4}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,Om,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ef),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,Y4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(tf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Ft),ne.off(this._dialog,Ft),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Tm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new km({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ye.findOne(iw,this._dialog);t&&(t.scrollTop=0),Wo(this._element),this._element.classList.add(tf);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,Z4,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,ew,e=>{if(e.key===G4){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,X4,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,q4,e=>{ne.one(this._element,Q4,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ef),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,Am)})}_isAnimated(){return this._element.classList.contains(nw)}_triggerBackdropTransition(){if(ne.trigger(this._element,J4).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($a)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($a),this._queueCallback(()=>{this._element.classList.remove($a),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=$t()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=$t()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=mr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,tw,sw,function(n){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,Om,o=>{o.defaultPrevented||ne.one(e,Am,()=>{ro(this)&&this.focus()})});const t=ye.findOne(rw);t&&mr.getInstance(t).hide(),mr.getOrCreateInstance(e).toggle(this)});Gs(mr);Vt(mr);const cw="offcanvas",uw="bs.offcanvas",En=`.${uw}`,Mm=".data-api",dw=`load${En}${Mm}`,fw="Escape",nf="show",rf="showing",of="hiding",hw="offcanvas-backdrop",Nm=".offcanvas.show",pw=`show${En}`,mw=`shown${En}`,gw=`hide${En}`,sf=`hidePrevented${En}`,Im=`hidden${En}`,vw=`resize${En}`,yw=`click${En}${Mm}`,bw=`keydown.dismiss${En}`,Ew='[data-bs-toggle="offcanvas"]',Cw={backdrop:!0,keyboard:!0,scroll:!1},Sw={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vn extends Gt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Cw}static get DefaultType(){return Sw}static get NAME(){return cw}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,pw,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ml().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(rf);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(nf),this._element.classList.remove(rf),ne.trigger(this._element,mw,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,gw).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(of),this._backdrop.hide();const t=()=>{this._element.classList.remove(nf,of),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ml().reset(),ne.trigger(this._element,Im)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ne.trigger(this._element,sf);return}this.hide()},t=!!this._config.backdrop;return new Tm({className:hw,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new km({trapElement:this._element})}_addEventListeners(){ne.on(this._element,bw,e=>{if(e.key===fw){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,sf)}})}static jQueryInterface(e){return this.each(function(){const t=Vn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,yw,Ew,function(n){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Fn(this))return;ne.one(e,Im,()=>{ro(this)&&this.focus()});const t=ye.findOne(Nm);t&&t!==e&&Vn.getInstance(t).hide(),Vn.getOrCreateInstance(e).toggle(this)});ne.on(window,dw,()=>{for(const n of ye.find(Nm))Vn.getOrCreateInstance(n).show()});ne.on(window,vw,()=>{for(const n of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Vn.getOrCreateInstance(n).hide()});Gs(Vn);Vt(Vn);const ww=/^aria-[\w-]*$/i,Dm={"*":["class","dir","id","lang","role",ww],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},xw=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Tw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,kw=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?xw.has(t)?!!Tw.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function Aw(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)kw(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const Ow="TemplateFactory",Mw={allowList:Dm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Nw={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Iw={entry:"(string|element|function|null)",selector:"(string|element)"};class Dw extends Ko{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Mw}static get DefaultType(){return Nw}static get NAME(){return Ow}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},Iw)}_setContent(e,t,r){const o=ye.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate($n(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?Aw(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return yt(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const _w="tooltip",Lw=new Set(["sanitize","allowList","sanitizeFn"]),Fa="fade",Rw="modal",ui="show",Pw=".tooltip-inner",af=`.${Rw}`,lf="hide.bs.modal",ao="hover",Va="focus",Bw="click",$w="manual",Fw="hide",Vw="hidden",zw="show",Hw="shown",Uw="inserted",jw="click",Ww="focusin",Kw="focusout",Gw="mouseenter",Yw="mouseleave",Jw={AUTO:"auto",TOP:"top",RIGHT:$t()?"left":"right",BOTTOM:"bottom",LEFT:$t()?"right":"left"},Zw={allowList:Dm,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Xw={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yr extends Gt{constructor(e,t){if(typeof Pp>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Zw}static get DefaultType(){return Xw}static get NAME(){return _w}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ne.off(this._element.closest(af),lf,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ne.trigger(this._element,this.constructor.eventName(zw)),r=(lm(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ne.trigger(this._element,this.constructor.eventName(Uw))),this._popper=this._createPopper(o),o.classList.add(ui),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Es);const s=()=>{ne.trigger(this._element,this.constructor.eventName(Hw)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ne.trigger(this._element,this.constructor.eventName(Fw)).defaultPrevented)return;if(this._getTipElement().classList.remove(ui),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Es);this._activeTrigger[Bw]=!1,this._activeTrigger[Va]=!1,this._activeTrigger[ao]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(Vw)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Fa,ui),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=BS(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Fa),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Dw({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Pw]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Fa)}_isShown(){return this.tip&&this.tip.classList.contains(ui)}_createPopper(e){const t=yt(this._config.placement,[this,e,this._element]),r=Jw[t.toUpperCase()];return Us(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return yt(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...yt(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(jw),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==$w){const r=t===ao?this.constructor.eventName(Gw):this.constructor.eventName(Ww),o=t===ao?this.constructor.eventName(Yw):this.constructor.eventName(Kw);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Va:ao]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Va:ao]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(af),lf,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=yn.getDataAttributes(this._element);for(const r of Object.keys(t))Lw.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:$n(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(yr);const Qw="popover",qw=".popover-header",ex=".popover-body",tx={...yr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},nx={...yr.DefaultType,content:"(null|string|element|function)"};class _c extends yr{static get Default(){return tx}static get DefaultType(){return nx}static get NAME(){return Qw}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[qw]:this._getTitle(),[ex]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=_c.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(_c);const rx="scrollspy",ox="bs.scrollspy",Lc=`.${ox}`,ix=".data-api",sx=`activate${Lc}`,cf=`click${Lc}`,ax=`load${Lc}${ix}`,lx="dropdown-item",kr="active",cx='[data-bs-spy="scroll"]',za="[href]",ux=".nav, .list-group",uf=".nav-link",dx=".nav-item",fx=".list-group-item",hx=`${uf}, ${dx} > ${uf}, ${fx}`,px=".dropdown",mx=".dropdown-toggle",gx={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},vx={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Zs extends Gt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return gx}static get DefaultType(){return vx}static get NAME(){return rx}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=$n(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,cf),ne.on(this._config.target,cf,za,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ye.find(za,this._config.target);for(const t of e){if(!t.hash||Fn(t))continue;const r=ye.findOne(decodeURI(t.hash),this._element);ro(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(kr),this._activateParents(e),ne.trigger(this._element,sx,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(lx)){ye.findOne(mx,e.closest(px)).classList.add(kr);return}for(const t of ye.parents(e,ux))for(const r of ye.prev(t,hx))r.classList.add(kr)}_clearActiveClass(e){e.classList.remove(kr);const t=ye.find(`${za}.${kr}`,e);for(const r of t)r.classList.remove(kr)}static jQueryInterface(e){return this.each(function(){const t=Zs.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,ax,()=>{for(const n of ye.find(cx))Zs.getOrCreateInstance(n)});Vt(Zs);const yx="tab",bx="bs.tab",br=`.${bx}`,Ex=`hide${br}`,Cx=`hidden${br}`,Sx=`show${br}`,wx=`shown${br}`,xx=`click${br}`,Tx=`keydown${br}`,kx=`load${br}`,Ax="ArrowLeft",df="ArrowRight",Ox="ArrowUp",ff="ArrowDown",nr="active",hf="fade",Ha="show",Mx="dropdown",Nx=".dropdown-toggle",Ix=".dropdown-menu",Ua=":not(.dropdown-toggle)",Dx='.list-group, .nav, [role="tablist"]',_x=".nav-item, .list-group-item",Lx=`.nav-link${Ua}, .list-group-item${Ua}, [role="tab"]${Ua}`,_m='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ja=`${Lx}, ${_m}`,Rx=`.${nr}[data-bs-toggle="tab"], .${nr}[data-bs-toggle="pill"], .${nr}[data-bs-toggle="list"]`;class qr extends Gt{constructor(e){super(e),this._parent=this._element.closest(Dx),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,Tx,t=>this._keydown(t)))}static get NAME(){return yx}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,Ex,{relatedTarget:e}):null;ne.trigger(e,Sx,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(nr),this._activate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Ha);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,wx,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(hf))}_deactivate(e,t){if(!e)return;e.classList.remove(nr),e.blur(),this._deactivate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Ha);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,Cx,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(hf))}_keydown(e){if(![Ax,df,Ox,ff].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[df,ff].includes(e.key),r=Nc(this._getChildren().filter(o=>!Fn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),qr.getOrCreateInstance(r).show())}_getChildren(){return ye.find(ja,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ye.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(Mx))return;const o=(i,s)=>{const l=ye.findOne(i,r);l&&l.classList.toggle(s,t)};o(Nx,nr),o(Ix,Ha),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(nr)}_getInnerElement(e){return e.matches(ja)?e:ye.findOne(ja,e)}_getOuterElement(e){return e.closest(_x)||e}static jQueryInterface(e){return this.each(function(){const t=qr.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,xx,_m,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Fn(this)&&qr.getOrCreateInstance(this).show()});ne.on(window,kx,()=>{for(const n of ye.find(Rx))qr.getOrCreateInstance(n)});Vt(qr);const Px="toast",Bx="bs.toast",Kn=`.${Bx}`,$x=`mouseover${Kn}`,Fx=`mouseout${Kn}`,Vx=`focusin${Kn}`,zx=`focusout${Kn}`,Hx=`hide${Kn}`,Ux=`hidden${Kn}`,jx=`show${Kn}`,Wx=`shown${Kn}`,Kx="fade",pf="hide",di="show",fi="showing",Gx={animation:"boolean",autohide:"boolean",delay:"number"},Yx={animation:!0,autohide:!0,delay:5e3};class Jo extends Gt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Yx}static get DefaultType(){return Gx}static get NAME(){return Px}show(){if(ne.trigger(this._element,jx).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Kx);const t=()=>{this._element.classList.remove(fi),ne.trigger(this._element,Wx),this._maybeScheduleHide()};this._element.classList.remove(pf),Wo(this._element),this._element.classList.add(di,fi),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,Hx).defaultPrevented)return;const t=()=>{this._element.classList.add(pf),this._element.classList.remove(fi,di),ne.trigger(this._element,Ux)};this._element.classList.add(fi),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(di),super.dispose()}isShown(){return this._element.classList.contains(di)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,$x,e=>this._onInteraction(e,!0)),ne.on(this._element,Fx,e=>this._onInteraction(e,!1)),ne.on(this._element,Vx,e=>this._onInteraction(e,!0)),ne.on(this._element,zx,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Jo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Jo);Vt(Jo);const Jx=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new mr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function Zx(n=void 0){const e=l=>i("Succesvol",l,Lr.SUCCESS),t=l=>i("Waarschuwing",l,Lr.WARNING),r=l=>i("Informatie",l,Lr.INFO),o=l=>i("Mislukt",l,Lr.DANGER);function i(l,a,c){const u=`toast-${If()}`,d={id:u,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const m=f.h(Hl,d),g=f.createApp({render:()=>m}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(Jo.getOrCreateInstance(v,n).show(),s(v))}function s(l){function a(d,h){d.forEach(m=>{if(m.attributeName!="class")return;const p=m.target;if(p.classList.contains("hide")){p.remove(),h.disconnect();return}})}const c=new MutationObserver(a),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const Lm={mounted:n=>{new yr(n)}},Xx={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},lt=f.defineComponent({__name:"BDButton",props:{size:{default:at.MD},variant:{default:Xx.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?zr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Qx={install:n=>{n.component("BDCol",mf),n.component("BDContainer",gf),n.component("BDRow",vf),n.component("BDButton",lt),n.component("BDLogo",Vl),n.component("BDLink",zr),n.component("BDDropdownItem",wi),n.component("BDDropdown",Mc),n.component("BDAlert",Af),n.component("BDProfileImage",Fo),n.component("BDZoomslider",Mf),n.component("BDCard",zl),n.component("BDCollapsableCard",Df),n.component("BDFormInput",Lf),n.component("BDInputGroup",Rf),n.component("BDFormInvalidFeedback",As),n.component("BDBadge",Pf),n.component("BDForm",Bf),n.component("BDPagination",$f),n.component("BDDropzone",Uf),n.component("BDMarkdownEditor",tm),n.component("BDModal",im),n.component("BDFormSelect",Ff),n.component("BDUser",nm),n.component("BDArticle",zf),n.component("BDFormCheckbox",Vf),n.component("BDToast",Hl),n.component("BDAttachmentPreviewList",Ws),n.component("BDImageAttachmentPreviewList",Ks),n.component("BDHeader",om),n.component("BDMobileMenu",Oc),n.component("BDChatCloud",rm),n.component("IconAcademy",yf),n.component("IconArrowDown",bf),n.component("IconArrowUp",Ef),n.component("IconAttachment",cr),n.component("IconBold",Nl),n.component("IconBulletList",Il),n.component("IconCalendar",Wa),n.component("IconCalendar",Wa),n.component("IconCardView",Cf),n.component("IconCaretDown",Dl),n.component("IconCaretLeft",_l),n.component("IconCaretRight",Ll),n.component("IconCheck",Bo),n.component("IconClose",ws),n.component("IconDownloadImage",Ei),n.component("IconDownloadImage",Ei),n.component("IconEdit",Sf),n.component("IconError",xs),n.component("IconEyeShow",wf),n.component("IconEyeSlash",xf),n.component("IconFile",Rl),n.component("IconHyperlink",Pl),n.component("IconInfo",Ts),n.component("IconItalic",Bl),n.component("IconListView",Tf),n.component("IconMenu",Ci),n.component("IconMenu",Ci),n.component("IconOrderedList",$l),n.component("IconRemove",$o),n.component("IconUnderline",Fl),n.component("IconTriangleExclamation",kf),n.directive("vBDTooltip",Lm)}};exports.BDAlert=Af;exports.BDArticle=zf;exports.BDAttachmentPreviewList=Ws;exports.BDBadge=Pf;exports.BDButton=lt;exports.BDCard=zl;exports.BDChatCloud=rm;exports.BDCol=mf;exports.BDCollapsableCard=Df;exports.BDContainer=gf;exports.BDDropdown=Mc;exports.BDDropdownItem=wi;exports.BDDropzone=Uf;exports.BDForm=Bf;exports.BDFormCheckbox=Vf;exports.BDFormInput=Lf;exports.BDFormInvalidFeedback=As;exports.BDFormSelect=Ff;exports.BDHeader=om;exports.BDImageAttachmentPreviewList=Ks;exports.BDInputGroup=Rf;exports.BDLink=zr;exports.BDLogo=Vl;exports.BDMarkdownEditor=tm;exports.BDMobileMenu=Oc;exports.BDModal=im;exports.BDPagination=$f;exports.BDProfileImage=Fo;exports.BDRow=vf;exports.BDToast=Hl;exports.BDUser=nm;exports.BDZoomslider=Mf;exports.IconAcademy=yf;exports.IconArrowDown=bf;exports.IconArrowUp=Ef;exports.IconAttachment=cr;exports.IconBold=Nl;exports.IconBulletList=Il;exports.IconCalendar=Wa;exports.IconCardView=Cf;exports.IconCaretDown=Dl;exports.IconCaretLeft=_l;exports.IconCaretRight=Ll;exports.IconCheck=Bo;exports.IconClose=ws;exports.IconDownloadImage=Ei;exports.IconEdit=Sf;exports.IconError=xs;exports.IconEyeShow=wf;exports.IconEyeSlash=xf;exports.IconFile=Rl;exports.IconHyperlink=Pl;exports.IconInfo=Ts;exports.IconItalic=Bl;exports.IconListView=Tf;exports.IconMenu=Ci;exports.IconOrderedList=$l;exports.IconRemove=$o;exports.IconTriangleExclamation=kf;exports.IconUnderline=Fl;exports.default=Qx;exports.useModal=Jx;exports.useToaster=Zx;exports.vBdTooltip=Lm;