@beterdichtbij/component-library 0.36.3 → 0.36.5

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.
@@ -124,8 +124,8 @@ img.ProseMirror-separator {
124
124
  1. Must only contain digits, lowercase ASCII letters or "-"
125
125
  2. Cannot start or end with "-"
126
126
  3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function T8(){ze.scanner=v8(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=C8(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 A8(n){return ze.initialized||T8(),S8(ze.parser.start,n,y8(ze.scanner.start,n))}function Hc(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 zc(t),o=A8(n),s=[];for(let i=0;i<o.length;i++){const l=o[i];l.isLink&&(!e||l.t===e)&&r.check(l)&&s.push(l.toFormattedObject(r))}return s}function O8(n){return new Ct({key:new Gt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!o||s)return;const{tr:i}=r,l=Jb(t.doc,[...e]);if(oE(l).forEach(({newRange:c})=>{const u=Xb(r.doc,c,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(f=u[0],h=r.doc.textBetween(f.pos,c.to,void 0," ")),f&&h){const p=h.split(" ").filter(v=>v!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;Hc(m).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=>{Sc(v.from,v.to,r.doc).some(C=>C.mark.type===n.type)||i.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!i.steps.length)return i}})}function M8(n){return new Ct({key:new Gt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,s;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=kp(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(s=a==null?void 0:a.target)!==null&&s!==void 0?s:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function N8(n){return new Ct({key:new Gt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:s}=e,{selection:i}=s,{empty:l}=i;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=Hc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const _8=ln.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Xd(n);return}Xd(n.scheme,n.optionalSlashes)})},onDestroy(){x8()},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",gt(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[$o({find:n=>Hc(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"),s=/href="([^"]*)"/,i=o==null?void 0:o.match(s);return i?{href:i[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(O8({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(M8({type:this.type})),this.options.linkOnPaste&&n.push(N8({editor:this.editor,type:this.type})),n}}),I8=_8.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})}}}}),D8=$t.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ct({key:new Gt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const s=n.type.createAndFill(),i=(s==null?void 0:s.sameMarkup(n))&&s.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 f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const h=Bt.node(a,a+l.nodeSize,{class:f.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}),Ye.create(n,o)}}})]}}),L8=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,R8=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,B8=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,P8=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,$8=ln.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",gt(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[Gs({find:L8,type:this.type}),Gs({find:B8,type:this.type})]},addPasteRules(){return[$o({find:R8,type:this.type}),$o({find:P8,type:this.type})]}}),F8=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,V8=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,z8=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,H8=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,U8=ln.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",gt(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[Gs({find:F8,type:this.type}),Gs({find:z8,type:this.type})]},addPasteRules(){return[$o({find:V8,type:this.type}),$o({find:H8,type:this.type})]}}),j8=ln.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",gt(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()}}}),W8=En.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",gt(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)}}}),K8=En.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",gt(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)}}}),Qd=ln.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",gt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Zi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),qd=/^\s*([-+*])\s$/,G8=En.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",gt(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(K8.name,this.editor.getAttributes(Qd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ys({find:qd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ys({find:qd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Qd.name),editor:this.editor})),[n]}}),Y8=En.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",gt(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)}}}),ef=ln.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",gt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Zi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),tf=/^(\d+)\.\s$/,J8=En.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",gt(this.options.HTMLAttributes,t),0]:["ol",gt(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(Y8.name,this.editor.getAttributes(ef.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ys({find:tf,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=Ys({find:tf,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(ef.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),Z8=En.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",gt(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:s}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,a=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&i){const f=a.filter(h=>l.includes(h.type.name));c.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),za={BASIC:"basic",FULL:"full"},X8={class:"attachment-list"},Q8={class:"attachment-link"},q8={key:1,class:"attachment-no-download"},e4=["href"],na=d.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)=>(d.openBlock(),d.createElementBlock("ul",X8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.files,s=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[d.createElementVNode("div",Q8,[r.showDelete?(d.openBlock(),d.createBlock(Ze,{key:0,variant:"remove",onClick:i=>t(s),"aria-label":"verwijder"},{default:d.withCtx(()=>[d.createVNode(d.unref(jo))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),r.noDownload?(d.openBlock(),d.createElementBlock("div",q8,[d.createVNode(d.unref(hr)),d.createTextVNode(" "+d.toDisplayString(s.Naam.trim()),1)])):(d.openBlock(),d.createElementBlock("a",{key:2,href:s.downloadUrl},[d.createVNode(d.unref(hr)),d.createTextVNode(" "+d.toDisplayString(s.Naam.trim()),1)],8,e4))])]))),128))]))}}),t4={class:"attachment-list"},n4={class:"attachment"},r4=["onClick"],o4=["src","alt"],s4=["onClick"],i4=["href"],a4={class:"btn btn-light download-button-image"},l4=["src","alt"],ra=d.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=s=>{e("delete",s)},o=(s,i)=>{s.target&&s.target.className==="img-preview"&&e("show",i)};return(s,i)=>(d.openBlock(),d.createElementBlock("ul",t4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(s.files,l=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[d.createElementVNode("div",n4,[s.showDelete?(d.openBlock(),d.createBlock(Ze,{key:0,variant:"remove","aria-label":"verwijder",onClick:d.withModifiers(a=>r(l),["prevent"])},{default:d.withCtx(()=>[d.createVNode(d.unref(jo))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),t.noDownload?(d.openBlock(),d.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[d.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,o4)],8,r4)):(d.openBlock(),d.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(d.openBlock(),d.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[d.createElementVNode("button",a4,[d.createVNode(d.unref(Os))])],8,i4)):d.createCommentVNode("",!0),d.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,l4)],8,s4))])]))),128))]))}}),nf=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),c4=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,u4=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,d4=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,f4=(n,e)=>e?nf(n):!nf(n),Ai=(n,e)=>n===void 0?void 0:n.filter(r=>f4(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:c4(r),previewUrl:u4(r),fullImageUrl:d4(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),h4={key:0,class:"pills-list__wrapper"},p4={class:"pills-list__ul"},m4={class:"bd-markdown-editor__menu-bottom"},g4={key:0,class:"vr"},pm=d.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:za.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=br(t,"modelValue",e),s=[i8,a8,l8,D8.configure({placeholder:t.placeholder}),Z8,I8.configure({openOnClick:!1,validate:M=>/^https?:\/\//i.test(M)})];t.variant===za.FULL&&s.push($8,U8,j8,W8,G8,J8);const i=s8({content:o.value,extensions:s,onUpdate:({editor:M})=>{const{view:x,state:z}=M,{from:U,to:j}=x.state.selection;if(z.doc.textBetween(U-1,j,"")==" "&&M.getAttributes("link").href!=null&&M.chain().setTextSelection({from:U-1,to:j}).toggleLink({href:M.getAttributes("link").href}).setTextSelection({from:j,to:j}).run(),M.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",M.getHTML())}});d.watch(()=>t.modelValue,M=>{i.value.getHTML()!==M&&i.value.commands.setContent(M,!0,{preserveWhitespace:"full"})});const l=d.computed(()=>t.state===!1?"is-invalid":null),a=d.computed(()=>g("bold")),c=d.computed(()=>g("italic")),u=d.computed(()=>g("underline")),f=d.computed(()=>g("bulletList")),h=d.computed(()=>g("orderedList")),p=d.computed(()=>g("link")),m=d.computed(()=>t.variant===za.FULL),g=M=>i.value&&i.value.isActive(M)?"active":null,v=d.computed(()=>t.files&&t.files.length>0?Ai(t.files,!1):null),C=d.computed(()=>t.files&&t.files.length>0?Ai(t.files,!0):null),S=M=>{e("action",{name:"delete-attachment",obj:M})},k=M=>{e("action",{name:"image-attachment",obj:M})},b=()=>{const M=i.value.getAttributes("link").href,x=window.prompt("Voeg link toe",M);if(x!==null){if(x===""){i.value.chain().focus().unsetLink().run();return}i.value.chain().focus().toggleLink({href:x}).run()}};return(M,x)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(["bd-markdown-editor",l.value])},[d.createVNode(d.unref(o8),{editor:d.unref(i)},null,8,["editor"]),M.pills?(d.openBlock(),d.createElementBlock("div",h4,[d.createElementVNode("ul",p4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(M.pills,(z,U)=>(d.openBlock(),d.createElementBlock("li",{key:U,class:"pills-list__li"},[d.createVNode($i,d.normalizeProps(d.guardReactiveProps(z)),null,16)]))),128))])])):d.createCommentVNode("",!0),d.renderSlot(M.$slots,"default"),v.value?(d.openBlock(),d.createBlock(na,{key:1,files:v.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createBlock(ra,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):d.createCommentVNode("",!0),d.createElementVNode("div",m4,[d.createVNode(Ze,{variant:"light",type:"button",onClick:r},{default:d.withCtx(()=>[d.createVNode(d.unref(hr))]),_:1}),m.value?(d.openBlock(),d.createElementBlock("div",g4)):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:1,variant:"light",type:"button",class:d.normalizeClass(a.value),onClick:x[0]||(x[0]=z=>d.unref(i).chain().focus().toggleBold().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(zl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:2,variant:"light",type:"button",class:d.normalizeClass(c.value),onClick:x[1]||(x[1]=z=>d.unref(i).chain().focus().toggleItalic().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Gl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:3,variant:"light",type:"button",class:d.normalizeClass(u.value),onClick:x[2]||(x[2]=z=>d.unref(i).chain().focus().toggleUnderline().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Ql))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:4,variant:"light",type:"button",class:d.normalizeClass(f.value),onClick:x[3]||(x[3]=z=>d.unref(i).chain().focus().toggleBulletList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Hl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:5,variant:"light",type:"button",class:d.normalizeClass(h.value),onClick:x[4]||(x[4]=z=>d.unref(i).chain().focus().toggleOrderedList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Yl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:6,variant:"light",type:"button",class:d.normalizeClass(p.value),onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(Li))]),_:1},8,["class"])):d.createCommentVNode("",!0)])],2),d.createVNode(d.unref(Pi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),v4={class:"header"},y4=d.createElementVNode("div",null,"Menu",-1),b4={class:"icon-close-wrapper"},E4={class:"navbar"},C4={class:"nav navbar-nav w-100"},S4={class:"nav-item"},w4={class:"nav-item"},Uc=d.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),s=()=>e("signout");return(i,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-mobile-menu",r.value])},[d.createElementVNode("div",v4,[y4,d.createElementVNode("div",b4,[d.createVNode(Ii,{onClick:o})])]),d.createElementVNode("nav",E4,[d.createElementVNode("ul",C4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,a=>(d.openBlock(),d.createElementBlock("li",S4,[d.createVNode(jr,d.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),d.renderSlot(i.$slots,"special-options"),d.createElementVNode("li",w4,[d.createVNode(jr,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),k4={class:"bd-user"},x4={class:"bd-user__information"},T4={class:"text-break"},A4={class:"overflow-x-hidden"},mm=d.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=d.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(d.openBlock(),d.createElementBlock("div",k4,[e.hideImage?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(Wo,d.mergeProps({key:0},e.img,{size:"sm"}),null,16)),d.createElementVNode("div",x4,[d.createElementVNode("header",null,[d.createElementVNode("h5",T4,d.toDisplayString(e.name),1),d.renderSlot(r.$slots,"header-extra")]),d.createElementVNode("span",A4,d.toDisplayString(t.value),1)])]))}}),O4={class:"bd-chat-cloud-card"},M4={class:"bd-chat-cloud-card__header"},N4={class:"bd-chat-cloud-card__body"},_4=["innerHTML"],I4={class:"bd-chat-cloud-card__footer"},D4={key:0,class:"pills-list__wrapper"},L4={class:"pills-list__ul"},gm=d.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=d.computed(()=>t.isSender?"sender":We),o=d.computed(()=>Ai(t.files,!1)),s=d.computed(()=>Ai(t.files,!0)),i=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-chat-cloud",r.value])},[d.createVNode(Wo,{src:t.src,size:"sm"},null,8,["src"]),d.createElementVNode("div",O4,[d.createElementVNode("div",M4,[d.renderSlot(a.$slots,"header",{},()=>[d.createTextVNode(d.toDisplayString(a.headerTitle),1)]),d.createVNode(Ze,{variant:"outline-primary-dark",size:"sm",onClick:i},{default:d.withCtx(()=>[d.createTextVNode(" kopieer ")]),_:1})]),d.createElementVNode("div",N4,[d.renderSlot(a.$slots,"body",{},()=>[d.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,_4)])]),d.createElementVNode("div",I4,[d.renderSlot(a.$slots,"footer",{},()=>[a.pills?(d.openBlock(),d.createElementBlock("div",D4,[d.createElementVNode("ul",L4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pills,(u,f)=>(d.openBlock(),d.createElementBlock("li",{key:f,class:"pills-list__li"},[d.createVNode($i,d.normalizeProps(d.guardReactiveProps(u)),null,16)]))),128))])])):d.createCommentVNode("",!0),o.value&&o.value.length>0?(d.openBlock(),d.createBlock(na,{key:1,files:o.value},null,8,["files"])):d.createCommentVNode("",!0),s.value&&s.value.length>0?(d.openBlock(),d.createBlock(ra,{key:2,"fast-download":!0,files:s.value,onShow:l},null,8,["files"])):d.createCommentVNode("",!0)])])])],2))}}),R4=d.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=d.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},s=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},i=d.computed(()=>({"bd-table-sort":!0,active:t.active}));return d.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),s(),(l,a)=>(d.openBlock(),d.createElementBlock("th",{class:d.normalizeClass(i.value),onClick:a[0]||(a[0]=c=>{o(),s()})},[d.createElementVNode("span",null,d.toDisplayString(t.label),1),t.active&&!r.value?(d.openBlock(),d.createBlock(d.unref(Jl),{key:0})):t.active&&r.value?(d.openBlock(),d.createBlock(d.unref(Zl),{key:1})):(d.openBlock(),d.createBlock(d.unref(Xl),{key:2}))],2))}}),B4={class:"bd-table"},P4={key:0,class:"table"},$4={key:1},F4=["onClick"],V4={key:0},z4={key:1,class:"empty-text"},vm=d.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=d.ref(r.items),s=d.ref(r.sortBy),i=f=>s.value=f,l=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const v=m.toString(),C=g.toString();return v.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>l(f,p,m)),t("sort-changed",{sortBy:f,sortDesc:!1})},c=f=>{o.value=o.value.sort((p,m)=>l(f,m,p)),t("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return d.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(d.openBlock(),d.createElementBlock("div",B4,[r.items&&r.items.length>0?(d.openBlock(),d.createElementBlock("table",P4,[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.fields,p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[p.sortable?(d.openBlock(),d.createBlock(R4,{key:0,label:p.label,active:p.key==s.value,sortDesc:r.sortDesc,onClick:m=>i(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(d.openBlock(),d.createElementBlock("th",$4,d.toDisplayString(p.label),1))],64)):d.createCommentVNode("",!0)],64))),256))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,p=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.fields,m=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[m.isVisible?(d.openBlock(),d.createElementBlock("td",V4,[f.$slots.hasOwnProperty(m.key)?d.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(p[m.key]),1)],64))])):d.createCommentVNode("",!0)],64))),256))],10,F4))),256))])])):(d.openBlock(),d.createElementBlock("p",z4,d.toDisplayString(r.emptyText),1))]))}}),H4={class:"template change-password-template"},U4={class:"template-title"},j4={key:0},W4={key:1},K4=["onSubmit","onReset"],G4={class:"bd-form-field"},Y4={class:"bd-form-field"},J4={class:"bd-form-field"},Z4={class:"bd-form-buttons"},ym=d.defineComponent({__name:"BDChangePasswordTemplate",props:{data:{},validation:{},serverErrors:{},errorMessages:{},errorMessageText:{},title:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{}},emits:["submit","reset"],setup(n,{emit:e}){const t=()=>e("submit"),r=()=>e("reset");return(o,s)=>(d.openBlock(),d.createElementBlock("main",H4,[d.createVNode(As,{class:"container-xl"},{default:d.withCtx(()=>[d.createVNode(qn,{class:"justify-content-md-center template-header"},{default:d.withCtx(()=>[d.createVNode(Qn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createElementVNode("h2",U4,d.toDisplayString(o.title),1)]),_:1})]),_:1}),d.createVNode(qn,{class:"justify-content-md-center"},{default:d.withCtx(()=>[d.createVNode(Qn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createVNode(Bi,{class:"bd-card-template",noHeader:!0},{body:d.withCtx(()=>[d.createVNode(As,{class:"container-fluid"},{default:d.withCtx(()=>[d.createVNode(qn,null,{default:d.withCtx(()=>[d.createVNode(Qn,null,{default:d.withCtx(()=>[d.createVNode(Ns,{variant:"warning"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.alertText),1)]),_:1})]),_:1})]),_:1}),o.errorMessages||o.errorMessageText?(d.openBlock(),d.createBlock(qn,{key:0},{default:d.withCtx(()=>[d.createVNode(Qn,null,{default:d.withCtx(()=>[d.createVNode(Ns,{variant:"danger"},{default:d.withCtx(()=>[o.errorMessages?(d.openBlock(),d.createElementBlock("div",j4,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.errorMessages,(i,l)=>(d.openBlock(),d.createElementBlock("li",{key:l},[d.createVNode(oo),d.createTextVNode(" "+d.toDisplayString(i),1)]))),128))])])):(d.openBlock(),d.createElementBlock("div",W4,d.toDisplayString(o.errorMessageText),1))]),_:1})]),_:1})]),_:1})):d.createCommentVNode("",!0),d.createVNode(qn,null,{default:d.withCtx(()=>[d.createVNode(Qn,{class:"bd-card-form",sm:12,md:12},{default:d.withCtx(()=>[d.createElementVNode("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"]),class:"form"},[d.createElementVNode("div",G4,[d.createVNode(bo,{modelValue:o.data.password,"onUpdate:modelValue":s[0]||(s[0]=i=>o.data.password=i),label:o.currentPasswordLabel,state:o.validation.password.state,type:"password",invalidFeedbackText:o.validation.password.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",Y4,[d.createVNode(bo,{modelValue:o.data.passwordNew,"onUpdate:modelValue":s[1]||(s[1]=i=>o.data.passwordNew=i),label:o.newPasswordLabel,state:o.validation.passwordNew.state,type:"password",invalidFeedbackText:o.validation.passwordNew.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",J4,[d.createVNode(bo,{modelValue:o.data.passwordRepeat,"onUpdate:modelValue":s[2]||(s[2]=i=>o.data.passwordRepeat=i),label:o.confirmNewPasswordLabel,state:o.validation.passwordRepeat.state,type:"password",invalidFeedbackText:o.validation.passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",Z4,[d.createVNode(Ze,{type:"submit"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.submitButtonText),1)]),_:1}),d.createVNode(Ze,{type:"reset",variant:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.cancelButtonText),1)]),_:1})])],40,K4)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),jc=d.defineComponent({__name:"BDDropdown",props:{size:{default:ct.MD},variant:{default:Ri.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}=so(),r=`__BD__DROPDOWN__${t.value}`,o=d.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})),s=d.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),i=d.computed(()=>({"aria-labelledby":r})),l=d.ref(),a=d.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(d.openBlock(),d.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=d.withModifiers(()=>{},["stop"]))},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.toggleTag),d.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(e.text),1)]),_:1},16)),d.createElementVNode("ul",d.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",s.value]},i.value,{onClick:c}),[d.renderSlot(u.$slots,"default")],16)]))}}),X4={class:"row bd-header"},Q4={class:"col logo-mix"},q4=["src","alt"],e6=d.createElementVNode("div",null,"Menu",-1),t6={key:0,class:"col header-options"},n6={class:"col bd-btn-settings"},r6="sm",bm=d.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=d.ref(void 0),s=()=>e("click"),i=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("nav",X4,[d.createElementVNode("div",Q4,[d.createVNode(ql,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),t.organizationLogoSrc?(d.openBlock(),d.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,q4)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[e6,d.createVNode(Ms)]),t.headerOptions&&t.headerOptions.length!==0?(d.openBlock(),d.createElementBlock("div",t6,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.headerOptions,f=>(d.openBlock(),d.createBlock(Ze,{class:"btn-header",to:f.to},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):d.createCommentVNode("",!0),d.createElementVNode("div",n6,[d.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(d.openBlock(),d.createBlock(Wo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:r6},null,8,["src","alt"])):d.createCommentVNode("",!0),d.createVNode(jc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownOptions,(f,h)=>(d.openBlock(),d.createBlock(Is,d.mergeProps({key:h},f),null,16))),128)),d.createVNode(Is,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),d.createVNode(Uc,{active:o.value,options:r.value,onHide:a,onSignout:i},{"special-options":d.withCtx(()=>[d.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),o6={class:"modal bd-modal modal-lg",tabindex:"-1"},s6={class:"modal-dialog"},i6={class:"modal-content"},a6={class:"modal-header"},l6={class:"modal-title"},c6=["src"],u6=d.createElementVNode("span",null,"Sluiten",-1),d6={class:"modal-body"},f6={key:0,class:"modal-footer"},h6=["disabled"],Wc=d.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{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(s,i)=>(d.openBlock(),d.createElementBlock("div",o6,[d.createElementVNode("div",s6,[d.createElementVNode("div",i6,[d.createElementVNode("div",a6,[d.createElementVNode("h2",l6,[t.titleImage?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,c6)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(t.title),1)]),d.renderSlot(s.$slots,"modal-header-space-between"),d.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[u6,d.createVNode(d.unref(Ii))])]),d.createElementVNode("div",d6,[d.renderSlot(s.$slots,"default")]),s.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",f6,[t.hideFooterSubmitButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},d.toDisplayString(t.submitButtonTitle),9,h6)),d.renderSlot(s.$slots,"buttons"),t.hideFooterCancelButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},d.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:s}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,a=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&i){const f=a.filter(h=>l.includes(h.type.name));c.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),za={BASIC:"basic",FULL:"full"},X8={class:"attachment-list"},Q8={class:"attachment-link"},q8={key:1,class:"attachment-no-download"},e4=["href"],na=d.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)=>(d.openBlock(),d.createElementBlock("ul",X8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.files,s=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[d.createElementVNode("div",Q8,[r.showDelete?(d.openBlock(),d.createBlock(Ze,{key:0,variant:"remove",onClick:i=>t(s),"aria-label":"verwijder"},{default:d.withCtx(()=>[d.createVNode(d.unref(jo))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),r.noDownload?(d.openBlock(),d.createElementBlock("div",q8,[d.createVNode(d.unref(hr)),d.createTextVNode(" "+d.toDisplayString(s.Naam.trim()),1)])):(d.openBlock(),d.createElementBlock("a",{key:2,href:s.downloadUrl},[d.createVNode(d.unref(hr)),d.createTextVNode(" "+d.toDisplayString(s.Naam.trim()),1)],8,e4))])]))),128))]))}}),t4={class:"attachment-list"},n4={class:"attachment"},r4=["onClick"],o4=["src","alt"],s4=["onClick"],i4=["href"],a4={class:"btn btn-light download-button-image"},l4=["src","alt"],ra=d.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=s=>{e("delete",s)},o=(s,i)=>{s.target&&s.target.className==="img-preview"&&e("show",i)};return(s,i)=>(d.openBlock(),d.createElementBlock("ul",t4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(s.files,l=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[d.createElementVNode("div",n4,[s.showDelete?(d.openBlock(),d.createBlock(Ze,{key:0,variant:"remove","aria-label":"verwijder",onClick:d.withModifiers(a=>r(l),["prevent"])},{default:d.withCtx(()=>[d.createVNode(d.unref(jo))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),t.noDownload?(d.openBlock(),d.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[d.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,o4)],8,r4)):(d.openBlock(),d.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(d.openBlock(),d.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[d.createElementVNode("button",a4,[d.createVNode(d.unref(Os))])],8,i4)):d.createCommentVNode("",!0),d.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,l4)],8,s4))])]))),128))]))}}),nf=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),c4=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,u4=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,d4=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,f4=(n,e)=>e?nf(n):!nf(n),Ai=(n,e)=>n===void 0?void 0:n.filter(r=>f4(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:c4(r),previewUrl:u4(r),fullImageUrl:d4(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),h4={key:0,class:"pills-list__wrapper"},p4={class:"pills-list__ul"},m4={class:"bd-markdown-editor__menu-bottom"},g4={key:0,class:"vr"},pm=d.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:za.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=br(t,"modelValue",e),s=[i8,a8,l8,D8.configure({placeholder:t.placeholder}),Z8,I8.configure({openOnClick:!1,validate:M=>/^https?:\/\//i.test(M)})];t.variant===za.FULL&&s.push($8,U8,j8,W8,G8,J8);const i=s8({content:o.value,extensions:s,onUpdate:({editor:M})=>{const{view:x,state:z}=M,{from:U,to:j}=x.state.selection;if(z.doc.textBetween(U-1,j,"")==" "&&M.getAttributes("link").href!=null&&M.chain().setTextSelection({from:U-1,to:j}).toggleLink({href:M.getAttributes("link").href}).setTextSelection({from:j,to:j}).run(),M.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",M.getHTML())}});d.watch(()=>t.modelValue,M=>{i.value.getHTML()!==M&&i.value.commands.setContent(M,!0,{preserveWhitespace:"full"})});const l=d.computed(()=>t.state===!1?"is-invalid":null),a=d.computed(()=>g("bold")),c=d.computed(()=>g("italic")),u=d.computed(()=>g("underline")),f=d.computed(()=>g("bulletList")),h=d.computed(()=>g("orderedList")),p=d.computed(()=>g("link")),m=d.computed(()=>t.variant===za.FULL),g=M=>i.value&&i.value.isActive(M)?"active":null,v=d.computed(()=>t.files&&t.files.length>0?Ai(t.files,!1):null),C=d.computed(()=>t.files&&t.files.length>0?Ai(t.files,!0):null),S=M=>{e("action",{name:"delete-attachment",obj:M})},k=M=>{e("action",{name:"image-attachment",obj:M})},b=()=>{const M=i.value.getAttributes("link").href,x=window.prompt("Voeg link toe",M);if(x!==null){if(x===""){i.value.chain().focus().unsetLink().run();return}i.value.chain().focus().toggleLink({href:x}).run()}};return(M,x)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(["bd-markdown-editor",l.value])},[d.createVNode(d.unref(o8),{editor:d.unref(i)},null,8,["editor"]),M.pills?(d.openBlock(),d.createElementBlock("div",h4,[d.createElementVNode("ul",p4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(M.pills,(z,U)=>(d.openBlock(),d.createElementBlock("li",{key:U,class:"pills-list__li"},[d.createVNode($i,d.normalizeProps(d.guardReactiveProps(z)),null,16)]))),128))])])):d.createCommentVNode("",!0),d.renderSlot(M.$slots,"default"),v.value?(d.openBlock(),d.createBlock(na,{key:1,files:v.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createBlock(ra,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):d.createCommentVNode("",!0),d.createElementVNode("div",m4,[d.createVNode(Ze,{variant:"light",type:"button",onClick:r},{default:d.withCtx(()=>[d.createVNode(d.unref(hr))]),_:1}),m.value?(d.openBlock(),d.createElementBlock("div",g4)):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:1,variant:"light",type:"button",class:d.normalizeClass(a.value),onClick:x[0]||(x[0]=z=>d.unref(i).chain().focus().toggleBold().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(zl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:2,variant:"light",type:"button",class:d.normalizeClass(c.value),onClick:x[1]||(x[1]=z=>d.unref(i).chain().focus().toggleItalic().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Gl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:3,variant:"light",type:"button",class:d.normalizeClass(u.value),onClick:x[2]||(x[2]=z=>d.unref(i).chain().focus().toggleUnderline().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Ql))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:4,variant:"light",type:"button",class:d.normalizeClass(f.value),onClick:x[3]||(x[3]=z=>d.unref(i).chain().focus().toggleBulletList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Hl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:5,variant:"light",type:"button",class:d.normalizeClass(h.value),onClick:x[4]||(x[4]=z=>d.unref(i).chain().focus().toggleOrderedList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Yl))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Ze,{key:6,variant:"light",type:"button",class:d.normalizeClass(p.value),onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(Li))]),_:1},8,["class"])):d.createCommentVNode("",!0)])],2),d.createVNode(d.unref(Pi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),v4={class:"header"},y4=d.createElementVNode("div",null,"Menu",-1),b4={class:"icon-close-wrapper"},E4={class:"navbar"},C4={class:"nav navbar-nav w-100"},S4={class:"nav-item"},w4={class:"nav-item"},Uc=d.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),s=()=>e("signout");return(i,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-mobile-menu",r.value])},[d.createElementVNode("div",v4,[y4,d.createElementVNode("div",b4,[d.createVNode(Ii,{onClick:o})])]),d.createElementVNode("nav",E4,[d.createElementVNode("ul",C4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,a=>(d.openBlock(),d.createElementBlock("li",S4,[d.createVNode(jr,d.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),d.renderSlot(i.$slots,"special-options"),d.createElementVNode("li",w4,[d.createVNode(jr,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),k4={class:"bd-user"},x4={class:"bd-user__information"},T4={class:"text-break"},A4={class:"overflow-x-hidden"},mm=d.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=d.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(d.openBlock(),d.createElementBlock("div",k4,[e.hideImage?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(Wo,d.mergeProps({key:0},e.img,{size:"sm"}),null,16)),d.createElementVNode("div",x4,[d.createElementVNode("header",null,[d.createElementVNode("h5",T4,d.toDisplayString(e.name),1),d.renderSlot(r.$slots,"header-extra")]),d.createElementVNode("span",A4,d.toDisplayString(t.value),1)])]))}}),O4={class:"bd-chat-cloud-card"},M4={class:"bd-chat-cloud-card__header"},N4={class:"bd-chat-cloud-card__body"},_4=["innerHTML"],I4={class:"bd-chat-cloud-card__footer"},D4={key:0,class:"pills-list__wrapper"},L4={class:"pills-list__ul"},gm=d.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=d.computed(()=>t.isSender?"sender":We),o=d.computed(()=>Ai(t.files,!1)),s=d.computed(()=>Ai(t.files,!0)),i=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-chat-cloud",r.value])},[d.createVNode(Wo,{src:t.src,size:"sm"},null,8,["src"]),d.createElementVNode("div",O4,[d.createElementVNode("div",M4,[d.renderSlot(a.$slots,"header",{},()=>[d.createTextVNode(d.toDisplayString(a.headerTitle),1)]),d.createVNode(Ze,{variant:"outline-primary-dark",size:"sm",onClick:i},{default:d.withCtx(()=>[d.createTextVNode(" kopieer ")]),_:1})]),d.createElementVNode("div",N4,[d.renderSlot(a.$slots,"body",{},()=>[d.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,_4)])]),d.createElementVNode("div",I4,[d.renderSlot(a.$slots,"footer",{},()=>[a.pills?(d.openBlock(),d.createElementBlock("div",D4,[d.createElementVNode("ul",L4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pills,(u,f)=>(d.openBlock(),d.createElementBlock("li",{key:f,class:"pills-list__li"},[d.createVNode($i,d.normalizeProps(d.guardReactiveProps(u)),null,16)]))),128))])])):d.createCommentVNode("",!0),o.value&&o.value.length>0?(d.openBlock(),d.createBlock(na,{key:1,files:o.value},null,8,["files"])):d.createCommentVNode("",!0),s.value&&s.value.length>0?(d.openBlock(),d.createBlock(ra,{key:2,"fast-download":!0,files:s.value,onShow:l},null,8,["files"])):d.createCommentVNode("",!0)])])])],2))}}),R4=d.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=d.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},s=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},i=d.computed(()=>({"bd-table-sort":!0,active:t.active}));return d.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),s(),(l,a)=>(d.openBlock(),d.createElementBlock("th",{class:d.normalizeClass(i.value),onClick:a[0]||(a[0]=c=>{o(),s()})},[d.createElementVNode("span",null,d.toDisplayString(t.label),1),t.active&&!r.value?(d.openBlock(),d.createBlock(d.unref(Jl),{key:0})):t.active&&r.value?(d.openBlock(),d.createBlock(d.unref(Zl),{key:1})):(d.openBlock(),d.createBlock(d.unref(Xl),{key:2}))],2))}}),B4={class:"bd-table"},P4={key:0,class:"table"},$4={key:1},F4=["onClick"],V4={key:0},z4={key:1,class:"empty-text"},vm=d.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=d.ref(r.items),s=d.ref(r.sortBy),i=f=>s.value=f,l=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const v=m.toString(),C=g.toString();return v.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>l(f,p,m)),t("sort-changed",{sortBy:f,sortDesc:!1})},c=f=>{o.value=o.value.sort((p,m)=>l(f,m,p)),t("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return d.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(d.openBlock(),d.createElementBlock("div",B4,[r.items&&r.items.length>0?(d.openBlock(),d.createElementBlock("table",P4,[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.fields,p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[p.sortable?(d.openBlock(),d.createBlock(R4,{key:0,label:p.label,active:p.key==s.value,sortDesc:r.sortDesc,onClick:m=>i(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(d.openBlock(),d.createElementBlock("th",$4,d.toDisplayString(p.label),1))],64)):d.createCommentVNode("",!0)],64))),256))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,p=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.fields,m=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[m.isVisible?(d.openBlock(),d.createElementBlock("td",V4,[f.$slots.hasOwnProperty(m.key)?d.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(p[m.key]),1)],64))])):d.createCommentVNode("",!0)],64))),256))],10,F4))),256))])])):(d.openBlock(),d.createElementBlock("p",z4,d.toDisplayString(r.emptyText),1))]))}}),H4={class:"template change-password-template"},U4={class:"template-title"},j4={key:0},W4={key:1},K4=["onSubmit","onReset"],G4={class:"bd-form-field"},Y4={class:"bd-form-field"},J4={class:"bd-form-field"},Z4={class:"bd-form-buttons"},ym=d.defineComponent({__name:"BDChangePasswordTemplate",props:{data:{},validation:{},serverErrors:{},errorMessages:{},errorMessageText:{},title:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{}},emits:["submit","reset"],setup(n,{emit:e}){const t=()=>e("submit"),r=()=>e("reset");return(o,s)=>(d.openBlock(),d.createElementBlock("main",H4,[d.createVNode(As,{class:"container-xl"},{default:d.withCtx(()=>[d.createVNode(qn,{class:"justify-content-md-center template-header"},{default:d.withCtx(()=>[d.createVNode(Qn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createElementVNode("h2",U4,d.toDisplayString(o.title),1)]),_:1})]),_:1}),d.createVNode(qn,{class:"justify-content-md-center"},{default:d.withCtx(()=>[d.createVNode(Qn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createVNode(Bi,{class:"bd-card-template",noHeader:!0},{body:d.withCtx(()=>[d.createVNode(As,{class:"container-fluid"},{default:d.withCtx(()=>[d.createVNode(qn,null,{default:d.withCtx(()=>[d.createVNode(Qn,null,{default:d.withCtx(()=>[d.createVNode(Ns,{variant:"warning"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.alertText),1)]),_:1})]),_:1})]),_:1}),o.errorMessages||o.errorMessageText?(d.openBlock(),d.createBlock(qn,{key:0},{default:d.withCtx(()=>[d.createVNode(Qn,null,{default:d.withCtx(()=>[d.createVNode(Ns,{variant:"danger"},{default:d.withCtx(()=>[o.errorMessages?(d.openBlock(),d.createElementBlock("div",j4,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.errorMessages,(i,l)=>(d.openBlock(),d.createElementBlock("li",{key:l},[d.createVNode(oo),d.createTextVNode(" "+d.toDisplayString(i),1)]))),128))])])):(d.openBlock(),d.createElementBlock("div",W4,d.toDisplayString(o.errorMessageText),1))]),_:1})]),_:1})]),_:1})):d.createCommentVNode("",!0),d.createVNode(qn,null,{default:d.withCtx(()=>[d.createVNode(Qn,{class:"bd-card-form",sm:12,md:12},{default:d.withCtx(()=>[d.createElementVNode("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"]),class:"form"},[d.createElementVNode("div",G4,[d.createVNode(bo,{modelValue:o.data.password,"onUpdate:modelValue":s[0]||(s[0]=i=>o.data.password=i),label:o.currentPasswordLabel,state:o.validation.password.state,type:"password",invalidFeedbackText:o.validation.password.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",Y4,[d.createVNode(bo,{modelValue:o.data.passwordNew,"onUpdate:modelValue":s[1]||(s[1]=i=>o.data.passwordNew=i),label:o.newPasswordLabel,state:o.validation.passwordNew.state,type:"password",invalidFeedbackText:o.validation.passwordNew.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",J4,[d.createVNode(bo,{modelValue:o.data.passwordRepeat,"onUpdate:modelValue":s[2]||(s[2]=i=>o.data.passwordRepeat=i),label:o.confirmNewPasswordLabel,state:o.validation.passwordRepeat.state,type:"password",invalidFeedbackText:o.validation.passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",Z4,[d.createVNode(Ze,{type:"submit"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.submitButtonText),1)]),_:1}),d.createVNode(Ze,{type:"reset",variant:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.cancelButtonText),1)]),_:1})])],40,K4)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),jc=d.defineComponent({__name:"BDDropdown",props:{size:{default:ct.MD},variant:{default:Ri.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}=so(),r=`__BD__DROPDOWN__${t.value}`,o=d.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})),s=d.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),i=d.computed(()=>({"aria-labelledby":r})),l=d.ref(),a=d.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(d.openBlock(),d.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=d.withModifiers(()=>{},["stop"]))},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.toggleTag),d.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(e.text),1)]),_:1},16)),d.createElementVNode("ul",d.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",s.value]},i.value,{onClick:c}),[d.renderSlot(u.$slots,"default")],16)]))}}),X4={class:"row bd-header"},Q4={class:"col logo-mix"},q4=["src","alt"],e6=d.createElementVNode("div",null,"Menu",-1),t6={key:0,class:"col header-options"},n6={class:"col bd-btn-settings"},r6="sm",bm=d.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=d.ref(void 0),s=()=>e("click"),i=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("nav",X4,[d.createElementVNode("div",Q4,[d.createVNode(ql,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),t.organizationLogoSrc?(d.openBlock(),d.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,q4)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[e6,d.createVNode(Ms)]),t.headerOptions&&t.headerOptions.length!==0?(d.openBlock(),d.createElementBlock("div",t6,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.headerOptions,f=>(d.openBlock(),d.createBlock(Ze,{class:"btn-header",to:f.to},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):d.createCommentVNode("",!0),d.createElementVNode("div",n6,[d.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(d.openBlock(),d.createBlock(Wo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:r6},null,8,["src","alt"])):d.createCommentVNode("",!0),d.createVNode(jc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownOptions,(f,h)=>(d.openBlock(),d.createBlock(Is,d.mergeProps({key:h},f),null,16))),128)),d.createVNode(Is,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),d.createVNode(Uc,{active:o.value,options:r.value,onHide:a,onSignout:i},{"special-options":d.withCtx(()=>[d.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),o6={class:"modal-dialog"},s6={class:"modal-content"},i6={class:"modal-header"},a6={class:"modal-title"},l6=["src"],c6=d.createElementVNode("span",null,"Sluiten",-1),u6={class:"modal-body"},d6={key:0,class:"modal-footer"},f6=["disabled"],Wc=d.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{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},size:{default:"lg"}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=d.computed(()=>`modal bd-modal modal-${t.size}`),o=()=>e("submit"),s=()=>e("cancel");return(i,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(r.value),tabindex:"-1"},[d.createElementVNode("div",o6,[d.createElementVNode("div",s6,[d.createElementVNode("div",i6,[d.createElementVNode("h2",a6,[t.titleImage?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,l6)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(t.title),1)]),d.renderSlot(i.$slots,"modal-header-space-between"),d.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:s},[c6,d.createVNode(d.unref(Ii))])]),d.createElementVNode("div",u6,[d.renderSlot(i.$slots,"default")]),i.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",d6,[t.hideFooterSubmitButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:o},d.toDisplayString(t.submitButtonTitle),9,f6)),d.renderSlot(i.$slots,"buttons"),t.hideFooterCancelButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:s,"aria-label":"Annuleren"},d.toDisplayString(t.closeButtonTitle),1))]))])])],2))}});/*!
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,Ha={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)}},p6=1e6,m6=1e3,Pl="transitionend",Em=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),g6=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),v6=n=>{do n+=Math.floor(Math.random()*p6);while(document.getElementById(n));return n},y6=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))*m6)},Cm=n=>{n.dispatchEvent(new Event(Pl))},yn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Fn=n=>yn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Em(n)):null,co=n=>{if(!yn(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},Vn=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",Sm=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?Sm(n.parentNode):null},Oi=()=>{},Zo=n=>{n.offsetHeight},wm=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ua=[],b6=n=>{document.readyState==="loading"?(Ua.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Ua)e()}),Ua.push(n)):n()},Ft=()=>document.documentElement.dir==="rtl",zt=n=>{b6(()=>{const e=wm();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)}})},bt=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,km=(n,e,t=!0)=>{if(!t){bt(n);return}const r=5,o=y6(e)+r;let s=!1;const i=({target:l})=>{l===e&&(s=!0,e.removeEventListener(Pl,i),bt(n))};e.addEventListener(Pl,i),setTimeout(()=>{s||Cm(e)},o)},Kc=(n,e,t,r)=>{const o=n.length;let s=n.indexOf(e);return s===-1?!t&&r?n[o-1]:n[0]:(s+=t?1:-1,r&&(s=(s+o)%o),n[Math.max(0,Math.min(s,o-1))])},E6=/[^.]*(?=\..*)\.|.*/,C6=/\..*/,S6=/::\d+$/,ja={};let rf=1;const xm={mouseenter:"mouseover",mouseleave:"mouseout"},w6=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 Tm(n,e){return e&&`${e}::${rf++}`||n.uidEvent||rf++}function Am(n){const e=Tm(n);return n.uidEvent=e,ja[e]=ja[e]||{},ja[e]}function k6(n,e){return function t(r){return Gc(r,{delegateTarget:n}),t.oneOff&&se.off(n,r.type,e),e.apply(n,[r])}}function x6(n,e,t){return function r(o){const s=n.querySelectorAll(e);for(let{target:i}=o;i&&i!==this;i=i.parentNode)for(const l of s)if(l===i)return Gc(o,{delegateTarget:i}),r.oneOff&&se.off(n,o.type,e,t),t.apply(i,[o])}}function Om(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 s=Nm(n);return w6.has(s)||(s=n),[r,o,s]}function of(n,e,t,r,o){if(typeof e!="string"||!n)return;let[s,i,l]=Mm(e,t,r);e in xm&&(i=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(i));const a=Am(n),c=a[l]||(a[l]={}),u=Om(c,i,s?t:null);if(u){u.oneOff=u.oneOff&&o;return}const f=Tm(i,e.replace(E6,"")),h=s?x6(n,t,i):k6(n,i);h.delegationSelector=s?t:null,h.callable=i,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,s)}function $l(n,e,t,r,o){const s=Om(e[t],r,o);s&&(n.removeEventListener(t,s,!!o),delete e[t][s.uidEvent])}function T6(n,e,t,r){const o=e[t]||{};for(const[s,i]of Object.entries(o))s.includes(r)&&$l(n,e,t,i.callable,i.delegationSelector)}function Nm(n){return n=n.replace(C6,""),xm[n]||n}const se={on(n,e,t,r){of(n,e,t,r,!1)},one(n,e,t,r){of(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,s,i]=Mm(e,t,r),l=i!==e,a=Am(n),c=a[i]||{},u=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;$l(n,a,i,s,o?t:null);return}if(u)for(const f of Object.keys(a))T6(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(S6,"");(!l||e.includes(p))&&$l(n,a,i,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=wm(),o=Nm(e),s=e!==o;let i=null,l=!0,a=!0,c=!1;s&&r&&(i=r.Event(e,t),r(n).trigger(i),l=!i.isPropagationStopped(),a=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented());const u=Gc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&i&&i.preventDefault(),u}};function Gc(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 sf(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 Wa(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Wa(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Wa(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]=sf(n.dataset[r])}return e},getDataAttribute(n,e){return sf(n.getAttribute(`data-bs-${Wa(e)}`))}};class Xo{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=yn(t)?bn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...yn(t)?bn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const s=e[r],i=yn(s)?"element":g6(s);if(!new RegExp(o).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${o}".`)}}}const A6="5.3.0";class Yt extends Xo{constructor(e,t){super(),e=Fn(e),e&&(this._element=e,this._config=this._getConfig(t),Ha.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ha.remove(this._element,this.constructor.DATA_KEY),se.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){km(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ha.get(Fn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return A6}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 Ka=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 Em(e)},we={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=>!Vn(t)&&co(t))},getSelectorFromElement(n){const e=Ka(n);return e&&we.findOne(e)?e:null},getElementFromSelector(n){const e=Ka(n);return e?we.findOne(e):null},getMultipleElementsFromSelector(n){const e=Ka(n);return e?we.find(e):[]}},oa=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;se.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Vn(this))return;const s=we.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(s)[e]()})},O6="alert",M6="bs.alert",_m=`.${M6}`,N6=`close${_m}`,_6=`closed${_m}`,I6="fade",D6="show";class sa extends Yt{static get NAME(){return O6}close(){if(se.trigger(this._element,N6).defaultPrevented)return;this._element.classList.remove(D6);const t=this._element.classList.contains(I6);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),se.trigger(this._element,_6),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=sa.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)}})}}oa(sa,"close");zt(sa);const L6="button",R6="bs.button",B6=`.${R6}`,P6=".data-api",$6="active",af='[data-bs-toggle="button"]',F6=`click${B6}${P6}`;class ia extends Yt{static get NAME(){return L6}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle($6))}static jQueryInterface(e){return this.each(function(){const t=ia.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}se.on(document,F6,af,n=>{n.preventDefault();const e=n.target.closest(af);ia.getOrCreateInstance(e).toggle()});zt(ia);const V6="swipe",uo=".bs.swipe",z6=`touchstart${uo}`,H6=`touchmove${uo}`,U6=`touchend${uo}`,j6=`pointerdown${uo}`,W6=`pointerup${uo}`,K6="touch",G6="pen",Y6="pointer-event",J6=40,Z6={endCallback:null,leftCallback:null,rightCallback:null},X6={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Mi extends Xo{constructor(e,t){super(),this._element=e,!(!e||!Mi.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Z6}static get DefaultType(){return X6}static get NAME(){return V6}dispose(){se.off(this._element,uo)}_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(),bt(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<=J6)return;const t=e/this._deltaX;this._deltaX=0,t&&bt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(se.on(this._element,j6,e=>this._start(e)),se.on(this._element,W6,e=>this._end(e)),this._element.classList.add(Y6)):(se.on(this._element,z6,e=>this._start(e)),se.on(this._element,H6,e=>this._move(e)),se.on(this._element,U6,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===G6||e.pointerType===K6)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Q6="carousel",q6="bs.carousel",Gn=`.${q6}`,Im=".data-api",eC="ArrowLeft",tC="ArrowRight",nC=500,ho="next",Or="prev",Rr="left",xs="right",rC=`slide${Gn}`,Ga=`slid${Gn}`,oC=`keydown${Gn}`,sC=`mouseenter${Gn}`,iC=`mouseleave${Gn}`,aC=`dragstart${Gn}`,lC=`load${Gn}${Im}`,cC=`click${Gn}${Im}`,Dm="carousel",ps="active",uC="slide",dC="carousel-item-end",fC="carousel-item-start",hC="carousel-item-next",pC="carousel-item-prev",Lm=".active",Rm=".carousel-item",mC=Lm+Rm,gC=".carousel-item img",vC=".carousel-indicators",yC="[data-bs-slide], [data-bs-slide-to]",bC='[data-bs-ride="carousel"]',EC={[eC]:xs,[tC]:Rr},CC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},SC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qo extends Yt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=we.findOne(vC,this._element),this._addEventListeners(),this._config.ride===Dm&&this.cycle()}static get Default(){return CC}static get DefaultType(){return SC}static get NAME(){return Q6}next(){this._slide(ho)}nextWhenVisible(){!document.hidden&&co(this._element)&&this.next()}prev(){this._slide(Or)}pause(){this._isSliding&&Cm(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){se.one(this._element,Ga,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){se.one(this._element,Ga,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?ho:Or;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&&se.on(this._element,oC,e=>this._keydown(e)),this._config.pause==="hover"&&(se.on(this._element,sC,()=>this.pause()),se.on(this._element,iC,()=>this._maybeEnableCycle())),this._config.touch&&Mi.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of we.find(gC,this._element))se.on(r,aC,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Rr)),rightCallback:()=>this._slide(this._directionToOrder(xs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),nC+this._config.interval))}};this._swipeHelper=new Mi(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=EC[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=we.findOne(Lm,this._indicatorsElement);t.classList.remove(ps),t.removeAttribute("aria-current");const r=we.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ps),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===ho,s=t||Kc(this._getItems(),r,o,this._config.wrap);if(s===r)return;const i=this._getItemIndex(s),l=p=>se.trigger(this._element,p,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(l(rC).defaultPrevented||!r||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=s;const u=o?fC:dC,f=o?hC:pC;s.classList.add(f),Zo(s),r.classList.add(u),s.classList.add(u);const h=()=>{s.classList.remove(u,f),s.classList.add(ps),r.classList.remove(ps,f,u),this._isSliding=!1,l(Ga)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(uC)}_getActive(){return we.findOne(mC,this._element)}_getItems(){return we.find(Rm,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ft()?e===Rr?Or:ho:e===Rr?ho:Or}_orderToDirection(e){return Ft()?e===Or?Rr:xs:e===Or?xs:Rr}static jQueryInterface(e){return this.each(function(){const t=Qo.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]()}})}}se.on(document,cC,yC,function(n){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(Dm))return;n.preventDefault();const t=Qo.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(bn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});se.on(window,lC,()=>{const n=we.find(bC);for(const e of n)Qo.getOrCreateInstance(e)});zt(Qo);const wC="collapse",kC="bs.collapse",qo=`.${kC}`,xC=".data-api",TC=`show${qo}`,AC=`shown${qo}`,OC=`hide${qo}`,MC=`hidden${qo}`,NC=`click${qo}${xC}`,Ya="show",Vr="collapse",ms="collapsing",_C="collapsed",IC=`:scope .${Vr} .${Vr}`,DC="collapse-horizontal",LC="width",RC="height",BC=".collapse.show, .collapse.collapsing",Fl='[data-bs-toggle="collapse"]',PC={parent:null,toggle:!0},$C={parent:"(null|element)",toggle:"boolean"};class Uo extends Yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=we.find(Fl);for(const o of r){const s=we.getSelectorFromElement(o),i=we.find(s).filter(l=>l===this._element);s!==null&&i.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 PC}static get DefaultType(){return $C}static get NAME(){return wC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(BC).filter(l=>l!==this._element).map(l=>Uo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||se.trigger(this._element,TC).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(Vr),this._element.classList.add(ms),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(ms),this._element.classList.add(Vr,Ya),this._element.style[r]="",se.trigger(this._element,AC)},i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||se.trigger(this._element,OC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Zo(this._element),this._element.classList.add(ms),this._element.classList.remove(Vr,Ya);for(const o of this._triggerArray){const s=we.getElementFromSelector(o);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(ms),this._element.classList.add(Vr),se.trigger(this._element,MC)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ya)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Fn(e.parent),e}_getDimension(){return this._element.classList.contains(DC)?LC:RC}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Fl);for(const t of e){const r=we.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=we.find(IC,this._config.parent);return we.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(_C,!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=Uo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}se.on(document,NC,Fl,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of we.getMultipleElementsFromSelector(this))Uo.getOrCreateInstance(e,{toggle:!1}).toggle()});zt(Uo);const lf="dropdown",FC="bs.dropdown",Er=`.${FC}`,Yc=".data-api",VC="Escape",cf="Tab",zC="ArrowUp",uf="ArrowDown",HC=2,UC=`hide${Er}`,jC=`hidden${Er}`,WC=`show${Er}`,KC=`shown${Er}`,Bm=`click${Er}${Yc}`,Pm=`keydown${Er}${Yc}`,GC=`keyup${Er}${Yc}`,Br="show",YC="dropup",JC="dropend",ZC="dropstart",XC="dropup-center",QC="dropdown-center",sr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',qC=`${sr}.${Br}`,Ts=".dropdown-menu",eS=".navbar",tS=".navbar-nav",nS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rS=Ft()?"top-end":"top-start",oS=Ft()?"top-start":"top-end",sS=Ft()?"bottom-end":"bottom-start",iS=Ft()?"bottom-start":"bottom-end",aS=Ft()?"left-start":"right-start",lS=Ft()?"right-start":"left-start",cS="top",uS="bottom",dS={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},fS={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class on extends Yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Ts)[0]||we.prev(this._element,Ts)[0]||we.findOne(Ts,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return dS}static get DefaultType(){return fS}static get NAME(){return lf}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Vn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!se.trigger(this._element,WC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(tS))for(const r of[].concat(...document.body.children))se.on(r,"mouseover",Oi);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Br),this._element.classList.add(Br),se.trigger(this._element,KC,e)}}hide(){if(Vn(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(!se.trigger(this._element,UC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))se.off(r,"mouseover",Oi);this._popper&&this._popper.destroy(),this._menu.classList.remove(Br),this._element.classList.remove(Br),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),se.trigger(this._element,jC,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!yn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${lf.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Jp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:yn(this._config.reference)?e=Fn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=ea(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Br)}_getPlacement(){const e=this._parent;if(e.classList.contains(JC))return aS;if(e.classList.contains(ZC))return lS;if(e.classList.contains(XC))return cS;if(e.classList.contains(QC))return uS;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(YC)?t?oS:rS:t?iS:sS}_detectNavbar(){return this._element.closest(eS)!==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")&&(bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...bt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=we.find(nS,this._menu).filter(o=>co(o));r.length&&Kc(r,t,e===uf,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=on.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===HC||e.type==="keyup"&&e.key!==cf)return;const t=we.find(qC);for(const r of t){const o=on.getInstance(r);if(!o||o._config.autoClose===!1)continue;const s=e.composedPath(),i=s.includes(o._menu);if(s.includes(o._element)||o._config.autoClose==="inside"&&!i||o._config.autoClose==="outside"&&i||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===cf||/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===VC,o=[zC,uf].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const s=this.matches(sr)?this:we.prev(this,sr)[0]||we.next(this,sr)[0]||we.findOne(sr,e.delegateTarget.parentNode),i=on.getOrCreateInstance(s);if(o){e.stopPropagation(),i.show(),i._selectMenuItem(e);return}i._isShown()&&(e.stopPropagation(),i.hide(),s.focus())}}se.on(document,Pm,sr,on.dataApiKeydownHandler);se.on(document,Pm,Ts,on.dataApiKeydownHandler);se.on(document,Bm,on.clearMenus);se.on(document,GC,on.clearMenus);se.on(document,Bm,sr,function(n){n.preventDefault(),on.getOrCreateInstance(this).toggle()});zt(on);const $m="backdrop",hS="fade",df="show",ff=`mousedown.bs.${$m}`,pS={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mS={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Fm extends Xo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return pS}static get DefaultType(){return mS}static get NAME(){return $m}show(e){if(!this._config.isVisible){bt(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Zo(t),t.classList.add(df),this._emulateAnimation(()=>{bt(e)})}hide(e){if(!this._config.isVisible){bt(e);return}this._getElement().classList.remove(df),this._emulateAnimation(()=>{this.dispose(),bt(e)})}dispose(){this._isAppended&&(se.off(this._element,ff),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(hS),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Fn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),se.on(e,ff,()=>{bt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){km(e,this._getElement(),this._config.isAnimated)}}const gS="focustrap",vS="bs.focustrap",Ni=`.${vS}`,yS=`focusin${Ni}`,bS=`keydown.tab${Ni}`,ES="Tab",CS="forward",hf="backward",SS={autofocus:!0,trapElement:null},wS={autofocus:"boolean",trapElement:"element"};class Vm extends Xo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return SS}static get DefaultType(){return wS}static get NAME(){return gS}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),se.off(document,Ni),se.on(document,yS,e=>this._handleFocusin(e)),se.on(document,bS,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,se.off(document,Ni))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=we.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===hf?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===ES&&(this._lastTabNavDirection=e.shiftKey?hf:CS)}}const pf=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",mf=".sticky-top",gs="padding-right",gf="margin-right";class Vl{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,gs,t=>t+e),this._setElementAttributes(pf,gs,t=>t+e),this._setElementAttributes(mf,gf,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,gs),this._resetElementAttributes(pf,gs),this._resetElementAttributes(mf,gf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),s=i=>{if(i!==this._element&&window.innerWidth>i.clientWidth+o)return;this._saveInitialAttribute(i,t);const l=window.getComputedStyle(i).getPropertyValue(t);i.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const s=bn.getDataAttribute(o,t);if(s===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(yn(e)){t(e);return}for(const r of we.find(e,this._element))t(r)}}const kS="modal",xS="bs.modal",Vt=`.${xS}`,TS=".data-api",AS="Escape",OS=`hide${Vt}`,MS=`hidePrevented${Vt}`,zm=`hidden${Vt}`,Hm=`show${Vt}`,NS=`shown${Vt}`,_S=`resize${Vt}`,IS=`click.dismiss${Vt}`,DS=`mousedown.dismiss${Vt}`,LS=`keydown.dismiss${Vt}`,RS=`click${Vt}${TS}`,vf="modal-open",BS="fade",yf="show",Ja="modal-static",PS=".modal.show",$S=".modal-dialog",FS=".modal-body",VS='[data-bs-toggle="modal"]',zS={backdrop:!0,focus:!0,keyboard:!0},HS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class zn extends Yt{constructor(e,t){super(e,t),this._dialog=we.findOne($S,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Vl,this._addEventListeners()}static get Default(){return zS}static get DefaultType(){return HS}static get NAME(){return kS}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||se.trigger(this._element,Hm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(vf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||se.trigger(this._element,OS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(yf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){se.off(window,Vt),se.off(this._dialog,Vt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Fm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Vm({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=we.findOne(FS,this._dialog);t&&(t.scrollTop=0),Zo(this._element),this._element.classList.add(yf);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,se.trigger(this._element,NS,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){se.on(this._element,LS,e=>{if(e.key===AS){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),se.on(window,_S,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),se.on(this._element,DS,e=>{se.one(this._element,IS,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(vf),this._resetAdjustments(),this._scrollBar.reset(),se.trigger(this._element,zm)})}_isAnimated(){return this._element.classList.contains(BS)}_triggerBackdropTransition(){if(se.trigger(this._element,MS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Ja)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ja),this._queueCallback(()=>{this._element.classList.remove(Ja),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=Ft()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Ft()?"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=zn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}se.on(document,RS,VS,function(n){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),se.one(e,Hm,o=>{o.defaultPrevented||se.one(e,zm,()=>{co(this)&&this.focus()})});const t=we.findOne(PS);t&&zn.getInstance(t).hide(),zn.getOrCreateInstance(e).toggle(this)});oa(zn);zt(zn);const US="offcanvas",jS="bs.offcanvas",Cn=`.${jS}`,Um=".data-api",WS=`load${Cn}${Um}`,KS="Escape",bf="show",Ef="showing",Cf="hiding",GS="offcanvas-backdrop",jm=".offcanvas.show",YS=`show${Cn}`,JS=`shown${Cn}`,ZS=`hide${Cn}`,Sf=`hidePrevented${Cn}`,Wm=`hidden${Cn}`,XS=`resize${Cn}`,QS=`click${Cn}${Um}`,qS=`keydown.dismiss${Cn}`,ew='[data-bs-toggle="offcanvas"]',tw={backdrop:!0,keyboard:!0,scroll:!1},nw={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Hn extends Yt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return tw}static get DefaultType(){return nw}static get NAME(){return US}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||se.trigger(this._element,YS,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Vl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ef);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(bf),this._element.classList.remove(Ef),se.trigger(this._element,JS,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||se.trigger(this._element,ZS).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Cf),this._backdrop.hide();const t=()=>{this._element.classList.remove(bf,Cf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Vl().reset(),se.trigger(this._element,Wm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){se.trigger(this._element,Sf);return}this.hide()},t=!!this._config.backdrop;return new Fm({className:GS,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Vm({trapElement:this._element})}_addEventListeners(){se.on(this._element,qS,e=>{if(e.key===KS){if(this._config.keyboard){this.hide();return}se.trigger(this._element,Sf)}})}static jQueryInterface(e){return this.each(function(){const t=Hn.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)}})}}se.on(document,QS,ew,function(n){const e=we.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Vn(this))return;se.one(e,Wm,()=>{co(this)&&this.focus()});const t=we.findOne(jm);t&&t!==e&&Hn.getInstance(t).hide(),Hn.getOrCreateInstance(e).toggle(this)});se.on(window,WS,()=>{for(const n of we.find(jm))Hn.getOrCreateInstance(n).show()});se.on(window,XS,()=>{for(const n of we.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Hn.getOrCreateInstance(n).hide()});oa(Hn);zt(Hn);const rw=/^aria-[\w-]*$/i,Km={"*":["class","dir","id","lang","role",rw],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:[]},ow=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),sw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,iw=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?ow.has(t)?!!sw.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"),s=[].concat(...o.body.querySelectorAll("*"));for(const i of s){const l=i.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){i.remove();continue}const a=[].concat(...i.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)iw(u,c)||i.removeAttribute(u.nodeName)}return o.body.innerHTML}const lw="TemplateFactory",cw={allowList:Km,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},uw={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},dw={entry:"(string|element|function|null)",selector:"(string|element)"};class fw extends Xo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return cw}static get DefaultType(){return uw}static get NAME(){return lw}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,s]of Object.entries(this._config.content))this._setContent(e,s,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},dw)}_setContent(e,t,r){const o=we.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(yn(t)){this._putElementInTemplate(Fn(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 bt(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const hw="tooltip",pw=new Set(["sanitize","allowList","sanitizeFn"]),Za="fade",mw="modal",vs="show",gw=".tooltip-inner",wf=`.${mw}`,kf="hide.bs.modal",po="hover",Xa="focus",vw="click",yw="manual",bw="hide",Ew="hidden",Cw="show",Sw="shown",ww="inserted",kw="click",xw="focusin",Tw="focusout",Aw="mouseenter",Ow="mouseleave",Mw={AUTO:"auto",TOP:"top",RIGHT:Ft()?"left":"right",BOTTOM:"bottom",LEFT:Ft()?"right":"left"},Nw={allowList:Km,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"},_w={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 Cr extends Yt{constructor(e,t){if(typeof Jp>"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 Nw}static get DefaultType(){return _w}static get NAME(){return hw}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),se.off(this._element.closest(wf),kf,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=se.trigger(this._element,this.constructor.eventName(Cw)),r=(Sm(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:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(o),se.trigger(this._element,this.constructor.eventName(ww))),this._popper=this._createPopper(o),o.classList.add(vs),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))se.on(l,"mouseover",Oi);const i=()=>{se.trigger(this._element,this.constructor.eventName(Sw)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||se.trigger(this._element,this.constructor.eventName(bw)).defaultPrevented)return;if(this._getTipElement().classList.remove(vs),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))se.off(o,"mouseover",Oi);this._activeTrigger[vw]=!1,this._activeTrigger[Xa]=!1,this._activeTrigger[po]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),se.trigger(this._element,this.constructor.eventName(Ew)))};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(Za,vs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=v6(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Za),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new fw({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[gw]: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(Za)}_isShown(){return this.tip&&this.tip.classList.contains(vs)}_createPopper(e){const t=bt(this._config.placement,[this,e,this._element]),r=Mw[t.toUpperCase()];return ea(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 bt(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,...bt(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")se.on(this._element,this.constructor.eventName(kw),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==yw){const r=t===po?this.constructor.eventName(Aw):this.constructor.eventName(xw),o=t===po?this.constructor.eventName(Ow):this.constructor.eventName(Tw);se.on(this._element,r,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusin"?Xa:po]=!0,i._enter()}),se.on(this._element,o,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusout"?Xa:po]=i._element.contains(s.relatedTarget),i._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},se.on(this._element.closest(wf),kf,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=bn.getDataAttributes(this._element);for(const r of Object.keys(t))pw.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:Fn(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=Cr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}zt(Cr);const Iw="popover",Dw=".popover-header",Lw=".popover-body",Rw={...Cr.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"},Bw={...Cr.DefaultType,content:"(null|string|element|function)"};class Jc extends Cr{static get Default(){return Rw}static get DefaultType(){return Bw}static get NAME(){return Iw}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Dw]:this._getTitle(),[Lw]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Jc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}zt(Jc);const Pw="scrollspy",$w="bs.scrollspy",Zc=`.${$w}`,Fw=".data-api",Vw=`activate${Zc}`,xf=`click${Zc}`,zw=`load${Zc}${Fw}`,Hw="dropdown-item",Mr="active",Uw='[data-bs-spy="scroll"]',Qa="[href]",jw=".nav, .list-group",Tf=".nav-link",Ww=".nav-item",Kw=".list-group-item",Gw=`${Tf}, ${Ww} > ${Tf}, ${Kw}`,Yw=".dropdown",Jw=".dropdown-toggle",Zw={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xw={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class aa extends Yt{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 Zw}static get DefaultType(){return Xw}static get NAME(){return Pw}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=Fn(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&&(se.off(this._config.target,xf),se.on(this._config.target,xf,Qa,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=i=>this._targetLinks.get(`#${i.target.id}`),r=i=>{this._previousScrollData.visibleEntryTop=i.target.offsetTop,this._process(t(i))},o=(this._rootElement||document.documentElement).scrollTop,s=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const l=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(r(i),!o)return;continue}!s&&!l&&r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=we.find(Qa,this._config.target);for(const t of e){if(!t.hash||Vn(t))continue;const r=we.findOne(decodeURI(t.hash),this._element);co(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(Mr),this._activateParents(e),se.trigger(this._element,Vw,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Hw)){we.findOne(Jw,e.closest(Yw)).classList.add(Mr);return}for(const t of we.parents(e,jw))for(const r of we.prev(t,Gw))r.classList.add(Mr)}_clearActiveClass(e){e.classList.remove(Mr);const t=we.find(`${Qa}.${Mr}`,e);for(const r of t)r.classList.remove(Mr)}static jQueryInterface(e){return this.each(function(){const t=aa.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]()}})}}se.on(window,zw,()=>{for(const n of we.find(Uw))aa.getOrCreateInstance(n)});zt(aa);const Qw="tab",qw="bs.tab",Sr=`.${qw}`,ek=`hide${Sr}`,tk=`hidden${Sr}`,nk=`show${Sr}`,rk=`shown${Sr}`,ok=`click${Sr}`,sk=`keydown${Sr}`,ik=`load${Sr}`,ak="ArrowLeft",Af="ArrowRight",lk="ArrowUp",Of="ArrowDown",ir="active",Mf="fade",qa="show",ck="dropdown",uk=".dropdown-toggle",dk=".dropdown-menu",el=":not(.dropdown-toggle)",fk='.list-group, .nav, [role="tablist"]',hk=".nav-item, .list-group-item",pk=`.nav-link${el}, .list-group-item${el}, [role="tab"]${el}`,Gm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',tl=`${pk}, ${Gm}`,mk=`.${ir}[data-bs-toggle="tab"], .${ir}[data-bs-toggle="pill"], .${ir}[data-bs-toggle="list"]`;class no extends Yt{constructor(e){super(e),this._parent=this._element.closest(fk),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),se.on(this._element,sk,t=>this._keydown(t)))}static get NAME(){return Qw}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?se.trigger(t,ek,{relatedTarget:e}):null;se.trigger(e,nk,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(ir),this._activate(we.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(qa);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),se.trigger(e,rk,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Mf))}_deactivate(e,t){if(!e)return;e.classList.remove(ir),e.blur(),this._deactivate(we.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(qa);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),se.trigger(e,tk,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Mf))}_keydown(e){if(![ak,Af,lk,Of].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Af,Of].includes(e.key),r=Kc(this._getChildren().filter(o=>!Vn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),no.getOrCreateInstance(r).show())}_getChildren(){return we.find(tl,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=we.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(ck))return;const o=(s,i)=>{const l=we.findOne(s,r);l&&l.classList.toggle(i,t)};o(uk,ir),o(dk,qa),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(ir)}_getInnerElement(e){return e.matches(tl)?e:we.findOne(tl,e)}_getOuterElement(e){return e.closest(hk)||e}static jQueryInterface(e){return this.each(function(){const t=no.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(document,ok,Gm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Vn(this)&&no.getOrCreateInstance(this).show()});se.on(window,ik,()=>{for(const n of we.find(mk))no.getOrCreateInstance(n)});zt(no);const gk="toast",vk="bs.toast",Yn=`.${vk}`,yk=`mouseover${Yn}`,bk=`mouseout${Yn}`,Ek=`focusin${Yn}`,Ck=`focusout${Yn}`,Sk=`hide${Yn}`,wk=`hidden${Yn}`,kk=`show${Yn}`,xk=`shown${Yn}`,Tk="fade",Nf="hide",ys="show",bs="showing",Ak={animation:"boolean",autohide:"boolean",delay:"number"},Ok={animation:!0,autohide:!0,delay:5e3};class es extends Yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ok}static get DefaultType(){return Ak}static get NAME(){return gk}show(){if(se.trigger(this._element,kk).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Tk);const t=()=>{this._element.classList.remove(bs),se.trigger(this._element,xk),this._maybeScheduleHide()};this._element.classList.remove(Nf),Zo(this._element),this._element.classList.add(ys,bs),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||se.trigger(this._element,Sk).defaultPrevented)return;const t=()=>{this._element.classList.add(Nf),this._element.classList.remove(bs,ys),se.trigger(this._element,wk)};this._element.classList.add(bs),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ys),super.dispose()}isShown(){return this._element.classList.contains(ys)}_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(){se.on(this._element,yk,e=>this._onInteraction(e,!0)),se.on(this._element,bk,e=>this._onInteraction(e,!1)),se.on(this._element,Ek,e=>this._onInteraction(e,!0)),se.on(this._element,Ck,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=es.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}oa(es);zt(es);const Ym=n=>{const e=d.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value=zn.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(n);if(o instanceof HTMLElement){const s=zn.getInstance(o);s&&s.hide()}}}};function Jm(){const n=d.ref(0),e=d.ref(!0),t=d.ref(null),r=d.ref({top:0,left:0,x:0,y:0}),o=d.computed(()=>n.value>0?`zoom-${n.value}`:"");return{zoom:n,mouseDown:e,imageHolderRef:t,pos:r,SetZoom:o,OnMouseDown:a=>{if(!t.value)return;r.value.left=t.value.scrollLeft,r.value.top=t.value.scrollTop;const c=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const c=a.clientX-r.value.x,u=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-u,t.value.scrollLeft=r.value.left-c)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),c=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),c&&c.style&&(c.style.cursor="grab"),e.value=!1}}}const Mk=["src","alt"],Nk={key:0,class:"show-spinner"},_k={class:"spinner-border text-primary",role:"status"},Ik={class:"visually-hidden"},Dk=["href"],Zm=d.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=Ym("image-attachment-modal"),{zoom:o,imageHolderRef:s,SetZoom:i,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=Jm(),u=d.ref(!0),f=d.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{u.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We}};return(g,v)=>(d.openBlock(),d.createBlock(Wc,{id:"image-attachment-modal",class:d.normalizeClass(d.unref(We)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:d.withCtx(()=>[d.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:s,onMousedown:v[0]||(v[0]=(...C)=>d.unref(l)&&d.unref(l)(...C)),onMousemove:v[1]||(v[1]=(...C)=>d.unref(a)&&d.unref(a)(...C)),onMouseup:v[2]||(v[2]=(...C)=>d.unref(c)&&d.unref(c)(...C))},[f.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:d.normalizeClass(["image-preview-modal",d.unref(i)]),onLoad:p,draggable:!1},null,42,Mk)):d.createCommentVNode("",!0)],544),u.value?(d.openBlock(),d.createElementBlock("div",Nk,[d.createElementVNode("div",_k,[d.createElementVNode("span",Ik,d.toDisplayString(t.loadingText),1)])])):d.createCommentVNode("",!0),d.createVNode(ec,{modelValue:d.unref(o),"onUpdate:modelValue":v[3]||(v[3]=C=>d.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),d.createElementVNode("a",{href:f.value.downloadUrl},[d.createVNode(Ze,{variant:"primary",class:"download-image"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.downloadText),1)]),_:1})],8,Dk)]),_:1},8,["class","title"]))}});function Xm(n=void 0){const e=l=>s("Succesvol",l,Pr.SUCCESS),t=l=>s("Waarschuwing",l,Pr.WARNING),r=l=>s("Informatie",l,Pr.INFO),o=l=>s("Mislukt",l,Pr.DANGER);function s(l,a,c){const u=`toast-${Wf()}`,f={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 p=d.h(tc,f),g=d.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(es.getOrCreateInstance(v,n).show(),i(v))}function i(l){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.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 Lk=n=>Array.isArray(n)&&n.length>0,{showDangerToast:Rk}=Xm();function Bk(n){const e=d.ref(null),t=(a,c="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>rs(h.ErrorMessage)&&h.ErrorMessage!==We):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,rs(c))e.value=u;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=u:h=h[c[p]]}r(a),i(e)},r=a=>{const u=new URL(a.request.responseURL).pathname;if(u in n.error){const f=n.error[u];f&&Rk(f)}},o=d.ref(null),s=d.ref(""),i=a=>{Lk(a.value)?o.value=a.value.map(c=>rs(c)?c:c.ErrorMessage):rs(a.value)&&(s.value=a.value)};function l(){e.value=null,o.value=null,s.value=We}return{serverErrors:e,errorMessages:o,errorMessageText:s,MapErrors:i,MapServerErrors:t,ResetServerErrors:l}}const Pk=()=>({ResetValidation:t=>{for(const r in t.value)t.value[r].state=null},ValidationObjectIsValid:t=>{for(let r in t)if(t[r].state===!1)return!1;return!0}}),Qm={mounted:n=>{new Cr(n)}};var qm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(nc,function(){var t=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],P=H%100;return"["+H+(F[(P-20)%10]||F[P]||F[0])+"]"}},k=function(H,F,P){var Y=String(H);return!Y||Y.length>=F?H:""+Array(F+1-Y.length).join(P)+H},b={s:k,z:function(H){var F=-H.utcOffset(),P=Math.abs(F),Y=Math.floor(P/60),D=P%60;return(F<=0?"+":"-")+k(Y,2,"0")+":"+k(D,2,"0")},m:function H(F,P){if(F.date()<P.date())return-H(P,F);var Y=12*(P.year()-F.year())+(P.month()-F.month()),D=F.clone().add(Y,f),Q=P-D<0,te=F.clone().add(Y+(Q?-1:1),f);return+(-(Y+(P-D)/(Q?D-te:te-D))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:m,h:a,m:l,s:i,ms:s,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},M="en",x={};x[M]=S;var z="$isDayjsObject",U=function(H){return H instanceof V||!(!H||!H[z])},j=function H(F,P,Y){var D;if(!F)return M;if(typeof F=="string"){var Q=F.toLowerCase();x[Q]&&(D=Q),P&&(x[Q]=P,D=Q);var te=F.split("-");if(!D&&te.length>1)return H(te[0])}else{var ce=F.name;x[ce]=F,D=ce}return!Y&&D&&(M=D),D||!Y&&M},$=function(H,F){if(U(H))return H.clone();var P=typeof F=="object"?F:{};return P.date=H,P.args=arguments,new V(P)},L=b;L.l=j,L.i=U,L.w=function(H,F){return $(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var V=function(){function H(P){this.$L=j(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[z]=!0}var F=H.prototype;return F.parse=function(P){this.$d=function(Y){var D=Y.date,Q=Y.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var te=D.match(v);if(te){var ce=te[2]-1||0,pe=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)):new Date(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)}}return new Date(D)}(P),this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(P,Y){var D=$(P);return this.startOf(Y)<=D&&D<=this.endOf(Y)},F.isAfter=function(P,Y){return $(P)<this.startOf(Y)},F.isBefore=function(P,Y){return this.endOf(Y)<$(P)},F.$g=function(P,Y,D){return L.u(P)?this[Y]:this.set(D,P)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(P,Y){var D=this,Q=!!L.u(Y)||Y,te=L.p(P),ce=function(O,w){var A=L.w(D.$u?Date.UTC(D.$y,w,O):new Date(D.$y,w,O),D);return Q?A:A.endOf(c)},pe=function(O,w){return L.w(D.toDate()[O].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(w)),D)},me=this.$W,Ee=this.$M,Se=this.$D,ke="set"+(this.$u?"UTC":"");switch(te){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Ee):ce(0,Ee+1);case u:var ve=this.$locale().weekStart||0,T=(me<ve?me+7:me)-ve;return ce(Q?Se-T:Se+(6-T),Ee);case c:case m:return pe(ke+"Hours",0);case a:return pe(ke+"Minutes",1);case l:return pe(ke+"Seconds",2);case i:return pe(ke+"Milliseconds",3);default:return this.clone()}},F.endOf=function(P){return this.startOf(P,!1)},F.$set=function(P,Y){var D,Q=L.p(P),te="set"+(this.$u?"UTC":""),ce=(D={},D[c]=te+"Date",D[m]=te+"Date",D[f]=te+"Month",D[p]=te+"FullYear",D[a]=te+"Hours",D[l]=te+"Minutes",D[i]=te+"Seconds",D[s]=te+"Milliseconds",D)[Q],pe=Q===c?this.$D+(Y-this.$W):Y;if(Q===f||Q===p){var me=this.clone().set(m,1);me.$d[ce](pe),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ce&&this.$d[ce](pe);return this.init(),this},F.set=function(P,Y){return this.clone().$set(P,Y)},F.get=function(P){return this[L.p(P)]()},F.add=function(P,Y){var D,Q=this;P=Number(P);var te=L.p(Y),ce=function(Ee){var Se=$(Q);return L.w(Se.date(Se.date()+Math.round(Ee*P)),Q)};if(te===f)return this.set(f,this.$M+P);if(te===p)return this.set(p,this.$y+P);if(te===c)return ce(1);if(te===u)return ce(7);var pe=(D={},D[l]=r,D[a]=o,D[i]=t,D)[te]||1,me=this.$d.getTime()+P*pe;return L.w(me,this)},F.subtract=function(P,Y){return this.add(-1*P,Y)},F.format=function(P){var Y=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=P||"YYYY-MM-DDTHH:mm:ssZ",te=L.z(this),ce=this.$H,pe=this.$m,me=this.$M,Ee=D.weekdays,Se=D.months,ke=D.meridiem,ve=function(w,A,y,E){return w&&(w[A]||w(Y,Q))||y[A].slice(0,E)},T=function(w){return L.s(ce%12||12,w,"0")},O=ke||function(w,A,y){var E=w<12?"AM":"PM";return y?E.toLowerCase():E};return Q.replace(C,function(w,A){return A||function(y){switch(y){case"YY":return String(Y.$y).slice(-2);case"YYYY":return L.s(Y.$y,4,"0");case"M":return me+1;case"MM":return L.s(me+1,2,"0");case"MMM":return ve(D.monthsShort,me,Se,3);case"MMMM":return ve(Se,me);case"D":return Y.$D;case"DD":return L.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return ve(D.weekdaysMin,Y.$W,Ee,2);case"ddd":return ve(D.weekdaysShort,Y.$W,Ee,3);case"dddd":return Ee[Y.$W];case"H":return String(ce);case"HH":return L.s(ce,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return O(ce,pe,!0);case"A":return O(ce,pe,!1);case"m":return String(pe);case"mm":return L.s(pe,2,"0");case"s":return String(Y.$s);case"ss":return L.s(Y.$s,2,"0");case"SSS":return L.s(Y.$ms,3,"0");case"Z":return te}return null}(w)||te.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(P,Y,D){var Q,te=this,ce=L.p(Y),pe=$(P),me=(pe.utcOffset()-this.utcOffset())*r,Ee=this-pe,Se=function(){return L.m(te,pe)};switch(ce){case p:Q=Se()/12;break;case f:Q=Se();break;case h:Q=Se()/3;break;case u:Q=(Ee-me)/6048e5;break;case c:Q=(Ee-me)/864e5;break;case a:Q=Ee/o;break;case l:Q=Ee/r;break;case i:Q=Ee/t;break;default:Q=Ee}return D?Q:L.a(Q)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return x[this.$L]},F.locale=function(P,Y){if(!P)return this.$L;var D=this.clone(),Q=j(P,Y,!0);return Q&&(D.$L=Q),D},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),W=V.prototype;return $.prototype=W,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(H){W[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),$.extend=function(H,F){return H.$i||(H(F,V,$),H.$i=!0),$},$.locale=j,$.isDayjs=U,$.unix=function(H){return $(1e3*H)},$.en=x[M],$.Ls=x,$.p={},$})})(qm);var e1=qm.exports;const _i=rc(e1);var $k={exports:{}};(function(n,e){(function(t,r){n.exports=r(e1)})(nc,function(t){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(t),s={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(i){return"["+i+(i===1||i===8||i>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(s,null,!0),s})})($k);var t1={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(nc,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(C){this[v]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(v)}],h=function(v){var C=a[v];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(v,C){var S,k=a.meridiem;if(k){for(var b=1;b<=24;b+=1)if(v.indexOf(k(b,0,C))>-1){S=b>12;break}}else S=v===(C?"pm":"PM");return S},m={A:[l,function(v){this.afternoon=p(v,!1)}],a:[l,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[l,function(v){var C=a.ordinal,S=v.match(/\d+/);if(this.day=S[0],C)for(var k=1;k<=31;k+=1)C(k).replace(/\[|\]/g,"")===v&&(this.day=k)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[l,function(v){var C=h("months"),S=(h("monthsShort")||C.map(function(k){return k.slice(0,3)})).indexOf(v)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(v){var C=h("months").indexOf(v)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var C,S;C=v,S=a&&a.formats;for(var k=(v=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,L,V){var W=V&&V.toUpperCase();return L||S[V]||t[V]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,P){return F||P.slice(1)})})).match(r),b=k.length,M=0;M<b;M+=1){var x=k[M],z=m[x],U=z&&z[0],j=z&&z[1];k[M]=j?{regex:U,parser:j}:x.replace(/^\[|\]$/g,"")}return function($){for(var L={},V=0,W=0;V<b;V+=1){var H=k[V];if(typeof H=="string")W+=H.length;else{var F=H.regex,P=H.parser,Y=$.slice(W),D=F.exec(Y)[0];P.call(L,D),$=$.replace(D,"")}}return function(Q){var te=Q.afternoon;if(te!==void 0){var ce=Q.hours;te?ce<12&&(Q.hours+=12):ce===12&&(Q.hours=0),delete Q.afternoon}}(L),L}}return function(v,C,S){S.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var k=C.prototype,b=k.parse;k.parse=function(M){var x=M.date,z=M.utc,U=M.args;this.$u=z;var j=U[1];if(typeof j=="string"){var $=U[2]===!0,L=U[3]===!0,V=$||L,W=U[2];L&&(W=U[2]),a=this.$locale(),!$&&W&&(a=S.Ls[W]),this.$d=function(Y,D,Q,te){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*Y);var ce=g(D)(Y),pe=ce.year,me=ce.month,Ee=ce.day,Se=ce.hours,ke=ce.minutes,ve=ce.seconds,T=ce.milliseconds,O=ce.zone,w=ce.week,A=new Date,y=Ee||(pe||me?1:A.getDate()),E=pe||A.getFullYear(),_=0;pe&&!me||(_=me>0?me-1:A.getMonth());var I,R=Se||0,B=ke||0,K=ve||0,J=T||0;return O?new Date(Date.UTC(E,_,y,R,B,K,J+60*O.offset*1e3)):Q?new Date(Date.UTC(E,_,y,R,B,K,J)):(I=new Date(E,_,y,R,B,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(x,j,z,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&x!=this.format(j)&&(this.$d=new Date("")),a={}}else if(j instanceof Array)for(var H=j.length,F=1;F<=H;F+=1){U[1]=j[F-1];var P=S.apply(this,U);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}F===H&&(this.$d=new Date(""))}else b.call(this,M)}}})})(t1);var Fk=t1.exports;const Vk=rc(Fk);_i.extend(Vk);_i.locale("nl");function zk(n,e=_i().startOf("day")){const t="DD-MM-YYYY",r=_i(n,t);if(r.isSame(e))return"vandaag";const s=e.subtract(1,"day");if(r.isSame(s))return"gister";const l=e.subtract(2,"day");if(r.isSame(l))return"eergister";const c=e.subtract(7,"day");if(r.isAfter(c)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(t)}const Hk={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"},Ze=d.defineComponent({__name:"BDButton",props:{size:{default:ct.MD},variant:{default:Hk.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=d.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=d.computed(()=>t.to?jr:"button"),s=d.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),i=l=>{e("click",l)};return(l,a)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.value),d.mergeProps({class:["bd-btn",r.value]},s.value,{onClick:i}),{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Uk={install:n=>{n.component("BDCol",Qn),n.component("BDContainer",As),n.component("BDRow",qn),n.component("BDButton",Ze),n.component("BDLogo",ql),n.component("BDLink",jr),n.component("BDDropdownItem",Is),n.component("BDDropdown",jc),n.component("BDAlert",Ns),n.component("BDProfileImage",Wo),n.component("BDZoomslider",ec),n.component("BDCard",Bi),n.component("BDCollapsableCard",Kf),n.component("BDFormInput",bo),n.component("BDInputGroup",Yf),n.component("BDFormInvalidFeedback",Pi),n.component("BDBadge",Jf),n.component("BDForm",Zf),n.component("BDPagination",Xf),n.component("BDDropzone",nh),n.component("BDMarkdownEditor",pm),n.component("BDModal",Wc),n.component("BDFormSelect",Qf),n.component("BDUser",mm),n.component("BDArticle",eh),n.component("BDFormCheckbox",qf),n.component("BDToast",tc),n.component("BDAttachmentPreviewList",na),n.component("BDImageAttachmentPreviewList",ra),n.component("BDHeader",bm),n.component("BDMobileMenu",Uc),n.component("BDChatCloud",gm),n.component("BDTable",vm),n.component("BDChangePasswordTemplate",ym),n.component("BDPill",$i),n.component("BDImageAttachmentModal",Zm),n.component("IconAcademy",_f),n.component("IconArrowDown",If),n.component("IconArrowUp",Df),n.component("IconAttachment",hr),n.component("IconBold",zl),n.component("IconBulletList",Hl),n.component("IconCalendar",nl),n.component("IconCalendar",nl),n.component("IconCardView",Lf),n.component("IconCaretDown",Ul),n.component("IconCaretLeft",jl),n.component("IconCaretRight",Wl),n.component("IconCheck",ro),n.component("IconClose",Ii),n.component("IconComment",yg),n.component("IconDownloadImage",Os),n.component("IconDownloadImage",Os),n.component("IconEdit",Rf),n.component("IconError",Di),n.component("IconEyeShow",Bf),n.component("IconEyeSlash",Pf),n.component("IconFile",Kl),n.component("IconHyperlink",Li),n.component("IconInfo",oo),n.component("IconItalic",Gl),n.component("IconListView",$f),n.component("IconMenu",Ms),n.component("IconMenu",Ms),n.component("IconOrderedList",Yl),n.component("IconRemove",jo),n.component("IconService",Ff),n.component("IconSort",Vf),n.component("IconSortAsc",Jl),n.component("IconSortDesc",Zl),n.component("IconSortNone",Xl),n.component("IconTriangleExclamation",zf),n.component("IconUnderline",Ql),n.component("IconContactPerson",Hf),n.directive("vBDTooltip",Qm)}};exports.BDAlert=Ns;exports.BDArticle=eh;exports.BDAttachmentPreviewList=na;exports.BDBadge=Jf;exports.BDButton=Ze;exports.BDCard=Bi;exports.BDChangePasswordTemplate=ym;exports.BDChatCloud=gm;exports.BDCol=Qn;exports.BDCollapsableCard=Kf;exports.BDContainer=As;exports.BDDropdown=jc;exports.BDDropdownItem=Is;exports.BDDropzone=nh;exports.BDForm=Zf;exports.BDFormCheckbox=qf;exports.BDFormInput=bo;exports.BDFormInvalidFeedback=Pi;exports.BDFormSelect=Qf;exports.BDHeader=bm;exports.BDImageAttachmentModal=Zm;exports.BDImageAttachmentPreviewList=ra;exports.BDInputGroup=Yf;exports.BDLink=jr;exports.BDLogo=ql;exports.BDMarkdownEditor=pm;exports.BDMobileMenu=Uc;exports.BDModal=Wc;exports.BDPagination=Xf;exports.BDPill=$i;exports.BDProfileImage=Wo;exports.BDRow=qn;exports.BDTable=vm;exports.BDToast=tc;exports.BDUser=mm;exports.BDZoomslider=ec;exports.IconAcademy=_f;exports.IconArrowDown=If;exports.IconArrowUp=Df;exports.IconAttachment=hr;exports.IconBold=zl;exports.IconBulletList=Hl;exports.IconCalendar=nl;exports.IconCardView=Lf;exports.IconCaretDown=Ul;exports.IconCaretLeft=jl;exports.IconCaretRight=Wl;exports.IconCheck=ro;exports.IconClose=Ii;exports.IconContactPerson=Hf;exports.IconDownloadImage=Os;exports.IconEdit=Rf;exports.IconError=Di;exports.IconEyeShow=Bf;exports.IconEyeSlash=Pf;exports.IconFile=Kl;exports.IconHyperlink=Li;exports.IconInfo=oo;exports.IconItalic=Gl;exports.IconListView=$f;exports.IconMenu=Ms;exports.IconOrderedList=Yl;exports.IconRemove=jo;exports.IconService=Ff;exports.IconSort=Vf;exports.IconSortAsc=Jl;exports.IconSortDesc=Zl;exports.IconSortNone=Xl;exports.IconTriangleExclamation=zf;exports.IconUnderline=Ql;exports.default=Uk;exports.getDisplayDate=zk;exports.useModal=Ym;exports.useServerErrors=Bk;exports.useToaster=Xm;exports.useValidation=Pk;exports.useZoom=Jm;exports.vBdTooltip=Qm;
131
+ */const Tn=new Map,Ha={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)}},h6=1e6,p6=1e3,Pl="transitionend",Em=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),m6=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),g6=n=>{do n+=Math.floor(Math.random()*h6);while(document.getElementById(n));return n},v6=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))*p6)},Cm=n=>{n.dispatchEvent(new Event(Pl))},yn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Fn=n=>yn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Em(n)):null,co=n=>{if(!yn(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},Vn=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",Sm=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?Sm(n.parentNode):null},Oi=()=>{},Zo=n=>{n.offsetHeight},wm=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ua=[],y6=n=>{document.readyState==="loading"?(Ua.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Ua)e()}),Ua.push(n)):n()},Ft=()=>document.documentElement.dir==="rtl",zt=n=>{y6(()=>{const e=wm();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)}})},bt=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,km=(n,e,t=!0)=>{if(!t){bt(n);return}const r=5,o=v6(e)+r;let s=!1;const i=({target:l})=>{l===e&&(s=!0,e.removeEventListener(Pl,i),bt(n))};e.addEventListener(Pl,i),setTimeout(()=>{s||Cm(e)},o)},Kc=(n,e,t,r)=>{const o=n.length;let s=n.indexOf(e);return s===-1?!t&&r?n[o-1]:n[0]:(s+=t?1:-1,r&&(s=(s+o)%o),n[Math.max(0,Math.min(s,o-1))])},b6=/[^.]*(?=\..*)\.|.*/,E6=/\..*/,C6=/::\d+$/,ja={};let rf=1;const xm={mouseenter:"mouseover",mouseleave:"mouseout"},S6=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 Tm(n,e){return e&&`${e}::${rf++}`||n.uidEvent||rf++}function Am(n){const e=Tm(n);return n.uidEvent=e,ja[e]=ja[e]||{},ja[e]}function w6(n,e){return function t(r){return Gc(r,{delegateTarget:n}),t.oneOff&&se.off(n,r.type,e),e.apply(n,[r])}}function k6(n,e,t){return function r(o){const s=n.querySelectorAll(e);for(let{target:i}=o;i&&i!==this;i=i.parentNode)for(const l of s)if(l===i)return Gc(o,{delegateTarget:i}),r.oneOff&&se.off(n,o.type,e,t),t.apply(i,[o])}}function Om(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 s=Nm(n);return S6.has(s)||(s=n),[r,o,s]}function of(n,e,t,r,o){if(typeof e!="string"||!n)return;let[s,i,l]=Mm(e,t,r);e in xm&&(i=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(i));const a=Am(n),c=a[l]||(a[l]={}),u=Om(c,i,s?t:null);if(u){u.oneOff=u.oneOff&&o;return}const f=Tm(i,e.replace(b6,"")),h=s?k6(n,t,i):w6(n,i);h.delegationSelector=s?t:null,h.callable=i,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,s)}function $l(n,e,t,r,o){const s=Om(e[t],r,o);s&&(n.removeEventListener(t,s,!!o),delete e[t][s.uidEvent])}function x6(n,e,t,r){const o=e[t]||{};for(const[s,i]of Object.entries(o))s.includes(r)&&$l(n,e,t,i.callable,i.delegationSelector)}function Nm(n){return n=n.replace(E6,""),xm[n]||n}const se={on(n,e,t,r){of(n,e,t,r,!1)},one(n,e,t,r){of(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,s,i]=Mm(e,t,r),l=i!==e,a=Am(n),c=a[i]||{},u=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;$l(n,a,i,s,o?t:null);return}if(u)for(const f of Object.keys(a))x6(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(C6,"");(!l||e.includes(p))&&$l(n,a,i,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=wm(),o=Nm(e),s=e!==o;let i=null,l=!0,a=!0,c=!1;s&&r&&(i=r.Event(e,t),r(n).trigger(i),l=!i.isPropagationStopped(),a=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented());const u=Gc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&i&&i.preventDefault(),u}};function Gc(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 sf(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 Wa(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Wa(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Wa(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]=sf(n.dataset[r])}return e},getDataAttribute(n,e){return sf(n.getAttribute(`data-bs-${Wa(e)}`))}};class Xo{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=yn(t)?bn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...yn(t)?bn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const s=e[r],i=yn(s)?"element":m6(s);if(!new RegExp(o).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${o}".`)}}}const T6="5.3.0";class Yt extends Xo{constructor(e,t){super(),e=Fn(e),e&&(this._element=e,this._config=this._getConfig(t),Ha.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ha.remove(this._element,this.constructor.DATA_KEY),se.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){km(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ha.get(Fn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return T6}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 Ka=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 Em(e)},we={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=>!Vn(t)&&co(t))},getSelectorFromElement(n){const e=Ka(n);return e&&we.findOne(e)?e:null},getElementFromSelector(n){const e=Ka(n);return e?we.findOne(e):null},getMultipleElementsFromSelector(n){const e=Ka(n);return e?we.find(e):[]}},oa=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;se.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Vn(this))return;const s=we.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(s)[e]()})},A6="alert",O6="bs.alert",_m=`.${O6}`,M6=`close${_m}`,N6=`closed${_m}`,_6="fade",I6="show";class sa extends Yt{static get NAME(){return A6}close(){if(se.trigger(this._element,M6).defaultPrevented)return;this._element.classList.remove(I6);const t=this._element.classList.contains(_6);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),se.trigger(this._element,N6),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=sa.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)}})}}oa(sa,"close");zt(sa);const D6="button",L6="bs.button",R6=`.${L6}`,B6=".data-api",P6="active",af='[data-bs-toggle="button"]',$6=`click${R6}${B6}`;class ia extends Yt{static get NAME(){return D6}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(P6))}static jQueryInterface(e){return this.each(function(){const t=ia.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}se.on(document,$6,af,n=>{n.preventDefault();const e=n.target.closest(af);ia.getOrCreateInstance(e).toggle()});zt(ia);const F6="swipe",uo=".bs.swipe",V6=`touchstart${uo}`,z6=`touchmove${uo}`,H6=`touchend${uo}`,U6=`pointerdown${uo}`,j6=`pointerup${uo}`,W6="touch",K6="pen",G6="pointer-event",Y6=40,J6={endCallback:null,leftCallback:null,rightCallback:null},Z6={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Mi extends Xo{constructor(e,t){super(),this._element=e,!(!e||!Mi.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return J6}static get DefaultType(){return Z6}static get NAME(){return F6}dispose(){se.off(this._element,uo)}_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(),bt(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<=Y6)return;const t=e/this._deltaX;this._deltaX=0,t&&bt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(se.on(this._element,U6,e=>this._start(e)),se.on(this._element,j6,e=>this._end(e)),this._element.classList.add(G6)):(se.on(this._element,V6,e=>this._start(e)),se.on(this._element,z6,e=>this._move(e)),se.on(this._element,H6,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===K6||e.pointerType===W6)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const X6="carousel",Q6="bs.carousel",Gn=`.${Q6}`,Im=".data-api",q6="ArrowLeft",eC="ArrowRight",tC=500,ho="next",Or="prev",Rr="left",xs="right",nC=`slide${Gn}`,Ga=`slid${Gn}`,rC=`keydown${Gn}`,oC=`mouseenter${Gn}`,sC=`mouseleave${Gn}`,iC=`dragstart${Gn}`,aC=`load${Gn}${Im}`,lC=`click${Gn}${Im}`,Dm="carousel",ps="active",cC="slide",uC="carousel-item-end",dC="carousel-item-start",fC="carousel-item-next",hC="carousel-item-prev",Lm=".active",Rm=".carousel-item",pC=Lm+Rm,mC=".carousel-item img",gC=".carousel-indicators",vC="[data-bs-slide], [data-bs-slide-to]",yC='[data-bs-ride="carousel"]',bC={[q6]:xs,[eC]:Rr},EC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},CC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qo extends Yt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=we.findOne(gC,this._element),this._addEventListeners(),this._config.ride===Dm&&this.cycle()}static get Default(){return EC}static get DefaultType(){return CC}static get NAME(){return X6}next(){this._slide(ho)}nextWhenVisible(){!document.hidden&&co(this._element)&&this.next()}prev(){this._slide(Or)}pause(){this._isSliding&&Cm(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){se.one(this._element,Ga,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){se.one(this._element,Ga,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?ho:Or;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&&se.on(this._element,rC,e=>this._keydown(e)),this._config.pause==="hover"&&(se.on(this._element,oC,()=>this.pause()),se.on(this._element,sC,()=>this._maybeEnableCycle())),this._config.touch&&Mi.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of we.find(mC,this._element))se.on(r,iC,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Rr)),rightCallback:()=>this._slide(this._directionToOrder(xs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),tC+this._config.interval))}};this._swipeHelper=new Mi(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=bC[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=we.findOne(Lm,this._indicatorsElement);t.classList.remove(ps),t.removeAttribute("aria-current");const r=we.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ps),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===ho,s=t||Kc(this._getItems(),r,o,this._config.wrap);if(s===r)return;const i=this._getItemIndex(s),l=p=>se.trigger(this._element,p,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(l(nC).defaultPrevented||!r||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=s;const u=o?dC:uC,f=o?fC:hC;s.classList.add(f),Zo(s),r.classList.add(u),s.classList.add(u);const h=()=>{s.classList.remove(u,f),s.classList.add(ps),r.classList.remove(ps,f,u),this._isSliding=!1,l(Ga)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(cC)}_getActive(){return we.findOne(pC,this._element)}_getItems(){return we.find(Rm,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ft()?e===Rr?Or:ho:e===Rr?ho:Or}_orderToDirection(e){return Ft()?e===Or?Rr:xs:e===Or?xs:Rr}static jQueryInterface(e){return this.each(function(){const t=Qo.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]()}})}}se.on(document,lC,vC,function(n){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(Dm))return;n.preventDefault();const t=Qo.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(bn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});se.on(window,aC,()=>{const n=we.find(yC);for(const e of n)Qo.getOrCreateInstance(e)});zt(Qo);const SC="collapse",wC="bs.collapse",qo=`.${wC}`,kC=".data-api",xC=`show${qo}`,TC=`shown${qo}`,AC=`hide${qo}`,OC=`hidden${qo}`,MC=`click${qo}${kC}`,Ya="show",Vr="collapse",ms="collapsing",NC="collapsed",_C=`:scope .${Vr} .${Vr}`,IC="collapse-horizontal",DC="width",LC="height",RC=".collapse.show, .collapse.collapsing",Fl='[data-bs-toggle="collapse"]',BC={parent:null,toggle:!0},PC={parent:"(null|element)",toggle:"boolean"};class Uo extends Yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=we.find(Fl);for(const o of r){const s=we.getSelectorFromElement(o),i=we.find(s).filter(l=>l===this._element);s!==null&&i.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 BC}static get DefaultType(){return PC}static get NAME(){return SC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(RC).filter(l=>l!==this._element).map(l=>Uo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||se.trigger(this._element,xC).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(Vr),this._element.classList.add(ms),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(ms),this._element.classList.add(Vr,Ya),this._element.style[r]="",se.trigger(this._element,TC)},i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||se.trigger(this._element,AC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Zo(this._element),this._element.classList.add(ms),this._element.classList.remove(Vr,Ya);for(const o of this._triggerArray){const s=we.getElementFromSelector(o);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(ms),this._element.classList.add(Vr),se.trigger(this._element,OC)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ya)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Fn(e.parent),e}_getDimension(){return this._element.classList.contains(IC)?DC:LC}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Fl);for(const t of e){const r=we.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=we.find(_C,this._config.parent);return we.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(NC,!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=Uo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}se.on(document,MC,Fl,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of we.getMultipleElementsFromSelector(this))Uo.getOrCreateInstance(e,{toggle:!1}).toggle()});zt(Uo);const lf="dropdown",$C="bs.dropdown",Er=`.${$C}`,Yc=".data-api",FC="Escape",cf="Tab",VC="ArrowUp",uf="ArrowDown",zC=2,HC=`hide${Er}`,UC=`hidden${Er}`,jC=`show${Er}`,WC=`shown${Er}`,Bm=`click${Er}${Yc}`,Pm=`keydown${Er}${Yc}`,KC=`keyup${Er}${Yc}`,Br="show",GC="dropup",YC="dropend",JC="dropstart",ZC="dropup-center",XC="dropdown-center",sr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',QC=`${sr}.${Br}`,Ts=".dropdown-menu",qC=".navbar",eS=".navbar-nav",tS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",nS=Ft()?"top-end":"top-start",rS=Ft()?"top-start":"top-end",oS=Ft()?"bottom-end":"bottom-start",sS=Ft()?"bottom-start":"bottom-end",iS=Ft()?"left-start":"right-start",aS=Ft()?"right-start":"left-start",lS="top",cS="bottom",uS={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},dS={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class on extends Yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Ts)[0]||we.prev(this._element,Ts)[0]||we.findOne(Ts,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return uS}static get DefaultType(){return dS}static get NAME(){return lf}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Vn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!se.trigger(this._element,jC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(eS))for(const r of[].concat(...document.body.children))se.on(r,"mouseover",Oi);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Br),this._element.classList.add(Br),se.trigger(this._element,WC,e)}}hide(){if(Vn(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(!se.trigger(this._element,HC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))se.off(r,"mouseover",Oi);this._popper&&this._popper.destroy(),this._menu.classList.remove(Br),this._element.classList.remove(Br),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),se.trigger(this._element,UC,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!yn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${lf.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Jp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:yn(this._config.reference)?e=Fn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=ea(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Br)}_getPlacement(){const e=this._parent;if(e.classList.contains(YC))return iS;if(e.classList.contains(JC))return aS;if(e.classList.contains(ZC))return lS;if(e.classList.contains(XC))return cS;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(GC)?t?rS:nS:t?sS:oS}_detectNavbar(){return this._element.closest(qC)!==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")&&(bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...bt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=we.find(tS,this._menu).filter(o=>co(o));r.length&&Kc(r,t,e===uf,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=on.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===zC||e.type==="keyup"&&e.key!==cf)return;const t=we.find(QC);for(const r of t){const o=on.getInstance(r);if(!o||o._config.autoClose===!1)continue;const s=e.composedPath(),i=s.includes(o._menu);if(s.includes(o._element)||o._config.autoClose==="inside"&&!i||o._config.autoClose==="outside"&&i||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===cf||/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===FC,o=[VC,uf].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const s=this.matches(sr)?this:we.prev(this,sr)[0]||we.next(this,sr)[0]||we.findOne(sr,e.delegateTarget.parentNode),i=on.getOrCreateInstance(s);if(o){e.stopPropagation(),i.show(),i._selectMenuItem(e);return}i._isShown()&&(e.stopPropagation(),i.hide(),s.focus())}}se.on(document,Pm,sr,on.dataApiKeydownHandler);se.on(document,Pm,Ts,on.dataApiKeydownHandler);se.on(document,Bm,on.clearMenus);se.on(document,KC,on.clearMenus);se.on(document,Bm,sr,function(n){n.preventDefault(),on.getOrCreateInstance(this).toggle()});zt(on);const $m="backdrop",fS="fade",df="show",ff=`mousedown.bs.${$m}`,hS={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},pS={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Fm extends Xo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return hS}static get DefaultType(){return pS}static get NAME(){return $m}show(e){if(!this._config.isVisible){bt(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Zo(t),t.classList.add(df),this._emulateAnimation(()=>{bt(e)})}hide(e){if(!this._config.isVisible){bt(e);return}this._getElement().classList.remove(df),this._emulateAnimation(()=>{this.dispose(),bt(e)})}dispose(){this._isAppended&&(se.off(this._element,ff),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(fS),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Fn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),se.on(e,ff,()=>{bt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){km(e,this._getElement(),this._config.isAnimated)}}const mS="focustrap",gS="bs.focustrap",Ni=`.${gS}`,vS=`focusin${Ni}`,yS=`keydown.tab${Ni}`,bS="Tab",ES="forward",hf="backward",CS={autofocus:!0,trapElement:null},SS={autofocus:"boolean",trapElement:"element"};class Vm extends Xo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return CS}static get DefaultType(){return SS}static get NAME(){return mS}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),se.off(document,Ni),se.on(document,vS,e=>this._handleFocusin(e)),se.on(document,yS,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,se.off(document,Ni))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=we.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===hf?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===bS&&(this._lastTabNavDirection=e.shiftKey?hf:ES)}}const pf=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",mf=".sticky-top",gs="padding-right",gf="margin-right";class Vl{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,gs,t=>t+e),this._setElementAttributes(pf,gs,t=>t+e),this._setElementAttributes(mf,gf,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,gs),this._resetElementAttributes(pf,gs),this._resetElementAttributes(mf,gf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),s=i=>{if(i!==this._element&&window.innerWidth>i.clientWidth+o)return;this._saveInitialAttribute(i,t);const l=window.getComputedStyle(i).getPropertyValue(t);i.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const s=bn.getDataAttribute(o,t);if(s===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(yn(e)){t(e);return}for(const r of we.find(e,this._element))t(r)}}const wS="modal",kS="bs.modal",Vt=`.${kS}`,xS=".data-api",TS="Escape",AS=`hide${Vt}`,OS=`hidePrevented${Vt}`,zm=`hidden${Vt}`,Hm=`show${Vt}`,MS=`shown${Vt}`,NS=`resize${Vt}`,_S=`click.dismiss${Vt}`,IS=`mousedown.dismiss${Vt}`,DS=`keydown.dismiss${Vt}`,LS=`click${Vt}${xS}`,vf="modal-open",RS="fade",yf="show",Ja="modal-static",BS=".modal.show",PS=".modal-dialog",$S=".modal-body",FS='[data-bs-toggle="modal"]',VS={backdrop:!0,focus:!0,keyboard:!0},zS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class zn extends Yt{constructor(e,t){super(e,t),this._dialog=we.findOne(PS,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Vl,this._addEventListeners()}static get Default(){return VS}static get DefaultType(){return zS}static get NAME(){return wS}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||se.trigger(this._element,Hm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(vf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||se.trigger(this._element,AS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(yf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){se.off(window,Vt),se.off(this._dialog,Vt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Fm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Vm({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=we.findOne($S,this._dialog);t&&(t.scrollTop=0),Zo(this._element),this._element.classList.add(yf);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,se.trigger(this._element,MS,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){se.on(this._element,DS,e=>{if(e.key===TS){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),se.on(window,NS,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),se.on(this._element,IS,e=>{se.one(this._element,_S,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(vf),this._resetAdjustments(),this._scrollBar.reset(),se.trigger(this._element,zm)})}_isAnimated(){return this._element.classList.contains(RS)}_triggerBackdropTransition(){if(se.trigger(this._element,OS).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Ja)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ja),this._queueCallback(()=>{this._element.classList.remove(Ja),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=Ft()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Ft()?"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=zn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}se.on(document,LS,FS,function(n){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),se.one(e,Hm,o=>{o.defaultPrevented||se.one(e,zm,()=>{co(this)&&this.focus()})});const t=we.findOne(BS);t&&zn.getInstance(t).hide(),zn.getOrCreateInstance(e).toggle(this)});oa(zn);zt(zn);const HS="offcanvas",US="bs.offcanvas",Cn=`.${US}`,Um=".data-api",jS=`load${Cn}${Um}`,WS="Escape",bf="show",Ef="showing",Cf="hiding",KS="offcanvas-backdrop",jm=".offcanvas.show",GS=`show${Cn}`,YS=`shown${Cn}`,JS=`hide${Cn}`,Sf=`hidePrevented${Cn}`,Wm=`hidden${Cn}`,ZS=`resize${Cn}`,XS=`click${Cn}${Um}`,QS=`keydown.dismiss${Cn}`,qS='[data-bs-toggle="offcanvas"]',ew={backdrop:!0,keyboard:!0,scroll:!1},tw={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Hn extends Yt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ew}static get DefaultType(){return tw}static get NAME(){return HS}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||se.trigger(this._element,GS,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Vl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ef);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(bf),this._element.classList.remove(Ef),se.trigger(this._element,YS,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||se.trigger(this._element,JS).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Cf),this._backdrop.hide();const t=()=>{this._element.classList.remove(bf,Cf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Vl().reset(),se.trigger(this._element,Wm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){se.trigger(this._element,Sf);return}this.hide()},t=!!this._config.backdrop;return new Fm({className:KS,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Vm({trapElement:this._element})}_addEventListeners(){se.on(this._element,QS,e=>{if(e.key===WS){if(this._config.keyboard){this.hide();return}se.trigger(this._element,Sf)}})}static jQueryInterface(e){return this.each(function(){const t=Hn.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)}})}}se.on(document,XS,qS,function(n){const e=we.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Vn(this))return;se.one(e,Wm,()=>{co(this)&&this.focus()});const t=we.findOne(jm);t&&t!==e&&Hn.getInstance(t).hide(),Hn.getOrCreateInstance(e).toggle(this)});se.on(window,jS,()=>{for(const n of we.find(jm))Hn.getOrCreateInstance(n).show()});se.on(window,ZS,()=>{for(const n of we.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Hn.getOrCreateInstance(n).hide()});oa(Hn);zt(Hn);const nw=/^aria-[\w-]*$/i,Km={"*":["class","dir","id","lang","role",nw],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:[]},rw=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ow=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,sw=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?rw.has(t)?!!ow.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function iw(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"),s=[].concat(...o.body.querySelectorAll("*"));for(const i of s){const l=i.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){i.remove();continue}const a=[].concat(...i.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)sw(u,c)||i.removeAttribute(u.nodeName)}return o.body.innerHTML}const aw="TemplateFactory",lw={allowList:Km,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},cw={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},uw={entry:"(string|element|function|null)",selector:"(string|element)"};class dw extends Xo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return lw}static get DefaultType(){return cw}static get NAME(){return aw}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,s]of Object.entries(this._config.content))this._setContent(e,s,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},uw)}_setContent(e,t,r){const o=we.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(yn(t)){this._putElementInTemplate(Fn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?iw(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return bt(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const fw="tooltip",hw=new Set(["sanitize","allowList","sanitizeFn"]),Za="fade",pw="modal",vs="show",mw=".tooltip-inner",wf=`.${pw}`,kf="hide.bs.modal",po="hover",Xa="focus",gw="click",vw="manual",yw="hide",bw="hidden",Ew="show",Cw="shown",Sw="inserted",ww="click",kw="focusin",xw="focusout",Tw="mouseenter",Aw="mouseleave",Ow={AUTO:"auto",TOP:"top",RIGHT:Ft()?"left":"right",BOTTOM:"bottom",LEFT:Ft()?"right":"left"},Mw={allowList:Km,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"},Nw={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 Cr extends Yt{constructor(e,t){if(typeof Jp>"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 Mw}static get DefaultType(){return Nw}static get NAME(){return fw}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),se.off(this._element.closest(wf),kf,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=se.trigger(this._element,this.constructor.eventName(Ew)),r=(Sm(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:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(o),se.trigger(this._element,this.constructor.eventName(Sw))),this._popper=this._createPopper(o),o.classList.add(vs),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))se.on(l,"mouseover",Oi);const i=()=>{se.trigger(this._element,this.constructor.eventName(Cw)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||se.trigger(this._element,this.constructor.eventName(yw)).defaultPrevented)return;if(this._getTipElement().classList.remove(vs),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))se.off(o,"mouseover",Oi);this._activeTrigger[gw]=!1,this._activeTrigger[Xa]=!1,this._activeTrigger[po]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),se.trigger(this._element,this.constructor.eventName(bw)))};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(Za,vs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=g6(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Za),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{[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(Za)}_isShown(){return this.tip&&this.tip.classList.contains(vs)}_createPopper(e){const t=bt(this._config.placement,[this,e,this._element]),r=Ow[t.toUpperCase()];return ea(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 bt(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,...bt(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")se.on(this._element,this.constructor.eventName(ww),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==vw){const r=t===po?this.constructor.eventName(Tw):this.constructor.eventName(kw),o=t===po?this.constructor.eventName(Aw):this.constructor.eventName(xw);se.on(this._element,r,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusin"?Xa:po]=!0,i._enter()}),se.on(this._element,o,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusout"?Xa:po]=i._element.contains(s.relatedTarget),i._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},se.on(this._element.closest(wf),kf,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=bn.getDataAttributes(this._element);for(const r of Object.keys(t))hw.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:Fn(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=Cr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}zt(Cr);const _w="popover",Iw=".popover-header",Dw=".popover-body",Lw={...Cr.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"},Rw={...Cr.DefaultType,content:"(null|string|element|function)"};class Jc extends Cr{static get Default(){return Lw}static get DefaultType(){return Rw}static get NAME(){return _w}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Iw]:this._getTitle(),[Dw]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Jc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}zt(Jc);const Bw="scrollspy",Pw="bs.scrollspy",Zc=`.${Pw}`,$w=".data-api",Fw=`activate${Zc}`,xf=`click${Zc}`,Vw=`load${Zc}${$w}`,zw="dropdown-item",Mr="active",Hw='[data-bs-spy="scroll"]',Qa="[href]",Uw=".nav, .list-group",Tf=".nav-link",jw=".nav-item",Ww=".list-group-item",Kw=`${Tf}, ${jw} > ${Tf}, ${Ww}`,Gw=".dropdown",Yw=".dropdown-toggle",Jw={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Zw={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class aa extends Yt{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 Jw}static get DefaultType(){return Zw}static get NAME(){return Bw}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=Fn(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&&(se.off(this._config.target,xf),se.on(this._config.target,xf,Qa,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=i=>this._targetLinks.get(`#${i.target.id}`),r=i=>{this._previousScrollData.visibleEntryTop=i.target.offsetTop,this._process(t(i))},o=(this._rootElement||document.documentElement).scrollTop,s=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const l=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(r(i),!o)return;continue}!s&&!l&&r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=we.find(Qa,this._config.target);for(const t of e){if(!t.hash||Vn(t))continue;const r=we.findOne(decodeURI(t.hash),this._element);co(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(Mr),this._activateParents(e),se.trigger(this._element,Fw,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(zw)){we.findOne(Yw,e.closest(Gw)).classList.add(Mr);return}for(const t of we.parents(e,Uw))for(const r of we.prev(t,Kw))r.classList.add(Mr)}_clearActiveClass(e){e.classList.remove(Mr);const t=we.find(`${Qa}.${Mr}`,e);for(const r of t)r.classList.remove(Mr)}static jQueryInterface(e){return this.each(function(){const t=aa.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]()}})}}se.on(window,Vw,()=>{for(const n of we.find(Hw))aa.getOrCreateInstance(n)});zt(aa);const Xw="tab",Qw="bs.tab",Sr=`.${Qw}`,qw=`hide${Sr}`,ek=`hidden${Sr}`,tk=`show${Sr}`,nk=`shown${Sr}`,rk=`click${Sr}`,ok=`keydown${Sr}`,sk=`load${Sr}`,ik="ArrowLeft",Af="ArrowRight",ak="ArrowUp",Of="ArrowDown",ir="active",Mf="fade",qa="show",lk="dropdown",ck=".dropdown-toggle",uk=".dropdown-menu",el=":not(.dropdown-toggle)",dk='.list-group, .nav, [role="tablist"]',fk=".nav-item, .list-group-item",hk=`.nav-link${el}, .list-group-item${el}, [role="tab"]${el}`,Gm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',tl=`${hk}, ${Gm}`,pk=`.${ir}[data-bs-toggle="tab"], .${ir}[data-bs-toggle="pill"], .${ir}[data-bs-toggle="list"]`;class no extends Yt{constructor(e){super(e),this._parent=this._element.closest(dk),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),se.on(this._element,ok,t=>this._keydown(t)))}static get NAME(){return Xw}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?se.trigger(t,qw,{relatedTarget:e}):null;se.trigger(e,tk,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(ir),this._activate(we.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(qa);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),se.trigger(e,nk,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Mf))}_deactivate(e,t){if(!e)return;e.classList.remove(ir),e.blur(),this._deactivate(we.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(qa);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),se.trigger(e,ek,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Mf))}_keydown(e){if(![ik,Af,ak,Of].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Af,Of].includes(e.key),r=Kc(this._getChildren().filter(o=>!Vn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),no.getOrCreateInstance(r).show())}_getChildren(){return we.find(tl,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=we.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(lk))return;const o=(s,i)=>{const l=we.findOne(s,r);l&&l.classList.toggle(i,t)};o(ck,ir),o(uk,qa),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(ir)}_getInnerElement(e){return e.matches(tl)?e:we.findOne(tl,e)}_getOuterElement(e){return e.closest(fk)||e}static jQueryInterface(e){return this.each(function(){const t=no.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(document,rk,Gm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Vn(this)&&no.getOrCreateInstance(this).show()});se.on(window,sk,()=>{for(const n of we.find(pk))no.getOrCreateInstance(n)});zt(no);const mk="toast",gk="bs.toast",Yn=`.${gk}`,vk=`mouseover${Yn}`,yk=`mouseout${Yn}`,bk=`focusin${Yn}`,Ek=`focusout${Yn}`,Ck=`hide${Yn}`,Sk=`hidden${Yn}`,wk=`show${Yn}`,kk=`shown${Yn}`,xk="fade",Nf="hide",ys="show",bs="showing",Tk={animation:"boolean",autohide:"boolean",delay:"number"},Ak={animation:!0,autohide:!0,delay:5e3};class es extends Yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ak}static get DefaultType(){return Tk}static get NAME(){return mk}show(){if(se.trigger(this._element,wk).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(xk);const t=()=>{this._element.classList.remove(bs),se.trigger(this._element,kk),this._maybeScheduleHide()};this._element.classList.remove(Nf),Zo(this._element),this._element.classList.add(ys,bs),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||se.trigger(this._element,Ck).defaultPrevented)return;const t=()=>{this._element.classList.add(Nf),this._element.classList.remove(bs,ys),se.trigger(this._element,Sk)};this._element.classList.add(bs),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ys),super.dispose()}isShown(){return this._element.classList.contains(ys)}_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(){se.on(this._element,vk,e=>this._onInteraction(e,!0)),se.on(this._element,yk,e=>this._onInteraction(e,!1)),se.on(this._element,bk,e=>this._onInteraction(e,!0)),se.on(this._element,Ek,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=es.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}oa(es);zt(es);const Ym=n=>{const e=d.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value=zn.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(n);if(o instanceof HTMLElement){const s=zn.getInstance(o);s&&s.hide()}}}};function Jm(){const n=d.ref(0),e=d.ref(!0),t=d.ref(null),r=d.ref({top:0,left:0,x:0,y:0}),o=d.computed(()=>n.value>0?`zoom-${n.value}`:"");return{zoom:n,mouseDown:e,imageHolderRef:t,pos:r,SetZoom:o,OnMouseDown:a=>{if(!t.value)return;r.value.left=t.value.scrollLeft,r.value.top=t.value.scrollTop;const c=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const c=a.clientX-r.value.x,u=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-u,t.value.scrollLeft=r.value.left-c)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),c=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),c&&c.style&&(c.style.cursor="grab"),e.value=!1}}}const Ok=["src","alt"],Mk={key:0,class:"show-spinner"},Nk={class:"spinner-border text-primary",role:"status"},_k={class:"visually-hidden"},Ik=["href"],Zm=d.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=Ym("image-attachment-modal"),{zoom:o,imageHolderRef:s,SetZoom:i,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=Jm(),u=d.ref(!0),f=d.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{u.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We}};return(g,v)=>(d.openBlock(),d.createBlock(Wc,{id:"image-attachment-modal",class:d.normalizeClass(d.unref(We)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:d.withCtx(()=>[d.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:s,onMousedown:v[0]||(v[0]=(...C)=>d.unref(l)&&d.unref(l)(...C)),onMousemove:v[1]||(v[1]=(...C)=>d.unref(a)&&d.unref(a)(...C)),onMouseup:v[2]||(v[2]=(...C)=>d.unref(c)&&d.unref(c)(...C))},[f.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:d.normalizeClass(["image-preview-modal",d.unref(i)]),onLoad:p,draggable:!1},null,42,Ok)):d.createCommentVNode("",!0)],544),u.value?(d.openBlock(),d.createElementBlock("div",Mk,[d.createElementVNode("div",Nk,[d.createElementVNode("span",_k,d.toDisplayString(t.loadingText),1)])])):d.createCommentVNode("",!0),d.createVNode(ec,{modelValue:d.unref(o),"onUpdate:modelValue":v[3]||(v[3]=C=>d.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),d.createElementVNode("a",{href:f.value.downloadUrl},[d.createVNode(Ze,{variant:"primary",class:"download-image"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.downloadText),1)]),_:1})],8,Ik)]),_:1},8,["class","title"]))}});function Xm(n=void 0){const e=l=>s("Succesvol",l,Pr.SUCCESS),t=l=>s("Waarschuwing",l,Pr.WARNING),r=l=>s("Informatie",l,Pr.INFO),o=l=>s("Mislukt",l,Pr.DANGER);function s(l,a,c){const u=`toast-${Wf()}`,f={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 p=d.h(tc,f),g=d.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(es.getOrCreateInstance(v,n).show(),i(v))}function i(l){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.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 Dk=n=>Array.isArray(n)&&n.length>0,{showDangerToast:Lk}=Xm();function Rk(n){const e=d.ref(null),t=(a,c="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>rs(h.ErrorMessage)&&h.ErrorMessage!==We):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,rs(c))e.value=u;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=u:h=h[c[p]]}r(a),i(e)},r=a=>{const u=new URL(a.request.responseURL).pathname;if(u in n.error){const f=n.error[u];f&&Lk(f)}},o=d.ref(null),s=d.ref(""),i=a=>{Dk(a.value)?o.value=a.value.map(c=>rs(c)?c:c.ErrorMessage):rs(a.value)&&(s.value=a.value)};function l(){e.value=null,o.value=null,s.value=We}return{serverErrors:e,errorMessages:o,errorMessageText:s,MapErrors:i,MapServerErrors:t,ResetServerErrors:l}}const Bk=()=>({ResetValidation:t=>{for(const r in t.value)t.value[r].state=null},ValidationObjectIsValid:t=>{for(let r in t)if(t[r].state===!1)return!1;return!0}}),Qm={mounted:n=>{new Cr(n)}};var qm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(nc,function(){var t=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],P=H%100;return"["+H+(F[(P-20)%10]||F[P]||F[0])+"]"}},k=function(H,F,P){var Y=String(H);return!Y||Y.length>=F?H:""+Array(F+1-Y.length).join(P)+H},b={s:k,z:function(H){var F=-H.utcOffset(),P=Math.abs(F),Y=Math.floor(P/60),D=P%60;return(F<=0?"+":"-")+k(Y,2,"0")+":"+k(D,2,"0")},m:function H(F,P){if(F.date()<P.date())return-H(P,F);var Y=12*(P.year()-F.year())+(P.month()-F.month()),D=F.clone().add(Y,f),Q=P-D<0,te=F.clone().add(Y+(Q?-1:1),f);return+(-(Y+(P-D)/(Q?D-te:te-D))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:m,h:a,m:l,s:i,ms:s,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},M="en",x={};x[M]=S;var z="$isDayjsObject",U=function(H){return H instanceof V||!(!H||!H[z])},j=function H(F,P,Y){var D;if(!F)return M;if(typeof F=="string"){var Q=F.toLowerCase();x[Q]&&(D=Q),P&&(x[Q]=P,D=Q);var te=F.split("-");if(!D&&te.length>1)return H(te[0])}else{var ce=F.name;x[ce]=F,D=ce}return!Y&&D&&(M=D),D||!Y&&M},$=function(H,F){if(U(H))return H.clone();var P=typeof F=="object"?F:{};return P.date=H,P.args=arguments,new V(P)},L=b;L.l=j,L.i=U,L.w=function(H,F){return $(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var V=function(){function H(P){this.$L=j(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[z]=!0}var F=H.prototype;return F.parse=function(P){this.$d=function(Y){var D=Y.date,Q=Y.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var te=D.match(v);if(te){var ce=te[2]-1||0,pe=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)):new Date(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,pe)}}return new Date(D)}(P),this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(P,Y){var D=$(P);return this.startOf(Y)<=D&&D<=this.endOf(Y)},F.isAfter=function(P,Y){return $(P)<this.startOf(Y)},F.isBefore=function(P,Y){return this.endOf(Y)<$(P)},F.$g=function(P,Y,D){return L.u(P)?this[Y]:this.set(D,P)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(P,Y){var D=this,Q=!!L.u(Y)||Y,te=L.p(P),ce=function(O,w){var A=L.w(D.$u?Date.UTC(D.$y,w,O):new Date(D.$y,w,O),D);return Q?A:A.endOf(c)},pe=function(O,w){return L.w(D.toDate()[O].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(w)),D)},me=this.$W,Ee=this.$M,Se=this.$D,ke="set"+(this.$u?"UTC":"");switch(te){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Ee):ce(0,Ee+1);case u:var ve=this.$locale().weekStart||0,T=(me<ve?me+7:me)-ve;return ce(Q?Se-T:Se+(6-T),Ee);case c:case m:return pe(ke+"Hours",0);case a:return pe(ke+"Minutes",1);case l:return pe(ke+"Seconds",2);case i:return pe(ke+"Milliseconds",3);default:return this.clone()}},F.endOf=function(P){return this.startOf(P,!1)},F.$set=function(P,Y){var D,Q=L.p(P),te="set"+(this.$u?"UTC":""),ce=(D={},D[c]=te+"Date",D[m]=te+"Date",D[f]=te+"Month",D[p]=te+"FullYear",D[a]=te+"Hours",D[l]=te+"Minutes",D[i]=te+"Seconds",D[s]=te+"Milliseconds",D)[Q],pe=Q===c?this.$D+(Y-this.$W):Y;if(Q===f||Q===p){var me=this.clone().set(m,1);me.$d[ce](pe),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ce&&this.$d[ce](pe);return this.init(),this},F.set=function(P,Y){return this.clone().$set(P,Y)},F.get=function(P){return this[L.p(P)]()},F.add=function(P,Y){var D,Q=this;P=Number(P);var te=L.p(Y),ce=function(Ee){var Se=$(Q);return L.w(Se.date(Se.date()+Math.round(Ee*P)),Q)};if(te===f)return this.set(f,this.$M+P);if(te===p)return this.set(p,this.$y+P);if(te===c)return ce(1);if(te===u)return ce(7);var pe=(D={},D[l]=r,D[a]=o,D[i]=t,D)[te]||1,me=this.$d.getTime()+P*pe;return L.w(me,this)},F.subtract=function(P,Y){return this.add(-1*P,Y)},F.format=function(P){var Y=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=P||"YYYY-MM-DDTHH:mm:ssZ",te=L.z(this),ce=this.$H,pe=this.$m,me=this.$M,Ee=D.weekdays,Se=D.months,ke=D.meridiem,ve=function(w,A,y,E){return w&&(w[A]||w(Y,Q))||y[A].slice(0,E)},T=function(w){return L.s(ce%12||12,w,"0")},O=ke||function(w,A,y){var E=w<12?"AM":"PM";return y?E.toLowerCase():E};return Q.replace(C,function(w,A){return A||function(y){switch(y){case"YY":return String(Y.$y).slice(-2);case"YYYY":return L.s(Y.$y,4,"0");case"M":return me+1;case"MM":return L.s(me+1,2,"0");case"MMM":return ve(D.monthsShort,me,Se,3);case"MMMM":return ve(Se,me);case"D":return Y.$D;case"DD":return L.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return ve(D.weekdaysMin,Y.$W,Ee,2);case"ddd":return ve(D.weekdaysShort,Y.$W,Ee,3);case"dddd":return Ee[Y.$W];case"H":return String(ce);case"HH":return L.s(ce,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return O(ce,pe,!0);case"A":return O(ce,pe,!1);case"m":return String(pe);case"mm":return L.s(pe,2,"0");case"s":return String(Y.$s);case"ss":return L.s(Y.$s,2,"0");case"SSS":return L.s(Y.$ms,3,"0");case"Z":return te}return null}(w)||te.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(P,Y,D){var Q,te=this,ce=L.p(Y),pe=$(P),me=(pe.utcOffset()-this.utcOffset())*r,Ee=this-pe,Se=function(){return L.m(te,pe)};switch(ce){case p:Q=Se()/12;break;case f:Q=Se();break;case h:Q=Se()/3;break;case u:Q=(Ee-me)/6048e5;break;case c:Q=(Ee-me)/864e5;break;case a:Q=Ee/o;break;case l:Q=Ee/r;break;case i:Q=Ee/t;break;default:Q=Ee}return D?Q:L.a(Q)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return x[this.$L]},F.locale=function(P,Y){if(!P)return this.$L;var D=this.clone(),Q=j(P,Y,!0);return Q&&(D.$L=Q),D},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),W=V.prototype;return $.prototype=W,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(H){W[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),$.extend=function(H,F){return H.$i||(H(F,V,$),H.$i=!0),$},$.locale=j,$.isDayjs=U,$.unix=function(H){return $(1e3*H)},$.en=x[M],$.Ls=x,$.p={},$})})(qm);var e1=qm.exports;const _i=rc(e1);var Pk={exports:{}};(function(n,e){(function(t,r){n.exports=r(e1)})(nc,function(t){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(t),s={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(i){return"["+i+(i===1||i===8||i>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(s,null,!0),s})})(Pk);var t1={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(nc,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(C){this[v]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(v)}],h=function(v){var C=a[v];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(v,C){var S,k=a.meridiem;if(k){for(var b=1;b<=24;b+=1)if(v.indexOf(k(b,0,C))>-1){S=b>12;break}}else S=v===(C?"pm":"PM");return S},m={A:[l,function(v){this.afternoon=p(v,!1)}],a:[l,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[l,function(v){var C=a.ordinal,S=v.match(/\d+/);if(this.day=S[0],C)for(var k=1;k<=31;k+=1)C(k).replace(/\[|\]/g,"")===v&&(this.day=k)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[l,function(v){var C=h("months"),S=(h("monthsShort")||C.map(function(k){return k.slice(0,3)})).indexOf(v)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(v){var C=h("months").indexOf(v)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var C,S;C=v,S=a&&a.formats;for(var k=(v=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,L,V){var W=V&&V.toUpperCase();return L||S[V]||t[V]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,P){return F||P.slice(1)})})).match(r),b=k.length,M=0;M<b;M+=1){var x=k[M],z=m[x],U=z&&z[0],j=z&&z[1];k[M]=j?{regex:U,parser:j}:x.replace(/^\[|\]$/g,"")}return function($){for(var L={},V=0,W=0;V<b;V+=1){var H=k[V];if(typeof H=="string")W+=H.length;else{var F=H.regex,P=H.parser,Y=$.slice(W),D=F.exec(Y)[0];P.call(L,D),$=$.replace(D,"")}}return function(Q){var te=Q.afternoon;if(te!==void 0){var ce=Q.hours;te?ce<12&&(Q.hours+=12):ce===12&&(Q.hours=0),delete Q.afternoon}}(L),L}}return function(v,C,S){S.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var k=C.prototype,b=k.parse;k.parse=function(M){var x=M.date,z=M.utc,U=M.args;this.$u=z;var j=U[1];if(typeof j=="string"){var $=U[2]===!0,L=U[3]===!0,V=$||L,W=U[2];L&&(W=U[2]),a=this.$locale(),!$&&W&&(a=S.Ls[W]),this.$d=function(Y,D,Q,te){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*Y);var ce=g(D)(Y),pe=ce.year,me=ce.month,Ee=ce.day,Se=ce.hours,ke=ce.minutes,ve=ce.seconds,T=ce.milliseconds,O=ce.zone,w=ce.week,A=new Date,y=Ee||(pe||me?1:A.getDate()),E=pe||A.getFullYear(),_=0;pe&&!me||(_=me>0?me-1:A.getMonth());var I,R=Se||0,B=ke||0,K=ve||0,J=T||0;return O?new Date(Date.UTC(E,_,y,R,B,K,J+60*O.offset*1e3)):Q?new Date(Date.UTC(E,_,y,R,B,K,J)):(I=new Date(E,_,y,R,B,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(x,j,z,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&x!=this.format(j)&&(this.$d=new Date("")),a={}}else if(j instanceof Array)for(var H=j.length,F=1;F<=H;F+=1){U[1]=j[F-1];var P=S.apply(this,U);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}F===H&&(this.$d=new Date(""))}else b.call(this,M)}}})})(t1);var $k=t1.exports;const Fk=rc($k);_i.extend(Fk);_i.locale("nl");function Vk(n,e=_i().startOf("day")){const t="DD-MM-YYYY",r=_i(n,t);if(r.isSame(e))return"vandaag";const s=e.subtract(1,"day");if(r.isSame(s))return"gister";const l=e.subtract(2,"day");if(r.isSame(l))return"eergister";const c=e.subtract(7,"day");if(r.isAfter(c)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(t)}const zk={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"},Ze=d.defineComponent({__name:"BDButton",props:{size:{default:ct.MD},variant:{default:zk.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=d.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=d.computed(()=>t.to?jr:"button"),s=d.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),i=l=>{e("click",l)};return(l,a)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.value),d.mergeProps({class:["bd-btn",r.value]},s.value,{onClick:i}),{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Hk={install:n=>{n.component("BDCol",Qn),n.component("BDContainer",As),n.component("BDRow",qn),n.component("BDButton",Ze),n.component("BDLogo",ql),n.component("BDLink",jr),n.component("BDDropdownItem",Is),n.component("BDDropdown",jc),n.component("BDAlert",Ns),n.component("BDProfileImage",Wo),n.component("BDZoomslider",ec),n.component("BDCard",Bi),n.component("BDCollapsableCard",Kf),n.component("BDFormInput",bo),n.component("BDInputGroup",Yf),n.component("BDFormInvalidFeedback",Pi),n.component("BDBadge",Jf),n.component("BDForm",Zf),n.component("BDPagination",Xf),n.component("BDDropzone",nh),n.component("BDMarkdownEditor",pm),n.component("BDModal",Wc),n.component("BDFormSelect",Qf),n.component("BDUser",mm),n.component("BDArticle",eh),n.component("BDFormCheckbox",qf),n.component("BDToast",tc),n.component("BDAttachmentPreviewList",na),n.component("BDImageAttachmentPreviewList",ra),n.component("BDHeader",bm),n.component("BDMobileMenu",Uc),n.component("BDChatCloud",gm),n.component("BDTable",vm),n.component("BDChangePasswordTemplate",ym),n.component("BDPill",$i),n.component("BDImageAttachmentModal",Zm),n.component("IconAcademy",_f),n.component("IconArrowDown",If),n.component("IconArrowUp",Df),n.component("IconAttachment",hr),n.component("IconBold",zl),n.component("IconBulletList",Hl),n.component("IconCalendar",nl),n.component("IconCalendar",nl),n.component("IconCardView",Lf),n.component("IconCaretDown",Ul),n.component("IconCaretLeft",jl),n.component("IconCaretRight",Wl),n.component("IconCheck",ro),n.component("IconClose",Ii),n.component("IconComment",yg),n.component("IconDownloadImage",Os),n.component("IconDownloadImage",Os),n.component("IconEdit",Rf),n.component("IconError",Di),n.component("IconEyeShow",Bf),n.component("IconEyeSlash",Pf),n.component("IconFile",Kl),n.component("IconHyperlink",Li),n.component("IconInfo",oo),n.component("IconItalic",Gl),n.component("IconListView",$f),n.component("IconMenu",Ms),n.component("IconMenu",Ms),n.component("IconOrderedList",Yl),n.component("IconRemove",jo),n.component("IconService",Ff),n.component("IconSort",Vf),n.component("IconSortAsc",Jl),n.component("IconSortDesc",Zl),n.component("IconSortNone",Xl),n.component("IconTriangleExclamation",zf),n.component("IconUnderline",Ql),n.component("IconContactPerson",Hf),n.directive("vBDTooltip",Qm)}};exports.BDAlert=Ns;exports.BDArticle=eh;exports.BDAttachmentPreviewList=na;exports.BDBadge=Jf;exports.BDButton=Ze;exports.BDCard=Bi;exports.BDChangePasswordTemplate=ym;exports.BDChatCloud=gm;exports.BDCol=Qn;exports.BDCollapsableCard=Kf;exports.BDContainer=As;exports.BDDropdown=jc;exports.BDDropdownItem=Is;exports.BDDropzone=nh;exports.BDForm=Zf;exports.BDFormCheckbox=qf;exports.BDFormInput=bo;exports.BDFormInvalidFeedback=Pi;exports.BDFormSelect=Qf;exports.BDHeader=bm;exports.BDImageAttachmentModal=Zm;exports.BDImageAttachmentPreviewList=ra;exports.BDInputGroup=Yf;exports.BDLink=jr;exports.BDLogo=ql;exports.BDMarkdownEditor=pm;exports.BDMobileMenu=Uc;exports.BDModal=Wc;exports.BDPagination=Xf;exports.BDPill=$i;exports.BDProfileImage=Wo;exports.BDRow=qn;exports.BDTable=vm;exports.BDToast=tc;exports.BDUser=mm;exports.BDZoomslider=ec;exports.IconAcademy=_f;exports.IconArrowDown=If;exports.IconArrowUp=Df;exports.IconAttachment=hr;exports.IconBold=zl;exports.IconBulletList=Hl;exports.IconCalendar=nl;exports.IconCardView=Lf;exports.IconCaretDown=Ul;exports.IconCaretLeft=jl;exports.IconCaretRight=Wl;exports.IconCheck=ro;exports.IconClose=Ii;exports.IconContactPerson=Hf;exports.IconDownloadImage=Os;exports.IconEdit=Rf;exports.IconError=Di;exports.IconEyeShow=Bf;exports.IconEyeSlash=Pf;exports.IconFile=Kl;exports.IconHyperlink=Li;exports.IconInfo=oo;exports.IconItalic=Gl;exports.IconListView=$f;exports.IconMenu=Ms;exports.IconOrderedList=Yl;exports.IconRemove=jo;exports.IconService=Ff;exports.IconSort=Vf;exports.IconSortAsc=Jl;exports.IconSortDesc=Zl;exports.IconSortNone=Xl;exports.IconTriangleExclamation=zf;exports.IconUnderline=Ql;exports.default=Hk;exports.getDisplayDate=Vk;exports.useModal=Ym;exports.useServerErrors=Rk;exports.useToaster=Xm;exports.useValidation=Bk;exports.useZoom=Jm;exports.vBdTooltip=Qm;