@beterdichtbij/component-library 0.26.0 → 0.26.1

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 YE(){ze.scanner=FE(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=UE(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 JE(n){return ze.initialized||YE(),jE(ze.parser.start,n,VE(ze.scanner.start,n))}function sc(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 oc(t),o=JE(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function ZE(n){return new yt({key:new Ut("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=x3(t.doc,[...e]);if(B3(l).forEach(({newRange:c})=>{const u=M3(r.doc,c,p=>p.isTextblock);let d,h;if(u.length>1?(d=u[0],h=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],h=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=d.pos+h.lastIndexOf(m);if(!m)return!1;sc(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>n.validate?n.validate(y.value):!0).forEach(y=>{gl(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function XE(n){return new yt({key:new Ut("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=jf(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function QE(n){return new yt({key:new Ut("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=sc(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"),d=/href="([^"]*)"/,h=u==null?void 0:u.match(d),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const qE=en.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){dp(n);return}dp(n.scheme,n.optionalSlashes)})},onDestroy(){GE()},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",dt(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[No({find:n=>sc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(ZE({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(XE({type:this.type})),this.options.linkOnPaste&&n.push(QE({editor:this.editor,type:this.type})),n}}).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})}}}}),e7=_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 yt({key:new Ut("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=It.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),t7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,n7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,r7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,o7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,i7=en.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",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$i({find:t7,type:this.type}),$i({find:r7,type:this.type})]},addPasteRules(){return[No({find:n7,type:this.type}),No({find:o7,type:this.type})]}}),s7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,a7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,l7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,c7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,u7=en.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",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$i({find:s7,type:this.type}),$i({find:l7,type:this.type})]},addPasteRules(){return[No({find:a7,type:this.type}),No({find:c7,type:this.type})]}}),d7=en.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",dt(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()}}}),f7=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(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)}}}),h7=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(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)}}}),fp=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Bi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),hp=/^\s*([-+*])\s$/,p7=pn.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",dt(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(h7.name,this.editor.getAttributes(fp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Fi({find:hp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:hp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(fp.name),editor:this.editor})),[n]}}),m7=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(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)}}}),pp=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Bi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),mp=/^(\d+)\.\s$/,g7=pn.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",dt(this.options.HTMLAttributes,t),0]:["ol",dt(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(m7.name,this.editor.getAttributes(pp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Fi({find:mp,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:mp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(pp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),y7=pn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",dt(this.options.HTMLAttributes,n)]},renderText(){return`
127
- `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),ac={BASIC:"basic",FULL:"full"},v7={class:"attachment-list"},b7={class:"attachment-link"},E7={key:1,class:"attachment-no-download"},C7=["href"],Ds=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",v7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",b7,[r.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",E7,[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,C7))])]))),128))]))}}),S7={class:"attachment-list"},w7={class:"attachment"},k7=["onClick"],T7=["src","alt"],A7=["onClick"],x7=["href"],O7={class:"btn btn-light download-button-image"},M7=["src","alt"],Ls=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",S7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",w7,[i.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,T7)],8,k7)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",O7,[f.createVNode(f.unref(Qo))])],8,x7)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,M7)],8,A7))])]))),128))]))}}),gp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),N7=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,I7=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,_7=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,D7=(n,e)=>e?gp(n):!gp(n),Rs=(n,e)=>n===void 0?void 0:n.filter(o=>D7(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:N7(o),previewUrl:I7(o),fullImageUrl:_7(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),L7={class:"bd-markdown-editor__menu-bottom"},R7={key:0,class:"vr"},B7={key:4,class:"vr"},P7={key:7,class:"vr"},yp=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:ac.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=Jn(t,"modelValue",e),i=[OE,ME,NE,e7.configure({placeholder:t.placeholder}),y7];t.variant===ac.FULL&&i.push(i7,u7,d7,f7,p7,g7,qE.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=xE({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:b,to:_}=S.state.selection;if(k.doc.textBetween(b-1,_,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:_}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:_,to:_}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===ac.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},y=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(AE),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),m.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:y},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",L7,[f.createVNode(pt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(Yn))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",R7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Qs))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(sa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(da))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",B7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(qs))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(aa))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",P7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=k=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(ia))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(ii),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),$7={class:"header"},F7=f.createElementVNode("div",null,"Menu",-1),V7={class:"icon-close-wrapper"},z7={class:"navbar"},H7={class:"nav navbar-nav w-100"},U7={class:"nav-item"},j7={class:"nav-item"},lc=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",$7,[F7,f.createElementVNode("div",V7,[f.createVNode(Xo,{onClick:o})])]),f.createElementVNode("nav",z7,[f.createElementVNode("ul",H7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",U7,[f.createVNode(Cr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",j7,[f.createVNode(Cr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),W7={class:"bd-user"},K7={class:"bd-user__information"},G7={class:"text-break"},Y7={class:"overflow-x-hidden"},vp=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",W7,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",K7,[f.createElementVNode("header",null,[f.createElementVNode("h5",G7,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",Y7,f.toDisplayString(t.value),1)])]))}}),J7="",Z7={class:"bd-chat-cloud-card"},X7={class:"bd-chat-cloud-card__header"},Q7={class:"bd-chat-cloud-card__body"},q7=["innerHTML"],e8={class:"bd-chat-cloud-card__footer"},bp=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":J7),o=f.computed(()=>Rs(t.files,!1)),i=f.computed(()=>Rs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(lo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",Z7,[f.createElementVNode("div",X7,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(pt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",Q7,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,q7)])]),f.createElementVNode("div",e8,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),t8=f.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=f.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=f.computed(()=>({"bd-table-sort":!0,active:t.active}));return f.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(f.openBlock(),f.createElementBlock("th",{class:f.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[f.createElementVNode("span",null,f.toDisplayString(t.label),1),t.active&&!r.value?(f.openBlock(),f.createBlock(f.unref(la),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(ca),{key:1})):(f.openBlock(),f.createBlock(f.unref(ua),{key:2}))],2))}}),n8={class:"bd-table"},r8={key:0,class:"table"},o8={key:1},i8=["onClick"],s8={key:1,class:"empty-text"},Ep=f.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=f.ref(r.items),i=f.ref(r.sortBy),s=d=>i.value=d,l=(d,h,p)=>{const m=h[d],g=p[d];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=d=>{o.value=o.value.sort((p,m)=>l(d,p,m)),t("sort-changed",{sortBy:d,sortDesc:!1})},c=d=>{o.value=o.value.sort((p,m)=>l(d,m,p)),t("sort-changed",{sortBy:d,sortDesc:!0})},u=()=>{o.value=r.items};return f.watch(()=>r.items,d=>{o.value=d}),e({Refresh:u}),(d,h)=>(f.openBlock(),f.createElementBlock("div",n8,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",r8,[f.createElementVNode("thead",null,[f.createElementVNode("tr",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.fields,p=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[p.sortable?(f.openBlock(),f.createBlock(t8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(f.openBlock(),f.createElementBlock("th",o8,f.toDisplayString(p.label),1))],64))),256))])]),f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,p=>(f.openBlock(),f.createElementBlock("tr",{class:f.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.fields,m=>(f.openBlock(),f.createElementBlock("td",null,[d.$slots.hasOwnProperty(m.key)?f.renderSlot(d.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createTextVNode(f.toDisplayString(p[m.key]),1)],64))]))),256))],10,i8))),256))])])):(f.openBlock(),f.createElementBlock("p",s8,f.toDisplayString(r.emptyText),1))]))}}),cc=f.defineComponent({__name:"BDDropdown",props:{size:{default:st.MD},variant:{default:ni.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}=co(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),l=f.ref(),a=f.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:d[0]||(d[0]=f.withModifiers(()=>{},["stop"]))},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[f.renderSlot(u.$slots,"default")],16)]))}}),a8={class:"row bd-header"},l8={class:"col logo-mix"},c8=["src","alt"],u8=f.createElementVNode("div",null,"Menu",-1),d8={key:0,class:"col header-options"},f8={class:"col bd-btn-settings"},h8="sm",Cp=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=f.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",a8,[f.createElementVNode("div",l8,[f.createVNode(fa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(f.openBlock(),f.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,c8)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[u8,f.createVNode(ti)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",d8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(pt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",f8,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(lo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:h8},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(cc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(si,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(si,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(lc,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":f.withCtx(()=>[f.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),p8={class:"modal bd-modal modal-lg",tabindex:"-1"},m8={class:"modal-dialog"},g8={class:"modal-content"},y8={class:"modal-header"},v8={class:"modal-title"},b8={class:"modal-body"},E8={key:0,class:"modal-footer"},C8=["disabled"],Sp=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",p8,[f.createElementVNode("div",m8,[f.createElementVNode("div",g8,[f.createElementVNode("div",y8,[f.createElementVNode("h2",v8,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[f.createTextVNode("Sluiten "),f.createVNode(f.unref(Xo),{class:"bg-primary"})])]),f.createElementVNode("div",b8,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",E8,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,C8)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),ac={BASIC:"basic",FULL:"full"},v7={class:"attachment-list"},b7={class:"attachment-link"},E7={key:1,class:"attachment-no-download"},C7=["href"],Ds=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",v7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",b7,[r.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",E7,[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,C7))])]))),128))]))}}),S7={class:"attachment-list"},w7={class:"attachment"},k7=["onClick"],T7=["src","alt"],A7=["onClick"],x7=["href"],O7={class:"btn btn-light download-button-image"},M7=["src","alt"],Ls=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",S7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",w7,[i.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,T7)],8,k7)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",O7,[f.createVNode(f.unref(Qo))])],8,x7)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,M7)],8,A7))])]))),128))]))}}),gp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),N7=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,I7=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,_7=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,D7=(n,e)=>e?gp(n):!gp(n),Rs=(n,e)=>n===void 0?void 0:n.filter(o=>D7(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:N7(o),previewUrl:I7(o),fullImageUrl:_7(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),L7={class:"bd-markdown-editor__menu-bottom"},R7={key:0,class:"vr"},B7={key:4,class:"vr"},P7={key:7,class:"vr"},yp=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:ac.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=Jn(t,"modelValue",e),i=[OE,ME,NE,e7.configure({placeholder:t.placeholder}),y7];t.variant===ac.FULL&&i.push(i7,u7,d7,f7,p7,g7,qE.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=xE({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:b,to:_}=S.state.selection;if(k.doc.textBetween(b-1,_,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:_}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:_,to:_}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===ac.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},y=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(AE),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),m.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:y},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",L7,[f.createVNode(pt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(Yn))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",R7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Qs))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(sa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(da))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",B7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(qs))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(aa))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",P7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=k=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(ia))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(ii),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),$7={class:"header"},F7=f.createElementVNode("div",null,"Menu",-1),V7={class:"icon-close-wrapper"},z7={class:"navbar"},H7={class:"nav navbar-nav w-100"},U7={class:"nav-item"},j7={class:"nav-item"},lc=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",$7,[F7,f.createElementVNode("div",V7,[f.createVNode(Xo,{onClick:o})])]),f.createElementVNode("nav",z7,[f.createElementVNode("ul",H7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",U7,[f.createVNode(Cr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",j7,[f.createVNode(Cr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),W7={class:"bd-user"},K7={class:"bd-user__information"},G7={class:"text-break"},Y7={class:"overflow-x-hidden"},vp=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",W7,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",K7,[f.createElementVNode("header",null,[f.createElementVNode("h5",G7,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",Y7,f.toDisplayString(t.value),1)])]))}}),J7="",Z7={class:"bd-chat-cloud-card"},X7={class:"bd-chat-cloud-card__header"},Q7={class:"bd-chat-cloud-card__body"},q7=["innerHTML"],e8={class:"bd-chat-cloud-card__footer"},bp=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":J7),o=f.computed(()=>Rs(t.files,!1)),i=f.computed(()=>Rs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(lo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",Z7,[f.createElementVNode("div",X7,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(pt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",Q7,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,q7)])]),f.createElementVNode("div",e8,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),t8=f.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=f.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=f.computed(()=>({"bd-table-sort":!0,active:t.active}));return f.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(f.openBlock(),f.createElementBlock("th",{class:f.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[f.createElementVNode("span",null,f.toDisplayString(t.label),1),t.active&&!r.value?(f.openBlock(),f.createBlock(f.unref(la),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(ca),{key:1})):(f.openBlock(),f.createBlock(f.unref(ua),{key:2}))],2))}}),n8={class:"bd-table"},r8={key:0,class:"table"},o8={key:1},i8=["onClick"],s8={key:1,class:"empty-text"},Ep=f.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=f.ref(r.items),i=f.ref(r.sortBy),s=d=>i.value=d,l=(d,h,p)=>{const m=h[d],g=p[d];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=d=>{o.value=o.value.sort((p,m)=>l(d,p,m)),t("sort-changed",{sortBy:d,sortDesc:!1})},c=d=>{o.value=o.value.sort((p,m)=>l(d,m,p)),t("sort-changed",{sortBy:d,sortDesc:!0})},u=()=>{o.value=r.items};return f.watch(()=>r.items,d=>{o.value=d}),e({Refresh:u}),(d,h)=>(f.openBlock(),f.createElementBlock("div",n8,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",r8,[f.createElementVNode("thead",null,[f.createElementVNode("tr",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.fields,p=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[p.sortable?(f.openBlock(),f.createBlock(t8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(f.openBlock(),f.createElementBlock("th",o8,f.toDisplayString(p.label),1))],64))),256))])]),f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,p=>(f.openBlock(),f.createElementBlock("tr",{class:f.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.fields,m=>(f.openBlock(),f.createElementBlock("td",null,[d.$slots.hasOwnProperty(m.key)?f.renderSlot(d.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createTextVNode(f.toDisplayString(p[m.key]),1)],64))]))),256))],10,i8))),256))])])):(f.openBlock(),f.createElementBlock("p",s8,f.toDisplayString(r.emptyText),1))]))}}),cc=f.defineComponent({__name:"BDDropdown",props:{size:{default:st.MD},variant:{default:ni.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}=co(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),l=f.ref(),a=f.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:d[0]||(d[0]=f.withModifiers(()=>{},["stop"]))},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[f.renderSlot(u.$slots,"default")],16)]))}}),a8={class:"row bd-header"},l8={class:"col logo-mix"},c8=["src","alt"],u8=f.createElementVNode("div",null,"Menu",-1),d8={key:0,class:"col header-options"},f8={class:"col bd-btn-settings"},h8="sm",Cp=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=f.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",a8,[f.createElementVNode("div",l8,[f.createVNode(fa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(f.openBlock(),f.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,c8)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[u8,f.createVNode(ti)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",d8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(pt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",f8,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(lo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:h8},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(cc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(si,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(si,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(lc,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":f.withCtx(()=>[f.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),p8={class:"modal bd-modal modal-lg",tabindex:"-1"},m8={class:"modal-dialog"},g8={class:"modal-content"},y8={class:"modal-header"},v8={class:"modal-title"},b8=f.createElementVNode("span",null,"Sluiten",-1),E8={class:"modal-body"},C8={key:0,class:"modal-footer"},S8=["disabled"],Sp=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",p8,[f.createElementVNode("div",m8,[f.createElementVNode("div",g8,[f.createElementVNode("div",y8,[f.createElementVNode("h2",v8,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[b8,f.createVNode(f.unref(Xo),{class:"bg-primary"})])]),f.createElementVNode("div",E8,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",C8,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,S8)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
128
128
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
129
129
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
130
130
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
131
- */const Vn=new Map,uc={set(n,e,t){Vn.has(n)||Vn.set(n,new Map);const r=Vn.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 Vn.has(n)&&Vn.get(n).get(e)||null},remove(n,e){if(!Vn.has(n))return;const t=Vn.get(n);t.delete(e),t.size===0&&Vn.delete(n)}},S8=1e6,w8=1e3,dc="transitionend",wp=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),k8=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),T8=n=>{do n+=Math.floor(Math.random()*S8);while(document.getElementById(n));return n},A8=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))*w8)},kp=n=>{n.dispatchEvent(new Event(dc))},yn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),zn=n=>yn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(wp(n)):null,Xr=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},Hn=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",Tp=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?Tp(n.parentNode):null},Bs=()=>{},Uo=n=>{n.offsetHeight},Ap=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,fc=[],x8=n=>{document.readyState==="loading"?(fc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of fc)e()}),fc.push(n)):n()},Rt=()=>document.documentElement.dir==="rtl",Bt=n=>{x8(()=>{const e=Ap();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)}})},Et=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,xp=(n,e,t=!0)=>{if(!t){Et(n);return}const r=5,o=A8(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(dc,s),Et(n))};e.addEventListener(dc,s),setTimeout(()=>{i||kp(e)},o)},hc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},O8=/[^.]*(?=\..*)\.|.*/,M8=/\..*/,N8=/::\d+$/,pc={};let Op=1;const Mp={mouseenter:"mouseover",mouseleave:"mouseout"},I8=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 Np(n,e){return e&&`${e}::${Op++}`||n.uidEvent||Op++}function Ip(n){const e=Np(n);return n.uidEvent=e,pc[e]=pc[e]||{},pc[e]}function _8(n,e){return function t(r){return gc(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function D8(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return gc(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function _p(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Dp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=Rp(n);return I8.has(i)||(i=n),[r,o,i]}function Lp(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Dp(e,t,r);e in Mp&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=Ip(n),c=a[l]||(a[l]={}),u=_p(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=Np(s,e.replace(O8,"")),h=i?D8(n,t,s):_8(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function mc(n,e,t,r,o){const i=_p(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function L8(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&mc(n,e,t,s.callable,s.delegationSelector)}function Rp(n){return n=n.replace(M8,""),Mp[n]||n}const ne={on(n,e,t,r){Lp(n,e,t,r,!1)},one(n,e,t,r){Lp(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Dp(e,t,r),l=s!==e,a=Ip(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;mc(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))L8(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const p=d.replace(N8,"");(!l||e.includes(p))&&mc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Ap(),o=Rp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=gc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.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 Bp(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 yc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const vn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${yc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${yc(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]=Bp(n.dataset[r])}return e},getDataAttribute(n,e){return Bp(n.getAttribute(`data-bs-${yc(e)}`))}};class jo{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)?vn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...yn(t)?vn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=yn(i)?"element":k8(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const R8="5.3.0";class Yt extends jo{constructor(e,t){super(),e=zn(e),e&&(this._element=e,this._config=this._getConfig(t),uc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){uc.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){xp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return uc.get(zn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return R8}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 vc=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 wp(e)},be={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=>!Hn(t)&&Xr(t))},getSelectorFromElement(n){const e=vc(n);return e&&be.findOne(e)?e:null},getElementFromSelector(n){const e=vc(n);return e?be.findOne(e):null},getMultipleElementsFromSelector(n){const e=vc(n);return e?be.find(e):[]}},Ps=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Hn(this))return;const i=be.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},B8="alert",Pp=".bs.alert",P8=`close${Pp}`,$8=`closed${Pp}`,F8="fade",V8="show";class $s extends Yt{static get NAME(){return B8}close(){if(ne.trigger(this._element,P8).defaultPrevented)return;this._element.classList.remove(V8);const t=this._element.classList.contains(F8);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,$8),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=$s.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)}})}}Ps($s,"close"),Bt($s);const z8="button",H8=".bs.button",U8=".data-api",j8="active",$p='[data-bs-toggle="button"]',W8=`click${H8}${U8}`;class Fs extends Yt{static get NAME(){return z8}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(j8))}static jQueryInterface(e){return this.each(function(){const t=Fs.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,W8,$p,n=>{n.preventDefault();const e=n.target.closest($p);Fs.getOrCreateInstance(e).toggle()}),Bt(Fs);const K8="swipe",Qr=".bs.swipe",G8=`touchstart${Qr}`,Y8=`touchmove${Qr}`,J8=`touchend${Qr}`,Z8=`pointerdown${Qr}`,X8=`pointerup${Qr}`,Q8="touch",q8="pen",e4="pointer-event",t4=40,n4={endCallback:null,leftCallback:null,rightCallback:null},r4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Vs extends jo{constructor(e,t){super(),this._element=e,!(!e||!Vs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return n4}static get DefaultType(){return r4}static get NAME(){return K8}dispose(){ne.off(this._element,Qr)}_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(),Et(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<=t4)return;const t=e/this._deltaX;this._deltaX=0,t&&Et(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,Z8,e=>this._start(e)),ne.on(this._element,X8,e=>this._end(e)),this._element.classList.add(e4)):(ne.on(this._element,G8,e=>this._start(e)),ne.on(this._element,Y8,e=>this._move(e)),ne.on(this._element,J8,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===q8||e.pointerType===Q8)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const o4="carousel",Un=".bs.carousel",Fp=".data-api",i4="ArrowLeft",s4="ArrowRight",a4=500,Wo="next",qr="prev",eo="left",zs="right",l4=`slide${Un}`,bc=`slid${Un}`,c4=`keydown${Un}`,u4=`mouseenter${Un}`,d4=`mouseleave${Un}`,f4=`dragstart${Un}`,h4=`load${Un}${Fp}`,p4=`click${Un}${Fp}`,Vp="carousel",Hs="active",m4="slide",g4="carousel-item-end",y4="carousel-item-start",v4="carousel-item-next",b4="carousel-item-prev",zp=".active",Hp=".carousel-item",E4=zp+Hp,C4=".carousel-item img",S4=".carousel-indicators",w4="[data-bs-slide], [data-bs-slide-to]",k4='[data-bs-ride="carousel"]',T4={[i4]:zs,[s4]:eo},A4={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},x4={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ko 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=be.findOne(S4,this._element),this._addEventListeners(),this._config.ride===Vp&&this.cycle()}static get Default(){return A4}static get DefaultType(){return x4}static get NAME(){return o4}next(){this._slide(Wo)}nextWhenVisible(){!document.hidden&&Xr(this._element)&&this.next()}prev(){this._slide(qr)}pause(){this._isSliding&&kp(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ne.one(this._element,bc,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ne.one(this._element,bc,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Wo:qr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ne.on(this._element,c4,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,u4,()=>this.pause()),ne.on(this._element,d4,()=>this._maybeEnableCycle())),this._config.touch&&Vs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of be.find(C4,this._element))ne.on(r,f4,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(eo)),rightCallback:()=>this._slide(this._directionToOrder(zs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),a4+this._config.interval))}};this._swipeHelper=new Vs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=T4[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=be.findOne(zp,this._indicatorsElement);t.classList.remove(Hs),t.removeAttribute("aria-current");const r=be.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Hs),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===Wo,i=t||hc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=p=>ne.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(l4).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?y4:g4,d=o?v4:b4;i.classList.add(d),Uo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(Hs),r.classList.remove(Hs,d,u),this._isSliding=!1,l(bc)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(m4)}_getActive(){return be.findOne(E4,this._element)}_getItems(){return be.find(Hp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===eo?qr:Wo:e===eo?Wo:qr}_orderToDirection(e){return Rt()?e===qr?eo:zs:e===qr?zs:eo}static jQueryInterface(e){return this.each(function(){const t=Ko.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,p4,w4,function(n){const e=be.getElementFromSelector(this);if(!e||!e.classList.contains(Vp))return;n.preventDefault();const t=Ko.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(vn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),ne.on(window,h4,()=>{const n=be.find(k4);for(const e of n)Ko.getOrCreateInstance(e)}),Bt(Ko);const O4="collapse",Go=".bs.collapse",M4=".data-api",N4=`show${Go}`,I4=`shown${Go}`,_4=`hide${Go}`,D4=`hidden${Go}`,L4=`click${Go}${M4}`,Ec="show",to="collapse",Us="collapsing",R4="collapsed",B4=`:scope .${to} .${to}`,P4="collapse-horizontal",$4="width",F4="height",V4=".collapse.show, .collapse.collapsing",Cc='[data-bs-toggle="collapse"]',z4={parent:null,toggle:!0},H4={parent:"(null|element)",toggle:"boolean"};class Yo extends Yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=be.find(Cc);for(const o of r){const i=be.getSelectorFromElement(o),s=be.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return z4}static get DefaultType(){return H4}static get NAME(){return O4}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(V4).filter(l=>l!==this._element).map(l=>Yo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,N4).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(to),this._element.classList.add(Us),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to,Ec),this._element.style[r]="",ne.trigger(this._element,I4)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ne.trigger(this._element,_4).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Uo(this._element),this._element.classList.add(Us),this._element.classList.remove(to,Ec);for(const o of this._triggerArray){const i=be.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to),ne.trigger(this._element,D4)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ec)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=zn(e.parent),e}_getDimension(){return this._element.classList.contains(P4)?$4:F4}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Cc);for(const t of e){const r=be.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=be.find(B4,this._config.parent);return be.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(R4,!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=Yo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,L4,Cc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of be.getMultipleElementsFromSelector(this))Yo.getOrCreateInstance(e,{toggle:!1}).toggle()}),Bt(Yo);const Up="dropdown",pr=".bs.dropdown",Sc=".data-api",U4="Escape",jp="Tab",j4="ArrowUp",Wp="ArrowDown",W4=2,K4=`hide${pr}`,G4=`hidden${pr}`,Y4=`show${pr}`,J4=`shown${pr}`,Kp=`click${pr}${Sc}`,Gp=`keydown${pr}${Sc}`,Z4=`keyup${pr}${Sc}`,no="show",X4="dropup",Q4="dropend",q4="dropstart",eC="dropup-center",tC="dropdown-center",mr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',nC=`${mr}.${no}`,js=".dropdown-menu",rC=".navbar",oC=".navbar-nav",iC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",sC=Rt()?"top-end":"top-start",aC=Rt()?"top-start":"top-end",lC=Rt()?"bottom-end":"bottom-start",cC=Rt()?"bottom-start":"bottom-end",uC=Rt()?"left-start":"right-start",dC=Rt()?"right-start":"left-start",fC="top",hC="bottom",pC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},mC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class an extends Yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=be.next(this._element,js)[0]||be.prev(this._element,js)[0]||be.findOne(js,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return pC}static get DefaultType(){return mC}static get NAME(){return Up}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Hn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,Y4,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(oC))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Bs);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(no),this._element.classList.add(no),ne.trigger(this._element,J4,e)}}hide(){if(Hn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ne.trigger(this._element,K4,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Bs);this._popper&&this._popper.destroy(),this._menu.classList.remove(no),this._element.classList.remove(no),this._element.setAttribute("aria-expanded","false"),vn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,G4,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!yn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Up.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof xh>"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=zn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Gi(e,this._menu,t)}_isShown(){return this._menu.classList.contains(no)}_getPlacement(){const e=this._parent;if(e.classList.contains(Q4))return uC;if(e.classList.contains(q4))return dC;if(e.classList.contains(eC))return fC;if(e.classList.contains(tC))return hC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(X4)?t?aC:sC:t?cC:lC}_detectNavbar(){return this._element.closest(rC)!==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")&&(vn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Et(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=be.find(iC,this._menu).filter(o=>Xr(o));r.length&&hc(r,t,e===Wp,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=an.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===W4||e.type==="keyup"&&e.key!==jp)return;const t=be.find(nC);for(const r of t){const o=an.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===jp||/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===U4,o=[j4,Wp].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(mr)?this:be.prev(this,mr)[0]||be.next(this,mr)[0]||be.findOne(mr,e.delegateTarget.parentNode),s=an.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,Gp,mr,an.dataApiKeydownHandler),ne.on(document,Gp,js,an.dataApiKeydownHandler),ne.on(document,Kp,an.clearMenus),ne.on(document,Z4,an.clearMenus),ne.on(document,Kp,mr,function(n){n.preventDefault(),an.getOrCreateInstance(this).toggle()}),Bt(an);const Yp="backdrop",gC="fade",Jp="show",Zp=`mousedown.bs.${Yp}`,yC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},vC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return yC}static get DefaultType(){return vC}static get NAME(){return Yp}show(e){if(!this._config.isVisible){Et(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Uo(t),t.classList.add(Jp),this._emulateAnimation(()=>{Et(e)})}hide(e){if(!this._config.isVisible){Et(e);return}this._getElement().classList.remove(Jp),this._emulateAnimation(()=>{this.dispose(),Et(e)})}dispose(){this._isAppended&&(ne.off(this._element,Zp),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(gC),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=zn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,Zp,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){xp(e,this._getElement(),this._config.isAnimated)}}const bC="focustrap",Ws=".bs.focustrap",EC=`focusin${Ws}`,CC=`keydown.tab${Ws}`,SC="Tab",wC="forward",Qp="backward",kC={autofocus:!0,trapElement:null},TC={autofocus:"boolean",trapElement:"element"};class qp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return kC}static get DefaultType(){return TC}static get NAME(){return bC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ws),ne.on(document,EC,e=>this._handleFocusin(e)),ne.on(document,CC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ws))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=be.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===Qp?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===SC&&(this._lastTabNavDirection=e.shiftKey?Qp:wC)}}const em=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tm=".sticky-top",Ks="padding-right",nm="margin-right";class wc{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,Ks,t=>t+e),this._setElementAttributes(em,Ks,t=>t+e),this._setElementAttributes(tm,nm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ks),this._resetElementAttributes(em,Ks),this._resetElementAttributes(tm,nm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&vn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=vn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}vn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(yn(e)){t(e);return}for(const r of be.find(e,this._element))t(r)}}const AC="modal",Pt=".bs.modal",xC=".data-api",OC="Escape",MC=`hide${Pt}`,NC=`hidePrevented${Pt}`,rm=`hidden${Pt}`,om=`show${Pt}`,IC=`shown${Pt}`,_C=`resize${Pt}`,DC=`click.dismiss${Pt}`,LC=`mousedown.dismiss${Pt}`,RC=`keydown.dismiss${Pt}`,BC=`click${Pt}${xC}`,im="modal-open",PC="fade",sm="show",kc="modal-static",$C=".modal.show",FC=".modal-dialog",VC=".modal-body",zC='[data-bs-toggle="modal"]',HC={backdrop:!0,focus:!0,keyboard:!0},UC={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gr extends Yt{constructor(e,t){super(e,t),this._dialog=be.findOne(FC,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new wc,this._addEventListeners()}static get Default(){return HC}static get DefaultType(){return UC}static get NAME(){return AC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,om,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(im),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,MC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(sm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Pt),ne.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xp({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new qp({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=be.findOne(VC,this._dialog);t&&(t.scrollTop=0),Uo(this._element),this._element.classList.add(sm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,IC,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,RC,e=>{if(e.key===OC){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,_C,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,LC,e=>{ne.one(this._element,DC,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(im),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,rm)})}_isAnimated(){return this._element.classList.contains(PC)}_triggerBackdropTransition(){if(ne.trigger(this._element,NC).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(kc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(kc),this._queueCallback(()=>{this._element.classList.remove(kc),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=Rt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Rt()?"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=gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,BC,zC,function(n){const e=be.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,om,o=>{o.defaultPrevented||ne.one(e,rm,()=>{Xr(this)&&this.focus()})});const t=be.findOne($C);t&&gr.getInstance(t).hide(),gr.getOrCreateInstance(e).toggle(this)}),Ps(gr),Bt(gr);const jC="offcanvas",bn=".bs.offcanvas",am=".data-api",WC=`load${bn}${am}`,KC="Escape",lm="show",cm="showing",um="hiding",GC="offcanvas-backdrop",dm=".offcanvas.show",YC=`show${bn}`,JC=`shown${bn}`,ZC=`hide${bn}`,fm=`hidePrevented${bn}`,hm=`hidden${bn}`,XC=`resize${bn}`,QC=`click${bn}${am}`,qC=`keydown.dismiss${bn}`,eS='[data-bs-toggle="offcanvas"]',tS={backdrop:!0,keyboard:!0,scroll:!1},nS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class jn 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 tS}static get DefaultType(){return nS}static get NAME(){return jC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,YC,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new wc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(cm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(lm),this._element.classList.remove(cm),ne.trigger(this._element,JC,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,ZC).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(um),this._backdrop.hide();const t=()=>{this._element.classList.remove(lm,um),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new wc().reset(),ne.trigger(this._element,hm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ne.trigger(this._element,fm);return}this.hide()},t=!!this._config.backdrop;return new Xp({className:GC,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new qp({trapElement:this._element})}_addEventListeners(){ne.on(this._element,qC,e=>{if(e.key===KC){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,fm)}})}static jQueryInterface(e){return this.each(function(){const t=jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,QC,eS,function(n){const e=be.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Hn(this))return;ne.one(e,hm,()=>{Xr(this)&&this.focus()});const t=be.findOne(dm);t&&t!==e&&jn.getInstance(t).hide(),jn.getOrCreateInstance(e).toggle(this)}),ne.on(window,WC,()=>{for(const n of be.find(dm))jn.getOrCreateInstance(n).show()}),ne.on(window,XC,()=>{for(const n of be.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&jn.getOrCreateInstance(n).hide()}),Ps(jn),Bt(jn);const pm={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},rS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),oS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,iS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?rS.has(t)?!!oS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function sS(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)iS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const aS="TemplateFactory",lS={allowList:pm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},cS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},uS={entry:"(string|element|function|null)",selector:"(string|element)"};class dS extends jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return lS}static get DefaultType(){return cS}static get NAME(){return aS}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},uS)}_setContent(e,t,r){const o=be.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(yn(t)){this._putElementInTemplate(zn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?sS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Et(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const fS="tooltip",hS=new Set(["sanitize","allowList","sanitizeFn"]),Tc="fade",pS="modal",Gs="show",mS=".tooltip-inner",mm=`.${pS}`,gm="hide.bs.modal",Jo="hover",Ac="focus",gS="click",yS="manual",vS="hide",bS="hidden",ES="show",CS="shown",SS="inserted",wS="click",kS="focusin",TS="focusout",AS="mouseenter",xS="mouseleave",OS={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},MS={allowList:pm,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"},NS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yr extends Yt{constructor(e,t){if(typeof xh>"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 MS}static get DefaultType(){return NS}static get NAME(){return fS}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ne.off(this._element.closest(mm),gm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ne.trigger(this._element,this.constructor.eventName(ES)),r=(Tp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ne.trigger(this._element,this.constructor.eventName(SS))),this._popper=this._createPopper(o),o.classList.add(Gs),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Bs);const s=()=>{ne.trigger(this._element,this.constructor.eventName(CS)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ne.trigger(this._element,this.constructor.eventName(vS)).defaultPrevented)return;if(this._getTipElement().classList.remove(Gs),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Bs);this._activeTrigger[gS]=!1,this._activeTrigger[Ac]=!1,this._activeTrigger[Jo]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(bS)))};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(Tc,Gs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=T8(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Tc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new dS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[mS]: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(Tc)}_isShown(){return this.tip&&this.tip.classList.contains(Gs)}_createPopper(e){const t=Et(this._config.placement,[this,e,this._element]),r=OS[t.toUpperCase()];return Gi(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 Et(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,...Et(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(wS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==yS){const r=t===Jo?this.constructor.eventName(AS):this.constructor.eventName(kS),o=t===Jo?this.constructor.eventName(xS):this.constructor.eventName(TS);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Ac:Jo]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Ac:Jo]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(mm),gm,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=vn.getDataAttributes(this._element);for(const r of Object.keys(t))hS.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:zn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Bt(yr);const IS="popover",_S=".popover-header",DS=".popover-body",LS={...yr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},RS={...yr.DefaultType,content:"(null|string|element|function)"};class xc extends yr{static get Default(){return LS}static get DefaultType(){return RS}static get NAME(){return IS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[_S]:this._getTitle(),[DS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=xc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Bt(xc);const BS="scrollspy",Oc=".bs.scrollspy",PS=".data-api",$S=`activate${Oc}`,ym=`click${Oc}`,FS=`load${Oc}${PS}`,VS="dropdown-item",ro="active",zS='[data-bs-spy="scroll"]',Mc="[href]",HS=".nav, .list-group",vm=".nav-link",US=`${vm}, .nav-item > ${vm}, .list-group-item`,jS=".dropdown",WS=".dropdown-toggle",KS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},GS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ys 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 KS}static get DefaultType(){return GS}static get NAME(){return BS}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=zn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,ym),ne.on(this._config.target,ym,Mc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=be.find(Mc,this._config.target);for(const t of e){if(!t.hash||Hn(t))continue;const r=be.findOne(decodeURI(t.hash),this._element);Xr(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(ro),this._activateParents(e),ne.trigger(this._element,$S,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(VS)){be.findOne(WS,e.closest(jS)).classList.add(ro);return}for(const t of be.parents(e,HS))for(const r of be.prev(t,US))r.classList.add(ro)}_clearActiveClass(e){e.classList.remove(ro);const t=be.find(`${Mc}.${ro}`,e);for(const r of t)r.classList.remove(ro)}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,FS,()=>{for(const n of be.find(zS))Ys.getOrCreateInstance(n)}),Bt(Ys);const YS="tab",vr=".bs.tab",JS=`hide${vr}`,ZS=`hidden${vr}`,XS=`show${vr}`,QS=`shown${vr}`,qS=`click${vr}`,e6=`keydown${vr}`,t6=`load${vr}`,n6="ArrowLeft",bm="ArrowRight",r6="ArrowUp",Em="ArrowDown",br="active",Cm="fade",Nc="show",o6="dropdown",i6=".dropdown-toggle",s6=".dropdown-menu",Ic=":not(.dropdown-toggle)",a6='.list-group, .nav, [role="tablist"]',l6=".nav-item, .list-group-item",c6=`.nav-link${Ic}, .list-group-item${Ic}, [role="tab"]${Ic}`,Sm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',_c=`${c6}, ${Sm}`,u6=`.${br}[data-bs-toggle="tab"], .${br}[data-bs-toggle="pill"], .${br}[data-bs-toggle="list"]`;class oo extends Yt{constructor(e){super(e),this._parent=this._element.closest(a6),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,e6,t=>this._keydown(t)))}static get NAME(){return YS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,JS,{relatedTarget:e}):null;ne.trigger(e,XS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(br),this._activate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Nc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,QS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Cm))}_deactivate(e,t){if(!e)return;e.classList.remove(br),e.blur(),this._deactivate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Nc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,ZS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Cm))}_keydown(e){if(![n6,bm,r6,Em].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[bm,Em].includes(e.key),r=hc(this._getChildren().filter(o=>!Hn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),oo.getOrCreateInstance(r).show())}_getChildren(){return be.find(_c,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=be.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(o6))return;const o=(i,s)=>{const l=be.findOne(i,r);l&&l.classList.toggle(s,t)};o(i6,br),o(s6,Nc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(br)}_getInnerElement(e){return e.matches(_c)?e:be.findOne(_c,e)}_getOuterElement(e){return e.closest(l6)||e}static jQueryInterface(e){return this.each(function(){const t=oo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,qS,Sm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Hn(this)&&oo.getOrCreateInstance(this).show()}),ne.on(window,t6,()=>{for(const n of be.find(u6))oo.getOrCreateInstance(n)}),Bt(oo);const d6="toast",Wn=".bs.toast",f6=`mouseover${Wn}`,h6=`mouseout${Wn}`,p6=`focusin${Wn}`,m6=`focusout${Wn}`,g6=`hide${Wn}`,y6=`hidden${Wn}`,v6=`show${Wn}`,b6=`shown${Wn}`,E6="fade",wm="hide",Js="show",Zs="showing",C6={animation:"boolean",autohide:"boolean",delay:"number"},S6={animation:!0,autohide:!0,delay:5e3};class Zo extends Yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return S6}static get DefaultType(){return C6}static get NAME(){return d6}show(){if(ne.trigger(this._element,v6).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(E6);const t=()=>{this._element.classList.remove(Zs),ne.trigger(this._element,b6),this._maybeScheduleHide()};this._element.classList.remove(wm),Uo(this._element),this._element.classList.add(Js,Zs),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,g6).defaultPrevented)return;const t=()=>{this._element.classList.add(wm),this._element.classList.remove(Zs,Js),ne.trigger(this._element,y6)};this._element.classList.add(Zs),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Js),super.dispose()}isShown(){return this._element.classList.contains(Js)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,f6,e=>this._onInteraction(e,!0)),ne.on(this._element,h6,e=>this._onInteraction(e,!1)),ne.on(this._element,p6,e=>this._onInteraction(e,!0)),ne.on(this._element,m6,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Zo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ps(Zo),Bt(Zo);const w6=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new gr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function k6(n=void 0){const e=l=>i("Succesvol",l,Sr.SUCCESS),t=l=>i("Waarschuwing",l,Sr.WARNING),r=l=>i("Informatie",l,Sr.INFO),o=l=>i("Mislukt",l,Sr.DANGER);function i(l,a,c){const u=`toast-${iu()}`,d={id:u,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=f.h(ya,d),g=f.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Zo.getOrCreateInstance(y,n).show(),s(y))}function s(l){function a(d,h){d.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 km={mounted:n=>{new yr(n)}},T6={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"},pt=f.defineComponent({__name:"BDButton",props:{size:{default:st.MD},variant:{default:T6.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?Cr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),A6={install:n=>{n.component("BDCol",Fc),n.component("BDContainer",Vc),n.component("BDRow",zc),n.component("BDButton",pt),n.component("BDLogo",fa),n.component("BDLink",Cr),n.component("BDDropdownItem",si),n.component("BDDropdown",cc),n.component("BDAlert",qc),n.component("BDProfileImage",lo),n.component("BDZoomslider",nu),n.component("BDCard",pa),n.component("BDCollapsableCard",su),n.component("BDFormInput",du),n.component("BDInputGroup",fu),n.component("BDFormInvalidFeedback",ii),n.component("BDBadge",hu),n.component("BDForm",pu),n.component("BDPagination",mu),n.component("BDDropzone",Cu),n.component("BDMarkdownEditor",yp),n.component("BDModal",Sp),n.component("BDFormSelect",gu),n.component("BDUser",vp),n.component("BDArticle",vu),n.component("BDFormCheckbox",yu),n.component("BDToast",ya),n.component("BDAttachmentPreviewList",Ds),n.component("BDImageAttachmentPreviewList",Ls),n.component("BDHeader",Cp),n.component("BDMobileMenu",lc),n.component("BDChatCloud",bp),n.component("BDTable",Ep),n.component("IconAcademy",Hc),n.component("IconArrowDown",Uc),n.component("IconArrowUp",jc),n.component("IconAttachment",Yn),n.component("IconBold",Qs),n.component("IconBulletList",qs),n.component("IconCalendar",ea),n.component("IconCalendar",ea),n.component("IconCardView",Wc),n.component("IconCaretDown",ta),n.component("IconCaretLeft",na),n.component("IconCaretRight",ra),n.component("IconCheck",so),n.component("IconClose",Xo),n.component("IconDownloadImage",Qo),n.component("IconDownloadImage",Qo),n.component("IconEdit",Kc),n.component("IconError",qo),n.component("IconEyeShow",Gc),n.component("IconEyeSlash",Yc),n.component("IconFile",oa),n.component("IconHyperlink",ia),n.component("IconInfo",ei),n.component("IconItalic",sa),n.component("IconListView",Jc),n.component("IconMenu",ti),n.component("IconMenu",ti),n.component("IconOrderedList",aa),n.component("IconRemove",ao),n.component("IconSort",Zc),n.component("IconSortAsc",la),n.component("IconSortDesc",ca),n.component("IconSortNone",ua),n.component("IconTriangleExclamation",Xc),n.component("IconUnderline",da),n.directive("vBDTooltip",km)}};fe.BDAlert=qc,fe.BDArticle=vu,fe.BDAttachmentPreviewList=Ds,fe.BDBadge=hu,fe.BDButton=pt,fe.BDCard=pa,fe.BDChatCloud=bp,fe.BDCol=Fc,fe.BDCollapsableCard=su,fe.BDContainer=Vc,fe.BDDropdown=cc,fe.BDDropdownItem=si,fe.BDDropzone=Cu,fe.BDForm=pu,fe.BDFormCheckbox=yu,fe.BDFormInput=du,fe.BDFormInvalidFeedback=ii,fe.BDFormSelect=gu,fe.BDHeader=Cp,fe.BDImageAttachmentPreviewList=Ls,fe.BDInputGroup=fu,fe.BDLink=Cr,fe.BDLogo=fa,fe.BDMarkdownEditor=yp,fe.BDMobileMenu=lc,fe.BDModal=Sp,fe.BDPagination=mu,fe.BDProfileImage=lo,fe.BDRow=zc,fe.BDTable=Ep,fe.BDToast=ya,fe.BDUser=vp,fe.BDZoomslider=nu,fe.IconAcademy=Hc,fe.IconArrowDown=Uc,fe.IconArrowUp=jc,fe.IconAttachment=Yn,fe.IconBold=Qs,fe.IconBulletList=qs,fe.IconCalendar=ea,fe.IconCardView=Wc,fe.IconCaretDown=ta,fe.IconCaretLeft=na,fe.IconCaretRight=ra,fe.IconCheck=so,fe.IconClose=Xo,fe.IconDownloadImage=Qo,fe.IconEdit=Kc,fe.IconError=qo,fe.IconEyeShow=Gc,fe.IconEyeSlash=Yc,fe.IconFile=oa,fe.IconHyperlink=ia,fe.IconInfo=ei,fe.IconItalic=sa,fe.IconListView=Jc,fe.IconMenu=ti,fe.IconOrderedList=aa,fe.IconRemove=ao,fe.IconSort=Zc,fe.IconSortAsc=la,fe.IconSortDesc=ca,fe.IconSortNone=ua,fe.IconTriangleExclamation=Xc,fe.IconUnderline=da,fe.default=A6,fe.useModal=w6,fe.useToaster=k6,fe.vBdTooltip=km,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
131
+ */const Vn=new Map,uc={set(n,e,t){Vn.has(n)||Vn.set(n,new Map);const r=Vn.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 Vn.has(n)&&Vn.get(n).get(e)||null},remove(n,e){if(!Vn.has(n))return;const t=Vn.get(n);t.delete(e),t.size===0&&Vn.delete(n)}},w8=1e6,k8=1e3,dc="transitionend",wp=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),T8=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),A8=n=>{do n+=Math.floor(Math.random()*w8);while(document.getElementById(n));return n},x8=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))*k8)},kp=n=>{n.dispatchEvent(new Event(dc))},yn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),zn=n=>yn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(wp(n)):null,Xr=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},Hn=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",Tp=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?Tp(n.parentNode):null},Bs=()=>{},Uo=n=>{n.offsetHeight},Ap=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,fc=[],O8=n=>{document.readyState==="loading"?(fc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of fc)e()}),fc.push(n)):n()},Rt=()=>document.documentElement.dir==="rtl",Bt=n=>{O8(()=>{const e=Ap();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)}})},Et=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,xp=(n,e,t=!0)=>{if(!t){Et(n);return}const r=5,o=x8(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(dc,s),Et(n))};e.addEventListener(dc,s),setTimeout(()=>{i||kp(e)},o)},hc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},M8=/[^.]*(?=\..*)\.|.*/,N8=/\..*/,I8=/::\d+$/,pc={};let Op=1;const Mp={mouseenter:"mouseover",mouseleave:"mouseout"},_8=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 Np(n,e){return e&&`${e}::${Op++}`||n.uidEvent||Op++}function Ip(n){const e=Np(n);return n.uidEvent=e,pc[e]=pc[e]||{},pc[e]}function D8(n,e){return function t(r){return gc(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function L8(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return gc(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function _p(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Dp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=Rp(n);return _8.has(i)||(i=n),[r,o,i]}function Lp(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Dp(e,t,r);e in Mp&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=Ip(n),c=a[l]||(a[l]={}),u=_p(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=Np(s,e.replace(M8,"")),h=i?L8(n,t,s):D8(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function mc(n,e,t,r,o){const i=_p(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function R8(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&mc(n,e,t,s.callable,s.delegationSelector)}function Rp(n){return n=n.replace(N8,""),Mp[n]||n}const ne={on(n,e,t,r){Lp(n,e,t,r,!1)},one(n,e,t,r){Lp(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Dp(e,t,r),l=s!==e,a=Ip(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;mc(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))R8(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const p=d.replace(I8,"");(!l||e.includes(p))&&mc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Ap(),o=Rp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=gc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.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 Bp(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 yc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const vn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${yc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${yc(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]=Bp(n.dataset[r])}return e},getDataAttribute(n,e){return Bp(n.getAttribute(`data-bs-${yc(e)}`))}};class jo{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)?vn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...yn(t)?vn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=yn(i)?"element":T8(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const B8="5.3.0";class Yt extends jo{constructor(e,t){super(),e=zn(e),e&&(this._element=e,this._config=this._getConfig(t),uc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){uc.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){xp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return uc.get(zn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return B8}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 vc=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 wp(e)},be={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=>!Hn(t)&&Xr(t))},getSelectorFromElement(n){const e=vc(n);return e&&be.findOne(e)?e:null},getElementFromSelector(n){const e=vc(n);return e?be.findOne(e):null},getMultipleElementsFromSelector(n){const e=vc(n);return e?be.find(e):[]}},Ps=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Hn(this))return;const i=be.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},P8="alert",Pp=".bs.alert",$8=`close${Pp}`,F8=`closed${Pp}`,V8="fade",z8="show";class $s extends Yt{static get NAME(){return P8}close(){if(ne.trigger(this._element,$8).defaultPrevented)return;this._element.classList.remove(z8);const t=this._element.classList.contains(V8);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,F8),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=$s.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)}})}}Ps($s,"close"),Bt($s);const H8="button",U8=".bs.button",j8=".data-api",W8="active",$p='[data-bs-toggle="button"]',K8=`click${U8}${j8}`;class Fs extends Yt{static get NAME(){return H8}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(W8))}static jQueryInterface(e){return this.each(function(){const t=Fs.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,K8,$p,n=>{n.preventDefault();const e=n.target.closest($p);Fs.getOrCreateInstance(e).toggle()}),Bt(Fs);const G8="swipe",Qr=".bs.swipe",Y8=`touchstart${Qr}`,J8=`touchmove${Qr}`,Z8=`touchend${Qr}`,X8=`pointerdown${Qr}`,Q8=`pointerup${Qr}`,q8="touch",e4="pen",t4="pointer-event",n4=40,r4={endCallback:null,leftCallback:null,rightCallback:null},o4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Vs extends jo{constructor(e,t){super(),this._element=e,!(!e||!Vs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return r4}static get DefaultType(){return o4}static get NAME(){return G8}dispose(){ne.off(this._element,Qr)}_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(),Et(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<=n4)return;const t=e/this._deltaX;this._deltaX=0,t&&Et(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,X8,e=>this._start(e)),ne.on(this._element,Q8,e=>this._end(e)),this._element.classList.add(t4)):(ne.on(this._element,Y8,e=>this._start(e)),ne.on(this._element,J8,e=>this._move(e)),ne.on(this._element,Z8,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===e4||e.pointerType===q8)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const i4="carousel",Un=".bs.carousel",Fp=".data-api",s4="ArrowLeft",a4="ArrowRight",l4=500,Wo="next",qr="prev",eo="left",zs="right",c4=`slide${Un}`,bc=`slid${Un}`,u4=`keydown${Un}`,d4=`mouseenter${Un}`,f4=`mouseleave${Un}`,h4=`dragstart${Un}`,p4=`load${Un}${Fp}`,m4=`click${Un}${Fp}`,Vp="carousel",Hs="active",g4="slide",y4="carousel-item-end",v4="carousel-item-start",b4="carousel-item-next",E4="carousel-item-prev",zp=".active",Hp=".carousel-item",C4=zp+Hp,S4=".carousel-item img",w4=".carousel-indicators",k4="[data-bs-slide], [data-bs-slide-to]",T4='[data-bs-ride="carousel"]',A4={[s4]:zs,[a4]:eo},x4={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},O4={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ko 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=be.findOne(w4,this._element),this._addEventListeners(),this._config.ride===Vp&&this.cycle()}static get Default(){return x4}static get DefaultType(){return O4}static get NAME(){return i4}next(){this._slide(Wo)}nextWhenVisible(){!document.hidden&&Xr(this._element)&&this.next()}prev(){this._slide(qr)}pause(){this._isSliding&&kp(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ne.one(this._element,bc,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ne.one(this._element,bc,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Wo:qr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ne.on(this._element,u4,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,d4,()=>this.pause()),ne.on(this._element,f4,()=>this._maybeEnableCycle())),this._config.touch&&Vs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of be.find(S4,this._element))ne.on(r,h4,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(eo)),rightCallback:()=>this._slide(this._directionToOrder(zs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),l4+this._config.interval))}};this._swipeHelper=new Vs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=A4[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=be.findOne(zp,this._indicatorsElement);t.classList.remove(Hs),t.removeAttribute("aria-current");const r=be.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Hs),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===Wo,i=t||hc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=p=>ne.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(c4).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?v4:y4,d=o?b4:E4;i.classList.add(d),Uo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(Hs),r.classList.remove(Hs,d,u),this._isSliding=!1,l(bc)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(g4)}_getActive(){return be.findOne(C4,this._element)}_getItems(){return be.find(Hp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===eo?qr:Wo:e===eo?Wo:qr}_orderToDirection(e){return Rt()?e===qr?eo:zs:e===qr?zs:eo}static jQueryInterface(e){return this.each(function(){const t=Ko.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,m4,k4,function(n){const e=be.getElementFromSelector(this);if(!e||!e.classList.contains(Vp))return;n.preventDefault();const t=Ko.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(vn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),ne.on(window,p4,()=>{const n=be.find(T4);for(const e of n)Ko.getOrCreateInstance(e)}),Bt(Ko);const M4="collapse",Go=".bs.collapse",N4=".data-api",I4=`show${Go}`,_4=`shown${Go}`,D4=`hide${Go}`,L4=`hidden${Go}`,R4=`click${Go}${N4}`,Ec="show",to="collapse",Us="collapsing",B4="collapsed",P4=`:scope .${to} .${to}`,$4="collapse-horizontal",F4="width",V4="height",z4=".collapse.show, .collapse.collapsing",Cc='[data-bs-toggle="collapse"]',H4={parent:null,toggle:!0},U4={parent:"(null|element)",toggle:"boolean"};class Yo extends Yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=be.find(Cc);for(const o of r){const i=be.getSelectorFromElement(o),s=be.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return H4}static get DefaultType(){return U4}static get NAME(){return M4}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(z4).filter(l=>l!==this._element).map(l=>Yo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,I4).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(to),this._element.classList.add(Us),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to,Ec),this._element.style[r]="",ne.trigger(this._element,_4)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ne.trigger(this._element,D4).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Uo(this._element),this._element.classList.add(Us),this._element.classList.remove(to,Ec);for(const o of this._triggerArray){const i=be.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to),ne.trigger(this._element,L4)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ec)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=zn(e.parent),e}_getDimension(){return this._element.classList.contains($4)?F4:V4}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Cc);for(const t of e){const r=be.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=be.find(P4,this._config.parent);return be.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(B4,!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=Yo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,R4,Cc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of be.getMultipleElementsFromSelector(this))Yo.getOrCreateInstance(e,{toggle:!1}).toggle()}),Bt(Yo);const Up="dropdown",pr=".bs.dropdown",Sc=".data-api",j4="Escape",jp="Tab",W4="ArrowUp",Wp="ArrowDown",K4=2,G4=`hide${pr}`,Y4=`hidden${pr}`,J4=`show${pr}`,Z4=`shown${pr}`,Kp=`click${pr}${Sc}`,Gp=`keydown${pr}${Sc}`,X4=`keyup${pr}${Sc}`,no="show",Q4="dropup",q4="dropend",eC="dropstart",tC="dropup-center",nC="dropdown-center",mr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',rC=`${mr}.${no}`,js=".dropdown-menu",oC=".navbar",iC=".navbar-nav",sC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",aC=Rt()?"top-end":"top-start",lC=Rt()?"top-start":"top-end",cC=Rt()?"bottom-end":"bottom-start",uC=Rt()?"bottom-start":"bottom-end",dC=Rt()?"left-start":"right-start",fC=Rt()?"right-start":"left-start",hC="top",pC="bottom",mC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},gC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class an extends Yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=be.next(this._element,js)[0]||be.prev(this._element,js)[0]||be.findOne(js,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return mC}static get DefaultType(){return gC}static get NAME(){return Up}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Hn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,J4,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(iC))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Bs);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(no),this._element.classList.add(no),ne.trigger(this._element,Z4,e)}}hide(){if(Hn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ne.trigger(this._element,G4,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Bs);this._popper&&this._popper.destroy(),this._menu.classList.remove(no),this._element.classList.remove(no),this._element.setAttribute("aria-expanded","false"),vn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,Y4,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!yn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Up.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof xh>"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=zn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Gi(e,this._menu,t)}_isShown(){return this._menu.classList.contains(no)}_getPlacement(){const e=this._parent;if(e.classList.contains(q4))return dC;if(e.classList.contains(eC))return fC;if(e.classList.contains(tC))return hC;if(e.classList.contains(nC))return pC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Q4)?t?lC:aC:t?uC:cC}_detectNavbar(){return this._element.closest(oC)!==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")&&(vn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Et(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=be.find(sC,this._menu).filter(o=>Xr(o));r.length&&hc(r,t,e===Wp,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=an.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===K4||e.type==="keyup"&&e.key!==jp)return;const t=be.find(rC);for(const r of t){const o=an.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===jp||/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===j4,o=[W4,Wp].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(mr)?this:be.prev(this,mr)[0]||be.next(this,mr)[0]||be.findOne(mr,e.delegateTarget.parentNode),s=an.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,Gp,mr,an.dataApiKeydownHandler),ne.on(document,Gp,js,an.dataApiKeydownHandler),ne.on(document,Kp,an.clearMenus),ne.on(document,X4,an.clearMenus),ne.on(document,Kp,mr,function(n){n.preventDefault(),an.getOrCreateInstance(this).toggle()}),Bt(an);const Yp="backdrop",yC="fade",Jp="show",Zp=`mousedown.bs.${Yp}`,vC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},bC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return vC}static get DefaultType(){return bC}static get NAME(){return Yp}show(e){if(!this._config.isVisible){Et(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Uo(t),t.classList.add(Jp),this._emulateAnimation(()=>{Et(e)})}hide(e){if(!this._config.isVisible){Et(e);return}this._getElement().classList.remove(Jp),this._emulateAnimation(()=>{this.dispose(),Et(e)})}dispose(){this._isAppended&&(ne.off(this._element,Zp),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(yC),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=zn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,Zp,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){xp(e,this._getElement(),this._config.isAnimated)}}const EC="focustrap",Ws=".bs.focustrap",CC=`focusin${Ws}`,SC=`keydown.tab${Ws}`,wC="Tab",kC="forward",Qp="backward",TC={autofocus:!0,trapElement:null},AC={autofocus:"boolean",trapElement:"element"};class qp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return TC}static get DefaultType(){return AC}static get NAME(){return EC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ws),ne.on(document,CC,e=>this._handleFocusin(e)),ne.on(document,SC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ws))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=be.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===Qp?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===wC&&(this._lastTabNavDirection=e.shiftKey?Qp:kC)}}const em=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tm=".sticky-top",Ks="padding-right",nm="margin-right";class wc{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,Ks,t=>t+e),this._setElementAttributes(em,Ks,t=>t+e),this._setElementAttributes(tm,nm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ks),this._resetElementAttributes(em,Ks),this._resetElementAttributes(tm,nm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&vn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=vn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}vn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(yn(e)){t(e);return}for(const r of be.find(e,this._element))t(r)}}const xC="modal",Pt=".bs.modal",OC=".data-api",MC="Escape",NC=`hide${Pt}`,IC=`hidePrevented${Pt}`,rm=`hidden${Pt}`,om=`show${Pt}`,_C=`shown${Pt}`,DC=`resize${Pt}`,LC=`click.dismiss${Pt}`,RC=`mousedown.dismiss${Pt}`,BC=`keydown.dismiss${Pt}`,PC=`click${Pt}${OC}`,im="modal-open",$C="fade",sm="show",kc="modal-static",FC=".modal.show",VC=".modal-dialog",zC=".modal-body",HC='[data-bs-toggle="modal"]',UC={backdrop:!0,focus:!0,keyboard:!0},jC={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gr extends Yt{constructor(e,t){super(e,t),this._dialog=be.findOne(VC,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new wc,this._addEventListeners()}static get Default(){return UC}static get DefaultType(){return jC}static get NAME(){return xC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,om,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(im),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,NC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(sm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Pt),ne.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xp({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new qp({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=be.findOne(zC,this._dialog);t&&(t.scrollTop=0),Uo(this._element),this._element.classList.add(sm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,_C,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,BC,e=>{if(e.key===MC){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,DC,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,RC,e=>{ne.one(this._element,LC,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(im),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,rm)})}_isAnimated(){return this._element.classList.contains($C)}_triggerBackdropTransition(){if(ne.trigger(this._element,IC).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(kc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(kc),this._queueCallback(()=>{this._element.classList.remove(kc),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=Rt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Rt()?"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=gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,PC,HC,function(n){const e=be.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,om,o=>{o.defaultPrevented||ne.one(e,rm,()=>{Xr(this)&&this.focus()})});const t=be.findOne(FC);t&&gr.getInstance(t).hide(),gr.getOrCreateInstance(e).toggle(this)}),Ps(gr),Bt(gr);const WC="offcanvas",bn=".bs.offcanvas",am=".data-api",KC=`load${bn}${am}`,GC="Escape",lm="show",cm="showing",um="hiding",YC="offcanvas-backdrop",dm=".offcanvas.show",JC=`show${bn}`,ZC=`shown${bn}`,XC=`hide${bn}`,fm=`hidePrevented${bn}`,hm=`hidden${bn}`,QC=`resize${bn}`,qC=`click${bn}${am}`,eS=`keydown.dismiss${bn}`,tS='[data-bs-toggle="offcanvas"]',nS={backdrop:!0,keyboard:!0,scroll:!1},rS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class jn 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 nS}static get DefaultType(){return rS}static get NAME(){return WC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,JC,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new wc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(cm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(lm),this._element.classList.remove(cm),ne.trigger(this._element,ZC,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,XC).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(um),this._backdrop.hide();const t=()=>{this._element.classList.remove(lm,um),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new wc().reset(),ne.trigger(this._element,hm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ne.trigger(this._element,fm);return}this.hide()},t=!!this._config.backdrop;return new Xp({className:YC,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new qp({trapElement:this._element})}_addEventListeners(){ne.on(this._element,eS,e=>{if(e.key===GC){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,fm)}})}static jQueryInterface(e){return this.each(function(){const t=jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,qC,tS,function(n){const e=be.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Hn(this))return;ne.one(e,hm,()=>{Xr(this)&&this.focus()});const t=be.findOne(dm);t&&t!==e&&jn.getInstance(t).hide(),jn.getOrCreateInstance(e).toggle(this)}),ne.on(window,KC,()=>{for(const n of be.find(dm))jn.getOrCreateInstance(n).show()}),ne.on(window,QC,()=>{for(const n of be.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&jn.getOrCreateInstance(n).hide()}),Ps(jn),Bt(jn);const pm={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},oS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),iS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,sS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?oS.has(t)?!!iS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function aS(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)sS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const lS="TemplateFactory",cS={allowList:pm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},uS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},dS={entry:"(string|element|function|null)",selector:"(string|element)"};class fS extends jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return cS}static get DefaultType(){return uS}static get NAME(){return lS}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},dS)}_setContent(e,t,r){const o=be.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(yn(t)){this._putElementInTemplate(zn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?aS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Et(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const hS="tooltip",pS=new Set(["sanitize","allowList","sanitizeFn"]),Tc="fade",mS="modal",Gs="show",gS=".tooltip-inner",mm=`.${mS}`,gm="hide.bs.modal",Jo="hover",Ac="focus",yS="click",vS="manual",bS="hide",ES="hidden",CS="show",SS="shown",wS="inserted",kS="click",TS="focusin",AS="focusout",xS="mouseenter",OS="mouseleave",MS={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},NS={allowList:pm,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"},IS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yr extends Yt{constructor(e,t){if(typeof xh>"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 NS}static get DefaultType(){return IS}static get NAME(){return hS}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ne.off(this._element.closest(mm),gm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ne.trigger(this._element,this.constructor.eventName(CS)),r=(Tp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ne.trigger(this._element,this.constructor.eventName(wS))),this._popper=this._createPopper(o),o.classList.add(Gs),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Bs);const s=()=>{ne.trigger(this._element,this.constructor.eventName(SS)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ne.trigger(this._element,this.constructor.eventName(bS)).defaultPrevented)return;if(this._getTipElement().classList.remove(Gs),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Bs);this._activeTrigger[yS]=!1,this._activeTrigger[Ac]=!1,this._activeTrigger[Jo]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(ES)))};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(Tc,Gs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=A8(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Tc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new fS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[gS]: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(Tc)}_isShown(){return this.tip&&this.tip.classList.contains(Gs)}_createPopper(e){const t=Et(this._config.placement,[this,e,this._element]),r=MS[t.toUpperCase()];return Gi(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 Et(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,...Et(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(kS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==vS){const r=t===Jo?this.constructor.eventName(xS):this.constructor.eventName(TS),o=t===Jo?this.constructor.eventName(OS):this.constructor.eventName(AS);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Ac:Jo]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Ac:Jo]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(mm),gm,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=vn.getDataAttributes(this._element);for(const r of Object.keys(t))pS.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:zn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Bt(yr);const _S="popover",DS=".popover-header",LS=".popover-body",RS={...yr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},BS={...yr.DefaultType,content:"(null|string|element|function)"};class xc extends yr{static get Default(){return RS}static get DefaultType(){return BS}static get NAME(){return _S}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[DS]:this._getTitle(),[LS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=xc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Bt(xc);const PS="scrollspy",Oc=".bs.scrollspy",$S=".data-api",FS=`activate${Oc}`,ym=`click${Oc}`,VS=`load${Oc}${$S}`,zS="dropdown-item",ro="active",HS='[data-bs-spy="scroll"]',Mc="[href]",US=".nav, .list-group",vm=".nav-link",jS=`${vm}, .nav-item > ${vm}, .list-group-item`,WS=".dropdown",KS=".dropdown-toggle",GS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},YS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ys 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 GS}static get DefaultType(){return YS}static get NAME(){return PS}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=zn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,ym),ne.on(this._config.target,ym,Mc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=be.find(Mc,this._config.target);for(const t of e){if(!t.hash||Hn(t))continue;const r=be.findOne(decodeURI(t.hash),this._element);Xr(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(ro),this._activateParents(e),ne.trigger(this._element,FS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(zS)){be.findOne(KS,e.closest(WS)).classList.add(ro);return}for(const t of be.parents(e,US))for(const r of be.prev(t,jS))r.classList.add(ro)}_clearActiveClass(e){e.classList.remove(ro);const t=be.find(`${Mc}.${ro}`,e);for(const r of t)r.classList.remove(ro)}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,VS,()=>{for(const n of be.find(HS))Ys.getOrCreateInstance(n)}),Bt(Ys);const JS="tab",vr=".bs.tab",ZS=`hide${vr}`,XS=`hidden${vr}`,QS=`show${vr}`,qS=`shown${vr}`,e6=`click${vr}`,t6=`keydown${vr}`,n6=`load${vr}`,r6="ArrowLeft",bm="ArrowRight",o6="ArrowUp",Em="ArrowDown",br="active",Cm="fade",Nc="show",i6="dropdown",s6=".dropdown-toggle",a6=".dropdown-menu",Ic=":not(.dropdown-toggle)",l6='.list-group, .nav, [role="tablist"]',c6=".nav-item, .list-group-item",u6=`.nav-link${Ic}, .list-group-item${Ic}, [role="tab"]${Ic}`,Sm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',_c=`${u6}, ${Sm}`,d6=`.${br}[data-bs-toggle="tab"], .${br}[data-bs-toggle="pill"], .${br}[data-bs-toggle="list"]`;class oo extends Yt{constructor(e){super(e),this._parent=this._element.closest(l6),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,t6,t=>this._keydown(t)))}static get NAME(){return JS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,ZS,{relatedTarget:e}):null;ne.trigger(e,QS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(br),this._activate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Nc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,qS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Cm))}_deactivate(e,t){if(!e)return;e.classList.remove(br),e.blur(),this._deactivate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Nc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,XS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Cm))}_keydown(e){if(![r6,bm,o6,Em].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[bm,Em].includes(e.key),r=hc(this._getChildren().filter(o=>!Hn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),oo.getOrCreateInstance(r).show())}_getChildren(){return be.find(_c,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=be.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(i6))return;const o=(i,s)=>{const l=be.findOne(i,r);l&&l.classList.toggle(s,t)};o(s6,br),o(a6,Nc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(br)}_getInnerElement(e){return e.matches(_c)?e:be.findOne(_c,e)}_getOuterElement(e){return e.closest(c6)||e}static jQueryInterface(e){return this.each(function(){const t=oo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,e6,Sm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Hn(this)&&oo.getOrCreateInstance(this).show()}),ne.on(window,n6,()=>{for(const n of be.find(d6))oo.getOrCreateInstance(n)}),Bt(oo);const f6="toast",Wn=".bs.toast",h6=`mouseover${Wn}`,p6=`mouseout${Wn}`,m6=`focusin${Wn}`,g6=`focusout${Wn}`,y6=`hide${Wn}`,v6=`hidden${Wn}`,b6=`show${Wn}`,E6=`shown${Wn}`,C6="fade",wm="hide",Js="show",Zs="showing",S6={animation:"boolean",autohide:"boolean",delay:"number"},w6={animation:!0,autohide:!0,delay:5e3};class Zo extends Yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return w6}static get DefaultType(){return S6}static get NAME(){return f6}show(){if(ne.trigger(this._element,b6).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(C6);const t=()=>{this._element.classList.remove(Zs),ne.trigger(this._element,E6),this._maybeScheduleHide()};this._element.classList.remove(wm),Uo(this._element),this._element.classList.add(Js,Zs),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,y6).defaultPrevented)return;const t=()=>{this._element.classList.add(wm),this._element.classList.remove(Zs,Js),ne.trigger(this._element,v6)};this._element.classList.add(Zs),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Js),super.dispose()}isShown(){return this._element.classList.contains(Js)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,h6,e=>this._onInteraction(e,!0)),ne.on(this._element,p6,e=>this._onInteraction(e,!1)),ne.on(this._element,m6,e=>this._onInteraction(e,!0)),ne.on(this._element,g6,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Zo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ps(Zo),Bt(Zo);const k6=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new gr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function T6(n=void 0){const e=l=>i("Succesvol",l,Sr.SUCCESS),t=l=>i("Waarschuwing",l,Sr.WARNING),r=l=>i("Informatie",l,Sr.INFO),o=l=>i("Mislukt",l,Sr.DANGER);function i(l,a,c){const u=`toast-${iu()}`,d={id:u,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=f.h(ya,d),g=f.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Zo.getOrCreateInstance(y,n).show(),s(y))}function s(l){function a(d,h){d.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 km={mounted:n=>{new yr(n)}},A6={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"},pt=f.defineComponent({__name:"BDButton",props:{size:{default:st.MD},variant:{default:A6.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?Cr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),x6={install:n=>{n.component("BDCol",Fc),n.component("BDContainer",Vc),n.component("BDRow",zc),n.component("BDButton",pt),n.component("BDLogo",fa),n.component("BDLink",Cr),n.component("BDDropdownItem",si),n.component("BDDropdown",cc),n.component("BDAlert",qc),n.component("BDProfileImage",lo),n.component("BDZoomslider",nu),n.component("BDCard",pa),n.component("BDCollapsableCard",su),n.component("BDFormInput",du),n.component("BDInputGroup",fu),n.component("BDFormInvalidFeedback",ii),n.component("BDBadge",hu),n.component("BDForm",pu),n.component("BDPagination",mu),n.component("BDDropzone",Cu),n.component("BDMarkdownEditor",yp),n.component("BDModal",Sp),n.component("BDFormSelect",gu),n.component("BDUser",vp),n.component("BDArticle",vu),n.component("BDFormCheckbox",yu),n.component("BDToast",ya),n.component("BDAttachmentPreviewList",Ds),n.component("BDImageAttachmentPreviewList",Ls),n.component("BDHeader",Cp),n.component("BDMobileMenu",lc),n.component("BDChatCloud",bp),n.component("BDTable",Ep),n.component("IconAcademy",Hc),n.component("IconArrowDown",Uc),n.component("IconArrowUp",jc),n.component("IconAttachment",Yn),n.component("IconBold",Qs),n.component("IconBulletList",qs),n.component("IconCalendar",ea),n.component("IconCalendar",ea),n.component("IconCardView",Wc),n.component("IconCaretDown",ta),n.component("IconCaretLeft",na),n.component("IconCaretRight",ra),n.component("IconCheck",so),n.component("IconClose",Xo),n.component("IconDownloadImage",Qo),n.component("IconDownloadImage",Qo),n.component("IconEdit",Kc),n.component("IconError",qo),n.component("IconEyeShow",Gc),n.component("IconEyeSlash",Yc),n.component("IconFile",oa),n.component("IconHyperlink",ia),n.component("IconInfo",ei),n.component("IconItalic",sa),n.component("IconListView",Jc),n.component("IconMenu",ti),n.component("IconMenu",ti),n.component("IconOrderedList",aa),n.component("IconRemove",ao),n.component("IconSort",Zc),n.component("IconSortAsc",la),n.component("IconSortDesc",ca),n.component("IconSortNone",ua),n.component("IconTriangleExclamation",Xc),n.component("IconUnderline",da),n.directive("vBDTooltip",km)}};fe.BDAlert=qc,fe.BDArticle=vu,fe.BDAttachmentPreviewList=Ds,fe.BDBadge=hu,fe.BDButton=pt,fe.BDCard=pa,fe.BDChatCloud=bp,fe.BDCol=Fc,fe.BDCollapsableCard=su,fe.BDContainer=Vc,fe.BDDropdown=cc,fe.BDDropdownItem=si,fe.BDDropzone=Cu,fe.BDForm=pu,fe.BDFormCheckbox=yu,fe.BDFormInput=du,fe.BDFormInvalidFeedback=ii,fe.BDFormSelect=gu,fe.BDHeader=Cp,fe.BDImageAttachmentPreviewList=Ls,fe.BDInputGroup=fu,fe.BDLink=Cr,fe.BDLogo=fa,fe.BDMarkdownEditor=yp,fe.BDMobileMenu=lc,fe.BDModal=Sp,fe.BDPagination=mu,fe.BDProfileImage=lo,fe.BDRow=zc,fe.BDTable=Ep,fe.BDToast=ya,fe.BDUser=vp,fe.BDZoomslider=nu,fe.IconAcademy=Hc,fe.IconArrowDown=Uc,fe.IconArrowUp=jc,fe.IconAttachment=Yn,fe.IconBold=Qs,fe.IconBulletList=qs,fe.IconCalendar=ea,fe.IconCardView=Wc,fe.IconCaretDown=ta,fe.IconCaretLeft=na,fe.IconCaretRight=ra,fe.IconCheck=so,fe.IconClose=Xo,fe.IconDownloadImage=Qo,fe.IconEdit=Kc,fe.IconError=qo,fe.IconEyeShow=Gc,fe.IconEyeSlash=Yc,fe.IconFile=oa,fe.IconHyperlink=ia,fe.IconInfo=ei,fe.IconItalic=sa,fe.IconListView=Jc,fe.IconMenu=ti,fe.IconOrderedList=aa,fe.IconRemove=ao,fe.IconSort=Zc,fe.IconSortAsc=la,fe.IconSortDesc=ca,fe.IconSortNone=ua,fe.IconTriangleExclamation=Xc,fe.IconUnderline=da,fe.default=x6,fe.useModal=k6,fe.useToaster=T6,fe.vBdTooltip=km,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -13,6 +13,15 @@
13
13
  padding: revert;
14
14
  margin: revert;
15
15
  height: revert;
16
+ display: flex;
17
+ gap: 4px;
18
+ background: transparent;
19
+ color: $gray-primary;
20
+
21
+ .icon-close {
22
+ width: 24px;
23
+ height: 24px;
24
+ }
16
25
  }
17
26
 
18
27
  @include media-breakpoint-up(md) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.26.0",
4
+ "version": "0.26.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"