@beterdichtbij/component-library 0.72.7-alpha.1 → 0.73.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bd-component-lib.cjs.js +2 -2
- package/dist/bd-component-lib.es.js +288 -227
- package/dist/bd-component-lib.umd.js +2 -2
- package/dist/components/icons/IconBlur.vue.d.ts +2 -0
- package/dist/components/icons/IconParticipant.vue.d.ts +2 -0
- package/dist/locales/en.json +7 -1
- package/dist/locales/nl.json +7 -1
- package/dist/scss/_alert.scss +0 -6
- package/dist/scss/_article.scss +0 -11
- package/dist/scss/_card.scss +0 -6
- package/dist/scss/_chatcloud.scss +19 -20
- package/dist/scss/_collapsable-card.scss +4 -0
- package/dist/scss/_templates.scss +59 -5
- package/dist/scss/templates/_not-found-template.scss +0 -26
- package/dist/scss/templates/_video-call-template.scss +63 -0
- package/package.json +3 -3
|
@@ -1692,7 +1692,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1692
1692
|
}
|
|
1693
1693
|
`,classes:{root:function(e){return[`p-fileupload p-fileupload-${e.props.mode} p-component`]},header:`p-fileupload-header`,pcChooseButton:`p-fileupload-choose-button`,pcUploadButton:`p-fileupload-upload-button`,pcCancelButton:`p-fileupload-cancel-button`,content:`p-fileupload-content`,fileList:`p-fileupload-file-list`,file:`p-fileupload-file`,fileThumbnail:`p-fileupload-file-thumbnail`,fileInfo:`p-fileupload-file-info`,fileName:`p-fileupload-file-name`,fileSize:`p-fileupload-file-size`,pcFileBadge:`p-fileupload-file-badge`,fileActions:`p-fileupload-file-actions`,pcFileRemoveButton:`p-fileupload-file-remove-button`,basicContent:`p-fileupload-basic-content`}}),ly={name:`BaseFileUpload`,extends:wp,props:{name:{type:String,default:null},url:{type:String,default:null},mode:{type:String,default:`advanced`},multiple:{type:Boolean,default:!1},accept:{type:String,default:null},disabled:{type:Boolean,default:!1},auto:{type:Boolean,default:!1},maxFileSize:{type:Number,default:null},invalidFileSizeMessage:{type:String,default:`{0}: Invalid file size, file size should be smaller than {1}.`},invalidFileTypeMessage:{type:String,default:`{0}: Invalid file type, allowed file types: {1}.`},fileLimit:{type:Number,default:null},invalidFileLimitMessage:{type:String,default:`Maximum number of files exceeded, limit is {0} at most.`},withCredentials:{type:Boolean,default:!1},previewWidth:{type:Number,default:50},chooseLabel:{type:String,default:null},uploadLabel:{type:String,default:null},cancelLabel:{type:String,default:null},customUpload:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},chooseIcon:{type:String,default:void 0},uploadIcon:{type:String,default:void 0},cancelIcon:{type:String,default:void 0},style:null,class:null,chooseButtonProps:{type:null,default:null},uploadButtonProps:{type:Object,default:function(){return{severity:`secondary`}}},cancelButtonProps:{type:Object,default:function(){return{severity:`secondary`}}}},style:cy,provide:function(){return{$pcFileUpload:this,$parentInstance:this}}},uy={name:`FileContent`,hostName:`FileUpload`,extends:wp,emits:[`remove`],props:{files:{type:Array,default:function(){return[]}},badgeSeverity:{type:String,default:`warn`},badgeValue:{type:String,default:null},previewWidth:{type:Number,default:50},templates:{type:null,default:null}},methods:{formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`}},components:{Button:Bm,Badge:tm,TimesIcon:bv}},dy=[`alt`,`src`,`width`];function fy(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`Badge`),s=(0,u.resolveComponent)(`TimesIcon`),c=(0,u.resolveComponent)(`Button`);return(0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.files,function(t,r){return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:t.name+t.type+t.size,class:e.cx(`file`)},{ref_for:!0},e.ptm(`file`)),[(0,u.createElementVNode)(`img`,(0,u.mergeProps)({role:`presentation`,class:e.cx(`fileThumbnail`),alt:t.name,src:t.objectURL,width:n.previewWidth},{ref_for:!0},e.ptm(`fileThumbnail`)),null,16,dy),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`fileInfo`)},{ref_for:!0},e.ptm(`fileInfo`)),[(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`fileName`)},{ref_for:!0},e.ptm(`fileName`)),(0,u.toDisplayString)(t.name),17),(0,u.createElementVNode)(`span`,(0,u.mergeProps)({class:e.cx(`fileSize`)},{ref_for:!0},e.ptm(`fileSize`)),(0,u.toDisplayString)(a.formatSize(t.size)),17)],16),(0,u.createVNode)(o,{value:n.badgeValue,class:(0,u.normalizeClass)(e.cx(`pcFileBadge`)),severity:n.badgeSeverity,unstyled:e.unstyled,pt:e.ptm(`pcFileBadge`)},null,8,[`value`,`class`,`severity`,`unstyled`,`pt`]),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`fileActions`)},{ref_for:!0},e.ptm(`fileActions`)),[(0,u.createVNode)(c,{onClick:function(t){return e.$emit(`remove`,r)},text:``,rounded:``,severity:`danger`,class:(0,u.normalizeClass)(e.cx(`pcFileRemoveButton`)),unstyled:e.unstyled,pt:e.ptm(`pcFileRemoveButton`)},{icon:(0,u.withCtx)(function(i){return[n.templates.fileremoveicon?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(n.templates.fileremoveicon),{key:0,class:(0,u.normalizeClass)(i.class),file:t,index:r},null,8,[`class`,`file`,`index`])):((0,u.openBlock)(),(0,u.createBlock)(s,(0,u.mergeProps)({key:1,class:i.class,"aria-hidden":`true`},{ref_for:!0},e.ptm(`pcFileRemoveButton`).icon),null,16,[`class`]))]}),_:2},1032,[`onClick`,`class`,`unstyled`,`pt`])],16)],16)}),128)}uy.render=fy;function py(e){return gy(e)||hy(e)||vy(e)||my()}function my(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1694
1694
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hy(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function gy(e){if(Array.isArray(e))return yy(e)}function _y(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=vy(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1695
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function vy(e,t){if(e){if(typeof e==`string`)return yy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yy(e,t):void 0}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var by={name:`FileUpload`,extends:ly,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=_y(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=_y(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,py(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=_y(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=_y(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&yd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&bd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&bd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=py(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=py(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:Bm,ProgressBar:ny,Message:Hv,FileContent:uy,PlusIcon:fv,UploadIcon:Ov,TimesIcon:bv},directives:{ripple:Om}},xy=[`multiple`,`accept`,`disabled`],Sy=[`accept`,`disabled`,`multiple`];function Cy(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`Button`),s=(0,u.resolveComponent)(`ProgressBar`),c=(0,u.resolveComponent)(`Message`),l=(0,u.resolveComponent)(`FileContent`);return a.isAdvanced?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,onChange:t[0]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},multiple:e.multiple,accept:e.accept,disabled:a.chooseDisabled},e.ptm(`input`)),null,16,xy),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,u.renderSlot)(e.$slots,`header`,{files:i.files,uploadedFiles:i.uploadedFiles,chooseCallback:a.choose,uploadCallback:a.uploader,clearCallback:a.clear},function(){return[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:a.choose,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.showUploadButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:a.uploadButtonLabel,onClick:a.uploader,disabled:a.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,u.mergeProps)({class:[t.class,e.uploadIcon],"aria-hidden":`true`},e.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),e.showCancelButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:a.cancelButtonLabel,onClick:a.clear,disabled:a.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,u.mergeProps)({class:[t.class,e.cancelIcon],"aria-hidden":`true`},e.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0)]})],16),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:t[1]||=function(){return a.onDragEnter&&a.onDragEnter.apply(a,arguments)},onDragover:t[2]||=function(){return a.onDragOver&&a.onDragOver.apply(a,arguments)},onDragleave:t[3]||=function(){return a.onDragLeave&&a.onDragLeave.apply(a,arguments)},onDrop:t[4]||=function(){return a.onDrop&&a.onDrop.apply(a,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,u.renderSlot)(e.$slots,`content`,{files:i.files,uploadedFiles:i.uploadedFiles,removeUploadedFileCallback:a.removeUploadedFile,removeFileCallback:a.remove,progress:i.progress,messages:i.messages},function(){return[a.hasFiles?((0,u.openBlock)(),(0,u.createBlock)(s,{key:0,value:i.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),a.hasFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.files,onRemove:a.remove,badgeValue:a.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0),a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.uploadedFiles,onRemove:a.removeUploadedFile,badgeValue:a.completedLabel,badgeSeverity:`success`,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0)]}),e.$slots.empty&&!a.hasFiles&&!a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.normalizeProps)((0,u.mergeProps)({key:0},e.ptm(`empty`))),[(0,u.renderSlot)(e.$slots,`empty`)],16)):(0,u.createCommentVNode)(``,!0)],16)],16)):a.isBasic?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:a.onBasicUploaderClick,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.auto?(0,u.createCommentVNode)(``,!0):(0,u.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,u.normalizeClass)(e.cx(`filelabel`)),files:i.files},function(){return[(0,u.createElementVNode)(`span`,{class:(0,u.normalizeClass)(e.cx(`filelabel`))},(0,u.toDisplayString)(a.basicFileChosenLabel),3)]}),(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:t[5]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},onFocus:t[6]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[7]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)}},e.ptm(`input`)),null,16,Sy)],16)],16)):(0,u.createCommentVNode)(``,!0)}by.render=Cy;var wy={notFoundTemplate:{title:`Page not found`,description:`The page you're looking for couldn't be found. Check the URL or go back to the mainpage.`,buttonDefault:`Back to mainpage`},practitionerHeader:{tooltipAcademy:`BeterDichtbij Academie`,menuItemAcademy:`Academie`},videoCallTemplate:{signalStrength:{weak:`Weak signal`,steady:`Moderate signal`,strong:`Strong signal`},actions:{fullScreen:`Full screen`,miniPlayer:`Mini player`,shareScreen:`Share screen`,stopSharingScreen:`Stop sharing screen`,testCall:`Run the video call test`,serviceDesk:`Service desk`,endCall:`End call`,closeWindow:`Close window`,switchCamera:`Switch camera`},help:{placeholderSettingsHelpTitle:`Connection issues?`,placeholderSettingsHelpMessage:`End the call and try again.`},statusTextMessage:{initializing:`Initializing...`,dialing:`Calling...`,ringing:`Phone is ringing`,answered:`Call answered`,connected:`Connected`,videoCallDeclined:`The call could not be answered right now.`,videoCallHangedUp:`Call has ended.`,devicePermissionDenied:`A call cannot be started`,callNotDelivered:`The video call does not arrive on the {participantRole}'s mobile phone or tablet.`,signalHold:`Video call connection with {participantRole}'s phone/tablet could not be established`,connectionIssues:`Connection issues`},statusDetailMessage:{notAnsweredDetail:`{participantRole} does not appear to answer.`,noVideoHint:`No video? Run the video call test.`,callNotDeliveredDetail:`Asking {participantRole} to log in again in the BeterDichtbij app often resolves this.`,connectionIssuesMedium:`The connection is unstable.`,connectionIssuesStrong:`The connection seems lost. Check internet connection and try again.`,signalHoldDetail:`Run the video call test.`},permissions:{permissionDeniedForVideo:`No access to camera`,permissionDeniedForAudio:`No access to microphone`},cameraAvailability:{hasNoAvailableCamera:`No camera available.`,hasOneAvailableCamera:`One camera is available.`,hasMultipleAvailableCameras:`Multiple cameras are available.`},endReasons:{0:`{participantRole} ended the call.`,4:`The app was closed.`,5:`{participantRole} ended the call.`,6:`BeterDichtbij call screen was closed.`,10:`{participantRole} waited too long to answer.`,12:`Network or camera issue on {participantRole} side. Check internet and camera permission.`,20:`{participantRole} pressed Back while the phone was ringing.`,21:`Call was hung up.`,22:`{participantRole} pressed Home while the phone was ringing.`,23:`{participantRole} waited too long to answer.`,24:`{participantRole} clicked Yes in the popup.`,25:`{participantRole} ended the call.`,26:`The app moved to background on phone/tablet.`,33:`Outdated app version. Ask {participantRole} to update the BeterDichtbij app.`},unknown:`Unknown message`}},Ty={activeFilters:{title:`Actieve filters`,clearAll:`Wis alle filters`},assignConversationModal:{title:`Gesprek overdragen`,submitButton:`Gesprek overdragen`,conclude:`Afhandelen bij de overdracht`,concludeTooltip:`Het gesprek blijft beschikbaar, deze wordt getoond als het filter "afgehandeld" is geselecteerd. Je patiënt kan ook nog gewoon reageren.`,makeUnread:`Gesprek op ongelezen zetten`},attachmentUploadModal:{title:`Bijlage toevoegen`,submitButton:`Toevoegen`,infoMessage:`Kies je bestand.`,addAttachmentButton:`Bijlage toevoegen`,errorMessage:`Fout opgetreden`,fileTooBigErrorMessage:`Bestand is te groot.`,fileSizeExceededMessage:`Bestanden mogen maximaal 10 MB groot zijn.`},changePasswordTemplate:{toasters:{reset:`De velden zijn geleegd.`}},contentLibraryCard:{insert:`Invoegen`},contentLibraryCardMessageTemplate:{insert:`Invoegen`,collapseOpen:`Inklappen`,collapseClosed:`Lees meer`,popoverIsSharedByOtherUser:`Dit bericht kan alleen door de eigenaar of beheerder aangepast worden`,delete:`Verwijderen`,edit:`Wijzigen`},contentLibraryOverview:{noResults:`Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken.`},contentLibrarySplitButton:{messageTemplatesTitle:`Standaardberichten`},contentLibraryTemplate:{changeCategoryButtonLabel:`Mijn categorieën aanpassen`,newMessageText:`Nieuw bericht`,message:`Bericht`,messages:`Berichten`,more:`Meer`,less:`Minder`,searchPlaceholder:`Zoek een bericht`,searchPlaceholderSearch:`Vul een zoekterm in om resultaten te tonen`},conversationToTextModal:{copyButton:`Kopieer selectie naar klembord`,copySuccess:`Het gesprek is gekopieerd naar het klembord.`,onBehalfOf:`namens`,prefix:`Communicatie vanuit BeterDichtbij`,selectAll:`Alles selecteren`,systemMessage:`Tussentijdse mededeling`},imageAttachmentModal:{download:`Download afbeelding`,loading:`Afbeelding aan het laden`},fileUpload:{errorMessage:`Er is een fout opgetreden tijdens het uploaden van het bestand.`},filterCard:{more:`Meer`,less:`Minder`},messageTemplateFormModal:{createTitle:`Standaardbericht toevoegen`,editTitle:`Standaardbericht wijzigen`,titleLabel:`Titel`,titlePlaceHolder:`Zwelling na botbreuk`,replyTemplateLabel:`Standaardbericht`,replyTemplatePlaceHolder:`Schrijf hier jouw bericht naar de patiënt`,sharedWithLabel:`Delen met`,owner:`Eigenaar`,ownerPlaceholder:`Selecteer eigenaar`,tooltipOwner:`Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden`,categoryLabel:`Categorie`,categoryPlaceholderDropdown:`Selecteer categorie of maak een nieuwe aan`,validation:`Dit veld is verplicht.`},notFoundTemplate:{title:`Pagina niet gevonden`,description:`De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.`,buttonDefault:`Terug naar hoofdpagina`},practitionerHeader:{academyTooltip:`BeterDichtbij Academie`,academyMenuItem:`Academie`},videoCallConfirmationModal:{title:`Beeldbellen`,cancel:`Nee`,close:`Sluiten`,ok:`Ja`,message:`Weet je zeker dat je wilt beeldbellen?`,participantMessage:`Weet je zeker dat je wilt beeldbellen met`,testMessage:`Doe de beeldbeltest`,noMobileActivationMessage:`gebruikt BeterDichtbij via de web applicatie waardoor beeldbellen niet mogelijk is. Vraag de patiënt om de app te installeren op een mobiele telefoon of tablet.`,noCompatibleDevices:`gebruikt mogelijk een mobiele telefoon of tablet die beeldbellen niet ondersteunt. Het is daarom momenteel niet mogelijk om te beeldbellen met deze patiënt.`,generalWarning:`Beeldbellen is niet mogelijk om de volgende redenen:`,cameraPermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de camera door BeterDichtbij.`,microphonePermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de microfoon door BeterDichtbij.`,helpMessage:`om te controleren of je camera en microfoon goed werken.`},videoCallTemplate:{signalStrength:{weak:`Zwak signaal`,steady:`Matig signaal`,strong:`Sterk signaal`},actions:{fullScreen:`Volledig scherm`,miniPlayer:`Mini player`,shareScreen:`Scherm delen`,stopSharingScreen:`Stop scherm delen`,testCall:`Doe de beeldbeltest`,serviceDesk:`Servicedesk`,endCall:`Gesprek beëindigen`,closeWindow:`Venster sluiten`,switchCamera:`Wissel camera`},help:{placeholderSettingsHelpTitle:`Problemen met de verbinding?`,placeholderSettingsHelpMessage:`Sluit het gesprek en probeer opnieuw te bellen.`},statusTextMessage:{initializing:`Bezig met opstarten...`,dialing:`Bellen...`,ringing:`Telefoon gaat over`,answered:`Er is opgenomen`,connected:`Verbonden`,videoCallDeclined:`Er kon op dit moment niet worden opgenomen.`,videoCallHangedUp:`Er is opgehangen.`,devicePermissionDenied:`Er kan geen gesprek worden gestart`,callNotDelivered:`Beeldbelgesprek komt niet aan op de mobiele telefoon of tablet van de {participantRole}.`,signalHold:`Beeldbel verbinding met {participantRole} zijn telefoon/tablet komt niet tot stand`,connectionIssues:`Connectie problemen`},statusDetailMessage:{notAnsweredDetail:`{participantRole} lijkt niet op te nemen.`,noVideoHint:`Geen beeld? Doe de beeldbel kwaliteit test.`,callNotDeliveredDetail:`De {participantRole} opnieuw laten inloggen in de BeterDichtbij app lost het probleem vaak op.`,connectionIssuesMedium:`De verbinding is instabiel.`,connectionIssuesStrong:`De verbinding lijkt verbroken. Controleer internetverbinding en probeer opnieuw.`,signalHoldDetail:`Doe de beeldbel kwaliteit test.`},permissions:{permissionDeniedForVideo:`Geen toegang beschikbaar tot de camera`,permissionDeniedForAudio:`Er is geen toegang beschikbaar tot uw microfoon`},cameraAvailability:{hasNoAvailableCamera:`Er is geen camera beschikbaar.`,hasOneAvailableCamera:`Er is één camera beschikbaar.`,hasMultipleAvailableCameras:`Er zijn meerdere camera's beschikbaar.`},endReasons:{0:`{participantRole} heeft gesprek beëindigd.`,4:`App is afgesloten.`,5:`{participantRole} heeft gesprek beëindigd.`,6:`BeterDichtbij gespreksscherm is afgesloten.`,10:`{participantRole} heeft te lang gewacht met opnemen.`,12:`Netwerk issue of camera issue bij de {participantRole}. Controleer internet en camera-toestemming bij de {participantRole}.`,20:`{participantRole} heeft de Terug-knop ingedrukt terwijl de telefoon overging.`,21:`Gesprek opgehangen.`,22:`{participantRole} heeft Home ingedrukt terwijl de telefoon overging.`,23:`{participantRole} heeft te lang gewacht met opnemen.`,24:`{participantRole} heeft Ja geklikt in de pop-up.`,25:`{participantRole} heeft gesprek beëindigd.`,26:`App is naar de achtergrond gegaan op telefoon/tablet.`,33:`Verouderde versie van de app. Vraag de {participantRole} om de BeterDichtbij app te updaten.`},unknown:`Onbekende melding`}},Ey=Hu({legacy:!1,locale:`nl`,messages:{en:{...wy},nl:{...Ty}}}),Dy=`bottom`,Oy=`right`,ky=`left`,Ay=`auto`,jy=[`top`,Dy,Oy,ky],My=`start`,Ny=`clippingParents`,Py=`viewport`,Fy=`popper`,Iy=`reference`,Ly=jy.reduce(function(e,t){return e.concat([t+`-`+My,t+`-end`])},[]),Ry=[].concat(jy,[Ay]).reduce(function(e,t){return e.concat([t,t+`-`+My,t+`-end`])},[]),zy=`beforeRead`,By=`read`,Vy=`afterRead`,Hy=`beforeMain`,Uy=`main`,Wy=`afterMain`,Gy=`beforeWrite`,Ky=`write`,qy=`afterWrite`,Jy=[zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy];function Yy(e){return e?(e.nodeName||``).toLowerCase():null}function Xy(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zy(e){return e instanceof Xy(e).Element||e instanceof Element}function Qy(e){return e instanceof Xy(e).HTMLElement||e instanceof HTMLElement}function $y(e){return typeof ShadowRoot>`u`?!1:e instanceof Xy(e).ShadowRoot||e instanceof ShadowRoot}function eb(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Qy(i)||!Yy(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function tb(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Qy(r)||!Yy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var nb={name:`applyStyles`,enabled:!0,phase:`write`,fn:eb,effect:tb,requires:[`computeStyles`]};function rb(e){return e.split(`-`)[0]}var ib=Math.max,ab=Math.min,ob=Math.round;function sb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function cb(){return!/^((?!chrome|android).)*safari/i.test(sb())}function lb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Qy(e)&&(i=e.offsetWidth>0&&ob(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ob(r.height)/e.offsetHeight||1);var o=(Zy(e)?Xy(e):window).visualViewport,s=!cb()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function ub(e){var t=lb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function db(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fb(e){return Xy(e).getComputedStyle(e)}function pb(e){return[`table`,`td`,`th`].indexOf(Yy(e))>=0}function mb(e){return((Zy(e)?e.ownerDocument:e.document)||window.document).documentElement}function hb(e){return Yy(e)===`html`?e:e.assignedSlot||e.parentNode||($y(e)?e.host:null)||mb(e)}function gb(e){return!Qy(e)||fb(e).position===`fixed`?null:e.offsetParent}function _b(e){var t=/firefox/i.test(sb());if(/Trident/i.test(sb())&&Qy(e)&&fb(e).position===`fixed`)return null;var n=hb(e);for($y(n)&&(n=n.host);Qy(n)&&[`html`,`body`].indexOf(Yy(n))<0;){var r=fb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function vb(e){for(var t=Xy(e),n=gb(e);n&&pb(n)&&fb(n).position===`static`;)n=gb(n);return n&&(Yy(n)===`html`||Yy(n)===`body`&&fb(n).position===`static`)?t:n||_b(e)||t}function yb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function bb(e,t,n){return ib(e,ab(t,n))}function xb(e,t,n){var r=bb(e,t,n);return r>n?n:r}function Sb(){return{top:0,right:0,bottom:0,left:0}}function Cb(e){return Object.assign({},Sb(),e)}function wb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Tb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Cb(typeof e==`number`?wb(e,jy):e)};function Eb(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=rb(n.placement),c=yb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Tb(i.padding,n),d=ub(a),f=c===`y`?`top`:ky,p=c===`y`?Dy:Oy,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=vb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=bb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Db(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||db(t.elements.popper,r)&&(t.elements.arrow=r))}var Ob={name:`arrow`,enabled:!0,phase:`main`,fn:Eb,effect:Db,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function kb(e){return e.split(`-`)[1]}var Ab={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function jb(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ob(n*i)/i||0,y:ob(r*i)/i||0}}function Mb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=ky,b=`top`,x=window;if(l){var S=vb(n),C=`clientHeight`,w=`clientWidth`;if(S===Xy(n)&&(S=mb(n),fb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Dy;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Oy;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Ab),O=u===!0?jb({x:p,y:h},Xy(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Nb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:rb(t.placement),variation:kb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mb(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mb(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Pb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Nb,data:{}},Fb={passive:!0};function Ib(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=Xy(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Fb)}),s&&c.addEventListener(`resize`,n.update,Fb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Fb)}),s&&c.removeEventListener(`resize`,n.update,Fb)}}var Lb={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Ib,data:{}},Rb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function zb(e){return e.replace(/left|right|bottom|top/g,function(e){return Rb[e]})}var Bb={start:`end`,end:`start`};function Vb(e){return e.replace(/start|end/g,function(e){return Bb[e]})}function Hb(e){var t=Xy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ub(e){return lb(mb(e)).left+Hb(e).scrollLeft}function Wb(e,t){var n=Xy(e),r=mb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=cb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Ub(e),y:c}}function Gb(e){var t=mb(e),n=Hb(e),r=e.ownerDocument?.body,i=ib(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ib(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Ub(e),s=-n.scrollTop;return fb(r||t).direction===`rtl`&&(o+=ib(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Kb(e){var t=fb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qb(e){return[`html`,`body`,`#document`].indexOf(Yy(e))>=0?e.ownerDocument.body:Qy(e)&&Kb(e)?e:qb(hb(e))}function Jb(e,t){t===void 0&&(t=[]);var n=qb(e),r=n===e.ownerDocument?.body,i=Xy(n),a=r?[i].concat(i.visualViewport||[],Kb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Jb(hb(a)))}function Yb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xb(e,t){var n=lb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Zb(e,t,n){return t===`viewport`?Yb(Wb(e,n)):Zy(t)?Xb(t,n):Yb(Gb(mb(e)))}function Qb(e){var t=Jb(hb(e)),n=[`absolute`,`fixed`].indexOf(fb(e).position)>=0&&Qy(e)?vb(e):e;return Zy(n)?t.filter(function(e){return Zy(e)&&db(e,n)&&Yy(e)!==`body`}):[]}function $b(e,t,n,r){var i=t===`clippingParents`?Qb(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Zb(e,n,r);return t.top=ib(i.top,t.top),t.right=ab(i.right,t.right),t.bottom=ab(i.bottom,t.bottom),t.left=ib(i.left,t.left),t},Zb(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ex(e){var t=e.reference,n=e.element,r=e.placement,i=r?rb(r):null,a=r?kb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Dy:c={x:o,y:t.y+t.height};break;case Oy:c={x:t.x+t.width,y:s};break;case ky:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?yb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case My:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function tx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ny:s,l=n.rootBoundary,u=l===void 0?Py:l,d=n.elementContext,f=d===void 0?Fy:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Cb(typeof g==`number`?wb(g,jy):g),v=f===`popper`?Iy:Fy,y=e.rects.popper,b=e.elements[m?v:f],x=$b(Zy(b)?b:b.contextElement||mb(e.elements.popper),c,u,o),S=lb(e.elements.reference),C=ex({reference:S,element:y,strategy:`absolute`,placement:i}),w=Yb(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function nx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Ry:c,u=kb(r),d=u?s?Ly:Ly.filter(function(e){return kb(e)===u}):jy,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=tx(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[rb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function rx(e){if(rb(e)===`auto`)return[];var t=zb(e);return[Vb(e),t,Vb(t)]}function ix(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=rb(g)===g,v=c||(_||!m?[zb(g)]:rx(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(rb(n)===`auto`?nx(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=rb(E),O=kb(E)===My,ee=[`top`,Dy].indexOf(D)>=0,te=ee?`width`:`height`,ne=tx(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),re=ee?O?Oy:ky:O?Dy:`top`;b[te]>x[te]&&(re=zb(re));var ie=zb(re),ae=[];if(a&&ae.push(ne[D]<=0),s&&ae.push(ne[re]<=0,ne[ie]<=0),ae.every(function(e){return e})){w=E,C=!1;break}S.set(E,ae)}if(C)for(var oe=m?3:1,se=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ce=oe;ce>0&&se(ce)!==`break`;ce--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var ax={name:`flip`,enabled:!0,phase:`main`,fn:ix,requiresIfExists:[`offset`],data:{_skip:!1}};function ox(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sx(e){return[`top`,Oy,Dy,ky].some(function(t){return e[t]>=0})}function cx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=tx(t,{elementContext:`reference`}),s=tx(t,{altBoundary:!0}),c=ox(o,r),l=ox(s,i,a),u=sx(c),d=sx(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var lx={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:cx};function ux(e,t,n){var r=rb(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function dx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ry.reduce(function(e,n){return e[n]=ux(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var fx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:dx};function px(e){var t=e.state,n=e.name;t.modifiersData[n]=ex({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var mx={name:`popperOffsets`,enabled:!0,phase:`read`,fn:px,data:{}};function hx(e){return e===`x`?`y`:`x`}function gx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=tx(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=rb(t.placement),v=kb(t.placement),y=!v,b=yb(_),x=hx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:ky,te=b===`y`?Dy:Oy,ne=b===`y`?`height`:`width`,re=S[b],ie=re+g[ee],ae=re-g[te],oe=p?-w[ne]/2:0,se=v===`start`?C[ne]:w[ne],ce=v===`start`?-w[ne]:-C[ne],le=t.elements.arrow,ue=p&&le?ub(le):{width:0,height:0},de=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Sb(),fe=de[ee],pe=de[te],me=bb(0,C[ne],ue[ne]),he=y?C[ne]/2-oe-me-fe-E.mainAxis:se-me-fe-E.mainAxis,ge=y?-C[ne]/2+oe+me+pe+E.mainAxis:ce+me+pe+E.mainAxis,_e=t.elements.arrow&&vb(t.elements.arrow),ve=_e?b===`y`?_e.clientTop||0:_e.clientLeft||0:0,ye=D?.[b]??0,be=re+he-ye-ve,xe=re+ge-ye,Se=bb(p?ab(ie,be):ie,re,p?ib(ae,xe):ae);S[b]=Se,O[b]=Se-re}if(s){var Ce=b===`x`?`top`:ky,we=b===`x`?Dy:Oy,Te=S[x],Ee=x===`y`?`height`:`width`,De=Te+g[Ce],Oe=Te-g[we],ke=[`top`,ky].indexOf(_)!==-1,k=D?.[x]??0,Ae=ke?De:Te-C[Ee]-w[Ee]-k+E.altAxis,je=ke?Te+C[Ee]+w[Ee]-k-E.altAxis:Oe,Me=p&&ke?xb(Ae,Te,je):bb(p?Ae:De,Te,p?je:Oe);S[x]=Me,O[x]=Me-Te}t.modifiersData[r]=O}}var _x={name:`preventOverflow`,enabled:!0,phase:`main`,fn:gx,requiresIfExists:[`offset`]};function vx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yx(e){return e===Xy(e)||!Qy(e)?Hb(e):vx(e)}function bx(e){var t=e.getBoundingClientRect(),n=ob(t.width)/e.offsetWidth||1,r=ob(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xx(e,t,n){n===void 0&&(n=!1);var r=Qy(t),i=Qy(t)&&bx(t),a=mb(t),o=lb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Yy(t)!==`body`||Kb(a))&&(s=yx(t)),Qy(t)?(c=lb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ub(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Sx(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Cx(e){var t=Sx(e);return Jy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function wx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Tx(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ex={placement:`bottom`,modifiers:[],strategy:`absolute`};function Dx(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Ox(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Ex:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Ex,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Zy(e)?Jb(e):e.contextElement?Jb(e.contextElement):[],popper:Jb(t)};var s=Cx(Tx([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Dx(t,n)){i.rects={reference:xx(t,vb(n),i.options.strategy===`fixed`),popper:ub(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:wx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Dx(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var kx=Ox(),Ax=Ox({defaultModifiers:[Lb,mx,Pb,nb]}),jx=Ox({defaultModifiers:[Lb,mx,Pb,nb,fx,ax,_x,Ob,lx]}),Mx=s({afterMain:()=>Wy,afterRead:()=>Vy,afterWrite:()=>qy,applyStyles:()=>nb,arrow:()=>Ob,auto:()=>Ay,basePlacements:()=>jy,beforeMain:()=>Hy,beforeRead:()=>zy,beforeWrite:()=>Gy,bottom:()=>Dy,clippingParents:()=>Ny,computeStyles:()=>Pb,createPopper:()=>jx,createPopperBase:()=>kx,createPopperLite:()=>Ax,detectOverflow:()=>tx,end:()=>`end`,eventListeners:()=>Lb,flip:()=>ax,hide:()=>lx,left:()=>ky,main:()=>Uy,modifierPhases:()=>Jy,offset:()=>fx,placements:()=>Ry,popper:()=>Fy,popperGenerator:()=>Ox,popperOffsets:()=>mx,preventOverflow:()=>_x,read:()=>By,reference:()=>Iy,right:()=>Oy,start:()=>My,top:()=>`top`,variationPlacements:()=>Ly,viewport:()=>Py,write:()=>Ky}),Nx=new Map,Px={set(e,t,n){Nx.has(e)||Nx.set(e,new Map);let r=Nx.get(e);if(!r.has(t)&&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(t,n)},get(e,t){return Nx.has(e)&&Nx.get(e).get(t)||null},remove(e,t){if(!Nx.has(e))return;let n=Nx.get(e);n.delete(t),n.size===0&&Nx.delete(e)}},Fx=1e6,Ix=1e3,Lx=`transitionend`,Rx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),zx=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Bx=e=>{do e+=Math.floor(Math.random()*Fx);while(document.getElementById(e));return e},Vx=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Ix)},Hx=e=>{e.dispatchEvent(new Event(Lx))},Ux=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Wx=e=>Ux(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Rx(e)):null,Gx=e=>{if(!Ux(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Kx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,qx=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?qx(e.parentNode):null},Jx=()=>{},Yx=e=>{e.offsetHeight},Xx=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,Zx=[],Qx=e=>{document.readyState===`loading`?(Zx.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of Zx)e()}),Zx.push(e)):e()},$x=()=>document.documentElement.dir===`rtl`,eS=e=>{Qx(()=>{let t=Xx();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},tS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,nS=(e,t,n=!0)=>{if(!n){tS(e);return}let r=Vx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Lx,a),tS(e))};t.addEventListener(Lx,a),setTimeout(()=>{i||Hx(t)},r)},rS=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},iS=/[^.]*(?=\..*)\.|.*/,aS=/\..*/,oS=/::\d+$/,sS={},cS=1,lS={mouseenter:`mouseover`,mouseleave:`mouseout`},uS=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function dS(e,t){return t&&`${t}::${cS++}`||e.uidEvent||cS++}function fS(e){let t=dS(e);return e.uidEvent=t,sS[t]=sS[t]||{},sS[t]}function pS(e,t){return function n(r){return xS(r,{delegateTarget:e}),n.oneOff&&H.off(e,r.type,t),t.apply(e,[r])}}function mS(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return xS(i,{delegateTarget:o}),r.oneOff&&H.off(e,i.type,t,n),n.apply(o,[i])}}function hS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function gS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=bS(e);return uS.has(a)||(a=e),[r,i,a]}function _S(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=gS(t,n,r);t in lS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=fS(e),l=c[s]||(c[s]={}),u=hS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=dS(o,t.replace(iS,``)),f=a?mS(e,n,o):pS(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function vS(e,t,n,r,i){let a=hS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function yS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&vS(e,t,n,o.callable,o.delegationSelector)}function bS(e){return e=e.replace(aS,``),lS[e]||e}var H={on(e,t,n,r){_S(e,t,n,r,!1)},one(e,t,n,r){_S(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=gS(t,n,r),s=o!==t,c=fS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;vS(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))yS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(oS,``);(!s||t.includes(i))&&vS(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Xx(),i=t!==bS(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=xS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function xS(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function SS(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function CS(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var wS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${CS(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${CS(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=SS(e.dataset[r])}return t},getDataAttribute(e,t){return SS(e.getAttribute(`data-bs-${CS(t)}`))}},TS=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let n=Ux(t)?wS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Ux(t)?wS.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Ux(t)?`element`:zx(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},ES=`5.3.8`,DS=class extends TS{constructor(e,t){super(),e=Wx(e),e&&(this._element=e,this._config=this._getConfig(t),Px.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Px.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){nS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Px.get(Wx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return ES}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},OS=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Rx(e)).join(`,`):null},U={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Kx(e)&&Gx(e))},getSelectorFromElement(e){let t=OS(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){let t=OS(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){let t=OS(e);return t?U.find(t):[]}},kS=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;H.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Kx(this))return;let i=U.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},AS=`alert`,jS=`.bs.alert`,MS=`close${jS}`,NS=`closed${jS}`,PS=`fade`,FS=`show`,IS=class e extends DS{static get NAME(){return AS}close(){if(H.trigger(this._element,MS).defaultPrevented)return;this._element.classList.remove(FS);let e=this._element.classList.contains(PS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,NS),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};kS(IS,`close`),eS(IS);var LS=`button`,RS=`.bs.button`,zS=`.data-api`,BS=`active`,VS=`[data-bs-toggle="button"]`,HS=`click${RS}${zS}`,US=class e extends DS{static get NAME(){return LS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(BS))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};H.on(document,HS,VS,e=>{e.preventDefault();let t=e.target.closest(VS);US.getOrCreateInstance(t).toggle()}),eS(US);var WS=`swipe`,GS=`.bs.swipe`,KS=`touchstart${GS}`,qS=`touchmove${GS}`,JS=`touchend${GS}`,YS=`pointerdown${GS}`,XS=`pointerup${GS}`,ZS=`touch`,QS=`pen`,$S=`pointer-event`,eC=40,tC={endCallback:null,leftCallback:null,rightCallback:null},nC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},rC=class e extends TS{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return tC}static get DefaultType(){return nC}static get NAME(){return WS}dispose(){H.off(this._element,GS)}_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(),tS(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=eC)return;let t=e/this._deltaX;this._deltaX=0,t&&tS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,YS,e=>this._start(e)),H.on(this._element,XS,e=>this._end(e)),this._element.classList.add($S)):(H.on(this._element,KS,e=>this._start(e)),H.on(this._element,qS,e=>this._move(e)),H.on(this._element,JS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===QS||e.pointerType===ZS)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},iC=`carousel`,aC=`.bs.carousel`,oC=`.data-api`,sC=`ArrowLeft`,cC=`ArrowRight`,lC=500,uC=`next`,dC=`prev`,fC=`left`,pC=`right`,mC=`slide${aC}`,hC=`slid${aC}`,gC=`keydown${aC}`,_C=`mouseenter${aC}`,vC=`mouseleave${aC}`,yC=`dragstart${aC}`,bC=`load${aC}${oC}`,xC=`click${aC}${oC}`,SC=`carousel`,CC=`active`,wC=`slide`,TC=`carousel-item-end`,EC=`carousel-item-start`,DC=`carousel-item-next`,OC=`carousel-item-prev`,kC=`.active`,AC=`.carousel-item`,jC=`.active.carousel-item`,MC=`.carousel-item img`,NC=`.carousel-indicators`,PC=`[data-bs-slide], [data-bs-slide-to]`,FC=`[data-bs-ride="carousel"]`,IC={[sC]:pC,[cC]:fC},LC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},RC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},zC=class e extends DS{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(NC,this._element),this._addEventListeners(),this._config.ride===SC&&this.cycle()}static get Default(){return LC}static get DefaultType(){return RC}static get NAME(){return iC}next(){this._slide(uC)}nextWhenVisible(){!document.hidden&&Gx(this._element)&&this.next()}prev(){this._slide(dC)}pause(){this._isSliding&&Hx(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){H.one(this._element,hC,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){H.one(this._element,hC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?uC:dC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&H.on(this._element,gC,e=>this._keydown(e)),this._config.pause===`hover`&&(H.on(this._element,_C,()=>this.pause()),H.on(this._element,vC,()=>this._maybeEnableCycle())),this._config.touch&&rC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of U.find(MC,this._element))H.on(e,yC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(fC)),rightCallback:()=>this._slide(this._directionToOrder(pC)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),lC+this._config.interval))}};this._swipeHelper=new rC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=IC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=U.findOne(kC,this._indicatorsElement);t.classList.remove(CC),t.removeAttribute(`aria-current`);let n=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(CC),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===uC,i=t||rS(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>H.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(mC).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?EC:TC,l=r?DC:OC;i.classList.add(l),Yx(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(CC),n.classList.remove(CC,l,c),this._isSliding=!1,o(hC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(wC)}_getActive(){return U.findOne(jC,this._element)}_getItems(){return U.find(AC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return $x()?e===fC?dC:uC:e===fC?uC:dC}_orderToDirection(e){return $x()?e===dC?fC:pC:e===dC?pC:fC}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,xC,PC,function(e){let t=U.getElementFromSelector(this);if(!t||!t.classList.contains(SC))return;e.preventDefault();let n=zC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(wS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),H.on(window,bC,()=>{let e=U.find(FC);for(let t of e)zC.getOrCreateInstance(t)}),eS(zC);var BC=`collapse`,VC=`.bs.collapse`,HC=`.data-api`,UC=`show${VC}`,WC=`shown${VC}`,GC=`hide${VC}`,KC=`hidden${VC}`,qC=`click${VC}${HC}`,JC=`show`,YC=`collapse`,XC=`collapsing`,ZC=`collapsed`,QC=`:scope .${YC} .${YC}`,$C=`collapse-horizontal`,ew=`width`,tw=`height`,nw=`.collapse.show, .collapse.collapsing`,rw=`[data-bs-toggle="collapse"]`,iw={parent:null,toggle:!0},aw={parent:`(null|element)`,toggle:`boolean`},ow=class e extends DS{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=U.find(rw);for(let e of n){let t=U.getSelectorFromElement(e),n=U.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return iw}static get DefaultType(){return aw}static get NAME(){return BC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(nw).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,UC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(YC),this._element.classList.add(XC),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(XC),this._element.classList.add(YC,JC),this._element.style[n]=``,H.trigger(this._element,WC)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,GC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Yx(this._element),this._element.classList.add(XC),this._element.classList.remove(YC,JC);for(let e of this._triggerArray){let t=U.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(XC),this._element.classList.add(YC),H.trigger(this._element,KC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(JC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Wx(e.parent),e}_getDimension(){return this._element.classList.contains($C)?ew:tw}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(rw);for(let t of e){let e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=U.find(QC,this._config.parent);return U.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(ZC,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};H.on(document,qC,rw,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of U.getMultipleElementsFromSelector(this))ow.getOrCreateInstance(e,{toggle:!1}).toggle()}),eS(ow);var sw=`dropdown`,cw=`.bs.dropdown`,lw=`.data-api`,uw=`Escape`,dw=`Tab`,fw=`ArrowUp`,pw=`ArrowDown`,mw=2,hw=`hide${cw}`,gw=`hidden${cw}`,_w=`show${cw}`,vw=`shown${cw}`,yw=`click${cw}${lw}`,bw=`keydown${cw}${lw}`,xw=`keyup${cw}${lw}`,Sw=`show`,Cw=`dropup`,ww=`dropend`,Tw=`dropstart`,Ew=`dropup-center`,Dw=`dropdown-center`,Ow=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,kw=`${Ow}.${Sw}`,Aw=`.dropdown-menu`,jw=`.navbar`,Mw=`.navbar-nav`,Nw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Pw=$x()?`top-end`:`top-start`,Fw=$x()?`top-start`:`top-end`,Iw=$x()?`bottom-end`:`bottom-start`,Lw=$x()?`bottom-start`:`bottom-end`,Rw=$x()?`left-start`:`right-start`,zw=$x()?`right-start`:`left-start`,Bw=`top`,Vw=`bottom`,Hw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Uw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Ww=class e extends DS{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,Aw)[0]||U.prev(this._element,Aw)[0]||U.findOne(Aw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Hw}static get DefaultType(){return Uw}static get NAME(){return sw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Kx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!H.trigger(this._element,_w,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(Mw))for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Jx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(Sw),this._element.classList.add(Sw),H.trigger(this._element,vw,e)}}hide(){if(Kx(this._element)||!this._isShown())return;let 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(!H.trigger(this._element,hw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Jx);this._popper&&this._popper.destroy(),this._menu.classList.remove(Sw),this._element.classList.remove(Sw),this._element.setAttribute(`aria-expanded`,`false`),wS.removeDataAttribute(this._menu,`popper`),H.trigger(this._element,gw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Ux(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${sw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Mx===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Ux(this._config.reference)?e=Wx(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=jx(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Sw)}_getPlacement(){let e=this._parent;if(e.classList.contains(ww))return Rw;if(e.classList.contains(Tw))return zw;if(e.classList.contains(Ew))return Bw;if(e.classList.contains(Dw))return Vw;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Cw)?t?Fw:Pw:t?Lw:Iw}_detectNavbar(){return this._element.closest(jw)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let 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`)&&(wS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...tS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=U.find(Nw,this._menu).filter(e=>Gx(e));n.length&&rS(n,t,e===pw,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===mw||t.type===`keyup`&&t.key!==dw)return;let n=U.find(kw);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===dw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===uw,i=[fw,pw].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(Ow)?this:U.prev(this,Ow)[0]||U.next(this,Ow)[0]||U.findOne(Ow,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};H.on(document,bw,Ow,Ww.dataApiKeydownHandler),H.on(document,bw,Aw,Ww.dataApiKeydownHandler),H.on(document,yw,Ww.clearMenus),H.on(document,xw,Ww.clearMenus),H.on(document,yw,Ow,function(e){e.preventDefault(),Ww.getOrCreateInstance(this).toggle()}),eS(Ww);var Gw=`backdrop`,Kw=`fade`,qw=`show`,Jw=`mousedown.bs.${Gw}`,Yw={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},Xw={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},Zw=class extends TS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Yw}static get DefaultType(){return Xw}static get NAME(){return Gw}show(e){if(!this._config.isVisible){tS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Yx(t),t.classList.add(qw),this._emulateAnimation(()=>{tS(e)})}hide(e){if(!this._config.isVisible){tS(e);return}this._getElement().classList.remove(qw),this._emulateAnimation(()=>{this.dispose(),tS(e)})}dispose(){this._isAppended&&=(H.off(this._element,Jw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Kw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Wx(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,Jw,()=>{tS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){nS(e,this._getElement(),this._config.isAnimated)}},Qw=`focustrap`,$w=`.bs.focustrap`,eT=`focusin${$w}`,tT=`keydown.tab${$w}`,nT=`Tab`,rT=`forward`,iT=`backward`,aT={autofocus:!0,trapElement:null},oT={autofocus:`boolean`,trapElement:`element`},sT=class extends TS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return aT}static get DefaultType(){return oT}static get NAME(){return Qw}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,$w),H.on(document,eT,e=>this._handleFocusin(e)),H.on(document,tT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,$w))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=U.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===iT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===nT&&(this._lastTabNavDirection=e.shiftKey?iT:rT)}},cT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,lT=`.sticky-top`,uT=`padding-right`,dT=`margin-right`,fT=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,uT,t=>t+e),this._setElementAttributes(cT,uT,t=>t+e),this._setElementAttributes(lT,dT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,uT),this._resetElementAttributes(cT,uT),this._resetElementAttributes(lT,dT)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&wS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=wS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}wS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Ux(e)){t(e);return}for(let n of U.find(e,this._element))t(n)}},pT=`modal`,mT=`.bs.modal`,hT=`.data-api`,gT=`Escape`,_T=`hide${mT}`,vT=`hidePrevented${mT}`,yT=`hidden${mT}`,bT=`show${mT}`,xT=`shown${mT}`,ST=`resize${mT}`,CT=`click.dismiss${mT}`,wT=`mousedown.dismiss${mT}`,TT=`keydown.dismiss${mT}`,ET=`click${mT}${hT}`,DT=`modal-open`,OT=`fade`,kT=`show`,AT=`modal-static`,jT=`.modal.show`,MT=`.modal-dialog`,NT=`.modal-body`,PT=`[data-bs-toggle="modal"]`,FT={backdrop:!0,focus:!0,keyboard:!0},IT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},LT=class e extends DS{constructor(e,t){super(e,t),this._dialog=U.findOne(MT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fT,this._addEventListeners()}static get Default(){return FT}static get DefaultType(){return IT}static get NAME(){return pT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,bT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(DT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,_T).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,mT),H.off(this._dialog,mT),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zw({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new sT({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;let t=U.findOne(NT,this._dialog);t&&(t.scrollTop=0),Yx(this._element),this._element.classList.add(kT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,xT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,TT,e=>{if(e.key===gT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,ST,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,wT,e=>{H.one(this._element,CT,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(DT),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,yT)})}_isAnimated(){return this._element.classList.contains(OT)}_triggerBackdropTransition(){if(H.trigger(this._element,vT).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(AT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(AT),this._queueCallback(()=>{this._element.classList.remove(AT),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=$x()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=$x()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};H.on(document,ET,PT,function(e){let t=U.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),H.one(t,bT,e=>{e.defaultPrevented||H.one(t,yT,()=>{Gx(this)&&this.focus()})});let n=U.findOne(jT);n&<.getInstance(n).hide(),LT.getOrCreateInstance(t).toggle(this)}),kS(LT),eS(LT);var RT=`offcanvas`,zT=`.bs.offcanvas`,BT=`.data-api`,VT=`load${zT}${BT}`,HT=`Escape`,UT=`show`,WT=`showing`,GT=`hiding`,KT=`offcanvas-backdrop`,qT=`.offcanvas.show`,JT=`show${zT}`,YT=`shown${zT}`,XT=`hide${zT}`,ZT=`hidePrevented${zT}`,QT=`hidden${zT}`,$T=`resize${zT}`,eE=`click${zT}${BT}`,tE=`keydown.dismiss${zT}`,nE=`[data-bs-toggle="offcanvas"]`,rE={backdrop:!0,keyboard:!0,scroll:!1},iE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},aE=class e extends DS{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return rE}static get DefaultType(){return iE}static get NAME(){return RT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||H.trigger(this._element,JT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new fT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(WT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(UT),this._element.classList.remove(WT),H.trigger(this._element,YT,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||H.trigger(this._element,XT).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(GT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(UT,GT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new fT().reset(),H.trigger(this._element,QT)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){H.trigger(this._element,ZT);return}this.hide()},t=!!this._config.backdrop;return new Zw({className:KT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new sT({trapElement:this._element})}_addEventListeners(){H.on(this._element,tE,e=>{if(e.key===HT){if(this._config.keyboard){this.hide();return}H.trigger(this._element,ZT)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};H.on(document,eE,nE,function(e){let t=U.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Kx(this))return;H.one(t,QT,()=>{Gx(this)&&this.focus()});let n=U.findOne(qT);n&&n!==t&&aE.getInstance(n).hide(),aE.getOrCreateInstance(t).toggle(this)}),H.on(window,VT,()=>{for(let e of U.find(qT))aE.getOrCreateInstance(e).show()}),H.on(window,$T,()=>{for(let e of U.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&aE.getOrCreateInstance(e).hide()}),kS(aE),eS(aE);var oE={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},sE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),cE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,lE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?sE.has(n)?!!cE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function uE(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)lE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var dE=`TemplateFactory`,fE={allowList:oE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},pE={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},mE={entry:`(string|element|function|null)`,selector:`(string|element)`},hE=class extends TS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return fE}static get DefaultType(){return pE}static get NAME(){return dE}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(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},mE)}_setContent(e,t,n){let r=U.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Ux(t)){this._putElementInTemplate(Wx(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?uE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return tS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},gE=`tooltip`,_E=new Set([`sanitize`,`allowList`,`sanitizeFn`]),vE=`fade`,yE=`modal`,bE=`show`,xE=`.tooltip-inner`,SE=`.${yE}`,CE=`hide.bs.modal`,wE=`hover`,TE=`focus`,EE=`click`,DE=`manual`,OE=`hide`,kE=`hidden`,AE=`show`,jE=`shown`,ME=`inserted`,NE=`click`,PE=`focusin`,FE=`focusout`,IE=`mouseenter`,LE=`mouseleave`,RE={AUTO:`auto`,TOP:`top`,RIGHT:$x()?`left`:`right`,BOTTOM:`bottom`,LEFT:$x()?`right`:`left`},zE={allowList:oE,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`},BE={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`},VE=class e extends DS{constructor(e,t){if(Mx===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);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 zE}static get DefaultType(){return BE}static get NAME(){return gE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(SE),CE,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 Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=H.trigger(this._element,this.constructor.eventName(AE)),t=(qx(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),H.trigger(this._element,this.constructor.eventName(ME))),this._popper=this._createPopper(n),n.classList.add(bE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Jx);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName(jE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||H.trigger(this._element,this.constructor.eventName(OE)).defaultPrevented)){if(this._getTipElement().classList.remove(bE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Jx);this._activeTrigger[EE]=!1,this._activeTrigger[TE]=!1,this._activeTrigger[wE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),H.trigger(this._element,this.constructor.eventName(kE)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(vE,bE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Bx(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(vE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new hE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[xE]: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(vE)}_isShown(){return this.tip&&this.tip.classList.contains(bE)}_createPopper(e){let t=RE[tS(this._config.placement,[this,e,this._element]).toUpperCase()];return jx(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return tS(e,[this._element,this._element])}_getPopperConfig(e){let 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:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...tS(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)H.on(this._element,this.constructor.eventName(NE),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[EE]=!(t._isShown()&&t._activeTrigger[EE]),t.toggle()});else if(t!==DE){let e=t===wE?this.constructor.eventName(IE):this.constructor.eventName(PE),n=t===wE?this.constructor.eventName(LE):this.constructor.eventName(FE);H.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?TE:wE]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?TE:wE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(SE),CE,this._hideModalHandler)}_fixTitle(){let 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){let t=wS.getDataAttributes(this._element);for(let e of Object.keys(t))_E.has(e)&&delete t[e];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:Wx(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(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};eS(VE);var HE=`popover`,UE=`.popover-header`,WE=`.popover-body`,GE={...VE.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`},KE={...VE.DefaultType,content:`(null|string|element|function)`},qE=class e extends VE{static get Default(){return GE}static get DefaultType(){return KE}static get NAME(){return HE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[UE]:this._getTitle(),[WE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};eS(qE);var JE=`scrollspy`,YE=`.bs.scrollspy`,XE=`.data-api`,ZE=`activate${YE}`,QE=`click${YE}`,$E=`load${YE}${XE}`,eD=`dropdown-item`,tD=`active`,nD=`[data-bs-spy="scroll"]`,rD=`[href]`,iD=`.nav, .list-group`,aD=`.nav-link`,oD=`${aD}, .nav-item > ${aD}, .list-group-item`,sD=`.dropdown`,cD=`.dropdown-toggle`,lD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},uD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},dD=class e extends DS{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 lD}static get DefaultType(){return uD}static get NAME(){return JE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Wx(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(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,QE),H.on(this._config.target,QE,rD,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=U.find(rD,this._config.target);for(let t of e){if(!t.hash||Kx(t))continue;let e=U.findOne(decodeURI(t.hash),this._element);Gx(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(tD),this._activateParents(e),H.trigger(this._element,ZE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(eD)){U.findOne(cD,e.closest(sD)).classList.add(tD);return}for(let t of U.parents(e,iD))for(let e of U.prev(t,oD))e.classList.add(tD)}_clearActiveClass(e){e.classList.remove(tD);let t=U.find(`${rD}.${tD}`,e);for(let e of t)e.classList.remove(tD)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(window,$E,()=>{for(let e of U.find(nD))dD.getOrCreateInstance(e)}),eS(dD);var fD=`tab`,pD=`.bs.tab`,mD=`hide${pD}`,hD=`hidden${pD}`,gD=`show${pD}`,_D=`shown${pD}`,vD=`click${pD}`,yD=`keydown${pD}`,bD=`load${pD}`,xD=`ArrowLeft`,SD=`ArrowRight`,CD=`ArrowUp`,wD=`ArrowDown`,TD=`Home`,ED=`End`,DD=`active`,OD=`fade`,kD=`show`,AD=`dropdown`,jD=`.dropdown-toggle`,MD=`.dropdown-menu`,ND=`:not(${jD})`,PD=`.list-group, .nav, [role="tablist"]`,FD=`.nav-item, .list-group-item`,ID=`.nav-link${ND}, .list-group-item${ND}, [role="tab"]${ND}`,LD=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,RD=`${ID}, ${LD}`,zD=`.${DD}[data-bs-toggle="tab"], .${DD}[data-bs-toggle="pill"], .${DD}[data-bs-toggle="list"]`,BD=class e extends DS{constructor(e){super(e),this._parent=this._element.closest(PD),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,yD,e=>this._keydown(e)))}static get NAME(){return fD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?H.trigger(t,mD,{relatedTarget:e}):null;H.trigger(e,gD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(DD),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(kD);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),H.trigger(e,_D,{relatedTarget:t})},e,e.classList.contains(OD)))}_deactivate(e,t){e&&(e.classList.remove(DD),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(kD);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),H.trigger(e,hD,{relatedTarget:t})},e,e.classList.contains(OD)))}_keydown(t){if(![xD,SD,CD,wD,TD,ED].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Kx(e)),r;if([TD,ED].includes(t.key))r=n[t.key===TD?0:n.length-1];else{let e=[SD,wD].includes(t.key);r=rS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return U.find(RD,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=U.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(AD))return;let r=(e,r)=>{let i=U.findOne(e,n);i&&i.classList.toggle(r,t)};r(jD,DD),r(MD,kD),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(DD)}_getInnerElement(e){return e.matches(RD)?e:U.findOne(RD,e)}_getOuterElement(e){return e.closest(FD)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,vD,LD,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Kx(this)&&BD.getOrCreateInstance(this).show()}),H.on(window,bD,()=>{for(let e of U.find(zD))BD.getOrCreateInstance(e)}),eS(BD);var VD=`toast`,HD=`.bs.toast`,UD=`mouseover${HD}`,WD=`mouseout${HD}`,GD=`focusin${HD}`,KD=`focusout${HD}`,qD=`hide${HD}`,JD=`hidden${HD}`,YD=`show${HD}`,XD=`shown${HD}`,ZD=`fade`,QD=`hide`,$D=`show`,eO=`showing`,tO={animation:`boolean`,autohide:`boolean`,delay:`number`},nO={animation:!0,autohide:!0,delay:5e3},rO=class e extends DS{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return nO}static get DefaultType(){return tO}static get NAME(){return VD}show(){H.trigger(this._element,YD).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(ZD),this._element.classList.remove(QD),Yx(this._element),this._element.classList.add($D,eO),this._queueCallback(()=>{this._element.classList.remove(eO),H.trigger(this._element,XD),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||H.trigger(this._element,qD).defaultPrevented||(this._element.classList.add(eO),this._queueCallback(()=>{this._element.classList.add(QD),this._element.classList.remove(eO,$D),H.trigger(this._element,JD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove($D),super.dispose()}isShown(){return this._element.classList.contains($D)}_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}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,UD,e=>this._onInteraction(e,!0)),H.on(this._element,WD,e=>this._onInteraction(e,!1)),H.on(this._element,GD,e=>this._onInteraction(e,!0)),H.on(this._element,KD,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};kS(rO),eS(rO);function iO(e=void 0){let t=e=>a(`Succesvol`,e,v_.SUCCESS),n=e=>a(`Waarschuwing`,e,v_.WARNING),r=e=>a(`Informatie`,e,v_.INFO),i=e=>a(`Mislukt`,e,v_.DANGER);function a(t,n,r){let i=`toast-${ja()}`,a={id:i,variant:r,title:t,text:n},s=document.querySelector(`.toast-container`);if(!s){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let c=(0,u.h)(S_,a),l=(0,u.createApp)({render:()=>c}).mount(document.createElement(`div`));s.appendChild(l.$el);let d=document.querySelector(`#${i}`);d&&(rO.getOrCreateInstance(d,e).show(),o(d))}function o(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:t,showInformationToast:r,showWarningToast:n,showDangerToast:i}}var aO={class:`bd-file-upload`},oO={class:`flex align-items-center justify-content-between gap-2`},sO={key:0,class:`preview-container`},cO=(0,u.defineComponent)({__name:`BDFileUpload`,props:{modelValue:{},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:`.jpg`},url:{default:``},tag:{default:`form`},token:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let{showDangerToast:n}=iO(),{t:r}=Ey.global,i=e,a=t,o=(0,u.ref)(null),s=(0,u.ref)([]);(0,u.watch)(()=>i.modelValue,e=>{o.value&&(o.value.files=o.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let c=(0,u.computed)(()=>({variant:ga.PRIMARY,size:Ta.SM})),l=ug(i,`modelValue`,a),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];s.value.push(...t.map(e=>({name:e.name,previewUrl:e.objectURL})));for(let e of t){let t=new FormData;t.append(`file`,e);try{let n={method:`POST`,headers:{RequestVerificationToken:i.token},body:t};f(e,await(await fetch(i.url,n)).json())}catch{n(i.errorMessage||r(`fileUpload.errorMessage`))}}s.value=[],o.value&&o.value.clear()},f=(e,t)=>{let n=s.value.findIndex(t=>t.name==e.name);n!==-1&&s.value.splice(n,1),l.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=l.value.files.indexOf(e);t!==-1&&l.value.files.splice(t,1),t=s.value.indexOf(e),t!==-1&&s.value.splice(t,1)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,aO,[(0,u.createVNode)((0,u.unref)(by),{ref_key:`fileUploadRef`,ref:o,multiple:i.multiple,"max-file-size":10485760,accept:i.acceptedFiles,auto:!0,"max-files":i.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,u.withCtx)(({chooseCallback:e})=>[(0,u.createElementVNode)(`div`,oO,[(0,u.createVNode)(A,(0,u.mergeProps)(c.value,{onClick:e}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(D)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(i.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,u.withCtx)(()=>[s.value||(0,u.unref)(l)&&(0,u.unref)(l).files&&(0,u.unref)(l).files.length!==0?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,sO,[(0,u.unref)(l)&&(0,u.unref)(l).files?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)((0,u.unref)(l).files,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(dv,{key:t,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0),s.value?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:1},(0,u.renderList)(s.value,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(dv,{key:t,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0)])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),lO=[`id`,`value`,`disabled`],uO=[`for`],dO={class:`invalid-feedback`},fO={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Uu(),a=(0,u.ref)(n.modelValue),o=(0,u.computed)(()=>n.selectAllText?n.selectAllText:i(`form.multipleCheckbox.defaultButton`)),s=(0,u.computed)(()=>{let e=`bd-form-multiple-checkbox`;return n.state||(e+=` is-invalid`),n.overflow&&(e+=` overflow-form-control`),e}),c=(0,u.computed)(()=>n.errorMessage?n.errorMessage:i(`form.multipleCheckbox.defaultErrorMessage`));(0,u.watch)(()=>n.modelValue,e=>{a.value=e}),(0,u.watch)(a,e=>{r(`update:modelValue`,e),r(`on-input`,e),r(`change-department`,e)});function l(){a.value=n.options.map(e=>e.value),d()}function d(){r(`on-input`,a.value)}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.createVNode)(A,{variant:`outline-primary`,size:`sm`,onClick:l},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(o.value),1)]),_:1}),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,disabled:e.disabled},null,8,lO),[[u.vModelCheckbox,a.value]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,u.toDisplayString)(e.text),9,uO)]))),128))],2),(0,u.createElementVNode)(`div`,dO,[(0,u.createVNode)(Ut),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(c.value),1)])],64))}};function pO(e){this.content=e}pO.prototype={constructor:pO,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new pO(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new pO(n)},addToStart:function(e,t){return new pO([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new pO(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new pO(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=pO.from(e),e.size?new pO(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=pO.from(e),e.size?new pO(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=pO.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},pO.from=function(e){if(e instanceof pO)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new pO(t)};function mO(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&_O(e.charCodeAt(r-1))&&gO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=mO(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function hO(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&_O(e.charCodeAt(i-1))&&gO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=hO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function gO(e){return e>=56320&&e<57344}function _O(e){return e>=55296&&e<56320}var W=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return mO(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return hO(this,e,t,n)}findIndex(e){if(e==0)return yO(0,e);if(e==this.size)return yO(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?yO(t+1,i):yO(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};W.empty=new W([],0);var vO={index:0,offset:0};function yO(e,t){return vO.index=e,vO.offset=t,vO}function bO(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!bO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!bO(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var G=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&bO(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};G.none=[];var xO=class extends Error{},K=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=CO(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(SO(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(W.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};K.empty=new K(W.empty,0,0);function SO(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(SO(a.content,t-i-1,n-i-1)))}function CO(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=CO(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function wO(e,t,n){if(n.openStart>e.depth)throw new xO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new xO(`Inconsistent open depths`);return TO(e,t,n,0)}function TO(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=TO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return AO(a,MO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return AO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=NO(n,e);return AO(a,jO(e,i,o,t,r))}}function EO(e,t){if(!t.type.compatibleContent(e.type))throw new xO(`Cannot join `+t.type.name+` onto `+e.type.name)}function DO(e,t,n){let r=e.node(n);return EO(r,t.node(n)),r}function OO(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function kO(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(OO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)OO(i.child(e),r);t&&t.depth==n&&t.textOffset&&OO(t.nodeBefore,r)}function AO(e,t){if(!e.type.validContent(t))throw new xO(`Invalid content for node `+e.type.name);return e.copy(t)}function jO(e,t,n,r,i){let a=e.depth>i&&DO(e,t,i+1),o=r.depth>i&&DO(n,r,i+1),s=[];return kO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(EO(a,o),OO(AO(a,jO(e,t,n,r,i+1)),s)):(a&&OO(AO(a,MO(e,t,i+1)),s),kO(t,n,i,s),o&&OO(AO(o,MO(n,r,i+1)),s)),kO(r,null,i,s),new W(s)}function MO(e,t,n){let r=[];return kO(null,e,n,r),e.depth>n&&OO(AO(DO(e,t,n+1),MO(e,t,n+1)),r),kO(t,null,n,r),new W(r)}function NO(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(W.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var PO=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return G.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new RO(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=LO.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else LO.set(t,r=new FO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%IO,i}},FO=class{constructor(){this.elts=[],this.i=0}},IO=12,LO=new WeakMap,RO=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},zO=Object.create(null),BO=class e{constructor(e,t,n,r=G.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||W.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&bO(this.attrs,t||e.defaultAttrs||zO)&&G.sameSet(this.marks,n||G.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return K.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new K(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return wO(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return PO.resolveCached(this,e)}resolveNoCache(e){return PO.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),HO(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=W.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=G.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!G.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=W.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};BO.prototype.text=void 0;var VO=class e extends BO{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):HO(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function HO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var UO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new WO(t,n);if(r.next==null)return e.empty;let i=GO(r);r.next&&r.err(`Unexpected trailing text`);let a=tk(QO(i));return nk(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return W.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1695
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function vy(e,t){if(e){if(typeof e==`string`)return yy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yy(e,t):void 0}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var by={name:`FileUpload`,extends:ly,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=_y(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=_y(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,py(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=_y(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=_y(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&yd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&bd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&bd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=py(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=py(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:Bm,ProgressBar:ny,Message:Hv,FileContent:uy,PlusIcon:fv,UploadIcon:Ov,TimesIcon:bv},directives:{ripple:Om}},xy=[`multiple`,`accept`,`disabled`],Sy=[`accept`,`disabled`,`multiple`];function Cy(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`Button`),s=(0,u.resolveComponent)(`ProgressBar`),c=(0,u.resolveComponent)(`Message`),l=(0,u.resolveComponent)(`FileContent`);return a.isAdvanced?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,onChange:t[0]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},multiple:e.multiple,accept:e.accept,disabled:a.chooseDisabled},e.ptm(`input`)),null,16,xy),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,u.renderSlot)(e.$slots,`header`,{files:i.files,uploadedFiles:i.uploadedFiles,chooseCallback:a.choose,uploadCallback:a.uploader,clearCallback:a.clear},function(){return[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:a.choose,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.showUploadButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:a.uploadButtonLabel,onClick:a.uploader,disabled:a.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,u.mergeProps)({class:[t.class,e.uploadIcon],"aria-hidden":`true`},e.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),e.showCancelButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:a.cancelButtonLabel,onClick:a.clear,disabled:a.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,u.mergeProps)({class:[t.class,e.cancelIcon],"aria-hidden":`true`},e.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0)]})],16),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:t[1]||=function(){return a.onDragEnter&&a.onDragEnter.apply(a,arguments)},onDragover:t[2]||=function(){return a.onDragOver&&a.onDragOver.apply(a,arguments)},onDragleave:t[3]||=function(){return a.onDragLeave&&a.onDragLeave.apply(a,arguments)},onDrop:t[4]||=function(){return a.onDrop&&a.onDrop.apply(a,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,u.renderSlot)(e.$slots,`content`,{files:i.files,uploadedFiles:i.uploadedFiles,removeUploadedFileCallback:a.removeUploadedFile,removeFileCallback:a.remove,progress:i.progress,messages:i.messages},function(){return[a.hasFiles?((0,u.openBlock)(),(0,u.createBlock)(s,{key:0,value:i.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),a.hasFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.files,onRemove:a.remove,badgeValue:a.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0),a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.uploadedFiles,onRemove:a.removeUploadedFile,badgeValue:a.completedLabel,badgeSeverity:`success`,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0)]}),e.$slots.empty&&!a.hasFiles&&!a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.normalizeProps)((0,u.mergeProps)({key:0},e.ptm(`empty`))),[(0,u.renderSlot)(e.$slots,`empty`)],16)):(0,u.createCommentVNode)(``,!0)],16)],16)):a.isBasic?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:a.onBasicUploaderClick,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.auto?(0,u.createCommentVNode)(``,!0):(0,u.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,u.normalizeClass)(e.cx(`filelabel`)),files:i.files},function(){return[(0,u.createElementVNode)(`span`,{class:(0,u.normalizeClass)(e.cx(`filelabel`))},(0,u.toDisplayString)(a.basicFileChosenLabel),3)]}),(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:t[5]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},onFocus:t[6]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[7]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)}},e.ptm(`input`)),null,16,Sy)],16)],16)):(0,u.createCommentVNode)(``,!0)}by.render=Cy;var wy={notFoundTemplate:{title:`Page not found`,description:`The page you're looking for couldn't be found. Check the URL or go back to the mainpage.`,buttonDefault:`Back to mainpage`},practitionerHeader:{tooltipAcademy:`BeterDichtbij Academie`,menuItemAcademy:`Academie`},videoCallTemplate:{signalStrength:{weak:`Weak signal`,steady:`Moderate signal`,strong:`Strong signal`},actions:{fullScreen:`Full screen`,miniPlayer:`Mini player`,shareScreen:`Share screen`,stopSharingScreen:`Stop sharing screen`,testCall:`Run the video call test`,serviceDesk:`Service desk`,endCall:`End call`,closeWindow:`Close window`,switchCamera:`Switch camera`,microphoneMute:`Mute microphone`,microphoneUnmute:`Unmute microphone`,cameraOff:`Turn off camera`,cameraOn:`Turn on camera`,backgroundBlur:`Blur background`,backgroundUnblur:`Unblur background`},help:{placeholderSettingsHelpTitle:`Connection issues?`,placeholderSettingsHelpMessage:`End the call and try again.`},statusTextMessage:{initializing:`Initializing...`,dialing:`Calling...`,ringing:`Phone is ringing`,answered:`Call answered`,connected:`Connected`,videoCallDeclined:`The call could not be answered right now.`,videoCallHangedUp:`Call has ended.`,devicePermissionDenied:`A call cannot be started`,callNotDelivered:`The video call does not arrive on the {participantRole}'s mobile phone or tablet.`,signalHold:`Video call connection with {participantRole}'s phone/tablet could not be established`,connectionIssues:`Connection issues`},statusDetailMessage:{notAnsweredDetail:`{participantRole} does not appear to answer.`,noVideoHint:`No video? Run the video call test.`,callNotDeliveredDetail:`Asking {participantRole} to log in again in the BeterDichtbij app often resolves this.`,connectionIssuesMedium:`The connection is unstable.`,connectionIssuesStrong:`The connection seems lost. Check internet connection and try again.`,signalHoldDetail:`Run the video call test.`},permissions:{permissionDeniedForVideo:`No access to camera`,permissionDeniedForAudio:`No access to microphone`},cameraAvailability:{hasNoAvailableCamera:`No camera available.`,hasOneAvailableCamera:`One camera is available.`,hasMultipleAvailableCameras:`Multiple cameras are available.`},endReasons:{0:`{participantRole} ended the call.`,4:`The app was closed.`,5:`{participantRole} ended the call.`,6:`BeterDichtbij call screen was closed.`,10:`{participantRole} waited too long to answer.`,12:`Network or camera issue on {participantRole} side. Check internet and camera permission.`,20:`{participantRole} pressed Back while the phone was ringing.`,21:`Call was hung up.`,22:`{participantRole} pressed Home while the phone was ringing.`,23:`{participantRole} waited too long to answer.`,24:`{participantRole} clicked Yes in the popup.`,25:`{participantRole} ended the call.`,26:`The app moved to background on phone/tablet.`,33:`Outdated app version. Ask {participantRole} to update the BeterDichtbij app.`},unknown:`Unknown message`}},Ty={activeFilters:{title:`Actieve filters`,clearAll:`Wis alle filters`},assignConversationModal:{title:`Gesprek overdragen`,submitButton:`Gesprek overdragen`,conclude:`Afhandelen bij de overdracht`,concludeTooltip:`Het gesprek blijft beschikbaar, deze wordt getoond als het filter "afgehandeld" is geselecteerd. Je patiënt kan ook nog gewoon reageren.`,makeUnread:`Gesprek op ongelezen zetten`},attachmentUploadModal:{title:`Bijlage toevoegen`,submitButton:`Toevoegen`,infoMessage:`Kies je bestand.`,addAttachmentButton:`Bijlage toevoegen`,errorMessage:`Fout opgetreden`,fileTooBigErrorMessage:`Bestand is te groot.`,fileSizeExceededMessage:`Bestanden mogen maximaal 10 MB groot zijn.`},changePasswordTemplate:{toasters:{reset:`De velden zijn geleegd.`}},contentLibraryCard:{insert:`Invoegen`},contentLibraryCardMessageTemplate:{insert:`Invoegen`,collapseOpen:`Inklappen`,collapseClosed:`Lees meer`,popoverIsSharedByOtherUser:`Dit bericht kan alleen door de eigenaar of beheerder aangepast worden`,delete:`Verwijderen`,edit:`Wijzigen`},contentLibraryOverview:{noResults:`Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken.`},contentLibrarySplitButton:{messageTemplatesTitle:`Standaardberichten`},contentLibraryTemplate:{changeCategoryButtonLabel:`Mijn categorieën aanpassen`,newMessageText:`Nieuw bericht`,message:`Bericht`,messages:`Berichten`,more:`Meer`,less:`Minder`,searchPlaceholder:`Zoek een bericht`,searchPlaceholderSearch:`Vul een zoekterm in om resultaten te tonen`},conversationToTextModal:{copyButton:`Kopieer selectie naar klembord`,copySuccess:`Het gesprek is gekopieerd naar het klembord.`,onBehalfOf:`namens`,prefix:`Communicatie vanuit BeterDichtbij`,selectAll:`Alles selecteren`,systemMessage:`Tussentijdse mededeling`},imageAttachmentModal:{download:`Download afbeelding`,loading:`Afbeelding aan het laden`},fileUpload:{errorMessage:`Er is een fout opgetreden tijdens het uploaden van het bestand.`},filterCard:{more:`Meer`,less:`Minder`},messageTemplateFormModal:{createTitle:`Standaardbericht toevoegen`,editTitle:`Standaardbericht wijzigen`,titleLabel:`Titel`,titlePlaceHolder:`Zwelling na botbreuk`,replyTemplateLabel:`Standaardbericht`,replyTemplatePlaceHolder:`Schrijf hier jouw bericht naar de patiënt`,sharedWithLabel:`Delen met`,owner:`Eigenaar`,ownerPlaceholder:`Selecteer eigenaar`,tooltipOwner:`Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden`,categoryLabel:`Categorie`,categoryPlaceholderDropdown:`Selecteer categorie of maak een nieuwe aan`,validation:`Dit veld is verplicht.`},notFoundTemplate:{title:`Pagina niet gevonden`,description:`De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.`,buttonDefault:`Terug naar hoofdpagina`},practitionerHeader:{academyTooltip:`BeterDichtbij Academie`,academyMenuItem:`Academie`},videoCallConfirmationModal:{title:`Beeldbellen`,cancel:`Nee`,close:`Sluiten`,ok:`Ja`,message:`Weet je zeker dat je wilt beeldbellen?`,participantMessage:`Weet je zeker dat je wilt beeldbellen met`,testMessage:`Doe de beeldbeltest`,noMobileActivationMessage:`gebruikt BeterDichtbij via de web applicatie waardoor beeldbellen niet mogelijk is. Vraag de patiënt om de app te installeren op een mobiele telefoon of tablet.`,noCompatibleDevices:`gebruikt mogelijk een mobiele telefoon of tablet die beeldbellen niet ondersteunt. Het is daarom momenteel niet mogelijk om te beeldbellen met deze patiënt.`,generalWarning:`Beeldbellen is niet mogelijk om de volgende redenen:`,cameraPermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de camera door BeterDichtbij.`,microphonePermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de microfoon door BeterDichtbij.`,helpMessage:`om te controleren of je camera en microfoon goed werken.`},videoCallTemplate:{signalStrength:{weak:`Zwak signaal`,steady:`Matig signaal`,strong:`Sterk signaal`},actions:{fullScreen:`Volledig scherm`,miniPlayer:`Mini player`,shareScreen:`Scherm delen`,stopSharingScreen:`Stop scherm delen`,testCall:`Doe de beeldbeltest`,serviceDesk:`Servicedesk`,endCall:`Gesprek beëindigen`,closeWindow:`Venster sluiten`,switchCamera:`Wissel camera`,microphoneMute:`Microfoon uitzetten`,microphoneUnmute:`Microfoon aanzetten`,cameraOff:`Camera uitzetten`,cameraOn:`Camera aanzetten`,backgroundBlur:`Achtergrond vervagen`,backgroundUnblur:`Achtergrond niet vervagen`},help:{placeholderSettingsHelpTitle:`Problemen met de verbinding?`,placeholderSettingsHelpMessage:`Sluit het gesprek en probeer opnieuw te bellen.`},statusTextMessage:{initializing:`Bezig met opstarten...`,dialing:`Bellen...`,ringing:`Telefoon gaat over`,answered:`Er is opgenomen`,connected:`Verbonden`,videoCallDeclined:`Er kon op dit moment niet worden opgenomen.`,videoCallHangedUp:`Er is opgehangen.`,devicePermissionDenied:`Er kan geen gesprek worden gestart`,callNotDelivered:`Beeldbelgesprek komt niet aan op de mobiele telefoon of tablet van de {participantRole}.`,signalHold:`Beeldbel verbinding met {participantRole} zijn telefoon/tablet komt niet tot stand`,connectionIssues:`Connectie problemen`},statusDetailMessage:{notAnsweredDetail:`{participantRole} lijkt niet op te nemen.`,noVideoHint:`Geen beeld? Doe de beeldbel kwaliteit test.`,callNotDeliveredDetail:`De {participantRole} opnieuw laten inloggen in de BeterDichtbij app lost het probleem vaak op.`,connectionIssuesMedium:`De verbinding is instabiel.`,connectionIssuesStrong:`De verbinding lijkt verbroken. Controleer internetverbinding en probeer opnieuw.`,signalHoldDetail:`Doe de beeldbel kwaliteit test.`},permissions:{permissionDeniedForVideo:`Geen toegang beschikbaar tot de camera`,permissionDeniedForAudio:`Er is geen toegang beschikbaar tot uw microfoon`},cameraAvailability:{hasNoAvailableCamera:`Er is geen camera beschikbaar.`,hasOneAvailableCamera:`Er is één camera beschikbaar.`,hasMultipleAvailableCameras:`Er zijn meerdere camera's beschikbaar.`},endReasons:{0:`{participantRole} heeft gesprek beëindigd.`,4:`App is afgesloten.`,5:`{participantRole} heeft gesprek beëindigd.`,6:`BeterDichtbij gespreksscherm is afgesloten.`,10:`{participantRole} heeft te lang gewacht met opnemen.`,12:`Netwerk issue of camera issue bij de {participantRole}. Controleer internet en camera-toestemming bij de {participantRole}.`,20:`{participantRole} heeft de Terug-knop ingedrukt terwijl de telefoon overging.`,21:`Gesprek opgehangen.`,22:`{participantRole} heeft Home ingedrukt terwijl de telefoon overging.`,23:`{participantRole} heeft te lang gewacht met opnemen.`,24:`{participantRole} heeft Ja geklikt in de pop-up.`,25:`{participantRole} heeft gesprek beëindigd.`,26:`App is naar de achtergrond gegaan op telefoon/tablet.`,33:`Verouderde versie van de app. Vraag de {participantRole} om de BeterDichtbij app te updaten.`},unknown:`Onbekende melding`}},Ey=Hu({legacy:!1,locale:`nl`,messages:{en:{...wy},nl:{...Ty}}}),Dy=`bottom`,Oy=`right`,ky=`left`,Ay=`auto`,jy=[`top`,Dy,Oy,ky],My=`start`,Ny=`clippingParents`,Py=`viewport`,Fy=`popper`,Iy=`reference`,Ly=jy.reduce(function(e,t){return e.concat([t+`-`+My,t+`-end`])},[]),Ry=[].concat(jy,[Ay]).reduce(function(e,t){return e.concat([t,t+`-`+My,t+`-end`])},[]),zy=`beforeRead`,By=`read`,Vy=`afterRead`,Hy=`beforeMain`,Uy=`main`,Wy=`afterMain`,Gy=`beforeWrite`,Ky=`write`,qy=`afterWrite`,Jy=[zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy];function Yy(e){return e?(e.nodeName||``).toLowerCase():null}function Xy(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zy(e){return e instanceof Xy(e).Element||e instanceof Element}function Qy(e){return e instanceof Xy(e).HTMLElement||e instanceof HTMLElement}function $y(e){return typeof ShadowRoot>`u`?!1:e instanceof Xy(e).ShadowRoot||e instanceof ShadowRoot}function eb(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Qy(i)||!Yy(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function tb(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Qy(r)||!Yy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var nb={name:`applyStyles`,enabled:!0,phase:`write`,fn:eb,effect:tb,requires:[`computeStyles`]};function rb(e){return e.split(`-`)[0]}var ib=Math.max,ab=Math.min,ob=Math.round;function sb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function cb(){return!/^((?!chrome|android).)*safari/i.test(sb())}function lb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Qy(e)&&(i=e.offsetWidth>0&&ob(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ob(r.height)/e.offsetHeight||1);var o=(Zy(e)?Xy(e):window).visualViewport,s=!cb()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function ub(e){var t=lb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function db(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fb(e){return Xy(e).getComputedStyle(e)}function pb(e){return[`table`,`td`,`th`].indexOf(Yy(e))>=0}function mb(e){return((Zy(e)?e.ownerDocument:e.document)||window.document).documentElement}function hb(e){return Yy(e)===`html`?e:e.assignedSlot||e.parentNode||($y(e)?e.host:null)||mb(e)}function gb(e){return!Qy(e)||fb(e).position===`fixed`?null:e.offsetParent}function _b(e){var t=/firefox/i.test(sb());if(/Trident/i.test(sb())&&Qy(e)&&fb(e).position===`fixed`)return null;var n=hb(e);for($y(n)&&(n=n.host);Qy(n)&&[`html`,`body`].indexOf(Yy(n))<0;){var r=fb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function vb(e){for(var t=Xy(e),n=gb(e);n&&pb(n)&&fb(n).position===`static`;)n=gb(n);return n&&(Yy(n)===`html`||Yy(n)===`body`&&fb(n).position===`static`)?t:n||_b(e)||t}function yb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function bb(e,t,n){return ib(e,ab(t,n))}function xb(e,t,n){var r=bb(e,t,n);return r>n?n:r}function Sb(){return{top:0,right:0,bottom:0,left:0}}function Cb(e){return Object.assign({},Sb(),e)}function wb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Tb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Cb(typeof e==`number`?wb(e,jy):e)};function Eb(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=rb(n.placement),c=yb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Tb(i.padding,n),d=ub(a),f=c===`y`?`top`:ky,p=c===`y`?Dy:Oy,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=vb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=bb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Db(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||db(t.elements.popper,r)&&(t.elements.arrow=r))}var Ob={name:`arrow`,enabled:!0,phase:`main`,fn:Eb,effect:Db,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function kb(e){return e.split(`-`)[1]}var Ab={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function jb(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ob(n*i)/i||0,y:ob(r*i)/i||0}}function Mb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=ky,b=`top`,x=window;if(l){var S=vb(n),C=`clientHeight`,w=`clientWidth`;if(S===Xy(n)&&(S=mb(n),fb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Dy;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Oy;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Ab),O=u===!0?jb({x:p,y:h},Xy(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Nb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:rb(t.placement),variation:kb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mb(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mb(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Pb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Nb,data:{}},Fb={passive:!0};function Ib(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=Xy(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Fb)}),s&&c.addEventListener(`resize`,n.update,Fb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Fb)}),s&&c.removeEventListener(`resize`,n.update,Fb)}}var Lb={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Ib,data:{}},Rb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function zb(e){return e.replace(/left|right|bottom|top/g,function(e){return Rb[e]})}var Bb={start:`end`,end:`start`};function Vb(e){return e.replace(/start|end/g,function(e){return Bb[e]})}function Hb(e){var t=Xy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ub(e){return lb(mb(e)).left+Hb(e).scrollLeft}function Wb(e,t){var n=Xy(e),r=mb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=cb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Ub(e),y:c}}function Gb(e){var t=mb(e),n=Hb(e),r=e.ownerDocument?.body,i=ib(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ib(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Ub(e),s=-n.scrollTop;return fb(r||t).direction===`rtl`&&(o+=ib(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Kb(e){var t=fb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qb(e){return[`html`,`body`,`#document`].indexOf(Yy(e))>=0?e.ownerDocument.body:Qy(e)&&Kb(e)?e:qb(hb(e))}function Jb(e,t){t===void 0&&(t=[]);var n=qb(e),r=n===e.ownerDocument?.body,i=Xy(n),a=r?[i].concat(i.visualViewport||[],Kb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Jb(hb(a)))}function Yb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xb(e,t){var n=lb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Zb(e,t,n){return t===`viewport`?Yb(Wb(e,n)):Zy(t)?Xb(t,n):Yb(Gb(mb(e)))}function Qb(e){var t=Jb(hb(e)),n=[`absolute`,`fixed`].indexOf(fb(e).position)>=0&&Qy(e)?vb(e):e;return Zy(n)?t.filter(function(e){return Zy(e)&&db(e,n)&&Yy(e)!==`body`}):[]}function $b(e,t,n,r){var i=t===`clippingParents`?Qb(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Zb(e,n,r);return t.top=ib(i.top,t.top),t.right=ab(i.right,t.right),t.bottom=ab(i.bottom,t.bottom),t.left=ib(i.left,t.left),t},Zb(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ex(e){var t=e.reference,n=e.element,r=e.placement,i=r?rb(r):null,a=r?kb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Dy:c={x:o,y:t.y+t.height};break;case Oy:c={x:t.x+t.width,y:s};break;case ky:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?yb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case My:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function tx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ny:s,l=n.rootBoundary,u=l===void 0?Py:l,d=n.elementContext,f=d===void 0?Fy:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Cb(typeof g==`number`?wb(g,jy):g),v=f===`popper`?Iy:Fy,y=e.rects.popper,b=e.elements[m?v:f],x=$b(Zy(b)?b:b.contextElement||mb(e.elements.popper),c,u,o),S=lb(e.elements.reference),C=ex({reference:S,element:y,strategy:`absolute`,placement:i}),w=Yb(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function nx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Ry:c,u=kb(r),d=u?s?Ly:Ly.filter(function(e){return kb(e)===u}):jy,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=tx(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[rb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function rx(e){if(rb(e)===`auto`)return[];var t=zb(e);return[Vb(e),t,Vb(t)]}function ix(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=rb(g)===g,v=c||(_||!m?[zb(g)]:rx(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(rb(n)===`auto`?nx(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=rb(E),O=kb(E)===My,ee=[`top`,Dy].indexOf(D)>=0,te=ee?`width`:`height`,ne=tx(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),re=ee?O?Oy:ky:O?Dy:`top`;b[te]>x[te]&&(re=zb(re));var ie=zb(re),ae=[];if(a&&ae.push(ne[D]<=0),s&&ae.push(ne[re]<=0,ne[ie]<=0),ae.every(function(e){return e})){w=E,C=!1;break}S.set(E,ae)}if(C)for(var oe=m?3:1,se=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ce=oe;ce>0&&se(ce)!==`break`;ce--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var ax={name:`flip`,enabled:!0,phase:`main`,fn:ix,requiresIfExists:[`offset`],data:{_skip:!1}};function ox(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sx(e){return[`top`,Oy,Dy,ky].some(function(t){return e[t]>=0})}function cx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=tx(t,{elementContext:`reference`}),s=tx(t,{altBoundary:!0}),c=ox(o,r),l=ox(s,i,a),u=sx(c),d=sx(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var lx={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:cx};function ux(e,t,n){var r=rb(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function dx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ry.reduce(function(e,n){return e[n]=ux(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var fx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:dx};function px(e){var t=e.state,n=e.name;t.modifiersData[n]=ex({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var mx={name:`popperOffsets`,enabled:!0,phase:`read`,fn:px,data:{}};function hx(e){return e===`x`?`y`:`x`}function gx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=tx(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=rb(t.placement),v=kb(t.placement),y=!v,b=yb(_),x=hx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:ky,te=b===`y`?Dy:Oy,ne=b===`y`?`height`:`width`,re=S[b],ie=re+g[ee],ae=re-g[te],oe=p?-w[ne]/2:0,se=v===`start`?C[ne]:w[ne],ce=v===`start`?-w[ne]:-C[ne],le=t.elements.arrow,ue=p&&le?ub(le):{width:0,height:0},de=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Sb(),fe=de[ee],pe=de[te],me=bb(0,C[ne],ue[ne]),he=y?C[ne]/2-oe-me-fe-E.mainAxis:se-me-fe-E.mainAxis,ge=y?-C[ne]/2+oe+me+pe+E.mainAxis:ce+me+pe+E.mainAxis,_e=t.elements.arrow&&vb(t.elements.arrow),ve=_e?b===`y`?_e.clientTop||0:_e.clientLeft||0:0,ye=D?.[b]??0,be=re+he-ye-ve,xe=re+ge-ye,Se=bb(p?ab(ie,be):ie,re,p?ib(ae,xe):ae);S[b]=Se,O[b]=Se-re}if(s){var Ce=b===`x`?`top`:ky,we=b===`x`?Dy:Oy,Te=S[x],Ee=x===`y`?`height`:`width`,De=Te+g[Ce],Oe=Te-g[we],ke=[`top`,ky].indexOf(_)!==-1,k=D?.[x]??0,Ae=ke?De:Te-C[Ee]-w[Ee]-k+E.altAxis,je=ke?Te+C[Ee]+w[Ee]-k-E.altAxis:Oe,Me=p&&ke?xb(Ae,Te,je):bb(p?Ae:De,Te,p?je:Oe);S[x]=Me,O[x]=Me-Te}t.modifiersData[r]=O}}var _x={name:`preventOverflow`,enabled:!0,phase:`main`,fn:gx,requiresIfExists:[`offset`]};function vx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yx(e){return e===Xy(e)||!Qy(e)?Hb(e):vx(e)}function bx(e){var t=e.getBoundingClientRect(),n=ob(t.width)/e.offsetWidth||1,r=ob(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xx(e,t,n){n===void 0&&(n=!1);var r=Qy(t),i=Qy(t)&&bx(t),a=mb(t),o=lb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Yy(t)!==`body`||Kb(a))&&(s=yx(t)),Qy(t)?(c=lb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ub(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Sx(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Cx(e){var t=Sx(e);return Jy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function wx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Tx(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ex={placement:`bottom`,modifiers:[],strategy:`absolute`};function Dx(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Ox(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Ex:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Ex,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Zy(e)?Jb(e):e.contextElement?Jb(e.contextElement):[],popper:Jb(t)};var s=Cx(Tx([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Dx(t,n)){i.rects={reference:xx(t,vb(n),i.options.strategy===`fixed`),popper:ub(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:wx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Dx(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var kx=Ox(),Ax=Ox({defaultModifiers:[Lb,mx,Pb,nb]}),jx=Ox({defaultModifiers:[Lb,mx,Pb,nb,fx,ax,_x,Ob,lx]}),Mx=s({afterMain:()=>Wy,afterRead:()=>Vy,afterWrite:()=>qy,applyStyles:()=>nb,arrow:()=>Ob,auto:()=>Ay,basePlacements:()=>jy,beforeMain:()=>Hy,beforeRead:()=>zy,beforeWrite:()=>Gy,bottom:()=>Dy,clippingParents:()=>Ny,computeStyles:()=>Pb,createPopper:()=>jx,createPopperBase:()=>kx,createPopperLite:()=>Ax,detectOverflow:()=>tx,end:()=>`end`,eventListeners:()=>Lb,flip:()=>ax,hide:()=>lx,left:()=>ky,main:()=>Uy,modifierPhases:()=>Jy,offset:()=>fx,placements:()=>Ry,popper:()=>Fy,popperGenerator:()=>Ox,popperOffsets:()=>mx,preventOverflow:()=>_x,read:()=>By,reference:()=>Iy,right:()=>Oy,start:()=>My,top:()=>`top`,variationPlacements:()=>Ly,viewport:()=>Py,write:()=>Ky}),Nx=new Map,Px={set(e,t,n){Nx.has(e)||Nx.set(e,new Map);let r=Nx.get(e);if(!r.has(t)&&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(t,n)},get(e,t){return Nx.has(e)&&Nx.get(e).get(t)||null},remove(e,t){if(!Nx.has(e))return;let n=Nx.get(e);n.delete(t),n.size===0&&Nx.delete(e)}},Fx=1e6,Ix=1e3,Lx=`transitionend`,Rx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),zx=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Bx=e=>{do e+=Math.floor(Math.random()*Fx);while(document.getElementById(e));return e},Vx=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Ix)},Hx=e=>{e.dispatchEvent(new Event(Lx))},Ux=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Wx=e=>Ux(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Rx(e)):null,Gx=e=>{if(!Ux(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Kx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,qx=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?qx(e.parentNode):null},Jx=()=>{},Yx=e=>{e.offsetHeight},Xx=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,Zx=[],Qx=e=>{document.readyState===`loading`?(Zx.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of Zx)e()}),Zx.push(e)):e()},$x=()=>document.documentElement.dir===`rtl`,eS=e=>{Qx(()=>{let t=Xx();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},tS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,nS=(e,t,n=!0)=>{if(!n){tS(e);return}let r=Vx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Lx,a),tS(e))};t.addEventListener(Lx,a),setTimeout(()=>{i||Hx(t)},r)},rS=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},iS=/[^.]*(?=\..*)\.|.*/,aS=/\..*/,oS=/::\d+$/,sS={},cS=1,lS={mouseenter:`mouseover`,mouseleave:`mouseout`},uS=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function dS(e,t){return t&&`${t}::${cS++}`||e.uidEvent||cS++}function fS(e){let t=dS(e);return e.uidEvent=t,sS[t]=sS[t]||{},sS[t]}function pS(e,t){return function n(r){return xS(r,{delegateTarget:e}),n.oneOff&&H.off(e,r.type,t),t.apply(e,[r])}}function mS(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return xS(i,{delegateTarget:o}),r.oneOff&&H.off(e,i.type,t,n),n.apply(o,[i])}}function hS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function gS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=bS(e);return uS.has(a)||(a=e),[r,i,a]}function _S(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=gS(t,n,r);t in lS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=fS(e),l=c[s]||(c[s]={}),u=hS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=dS(o,t.replace(iS,``)),f=a?mS(e,n,o):pS(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function vS(e,t,n,r,i){let a=hS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function yS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&vS(e,t,n,o.callable,o.delegationSelector)}function bS(e){return e=e.replace(aS,``),lS[e]||e}var H={on(e,t,n,r){_S(e,t,n,r,!1)},one(e,t,n,r){_S(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=gS(t,n,r),s=o!==t,c=fS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;vS(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))yS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(oS,``);(!s||t.includes(i))&&vS(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=Xx(),i=t!==bS(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=xS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function xS(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function SS(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function CS(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var wS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${CS(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${CS(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=SS(e.dataset[r])}return t},getDataAttribute(e,t){return SS(e.getAttribute(`data-bs-${CS(t)}`))}},TS=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let n=Ux(t)?wS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Ux(t)?wS.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Ux(t)?`element`:zx(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},ES=`5.3.8`,DS=class extends TS{constructor(e,t){super(),e=Wx(e),e&&(this._element=e,this._config=this._getConfig(t),Px.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Px.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){nS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Px.get(Wx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return ES}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},OS=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Rx(e)).join(`,`):null},U={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Kx(e)&&Gx(e))},getSelectorFromElement(e){let t=OS(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){let t=OS(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){let t=OS(e);return t?U.find(t):[]}},kS=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;H.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Kx(this))return;let i=U.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},AS=`alert`,jS=`.bs.alert`,MS=`close${jS}`,NS=`closed${jS}`,PS=`fade`,FS=`show`,IS=class e extends DS{static get NAME(){return AS}close(){if(H.trigger(this._element,MS).defaultPrevented)return;this._element.classList.remove(FS);let e=this._element.classList.contains(PS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,NS),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};kS(IS,`close`),eS(IS);var LS=`button`,RS=`.bs.button`,zS=`.data-api`,BS=`active`,VS=`[data-bs-toggle="button"]`,HS=`click${RS}${zS}`,US=class e extends DS{static get NAME(){return LS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(BS))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};H.on(document,HS,VS,e=>{e.preventDefault();let t=e.target.closest(VS);US.getOrCreateInstance(t).toggle()}),eS(US);var WS=`swipe`,GS=`.bs.swipe`,KS=`touchstart${GS}`,qS=`touchmove${GS}`,JS=`touchend${GS}`,YS=`pointerdown${GS}`,XS=`pointerup${GS}`,ZS=`touch`,QS=`pen`,$S=`pointer-event`,eC=40,tC={endCallback:null,leftCallback:null,rightCallback:null},nC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},rC=class e extends TS{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return tC}static get DefaultType(){return nC}static get NAME(){return WS}dispose(){H.off(this._element,GS)}_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(),tS(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=eC)return;let t=e/this._deltaX;this._deltaX=0,t&&tS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,YS,e=>this._start(e)),H.on(this._element,XS,e=>this._end(e)),this._element.classList.add($S)):(H.on(this._element,KS,e=>this._start(e)),H.on(this._element,qS,e=>this._move(e)),H.on(this._element,JS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===QS||e.pointerType===ZS)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},iC=`carousel`,aC=`.bs.carousel`,oC=`.data-api`,sC=`ArrowLeft`,cC=`ArrowRight`,lC=500,uC=`next`,dC=`prev`,fC=`left`,pC=`right`,mC=`slide${aC}`,hC=`slid${aC}`,gC=`keydown${aC}`,_C=`mouseenter${aC}`,vC=`mouseleave${aC}`,yC=`dragstart${aC}`,bC=`load${aC}${oC}`,xC=`click${aC}${oC}`,SC=`carousel`,CC=`active`,wC=`slide`,TC=`carousel-item-end`,EC=`carousel-item-start`,DC=`carousel-item-next`,OC=`carousel-item-prev`,kC=`.active`,AC=`.carousel-item`,jC=`.active.carousel-item`,MC=`.carousel-item img`,NC=`.carousel-indicators`,PC=`[data-bs-slide], [data-bs-slide-to]`,FC=`[data-bs-ride="carousel"]`,IC={[sC]:pC,[cC]:fC},LC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},RC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},zC=class e extends DS{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(NC,this._element),this._addEventListeners(),this._config.ride===SC&&this.cycle()}static get Default(){return LC}static get DefaultType(){return RC}static get NAME(){return iC}next(){this._slide(uC)}nextWhenVisible(){!document.hidden&&Gx(this._element)&&this.next()}prev(){this._slide(dC)}pause(){this._isSliding&&Hx(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){H.one(this._element,hC,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){H.one(this._element,hC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?uC:dC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&H.on(this._element,gC,e=>this._keydown(e)),this._config.pause===`hover`&&(H.on(this._element,_C,()=>this.pause()),H.on(this._element,vC,()=>this._maybeEnableCycle())),this._config.touch&&rC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of U.find(MC,this._element))H.on(e,yC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(fC)),rightCallback:()=>this._slide(this._directionToOrder(pC)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),lC+this._config.interval))}};this._swipeHelper=new rC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=IC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=U.findOne(kC,this._indicatorsElement);t.classList.remove(CC),t.removeAttribute(`aria-current`);let n=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(CC),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===uC,i=t||rS(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>H.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(mC).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?EC:TC,l=r?DC:OC;i.classList.add(l),Yx(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(CC),n.classList.remove(CC,l,c),this._isSliding=!1,o(hC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(wC)}_getActive(){return U.findOne(jC,this._element)}_getItems(){return U.find(AC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return $x()?e===fC?dC:uC:e===fC?uC:dC}_orderToDirection(e){return $x()?e===dC?fC:pC:e===dC?pC:fC}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,xC,PC,function(e){let t=U.getElementFromSelector(this);if(!t||!t.classList.contains(SC))return;e.preventDefault();let n=zC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(wS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),H.on(window,bC,()=>{let e=U.find(FC);for(let t of e)zC.getOrCreateInstance(t)}),eS(zC);var BC=`collapse`,VC=`.bs.collapse`,HC=`.data-api`,UC=`show${VC}`,WC=`shown${VC}`,GC=`hide${VC}`,KC=`hidden${VC}`,qC=`click${VC}${HC}`,JC=`show`,YC=`collapse`,XC=`collapsing`,ZC=`collapsed`,QC=`:scope .${YC} .${YC}`,$C=`collapse-horizontal`,ew=`width`,tw=`height`,nw=`.collapse.show, .collapse.collapsing`,rw=`[data-bs-toggle="collapse"]`,iw={parent:null,toggle:!0},aw={parent:`(null|element)`,toggle:`boolean`},ow=class e extends DS{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=U.find(rw);for(let e of n){let t=U.getSelectorFromElement(e),n=U.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return iw}static get DefaultType(){return aw}static get NAME(){return BC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(nw).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,UC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(YC),this._element.classList.add(XC),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(XC),this._element.classList.add(YC,JC),this._element.style[n]=``,H.trigger(this._element,WC)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,GC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Yx(this._element),this._element.classList.add(XC),this._element.classList.remove(YC,JC);for(let e of this._triggerArray){let t=U.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(XC),this._element.classList.add(YC),H.trigger(this._element,KC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(JC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Wx(e.parent),e}_getDimension(){return this._element.classList.contains($C)?ew:tw}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(rw);for(let t of e){let e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=U.find(QC,this._config.parent);return U.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(ZC,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};H.on(document,qC,rw,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of U.getMultipleElementsFromSelector(this))ow.getOrCreateInstance(e,{toggle:!1}).toggle()}),eS(ow);var sw=`dropdown`,cw=`.bs.dropdown`,lw=`.data-api`,uw=`Escape`,dw=`Tab`,fw=`ArrowUp`,pw=`ArrowDown`,mw=2,hw=`hide${cw}`,gw=`hidden${cw}`,_w=`show${cw}`,vw=`shown${cw}`,yw=`click${cw}${lw}`,bw=`keydown${cw}${lw}`,xw=`keyup${cw}${lw}`,Sw=`show`,Cw=`dropup`,ww=`dropend`,Tw=`dropstart`,Ew=`dropup-center`,Dw=`dropdown-center`,Ow=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,kw=`${Ow}.${Sw}`,Aw=`.dropdown-menu`,jw=`.navbar`,Mw=`.navbar-nav`,Nw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Pw=$x()?`top-end`:`top-start`,Fw=$x()?`top-start`:`top-end`,Iw=$x()?`bottom-end`:`bottom-start`,Lw=$x()?`bottom-start`:`bottom-end`,Rw=$x()?`left-start`:`right-start`,zw=$x()?`right-start`:`left-start`,Bw=`top`,Vw=`bottom`,Hw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Uw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Ww=class e extends DS{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,Aw)[0]||U.prev(this._element,Aw)[0]||U.findOne(Aw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Hw}static get DefaultType(){return Uw}static get NAME(){return sw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Kx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!H.trigger(this._element,_w,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(Mw))for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Jx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(Sw),this._element.classList.add(Sw),H.trigger(this._element,vw,e)}}hide(){if(Kx(this._element)||!this._isShown())return;let 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(!H.trigger(this._element,hw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Jx);this._popper&&this._popper.destroy(),this._menu.classList.remove(Sw),this._element.classList.remove(Sw),this._element.setAttribute(`aria-expanded`,`false`),wS.removeDataAttribute(this._menu,`popper`),H.trigger(this._element,gw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Ux(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${sw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Mx===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Ux(this._config.reference)?e=Wx(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=jx(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Sw)}_getPlacement(){let e=this._parent;if(e.classList.contains(ww))return Rw;if(e.classList.contains(Tw))return zw;if(e.classList.contains(Ew))return Bw;if(e.classList.contains(Dw))return Vw;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Cw)?t?Fw:Pw:t?Lw:Iw}_detectNavbar(){return this._element.closest(jw)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let 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`)&&(wS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...tS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=U.find(Nw,this._menu).filter(e=>Gx(e));n.length&&rS(n,t,e===pw,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===mw||t.type===`keyup`&&t.key!==dw)return;let n=U.find(kw);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===dw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===uw,i=[fw,pw].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(Ow)?this:U.prev(this,Ow)[0]||U.next(this,Ow)[0]||U.findOne(Ow,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};H.on(document,bw,Ow,Ww.dataApiKeydownHandler),H.on(document,bw,Aw,Ww.dataApiKeydownHandler),H.on(document,yw,Ww.clearMenus),H.on(document,xw,Ww.clearMenus),H.on(document,yw,Ow,function(e){e.preventDefault(),Ww.getOrCreateInstance(this).toggle()}),eS(Ww);var Gw=`backdrop`,Kw=`fade`,qw=`show`,Jw=`mousedown.bs.${Gw}`,Yw={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},Xw={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},Zw=class extends TS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Yw}static get DefaultType(){return Xw}static get NAME(){return Gw}show(e){if(!this._config.isVisible){tS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Yx(t),t.classList.add(qw),this._emulateAnimation(()=>{tS(e)})}hide(e){if(!this._config.isVisible){tS(e);return}this._getElement().classList.remove(qw),this._emulateAnimation(()=>{this.dispose(),tS(e)})}dispose(){this._isAppended&&=(H.off(this._element,Jw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Kw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Wx(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,Jw,()=>{tS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){nS(e,this._getElement(),this._config.isAnimated)}},Qw=`focustrap`,$w=`.bs.focustrap`,eT=`focusin${$w}`,tT=`keydown.tab${$w}`,nT=`Tab`,rT=`forward`,iT=`backward`,aT={autofocus:!0,trapElement:null},oT={autofocus:`boolean`,trapElement:`element`},sT=class extends TS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return aT}static get DefaultType(){return oT}static get NAME(){return Qw}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,$w),H.on(document,eT,e=>this._handleFocusin(e)),H.on(document,tT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,$w))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=U.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===iT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===nT&&(this._lastTabNavDirection=e.shiftKey?iT:rT)}},cT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,lT=`.sticky-top`,uT=`padding-right`,dT=`margin-right`,fT=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,uT,t=>t+e),this._setElementAttributes(cT,uT,t=>t+e),this._setElementAttributes(lT,dT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,uT),this._resetElementAttributes(cT,uT),this._resetElementAttributes(lT,dT)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&wS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=wS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}wS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Ux(e)){t(e);return}for(let n of U.find(e,this._element))t(n)}},pT=`modal`,mT=`.bs.modal`,hT=`.data-api`,gT=`Escape`,_T=`hide${mT}`,vT=`hidePrevented${mT}`,yT=`hidden${mT}`,bT=`show${mT}`,xT=`shown${mT}`,ST=`resize${mT}`,CT=`click.dismiss${mT}`,wT=`mousedown.dismiss${mT}`,TT=`keydown.dismiss${mT}`,ET=`click${mT}${hT}`,DT=`modal-open`,OT=`fade`,kT=`show`,AT=`modal-static`,jT=`.modal.show`,MT=`.modal-dialog`,NT=`.modal-body`,PT=`[data-bs-toggle="modal"]`,FT={backdrop:!0,focus:!0,keyboard:!0},IT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},LT=class e extends DS{constructor(e,t){super(e,t),this._dialog=U.findOne(MT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fT,this._addEventListeners()}static get Default(){return FT}static get DefaultType(){return IT}static get NAME(){return pT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,bT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(DT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,_T).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,mT),H.off(this._dialog,mT),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zw({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new sT({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;let t=U.findOne(NT,this._dialog);t&&(t.scrollTop=0),Yx(this._element),this._element.classList.add(kT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,xT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,TT,e=>{if(e.key===gT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,ST,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,wT,e=>{H.one(this._element,CT,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(DT),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,yT)})}_isAnimated(){return this._element.classList.contains(OT)}_triggerBackdropTransition(){if(H.trigger(this._element,vT).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(AT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(AT),this._queueCallback(()=>{this._element.classList.remove(AT),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=$x()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=$x()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};H.on(document,ET,PT,function(e){let t=U.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),H.one(t,bT,e=>{e.defaultPrevented||H.one(t,yT,()=>{Gx(this)&&this.focus()})});let n=U.findOne(jT);n&<.getInstance(n).hide(),LT.getOrCreateInstance(t).toggle(this)}),kS(LT),eS(LT);var RT=`offcanvas`,zT=`.bs.offcanvas`,BT=`.data-api`,VT=`load${zT}${BT}`,HT=`Escape`,UT=`show`,WT=`showing`,GT=`hiding`,KT=`offcanvas-backdrop`,qT=`.offcanvas.show`,JT=`show${zT}`,YT=`shown${zT}`,XT=`hide${zT}`,ZT=`hidePrevented${zT}`,QT=`hidden${zT}`,$T=`resize${zT}`,eE=`click${zT}${BT}`,tE=`keydown.dismiss${zT}`,nE=`[data-bs-toggle="offcanvas"]`,rE={backdrop:!0,keyboard:!0,scroll:!1},iE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},aE=class e extends DS{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return rE}static get DefaultType(){return iE}static get NAME(){return RT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||H.trigger(this._element,JT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new fT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(WT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(UT),this._element.classList.remove(WT),H.trigger(this._element,YT,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||H.trigger(this._element,XT).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(GT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(UT,GT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new fT().reset(),H.trigger(this._element,QT)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){H.trigger(this._element,ZT);return}this.hide()},t=!!this._config.backdrop;return new Zw({className:KT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new sT({trapElement:this._element})}_addEventListeners(){H.on(this._element,tE,e=>{if(e.key===HT){if(this._config.keyboard){this.hide();return}H.trigger(this._element,ZT)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};H.on(document,eE,nE,function(e){let t=U.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Kx(this))return;H.one(t,QT,()=>{Gx(this)&&this.focus()});let n=U.findOne(qT);n&&n!==t&&aE.getInstance(n).hide(),aE.getOrCreateInstance(t).toggle(this)}),H.on(window,VT,()=>{for(let e of U.find(qT))aE.getOrCreateInstance(e).show()}),H.on(window,$T,()=>{for(let e of U.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&aE.getOrCreateInstance(e).hide()}),kS(aE),eS(aE);var oE={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},sE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),cE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,lE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?sE.has(n)?!!cE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function uE(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)lE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var dE=`TemplateFactory`,fE={allowList:oE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},pE={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},mE={entry:`(string|element|function|null)`,selector:`(string|element)`},hE=class extends TS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return fE}static get DefaultType(){return pE}static get NAME(){return dE}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(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},mE)}_setContent(e,t,n){let r=U.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Ux(t)){this._putElementInTemplate(Wx(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?uE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return tS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},gE=`tooltip`,_E=new Set([`sanitize`,`allowList`,`sanitizeFn`]),vE=`fade`,yE=`modal`,bE=`show`,xE=`.tooltip-inner`,SE=`.${yE}`,CE=`hide.bs.modal`,wE=`hover`,TE=`focus`,EE=`click`,DE=`manual`,OE=`hide`,kE=`hidden`,AE=`show`,jE=`shown`,ME=`inserted`,NE=`click`,PE=`focusin`,FE=`focusout`,IE=`mouseenter`,LE=`mouseleave`,RE={AUTO:`auto`,TOP:`top`,RIGHT:$x()?`left`:`right`,BOTTOM:`bottom`,LEFT:$x()?`right`:`left`},zE={allowList:oE,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`},BE={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`},VE=class e extends DS{constructor(e,t){if(Mx===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);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 zE}static get DefaultType(){return BE}static get NAME(){return gE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(SE),CE,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 Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=H.trigger(this._element,this.constructor.eventName(AE)),t=(qx(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),H.trigger(this._element,this.constructor.eventName(ME))),this._popper=this._createPopper(n),n.classList.add(bE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Jx);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName(jE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||H.trigger(this._element,this.constructor.eventName(OE)).defaultPrevented)){if(this._getTipElement().classList.remove(bE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Jx);this._activeTrigger[EE]=!1,this._activeTrigger[TE]=!1,this._activeTrigger[wE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),H.trigger(this._element,this.constructor.eventName(kE)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(vE,bE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Bx(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(vE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new hE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[xE]: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(vE)}_isShown(){return this.tip&&this.tip.classList.contains(bE)}_createPopper(e){let t=RE[tS(this._config.placement,[this,e,this._element]).toUpperCase()];return jx(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return tS(e,[this._element,this._element])}_getPopperConfig(e){let 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:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...tS(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)H.on(this._element,this.constructor.eventName(NE),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[EE]=!(t._isShown()&&t._activeTrigger[EE]),t.toggle()});else if(t!==DE){let e=t===wE?this.constructor.eventName(IE):this.constructor.eventName(PE),n=t===wE?this.constructor.eventName(LE):this.constructor.eventName(FE);H.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?TE:wE]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?TE:wE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(SE),CE,this._hideModalHandler)}_fixTitle(){let 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){let t=wS.getDataAttributes(this._element);for(let e of Object.keys(t))_E.has(e)&&delete t[e];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:Wx(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(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};eS(VE);var HE=`popover`,UE=`.popover-header`,WE=`.popover-body`,GE={...VE.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`},KE={...VE.DefaultType,content:`(null|string|element|function)`},qE=class e extends VE{static get Default(){return GE}static get DefaultType(){return KE}static get NAME(){return HE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[UE]:this._getTitle(),[WE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};eS(qE);var JE=`scrollspy`,YE=`.bs.scrollspy`,XE=`.data-api`,ZE=`activate${YE}`,QE=`click${YE}`,$E=`load${YE}${XE}`,eD=`dropdown-item`,tD=`active`,nD=`[data-bs-spy="scroll"]`,rD=`[href]`,iD=`.nav, .list-group`,aD=`.nav-link`,oD=`${aD}, .nav-item > ${aD}, .list-group-item`,sD=`.dropdown`,cD=`.dropdown-toggle`,lD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},uD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},dD=class e extends DS{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 lD}static get DefaultType(){return uD}static get NAME(){return JE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Wx(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(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,QE),H.on(this._config.target,QE,rD,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=U.find(rD,this._config.target);for(let t of e){if(!t.hash||Kx(t))continue;let e=U.findOne(decodeURI(t.hash),this._element);Gx(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(tD),this._activateParents(e),H.trigger(this._element,ZE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(eD)){U.findOne(cD,e.closest(sD)).classList.add(tD);return}for(let t of U.parents(e,iD))for(let e of U.prev(t,oD))e.classList.add(tD)}_clearActiveClass(e){e.classList.remove(tD);let t=U.find(`${rD}.${tD}`,e);for(let e of t)e.classList.remove(tD)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(window,$E,()=>{for(let e of U.find(nD))dD.getOrCreateInstance(e)}),eS(dD);var fD=`tab`,pD=`.bs.tab`,mD=`hide${pD}`,hD=`hidden${pD}`,gD=`show${pD}`,_D=`shown${pD}`,vD=`click${pD}`,yD=`keydown${pD}`,bD=`load${pD}`,xD=`ArrowLeft`,SD=`ArrowRight`,CD=`ArrowUp`,wD=`ArrowDown`,TD=`Home`,ED=`End`,DD=`active`,OD=`fade`,kD=`show`,AD=`dropdown`,jD=`.dropdown-toggle`,MD=`.dropdown-menu`,ND=`:not(${jD})`,PD=`.list-group, .nav, [role="tablist"]`,FD=`.nav-item, .list-group-item`,ID=`.nav-link${ND}, .list-group-item${ND}, [role="tab"]${ND}`,LD=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,RD=`${ID}, ${LD}`,zD=`.${DD}[data-bs-toggle="tab"], .${DD}[data-bs-toggle="pill"], .${DD}[data-bs-toggle="list"]`,BD=class e extends DS{constructor(e){super(e),this._parent=this._element.closest(PD),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,yD,e=>this._keydown(e)))}static get NAME(){return fD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?H.trigger(t,mD,{relatedTarget:e}):null;H.trigger(e,gD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(DD),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(kD);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),H.trigger(e,_D,{relatedTarget:t})},e,e.classList.contains(OD)))}_deactivate(e,t){e&&(e.classList.remove(DD),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(kD);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),H.trigger(e,hD,{relatedTarget:t})},e,e.classList.contains(OD)))}_keydown(t){if(![xD,SD,CD,wD,TD,ED].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Kx(e)),r;if([TD,ED].includes(t.key))r=n[t.key===TD?0:n.length-1];else{let e=[SD,wD].includes(t.key);r=rS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return U.find(RD,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=U.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(AD))return;let r=(e,r)=>{let i=U.findOne(e,n);i&&i.classList.toggle(r,t)};r(jD,DD),r(MD,kD),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(DD)}_getInnerElement(e){return e.matches(RD)?e:U.findOne(RD,e)}_getOuterElement(e){return e.closest(FD)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,vD,LD,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Kx(this)&&BD.getOrCreateInstance(this).show()}),H.on(window,bD,()=>{for(let e of U.find(zD))BD.getOrCreateInstance(e)}),eS(BD);var VD=`toast`,HD=`.bs.toast`,UD=`mouseover${HD}`,WD=`mouseout${HD}`,GD=`focusin${HD}`,KD=`focusout${HD}`,qD=`hide${HD}`,JD=`hidden${HD}`,YD=`show${HD}`,XD=`shown${HD}`,ZD=`fade`,QD=`hide`,$D=`show`,eO=`showing`,tO={animation:`boolean`,autohide:`boolean`,delay:`number`},nO={animation:!0,autohide:!0,delay:5e3},rO=class e extends DS{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return nO}static get DefaultType(){return tO}static get NAME(){return VD}show(){H.trigger(this._element,YD).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(ZD),this._element.classList.remove(QD),Yx(this._element),this._element.classList.add($D,eO),this._queueCallback(()=>{this._element.classList.remove(eO),H.trigger(this._element,XD),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||H.trigger(this._element,qD).defaultPrevented||(this._element.classList.add(eO),this._queueCallback(()=>{this._element.classList.add(QD),this._element.classList.remove(eO,$D),H.trigger(this._element,JD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove($D),super.dispose()}isShown(){return this._element.classList.contains($D)}_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}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,UD,e=>this._onInteraction(e,!0)),H.on(this._element,WD,e=>this._onInteraction(e,!1)),H.on(this._element,GD,e=>this._onInteraction(e,!0)),H.on(this._element,KD,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};kS(rO),eS(rO);function iO(e=void 0){let t=e=>a(`Succesvol`,e,v_.SUCCESS),n=e=>a(`Waarschuwing`,e,v_.WARNING),r=e=>a(`Informatie`,e,v_.INFO),i=e=>a(`Mislukt`,e,v_.DANGER);function a(t,n,r){let i=`toast-${ja()}`,a={id:i,variant:r,title:t,text:n},s=document.querySelector(`.toast-container`);if(!s){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let c=(0,u.h)(S_,a),l=(0,u.createApp)({render:()=>c}).mount(document.createElement(`div`));s.appendChild(l.$el);let d=document.querySelector(`#${i}`);d&&(rO.getOrCreateInstance(d,e).show(),o(d))}function o(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:t,showInformationToast:r,showWarningToast:n,showDangerToast:i}}var aO={class:`bd-file-upload`},oO={class:`flex align-items-center justify-content-between gap-2`},sO={key:0,class:`preview-container`},cO=(0,u.defineComponent)({__name:`BDFileUpload`,props:{modelValue:{},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:`.jpg`},url:{default:``},tag:{default:`form`},token:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let{showDangerToast:n}=iO(),{t:r}=Ey.global,i=e,a=t,o=(0,u.ref)(null),s=(0,u.ref)([]);(0,u.watch)(()=>i.modelValue,e=>{o.value&&(o.value.files=o.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let c=(0,u.computed)(()=>({variant:ga.PRIMARY,size:Ta.SM})),l=ug(i,`modelValue`,a),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];s.value.push(...t.map(e=>({name:e.name,previewUrl:e.objectURL})));for(let e of t){let t=new FormData;t.append(`file`,e);try{let n={method:`POST`,headers:{RequestVerificationToken:i.token},body:t};f(e,await(await fetch(i.url,n)).json())}catch{n(i.errorMessage||r(`fileUpload.errorMessage`))}}s.value=[],o.value&&o.value.clear()},f=(e,t)=>{let n=s.value.findIndex(t=>t.name==e.name);n!==-1&&s.value.splice(n,1),l.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=l.value.files.indexOf(e);t!==-1&&l.value.files.splice(t,1),t=s.value.indexOf(e),t!==-1&&s.value.splice(t,1)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,aO,[(0,u.createVNode)((0,u.unref)(by),{ref_key:`fileUploadRef`,ref:o,multiple:i.multiple,"max-file-size":10485760,accept:i.acceptedFiles,auto:!0,"max-files":i.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,u.withCtx)(({chooseCallback:e})=>[(0,u.createElementVNode)(`div`,oO,[(0,u.createVNode)(A,(0,u.mergeProps)(c.value,{onClick:e}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(D)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(i.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,u.withCtx)(()=>[s.value||(0,u.unref)(l)&&(0,u.unref)(l).files&&(0,u.unref)(l).files.length!==0?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,sO,[(0,u.unref)(l)&&(0,u.unref)(l).files?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)((0,u.unref)(l).files,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(dv,{key:t,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0),s.value?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:1},(0,u.renderList)(s.value,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(dv,{key:t,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0)])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),lO=[`id`,`value`,`disabled`],uO=[`for`],dO={class:`invalid-feedback`},fO={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Uu(),a=(0,u.ref)(n.modelValue),o=(0,u.computed)(()=>n.selectAllText?n.selectAllText:i(`form.multipleCheckbox.defaultButton`)),s=(0,u.computed)(()=>{let e=`bd-form-multiple-checkbox`;return n.state||(e+=` is-invalid`),n.overflow&&(e+=` overflow-form-control`),e}),c=(0,u.computed)(()=>n.errorMessage?n.errorMessage:i(`form.multipleCheckbox.defaultErrorMessage`));(0,u.watch)(()=>n.modelValue,e=>{a.value=e}),(0,u.watch)(a,e=>{r(`update:modelValue`,e),r(`on-input`,e),r(`change-department`,e)});function l(){a.value=n.options.map(e=>e.value),d()}function d(){r(`on-input`,a.value)}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.createVNode)(A,{variant:`outline-primary`,size:`sm`,onClick:l},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(o.value),1)]),_:1}),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,disabled:e.disabled},null,8,lO),[[u.vModelCheckbox,a.value]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,u.toDisplayString)(e.text),9,uO)]))),128))],2),(0,u.createElementVNode)(`div`,dO,[(0,u.createVNode)(Ut),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(c.value),1)])],64))}};function pO(e){this.content=e}pO.prototype={constructor:pO,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new pO(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new pO(n)},addToStart:function(e,t){return new pO([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new pO(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new pO(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=pO.from(e),e.size?new pO(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=pO.from(e),e.size?new pO(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=pO.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},pO.from=function(e){if(e instanceof pO)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new pO(t)};function mO(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&_O(e.charCodeAt(r-1))&&gO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=mO(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function hO(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&_O(e.charCodeAt(i-1))&&gO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=hO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function gO(e){return e>=56320&&e<57344}function _O(e){return e>=55296&&e<56320}var W=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return mO(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return hO(this,e,t,n)}findIndex(e){if(e==0)return yO(0,e);if(e==this.size)return yO(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?yO(t+1,i):yO(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};W.empty=new W([],0);var vO={index:0,offset:0};function yO(e,t){return vO.index=e,vO.offset=t,vO}function bO(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!bO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!bO(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var G=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&bO(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};G.none=[];var xO=class extends Error{},K=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=CO(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(SO(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(W.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};K.empty=new K(W.empty,0,0);function SO(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(SO(a.content,t-i-1,n-i-1)))}function CO(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=CO(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function wO(e,t,n){if(n.openStart>e.depth)throw new xO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new xO(`Inconsistent open depths`);return TO(e,t,n,0)}function TO(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=TO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return AO(a,MO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return AO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=NO(n,e);return AO(a,jO(e,i,o,t,r))}}function EO(e,t){if(!t.type.compatibleContent(e.type))throw new xO(`Cannot join `+t.type.name+` onto `+e.type.name)}function DO(e,t,n){let r=e.node(n);return EO(r,t.node(n)),r}function OO(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function kO(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(OO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)OO(i.child(e),r);t&&t.depth==n&&t.textOffset&&OO(t.nodeBefore,r)}function AO(e,t){if(!e.type.validContent(t))throw new xO(`Invalid content for node `+e.type.name);return e.copy(t)}function jO(e,t,n,r,i){let a=e.depth>i&&DO(e,t,i+1),o=r.depth>i&&DO(n,r,i+1),s=[];return kO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(EO(a,o),OO(AO(a,jO(e,t,n,r,i+1)),s)):(a&&OO(AO(a,MO(e,t,i+1)),s),kO(t,n,i,s),o&&OO(AO(o,MO(n,r,i+1)),s)),kO(r,null,i,s),new W(s)}function MO(e,t,n){let r=[];return kO(null,e,n,r),e.depth>n&&OO(AO(DO(e,t,n+1),MO(e,t,n+1)),r),kO(t,null,n,r),new W(r)}function NO(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(W.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var PO=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return G.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new RO(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=LO.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else LO.set(t,r=new FO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%IO,i}},FO=class{constructor(){this.elts=[],this.i=0}},IO=12,LO=new WeakMap,RO=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},zO=Object.create(null),BO=class e{constructor(e,t,n,r=G.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||W.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&bO(this.attrs,t||e.defaultAttrs||zO)&&G.sameSet(this.marks,n||G.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return K.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new K(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return wO(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return PO.resolveCached(this,e)}resolveNoCache(e){return PO.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),HO(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=W.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=G.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!G.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=W.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};BO.prototype.text=void 0;var VO=class e extends BO{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):HO(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function HO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var UO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new WO(t,n);if(r.next==null)return e.empty;let i=GO(r);r.next&&r.err(`Unexpected trailing text`);let a=tk(QO(i));return nk(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return W.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1696
1696
|
`)}};UO.empty=new UO(!0);var WO=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function GO(e){let t=[];do t.push(KO(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function KO(e){let t=[];do t.push(qO(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function qO(e){let t=ZO(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=YO(e,t);else break;return t}function JO(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function YO(e,t){let n=JO(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:JO(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function XO(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function ZO(e){if(e.eat(`(`)){let t=GO(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=XO(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function QO(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function $O(e,t){return t-e}function ek(e,t){let n=[];return r(t),n.sort($O);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function tk(e){let t=Object.create(null);return n(ek(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);ek(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new UO(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort($O);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function nk(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function rk(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ik(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function ak(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function ok(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new lk(e,r,t[r]);return n}var sk=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=ok(e,n.attrs),this.defaultAttrs=rk(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==UO.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ik(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new BO(this,this.computeAttrs(e),W.from(t),G.setFrom(n))}createChecked(e=null,t,n){return t=W.from(t),this.checkContent(t),new BO(this,this.computeAttrs(e),t,G.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=W.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(W.empty,!0);return i?new BO(this,e,t.append(i),G.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){ak(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:G.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ck(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var lk=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ck(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},uk=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ok(e,r.attrs),this.excluded=null;let i=rk(this.attrs);this.instance=i?new G(this,i):null}create(e=null){return!e&&this.instance?this.instance:new G(this,ik(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){ak(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},dk=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=pO.from(e.nodes),t.marks=pO.from(e.marks||{}),this.nodes=sk.compile(this.spec.nodes,this),this.marks=uk.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=UO.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?fk(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:fk(this,n.split(` `))}this.nodeFromJSON=e=>BO.fromJSON(this,e),this.markFromJSON=e=>G.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof sk))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new VO(n,n.defaultAttrs,e,G.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function fk(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function pk(e){return e.tag!=null}function mk(e){return e.style!=null}var hk=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(pk(e))this.tags.push(e);else if(mk(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new wk(this,t,!1);return n.addAll(e,G.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new wk(this,t,!0);return n.addAll(e,G.none,t.from,t.to),K.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Ek(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Dk(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Dk(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},gk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_k={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},vk={ol:!0,ul:!0},yk=1,bk=2,xk=4;function Sk(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?yk:0)|(t===`full`?bk:0)}var Ck=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=G.none,this.match=i||(a&xk?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(W.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&yk)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=W.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(W.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!gk.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},wk=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=Sk(null,t.preserveWhitespace,0)|(n?xk:0);i=r?new Ck(r.type,r.attrs,G.none,!0,t.topMatch||r.type.contentMatch,a):n?new Ck(null,null,G.none,!0,null,a):new Ck(e.schema.topNodeType,null,G.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&bk?`full`:this.localPreserveWS||(r.options&yk)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
|
|
1697
1697
|
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;vk.hasOwnProperty(a)&&this.parser.normalizeLists&&Tk(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:_k.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(gk.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
1698
1698
|
`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=G.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Ok(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Sk(e,i,a.options);a.options&xk&&a.content.length==0&&(o|=xk);let s=G.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):Ok(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Ck(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=yk);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function Tk(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&vk.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Ek(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Dk(e){let t={};for(let n in e)t[n]=e[n];return t}function Ok(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var kk=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=jk(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return jk(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Fk(jk(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Fk(jk(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Fk(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Ak(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Ak(e.marks)}};function Ak(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function jk(e){return e.document||window.document}var Mk=new WeakMap;function Nk(e){let t=Mk.get(e);return t===void 0&&Mk.set(e,t=Pk(e)),t}function Pk(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function Fk(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Nk(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Fk(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Ik=65535,Lk=2**16;function Rk(e,t){return e+t*Lk}function zk(e){return e&Ik}function Bk(e){return(e-(e&Ik))/Lk}var Vk=1,Hk=2,Uk=4,Wk=8,Gk=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Wk)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Uk)>0}},Kk=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=zk(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Bk(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Rk(o/3,e-s),f=e==s?Hk:e==u?Vk:Uk;return(t<0?e!=s:e!=u)&&(f|=Wk),new Gk(a,f,d)}r+=l-c}return n?e+r:new Gk(e+r,0,null)}touches(e,t){let n=0,r=zk(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Kk.empty=new Kk([]);var qk=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Gk(e,r,null)}},Jk=Object.create(null),Yk=class{getMap(){return Kk.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Jk[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Jk)throw RangeError(`Duplicate use of step JSON ID `+e);return Jk[e]=t,t.prototype.jsonID=e,t}},Xk=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof xO)return e.fail(t.message);throw t}}};function Zk(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Zk(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return W.fromArray(r)}var Qk=class e extends Yk{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new K(Zk(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Xk.fromReplace(e,this.from,this.to,i)}invert(){return new $k(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Yk.jsonID(`addMark`,Qk);var $k=class e extends Yk{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new K(Zk(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Xk.fromReplace(e,this.from,this.to,n)}invert(){return new Qk(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Yk.jsonID(`removeMark`,$k);var eA=class e extends Yk{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Xk.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Xk.fromReplace(e,this.pos,this.pos+1,new K(W.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new tA(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Yk.jsonID(`addNodeMark`,eA);var tA=class e extends Yk{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Xk.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Xk.fromReplace(e,this.pos,this.pos+1,new K(W.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new eA(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Yk.jsonID(`removeNodeMark`,tA);var nA=class e extends Yk{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&iA(e,this.from,this.to)?Xk.fail(`Structure replace would overwrite content`):Xk.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Kk([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?K.empty:new K(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?K.empty:new K(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,K.fromJSON(t,n.slice),!!n.structure)}};nA.MAP_BIAS=1,Yk.jsonID(`replace`,nA);var rA=class e extends Yk{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(iA(e,this.from,this.gapFrom)||iA(e,this.gapTo,this.to)))return Xk.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Xk.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Xk.fromReplace(e,this.from,this.to,n):Xk.fail(`Content does not fit in gap`)}getMap(){return new Kk([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,K.fromJSON(t,n.slice),n.insert,!!n.structure)}};Yk.jsonID(`replaceAround`,rA);function iA(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function aA(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new $k(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new Qk(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function oA(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof uk){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new $k(t.from,t.to,t.style)))}function sA(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new nA(s,l,K.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new $k(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new K(W.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new nA(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(W.empty,!0);e.replace(s,s,new K(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function cA(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function lA(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!cA(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function uA(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=W.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=W.from(r.node(e).copy(u)),d++):c--;let f=W.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=W.from(i.node(e).copy(f)),p++):l++;e.step(new rA(c,l,o,s,new K(u.append(f),d,p),u.size-d,!0))}function dA(e,t,n=null,r=e){let i=pA(e,t),a=i&&mA(r,t);return a?i.map(fA).concat({type:t,attrs:n}).concat(a.map(fA)):null}function fA(e){return{type:e,attrs:null}}function pA(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function mA(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function hA(e,t,n){let r=W.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=W.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new rA(i,a,i,a,new K(r,0,0),n.length,!0))}function gA(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&yA(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&vA(e,t,n,a),sA(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new rA(c,l,c+1,l-1,new K(W.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&_A(e,t,n,a),!1}})}function _A(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function vA(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
|
|
@@ -1881,4 +1881,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1881
1881
|
}
|
|
1882
1882
|
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),xJ={name:`Chip`,extends:{name:`BaseChip`,extends:wp,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:bJ,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return _d({removable:this.removable})}},components:{TimesCircleIcon:fJ}},SJ=[`aria-label`,`data-p`],CJ=[`src`];function wJ(e,t,n,r,i,a){return i.visible?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":a.dataP}),[(0,u.renderSlot)(e.$slots,`default`,{},function(){return[e.image?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,(0,u.mergeProps)({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,CJ)):e.$slots.icon?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.$slots.icon),(0,u.mergeProps)({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,(0,u.mergeProps)({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):(0,u.createCommentVNode)(``,!0),e.label===null?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:3,class:e.cx(`label`)},e.ptm(`label`)),(0,u.toDisplayString)(e.label),17))]}),e.removable?(0,u.renderSlot)(e.$slots,`removeicon`,{key:0,removeCallback:a.close,keydownCallback:a.onKeydown},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.removeIcon?`span`:`TimesCircleIcon`),(0,u.mergeProps)({class:[e.cx(`removeIcon`),e.removeIcon],onClick:a.close,onKeydown:a.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):(0,u.createCommentVNode)(``,!0)],16,SJ)):(0,u.createCommentVNode)(``,!0)}xJ.render=wJ;var TJ={key:0,class:`bd-active-filters`},EJ={class:`options`},DJ=(0,u.defineComponent)({__name:`BDActiveFilters`,props:(0,u.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t}=Uu(),n=(0,u.useModel)(e,`modelValue`),r=e,i=(0,u.computed)(()=>t(`activeFilters.title`)),a=(0,u.computed)(()=>t(`activeFilters.clearAll`)),o=(0,u.computed)(()=>n.value&&n.value.length>0),s=(0,u.computed)(()=>r.filters.filter(e=>n.value?.some(t=>t.startsWith(`${e.id}-`)))),c=e=>e.options.concat(e.moreOptions||[]).filter(t=>n.value?.some(n=>n===`${e.id}-${t.item}`)),l=()=>{n.value=[]},d=e=>{if(!n.value)return;let t=n.value.indexOf(e);t!==-1&&n.value?.splice(t,1)};return(e,t)=>o.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,TJ,[(0,u.createElementVNode)(`header`,null,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(A,{variant:`link`,onClick:l,textContent:(0,u.toDisplayString)(a.value)},null,8,[`textContent`])]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(s.value,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:e.id,class:`filter`},[(0,u.createElementVNode)(`label`,null,(0,u.toDisplayString)(e.label)+`:`,1),(0,u.createElementVNode)(`div`,EJ,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(c(e),t=>(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(xJ),{key:e.id+`-`+t.item,label:t.name,removable:``,onRemove:n=>d(`${e.id}-${t.item}`)},null,8,[`label`,`onRemove`])),[[(0,u.unref)(_G),t.name]])),128))])]))),128))])):(0,u.createCommentVNode)(``,!0)}}),OJ=[`id`],kJ={class:`collapse-button-container`},AJ={class:`collapsed-show`},jJ={class:`collapsed-hide`},MJ=(0,u.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:t}){let{t:n}=Uu(),r=t,i=(0,u.computed)(()=>n(`filterCard.more`)),a=(0,u.computed)(()=>n(`filterCard.less`)),o=e=>e.replace(/\s/g,`-`),s=()=>r(`check`);return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(za,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(DJ,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":n[0]||=t=>e.searchForm.selectedFilters=t,filters:e.filters},null,8,[`modelValue`,`filters`]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.filters,(r,c)=>((0,u.openBlock)(),(0,u.createBlock)(Hg,{key:r.label,label:r.label},{default:(0,u.withCtx)(()=>[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.options,(t,i)=>((0,u.openBlock)(),(0,u.createBlock)(fg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":n[1]||=t=>e.searchForm.selectedFilters=t,key:i,value:`${r.id}-${t.item}`,onChange:s},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(t.name),1)]),_:2},1032,[`modelValue`,`value`]))),128)),r.moreOptions?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[(0,u.createElementVNode)(`div`,{id:`collapse-${o(r.label)}`,class:`collapse`},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.moreOptions,(t,i)=>((0,u.openBlock)(),(0,u.createBlock)(fg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":n[2]||=t=>e.searchForm.selectedFilters=t,key:i,value:`${r.id}-${t.item}`,onChange:s},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(t.name),1)]),_:2},1032,[`modelValue`,`value`]))),128))],8,OJ),(0,u.createElementVNode)(`div`,kJ,[(0,u.createVNode)(A,{class:(0,u.normalizeClass)([`collapse-button collapsed`,{"collapse-button-last":e.filters.length-1===c}]),variant:`link`,"data-bs-toggle":`collapse`,"data-bs-target":`#collapse-${o(r.label)}`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(y,{class:`collapsed-show`}),(0,u.createElementVNode)(`span`,AJ,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(C,{class:`collapsed-hide`}),(0,u.createElementVNode)(`span`,jJ,(0,u.toDisplayString)(a.value),1)]),_:1},8,[`class`,`data-bs-target`])])],64)):(0,u.createCommentVNode)(``,!0),(0,u.renderSlot)(t.$slots,`filter-extra`,{filter:r})]),_:2},1032,[`label`]))),128))]),_:3}))}}),NJ={class:`content-library-template`},PJ={class:`number-of-messages`},FJ=[`src`],IJ=[`src`],LJ=(0,u.defineComponent)({__name:`BDContentLibraryTemplate`,props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`create`,`on-insert`,`on-change`,`delete`,`update`,`on-input`,`show-attachment`,`provider-changed`],setup(e,{emit:t}){let{t:n}=Uu(),r=e,i=t,a=(0,u.ref)(r.modelValue);(0,u.watch)(()=>r.modelValue,e=>{a.value=e},{immediate:!0,deep:!0});let o=(0,u.computed)(()=>r.modelValue?.provider?.SupportsSearch?n(`contentLibraryTemplate.searchPlaceholderSearch`):n(`contentLibraryTemplate.searchPlaceholder`)),s=(0,u.computed)(()=>T_(r.providerSelectOptions)&&r.providerSelectOptions.length>1),c=(0,u.computed)(()=>r.provider&&T_(r.provider.items)?r.provider.items:[]),l=(0,u.computed)(()=>r.provider&&T_(r.provider.filters)),d=(0,u.computed)(()=>{let e=0;return r.provider&&Rq(r.provider.totalNumber)&&(e=r.provider.totalNumber),e===1?`${e} ${n(`contentLibraryTemplate.message`)}`:`${e} ${n(`contentLibraryTemplate.messages`)}`}),f=(0,u.computed)(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),p=(0,u.computed)(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),m=(0,u.computed)(()=>l.value?9:12),h=(0,u.computed)(()=>r.provider&&!l.value?3:2),g=(0,u.computed)(()=>r.showAddButton||s.value),_=(0,u.computed)(()=>({md:3,lg:3})),v=(0,u.computed)(()=>({md:9,lg:9})),y=(0,u.computed)(()=>({sm:12,md:8,lg:s.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),b=(0,u.computed)(()=>({sm:12,md:g.value?4:3,lg:s.value?5:4})),x=e=>e.label===`Categorieën`&&r.editCategory,S=()=>{i(`create`)},C=e=>{i(`on-insert`,e)},w=e=>{i(`on-change`,e)},T=e=>{i(`delete`,e)},E=()=>{i(`update`,`category`)},D=()=>{a.value.currentPage=1,i(`on-input`,a.value)},O=()=>{i(`on-input`,a.value)},ee=e=>{i(`show-attachment`,e)},te=e=>{i(`provider-changed`,e.value)};return(t,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,NJ,[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,(0,u.mergeProps)(_.value,{class:`content-library-header content-library-header__messages`}),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,PJ,(0,u.toDisplayString)(d.value),1)]),_:1},16),(0,u.createVNode)(HK,(0,u.mergeProps)(v.value,{class:`content-library-header`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,{class:`controls-row`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,(0,u.mergeProps)(y.value,{class:`search-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Pg,{type:`text`,modelValue:a.value.searchTerm,"onUpdate:modelValue":i[0]||=e=>a.value.searchTerm=e,placeholder:o.value,delayTimeMs:500,class:`search-input`,onInput:D,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(HK,(0,u.mergeProps)({key:0},b.value,{class:`add-button-block`}),{default:(0,u.withCtx)(()=>[e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,class:`add-button`,onClick:S},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(ti),(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(n)(`contentLibraryTemplate.newMessageText`)),1)]),_:1})):(0,u.createCommentVNode)(``,!0)]),_:1},16)):(0,u.createCommentVNode)(``,!0),s.value?((0,u.openBlock)(),(0,u.createBlock)(HK,(0,u.mergeProps)({key:1},b.value,{class:`select-button-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Lq),{modelValue:a.value.provider,"onUpdate:modelValue":i[1]||=e=>a.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":te},{"open-indicator":(0,u.withCtx)(({attributes:e})=>[(0,u.createElementVNode)(`span`,(0,u.normalizeProps)((0,u.guardReactiveProps)(e)),[(0,u.createVNode)(Ee)],16)]),option:(0,u.withCtx)(({icon:e,label:t,img:n})=>[e?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e),{key:0})):(0,u.createCommentVNode)(``,!0),n?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:n},null,8,FJ)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t),1)]),"selected-option":(0,u.withCtx)(({icon:e,label:t,img:n})=>[e?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e),{key:0})):(0,u.createCommentVNode)(``,!0),n?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:n},null,8,IJ)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t),1)]),_:1},8,[`modelValue`,`options`])]),_:1},16)):(0,u.createCommentVNode)(``,!0)]),_:1})]),_:1},16),l.value?((0,u.openBlock)(),(0,u.createBlock)(HK,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(MJ,{filters:r.provider.filters,searchForm:a.value,"enable-edit-category":r.editCategory,"no-header":!0,onCheck:D},{"filter-extra":(0,u.withCtx)(({filter:e})=>[x(e)?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:E},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(n)(`contentLibraryTemplate.changeCategoryButtonLabel`)),1)]),_:1})):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`filters`,`searchForm`,`enable-edit-category`])]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(HK,{md:12,lg:m.value,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(dJ,{items:c.value,cols:h.value,onOnInsert:C,onOnChange:w,onDelete:T,onShowAttachment:ee},null,8,[`items`,`cols`]),(0,u.createVNode)(WK,{class:`content-library-pagination`},{default:(0,u.withCtx)(()=>[f.value?((0,u.openBlock)(),(0,u.createBlock)(i_,{key:0,modelValue:a.value.currentPage,"onUpdate:modelValue":i[2]||=e=>a.value.currentPage=e,totalRows:p.value,rowsPerPage:e.provider.pageSize,onClick:O,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,u.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),RJ={__name:`BDContentLibraryModal`,props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:[`on-insert`,`cancel`,`show-attachment`,`shown`,`provider-changed`],setup(e,{emit:t}){let{closeModal:n}=bK(`content-library-modal`),r=e,i=t,a=(0,u.ref)(r.modelValue),o=(0,u.computed)(()=>r.modelValue?.provider?.img??null),s=(0,u.computed)(()=>r.modelValue?.provider?.label??``);(0,u.watch)(()=>r.modelValue,e=>{a.value=e},{immediate:!0,deep:!0});let c=e=>{n(),i(`on-insert`,e)},l=()=>{i(`cancel`)},d=e=>{i(`show-attachment`,e)},f=()=>{i(`shown`)},p=e=>{i(`provider-changed`,e)};return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`content-library-modal`,"title-image":o.value,title:s.value,size:`xl`,visible:e.visible,"hide-footer":!0,onCancel:l,onShown:f},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(LJ,{modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,provider:e.provider,providerSelectOptions:e.providerSelectOptions,loading:e.loading,onOnInsert:c,onShowAttachment:d,onProviderChanged:p},null,8,[`modelValue`,`provider`,`providerSelectOptions`,`loading`])]),_:1},8,[`title-image`,`title`,`visible`]))}},zJ=Object.defineProperty,BJ=(e,t,n)=>t in e?zJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VJ=(e,t,n)=>(BJ(e,typeof t==`symbol`?t:t+``,n),n),HJ=class{constructor(){VJ(this,`seed`,0),VJ(this,`data`,new Map)}id(){return Date.now().toString(26)+ this.seed++}add(e,t=this.id()){return this.data.set(t,e),t}get(e){return this.data.get(e)}delete(e){this.delete(e)}},UJ=`Failed to copy value to clipboard. Unknown type.`,WJ={asString(e){if(e==null)return console.warn(`Clipboard input is empty`),``;if(typeof e!=`string`)try{return JSON.stringify(e)}catch(e){return console.warn(UJ,e),``}return e}},GJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,KJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=GJ,t}},qJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await qJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=KJ.createTextarea(e);if(document.body.appendChild(t),navigator.userAgent.match(/ipad|ipod|iphone/i)){t.contentEditable=`true`,t.readOnly=!0;let e=document.createRange();e.selectNodeContents(t);let n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(e),t.setSelectionRange(0,999999))}else t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n},async copy(e){let t=typeof e==`function`?e():e,n=WJ.asString(t);if(qJ.writeClipboardExecCommand(n))return!0;await qJ.writeClipboard(n)}};new HJ;var{showSuccessToast:JJ}=iO(),YJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${Zq(Qq(e.Tekst))}`;qJ.copy(r).then(()=>JJ(n))},XJ=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${Zq(Qq(e.Tekst))}`).join(`
|
|
1883
1883
|
-----------------------
|
|
1884
|
-
`)}`;qJ.copy(r).then(()=>JJ(n))},ZJ=(e,t)=>{qJ.copy(e).then(()=>JJ(t))},QJ={class:`message-cloud-multi-select`},$J={class:`message-cloud-multi-select__body`},eY={class:`message-content`},tY={class:`message-cloud__header`},nY={class:`message-cloud__title`},rY={key:0},iY=[`innerHTML`],aY=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=Uu(),n=e,r=(0,u.ref)([]),i=(0,u.ref)(!0);(0,u.watchEffect)(()=>{r.value=n.modelValue}),(0,u.watch)(()=>i.value,e=>{r.value.forEach(t=>t.selected=e)});let a=(0,u.computed)(()=>t(`conversationToTextModal.systemMessage`)),o=e=>{let n=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?n+t(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},s=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,c=()=>{let e=t(`conversationToTextModal.prefix`),n=t(`conversationToTextModal.copySuccess`);return XJ(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(A,{variant:`primary`,onClick:c},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,u.createElementVNode)(`div`,QJ,[(0,u.createVNode)(fg,{class:`select-all-checkbox`,modelValue:i.value,"onUpdate:modelValue":l[0]||=e=>i.value=e},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,u.createElementVNode)(`div`,$J,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.value,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`message-cloud-selector`,key:t},[(0,u.createVNode)(fg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,eY,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,tY,[(0,u.createElementVNode)(`div`,nY,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,rY,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(a.value),1)])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(o(e)),1)]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e.Datum),1)])]),(0,u.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,iY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function oY(){let e=(0,u.ref)(0),t=(0,u.ref)(!0),n=(0,u.ref)(null),r=(0,u.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:t,imageHolderRef:n,pos:r,SetZoom:(0,u.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;let i=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);i&&(i.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),r.value.x=e.clientX,r.value.y=e.clientY,t.value=!0},OnMouseMove:e=>{if(t.value){let t=e.clientX-r.value.x,i=e.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-i,n.value.scrollLeft=r.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),n=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),n&&n.style&&(n.style.cursor=`grab`),t.value=!1}}}var sY=[`src`,`alt`],cY={key:0,class:`show-spinner`},lY={class:`spinner-border text-primary`,role:`status`},uY=[`textContent`],dY=[`href`],fY=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=bK(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=oY(),{t:l}=Uu(),d=(0,u.ref)(!0),f=(0,u.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,u.computed)(()=>l(`imageAttachmentModal.download`)),m=(0,u.computed)(()=>l(`imageAttachmentModal.loading`));t({Show:e=>{f.value=e,r.value=0,n()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`image-attachment-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:i,onMousedown:t[0]||=(...e)=>(0,u.unref)(o)&&(0,u.unref)(o)(...e),onMousemove:t[1]||=(...e)=>(0,u.unref)(s)&&(0,u.unref)(s)(...e),onMouseup:t[2]||=(...e)=>(0,u.unref)(c)&&(0,u.unref)(c)(...e)},[f.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,u.normalizeClass)([`image-preview-modal`,(0,u.unref)(a)]),onLoad:h,draggable:!1},null,42,sY)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,cY,[(0,u.createElementVNode)(`div`,lY,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,uY)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(A_,{modelValue:(0,u.unref)(r),"onUpdate:modelValue":t[3]||=e=>(0,u.isRef)(r)?r.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,u.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,u.createVNode)(A,{variant:`primary`,class:`download-image`,textContent:(0,u.toDisplayString)(p.value)},null,8,[`textContent`])],8,dY)]),_:1},8,[`class`,`title`]))}}),pY={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:t}){let{showModal:n}=bK(`attachment-upload-modal`),r=e,i=t,{t:a}=Uu(),o=(0,u.ref)([]),s=(0,u.computed)(()=>void 0),c=(0,u.computed)(()=>r.validation.category.state===!1?`is-invalid`:``);(0,u.computed)(()=>r.validation.ownerId.state===!1?`is-invalid`:``);let l=(0,u.computed)(()=>[...r.categoryOptions?r.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...o.value]);(0,u.computed)(()=>r.practitionerOptions?.find(e=>e.value===r.modelValue?.ownerId)??null);let d=(0,u.computed)(()=>r.modelValue.sharedWithDepartment||[]);function f(e){C({...r.modelValue,sharedWithDepartment:e})}(0,u.computed)(()=>{if(r.modelValue.tag)return l.value.filter(e=>e.text.toLowerCase().indexOf(r.modelValue.tag.toLowerCase())!==-1)}),(0,u.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,u.computed)(()=>{let e=r.modelValue.files||[],t=r.files||[];return[...e,...t]});(0,u.onMounted)(()=>{r.modelValue.category.length>0&&x()});function m(e){e&&!l.value.some(t=>t.value===e)&&(o.value=[{text:e,value:e}])}function h(e){i(`show-attachment`,e)}function g(e){i(`action`,{action:`content-library`,provider:e})}function _(e){v(r.files,e),v(r.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){n()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...r.modelValue,category:e})}function C(e){i(`update:modelValue`,e),i(`on-input`,e)}function w(){i(`change-department`,r.modelValue)}function T(e){i(`change-title`,e)}function E(e){i(`change-text`,e)}return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(Jh,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Pg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(bG,{modelValue:e.modelValue.text,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,u.unref)(a)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":s.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(m_,{pills:e.modelValue.pills},null,8,[`pills`])]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Oh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),n[0]||=(0,u.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(fO,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,u.renderSlot)(t.$slots,`extra-fields`),(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Lq),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:l.value,label:`text`,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,u.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,u.createVNode)(mg,{class:(0,u.normalizeClass)(c.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},mY={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Uu(),a=!1,o=(0,u.ref)(JSON.parse(JSON.stringify(n.modelValue))),s=(0,u.computed)(()=>n.modelValue.id?i(`messageTemplateFormModal.editTitle`):i(`messageTemplateFormModal.createTitle`)),c=(0,u.computed)(()=>n.modelValue.id?i(`modals.edit`):i(`modals.add`));(0,u.watch)(()=>n.modelValue,e=>{a||(o.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function l(e){r(`show-attachment`,e.obj)}function d(e){r(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(o.value));typeof e.category!=`string`&&(e.category=e.category.value??``),r(`on-submit`,e)}function p(){r(`close`)}function m(){r(`on-input`,o.value)}function h(){a=!0,r(`change-department`,o.value),(0,u.nextTick)(()=>{a=!1})}function g(e){o.value.title=e,m()}function _(e){o.value.text=e,m()}return(t,r)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`message-template-form-modal`,title:s.value,"submit-button-title":c.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(pY,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":n.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:l,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}},hY={key:0},gY={key:1},_Y={key:2},vY={key:3},yY={key:1},bY={key:2},xY=[`href`],SY=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=Uu(),r=e,i=t,a=()=>r.isMissingCameraPermission||r.isMissingMicrophonePermission||r.isMissingMobileActivation||r.isMissingVideoConferencingSupport,o=(0,u.computed)(()=>a()?n(`videoCallConfirmationModal.close`):n(`videoCallConfirmationModal.cancel`)),s=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noMobileActivationMessage`)}`),c=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noCompatibleDevices`)}`),l=(0,u.computed)(()=>n(`videoCallConfirmationModal.title`)),d=(0,u.computed)(()=>n(`videoCallConfirmationModal.ok`)),f=(0,u.computed)(()=>n(`videoCallConfirmationModal.generalWarning`)),p=(0,u.computed)(()=>n(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,u.computed)(()=>n(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,u.computed)(()=>n(`videoCallConfirmationModal.message`)),g=(0,u.computed)(()=>n(`videoCallConfirmationModal.participantMessage`)),_=(0,u.computed)(()=>n(`videoCallConfirmationModal.testMessage`)),v=(0,u.computed)(()=>n(`videoCallConfirmationModal.helpMessage`)),y=()=>i(`confirmed`);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`video-call-confirmation-modal`,title:l.value,"submit-button-title":d.value,"close-button-title":o.value,"hide-footer-submit-button":a(),onSubmit:y},{default:(0,u.withCtx)(()=>[a()?((0,u.openBlock)(),(0,u.createBlock)(va,{key:0,variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(f.value),1),(0,u.createElementVNode)(`ul`,null,[r.isMissingCameraPermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,hY,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,gY,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,_Y,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,vY,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,yY,[(0,u.createTextVNode)((0,u.toDisplayString)(g.value)+` `,1),(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(r.participantName),1),t[0]||=(0,u.createTextVNode)(`?`,-1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,bY,(0,u.toDisplayString)(h.value),1)),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:r.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(_.value),9,xY),(0,u.createElementVNode)(`span`,null,`\xA0`+(0,u.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),CY=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),wY={class:`template change-password-template`},TY={class:`template-title`},EY={key:0},DY={key:1},OY={class:`bd-form-field`},kY={class:`bd-form-field`},AY={class:`bd-form-field`},jY={class:`bd-form-buttons`},MY=(0,u.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t}=Uu(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=iO(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=SK(null),{ValidationObjectIsValid:l}=CY(),d=e,f=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),p=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),m=()=>{if(!h())return;let e=d.submitPassword(f.value);e&&e.then(()=>{i(d.successText),g()}).catch(e=>{n(d.failureText),s(e)})},h=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))p.value.passwordNew.state=!1,p.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;p.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,p.value.passwordNew.errorLabel=t,p.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,p.value.passwordRepeat.errorLabel=t}return p.value.password.state=f.value.password===``?!1:null,p.value.password.errorLabel=p.value.password.state?``:d.requiredText,l(p.value)},g=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,p.value.password.state=null,p.value.passwordNew.state=null,p.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,wY,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,TY,(0,u.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(WK,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Fa,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(UK,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,u.unref)(a)||(0,u.unref)(o)?((0,u.openBlock)(),(0,u.createBlock)(WK,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,EY,[(0,u.createElementVNode)(`ul`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(a),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t},[(0,u.createVNode)(Rn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,DY,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(m,[`prevent`]),onReset:(0,u.withModifiers)(g,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,OY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(p).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,kY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(p).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,AY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(p).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,jY,[(0,u.createVNode)(A,{type:`submit`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,u.createVNode)(A,{type:`reset`,variant:`link`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),NY={class:`video-call-template`},PY={key:0,class:`card`},FY={key:0,class:`permissions-denied__audio`},IY={class:`permissions-denied__audio-disabled`},LY={key:1,class:`permissions-denied__video`},RY={class:`permissions-denied__video-disabled`},zY={key:1,class:`card`},BY={class:`incoming__settings`},VY={class:`side`},HY={class:`outgoing`},UY={class:`card`},WY={key:0,class:`outgoing__video`},GY={class:`outgoing__available-cameras-count text-center`},KY={key:3,class:`permissions-denied__video`},qY={class:`permissions-denied__video-disabled`},JY={class:`settings`},YY={class:`settings__status`},XY={class:`settings__status-text`},ZY={key:0,class:`settings__status-detail`},QY={class:`settings__help`},$Y=[`href`],eX={href:`https://www.beterdichtbij.nl/service-contact/`,target:`_blank`,rel:`noopener noreferrer`},tX=2e3,nX={__name:`BDVideoCallTemplate`,props:{participant:{type:Object,default:null},participantRole:{type:String,default:`deelnemer`},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:t,emit:n}){let r=Object.freeze({Initializing:`initializing`,Dialing:`dialing`,Ringing:`ringing`,Answered:`answered`,Connected:`connected`,Declined:`declined`,HangedUp:`hangedUp`,DevicePermissionDenied:`devicePermissionDenied`}),i=null,a=null,o=null,s=null,c=null,l=null,d=null,f=null,p=e,m=n,{tm:h}=Uu(),g=(0,u.ref)([]),_=navigator.userAgent.indexOf(`Firefox`)>-1,v=(0,u.computed)(()=>h(`videoCallTemplate`)),y=(0,u.ref)(!1),b=(0,u.ref)(!1),x=(0,u.ref)(!1),S=(0,u.ref)(2),C=(0,u.ref)({}),w=(0,u.ref)(r.Initializing),T=(0,u.ref)(null),E=(0,u.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),D=(0,u.ref)(null),O=(0,u.ref)(null),ee=(0,u.ref)(null),te=(0,u.ref)(null),ne=(0,u.ref)(null),re=(0,u.ref)(null),ie=(0,u.ref)(!1),ae=(0,u.ref)(0),oe=(0,u.ref)(0),se=(0,u.ref)(null),ce=(0,u.ref)(!1),le=(0,u.ref)(``),ue=(0,u.ref)(``),de=(0,u.ref)(null),fe=(0,u.ref)(null),pe=null,me=null,he=null,ge=(0,u.computed)(()=>{switch(ae.value){case 0:return Ee.value.hasNoAvailableCamera;case 1:return Ee.value.hasOneAvailableCamera;default:return Ee.value.hasMultipleAvailableCameras}}),_e=(0,u.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!y.value}),ve=(0,u.computed)(()=>{let e=navigator.userAgent,t=e.indexOf(`Android`)!==-1,n=/Mobi/.test(e),r=/iPad|iPhone|iPod/.test(e)&&!window.MSStream;return!(t&&n||r)}),ye=(0,u.computed)(()=>!C.value?.video&&Ne.value),be=(0,u.computed)(()=>!C.value?.audio&&Ne.value),xe=(0,u.computed)(()=>w.value===r.Declined?`incoming--declined`:`incoming--loading`);(0,u.computed)(()=>{switch(S.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),(0,u.computed)(()=>{switch(S.value){case 0:return v.value.signalStrength.weak;case 1:return v.value.signalStrength.steady;case 2:return v.value.signalStrength.strong;default:return null}});let Se=(0,u.computed)(()=>v.value.videoCallTemplate||v.value),Ce=(0,u.computed)(()=>Se.value.actions||Se.value),we=(0,u.computed)(()=>Se.value.help||Se.value),Te=(0,u.computed)(()=>Se.value.permissions||Se.value),Ee=(0,u.computed)(()=>Se.value.cameraAvailability||Se.value),De=(0,u.computed)(()=>y.value?Ce.value.stopSharingScreen:Ce.value.shareScreen),Oe=(0,u.computed)(()=>we.value.placeholderSettingsHelpTitle),ke=(0,u.computed)(()=>we.value.placeholderSettingsHelpMessage),k=(0,u.computed)(()=>w.value===r.Declined),Ae=(0,u.computed)(()=>w.value===r.HangedUp),je=(0,u.computed)(()=>w.value===r.Connected),Me=(0,u.computed)(()=>!je.value),Ne=(0,u.computed)(()=>w.value===r.DevicePermissionDenied),Pe=(0,u.computed)(()=>Se.value.statusTextMessage||Se.value),Fe=(0,u.computed)(()=>Se.value.statusDetailMessage||Se.value),Ie=(0,u.computed)(()=>p.participantRole);function Le(e){if(typeof e!=`string`)return e;let t=e.replaceAll(`{participantRole}`,Ie.value);return t&&t.charAt(0).toLocaleUpperCase()+t.slice(1)}let Re=(0,u.computed)(()=>{switch(w.value){case r.Initializing:return Le(Pe.value.initializing);case r.Dialing:return Le(Pe.value.dialing);case r.Ringing:return Le(Pe.value.ringing);case r.Answered:return Le(Pe.value.answered);case r.Connected:return Le(Pe.value.connected);case r.Declined:return Le(Pe.value.videoCallDeclined);case r.HangedUp:return Le(Pe.value.videoCallHangedUp);case r.DevicePermissionDenied:return Le(Pe.value.devicePermissionDenied)}}),ze=(0,u.computed)(()=>le.value||Re.value),Be=(0,u.computed)(()=>ue.value),Ve=(0,u.computed)(()=>x.value?`.incoming__screenshare`:`.incoming__video`);(0,u.onMounted)(()=>{Tt(),Ue(),fe.value=window.setInterval($e,5e3)}),(0,u.onUnmounted)(()=>{se.value&&window.clearInterval(se.value),fe.value&&window.clearInterval(fe.value),dt(),He(),Ct()});function He(){pe&&=(window.clearTimeout(pe),null),me&&=(window.clearTimeout(me),null),he&&=(window.clearTimeout(he),null)}function Ue(){He(),w.value===r.Initializing?pe=window.setTimeout(()=>{w.value===r.Initializing&&(le.value=Le(Pe.value.callNotDelivered),ue.value=Le(Fe.value.callNotDeliveredDetail))},3e4):w.value===r.Dialing?me=window.setTimeout(()=>{w.value===r.Dialing&&(le.value=``,ue.value=Le(Fe.value.notAnsweredDetail))},1e4):w.value===r.Connected&&(he=window.setTimeout(()=>{w.value===r.Connected&&(ue.value=Le(Fe.value.noVideoHint))},5e3))}function We(e){[r.Declined,r.HangedUp,r.DevicePermissionDenied].includes(w.value)||(w.value=e,le.value=``,ue.value=``,Ue())}function Ge(){We(r.Declined)}function Ke(){We(r.Answered)}function qe(){w.value!==r.Connected&&We(r.Dialing)}function Je(){w.value!==r.DevicePermissionDenied&&!p.isCallee&&rt()}async function Ye(){We(r.HangedUp),C.value.video&&xt()}function Xe(e){We(r.HangedUp),ue.value=ut(e)}function Ze(){le.value=Le(Pe.value.signalHold),ue.value=Le(Fe.value.signalHoldDetail)}function Qe(){de.value=new Date}function $e(){if(!de.value||w.value===r.HangedUp)return;let e=new Date,t=new Date(de.value),n=Math.abs(e.getTime()-t.getTime()),i=Math.ceil(n/1e3);i>=40?(le.value=Pe.value.connectionIssues,ue.value=Fe.value.connectionIssuesStrong,S.value=0):i>20&&(le.value=Pe.value.connectionIssues,ue.value=Fe.value.connectionIssuesMedium,S.value=1)}async function et(e){await wt(),E.client=(0,u.markRaw)(new o);let t=new f(e);if(E.agent=(0,u.markRaw)(await E.client.createCallAgent(t)),E.deviceManager=await E.client.getDeviceManager(),C.value=await E.deviceManager.askDevicePermission({video:!0,audio:!0}),(await E.deviceManager.getCameras()).length||(C.value.video=!1),se.value=window.setInterval(xt,5e3),!C.value.audio||!C.value.video){We(r.DevicePermissionDenied);return}E.agent.on(`incomingCall`,tt),p.isCallee?m(`ready`):m(`start-call`)}async function tt(e){if(!ce.value)try{ce.value=!0,E.incomingCall=e.incomingCall,await it()}catch(e){console.log(`error occured during starting call`,e)}finally{ce.value=!1}}async function nt(){let e=await at();return e?{localVideoStreams:[e]}:void 0}async function rt(){try{We(r.Dialing);let e={videoOptions:await nt()},t=[{communicationUserId:p.participant.videoCallIdentityId}];E.call=E.agent.startCall(t,e),st(),ot()}catch(e){console.error(e)}}async function it(){let e=await nt();try{E.call=await E.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}st(),ot()}async function at(){let e=(await E.deviceManager.getCameras())[0];if(e)return new c(e);console.error(`No camera device found on the system`)}function ot(){E.call.on(`stateChanged`,lt),E.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(pt),e.removed.forEach(ft)}),E.call.remoteParticipants.forEach(ht),E.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(ht)}),E.call.on(`isScreenSharingOnChanged`,()=>{y.value=E.call.isScreenSharingOn})}function st(){T.value=E.call.feature(l.UserFacingDiagnostics),T.value.media.on(`diagnosticChanged`,ct),T.value.network.on(`diagnosticChanged`,ct)}function ct(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===d.Bad?(console.error(`${e.diagnostic} is bad quality`),S.value=0):e.value===d.Poor?(console.error(`${e.diagnostic} is poor quality`),S.value=1):S.value=2)}function lt(){switch(E.call.state){case`EarlyMedia`:We(r.Dialing);break;case`Ringing`:We(r.Ringing);break;case`Connected`:We(r.Connected);break;case`Disconnected`:let e=E.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),Ye();break}}function ut(e){let t=String(e);return Le(Se.value.endReasons?.[t]||``)}function dt(){console.log(`Disposing local screen share renderer`),re.value?.dispose(),re.value=null,te.value?.dispose(),te.value=null}async function ft(e){if(console.log(`Removing local screen share stream`,e),!e||e.mediaStreamType!==`ScreenSharing`)return;dt();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(),t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`,console.log(`local screen share removed`)}async function pt(e){if(console.log(`Displaying local screen share stream`,e),!e||e.mediaStreamType!==`ScreenSharing`)return;dt();let t=(0,u.markRaw)(new s(e));ne.value=e,te.value=t;try{re.value=await t.createView();let e=document.querySelector(`.outgoing__screenshare`);e.replaceChildren(re.value.target);let n=e.querySelector(`video`);n.style.objectFit=`contain`,e.style.display=`flex`;let r=document.querySelector(`.outgoing__video`);r.style.display=`none`,console.log(`local screen share displayed`)}catch(e){te.value===t?dt():t.dispose(),console.error(`Failed to render local screen share`,e)}}async function mt(e){if(console.log(`Displaying local video stream`,e),e&&e.source&&D.value&&D.value.source&&D.value.source.id==e.source.id)return!0;try{O.value=new s(e);let t=await O.value.createView(),n=document.querySelector(`.outgoing__video`);n.replaceChildren(t.target),n.style.display=`flex`}catch{return!1}return D.value=e,console.log(`local video displayed`),!0}async function ht(e){e.videoStreams.forEach(gt),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(gt)})}async function gt(e){if(e.mediaStreamType===`Video`&&(await _t(e),e.on(`isAvailableChanged`,async()=>await _t(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,yt),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__screenshare`);vt(!0),x.value=!0,St(`.incoming__screenshare`),n.replaceChildren(t.target)}}async function _t(e){if(!e.isAvailable)return;ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__video`);n.hidden=!1,n.replaceChildren(t.target),St(`.incoming__video`),vt(!1)}function vt(e){let t=document.querySelector(`.incoming__video`),n=document.querySelector(`.incoming__screenshare`);t.style.display=e?`none`:`block`,n.style.display=e?`flex`:`none`}function yt(){x.value=!1,vt(!1)}async function bt(){xt(!0)}async function xt(e=!1){let t=E.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let n=(await E.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);ae.value=n.length;for(let t=0;t<ae.value;t++){(e||t!=0)&&(oe.value=(oe.value+1)%ae.value);let r=n[oe.value];if(await mt(new c(r)))break}}function St(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function Ct(){E.call&&E.call.state!==`Disconnected`&&(await E.call.hangUp({forEveryone:!0}),await E.agent.dispose()),m(`end-call`,g.value)}async function wt(){return i||=Promise.all([import(`@azure/communication-calling`),import(`@azure/communication-common`)]).then(([e,t])=>{o=e.CallClient,s=e.VideoStreamRenderer,c=e.LocalVideoStream,l=e.Features,d=e.DiagnosticQuality,f=t.AzureCommunicationTokenCredential}),i}async function Tt(){a||=Promise.resolve().then(()=>require("./browser-J9v82mb3.cjs"));let{AzureLogger:e,setLogLevel:t}=await a;e.log=(...e)=>console.log(...e),t(`info`),e.log=(...e)=>{let t=[...e];g.value=g.value.splice(1-tX).concat(t)}}function Et(){document.querySelector(Ve.value).querySelector(`video`).requestFullscreen()}function Dt(){let e=document.querySelector(Ve.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function Ot(){let e=E.call;if(!(!e||ie.value)){ie.value=!0;try{e.isScreenSharingOn?await e.stopScreenSharing():(console.log({isScreenSharingOn:e.isScreenSharingOn,localVideoStreams:e.localVideoStreams.map(e=>e.mediaStreamType)}),await e.startScreenSharing())}catch(t){y.value=e.isScreenSharingOn,console.error(`Failed to change screen sharing state`,t)}finally{ie.value=!1}}}return t({CallDeclined:Ge,CallAnswered:Ke,CallForDataReceived:qe,CallClosedWithStatusCode:Xe,CallHeartbeatReceived:Qe,CallSignalHoldDetected:Ze,CallStartVideoCall:Je,CallHangUp:Ye,InitializeAcsConnection:et}),(e,t)=>{let n=(0,u.resolveComponent)(`BDLoader`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,NY,[(0,u.createVNode)(UK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(jG,{contactInfo:p.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{sm:`12`,lg:k.value?`12`:`8`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`incoming`,xe.value])},[Me.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,PY,[(0,u.createVNode)(n,{size:`lg`,message:Re.value,stopAnimation:k.value||Ae.value||Ne.value},null,8,[`message`,`stopAnimation`]),be.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,FY,[(0,u.createElementVNode)(`div`,IY,[(0,u.createVNode)(zr,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForAudio),1)])):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,LY,[(0,u.createElementVNode)(`div`,RY,[(0,u.createVNode)(sa,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0),k.value||Ae.value||Ne.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:2,variant:`primary`,class:`text-center`,onClick:Ct},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Ce.value.closeWindow),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,zY,[t[0]||=(0,u.createElementVNode)(`div`,{class:`incoming__video`},null,-1),t[1]||=(0,u.createElementVNode)(`div`,{class:`incoming__screenshare`},null,-1),(0,u.createElementVNode)(`div`,BY,[(0,u.createVNode)(A,{variant:`primary`,class:`text-center`,onClick:Et},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.fullScreen),1)]),_:1}),!_&&!b.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`primary`,class:`text-center`,onClick:Dt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.miniPlayer),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),k.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(HK,{key:0,sm:`12`,lg:`4`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,VY,[(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`div`,HY,[(0,u.createElementVNode)(`div`,UY,[Ne.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,WY)),t[2]||=(0,u.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),ve.value&&!Ne.value&&!b.value&&!Me.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:1,variant:y.value?`danger`:`primary`,class:`text-center`,onClick:Ot,disabled:ie.value},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(De.value),1)]),_:1},8,[`variant`,`disabled`])):(0,u.createCommentVNode)(``,!0),_e.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:2},[(0,u.createVNode)(A,{class:`text-center`,onClick:bt},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Ce.value.switchCamera),1)]),_:1}),(0,u.createElementVNode)(`p`,GY,(0,u.toDisplayString)(ge.value),1)],64)):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,KY,[(0,u.createElementVNode)(`div`,qY,[(0,u.createVNode)(sa,{class:`icon-xxl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0)])]),!Ae.value&&!Ne.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`danger`,class:`end-call-button text-center w-100`,onClick:Ct},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zt),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.endCall),1)]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,JY,[(0,u.createElementVNode)(`div`,YY,[(0,u.createElementVNode)(`p`,XY,(0,u.toDisplayString)(ze.value),1),Be.value?((0,u.openBlock)(),(0,u.createElementBlock)(`small`,ZY,(0,u.toDisplayString)(Be.value),1)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,QY,[(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(Oe.value),1)]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(ke.value),1),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:p.videoTestUrl,target:`_blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(Ce.value.testCall),9,$Y),t[3]||=(0,u.createTextVNode)(` • `,-1),(0,u.createElementVNode)(`a`,eX,(0,u.toDisplayString)(Ce.value.serviceDesk),1)])])])])])]),_:1}))]),_:1})]),_:1})])}}},rX={class:`template not-found-template`},iX={class:`center-screen`},aX={class:`container-warning`},oX=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=Uu(),r=e,i=t,a=(0,u.computed)(()=>r.buttonText||n(`notFoundTemplate.buttonDefault`)),o=(0,u.computed)(()=>n(`notFoundTemplate.title`)),s=(0,u.computed)(()=>n(`notFoundTemplate.description`)),c=()=>i(`navigate`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,rX,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,iX,[(0,u.createElementVNode)(`div`,aX,[(0,u.createVNode)(Xi),(0,u.createElementVNode)(`h1`,null,(0,u.toDisplayString)(o.value),1),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(s.value),1),(0,u.createVNode)(A,{onClick:c,variant:`primary`,type:`button`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(a.value),1)]),_:1})])])]),_:1})]))}}),sX=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},cX=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,lX=e=>e.startsWith(`http://`)||e.startsWith(`https://`),uX={install:e=>{e.component(`BDAlert`,va),e.component(`BDArticle`,xa),e.component(`BDAssignConversationModal`,qK),e.component(`BDAttachmentPreviewList`,F_),e.component(`BDAttachmentUploadModal`,JK),e.component(`BDBadge`,wa),e.component(`BDButton`,A),e.component(`BDCard`,Fa),e.component(`BDChangePasswordTemplate`,MY),e.component(`BDChatCloud`,rv),e.component(`BDCol`,HK),e.component(`BDCollapsableCard`,za),e.component(`BDConfirmationModal`,YK),e.component(`BDContainer`,UK),e.component(`BDContentLibraryModal`,RJ),e.component(`BDContentLibrarySplitButton`,Oh),e.component(`BDContentLibraryTemplate`,LJ),e.component(`BDConversationToTextModal`,aY),e.component(`BDDate`,qh),e.component(`BDDropdown`,rK),e.component(`BDDropdownItem`,iv),e.component(`BDFileUpload`,cO),e.component(`BDForm`,Jh),e.component(`BDFormCheckbox`,fg),e.component(`BDFormInput`,Pg),e.component(`BDFormInvalidFeedback`,mg),e.component(`BDFormMultipleCheckbox`,fO),e.component(`BDFormSelect`,zg),e.component(`BDHeader`,uK),e.component(`BDImageAttachmentModal`,fY),e.component(`BDImageAttachmentPreviewList`,W_),e.component(`BDInputGroup`,Hg),e.component(`BDLink`,Ea),e.component(`BDLoader`,Jg),e.component(`BDLogo`,Zg),e.component(`BDMarkdownEditor`,bG),e.component(`BDMessageTemplateFormModal`,mY),e.component(`BDMobileMenu`,DG),e.component(`BDModal`,yK),e.component(`BDNotFoundTemplate`,oX),e.component(`BDPagination`,i_),e.component(`BDPhoneNumberEditModal`,DK),e.component(`BDPill`,d_),e.component(`BDPillContainer`,m_),e.component(`BDPractitionerHeader`,VK),e.component(`BDProfileImage`,__),e.component(`BDRow`,WK),e.component(`BDSessionTimeOutModal`,KK),e.component(`BDSmallConversationCard`,jG),e.component(`BDTable`,BG),e.component(`BDToast`,S_),e.component(`BDUser`,GG),e.component(`BDUserInformation`,D_),e.component(`BDVideoCallConfirmationModal`,SY),e.component(`BDVideoCallTemplate`,nX),e.component(`BDVideoCallToast`,nK),e.component(`BDZoomslider`,A_),e.component(`IconAcademy`,h),e.component(`IconArrowDown`,y),e.component(`IconArrowUp`,C),e.component(`IconAttachment`,D),e.component(`IconBold`,ne),e.component(`IconBulletList`,oe),e.component(`IconCalendar`,ue),e.component(`IconCall`,me),e.component(`IconCallReject`,ve),e.component(`IconCardView`,Se),e.component(`IconCaretDown`,Ee),e.component(`IconCaretLeft`,k),e.component(`IconCaretRight`,Ne),e.component(`IconCheck`,Le),e.component(`IconClipboard`,Ve),e.component(`IconClose`,Ge),e.component(`IconComment`,Ye),e.component(`IconCommentActive`,$e),e.component(`IconCommentStatic`,rt),e.component(`IconCommonFileEmpty`,st),e.component(`IconCommonFileWarning`,dt),e.component(`IconContactPerson`,ht),e.component(`IconCopy`,yt),e.component(`IconDelete`,Ct),e.component(`IconDoubleCheck`,Dt),e.component(`IconDownloadImage`,jt),e.component(`IconEdit`,Ft),e.component(`IconEndCall`,zt),e.component(`IconError`,Ut),e.component(`IconExternal`,qt),e.component(`IconEyeShow`,Zt),e.component(`IconEyeSlash`,tn),e.component(`IconFile`,on),e.component(`IconFileAdded`,un),e.component(`IconForward`,mn),e.component(`IconHix`,vn),e.component(`IconHyperlink`,Sn),e.component(`IconImageFileLandscape`,En),e.component(`IconImageFileWarning`,An),e.component(`IconInbox`,Pn),e.component(`IconInfo`,Rn),e.component(`IconInformationCircle`,Hn),e.component(`IconItalic`,Kn),e.component(`IconListView`,Xn),e.component(`IconLock`,er),e.component(`IconLusciiEscalated`,ir),e.component(`IconLusciiLogo`,cr),e.component(`IconLusciiOpen`,fr),e.component(`IconLusciiPriorityHigh`,gr),e.component(`IconLusciiPriorityLow`,br),e.component(`IconLusciiPriorityMedium`,wr),e.component(`IconMenu`,Or),e.component(`IconMessage`,Mr),e.component(`IconMessageForward`,Ir),e.component(`IconMicrophoneSlash`,zr),e.component(`IconMicrosoftTeams`,Ur),e.component(`IconMin`,qr),e.component(`IconOrderedList`,Zr),e.component(`IconPlus`,ti),e.component(`IconRefresh`,ai),e.component(`IconRemove`,li),e.component(`IconSananetLogo`,mi),e.component(`IconService`,vi),e.component(`IconShareScreen`,Si),e.component(`IconSingleNeutral`,Ei),e.component(`IconSort`,Ai),e.component(`IconSortAsc`,Pi),e.component(`IconSortDesc`,Ri),e.component(`IconSortNone`,Hi),e.component(`IconTriangleDown`,Ki),e.component(`IconTriangleExclamation`,Xi),e.component(`IconUnderline`,ea),e.component(`IconVideoDisabled`,sa),e.component(`IconVideocall`,ia),e.component(`IconWarning`,da),e.component(`IconZorgkaart`,ha),e.directive(`bd-tooltip`,_G)}};exports.BDAlert=va,exports.BDArticle=xa,exports.BDAssignConversationModal=qK,exports.BDAttachmentPreviewList=F_,exports.BDAttachmentUploadModal=JK,exports.BDBadge=wa,exports.BDButton=A,exports.BDCard=Fa,exports.BDChangePasswordTemplate=MY,exports.BDChatCloud=rv,exports.BDCol=HK,exports.BDCollapsableCard=za,exports.BDConfirmationModal=YK,exports.BDContainer=UK,exports.BDContentLibraryModal=RJ,exports.BDContentLibrarySplitButton=Oh,exports.BDContentLibraryTemplate=LJ,exports.BDConversationToTextModal=aY,exports.BDDate=qh,exports.BDDropdown=rK,exports.BDDropdownItem=iv,exports.BDFileUpload=cO,exports.BDForm=Jh,exports.BDFormCheckbox=fg,exports.BDFormInput=Pg,exports.BDFormInvalidFeedback=mg,exports.BDFormMultipleCheckbox=fO,exports.BDFormSelect=zg,exports.BDHeader=uK,exports.BDImageAttachmentModal=fY,exports.BDImageAttachmentPreviewList=W_,exports.BDInputGroup=Hg,exports.BDLink=Ea,exports.BDLoader=Jg,exports.BDLogo=Zg,exports.BDMarkdownEditor=bG,exports.BDMessageTemplateFormModal=mY,exports.BDMobileMenu=DG,exports.BDModal=yK,exports.BDNotFoundTemplate=oX,exports.BDPagination=i_,exports.BDPhoneNumberEditModal=DK,exports.BDPill=d_,exports.BDPillContainer=m_,exports.BDPractitionerHeader=VK,exports.BDProfileImage=__,exports.BDRow=WK,exports.BDSessionTimeOutModal=KK,exports.BDSmallConversationCard=jG,exports.BDTable=BG,exports.BDToast=S_,exports.BDUser=GG,exports.BDUserInformation=D_,exports.BDVideoCallConfirmationModal=SY,exports.BDVideoCallTemplate=nX,exports.BDVideoCallToast=nK,exports.BDZoomslider=A_,exports.CopyChatMessageToClipboard=YJ,exports.CopyChatMessagesToClipboard=XJ,exports.CopyHl7MessagesToClipboard=ZJ,exports.CreateHyperlinkParagraph=cX,exports.CreateThumbnailUri=J_,exports.IconAcademy=h,exports.IconArrowDown=y,exports.IconArrowUp=C,exports.IconAttachment=D,exports.IconBold=ne,exports.IconBulletList=oe,exports.IconCalendar=ue,exports.IconCall=me,exports.IconCallReject=ve,exports.IconCardView=Se,exports.IconCaretDown=Ee,exports.IconCaretLeft=k,exports.IconCaretRight=Ne,exports.IconCheck=Le,exports.IconClipboard=Ve,exports.IconClose=Ge,exports.IconComment=Ye,exports.IconCommentActive=$e,exports.IconCommentStatic=rt,exports.IconCommonFileEmpty=st,exports.IconCommonFileWarning=dt,exports.IconContactPerson=ht,exports.IconCopy=yt,exports.IconDelete=Ct,exports.IconDoubleCheck=Dt,exports.IconDownloadImage=jt,exports.IconEdit=Ft,exports.IconEndCall=zt,exports.IconError=Ut,exports.IconExternal=qt,exports.IconEyeShow=Zt,exports.IconEyeSlash=tn,exports.IconFile=on,exports.IconFileAdded=un,exports.IconForward=mn,exports.IconHix=vn,exports.IconHyperlink=Sn,exports.IconImageFileLandscape=En,exports.IconImageFileWarning=An,exports.IconInbox=Pn,exports.IconInfo=Rn,exports.IconInformationCircle=Hn,exports.IconItalic=Kn,exports.IconListView=Xn,exports.IconLock=er,exports.IconLusciiEscalated=ir,exports.IconLusciiLogo=cr,exports.IconLusciiOpen=fr,exports.IconLusciiPriorityHigh=gr,exports.IconLusciiPriorityLow=br,exports.IconLusciiPriorityMedium=wr,exports.IconMenu=Or,exports.IconMessage=Mr,exports.IconMessageForward=Ir,exports.IconMicrophoneSlash=zr,exports.IconMicrosoftTeams=Ur,exports.IconMin=qr,exports.IconOrderedList=Zr,exports.IconPlus=ti,exports.IconRefresh=ai,exports.IconRemove=li,exports.IconSananetLogo=mi,exports.IconService=vi,exports.IconShareScreen=Si,exports.IconSingleNeutral=Ei,exports.IconSort=Ai,exports.IconSortAsc=Pi,exports.IconSortDesc=Ri,exports.IconSortNone=Hi,exports.IconTriangleDown=Ki,exports.IconTriangleExclamation=Xi,exports.IconUnderline=ea,exports.IconVideoDisabled=sa,exports.IconVideocall=ia,exports.IconWarning=da,exports.IconZorgkaart=ha,exports.MapAttachmentsForApi=G_,exports.MapToAttachmentObjects=Z_,exports.TransformHyperlinks=sX,exports.ValidateUrl=lX,exports.default=uX,exports.getDisplayDateNumeric=Gh,exports.getDisplayDateTextual=Hh,exports.getDisplayDateTimeNumeric=Wh,exports.getDisplayDateTimeTextual=Uh,exports.useModal=bK,exports.usePopover=MK,exports.useServerErrors=SK,exports.useSessionTimeOut=GK,exports.useToaster=iO,exports.useValidation=CY,exports.useWindow=AK,exports.useZoom=oY,exports.vBdTooltip=_G;
|
|
1884
|
+
`)}`;qJ.copy(r).then(()=>JJ(n))},ZJ=(e,t)=>{qJ.copy(e).then(()=>JJ(t))},QJ={class:`message-cloud-multi-select`},$J={class:`message-cloud-multi-select__body`},eY={class:`message-content`},tY={class:`message-cloud__header`},nY={class:`message-cloud__title`},rY={key:0},iY=[`innerHTML`],aY=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=Uu(),n=e,r=(0,u.ref)([]),i=(0,u.ref)(!0);(0,u.watchEffect)(()=>{r.value=n.modelValue}),(0,u.watch)(()=>i.value,e=>{r.value.forEach(t=>t.selected=e)});let a=(0,u.computed)(()=>t(`conversationToTextModal.systemMessage`)),o=e=>{let n=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?n+t(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},s=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,c=()=>{let e=t(`conversationToTextModal.prefix`),n=t(`conversationToTextModal.copySuccess`);return XJ(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(A,{variant:`primary`,onClick:c},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,u.createElementVNode)(`div`,QJ,[(0,u.createVNode)(fg,{class:`select-all-checkbox`,modelValue:i.value,"onUpdate:modelValue":l[0]||=e=>i.value=e},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,u.createElementVNode)(`div`,$J,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.value,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`message-cloud-selector`,key:t},[(0,u.createVNode)(fg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,eY,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,tY,[(0,u.createElementVNode)(`div`,nY,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,rY,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(a.value),1)])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(o(e)),1)]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e.Datum),1)])]),(0,u.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,iY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function oY(){let e=(0,u.ref)(0),t=(0,u.ref)(!0),n=(0,u.ref)(null),r=(0,u.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:t,imageHolderRef:n,pos:r,SetZoom:(0,u.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;let i=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);i&&(i.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),r.value.x=e.clientX,r.value.y=e.clientY,t.value=!0},OnMouseMove:e=>{if(t.value){let t=e.clientX-r.value.x,i=e.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-i,n.value.scrollLeft=r.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),n=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),n&&n.style&&(n.style.cursor=`grab`),t.value=!1}}}var sY=[`src`,`alt`],cY={key:0,class:`show-spinner`},lY={class:`spinner-border text-primary`,role:`status`},uY=[`textContent`],dY=[`href`],fY=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=bK(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=oY(),{t:l}=Uu(),d=(0,u.ref)(!0),f=(0,u.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,u.computed)(()=>l(`imageAttachmentModal.download`)),m=(0,u.computed)(()=>l(`imageAttachmentModal.loading`));t({Show:e=>{f.value=e,r.value=0,n()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`image-attachment-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:i,onMousedown:t[0]||=(...e)=>(0,u.unref)(o)&&(0,u.unref)(o)(...e),onMousemove:t[1]||=(...e)=>(0,u.unref)(s)&&(0,u.unref)(s)(...e),onMouseup:t[2]||=(...e)=>(0,u.unref)(c)&&(0,u.unref)(c)(...e)},[f.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,u.normalizeClass)([`image-preview-modal`,(0,u.unref)(a)]),onLoad:h,draggable:!1},null,42,sY)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,cY,[(0,u.createElementVNode)(`div`,lY,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,uY)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(A_,{modelValue:(0,u.unref)(r),"onUpdate:modelValue":t[3]||=e=>(0,u.isRef)(r)?r.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,u.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,u.createVNode)(A,{variant:`primary`,class:`download-image`,textContent:(0,u.toDisplayString)(p.value)},null,8,[`textContent`])],8,dY)]),_:1},8,[`class`,`title`]))}}),pY={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:t}){let{showModal:n}=bK(`attachment-upload-modal`),r=e,i=t,{t:a}=Uu(),o=(0,u.ref)([]),s=(0,u.computed)(()=>void 0),c=(0,u.computed)(()=>r.validation.category.state===!1?`is-invalid`:``);(0,u.computed)(()=>r.validation.ownerId.state===!1?`is-invalid`:``);let l=(0,u.computed)(()=>[...r.categoryOptions?r.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...o.value]);(0,u.computed)(()=>r.practitionerOptions?.find(e=>e.value===r.modelValue?.ownerId)??null);let d=(0,u.computed)(()=>r.modelValue.sharedWithDepartment||[]);function f(e){C({...r.modelValue,sharedWithDepartment:e})}(0,u.computed)(()=>{if(r.modelValue.tag)return l.value.filter(e=>e.text.toLowerCase().indexOf(r.modelValue.tag.toLowerCase())!==-1)}),(0,u.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,u.computed)(()=>{let e=r.modelValue.files||[],t=r.files||[];return[...e,...t]});(0,u.onMounted)(()=>{r.modelValue.category.length>0&&x()});function m(e){e&&!l.value.some(t=>t.value===e)&&(o.value=[{text:e,value:e}])}function h(e){i(`show-attachment`,e)}function g(e){i(`action`,{action:`content-library`,provider:e})}function _(e){v(r.files,e),v(r.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){n()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...r.modelValue,category:e})}function C(e){i(`update:modelValue`,e),i(`on-input`,e)}function w(){i(`change-department`,r.modelValue)}function T(e){i(`change-title`,e)}function E(e){i(`change-text`,e)}return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(Jh,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Pg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(bG,{modelValue:e.modelValue.text,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,u.unref)(a)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":s.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(m_,{pills:e.modelValue.pills},null,8,[`pills`])]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Oh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),n[0]||=(0,u.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(fO,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,u.renderSlot)(t.$slots,`extra-fields`),(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Lq),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:l.value,label:`text`,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,u.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,u.createVNode)(mg,{class:(0,u.normalizeClass)(c.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},mY={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Uu(),a=!1,o=(0,u.ref)(JSON.parse(JSON.stringify(n.modelValue))),s=(0,u.computed)(()=>n.modelValue.id?i(`messageTemplateFormModal.editTitle`):i(`messageTemplateFormModal.createTitle`)),c=(0,u.computed)(()=>n.modelValue.id?i(`modals.edit`):i(`modals.add`));(0,u.watch)(()=>n.modelValue,e=>{a||(o.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function l(e){r(`show-attachment`,e.obj)}function d(e){r(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(o.value));typeof e.category!=`string`&&(e.category=e.category.value??``),r(`on-submit`,e)}function p(){r(`close`)}function m(){r(`on-input`,o.value)}function h(){a=!0,r(`change-department`,o.value),(0,u.nextTick)(()=>{a=!1})}function g(e){o.value.title=e,m()}function _(e){o.value.text=e,m()}return(t,r)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`message-template-form-modal`,title:s.value,"submit-button-title":c.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(pY,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":n.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:l,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}},hY={key:0},gY={key:1},_Y={key:2},vY={key:3},yY={key:1},bY={key:2},xY=[`href`],SY=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=Uu(),r=e,i=t,a=()=>r.isMissingCameraPermission||r.isMissingMicrophonePermission||r.isMissingMobileActivation||r.isMissingVideoConferencingSupport,o=(0,u.computed)(()=>a()?n(`videoCallConfirmationModal.close`):n(`videoCallConfirmationModal.cancel`)),s=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noMobileActivationMessage`)}`),c=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noCompatibleDevices`)}`),l=(0,u.computed)(()=>n(`videoCallConfirmationModal.title`)),d=(0,u.computed)(()=>n(`videoCallConfirmationModal.ok`)),f=(0,u.computed)(()=>n(`videoCallConfirmationModal.generalWarning`)),p=(0,u.computed)(()=>n(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,u.computed)(()=>n(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,u.computed)(()=>n(`videoCallConfirmationModal.message`)),g=(0,u.computed)(()=>n(`videoCallConfirmationModal.participantMessage`)),_=(0,u.computed)(()=>n(`videoCallConfirmationModal.testMessage`)),v=(0,u.computed)(()=>n(`videoCallConfirmationModal.helpMessage`)),y=()=>i(`confirmed`);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{id:`video-call-confirmation-modal`,title:l.value,"submit-button-title":d.value,"close-button-title":o.value,"hide-footer-submit-button":a(),onSubmit:y},{default:(0,u.withCtx)(()=>[a()?((0,u.openBlock)(),(0,u.createBlock)(va,{key:0,variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(f.value),1),(0,u.createElementVNode)(`ul`,null,[r.isMissingCameraPermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,hY,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,gY,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,_Y,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,vY,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,yY,[(0,u.createTextVNode)((0,u.toDisplayString)(g.value)+` `,1),(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(r.participantName),1),t[0]||=(0,u.createTextVNode)(`?`,-1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,bY,(0,u.toDisplayString)(h.value),1)),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:r.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(_.value),9,xY),(0,u.createElementVNode)(`span`,null,`\xA0`+(0,u.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),CY=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),wY={class:`template change-password-template`},TY={class:`template-title`},EY={key:0},DY={key:1},OY={class:`bd-form-field`},kY={class:`bd-form-field`},AY={class:`bd-form-field`},jY={class:`bd-form-buttons`},MY=(0,u.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t}=Uu(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=iO(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=SK(null),{ValidationObjectIsValid:l}=CY(),d=e,f=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),p=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),m=()=>{if(!h())return;let e=d.submitPassword(f.value);e&&e.then(()=>{i(d.successText),g()}).catch(e=>{n(d.failureText),s(e)})},h=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))p.value.passwordNew.state=!1,p.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;p.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,p.value.passwordNew.errorLabel=t,p.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,p.value.passwordRepeat.errorLabel=t}return p.value.password.state=f.value.password===``?!1:null,p.value.password.errorLabel=p.value.password.state?``:d.requiredText,l(p.value)},g=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,p.value.password.state=null,p.value.passwordNew.state=null,p.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,wY,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,TY,(0,u.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(WK,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Fa,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(UK,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,u.unref)(a)||(0,u.unref)(o)?((0,u.openBlock)(),(0,u.createBlock)(WK,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,EY,[(0,u.createElementVNode)(`ul`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(a),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t},[(0,u.createVNode)(Rn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,DY,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(m,[`prevent`]),onReset:(0,u.withModifiers)(g,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,OY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(p).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,kY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(p).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,AY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(p).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,jY,[(0,u.createVNode)(A,{type:`submit`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,u.createVNode)(A,{type:`reset`,variant:`link`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),NY=`data:image/svg+xml,%3csvg%20width='28'%20height='23'%20viewBox='0%200%2028%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.80461%200.386719L9.79679%206.61719V4.25391C9.79679%201.97656%2011.6445%200.128906%2013.9218%200.128906C16.1991%200.128906%2018.0468%201.97656%2018.0468%204.25391V13.0625L18.7773%2013.6641C19.164%2012.9336%2019.4218%2012.0742%2019.4218%2011.1289V9.41016C19.4218%208.85156%2019.8515%208.37891%2020.453%208.37891C21.0116%208.37891%2021.4843%208.85156%2021.4843%209.41016V11.1289C21.4843%2012.5469%2021.0976%2013.8359%2020.453%2014.9531L27.2421%2020.3242C27.7148%2020.668%2027.8007%2021.3125%2027.414%2021.7422C27.0702%2022.2148%2026.4257%2022.3008%2025.996%2021.9141L0.558513%201.97656C0.0858564%201.63281%20-8.10623e-05%200.988281%200.386638%200.558594C0.730388%200.0859375%201.37492%200%201.80461%200.386719ZM17.4023%2017.875C16.6288%2018.2617%2015.8124%2018.5195%2014.953%2018.6484V20.0664H17.0155C17.5741%2020.0664%2018.0468%2020.5391%2018.0468%2021.0977C18.0468%2021.6992%2017.5741%2022.1289%2017.0155%2022.1289H13.9218H10.828C10.2265%2022.1289%209.79679%2021.6992%209.79679%2021.0977C9.79679%2020.5391%2010.2265%2020.0664%2010.828%2020.0664H12.8905V18.6484C9.19523%2018.1328%206.35929%2014.9961%206.35929%2011.1289V9.41016C6.35929%209.32422%206.35929%209.23828%206.35929%209.15234L8.42179%2010.7852V11.1289C8.42179%2014.1797%2010.871%2016.6289%2013.9218%2016.6289C14.4804%2016.6289%2015.039%2016.543%2015.5546%2016.4141L17.4023%2017.875Z'%20fill='white'/%3e%3c/svg%3e`,PY=`data:image/svg+xml,%3csvg%20width='16'%20height='22'%20viewBox='0%200%2016%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.56242%200C9.83976%200%2011.6874%201.84766%2011.6874%204.125V11C11.6874%2013.2773%209.83976%2015.125%207.56242%2015.125C5.28508%2015.125%203.43742%2013.2773%203.43742%2011V4.125C3.43742%201.84766%205.28508%200%207.56242%200ZM2.06242%209.28125V11C2.06242%2014.0508%204.51164%2016.5%207.56242%2016.5C10.5702%2016.5%2013.0624%2014.0508%2013.0624%2011V9.28125C13.0624%208.72266%2013.4921%208.25%2014.0937%208.25C14.6523%208.25%2015.1249%208.72266%2015.1249%209.28125V11C15.1249%2014.8672%2012.246%2018.0039%208.59367%2018.5195V19.9375H10.6562C11.2148%2019.9375%2011.6874%2020.4102%2011.6874%2020.9688C11.6874%2021.5703%2011.2148%2022%2010.6562%2022H7.56242H4.46867C3.86711%2022%203.43742%2021.5703%203.43742%2020.9688C3.43742%2020.4102%203.86711%2019.9375%204.46867%2019.9375H6.53117V18.5195C2.83586%2018.0039%20-8.10623e-05%2014.8672%20-8.10623e-05%2011V9.28125C-8.10623e-05%208.72266%200.429606%208.25%201.03117%208.25C1.58976%208.25%202.06242%208.72266%202.06242%209.28125Z'%20fill='white'/%3e%3c/svg%3e`,FY=`data:image/svg+xml,%3csvg%20width='28'%20height='23'%20viewBox='0%200%2028%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.80461%200.386719L5.02726%202.87891H15.2968C16.8007%202.87891%2018.0468%204.125%2018.0468%205.62891V13.0625L19.4218%2014.1367V13.8789V8.37891V7.64844L20.0234%207.26172L24.1484%204.51172C24.578%204.21094%2025.0937%204.21094%2025.5663%204.42578C25.996%204.68359%2026.2968%205.15625%2026.2968%205.62891V16.6289C26.2968%2017.1445%2025.996%2017.6172%2025.5663%2017.875C25.0937%2018.0898%2024.578%2018.0898%2024.1484%2017.7891L23.5468%2017.4023L27.2421%2020.3242C27.7148%2020.668%2027.8007%2021.3125%2027.414%2021.7422C27.0702%2022.2148%2026.4257%2022.3008%2025.996%2021.9141L0.558513%201.97656C0.0858564%201.63281%20-8.10623e-05%200.988281%200.386638%200.558594C0.730388%200.0859375%201.37492%200%201.80461%200.386719ZM17.6601%2018.0469C17.1445%2018.8633%2016.2851%2019.3789%2015.2968%2019.3789H4.29679C2.74992%2019.3789%201.54679%2018.1758%201.54679%2016.6289V5.62891C1.54679%205.54297%201.54679%205.45703%201.54679%205.37109L17.6601%2018.0469Z'%20fill='white'/%3e%3c/svg%3e`,IY=`data:image/svg+xml,%3csvg%20width='25'%20height='17'%20viewBox='0%200%2025%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-8.10623e-05%202.75C-8.10623e-05%201.24609%201.20304%200%202.74992%200H13.7499C15.2538%200%2016.4999%201.24609%2016.4999%202.75V13.75C16.4999%2015.2969%2015.2538%2016.5%2013.7499%2016.5H2.74992C1.20304%2016.5%20-8.10623e-05%2015.2969%20-8.10623e-05%2013.75V2.75ZM24.0195%201.54688C24.4491%201.80469%2024.7499%202.27734%2024.7499%202.75V13.75C24.7499%2014.2656%2024.4491%2014.7383%2024.0195%2014.9961C23.5468%2015.2109%2023.0312%2015.2109%2022.6015%2014.9102L18.4765%2012.1602L17.8749%2011.7734V11V5.5V4.76953L18.4765%204.38281L22.6015%201.63281C23.0312%201.33203%2023.5468%201.33203%2024.0195%201.54688Z'%20fill='white'/%3e%3c/svg%3e`,LY={},RY={width:`26`,height:`26`,viewBox:`0 0 26 26`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`icon icon-blur`};function zY(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,RY,[...t[0]||=[(0,u.createStaticVNode)(`<g opacity="0.54"><circle cx="1" cy="1" r="1" fill="white"></circle><circle cx="7" cy="1" r="1" fill="white"></circle><circle cx="13" cy="1" r="1" fill="white"></circle><circle cx="19" cy="1" r="1" fill="white"></circle><circle cx="25" cy="1" r="1" fill="white"></circle><circle cx="1" cy="7" r="1" fill="white"></circle><circle cx="7" cy="7" r="1" fill="white"></circle><circle cx="13" cy="7" r="1" fill="white"></circle><circle cx="19" cy="7" r="1" fill="white"></circle><circle cx="25" cy="7" r="1" fill="white"></circle><circle cx="1" cy="13" r="1" fill="white"></circle><circle cx="7" cy="13" r="1" fill="white"></circle><circle cx="13" cy="13" r="1" fill="white"></circle><circle cx="19" cy="13" r="1" fill="white"></circle><circle cx="25" cy="13" r="1" fill="white"></circle><circle cx="1" cy="19" r="1" fill="white"></circle><circle cx="7" cy="19" r="1" fill="white"></circle><circle cx="13" cy="19" r="1" fill="white"></circle><circle cx="19" cy="19" r="1" fill="white"></circle><circle cx="25" cy="19" r="1" fill="white"></circle><circle cx="1" cy="25" r="1" fill="white"></circle><circle cx="7" cy="25" r="1" fill="white"></circle><circle cx="13" cy="25" r="1" fill="white"></circle><circle cx="19" cy="25" r="1" fill="white"></circle><circle cx="25" cy="25" r="1" fill="white"></circle></g>`,1)]])}var BY=d(LY,[[`render`,zY]]),VY={},HY={width:`20`,height:`33`,viewBox:`0 0 20 33`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`icon icon-participant`};function UY(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,HY,[...t[0]||=[(0,u.createElementVNode)(`path`,{d:`M9.625 16.75C6.57422 16.75 4.125 14.3008 4.125 11.25C4.125 8.24219 6.57422 5.75 9.625 5.75C12.6328 5.75 15.125 8.24219 15.125 11.25C15.125 14.3008 12.6328 16.75 9.625 16.75ZM13.4492 18.125C16.6289 18.125 19.25 20.7461 19.25 23.9258V25.6875C19.25 26.8477 18.3047 27.75 17.1875 27.75H2.0625C0.902344 27.75 0 26.8477 0 25.6875V23.9258C0 20.7461 2.57812 18.125 5.75781 18.125H6.48828C7.43359 18.5977 8.50781 18.8125 9.625 18.8125C10.7422 18.8125 11.7734 18.5977 12.7188 18.125H13.4492Z`,fill:`white`},null,-1)]])}var WY=d(VY,[[`render`,UY]]),GY={class:`video-call-template`},KY={key:0,class:`card`},qY={key:0,class:`permissions-denied__audio`},JY={class:`permissions-denied__audio-disabled`},YY={key:1,class:`permissions-denied__video`},XY={class:`permissions-denied__video-disabled`},ZY={key:1,class:`card`},QY={class:`incoming__settings`},$Y={class:`side`},eX={class:`outgoing`},tX={class:`card`},nX={key:0,class:`outgoing__video`},rX={class:`outgoing__controls`},iX=[`alt`],aX=[`alt`],oX=[`alt`],sX=[`alt`],cX={class:`outgoing__available-cameras-count text-center`},lX={key:3,class:`permissions-denied__video`},uX={class:`permissions-denied__video-disabled`},dX={class:`settings`},fX={class:`settings__status`},pX={class:`settings__status-text`},mX={key:0,class:`settings__status-detail`},hX={class:`settings__help`},gX=[`href`],_X={href:`https://www.beterdichtbij.nl/service-contact/`,target:`_blank`,rel:`noopener noreferrer`},vX=2e3,yX={__name:`BDVideoCallTemplate`,props:{participant:{type:Object,default:null},participantRole:{type:String,default:`deelnemer`},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:t,emit:n}){let r=Object.freeze({Initializing:`initializing`,Dialing:`dialing`,Ringing:`ringing`,Answered:`answered`,Connected:`connected`,Declined:`declined`,HangedUp:`hangedUp`,DevicePermissionDenied:`devicePermissionDenied`}),i=null,a=null,o=null,s=null,c=null,l=null,d=null,f=null,p=e,m=n,{tm:h}=Uu(),g=(0,u.ref)([]),_=navigator.userAgent.indexOf(`Firefox`)>-1,v=(0,u.computed)(()=>h(`videoCallTemplate`)),y=(0,u.ref)(!1),b=(0,u.ref)(!1),x=(0,u.ref)(!1),S=(0,u.ref)(2),C=(0,u.ref)({}),w=(0,u.ref)(r.Initializing),T=(0,u.ref)(null),E=(0,u.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),D=(0,u.ref)(null),O=(0,u.ref)(null),ee=(0,u.ref)(null),te=(0,u.ref)(null),ne=(0,u.ref)(0),re=(0,u.ref)(0),ie=(0,u.ref)(null),ae=(0,u.ref)(!1),oe=(0,u.ref)(``),se=(0,u.ref)(``),ce=(0,u.ref)(null),le=(0,u.ref)(null),ue=(0,u.ref)(!0),de=(0,u.ref)(!1),fe=(0,u.ref)(!1),pe=null,me=null,he=null,ge=(0,u.computed)(()=>{switch(ne.value){case 0:return Ee.value.hasNoAvailableCamera;case 1:return Ee.value.hasOneAvailableCamera;default:return Ee.value.hasMultipleAvailableCameras}}),_e=(0,u.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!y.value}),ve=(0,u.computed)(()=>{let e=navigator.userAgent,t=e.indexOf(`Android`)!==-1,n=/Mobi/.test(e),r=/iPad|iPhone|iPod/.test(e)&&!window.MSStream;return!(t&&n||r)}),ye=(0,u.computed)(()=>!C.value?.video&&Ne.value),be=(0,u.computed)(()=>!C.value?.audio&&Ne.value),xe=(0,u.computed)(()=>w.value===r.Declined?`incoming--declined`:`incoming--loading`);(0,u.computed)(()=>{switch(S.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),(0,u.computed)(()=>{switch(S.value){case 0:return v.value.signalStrength.weak;case 1:return v.value.signalStrength.steady;case 2:return v.value.signalStrength.strong;default:return null}});let Se=(0,u.computed)(()=>v.value.videoCallTemplate||v.value),Ce=(0,u.computed)(()=>Se.value.actions||Se.value),we=(0,u.computed)(()=>Se.value.help||Se.value),Te=(0,u.computed)(()=>Se.value.permissions||Se.value),Ee=(0,u.computed)(()=>Se.value.cameraAvailability||Se.value),De=(0,u.computed)(()=>y.value?Ce.value.stopSharingScreen:Ce.value.shareScreen),Oe=(0,u.computed)(()=>we.value.placeholderSettingsHelpTitle),ke=(0,u.computed)(()=>we.value.placeholderSettingsHelpMessage),k=(0,u.computed)(()=>w.value===r.Declined),Ae=(0,u.computed)(()=>w.value===r.HangedUp),je=(0,u.computed)(()=>w.value===r.Connected),Me=(0,u.computed)(()=>!je.value),Ne=(0,u.computed)(()=>w.value===r.DevicePermissionDenied),Pe=(0,u.computed)(()=>Se.value.statusTextMessage||Se.value),Fe=(0,u.computed)(()=>Se.value.statusDetailMessage||Se.value),Ie=(0,u.computed)(()=>p.participantRole),Le=(0,u.computed)(()=>fe.value?Ce.value.microphoneUnmute:Ce.value.microphoneMute),Re=(0,u.computed)(()=>de.value?Ce.value.cameraOn:Ce.value.cameraOff),ze=(0,u.computed)(()=>ue.value?Ce.value.backgroundBlur:Ce.value.backgroundUnblur);function Be(e){if(typeof e!=`string`)return e;let t=e.replaceAll(`{participantRole}`,Ie.value);return t&&t.charAt(0).toLocaleUpperCase()+t.slice(1)}let Ve=(0,u.computed)(()=>{switch(w.value){case r.Initializing:return Be(Pe.value.initializing);case r.Dialing:return Be(Pe.value.dialing);case r.Ringing:return Be(Pe.value.ringing);case r.Answered:return Be(Pe.value.answered);case r.Connected:return Be(Pe.value.connected);case r.Declined:return Be(Pe.value.videoCallDeclined);case r.HangedUp:return Be(Pe.value.videoCallHangedUp);case r.DevicePermissionDenied:return Be(Pe.value.devicePermissionDenied)}}),He=(0,u.computed)(()=>oe.value||Ve.value),Ue=(0,u.computed)(()=>se.value),We=(0,u.computed)(()=>x.value?`.incoming__screenshare`:`.incoming__video`);(0,u.onMounted)(()=>{At(),Ke(),le.value=window.setInterval(at,5e3)}),(0,u.onUnmounted)(()=>{ie.value&&window.clearInterval(ie.value),le.value&&window.clearInterval(le.value),Ge(),Ot()});function Ge(){pe&&=(window.clearTimeout(pe),null),me&&=(window.clearTimeout(me),null),he&&=(window.clearTimeout(he),null)}function Ke(){Ge(),w.value===r.Initializing?pe=window.setTimeout(()=>{w.value===r.Initializing&&(oe.value=Be(Pe.value.callNotDelivered),se.value=Be(Fe.value.callNotDeliveredDetail))},3e4):w.value===r.Dialing?me=window.setTimeout(()=>{w.value===r.Dialing&&(oe.value=``,se.value=Be(Fe.value.notAnsweredDetail))},1e4):w.value===r.Connected&&(he=window.setTimeout(()=>{w.value===r.Connected&&(se.value=Be(Fe.value.noVideoHint))},5e3))}function qe(e){[r.Declined,r.HangedUp,r.DevicePermissionDenied].includes(w.value)||(w.value=e,oe.value=``,se.value=``,Ke())}function Je(){fe.value=!fe.value,console.log(`Microphone toggled`)}function Ye(){de.value=!de.value,console.log(`Camera toggled`)}function Xe(){ue.value=!ue.value,console.log(`Background blur toggled`)}function Ze(){qe(r.Declined)}function Qe(){qe(r.Answered)}function $e(){w.value!==r.Connected&&qe(r.Dialing)}function et(){w.value!==r.DevicePermissionDenied&&!p.isCallee&<()}async function tt(){qe(r.HangedUp),C.value.video&&Et()}function nt(e){qe(r.HangedUp),se.value=gt(e)}function rt(){oe.value=Be(Pe.value.signalHold),se.value=Be(Fe.value.signalHoldDetail)}function it(){ce.value=new Date}function at(){if(!ce.value||w.value===r.HangedUp)return;let e=new Date,t=new Date(ce.value),n=Math.abs(e.getTime()-t.getTime()),i=Math.ceil(n/1e3);i>=40?(oe.value=Pe.value.connectionIssues,se.value=Fe.value.connectionIssuesStrong,S.value=0):i>20&&(oe.value=Pe.value.connectionIssues,se.value=Fe.value.connectionIssuesMedium,S.value=1)}async function ot(e){await kt(),E.client=(0,u.markRaw)(new o);let t=new f(e);if(E.agent=(0,u.markRaw)(await E.client.createCallAgent(t)),E.deviceManager=await E.client.getDeviceManager(),C.value=await E.deviceManager.askDevicePermission({video:!0,audio:!0}),(await E.deviceManager.getCameras()).length||(C.value.video=!1),ie.value=window.setInterval(Et,5e3),!C.value.audio||!C.value.video){qe(r.DevicePermissionDenied);return}E.agent.on(`incomingCall`,st),p.isCallee?m(`ready`):m(`start-call`)}async function st(e){if(!ae.value)try{ae.value=!0,E.incomingCall=e.incomingCall,await ut()}catch(e){console.log(`error occured during starting call`,e)}finally{ae.value=!1}}async function ct(){let e=await dt();return e?{localVideoStreams:[e]}:void 0}async function lt(){try{qe(r.Dialing);let e={videoOptions:await ct()},t=[{communicationUserId:p.participant.videoCallIdentityId}];E.call=E.agent.startCall(t,e),pt(),ft()}catch(e){console.error(e)}}async function ut(){let e=await ct();try{E.call=await E.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}pt(),ft()}async function dt(){let e=(await E.deviceManager.getCameras())[0];if(e)return new c(e);console.error(`No camera device found on the system`)}function ft(){E.call.on(`stateChanged`,ht),E.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(vt),e.removed.forEach(_t)}),E.call.remoteParticipants.forEach(bt),E.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(bt)}),E.call.on(`isScreenSharingOnChanged`,()=>{y.value=E.call.isScreenSharingOn})}function pt(){T.value=E.call.feature(l.UserFacingDiagnostics),T.value.media.on(`diagnosticChanged`,mt),T.value.network.on(`diagnosticChanged`,mt)}function mt(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===d.Bad?(console.error(`${e.diagnostic} is bad quality`),S.value=0):e.value===d.Poor?(console.error(`${e.diagnostic} is poor quality`),S.value=1):S.value=2)}function ht(){switch(E.call.state){case`EarlyMedia`:qe(r.Dialing);break;case`Ringing`:qe(r.Ringing);break;case`Connected`:qe(r.Connected);break;case`Disconnected`:let e=E.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),tt();break}}function gt(e){let t=String(e);return Be(Se.value.endReasons?.[t]||``)}async function _t(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!te.value)return;te.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function vt(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;te.value=await new s(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(te.value.target),t.style.display=`flex`;let n=document.querySelector(`.outgoing__video`);n.style.display=`none`;let r=t.querySelector(`video`);r.style.objectFit=`contain`}async function yt(e){if(e&&e.source&&D.value&&D.value.source&&D.value.source.id==e.source.id)return!0;try{O.value=new s(e);let t=await O.value.createView(),n=document.querySelector(`.outgoing__video`);n.querySelector(`video`)&&(n.innerHTML=``),n.hidden=!1,n.replaceChildren(t.target)}catch{return!1}return D.value=e,!0}async function bt(e){e.videoStreams.forEach(xt),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(xt)})}async function xt(e){if(e.mediaStreamType===`Video`&&(await St(e),e.on(`isAvailableChanged`,async()=>await St(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,wt),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__screenshare`);Ct(!0),x.value=!0,Dt(`.incoming__screenshare`),n.replaceChildren(t.target)}}async function St(e){if(!e.isAvailable)return;ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__video`);n.hidden=!1,n.replaceChildren(t.target),Dt(`.incoming__video`),Ct(!1)}function Ct(e){let t=document.querySelector(`.incoming__video`),n=document.querySelector(`.incoming__screenshare`);t.style.display=e?`none`:`block`,n.style.display=e?`flex`:`none`}function wt(){x.value=!1,Ct(!1)}async function Tt(){Et(!0)}async function Et(e=!1){let t=E.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let n=(await E.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);ne.value=n.length;for(let t=0;t<ne.value;t++){(e||t!=0)&&(re.value=(re.value+1)%ne.value);let r=n[re.value];if(await yt(new c(r)))break}}function Dt(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function Ot(){E.call&&E.call.state!==`Disconnected`&&(await E.call.hangUp({forEveryone:!0}),await E.agent.dispose()),m(`end-call`,g.value)}async function kt(){return i||=Promise.all([import(`@azure/communication-calling`),import(`@azure/communication-common`)]).then(([e,t])=>{o=e.CallClient,s=e.VideoStreamRenderer,c=e.LocalVideoStream,l=e.Features,d=e.DiagnosticQuality,f=t.AzureCommunicationTokenCredential}),i}async function At(){a||=Promise.resolve().then(()=>require("./browser-J9v82mb3.cjs"));let{AzureLogger:e,setLogLevel:t}=await a;e.log=(...e)=>console.log(...e),t(`info`),e.log=(...e)=>{let t=[...e];g.value=g.value.splice(1-vX).concat(t)}}function jt(){document.querySelector(We.value).querySelector(`video`).requestFullscreen()}function Mt(){let e=document.querySelector(We.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function Nt(){E.call&&E.call.isScreenSharingOn?await E.call.stopScreenSharing():await E.call.startScreenSharing()}return t({CallDeclined:Ze,CallAnswered:Qe,CallForDataReceived:$e,CallClosedWithStatusCode:nt,CallHeartbeatReceived:it,CallSignalHoldDetected:rt,CallStartVideoCall:et,CallHangUp:tt,InitializeAcsConnection:ot}),(e,t)=>{let n=(0,u.resolveComponent)(`BDLoader`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,GY,[(0,u.createVNode)(UK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(jG,{contactInfo:p.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{sm:`12`,lg:k.value?`12`:`8`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`incoming`,xe.value])},[Me.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,KY,[(0,u.createVNode)(n,{size:`lg`,message:Ve.value,stopAnimation:k.value||Ae.value||Ne.value},null,8,[`message`,`stopAnimation`]),be.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,qY,[(0,u.createElementVNode)(`div`,JY,[(0,u.createVNode)(zr,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForAudio),1)])):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,YY,[(0,u.createElementVNode)(`div`,XY,[(0,u.createVNode)(sa,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0),k.value||Ae.value||Ne.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:2,variant:`primary`,class:`text-center`,onClick:Ot},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Ce.value.closeWindow),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,ZY,[t[0]||=(0,u.createElementVNode)(`div`,{class:`incoming__video`},null,-1),t[1]||=(0,u.createElementVNode)(`div`,{class:`incoming__screenshare`},null,-1),(0,u.createElementVNode)(`div`,QY,[(0,u.createVNode)(A,{variant:`primary`,class:`text-center`,onClick:jt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.fullScreen),1)]),_:1}),!_&&!b.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`primary`,class:`text-center`,onClick:Mt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.miniPlayer),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),k.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(HK,{key:0,sm:`12`,lg:`4`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,$Y,[(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`div`,eX,[(0,u.createElementVNode)(`div`,tX,[Ne.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,nX)),t[2]||=(0,u.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),(0,u.createElementVNode)(`div`,rX,[(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)({"btn-danger":fe.value}),onClick:Je},{default:(0,u.withCtx)(()=>[fe.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:NY,alt:Le.value},null,8,iX)):((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:PY,alt:Le.value},null,8,aX))]),_:1},8,[`class`])),[[(0,u.unref)(_G),Le.value]]),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)({"btn-danger":de.value}),onClick:Ye},{default:(0,u.withCtx)(()=>[de.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:FY,alt:Re.value},null,8,oX)):((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:IY,alt:Re.value},null,8,sX))]),_:1},8,[`class`])),[[(0,u.unref)(_G),Re.value]]),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)([`blur-button`,{off:ue.value}]),onClick:Xe},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WY),(0,u.createVNode)(BY)]),_:1},8,[`class`])),[[(0,u.unref)(_G),ze.value]])]),ve.value&&!Ne.value&&!b.value&&!Me.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:1,variant:y.value?`danger`:`primary`,class:`share-button`,onClick:Nt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(De.value),1)]),_:1},8,[`variant`])):(0,u.createCommentVNode)(``,!0),_e.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:2},[(0,u.createVNode)(A,{class:`text-center`,onClick:Tt},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Ce.value.switchCamera),1)]),_:1}),(0,u.createElementVNode)(`p`,cX,(0,u.toDisplayString)(ge.value),1)],64)):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lX,[(0,u.createElementVNode)(`div`,uX,[(0,u.createVNode)(sa,{class:`icon-xxl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0)])]),!Ae.value&&!Ne.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`danger`,class:`end-call-button text-center w-100`,onClick:Ot},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zt),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.endCall),1)]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,dX,[(0,u.createElementVNode)(`div`,fX,[(0,u.createElementVNode)(`p`,pX,(0,u.toDisplayString)(He.value),1),Ue.value?((0,u.openBlock)(),(0,u.createElementBlock)(`small`,mX,(0,u.toDisplayString)(Ue.value),1)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,hX,[(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(Oe.value),1)]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(ke.value),1),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:p.videoTestUrl,target:`_blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(Ce.value.testCall),9,gX),t[3]||=(0,u.createTextVNode)(` • `,-1),(0,u.createElementVNode)(`a`,_X,(0,u.toDisplayString)(Ce.value.serviceDesk),1)])])])])])]),_:1}))]),_:1})]),_:1})])}}},bX={class:`template not-found-template`},xX={class:`center-screen`},SX={class:`container-warning`},CX=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=Uu(),r=e,i=t,a=(0,u.computed)(()=>r.buttonText||n(`notFoundTemplate.buttonDefault`)),o=(0,u.computed)(()=>n(`notFoundTemplate.title`)),s=(0,u.computed)(()=>n(`notFoundTemplate.description`)),c=()=>i(`navigate`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,bX,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,xX,[(0,u.createElementVNode)(`div`,SX,[(0,u.createVNode)(Xi),(0,u.createElementVNode)(`h1`,null,(0,u.toDisplayString)(o.value),1),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(s.value),1),(0,u.createVNode)(A,{onClick:c,variant:`primary`,type:`button`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(a.value),1)]),_:1})])])]),_:1})]))}}),wX=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},TX=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,EX=e=>e.startsWith(`http://`)||e.startsWith(`https://`),DX={install:e=>{e.component(`BDAlert`,va),e.component(`BDArticle`,xa),e.component(`BDAssignConversationModal`,qK),e.component(`BDAttachmentPreviewList`,F_),e.component(`BDAttachmentUploadModal`,JK),e.component(`BDBadge`,wa),e.component(`BDButton`,A),e.component(`BDCard`,Fa),e.component(`BDChangePasswordTemplate`,MY),e.component(`BDChatCloud`,rv),e.component(`BDCol`,HK),e.component(`BDCollapsableCard`,za),e.component(`BDConfirmationModal`,YK),e.component(`BDContainer`,UK),e.component(`BDContentLibraryModal`,RJ),e.component(`BDContentLibrarySplitButton`,Oh),e.component(`BDContentLibraryTemplate`,LJ),e.component(`BDConversationToTextModal`,aY),e.component(`BDDate`,qh),e.component(`BDDropdown`,rK),e.component(`BDDropdownItem`,iv),e.component(`BDFileUpload`,cO),e.component(`BDForm`,Jh),e.component(`BDFormCheckbox`,fg),e.component(`BDFormInput`,Pg),e.component(`BDFormInvalidFeedback`,mg),e.component(`BDFormMultipleCheckbox`,fO),e.component(`BDFormSelect`,zg),e.component(`BDHeader`,uK),e.component(`BDImageAttachmentModal`,fY),e.component(`BDImageAttachmentPreviewList`,W_),e.component(`BDInputGroup`,Hg),e.component(`BDLink`,Ea),e.component(`BDLoader`,Jg),e.component(`BDLogo`,Zg),e.component(`BDMarkdownEditor`,bG),e.component(`BDMessageTemplateFormModal`,mY),e.component(`BDMobileMenu`,DG),e.component(`BDModal`,yK),e.component(`BDNotFoundTemplate`,CX),e.component(`BDPagination`,i_),e.component(`BDPhoneNumberEditModal`,DK),e.component(`BDPill`,d_),e.component(`BDPillContainer`,m_),e.component(`BDPractitionerHeader`,VK),e.component(`BDProfileImage`,__),e.component(`BDRow`,WK),e.component(`BDSessionTimeOutModal`,KK),e.component(`BDSmallConversationCard`,jG),e.component(`BDTable`,BG),e.component(`BDToast`,S_),e.component(`BDUser`,GG),e.component(`BDUserInformation`,D_),e.component(`BDVideoCallConfirmationModal`,SY),e.component(`BDVideoCallTemplate`,yX),e.component(`BDVideoCallToast`,nK),e.component(`BDZoomslider`,A_),e.component(`IconAcademy`,h),e.component(`IconArrowDown`,y),e.component(`IconArrowUp`,C),e.component(`IconAttachment`,D),e.component(`IconBold`,ne),e.component(`IconBulletList`,oe),e.component(`IconCalendar`,ue),e.component(`IconCall`,me),e.component(`IconCallReject`,ve),e.component(`IconCardView`,Se),e.component(`IconCaretDown`,Ee),e.component(`IconCaretLeft`,k),e.component(`IconCaretRight`,Ne),e.component(`IconCheck`,Le),e.component(`IconClipboard`,Ve),e.component(`IconClose`,Ge),e.component(`IconComment`,Ye),e.component(`IconCommentActive`,$e),e.component(`IconCommentStatic`,rt),e.component(`IconCommonFileEmpty`,st),e.component(`IconCommonFileWarning`,dt),e.component(`IconContactPerson`,ht),e.component(`IconCopy`,yt),e.component(`IconDelete`,Ct),e.component(`IconDoubleCheck`,Dt),e.component(`IconDownloadImage`,jt),e.component(`IconEdit`,Ft),e.component(`IconEndCall`,zt),e.component(`IconError`,Ut),e.component(`IconExternal`,qt),e.component(`IconEyeShow`,Zt),e.component(`IconEyeSlash`,tn),e.component(`IconFile`,on),e.component(`IconFileAdded`,un),e.component(`IconForward`,mn),e.component(`IconHix`,vn),e.component(`IconHyperlink`,Sn),e.component(`IconImageFileLandscape`,En),e.component(`IconImageFileWarning`,An),e.component(`IconInbox`,Pn),e.component(`IconInfo`,Rn),e.component(`IconInformationCircle`,Hn),e.component(`IconItalic`,Kn),e.component(`IconListView`,Xn),e.component(`IconLock`,er),e.component(`IconLusciiEscalated`,ir),e.component(`IconLusciiLogo`,cr),e.component(`IconLusciiOpen`,fr),e.component(`IconLusciiPriorityHigh`,gr),e.component(`IconLusciiPriorityLow`,br),e.component(`IconLusciiPriorityMedium`,wr),e.component(`IconMenu`,Or),e.component(`IconMessage`,Mr),e.component(`IconMessageForward`,Ir),e.component(`IconMicrophoneSlash`,zr),e.component(`IconMicrosoftTeams`,Ur),e.component(`IconMin`,qr),e.component(`IconOrderedList`,Zr),e.component(`IconPlus`,ti),e.component(`IconRefresh`,ai),e.component(`IconRemove`,li),e.component(`IconSananetLogo`,mi),e.component(`IconService`,vi),e.component(`IconShareScreen`,Si),e.component(`IconSingleNeutral`,Ei),e.component(`IconSort`,Ai),e.component(`IconSortAsc`,Pi),e.component(`IconSortDesc`,Ri),e.component(`IconSortNone`,Hi),e.component(`IconTriangleDown`,Ki),e.component(`IconTriangleExclamation`,Xi),e.component(`IconUnderline`,ea),e.component(`IconVideoDisabled`,sa),e.component(`IconVideocall`,ia),e.component(`IconWarning`,da),e.component(`IconZorgkaart`,ha),e.directive(`bd-tooltip`,_G)}};exports.BDAlert=va,exports.BDArticle=xa,exports.BDAssignConversationModal=qK,exports.BDAttachmentPreviewList=F_,exports.BDAttachmentUploadModal=JK,exports.BDBadge=wa,exports.BDButton=A,exports.BDCard=Fa,exports.BDChangePasswordTemplate=MY,exports.BDChatCloud=rv,exports.BDCol=HK,exports.BDCollapsableCard=za,exports.BDConfirmationModal=YK,exports.BDContainer=UK,exports.BDContentLibraryModal=RJ,exports.BDContentLibrarySplitButton=Oh,exports.BDContentLibraryTemplate=LJ,exports.BDConversationToTextModal=aY,exports.BDDate=qh,exports.BDDropdown=rK,exports.BDDropdownItem=iv,exports.BDFileUpload=cO,exports.BDForm=Jh,exports.BDFormCheckbox=fg,exports.BDFormInput=Pg,exports.BDFormInvalidFeedback=mg,exports.BDFormMultipleCheckbox=fO,exports.BDFormSelect=zg,exports.BDHeader=uK,exports.BDImageAttachmentModal=fY,exports.BDImageAttachmentPreviewList=W_,exports.BDInputGroup=Hg,exports.BDLink=Ea,exports.BDLoader=Jg,exports.BDLogo=Zg,exports.BDMarkdownEditor=bG,exports.BDMessageTemplateFormModal=mY,exports.BDMobileMenu=DG,exports.BDModal=yK,exports.BDNotFoundTemplate=CX,exports.BDPagination=i_,exports.BDPhoneNumberEditModal=DK,exports.BDPill=d_,exports.BDPillContainer=m_,exports.BDPractitionerHeader=VK,exports.BDProfileImage=__,exports.BDRow=WK,exports.BDSessionTimeOutModal=KK,exports.BDSmallConversationCard=jG,exports.BDTable=BG,exports.BDToast=S_,exports.BDUser=GG,exports.BDUserInformation=D_,exports.BDVideoCallConfirmationModal=SY,exports.BDVideoCallTemplate=yX,exports.BDVideoCallToast=nK,exports.BDZoomslider=A_,exports.CopyChatMessageToClipboard=YJ,exports.CopyChatMessagesToClipboard=XJ,exports.CopyHl7MessagesToClipboard=ZJ,exports.CreateHyperlinkParagraph=TX,exports.CreateThumbnailUri=J_,exports.IconAcademy=h,exports.IconArrowDown=y,exports.IconArrowUp=C,exports.IconAttachment=D,exports.IconBold=ne,exports.IconBulletList=oe,exports.IconCalendar=ue,exports.IconCall=me,exports.IconCallReject=ve,exports.IconCardView=Se,exports.IconCaretDown=Ee,exports.IconCaretLeft=k,exports.IconCaretRight=Ne,exports.IconCheck=Le,exports.IconClipboard=Ve,exports.IconClose=Ge,exports.IconComment=Ye,exports.IconCommentActive=$e,exports.IconCommentStatic=rt,exports.IconCommonFileEmpty=st,exports.IconCommonFileWarning=dt,exports.IconContactPerson=ht,exports.IconCopy=yt,exports.IconDelete=Ct,exports.IconDoubleCheck=Dt,exports.IconDownloadImage=jt,exports.IconEdit=Ft,exports.IconEndCall=zt,exports.IconError=Ut,exports.IconExternal=qt,exports.IconEyeShow=Zt,exports.IconEyeSlash=tn,exports.IconFile=on,exports.IconFileAdded=un,exports.IconForward=mn,exports.IconHix=vn,exports.IconHyperlink=Sn,exports.IconImageFileLandscape=En,exports.IconImageFileWarning=An,exports.IconInbox=Pn,exports.IconInfo=Rn,exports.IconInformationCircle=Hn,exports.IconItalic=Kn,exports.IconListView=Xn,exports.IconLock=er,exports.IconLusciiEscalated=ir,exports.IconLusciiLogo=cr,exports.IconLusciiOpen=fr,exports.IconLusciiPriorityHigh=gr,exports.IconLusciiPriorityLow=br,exports.IconLusciiPriorityMedium=wr,exports.IconMenu=Or,exports.IconMessage=Mr,exports.IconMessageForward=Ir,exports.IconMicrophoneSlash=zr,exports.IconMicrosoftTeams=Ur,exports.IconMin=qr,exports.IconOrderedList=Zr,exports.IconPlus=ti,exports.IconRefresh=ai,exports.IconRemove=li,exports.IconSananetLogo=mi,exports.IconService=vi,exports.IconShareScreen=Si,exports.IconSingleNeutral=Ei,exports.IconSort=Ai,exports.IconSortAsc=Pi,exports.IconSortDesc=Ri,exports.IconSortNone=Hi,exports.IconTriangleDown=Ki,exports.IconTriangleExclamation=Xi,exports.IconUnderline=ea,exports.IconVideoDisabled=sa,exports.IconVideocall=ia,exports.IconWarning=da,exports.IconZorgkaart=ha,exports.MapAttachmentsForApi=G_,exports.MapToAttachmentObjects=Z_,exports.TransformHyperlinks=wX,exports.ValidateUrl=EX,exports.default=DX,exports.getDisplayDateNumeric=Gh,exports.getDisplayDateTextual=Hh,exports.getDisplayDateTimeNumeric=Wh,exports.getDisplayDateTimeTextual=Uh,exports.useModal=bK,exports.usePopover=MK,exports.useServerErrors=SK,exports.useSessionTimeOut=GK,exports.useToaster=iO,exports.useValidation=CY,exports.useWindow=AK,exports.useZoom=oY,exports.vBdTooltip=_G;
|