@beterdichtbij/component-library 0.25.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.
- package/dist/bd-component-lib.cjs.js +2 -2
- package/dist/bd-component-lib.es.js +500 -493
- package/dist/bd-component-lib.umd.js +2 -2
- package/dist/components/organisms/BDHeader/BDHeader.vue.d.ts +14 -7
- package/dist/scss/_header.scss +39 -9
- package/dist/scss/_modal.scss +9 -0
- package/dist/scss/component-library-styling.scss +2 -0
- package/package.json +1 -1
|
@@ -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 F7(){ze.scanner=N7(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=L7(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 V7(n){return ze.initialized||F7(),R7(ze.parser.start,n,I7(ze.scanner.start,n))}function Nc(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 Mc(t),o=V7(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 z7(n){return new Et({key:new Kt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=lb(t.doc,[...e]);if(vb(l).forEach(({newRange:c})=>{const u=ub(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(v=>v!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=d.pos+h.lastIndexOf(m);if(!m)return!1;Nc(m).filter(v=>v.isLink).map(v=>({...v,from:g+v.start+1,to:g+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>n.validate?n.validate(v.value):!0).forEach(v=>{uc(v.from,v.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!s.steps.length)return s}})}function H7(n){return new Et({key:new Kt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=mp(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 U7(n){return new Et({key:new Kt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=Nc(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 j7=an.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){$d(n);return}$d(n.scheme,n.optionalSlashes)})},onDestroy(){$7()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Io({find:n=>Nc(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(z7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(H7({type:this.type})),this.options.linkOnPaste&&n.push(U7({editor:this.editor,type:this.type})),n}}),W7=j7.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})}}}}),K7=Pt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Et({key:new Kt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=Rt.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),G7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Y7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,J7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Z7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,X7=an.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$i({find:G7,type:this.type}),$i({find:J7,type:this.type})]},addPasteRules(){return[Io({find:Y7,type:this.type}),Io({find:Z7,type:this.type})]}}),Q7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,q7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,e8=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,t8=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,n8=an.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$i({find:Q7,type:this.type}),$i({find:e8,type:this.type})]},addPasteRules(){return[Io({find:q7,type:this.type}),Io({find:t8,type:this.type})]}}),r8=an.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),o8=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),i8=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Fd=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Vd=/^\s*([-+*])\s$/,s8=bn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(i8.name,this.editor.getAttributes(Fd.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:Vd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:Vd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Fd.name),editor:this.editor})),[n]}}),a8=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),zd=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Hd=/^(\d+)\.\s$/,l8=bn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",mt(this.options.HTMLAttributes,t),0]:["ol",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(a8.name,this.editor.getAttributes(zd.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:Hd,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:Hd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(zd.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),c8=bn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",mt(this.options.HTMLAttributes,n)]},renderText(){return`
|
|
127
|
-
`},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Na={BASIC:"basic",FULL:"full"},u8={class:"attachment-list"},d8={class:"attachment-link"},f8={key:1,class:"attachment-no-download"},h8=["href"],Ws=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",u8,[(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",d8,[r.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",f8,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,h8))])]))),128))]))}}),p8={class:"attachment-list"},m8={class:"attachment"},g8=["onClick"],v8=["src","alt"],y8=["onClick"],b8=["href"],E8={class:"btn btn-light download-button-image"},C8=["src","alt"],Ks=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",p8,[(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",m8,[i.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,v8)],8,g8)):(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",E8,[f.createVNode(f.unref(Ei))])],8,b8)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,C8)],8,y8))])]))),128))]))}}),Ud=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),S8=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,w8=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,k8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,x8=(n,e)=>e?Ud(n):!Ud(n),bs=(n,e)=>n===void 0?void 0:n.filter(o=>x8(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:S8(o),previewUrl:w8(o),fullImageUrl:k8(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),T8={class:"bd-markdown-editor__menu-bottom"},A8={key:0,class:"vr"},O8={key:4,class:"vr"},M8={key:7,class:"vr"},im=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Na.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=gr(t,"modelValue",e),i=[b7,E7,C7,K7.configure({placeholder:t.placeholder}),c8];t.variant===Na.FULL&&i.push(X7,n8,r8,o8,s8,l8,W7.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=y7({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:b,to:D}=S.state.selection;if(k.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===Na.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},v=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(v7),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ws,{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(Ks,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",T8,[f.createVNode(lt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(cr))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",A8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Nl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Pl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Hl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",O8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{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(Il))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref($l))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",M8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{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(Bl))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(As),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),N8={class:"header"},I8=f.createElementVNode("div",null,"Menu",-1),D8={class:"icon-close-wrapper"},_8={class:"navbar"},L8={class:"nav navbar-nav w-100"},R8={class:"nav-item"},B8={class:"nav-item"},Ic=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",N8,[I8,f.createElementVNode("div",D8,[f.createVNode(ws,{onClick:o})])]),f.createElementVNode("nav",_8,[f.createElementVNode("ul",L8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",R8,[f.createVNode(zr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.createElementVNode("li",B8,[f.createVNode(zr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),P8={class:"bd-user"},$8={class:"bd-user__information"},F8={class:"text-break"},V8={class:"overflow-x-hidden"},sm=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",P8,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(Fo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",$8,[f.createElementVNode("header",null,[f.createElementVNode("h5",F8,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",V8,f.toDisplayString(t.value),1)])]))}}),z8="",H8={class:"bd-chat-cloud-card"},U8={class:"bd-chat-cloud-card__header"},j8={class:"bd-chat-cloud-card__body"},W8=["innerHTML"],K8={class:"bd-chat-cloud-card__footer"},am=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":z8),o=f.computed(()=>bs(t.files,!1)),i=f.computed(()=>bs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(Fo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",H8,[f.createElementVNode("div",U8,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(lt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",j8,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,W8)])]),f.createElementVNode("div",K8,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ws,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ks,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),G8=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(Fl),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(Vl),{key:1})):(f.openBlock(),f.createBlock(f.unref(zl),{key:2}))],2))}}),Y8={class:"bd-table"},J8={key:0,class:"table"},Z8={key:1},X8=["onClick"],Q8={key:1,class:"empty-text"},lm=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 v=m.toString(),C=g.toString();return v.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",Y8,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",J8,[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(G8,{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",Z8,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,X8))),256))])])):(f.openBlock(),f.createElementBlock("p",Q8,f.toDisplayString(r.emptyText),1))]))}}),Dc=f.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:Ts.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),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)]))}}),q8={class:"navbar navbar-expand-lg header-navbar"},e4=f.createElementVNode("div",null,"Menu",-1),t4={key:0,class:"header-options"},n4={class:"bd-btn-settings d-flex gap-2 align-items-center"},r4="sm",cm=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},src:{},profileImageAlt:{},profileImageSize:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.ref(void 0),o=()=>e("click"),i=()=>{e("signout")},s=()=>r.value=!0,l=()=>r.value=!1,a=f.computed(()=>{if(!t.dropdownOptions)return[];let c=t.dropdownOptions.slice(0);return c.unshift({to:{name:"Overview"},text:"Gesprekken"}),c});return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",q8,[f.createVNode(Ul,{viewBox:"0 0 351 61",class:"d-inline-block b-d-logo",onClick:o}),f.createElementVNode("div",{class:"bd-hamburger",onClick:s},[e4,f.createVNode(Ci)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",t4,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(lt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",n4,[t.src?(f.openBlock(),f.createBlock(Fo,{key:0,src:t.src,alt:t.profileImageAlt,size:r4},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(Dc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(wi,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(wi,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),f.createVNode(Ic,{active:r.value,options:a.value,onHide:l,onSignout:i},null,8,["active","options"])],64))}}),o4={class:"modal bd-modal modal-lg",tabindex:"-1"},i4={class:"modal-dialog"},s4={class:"modal-content"},a4={class:"modal-header"},l4={class:"modal-title"},c4={class:"modal-body"},u4={key:0,class:"modal-footer"},d4=["disabled"],um=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",o4,[f.createElementVNode("div",i4,[f.createElementVNode("div",s4,[f.createElementVNode("div",a4,[f.createElementVNode("h2",l4,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[f.createTextVNode("Sluiten "),f.createVNode(f.unref(ws),{class:"bg-primary"})])]),f.createElementVNode("div",c4,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",u4,[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,d4)),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()}}}),Na={BASIC:"basic",FULL:"full"},u8={class:"attachment-list"},d8={class:"attachment-link"},f8={key:1,class:"attachment-no-download"},h8=["href"],Ws=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",u8,[(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",d8,[r.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",f8,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,h8))])]))),128))]))}}),p8={class:"attachment-list"},m8={class:"attachment"},g8=["onClick"],v8=["src","alt"],y8=["onClick"],b8=["href"],E8={class:"btn btn-light download-button-image"},C8=["src","alt"],Ks=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",p8,[(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",m8,[i.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,v8)],8,g8)):(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",E8,[f.createVNode(f.unref(Ei))])],8,b8)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,C8)],8,y8))])]))),128))]))}}),Ud=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),S8=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,w8=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,k8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,x8=(n,e)=>e?Ud(n):!Ud(n),bs=(n,e)=>n===void 0?void 0:n.filter(o=>x8(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:S8(o),previewUrl:w8(o),fullImageUrl:k8(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),T8={class:"bd-markdown-editor__menu-bottom"},A8={key:0,class:"vr"},O8={key:4,class:"vr"},M8={key:7,class:"vr"},im=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Na.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=gr(t,"modelValue",e),i=[b7,E7,C7,K7.configure({placeholder:t.placeholder}),c8];t.variant===Na.FULL&&i.push(X7,n8,r8,o8,s8,l8,W7.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=y7({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:b,to:D}=S.state.selection;if(k.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===Na.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?bs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},v=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(v7),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ws,{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(Ks,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",T8,[f.createVNode(lt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(cr))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",A8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Nl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Pl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Hl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",O8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{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(Il))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref($l))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",M8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{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(Bl))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(As),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),N8={class:"header"},I8=f.createElementVNode("div",null,"Menu",-1),D8={class:"icon-close-wrapper"},_8={class:"navbar"},L8={class:"nav navbar-nav w-100"},R8={class:"nav-item"},B8={class:"nav-item"},Ic=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",N8,[I8,f.createElementVNode("div",D8,[f.createVNode(ws,{onClick:o})])]),f.createElementVNode("nav",_8,[f.createElementVNode("ul",L8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",R8,[f.createVNode(zr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",B8,[f.createVNode(zr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),P8={class:"bd-user"},$8={class:"bd-user__information"},F8={class:"text-break"},V8={class:"overflow-x-hidden"},sm=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",P8,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(Fo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",$8,[f.createElementVNode("header",null,[f.createElementVNode("h5",F8,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",V8,f.toDisplayString(t.value),1)])]))}}),z8="",H8={class:"bd-chat-cloud-card"},U8={class:"bd-chat-cloud-card__header"},j8={class:"bd-chat-cloud-card__body"},W8=["innerHTML"],K8={class:"bd-chat-cloud-card__footer"},am=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":z8),o=f.computed(()=>bs(t.files,!1)),i=f.computed(()=>bs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(Fo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",H8,[f.createElementVNode("div",U8,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(lt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",j8,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,W8)])]),f.createElementVNode("div",K8,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ws,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ks,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),G8=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(Fl),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(Vl),{key:1})):(f.openBlock(),f.createBlock(f.unref(zl),{key:2}))],2))}}),Y8={class:"bd-table"},J8={key:0,class:"table"},Z8={key:1},X8=["onClick"],Q8={key:1,class:"empty-text"},lm=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 v=m.toString(),C=g.toString();return v.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",Y8,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",J8,[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(G8,{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",Z8,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,X8))),256))])])):(f.openBlock(),f.createElementBlock("p",Q8,f.toDisplayString(r.emptyText),1))]))}}),Dc=f.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:Ts.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),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)]))}}),q8={class:"row bd-header"},e4={class:"col logo-mix"},t4=["src","alt"],n4=f.createElementVNode("div",null,"Menu",-1),r4={key:0,class:"col header-options"},o4={class:"col bd-btn-settings"},i4="sm",cm=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",q8,[f.createElementVNode("div",e4,[f.createVNode(Ul,{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,t4)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[n4,f.createVNode(Ci)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",r4,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(lt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",o4,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(Fo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:i4},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(Dc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(wi,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(wi,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(Ic,{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))}}),s4={class:"modal bd-modal modal-lg",tabindex:"-1"},a4={class:"modal-dialog"},l4={class:"modal-content"},c4={class:"modal-header"},u4={class:"modal-title"},d4=f.createElementVNode("span",null,"Sluiten",-1),f4={class:"modal-body"},h4={key:0,class:"modal-footer"},p4=["disabled"],um=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",s4,[f.createElementVNode("div",a4,[f.createElementVNode("div",l4,[f.createElementVNode("div",c4,[f.createElementVNode("h2",u4,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},[d4,f.createVNode(f.unref(ws),{class:"bg-primary"})])]),f.createElementVNode("div",f4,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",h4,[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,p4)),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 xn=new Map,Ia={set(n,e,t){xn.has(n)||xn.set(n,new Map);const r=xn.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 xn.has(n)&&xn.get(n).get(e)||null},remove(n,e){if(!xn.has(n))return;const t=xn.get(n);t.delete(e),t.size===0&&xn.delete(n)}},f4=1e6,h4=1e3,Tl="transitionend",dm=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),p4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),m4=n=>{do n+=Math.floor(Math.random()*f4);while(document.getElementById(n));return n},g4=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))*h4)},fm=n=>{n.dispatchEvent(new Event(Tl))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),$n=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(dm(n)):null,ro=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Fn=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",hm=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?hm(n.parentNode):null},Es=()=>{},Wo=n=>{n.offsetHeight},pm=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Da=[],v4=n=>{document.readyState==="loading"?(Da.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Da)e()}),Da.push(n)):n()},$t=()=>document.documentElement.dir==="rtl",Vt=n=>{v4(()=>{const e=pm();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},yt=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,mm=(n,e,t=!0)=>{if(!t){yt(n);return}const r=5,o=g4(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(Tl,s),yt(n))};e.addEventListener(Tl,s),setTimeout(()=>{i||fm(e)},o)},_c=(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))])},y4=/[^.]*(?=\..*)\.|.*/,b4=/\..*/,E4=/::\d+$/,_a={};let jd=1;const gm={mouseenter:"mouseover",mouseleave:"mouseout"},C4=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 vm(n,e){return e&&`${e}::${jd++}`||n.uidEvent||jd++}function ym(n){const e=vm(n);return n.uidEvent=e,_a[e]=_a[e]||{},_a[e]}function S4(n,e){return function t(r){return Lc(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function w4(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 Lc(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function bm(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Em(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=Cm(n);return C4.has(i)||(i=n),[r,o,i]}function Wd(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Em(e,t,r);e in gm&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=ym(n),c=a[l]||(a[l]={}),u=bm(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=vm(s,e.replace(y4,"")),h=i?w4(n,t,s):S4(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function Al(n,e,t,r,o){const i=bm(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function k4(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Al(n,e,t,s.callable,s.delegationSelector)}function Cm(n){return n=n.replace(b4,""),gm[n]||n}const ne={on(n,e,t,r){Wd(n,e,t,r,!1)},one(n,e,t,r){Wd(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Em(e,t,r),l=s!==e,a=ym(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Al(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))k4(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const p=d.replace(E4,"");(!l||e.includes(p))&&Al(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=pm(),o=Cm(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=Lc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Lc(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 Kd(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function La(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const yn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${La(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${La(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Kd(n.dataset[r])}return e},getDataAttribute(n,e){return Kd(n.getAttribute(`data-bs-${La(e)}`))}};class Ko{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?yn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?yn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=vn(i)?"element":p4(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const x4="5.3.0";class Gt extends Ko{constructor(e,t){super(),e=$n(e),e&&(this._element=e,this._config=this._getConfig(t),Ia.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ia.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){mm(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ia.get($n(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return x4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Ra=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return dm(e)},ye={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Fn(t)&&ro(t))},getSelectorFromElement(n){const e=Ra(n);return e&&ye.findOne(e)?e:null},getElementFromSelector(n){const e=Ra(n);return e?ye.findOne(e):null},getMultipleElementsFromSelector(n){const e=Ra(n);return e?ye.find(e):[]}},Gs=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Fn(this))return;const i=ye.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},T4="alert",A4="bs.alert",Sm=`.${A4}`,O4=`close${Sm}`,M4=`closed${Sm}`,N4="fade",I4="show";class Ys extends Gt{static get NAME(){return T4}close(){if(ne.trigger(this._element,O4).defaultPrevented)return;this._element.classList.remove(I4);const t=this._element.classList.contains(N4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,M4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Ys,"close");Vt(Ys);const D4="button",_4="bs.button",L4=`.${_4}`,R4=".data-api",B4="active",Gd='[data-bs-toggle="button"]',P4=`click${L4}${R4}`;class Js extends Gt{static get NAME(){return D4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(B4))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,P4,Gd,n=>{n.preventDefault();const e=n.target.closest(Gd);Js.getOrCreateInstance(e).toggle()});Vt(Js);const $4="swipe",oo=".bs.swipe",F4=`touchstart${oo}`,V4=`touchmove${oo}`,z4=`touchend${oo}`,H4=`pointerdown${oo}`,U4=`pointerup${oo}`,j4="touch",W4="pen",K4="pointer-event",G4=40,Y4={endCallback:null,leftCallback:null,rightCallback:null},J4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Cs extends Ko{constructor(e,t){super(),this._element=e,!(!e||!Cs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Y4}static get DefaultType(){return J4}static get NAME(){return $4}dispose(){ne.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),yt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=G4)return;const t=e/this._deltaX;this._deltaX=0,t&&yt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,H4,e=>this._start(e)),ne.on(this._element,U4,e=>this._end(e)),this._element.classList.add(K4)):(ne.on(this._element,F4,e=>this._start(e)),ne.on(this._element,V4,e=>this._move(e)),ne.on(this._element,z4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===W4||e.pointerType===j4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Z4="carousel",X4="bs.carousel",Wn=`.${X4}`,wm=".data-api",Q4="ArrowLeft",q4="ArrowRight",eC=500,so="next",xr="prev",Dr="left",yi="right",tC=`slide${Wn}`,Ba=`slid${Wn}`,nC=`keydown${Wn}`,rC=`mouseenter${Wn}`,oC=`mouseleave${Wn}`,iC=`dragstart${Wn}`,sC=`load${Wn}${wm}`,aC=`click${Wn}${wm}`,km="carousel",ai="active",lC="slide",cC="carousel-item-end",uC="carousel-item-start",dC="carousel-item-next",fC="carousel-item-prev",xm=".active",Tm=".carousel-item",hC=xm+Tm,pC=".carousel-item img",mC=".carousel-indicators",gC="[data-bs-slide], [data-bs-slide-to]",vC='[data-bs-ride="carousel"]',yC={[Q4]:yi,[q4]:Dr},bC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},EC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Go extends Gt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(mC,this._element),this._addEventListeners(),this._config.ride===km&&this.cycle()}static get Default(){return bC}static get DefaultType(){return EC}static get NAME(){return Z4}next(){this._slide(so)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(xr)}pause(){this._isSliding&&fm(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,Ba,()=>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,Ba,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?so:xr;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,nC,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,rC,()=>this.pause()),ne.on(this._element,oC,()=>this._maybeEnableCycle())),this._config.touch&&Cs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ye.find(pC,this._element))ne.on(r,iC,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Dr)),rightCallback:()=>this._slide(this._directionToOrder(yi)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),eC+this._config.interval))}};this._swipeHelper=new Cs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=yC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ye.findOne(xm,this._indicatorsElement);t.classList.remove(ai),t.removeAttribute("aria-current");const r=ye.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ai),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===so,i=t||_c(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(tC).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?uC:cC,d=o?dC:fC;i.classList.add(d),Wo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(ai),r.classList.remove(ai,d,u),this._isSliding=!1,l(Ba)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(lC)}_getActive(){return ye.findOne(hC,this._element)}_getItems(){return ye.find(Tm,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return $t()?e===Dr?xr:so:e===Dr?so:xr}_orderToDirection(e){return $t()?e===xr?Dr:yi:e===xr?yi:Dr}static jQueryInterface(e){return this.each(function(){const t=Go.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,aC,gC,function(n){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(km))return;n.preventDefault();const t=Go.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(yn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});ne.on(window,sC,()=>{const n=ye.find(vC);for(const e of n)Go.getOrCreateInstance(e)});Vt(Go);const CC="collapse",SC="bs.collapse",Yo=`.${SC}`,wC=".data-api",kC=`show${Yo}`,xC=`shown${Yo}`,TC=`hide${Yo}`,AC=`hidden${Yo}`,OC=`click${Yo}${wC}`,Pa="show",Pr="collapse",li="collapsing",MC="collapsed",NC=`:scope .${Pr} .${Pr}`,IC="collapse-horizontal",DC="width",_C="height",LC=".collapse.show, .collapse.collapsing",Ol='[data-bs-toggle="collapse"]',RC={parent:null,toggle:!0},BC={parent:"(null|element)",toggle:"boolean"};class Bo extends Gt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ye.find(Ol);for(const o of r){const i=ye.getSelectorFromElement(o),s=ye.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return RC}static get DefaultType(){return BC}static get NAME(){return CC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(LC).filter(l=>l!==this._element).map(l=>Bo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,kC).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(Pr),this._element.classList.add(li),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Pr,Pa),this._element.style[r]="",ne.trigger(this._element,xC)},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,TC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Wo(this._element),this._element.classList.add(li),this._element.classList.remove(Pr,Pa);for(const o of this._triggerArray){const i=ye.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Pr),ne.trigger(this._element,AC)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Pa)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=$n(e.parent),e}_getDimension(){return this._element.classList.contains(IC)?DC:_C}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ol);for(const t of e){const r=ye.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ye.find(NC,this._config.parent);return ye.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(MC,!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=Bo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,OC,Ol,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ye.getMultipleElementsFromSelector(this))Bo.getOrCreateInstance(e,{toggle:!1}).toggle()});Vt(Bo);const Yd="dropdown",PC="bs.dropdown",vr=`.${PC}`,Rc=".data-api",$C="Escape",Jd="Tab",FC="ArrowUp",Zd="ArrowDown",VC=2,zC=`hide${vr}`,HC=`hidden${vr}`,UC=`show${vr}`,jC=`shown${vr}`,Am=`click${vr}${Rc}`,Om=`keydown${vr}${Rc}`,WC=`keyup${vr}${Rc}`,_r="show",KC="dropup",GC="dropend",YC="dropstart",JC="dropup-center",ZC="dropdown-center",tr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',XC=`${tr}.${_r}`,bi=".dropdown-menu",QC=".navbar",qC=".navbar-nav",e6=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",t6=$t()?"top-end":"top-start",n6=$t()?"top-start":"top-end",r6=$t()?"bottom-end":"bottom-start",o6=$t()?"bottom-start":"bottom-end",i6=$t()?"left-start":"right-start",s6=$t()?"right-start":"left-start",a6="top",l6="bottom",c6={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},u6={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class rn extends Gt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,bi)[0]||ye.prev(this._element,bi)[0]||ye.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return c6}static get DefaultType(){return u6}static get NAME(){return Yd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Fn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,UC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(qC))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Es);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_r),this._element.classList.add(_r),ne.trigger(this._element,jC,e)}}hide(){if(Fn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ne.trigger(this._element,zC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Es);this._popper&&this._popper.destroy(),this._menu.classList.remove(_r),this._element.classList.remove(_r),this._element.setAttribute("aria-expanded","false"),yn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,HC,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Yd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Vp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=$n(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Us(e,this._menu,t)}_isShown(){return this._menu.classList.contains(_r)}_getPlacement(){const e=this._parent;if(e.classList.contains(GC))return i6;if(e.classList.contains(YC))return s6;if(e.classList.contains(JC))return a6;if(e.classList.contains(ZC))return l6;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(KC)?t?n6:t6:t?o6:r6}_detectNavbar(){return this._element.closest(QC)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(yn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...yt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ye.find(e6,this._menu).filter(o=>ro(o));r.length&&_c(r,t,e===Zd,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=rn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===VC||e.type==="keyup"&&e.key!==Jd)return;const t=ye.find(XC);for(const r of t){const o=rn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Jd||/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===$C,o=[FC,Zd].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(tr)?this:ye.prev(this,tr)[0]||ye.next(this,tr)[0]||ye.findOne(tr,e.delegateTarget.parentNode),s=rn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,Om,tr,rn.dataApiKeydownHandler);ne.on(document,Om,bi,rn.dataApiKeydownHandler);ne.on(document,Am,rn.clearMenus);ne.on(document,WC,rn.clearMenus);ne.on(document,Am,tr,function(n){n.preventDefault(),rn.getOrCreateInstance(this).toggle()});Vt(rn);const Mm="backdrop",d6="fade",Xd="show",Qd=`mousedown.bs.${Mm}`,f6={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},h6={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nm extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return f6}static get DefaultType(){return h6}static get NAME(){return Mm}show(e){if(!this._config.isVisible){yt(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Wo(t),t.classList.add(Xd),this._emulateAnimation(()=>{yt(e)})}hide(e){if(!this._config.isVisible){yt(e);return}this._getElement().classList.remove(Xd),this._emulateAnimation(()=>{this.dispose(),yt(e)})}dispose(){this._isAppended&&(ne.off(this._element,Qd),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(d6),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=$n(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,Qd,()=>{yt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){mm(e,this._getElement(),this._config.isAnimated)}}const p6="focustrap",m6="bs.focustrap",Ss=`.${m6}`,g6=`focusin${Ss}`,v6=`keydown.tab${Ss}`,y6="Tab",b6="forward",qd="backward",E6={autofocus:!0,trapElement:null},C6={autofocus:"boolean",trapElement:"element"};class Im extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return E6}static get DefaultType(){return C6}static get NAME(){return p6}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ss),ne.on(document,g6,e=>this._handleFocusin(e)),ne.on(document,v6,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ss))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ye.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===qd?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===y6&&(this._lastTabNavDirection=e.shiftKey?qd:b6)}}const ef=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tf=".sticky-top",ci="padding-right",nf="margin-right";class Ml{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ci,t=>t+e),this._setElementAttributes(ef,ci,t=>t+e),this._setElementAttributes(tf,nf,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ci),this._resetElementAttributes(ef,ci),this._resetElementAttributes(tf,nf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&yn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=yn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}yn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ye.find(e,this._element))t(r)}}const S6="modal",w6="bs.modal",Ft=`.${w6}`,k6=".data-api",x6="Escape",T6=`hide${Ft}`,A6=`hidePrevented${Ft}`,Dm=`hidden${Ft}`,_m=`show${Ft}`,O6=`shown${Ft}`,M6=`resize${Ft}`,N6=`click.dismiss${Ft}`,I6=`mousedown.dismiss${Ft}`,D6=`keydown.dismiss${Ft}`,_6=`click${Ft}${k6}`,rf="modal-open",L6="fade",of="show",$a="modal-static",R6=".modal.show",B6=".modal-dialog",P6=".modal-body",$6='[data-bs-toggle="modal"]',F6={backdrop:!0,focus:!0,keyboard:!0},V6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class mr extends Gt{constructor(e,t){super(e,t),this._dialog=ye.findOne(B6,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ml,this._addEventListeners()}static get Default(){return F6}static get DefaultType(){return V6}static get NAME(){return S6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,_m,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(rf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,T6).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(of),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Ft),ne.off(this._dialog,Ft),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Im({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ye.findOne(P6,this._dialog);t&&(t.scrollTop=0),Wo(this._element),this._element.classList.add(of);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,O6,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,D6,e=>{if(e.key===x6){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,M6,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,I6,e=>{ne.one(this._element,N6,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(rf),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,Dm)})}_isAnimated(){return this._element.classList.contains(L6)}_triggerBackdropTransition(){if(ne.trigger(this._element,A6).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($a)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($a),this._queueCallback(()=>{this._element.classList.remove($a),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=$t()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=$t()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=mr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,_6,$6,function(n){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,_m,o=>{o.defaultPrevented||ne.one(e,Dm,()=>{ro(this)&&this.focus()})});const t=ye.findOne(R6);t&&mr.getInstance(t).hide(),mr.getOrCreateInstance(e).toggle(this)});Gs(mr);Vt(mr);const z6="offcanvas",H6="bs.offcanvas",En=`.${H6}`,Lm=".data-api",U6=`load${En}${Lm}`,j6="Escape",sf="show",af="showing",lf="hiding",W6="offcanvas-backdrop",Rm=".offcanvas.show",K6=`show${En}`,G6=`shown${En}`,Y6=`hide${En}`,cf=`hidePrevented${En}`,Bm=`hidden${En}`,J6=`resize${En}`,Z6=`click${En}${Lm}`,X6=`keydown.dismiss${En}`,Q6='[data-bs-toggle="offcanvas"]',q6={backdrop:!0,keyboard:!0,scroll:!1},eS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vn extends Gt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return q6}static get DefaultType(){return eS}static get NAME(){return z6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,K6,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ml().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(af);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(sf),this._element.classList.remove(af),ne.trigger(this._element,G6,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,Y6).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(lf),this._backdrop.hide();const t=()=>{this._element.classList.remove(sf,lf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ml().reset(),ne.trigger(this._element,Bm)};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,cf);return}this.hide()},t=!!this._config.backdrop;return new Nm({className:W6,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Im({trapElement:this._element})}_addEventListeners(){ne.on(this._element,X6,e=>{if(e.key===j6){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,cf)}})}static jQueryInterface(e){return this.each(function(){const t=Vn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,Z6,Q6,function(n){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Fn(this))return;ne.one(e,Bm,()=>{ro(this)&&this.focus()});const t=ye.findOne(Rm);t&&t!==e&&Vn.getInstance(t).hide(),Vn.getOrCreateInstance(e).toggle(this)});ne.on(window,U6,()=>{for(const n of ye.find(Rm))Vn.getOrCreateInstance(n).show()});ne.on(window,J6,()=>{for(const n of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Vn.getOrCreateInstance(n).hide()});Gs(Vn);Vt(Vn);const tS=/^aria-[\w-]*$/i,Pm={"*":["class","dir","id","lang","role",tS],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:[]},nS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),rS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,oS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?nS.has(t)?!!rS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function iS(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)oS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const sS="TemplateFactory",aS={allowList:Pm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},lS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},cS={entry:"(string|element|function|null)",selector:"(string|element)"};class uS extends Ko{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return aS}static get DefaultType(){return lS}static get NAME(){return sS}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},cS)}_setContent(e,t,r){const o=ye.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate($n(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?iS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return yt(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const dS="tooltip",fS=new Set(["sanitize","allowList","sanitizeFn"]),Fa="fade",hS="modal",ui="show",pS=".tooltip-inner",uf=`.${hS}`,df="hide.bs.modal",ao="hover",Va="focus",mS="click",gS="manual",vS="hide",yS="hidden",bS="show",ES="shown",CS="inserted",SS="click",wS="focusin",kS="focusout",xS="mouseenter",TS="mouseleave",AS={AUTO:"auto",TOP:"top",RIGHT:$t()?"left":"right",BOTTOM:"bottom",LEFT:$t()?"right":"left"},OS={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"},MS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yr extends Gt{constructor(e,t){if(typeof Vp>"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 OS}static get DefaultType(){return MS}static get NAME(){return dS}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(uf),df,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(bS)),r=(hm(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(CS))),this._popper=this._createPopper(o),o.classList.add(ui),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Es);const s=()=>{ne.trigger(this._element,this.constructor.eventName(ES)),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(ui),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Es);this._activeTrigger[mS]=!1,this._activeTrigger[Va]=!1,this._activeTrigger[ao]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(yS)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Fa,ui),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=m4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Fa),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new uS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[pS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Fa)}_isShown(){return this.tip&&this.tip.classList.contains(ui)}_createPopper(e){const t=yt(this._config.placement,[this,e,this._element]),r=AS[t.toUpperCase()];return Us(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return yt(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...yt(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(SS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==gS){const r=t===ao?this.constructor.eventName(xS):this.constructor.eventName(wS),o=t===ao?this.constructor.eventName(TS):this.constructor.eventName(kS);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Va:ao]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Va:ao]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(uf),df,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=yn.getDataAttributes(this._element);for(const r of Object.keys(t))fS.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:$n(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(yr);const NS="popover",IS=".popover-header",DS=".popover-body",_S={...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"},LS={...yr.DefaultType,content:"(null|string|element|function)"};class Bc extends yr{static get Default(){return _S}static get DefaultType(){return LS}static get NAME(){return NS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[IS]:this._getTitle(),[DS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Bc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(Bc);const RS="scrollspy",BS="bs.scrollspy",Pc=`.${BS}`,PS=".data-api",$S=`activate${Pc}`,ff=`click${Pc}`,FS=`load${Pc}${PS}`,VS="dropdown-item",Tr="active",zS='[data-bs-spy="scroll"]',za="[href]",HS=".nav, .list-group",hf=".nav-link",US=".nav-item",jS=".list-group-item",WS=`${hf}, ${US} > ${hf}, ${jS}`,KS=".dropdown",GS=".dropdown-toggle",YS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},JS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Zs extends Gt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return YS}static get DefaultType(){return JS}static get NAME(){return RS}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=$n(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,ff),ne.on(this._config.target,ff,za,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ye.find(za,this._config.target);for(const t of e){if(!t.hash||Fn(t))continue;const r=ye.findOne(decodeURI(t.hash),this._element);ro(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Tr),this._activateParents(e),ne.trigger(this._element,$S,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(VS)){ye.findOne(GS,e.closest(KS)).classList.add(Tr);return}for(const t of ye.parents(e,HS))for(const r of ye.prev(t,WS))r.classList.add(Tr)}_clearActiveClass(e){e.classList.remove(Tr);const t=ye.find(`${za}.${Tr}`,e);for(const r of t)r.classList.remove(Tr)}static jQueryInterface(e){return this.each(function(){const t=Zs.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,FS,()=>{for(const n of ye.find(zS))Zs.getOrCreateInstance(n)});Vt(Zs);const ZS="tab",XS="bs.tab",br=`.${XS}`,QS=`hide${br}`,qS=`hidden${br}`,ew=`show${br}`,tw=`shown${br}`,nw=`click${br}`,rw=`keydown${br}`,ow=`load${br}`,iw="ArrowLeft",pf="ArrowRight",sw="ArrowUp",mf="ArrowDown",nr="active",gf="fade",Ha="show",aw="dropdown",lw=".dropdown-toggle",cw=".dropdown-menu",Ua=":not(.dropdown-toggle)",uw='.list-group, .nav, [role="tablist"]',dw=".nav-item, .list-group-item",fw=`.nav-link${Ua}, .list-group-item${Ua}, [role="tab"]${Ua}`,$m='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ja=`${fw}, ${$m}`,hw=`.${nr}[data-bs-toggle="tab"], .${nr}[data-bs-toggle="pill"], .${nr}[data-bs-toggle="list"]`;class qr extends Gt{constructor(e){super(e),this._parent=this._element.closest(uw),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,rw,t=>this._keydown(t)))}static get NAME(){return ZS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,QS,{relatedTarget:e}):null;ne.trigger(e,ew,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(nr),this._activate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Ha);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,tw,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(gf))}_deactivate(e,t){if(!e)return;e.classList.remove(nr),e.blur(),this._deactivate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Ha);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,qS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(gf))}_keydown(e){if(![iw,pf,sw,mf].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[pf,mf].includes(e.key),r=_c(this._getChildren().filter(o=>!Fn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),qr.getOrCreateInstance(r).show())}_getChildren(){return ye.find(ja,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ye.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(aw))return;const o=(i,s)=>{const l=ye.findOne(i,r);l&&l.classList.toggle(s,t)};o(lw,nr),o(cw,Ha),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(nr)}_getInnerElement(e){return e.matches(ja)?e:ye.findOne(ja,e)}_getOuterElement(e){return e.closest(dw)||e}static jQueryInterface(e){return this.each(function(){const t=qr.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,nw,$m,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Fn(this)&&qr.getOrCreateInstance(this).show()});ne.on(window,ow,()=>{for(const n of ye.find(hw))qr.getOrCreateInstance(n)});Vt(qr);const pw="toast",mw="bs.toast",Kn=`.${mw}`,gw=`mouseover${Kn}`,vw=`mouseout${Kn}`,yw=`focusin${Kn}`,bw=`focusout${Kn}`,Ew=`hide${Kn}`,Cw=`hidden${Kn}`,Sw=`show${Kn}`,ww=`shown${Kn}`,kw="fade",vf="hide",di="show",fi="showing",xw={animation:"boolean",autohide:"boolean",delay:"number"},Tw={animation:!0,autohide:!0,delay:5e3};class Jo extends Gt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Tw}static get DefaultType(){return xw}static get NAME(){return pw}show(){if(ne.trigger(this._element,Sw).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(kw);const t=()=>{this._element.classList.remove(fi),ne.trigger(this._element,ww),this._maybeScheduleHide()};this._element.classList.remove(vf),Wo(this._element),this._element.classList.add(di,fi),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,Ew).defaultPrevented)return;const t=()=>{this._element.classList.add(vf),this._element.classList.remove(fi,di),ne.trigger(this._element,Cw)};this._element.classList.add(fi),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(di),super.dispose()}isShown(){return this._element.classList.contains(di)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,gw,e=>this._onInteraction(e,!0)),ne.on(this._element,vw,e=>this._onInteraction(e,!1)),ne.on(this._element,yw,e=>this._onInteraction(e,!0)),ne.on(this._element,bw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Jo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Jo);Vt(Jo);const Aw=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new mr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function Ow(n=void 0){const e=l=>i("Succesvol",l,Lr.SUCCESS),t=l=>i("Waarschuwing",l,Lr.WARNING),r=l=>i("Informatie",l,Lr.INFO),o=l=>i("Mislukt",l,Lr.DANGER);function i(l,a,c){const u=`toast-${Rf()}`,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(Wl,d),g=f.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(Jo.getOrCreateInstance(v,n).show(),s(v))}function s(l){function a(d,h){d.forEach(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 Fm={mounted:n=>{new yr(n)}},Mw={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},lt=f.defineComponent({__name:"BDButton",props:{size:{default:at.MD},variant:{default:Mw.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?zr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Nw={install:n=>{n.component("BDCol",yf),n.component("BDContainer",bf),n.component("BDRow",Ef),n.component("BDButton",lt),n.component("BDLogo",Ul),n.component("BDLink",zr),n.component("BDDropdownItem",wi),n.component("BDDropdown",Dc),n.component("BDAlert",If),n.component("BDProfileImage",Fo),n.component("BDZoomslider",_f),n.component("BDCard",jl),n.component("BDCollapsableCard",Bf),n.component("BDFormInput",$f),n.component("BDInputGroup",Ff),n.component("BDFormInvalidFeedback",As),n.component("BDBadge",Vf),n.component("BDForm",zf),n.component("BDPagination",Hf),n.component("BDDropzone",Gf),n.component("BDMarkdownEditor",im),n.component("BDModal",um),n.component("BDFormSelect",Uf),n.component("BDUser",sm),n.component("BDArticle",Wf),n.component("BDFormCheckbox",jf),n.component("BDToast",Wl),n.component("BDAttachmentPreviewList",Ws),n.component("BDImageAttachmentPreviewList",Ks),n.component("BDHeader",cm),n.component("BDMobileMenu",Ic),n.component("BDChatCloud",am),n.component("BDTable",lm),n.component("IconAcademy",Cf),n.component("IconArrowDown",Sf),n.component("IconArrowUp",wf),n.component("IconAttachment",cr),n.component("IconBold",Nl),n.component("IconBulletList",Il),n.component("IconCalendar",Wa),n.component("IconCalendar",Wa),n.component("IconCardView",kf),n.component("IconCaretDown",Dl),n.component("IconCaretLeft",_l),n.component("IconCaretRight",Ll),n.component("IconCheck",Po),n.component("IconClose",ws),n.component("IconDownloadImage",Ei),n.component("IconDownloadImage",Ei),n.component("IconEdit",xf),n.component("IconError",ks),n.component("IconEyeShow",Tf),n.component("IconEyeSlash",Af),n.component("IconFile",Rl),n.component("IconHyperlink",Bl),n.component("IconInfo",xs),n.component("IconItalic",Pl),n.component("IconListView",Of),n.component("IconMenu",Ci),n.component("IconMenu",Ci),n.component("IconOrderedList",$l),n.component("IconRemove",$o),n.component("IconSort",Mf),n.component("IconSortAsc",Fl),n.component("IconSortDesc",Vl),n.component("IconSortNone",zl),n.component("IconTriangleExclamation",Nf),n.component("IconUnderline",Hl),n.directive("vBDTooltip",Fm)}};exports.BDAlert=If;exports.BDArticle=Wf;exports.BDAttachmentPreviewList=Ws;exports.BDBadge=Vf;exports.BDButton=lt;exports.BDCard=jl;exports.BDChatCloud=am;exports.BDCol=yf;exports.BDCollapsableCard=Bf;exports.BDContainer=bf;exports.BDDropdown=Dc;exports.BDDropdownItem=wi;exports.BDDropzone=Gf;exports.BDForm=zf;exports.BDFormCheckbox=jf;exports.BDFormInput=$f;exports.BDFormInvalidFeedback=As;exports.BDFormSelect=Uf;exports.BDHeader=cm;exports.BDImageAttachmentPreviewList=Ks;exports.BDInputGroup=Ff;exports.BDLink=zr;exports.BDLogo=Ul;exports.BDMarkdownEditor=im;exports.BDMobileMenu=Ic;exports.BDModal=um;exports.BDPagination=Hf;exports.BDProfileImage=Fo;exports.BDRow=Ef;exports.BDTable=lm;exports.BDToast=Wl;exports.BDUser=sm;exports.BDZoomslider=_f;exports.IconAcademy=Cf;exports.IconArrowDown=Sf;exports.IconArrowUp=wf;exports.IconAttachment=cr;exports.IconBold=Nl;exports.IconBulletList=Il;exports.IconCalendar=Wa;exports.IconCardView=kf;exports.IconCaretDown=Dl;exports.IconCaretLeft=_l;exports.IconCaretRight=Ll;exports.IconCheck=Po;exports.IconClose=ws;exports.IconDownloadImage=Ei;exports.IconEdit=xf;exports.IconError=ks;exports.IconEyeShow=Tf;exports.IconEyeSlash=Af;exports.IconFile=Rl;exports.IconHyperlink=Bl;exports.IconInfo=xs;exports.IconItalic=Pl;exports.IconListView=Of;exports.IconMenu=Ci;exports.IconOrderedList=$l;exports.IconRemove=$o;exports.IconSort=Mf;exports.IconSortAsc=Fl;exports.IconSortDesc=Vl;exports.IconSortNone=zl;exports.IconTriangleExclamation=Nf;exports.IconUnderline=Hl;exports.default=Nw;exports.useModal=Aw;exports.useToaster=Ow;exports.vBdTooltip=Fm;
|
|
131
|
+
*/const xn=new Map,Ia={set(n,e,t){xn.has(n)||xn.set(n,new Map);const r=xn.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 xn.has(n)&&xn.get(n).get(e)||null},remove(n,e){if(!xn.has(n))return;const t=xn.get(n);t.delete(e),t.size===0&&xn.delete(n)}},m4=1e6,g4=1e3,Tl="transitionend",dm=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),v4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),y4=n=>{do n+=Math.floor(Math.random()*m4);while(document.getElementById(n));return n},b4=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))*g4)},fm=n=>{n.dispatchEvent(new Event(Tl))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),$n=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(dm(n)):null,ro=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Fn=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",hm=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?hm(n.parentNode):null},Es=()=>{},Wo=n=>{n.offsetHeight},pm=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Da=[],E4=n=>{document.readyState==="loading"?(Da.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Da)e()}),Da.push(n)):n()},$t=()=>document.documentElement.dir==="rtl",Vt=n=>{E4(()=>{const e=pm();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},yt=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,mm=(n,e,t=!0)=>{if(!t){yt(n);return}const r=5,o=b4(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(Tl,s),yt(n))};e.addEventListener(Tl,s),setTimeout(()=>{i||fm(e)},o)},_c=(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))])},C4=/[^.]*(?=\..*)\.|.*/,S4=/\..*/,w4=/::\d+$/,_a={};let jd=1;const gm={mouseenter:"mouseover",mouseleave:"mouseout"},k4=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 vm(n,e){return e&&`${e}::${jd++}`||n.uidEvent||jd++}function ym(n){const e=vm(n);return n.uidEvent=e,_a[e]=_a[e]||{},_a[e]}function x4(n,e){return function t(r){return Lc(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function T4(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 Lc(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function bm(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Em(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=Cm(n);return k4.has(i)||(i=n),[r,o,i]}function Wd(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Em(e,t,r);e in gm&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=ym(n),c=a[l]||(a[l]={}),u=bm(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=vm(s,e.replace(C4,"")),h=i?T4(n,t,s):x4(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function Al(n,e,t,r,o){const i=bm(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function A4(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Al(n,e,t,s.callable,s.delegationSelector)}function Cm(n){return n=n.replace(S4,""),gm[n]||n}const ne={on(n,e,t,r){Wd(n,e,t,r,!1)},one(n,e,t,r){Wd(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Em(e,t,r),l=s!==e,a=ym(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Al(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))A4(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const p=d.replace(w4,"");(!l||e.includes(p))&&Al(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=pm(),o=Cm(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=Lc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Lc(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 Kd(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function La(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const yn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${La(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${La(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Kd(n.dataset[r])}return e},getDataAttribute(n,e){return Kd(n.getAttribute(`data-bs-${La(e)}`))}};class Ko{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?yn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?yn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=vn(i)?"element":v4(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const O4="5.3.0";class Gt extends Ko{constructor(e,t){super(),e=$n(e),e&&(this._element=e,this._config=this._getConfig(t),Ia.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ia.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){mm(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ia.get($n(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return O4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Ra=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return dm(e)},ye={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Fn(t)&&ro(t))},getSelectorFromElement(n){const e=Ra(n);return e&&ye.findOne(e)?e:null},getElementFromSelector(n){const e=Ra(n);return e?ye.findOne(e):null},getMultipleElementsFromSelector(n){const e=Ra(n);return e?ye.find(e):[]}},Gs=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Fn(this))return;const i=ye.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},M4="alert",N4="bs.alert",Sm=`.${N4}`,I4=`close${Sm}`,D4=`closed${Sm}`,_4="fade",L4="show";class Ys extends Gt{static get NAME(){return M4}close(){if(ne.trigger(this._element,I4).defaultPrevented)return;this._element.classList.remove(L4);const t=this._element.classList.contains(_4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,D4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Ys,"close");Vt(Ys);const R4="button",B4="bs.button",P4=`.${B4}`,$4=".data-api",F4="active",Gd='[data-bs-toggle="button"]',V4=`click${P4}${$4}`;class Js extends Gt{static get NAME(){return R4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(F4))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,V4,Gd,n=>{n.preventDefault();const e=n.target.closest(Gd);Js.getOrCreateInstance(e).toggle()});Vt(Js);const z4="swipe",oo=".bs.swipe",H4=`touchstart${oo}`,U4=`touchmove${oo}`,j4=`touchend${oo}`,W4=`pointerdown${oo}`,K4=`pointerup${oo}`,G4="touch",Y4="pen",J4="pointer-event",Z4=40,X4={endCallback:null,leftCallback:null,rightCallback:null},Q4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Cs extends Ko{constructor(e,t){super(),this._element=e,!(!e||!Cs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return X4}static get DefaultType(){return Q4}static get NAME(){return z4}dispose(){ne.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),yt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Z4)return;const t=e/this._deltaX;this._deltaX=0,t&&yt(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,W4,e=>this._start(e)),ne.on(this._element,K4,e=>this._end(e)),this._element.classList.add(J4)):(ne.on(this._element,H4,e=>this._start(e)),ne.on(this._element,U4,e=>this._move(e)),ne.on(this._element,j4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Y4||e.pointerType===G4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const q4="carousel",eC="bs.carousel",Wn=`.${eC}`,wm=".data-api",tC="ArrowLeft",nC="ArrowRight",rC=500,so="next",xr="prev",Dr="left",yi="right",oC=`slide${Wn}`,Ba=`slid${Wn}`,iC=`keydown${Wn}`,sC=`mouseenter${Wn}`,aC=`mouseleave${Wn}`,lC=`dragstart${Wn}`,cC=`load${Wn}${wm}`,uC=`click${Wn}${wm}`,km="carousel",ai="active",dC="slide",fC="carousel-item-end",hC="carousel-item-start",pC="carousel-item-next",mC="carousel-item-prev",xm=".active",Tm=".carousel-item",gC=xm+Tm,vC=".carousel-item img",yC=".carousel-indicators",bC="[data-bs-slide], [data-bs-slide-to]",EC='[data-bs-ride="carousel"]',CC={[tC]:yi,[nC]:Dr},SC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},wC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Go extends Gt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(yC,this._element),this._addEventListeners(),this._config.ride===km&&this.cycle()}static get Default(){return SC}static get DefaultType(){return wC}static get NAME(){return q4}next(){this._slide(so)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(xr)}pause(){this._isSliding&&fm(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,Ba,()=>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,Ba,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?so:xr;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,iC,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,sC,()=>this.pause()),ne.on(this._element,aC,()=>this._maybeEnableCycle())),this._config.touch&&Cs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ye.find(vC,this._element))ne.on(r,lC,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Dr)),rightCallback:()=>this._slide(this._directionToOrder(yi)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),rC+this._config.interval))}};this._swipeHelper=new Cs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=CC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ye.findOne(xm,this._indicatorsElement);t.classList.remove(ai),t.removeAttribute("aria-current");const r=ye.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ai),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===so,i=t||_c(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(oC).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?hC:fC,d=o?pC:mC;i.classList.add(d),Wo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(ai),r.classList.remove(ai,d,u),this._isSliding=!1,l(Ba)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(dC)}_getActive(){return ye.findOne(gC,this._element)}_getItems(){return ye.find(Tm,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return $t()?e===Dr?xr:so:e===Dr?so:xr}_orderToDirection(e){return $t()?e===xr?Dr:yi:e===xr?yi:Dr}static jQueryInterface(e){return this.each(function(){const t=Go.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,uC,bC,function(n){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(km))return;n.preventDefault();const t=Go.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(yn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});ne.on(window,cC,()=>{const n=ye.find(EC);for(const e of n)Go.getOrCreateInstance(e)});Vt(Go);const kC="collapse",xC="bs.collapse",Yo=`.${xC}`,TC=".data-api",AC=`show${Yo}`,OC=`shown${Yo}`,MC=`hide${Yo}`,NC=`hidden${Yo}`,IC=`click${Yo}${TC}`,Pa="show",Pr="collapse",li="collapsing",DC="collapsed",_C=`:scope .${Pr} .${Pr}`,LC="collapse-horizontal",RC="width",BC="height",PC=".collapse.show, .collapse.collapsing",Ol='[data-bs-toggle="collapse"]',$C={parent:null,toggle:!0},FC={parent:"(null|element)",toggle:"boolean"};class Bo extends Gt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ye.find(Ol);for(const o of r){const i=ye.getSelectorFromElement(o),s=ye.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return $C}static get DefaultType(){return FC}static get NAME(){return kC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(PC).filter(l=>l!==this._element).map(l=>Bo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,AC).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(Pr),this._element.classList.add(li),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Pr,Pa),this._element.style[r]="",ne.trigger(this._element,OC)},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,MC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Wo(this._element),this._element.classList.add(li),this._element.classList.remove(Pr,Pa);for(const o of this._triggerArray){const i=ye.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Pr),ne.trigger(this._element,NC)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Pa)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=$n(e.parent),e}_getDimension(){return this._element.classList.contains(LC)?RC:BC}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ol);for(const t of e){const r=ye.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ye.find(_C,this._config.parent);return ye.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(DC,!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=Bo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,IC,Ol,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ye.getMultipleElementsFromSelector(this))Bo.getOrCreateInstance(e,{toggle:!1}).toggle()});Vt(Bo);const Yd="dropdown",VC="bs.dropdown",vr=`.${VC}`,Rc=".data-api",zC="Escape",Jd="Tab",HC="ArrowUp",Zd="ArrowDown",UC=2,jC=`hide${vr}`,WC=`hidden${vr}`,KC=`show${vr}`,GC=`shown${vr}`,Am=`click${vr}${Rc}`,Om=`keydown${vr}${Rc}`,YC=`keyup${vr}${Rc}`,_r="show",JC="dropup",ZC="dropend",XC="dropstart",QC="dropup-center",qC="dropdown-center",tr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',e6=`${tr}.${_r}`,bi=".dropdown-menu",t6=".navbar",n6=".navbar-nav",r6=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",o6=$t()?"top-end":"top-start",i6=$t()?"top-start":"top-end",s6=$t()?"bottom-end":"bottom-start",a6=$t()?"bottom-start":"bottom-end",l6=$t()?"left-start":"right-start",c6=$t()?"right-start":"left-start",u6="top",d6="bottom",f6={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},h6={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class rn extends Gt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,bi)[0]||ye.prev(this._element,bi)[0]||ye.findOne(bi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return f6}static get DefaultType(){return h6}static get NAME(){return Yd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Fn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,KC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(n6))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Es);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_r),this._element.classList.add(_r),ne.trigger(this._element,GC,e)}}hide(){if(Fn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ne.trigger(this._element,jC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Es);this._popper&&this._popper.destroy(),this._menu.classList.remove(_r),this._element.classList.remove(_r),this._element.setAttribute("aria-expanded","false"),yn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,WC,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Yd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Vp>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=$n(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Us(e,this._menu,t)}_isShown(){return this._menu.classList.contains(_r)}_getPlacement(){const e=this._parent;if(e.classList.contains(ZC))return l6;if(e.classList.contains(XC))return c6;if(e.classList.contains(QC))return u6;if(e.classList.contains(qC))return d6;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(JC)?t?i6:o6:t?a6:s6}_detectNavbar(){return this._element.closest(t6)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(yn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...yt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ye.find(r6,this._menu).filter(o=>ro(o));r.length&&_c(r,t,e===Zd,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=rn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===UC||e.type==="keyup"&&e.key!==Jd)return;const t=ye.find(e6);for(const r of t){const o=rn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Jd||/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===zC,o=[HC,Zd].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(tr)?this:ye.prev(this,tr)[0]||ye.next(this,tr)[0]||ye.findOne(tr,e.delegateTarget.parentNode),s=rn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,Om,tr,rn.dataApiKeydownHandler);ne.on(document,Om,bi,rn.dataApiKeydownHandler);ne.on(document,Am,rn.clearMenus);ne.on(document,YC,rn.clearMenus);ne.on(document,Am,tr,function(n){n.preventDefault(),rn.getOrCreateInstance(this).toggle()});Vt(rn);const Mm="backdrop",p6="fade",Xd="show",Qd=`mousedown.bs.${Mm}`,m6={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},g6={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Nm extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return m6}static get DefaultType(){return g6}static get NAME(){return Mm}show(e){if(!this._config.isVisible){yt(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Wo(t),t.classList.add(Xd),this._emulateAnimation(()=>{yt(e)})}hide(e){if(!this._config.isVisible){yt(e);return}this._getElement().classList.remove(Xd),this._emulateAnimation(()=>{this.dispose(),yt(e)})}dispose(){this._isAppended&&(ne.off(this._element,Qd),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(p6),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=$n(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,Qd,()=>{yt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){mm(e,this._getElement(),this._config.isAnimated)}}const v6="focustrap",y6="bs.focustrap",Ss=`.${y6}`,b6=`focusin${Ss}`,E6=`keydown.tab${Ss}`,C6="Tab",S6="forward",qd="backward",w6={autofocus:!0,trapElement:null},k6={autofocus:"boolean",trapElement:"element"};class Im extends Ko{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return w6}static get DefaultType(){return k6}static get NAME(){return v6}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ss),ne.on(document,b6,e=>this._handleFocusin(e)),ne.on(document,E6,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ss))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ye.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===qd?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===C6&&(this._lastTabNavDirection=e.shiftKey?qd:S6)}}const ef=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tf=".sticky-top",ci="padding-right",nf="margin-right";class Ml{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ci,t=>t+e),this._setElementAttributes(ef,ci,t=>t+e),this._setElementAttributes(tf,nf,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ci),this._resetElementAttributes(ef,ci),this._resetElementAttributes(tf,nf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&yn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=yn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}yn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ye.find(e,this._element))t(r)}}const x6="modal",T6="bs.modal",Ft=`.${T6}`,A6=".data-api",O6="Escape",M6=`hide${Ft}`,N6=`hidePrevented${Ft}`,Dm=`hidden${Ft}`,_m=`show${Ft}`,I6=`shown${Ft}`,D6=`resize${Ft}`,_6=`click.dismiss${Ft}`,L6=`mousedown.dismiss${Ft}`,R6=`keydown.dismiss${Ft}`,B6=`click${Ft}${A6}`,rf="modal-open",P6="fade",of="show",$a="modal-static",$6=".modal.show",F6=".modal-dialog",V6=".modal-body",z6='[data-bs-toggle="modal"]',H6={backdrop:!0,focus:!0,keyboard:!0},U6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class mr extends Gt{constructor(e,t){super(e,t),this._dialog=ye.findOne(F6,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ml,this._addEventListeners()}static get Default(){return H6}static get DefaultType(){return U6}static get NAME(){return x6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,_m,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(rf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,M6).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(of),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Ft),ne.off(this._dialog,Ft),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Im({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ye.findOne(V6,this._dialog);t&&(t.scrollTop=0),Wo(this._element),this._element.classList.add(of);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,I6,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,R6,e=>{if(e.key===O6){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,D6,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,L6,e=>{ne.one(this._element,_6,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(rf),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,Dm)})}_isAnimated(){return this._element.classList.contains(P6)}_triggerBackdropTransition(){if(ne.trigger(this._element,N6).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($a)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($a),this._queueCallback(()=>{this._element.classList.remove($a),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=$t()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=$t()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=mr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,B6,z6,function(n){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,_m,o=>{o.defaultPrevented||ne.one(e,Dm,()=>{ro(this)&&this.focus()})});const t=ye.findOne($6);t&&mr.getInstance(t).hide(),mr.getOrCreateInstance(e).toggle(this)});Gs(mr);Vt(mr);const j6="offcanvas",W6="bs.offcanvas",En=`.${W6}`,Lm=".data-api",K6=`load${En}${Lm}`,G6="Escape",sf="show",af="showing",lf="hiding",Y6="offcanvas-backdrop",Rm=".offcanvas.show",J6=`show${En}`,Z6=`shown${En}`,X6=`hide${En}`,cf=`hidePrevented${En}`,Bm=`hidden${En}`,Q6=`resize${En}`,q6=`click${En}${Lm}`,eS=`keydown.dismiss${En}`,tS='[data-bs-toggle="offcanvas"]',nS={backdrop:!0,keyboard:!0,scroll:!1},rS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vn extends Gt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return nS}static get DefaultType(){return rS}static get NAME(){return j6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,J6,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ml().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(af);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(sf),this._element.classList.remove(af),ne.trigger(this._element,Z6,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,X6).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(lf),this._backdrop.hide();const t=()=>{this._element.classList.remove(sf,lf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ml().reset(),ne.trigger(this._element,Bm)};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,cf);return}this.hide()},t=!!this._config.backdrop;return new Nm({className:Y6,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Im({trapElement:this._element})}_addEventListeners(){ne.on(this._element,eS,e=>{if(e.key===G6){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,cf)}})}static jQueryInterface(e){return this.each(function(){const t=Vn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,q6,tS,function(n){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Fn(this))return;ne.one(e,Bm,()=>{ro(this)&&this.focus()});const t=ye.findOne(Rm);t&&t!==e&&Vn.getInstance(t).hide(),Vn.getOrCreateInstance(e).toggle(this)});ne.on(window,K6,()=>{for(const n of ye.find(Rm))Vn.getOrCreateInstance(n).show()});ne.on(window,Q6,()=>{for(const n of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Vn.getOrCreateInstance(n).hide()});Gs(Vn);Vt(Vn);const oS=/^aria-[\w-]*$/i,Pm={"*":["class","dir","id","lang","role",oS],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:[]},iS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),sS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,aS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?iS.has(t)?!!sS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function lS(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)aS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const cS="TemplateFactory",uS={allowList:Pm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},dS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},fS={entry:"(string|element|function|null)",selector:"(string|element)"};class hS extends Ko{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return uS}static get DefaultType(){return dS}static get NAME(){return cS}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},fS)}_setContent(e,t,r){const o=ye.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate($n(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?lS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return yt(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const pS="tooltip",mS=new Set(["sanitize","allowList","sanitizeFn"]),Fa="fade",gS="modal",ui="show",vS=".tooltip-inner",uf=`.${gS}`,df="hide.bs.modal",ao="hover",Va="focus",yS="click",bS="manual",ES="hide",CS="hidden",SS="show",wS="shown",kS="inserted",xS="click",TS="focusin",AS="focusout",OS="mouseenter",MS="mouseleave",NS={AUTO:"auto",TOP:"top",RIGHT:$t()?"left":"right",BOTTOM:"bottom",LEFT:$t()?"right":"left"},IS={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"},DS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class yr extends Gt{constructor(e,t){if(typeof Vp>"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 IS}static get DefaultType(){return DS}static get NAME(){return pS}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(uf),df,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(SS)),r=(hm(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(kS))),this._popper=this._createPopper(o),o.classList.add(ui),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Es);const s=()=>{ne.trigger(this._element,this.constructor.eventName(wS)),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(ES)).defaultPrevented)return;if(this._getTipElement().classList.remove(ui),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Es);this._activeTrigger[yS]=!1,this._activeTrigger[Va]=!1,this._activeTrigger[ao]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(CS)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Fa,ui),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=y4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Fa),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new hS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[vS]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Fa)}_isShown(){return this.tip&&this.tip.classList.contains(ui)}_createPopper(e){const t=yt(this._config.placement,[this,e,this._element]),r=NS[t.toUpperCase()];return Us(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return yt(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...yt(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(xS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==bS){const r=t===ao?this.constructor.eventName(OS):this.constructor.eventName(TS),o=t===ao?this.constructor.eventName(MS):this.constructor.eventName(AS);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Va:ao]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Va:ao]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(uf),df,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=yn.getDataAttributes(this._element);for(const r of Object.keys(t))mS.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:$n(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(yr);const _S="popover",LS=".popover-header",RS=".popover-body",BS={...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"},PS={...yr.DefaultType,content:"(null|string|element|function)"};class Bc extends yr{static get Default(){return BS}static get DefaultType(){return PS}static get NAME(){return _S}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[LS]:this._getTitle(),[RS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Bc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Vt(Bc);const $S="scrollspy",FS="bs.scrollspy",Pc=`.${FS}`,VS=".data-api",zS=`activate${Pc}`,ff=`click${Pc}`,HS=`load${Pc}${VS}`,US="dropdown-item",Tr="active",jS='[data-bs-spy="scroll"]',za="[href]",WS=".nav, .list-group",hf=".nav-link",KS=".nav-item",GS=".list-group-item",YS=`${hf}, ${KS} > ${hf}, ${GS}`,JS=".dropdown",ZS=".dropdown-toggle",XS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},QS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Zs extends Gt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return XS}static get DefaultType(){return QS}static get NAME(){return $S}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=$n(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,ff),ne.on(this._config.target,ff,za,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ye.find(za,this._config.target);for(const t of e){if(!t.hash||Fn(t))continue;const r=ye.findOne(decodeURI(t.hash),this._element);ro(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Tr),this._activateParents(e),ne.trigger(this._element,zS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(US)){ye.findOne(ZS,e.closest(JS)).classList.add(Tr);return}for(const t of ye.parents(e,WS))for(const r of ye.prev(t,YS))r.classList.add(Tr)}_clearActiveClass(e){e.classList.remove(Tr);const t=ye.find(`${za}.${Tr}`,e);for(const r of t)r.classList.remove(Tr)}static jQueryInterface(e){return this.each(function(){const t=Zs.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,HS,()=>{for(const n of ye.find(jS))Zs.getOrCreateInstance(n)});Vt(Zs);const qS="tab",ew="bs.tab",br=`.${ew}`,tw=`hide${br}`,nw=`hidden${br}`,rw=`show${br}`,ow=`shown${br}`,iw=`click${br}`,sw=`keydown${br}`,aw=`load${br}`,lw="ArrowLeft",pf="ArrowRight",cw="ArrowUp",mf="ArrowDown",nr="active",gf="fade",Ha="show",uw="dropdown",dw=".dropdown-toggle",fw=".dropdown-menu",Ua=":not(.dropdown-toggle)",hw='.list-group, .nav, [role="tablist"]',pw=".nav-item, .list-group-item",mw=`.nav-link${Ua}, .list-group-item${Ua}, [role="tab"]${Ua}`,$m='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ja=`${mw}, ${$m}`,gw=`.${nr}[data-bs-toggle="tab"], .${nr}[data-bs-toggle="pill"], .${nr}[data-bs-toggle="list"]`;class qr extends Gt{constructor(e){super(e),this._parent=this._element.closest(hw),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,sw,t=>this._keydown(t)))}static get NAME(){return qS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,tw,{relatedTarget:e}):null;ne.trigger(e,rw,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(nr),this._activate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Ha);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,ow,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(gf))}_deactivate(e,t){if(!e)return;e.classList.remove(nr),e.blur(),this._deactivate(ye.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Ha);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,nw,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(gf))}_keydown(e){if(![lw,pf,cw,mf].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[pf,mf].includes(e.key),r=_c(this._getChildren().filter(o=>!Fn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),qr.getOrCreateInstance(r).show())}_getChildren(){return ye.find(ja,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ye.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(uw))return;const o=(i,s)=>{const l=ye.findOne(i,r);l&&l.classList.toggle(s,t)};o(dw,nr),o(fw,Ha),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(nr)}_getInnerElement(e){return e.matches(ja)?e:ye.findOne(ja,e)}_getOuterElement(e){return e.closest(pw)||e}static jQueryInterface(e){return this.each(function(){const t=qr.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,iw,$m,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Fn(this)&&qr.getOrCreateInstance(this).show()});ne.on(window,aw,()=>{for(const n of ye.find(gw))qr.getOrCreateInstance(n)});Vt(qr);const vw="toast",yw="bs.toast",Kn=`.${yw}`,bw=`mouseover${Kn}`,Ew=`mouseout${Kn}`,Cw=`focusin${Kn}`,Sw=`focusout${Kn}`,ww=`hide${Kn}`,kw=`hidden${Kn}`,xw=`show${Kn}`,Tw=`shown${Kn}`,Aw="fade",vf="hide",di="show",fi="showing",Ow={animation:"boolean",autohide:"boolean",delay:"number"},Mw={animation:!0,autohide:!0,delay:5e3};class Jo extends Gt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Mw}static get DefaultType(){return Ow}static get NAME(){return vw}show(){if(ne.trigger(this._element,xw).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Aw);const t=()=>{this._element.classList.remove(fi),ne.trigger(this._element,Tw),this._maybeScheduleHide()};this._element.classList.remove(vf),Wo(this._element),this._element.classList.add(di,fi),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,ww).defaultPrevented)return;const t=()=>{this._element.classList.add(vf),this._element.classList.remove(fi,di),ne.trigger(this._element,kw)};this._element.classList.add(fi),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(di),super.dispose()}isShown(){return this._element.classList.contains(di)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,bw,e=>this._onInteraction(e,!0)),ne.on(this._element,Ew,e=>this._onInteraction(e,!1)),ne.on(this._element,Cw,e=>this._onInteraction(e,!0)),ne.on(this._element,Sw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Jo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gs(Jo);Vt(Jo);const Nw=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new mr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function Iw(n=void 0){const e=l=>i("Succesvol",l,Lr.SUCCESS),t=l=>i("Waarschuwing",l,Lr.WARNING),r=l=>i("Informatie",l,Lr.INFO),o=l=>i("Mislukt",l,Lr.DANGER);function i(l,a,c){const u=`toast-${Rf()}`,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(Wl,d),g=f.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${u}`);v&&(Jo.getOrCreateInstance(v,n).show(),s(v))}function s(l){function a(d,h){d.forEach(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 Fm={mounted:n=>{new yr(n)}},Dw={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},lt=f.defineComponent({__name:"BDButton",props:{size:{default:at.MD},variant:{default:Dw.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?zr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),_w={install:n=>{n.component("BDCol",yf),n.component("BDContainer",bf),n.component("BDRow",Ef),n.component("BDButton",lt),n.component("BDLogo",Ul),n.component("BDLink",zr),n.component("BDDropdownItem",wi),n.component("BDDropdown",Dc),n.component("BDAlert",If),n.component("BDProfileImage",Fo),n.component("BDZoomslider",_f),n.component("BDCard",jl),n.component("BDCollapsableCard",Bf),n.component("BDFormInput",$f),n.component("BDInputGroup",Ff),n.component("BDFormInvalidFeedback",As),n.component("BDBadge",Vf),n.component("BDForm",zf),n.component("BDPagination",Hf),n.component("BDDropzone",Gf),n.component("BDMarkdownEditor",im),n.component("BDModal",um),n.component("BDFormSelect",Uf),n.component("BDUser",sm),n.component("BDArticle",Wf),n.component("BDFormCheckbox",jf),n.component("BDToast",Wl),n.component("BDAttachmentPreviewList",Ws),n.component("BDImageAttachmentPreviewList",Ks),n.component("BDHeader",cm),n.component("BDMobileMenu",Ic),n.component("BDChatCloud",am),n.component("BDTable",lm),n.component("IconAcademy",Cf),n.component("IconArrowDown",Sf),n.component("IconArrowUp",wf),n.component("IconAttachment",cr),n.component("IconBold",Nl),n.component("IconBulletList",Il),n.component("IconCalendar",Wa),n.component("IconCalendar",Wa),n.component("IconCardView",kf),n.component("IconCaretDown",Dl),n.component("IconCaretLeft",_l),n.component("IconCaretRight",Ll),n.component("IconCheck",Po),n.component("IconClose",ws),n.component("IconDownloadImage",Ei),n.component("IconDownloadImage",Ei),n.component("IconEdit",xf),n.component("IconError",ks),n.component("IconEyeShow",Tf),n.component("IconEyeSlash",Af),n.component("IconFile",Rl),n.component("IconHyperlink",Bl),n.component("IconInfo",xs),n.component("IconItalic",Pl),n.component("IconListView",Of),n.component("IconMenu",Ci),n.component("IconMenu",Ci),n.component("IconOrderedList",$l),n.component("IconRemove",$o),n.component("IconSort",Mf),n.component("IconSortAsc",Fl),n.component("IconSortDesc",Vl),n.component("IconSortNone",zl),n.component("IconTriangleExclamation",Nf),n.component("IconUnderline",Hl),n.directive("vBDTooltip",Fm)}};exports.BDAlert=If;exports.BDArticle=Wf;exports.BDAttachmentPreviewList=Ws;exports.BDBadge=Vf;exports.BDButton=lt;exports.BDCard=jl;exports.BDChatCloud=am;exports.BDCol=yf;exports.BDCollapsableCard=Bf;exports.BDContainer=bf;exports.BDDropdown=Dc;exports.BDDropdownItem=wi;exports.BDDropzone=Gf;exports.BDForm=zf;exports.BDFormCheckbox=jf;exports.BDFormInput=$f;exports.BDFormInvalidFeedback=As;exports.BDFormSelect=Uf;exports.BDHeader=cm;exports.BDImageAttachmentPreviewList=Ks;exports.BDInputGroup=Ff;exports.BDLink=zr;exports.BDLogo=Ul;exports.BDMarkdownEditor=im;exports.BDMobileMenu=Ic;exports.BDModal=um;exports.BDPagination=Hf;exports.BDProfileImage=Fo;exports.BDRow=Ef;exports.BDTable=lm;exports.BDToast=Wl;exports.BDUser=sm;exports.BDZoomslider=_f;exports.IconAcademy=Cf;exports.IconArrowDown=Sf;exports.IconArrowUp=wf;exports.IconAttachment=cr;exports.IconBold=Nl;exports.IconBulletList=Il;exports.IconCalendar=Wa;exports.IconCardView=kf;exports.IconCaretDown=Dl;exports.IconCaretLeft=_l;exports.IconCaretRight=Ll;exports.IconCheck=Po;exports.IconClose=ws;exports.IconDownloadImage=Ei;exports.IconEdit=xf;exports.IconError=ks;exports.IconEyeShow=Tf;exports.IconEyeSlash=Af;exports.IconFile=Rl;exports.IconHyperlink=Bl;exports.IconInfo=xs;exports.IconItalic=Pl;exports.IconListView=Of;exports.IconMenu=Ci;exports.IconOrderedList=$l;exports.IconRemove=$o;exports.IconSort=Mf;exports.IconSortAsc=Fl;exports.IconSortDesc=Vl;exports.IconSortNone=zl;exports.IconTriangleExclamation=Nf;exports.IconUnderline=Hl;exports.default=_w;exports.useModal=Nw;exports.useToaster=Iw;exports.vBdTooltip=Fm;
|